@charset "UTF-8";

/* 記事・固定ページ・一覧。専用トップページには読み込まない。 */
body:not(.home) {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

body:not(.home) #header-container {
  background-image: linear-gradient(115deg, var(--cocoon-child-header-color, #172536), color-mix(in srgb, var(--cocoon-child-header-color, #172536) 80%, #6895b3));
  border-bottom: 1px solid rgba(169, 191, 210, 0.18);
}

body:not(.home) #header-container-in {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 48px));
  min-height: var(--cocoon-child-header-height, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body:not(.home) #header,
body:not(.home) #header-in {
  width: auto;
  height: auto;
  min-height: var(--cocoon-child-header-height, 80px);
  margin: 0;
  padding: 0;
}

body:not(.home) #header :is(.logo, .site-name) {
  margin: 0;
  padding: 0;
}

body:not(.home) #header .logo a {
  display: flex;
  align-items: center;
  padding: 0;
}

body:not(.home) #header .logo img {
  display: block;
  width: 220px;
  height: 44px;
  max-height: none;
}

body:not(.home) #navi,
body:not(.home) #navi-in {
  width: auto;
  margin: 0;
  background: transparent;
}

body:not(.home) #navi .menu-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

body:not(.home) #navi .menu-header > li {
  width: auto;
  height: auto;
}

body:not(.home) #navi .menu-header > li > a {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 0;
  color: #e2ebf2;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

body:not(.home) #navi .menu-header > li > a:hover {
  background-color: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not(.home) #navi .menu-header > li > a {
    background-image: linear-gradient(#e2ebf2, #e2ebf2);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 1px;
    transition: background-size 250ms ease, color 200ms ease;
  }

  body:not(.home) #navi .menu-header > li > a:hover {
    background-size: 100% 1px;
    text-decoration: none;
  }
}

body:not(.home) .content {
  margin-block: 40px 64px;
}

body:not(.home) #content-in {
  box-sizing: border-box;
  row-gap: 32px;
}

body:not(.home) #main {
  box-sizing: border-box;
  min-width: 0;
  padding: 36px 44px 44px;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(32, 50, 71, 0.035);
}

body:not(.home).no-sidebar #content-in {
  max-width: 960px;
}

body:not(.home).no-sidebar #main {
  width: 100%;
}

body:not(.home) .breadcrumb {
  margin: 0 0 24px;
  padding: 0;
  color: #7a8c9c;
  font-size: 12px;
  line-height: 1.8;
}

body:not(.home) .breadcrumb a {
  color: #698297;
}

/* タイトル、日付、画像の順で読む入口を整える。 */
body:not(.home) .article-header {
  display: flex;
  flex-direction: column;
}

body:not(.home) .entry-title {
  order: 0;
  margin: 0 0 16px;
  padding: 0;
  color: #243c50;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

body:not(.home) .article-header .date-tags {
  order: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 24px;
  color: #637585;
  text-align: right;
}

body:not(.home) .article-header .date-tags > span {
  margin: 0;
  font-size: 15px;
}

body:not(.home) .eye-catch-wrap {
  order: 2;
  margin: 0 0 12px;
}

body:not(.home) .eye-catch {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  background: #f0f5f8;
}

body:not(.home) .eye-catch img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}

body:not(.home) .eye-catch .cat-label {
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: #344f63;
  font-size: 11px;
}

body:not(.home) .entry-content {
  margin-top: 28px;
  overflow-wrap: anywhere;
}

body:not(.home) .entry-content a:not(.a-wrap):not(.btn):not(.blogcard-wrap) {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

body:not(.home) .entry-content :is(h2, h3, h4) {
  scroll-margin-top: calc(28px + var(--wp-admin--admin-bar--height, 0px));
}

body:not(.home) .entry-content h2 {
  max-width: 100%;
  margin: 64px 0 28px;
  padding: 15px 20px;
  border: 0;
  border-left: 3px solid #7894a9;
  border-radius: 0 6px 6px 0;
  background: #edf3f7;
  color: #2d465c;
  font-size: 24px;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

body:not(.home) .entry-content h2::before,
body:not(.home) .entry-content h2::after {
  content: none;
}

body:not(.home) .entry-content h3 {
  margin: 42px 0 22px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #c8d7e3;
  color: #344f63;
  font-size: 20px;
  line-height: 1.7;
}

body:not(.home) .entry-content h4 {
  color: #405b70;
}

body:not(.home) .entry-content > :is(ul, ol):not(.step-list):not(.merit-list) {
  margin-block: 24px 32px;
  padding-left: 1.6em;
}

body:not(.home) .entry-content > :is(ul, ol):not(.step-list):not(.merit-list) li {
  margin-block: 8px;
}

body:not(.home) .entry-content img:not(.emoji):not(.wp-smiley) {
  max-width: 100%;
  border-radius: 6px;
}

body:not(.home) .entry-content .wp-block-table {
  margin-block: 28px 36px;
  overflow-x: auto;
  border: 1px solid #d6e0e8;
  border-radius: 6px;
}

body:not(.home) .entry-content .wp-block-table table {
  margin: 0;
}

/* 記事内の目次。リンク構造と現在位置の表示はそのまま使う。 */
body:not(.home) .article .toc {
  width: 100%;
  margin-block: 36px 48px;
  padding: 24px 28px;
  border-color: #d8e3ec;
  border-radius: 8px;
  background: #f6f9fb;
  box-shadow: none;
}

body:not(.home) .article .toc .toc-title {
  padding-bottom: 12px;
  border-bottom: 1px solid #d8e3ec;
  color: #3e586f;
  font-size: 16px;
}

/* サイドバーも同じ細い枠線と控えめな見出しに揃える。 */
body:not(.home) .sidebar .widget {
  padding: 20px;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(32, 50, 71, 0.025);
}

body:not(.home) .sidebar .widget-title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom-color: #d8e3ec;
  color: #344f63;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.06em;
}

body:not(.home) .sidebar .author-box .author-name,
body:not(.home) .sidebar .author-box .author-name a {
  color: #344f63;
  font-size: 17px;
}

body:not(.home) .sidebar .author-box .author-description p {
  color: #344b5d;
  font-size: 14px;
  line-height: 1.85;
  text-align: left;
}

body:not(.home) .sidebar .widget_categories li > a::before {
  background-color: #8fa7ba;
}

body:not(.home) .sidebar .widget-entry-card-title {
  color: #344f63;
  font-size: 13px;
  line-height: 1.7;
}

/* カテゴリー・検索・日付などの標準一覧。 */
body:is(.archive, .search, .blog) #main {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:is(.archive, .search, .blog) :is(.archive-title, .list-title) {
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid #cad8e3;
  color: #2d465c;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

body:is(.archive, .search, .blog) .archive-title .fa {
  font-size: 20px;
  color: #8aa2b5;
}

body:is(.archive, .search, .blog) #main .ect-vertical-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

body:is(.archive, .search, .blog) #main .ect-vertical-card .entry-card-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

body:is(.archive, .search, .blog) #main .ect-vertical-card .entry-card-content {
  padding: 20px;
}

body:is(.archive, .search, .blog) #main .entry-card-title {
  margin-bottom: 12px;
  color: #2d465c;
  font-size: 17px;
  line-height: 1.7;
}

body:is(.archive, .search, .blog) #main .entry-card-snippet {
  max-height: 3.7em;
  margin-bottom: 20px;
  color: #7b8c9a;
  font-size: 13px;
  line-height: 1.85;
}

body:is(.archive, .search, .blog) #main .entry-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
  padding-top: 12px;
  border-top: 1px solid #edf1f5;
  color: #7b8c9a;
}

body:is(.archive, .search, .blog) #main .entry-card-meta :is(.post-date, .post-update) {
  font-size: 14px;
}

body:not(.home) .pagination a,
body:not(.home) .pagination .current {
  border: 1px solid #cad8e3;
  border-radius: 6px;
}

body:not(.home) .pagination .current {
  background: #344f63;
  color: #fff;
}

/* 前後の記事は、方向と記事名が分かるコンパクトな案内にする。 */
body:not(.home) #pager-post-navi {
  --post-navi-thumb-width: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 28px 0 32px;
}

body:not(.home) #pager-post-navi a {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--post-navi-thumb-width) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 14px;
  width: auto;
  min-width: 0;
  min-height: 84px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--cocoon-child-card-border);
  background: #f9fbfc;
  color: #344f63;
  font-size: 15px;
  line-height: 1.7;
}

body:not(.home) #pager-post-navi .next-post {
  grid-template-columns: minmax(0, 1fr) var(--post-navi-thumb-width);
  text-align: right;
}

body:not(.home) #pager-post-navi :is(.prev-post, .next-post)::before {
  grid-column: 2;
  grid-row: 1;
  color: #698297;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body:not(.home) #pager-post-navi .prev-post::before {
  content: "← 前の記事";
}

body:not(.home) #pager-post-navi .next-post::before {
  grid-column: 1;
  content: "次の記事 →";
}

body:not(.home) #pager-post-navi .iconfont {
  display: none;
}

body:not(.home) #pager-post-navi :is(.prev-post-thumb, .next-post-thumb) {
  display: block;
  grid-row: 1 / 3;
  box-sizing: border-box;
  width: var(--post-navi-thumb-width);
  min-width: 0;
  max-width: var(--post-navi-thumb-width);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

body:not(.home) #pager-post-navi .prev-post-thumb {
  grid-column: 1;
}

body:not(.home) #pager-post-navi .next-post-thumb {
  grid-column: 2;
}

body:not(.home) #pager-post-navi :is(.prev-post-thumb, .next-post-thumb) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.home) #pager-post-navi :is(.prev-post-title, .next-post-title) {
  grid-row: 2;
  max-width: 100%;
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
}

body:not(.home) #pager-post-navi .prev-post-title {
  grid-column: 2;
}

body:not(.home) #pager-post-navi .next-post-title {
  grid-column: 1;
}

/* 記事末尾の案内と入力欄。 */
body:not(.home) :is(.related-entry-heading, .comment-title, .comment-reply-title) {
  margin-top: 48px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #d8e3ec;
  background: transparent;
  color: #344f63;
  font-size: 20px;
  font-weight: 500;
}

body:not(.home) .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* 関連記事がない場合の案内は、カードの列幅に制限しない。 */
body:not(.home) .related-list > p {
  grid-column: 1 / -1;
}

body:not(.home) .related-list .related-entry-card-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.home) .related-list .related-entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body:not(.home) .related-list .related-entry-card-thumb {
  width: 100%;
  margin: 0;
  float: none;
}

body:not(.home) .related-list .related-entry-card-thumb img {
  display: block;
  width: 100%;
}

body:not(.home) .related-list .related-entry-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 14px;
}

body:not(.home) .related-list .related-entry-card-title {
  margin-bottom: 12px;
  color: #344f63;
  font-size: 13px;
  line-height: 1.7;
}

body:not(.home) .related-list .related-entry-card-meta {
  position: static;
  margin-top: auto;
  padding-top: 12px;
  color: #7b8c9a;
}

body:not(.home) .related-list :is(.post-date, .post-update) {
  font-size: 13px;
}

body:not(.home) .related-list .related-entry-card-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}

body:not(.home) .sidebar .widget-entry-card-date {
  font-size: 13px;
}

body:not(.home) #main :is(input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea) {
  border: 1px solid #cbd9e4;
  border-radius: 6px;
  background: #f9fbfc;
  color: #344f63;
  font-family: inherit;
}

body:not(.home) #main :is(input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea):focus {
  outline: 2px solid #9db6ca;
  outline-offset: 2px;
}

body:not(.home) :is(#submit, input[type="submit"]):not(.search-submit) {
  padding: 12px 24px;
  border: 1px solid #344f63;
  border-radius: 6px;
  background: #344f63;
  color: #fff;
  font-family: inherit;
}

body:not(.home) a:focus-visible {
  outline: 2px solid #8faec6;
  outline-offset: 4px;
}

/* 初期表示で本文全体を動かさず、リロード時の位置を安定させる。 */
body:not(.home) .content-in {
  animation: none;
}

@media screen and (max-width: 1023px) {
  body:not(.home) #content-in {
    width: min(800px, calc(100% - 40px));
  }

  body:not(.home) #main {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media screen and (max-width: 640px) {
  body:not(.home) #header-container-in {
    width: calc(100% - 40px);
    min-height: var(--cocoon-child-mobile-header-height, 68px);
    gap: 12px;
  }

  body:not(.home) #header,
  body:not(.home) #header-in {
    min-height: var(--cocoon-child-mobile-header-height, 68px);
  }

  body:not(.home) #header .logo img {
    width: 180px;
    height: 36px;
  }

  body:not(.home) #navi {
    display: none;
  }

  body:not(.home) .content {
    margin-block: 24px 40px;
  }

  body:not(.home) #content-in {
    width: calc(100% - 24px);
  }

  body:not(.home) #main {
    padding: 24px 16px 32px;
    border-radius: 8px;
  }

  body:not(.home) .breadcrumb {
    margin-bottom: 20px;
    font-size: 11px;
  }

  body:not(.home) .entry-title {
    font-size: 22px;
    line-height: 1.65;
    letter-spacing: 0.02em;
  }

  body:not(.home) .entry-content {
    line-height: 1.9;
  }

  body:not(.home) #main :is(input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea) {
    font-size: 16px;
  }

  body:not(.home) .entry-content h2 {
    margin-top: 44px;
    padding: 12px 14px;
    font-size: 20px;
  }

  body:not(.home) .entry-content h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  body:not(.home) .article .toc {
    padding: 18px;
  }

  body:not(.home) .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body:not(.home) #pager-post-navi {
    --post-navi-thumb-width: 104px;
    gap: 12px;
  }

  body:is(.archive, .search, .blog) #main {
    padding: 0;
  }

  body:is(.archive, .search, .blog) #main .ect-vertical-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body:is(.archive, .search, .blog) #main .ect-vertical-card .entry-card-content {
    padding: 16px 18px;
  }

  body:is(.archive, .search, .blog) #main .entry-card-title {
    display: block;
    overflow: visible;
    block-size: auto;
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  body:is(.archive, .search, .blog) #main .entry-card-snippet {
    display: none;
  }

  body:is(.archive, .search, .blog) #main .entry-card-meta :is(.post-date, .post-update) {
    font-size: 11px;
  }
}
