/* 家計相談Labo の見た目。色・大きさは、今のサイト（SWELL）を見て写した（2026-11-11）。
   管理画面のプレビューでも、このファイルを読む。 */
:root {
  --color-main: #04384c;
  --color-text: #333;
  --color-link: #1176d4;
  --color-bg: #fdfdfd;
  --color-gray: hsla(0, 0%, 78%, 0.15);
  --color-border: #dcdcdc;
  --pale-01: #fff2f0; /* 赤 */
  --pale-02: #f3f8fd; /* 青 */
  --pale-03: #f1f9ee; /* 緑 */
  --pale-04: #fdf9ee; /* 黄 */
  --deep-01: #e44141;
  --deep-02: #3d79d5;
  --deep-03: #63a84d;
  --deep-04: #f09f4d;
  --mark-blue: #b7e3ff;
  --mark-green: #bdf9c3;
  --mark-yellow: #fcf69f;
  --mark-orange: #ffddbc;
  --list-good: #86dd7b;
  --list-bad: #f36060;
  --list-check: #04384c;
  --list-triangle: #f4e03a;
  --cap-col1: #f59b5f; /* キャプション付きボックス（オレンジ） */
  --cap-col1-light: #fff8eb;
  --cap-col2: #5fb9f5; /* 青 */
  --cap-col2-light: #edf9ff;
  --cap-col3: #2fcd90; /* 緑 */
  --cap-col3-light: #eafaf2;
  --font: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --article-w: 900px;
  --container-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
a { color: var(--color-link); }
img { max-width: 100%; height: auto; vertical-align: middle; }

.test-banner {
  background: #e0a82f;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 4px 8px;
}

/* ---- ヘッダー ---- */
.l-header { background: var(--color-bg); }
.l-header__inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 48px;
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.l-header__logo img { height: 70px; width: auto; display: block; }
.gnav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.gnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.25s;
}
@media (hover: hover) { .gnav a:hover { opacity: 0.6; } }
.gnav .ttl { font-size: 14px; line-height: 1.2; }
.gnav .desc { font-size: 10px; opacity: 0.8; margin-top: 2px; }
/* スマホだけで使う物（メニューのボタン・閉じるボタン・MENU の帯・暗い幕） */
.menu-btn, .gnav__close, .gnav__title, .gnav-overlay { display: none; }

/* ---- パンくず（今のサイトに合わせた。2026-11-16 見比べ） ----
   記事：上の帯のすぐ下に、薄い灰色の帯。固定ページ：題名の画像の下に、地の色のまま */
.breadcrumb { background: #f7f7f7; box-shadow: inset 0 -1px 8px rgba(0, 0, 0, 0.06); padding: 8px 0; }
.title-area + .breadcrumb { background: none; box-shadow: none; padding: 12px 0 8px; }
.breadcrumb ol {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 48px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 12px 0 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.breadcrumb li:first-child a::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 12h3v10h6v-6h4v6h6V12h3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 12h3v10h6v-6h4v6h6V12h3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.breadcrumb li:last-child span { opacity: 0.8; }
.breadcrumb a { color: inherit; text-decoration: none; }

/* ---- 記事 ---- */
.l-article { max-width: var(--article-w); margin: 64px auto; padding: 0 16px; }
.post-title { font-size: 24px; line-height: 1.4; margin: 0 0 16px; font-weight: 700; }
.post-metas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 24px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.post-cats a {
  background: var(--color-main);
  color: #fff;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 1px;
  text-decoration: none;
}
.post-times { font-size: 12px; opacity: 0.8; display: flex; gap: 12px; }
.post-times time::before { content: "公開 "; }
.post-times .is-modified::before { content: "更新 "; }
.post-eyecatch { margin: 0 0 48px; }
.post-eyecatch img { width: 100%; }
.post-foot { margin-top: 64px; }
.post-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  display: inline-block;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 2px;
  text-decoration: none;
}
.post-tags a::before { content: "# "; }

/* ---- 本文 ---- */
.post_content { line-height: 1.8; }
.post_content > * { margin-top: 0; }
.post_content p,
.post_content ul,
.post_content ol,
.post_content figure,
.post_content blockquote,
.post_content .table-wrap,
.post_content table { margin-bottom: 2em; }
.post_content h2 {
  position: relative;
  background: var(--color-main);
  color: #fff;
  font-size: 1.4em;
  line-height: 1.4;
  font-weight: 700;
  padding: 0.75em 1em;
  margin: 4em -16px 2em;
}
.post_content h2::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 2px solid var(--color-main);
}
.post_content h3 {
  position: relative;
  font-size: 1.3em;
  line-height: 1.4;
  font-weight: 700;
  padding: 0 0.5em 0.5em;
  margin: 3em 0 2em;
}
.post_content h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-main) 0%, var(--color-main) 29.3%, rgba(150, 150, 150, 0.2) 29.3%, rgba(150, 150, 150, 0.2) 100%);
}
.post_content h4 {
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: 700;
  border-left: 2px solid var(--color-main);
  padding-left: 16px;
  margin: 3em 0 1.5em;
}
.post_content ul,
.post_content ol { padding-left: 1.5em; }
.post_content li { margin: 4px 0; line-height: 1.5; }
.post_content blockquote {
  position: relative;
  background: var(--color-gray);
  padding: 24px 32px 24px 48px;
  margin-left: 0;
  margin-right: 0;
}
.post_content blockquote::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 5px;
  border-left: 1px solid rgba(180, 180, 180, 0.75);
}
.post_content blockquote > :last-child { margin-bottom: 0; }
.post_content cite { display: block; font-size: 0.8em; font-style: normal; opacity: 0.8; }
.post_content img { display: block; margin: 0 auto; }
.post_content p > img:only-child { margin-bottom: 0; }

/* 文字の飾り（マーカー・大きさ） */
.marker-blue { background: linear-gradient(transparent 64%, var(--mark-blue) 0%); }
.marker-green { background: linear-gradient(transparent 64%, var(--mark-green) 0%); }
.marker-yellow { background: linear-gradient(transparent 64%, var(--mark-yellow) 0%); }
.marker-orange { background: linear-gradient(transparent 64%, var(--mark-orange) 0%); }
.fz-xs { font-size: 0.75em; }
.fz-s { font-size: 0.9em; }
.fz-l { font-size: 1.25em; }
.fz-xl { font-size: 1.6em; }

/* 目次 */
.toc {
  width: 92%;
  margin: 4em auto;
  padding: 2em;
  border-top: 2px solid var(--color-main);
  border-bottom: 2px solid var(--color-main);
}
.toc__title { text-align: center; font-weight: 700; margin: 0 0 1em; font-size: 1.1em; }
.toc ol { list-style: none; counter-reset: toc; padding-left: 0; margin: 0; }
.toc ol ol { padding-left: 1.5em; margin-top: 4px; }
.toc li { counter-increment: toc; margin: 6px 0; }
.toc li > a::before { content: counters(toc, "-") ". "; color: var(--color-main); }
.toc a { color: var(--color-text); text-decoration: none; border-bottom: 1px dashed #bbb; }

/* 表 */
.table-wrap { overflow-x: auto; }
.table-wrap.is-centered td,
.table-wrap.is-centered th { text-align: center; }
.post_content table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  line-height: 1.6;
}
.table-wrap > table { margin-bottom: 0; }
.post_content th,
.post_content td {
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  padding: 8px 12px;
  vertical-align: middle;
}
.post_content th { background: var(--color-gray); font-weight: 700; }
.post_content td.align-right { text-align: right; }
.post_content td.align-center { text-align: center; }
.table-caption { text-align: center; font-size: 0.8em; opacity: 0.8; margin-top: -1.5em; }
.bg-pale-01 { background: var(--pale-01); }
.bg-pale-02 { background: var(--pale-02); }
.bg-pale-03 { background: var(--pale-03); }
.bg-pale-04 { background: var(--pale-04); }
.bg-gray { background: var(--color-gray); }
div[class^="bg-"] { padding: 1.5em; margin-bottom: 2em; }
div[class^="bg-"] > :last-child { margin-bottom: 0; }

/* キャプション付きボックス */
.cap-box { position: relative; margin-bottom: 2em; --cap: var(--cap-col1); --cap-light: var(--cap-col1-light); }
.cap-box[data-color="col2"] { --cap: var(--cap-col2); --cap-light: var(--cap-col2-light); }
.cap-box[data-color="col3"] { --cap: var(--cap-col3); --cap-light: var(--cap-col3-light); }
.cap-box-title {
  display: inline-flex;
  background: var(--cap);
  color: #fff;
  font-size: 0.85em;
  line-height: 1.5;
  padding: 0.25em 0.75em;
}
.cap-box-body {
  border: 1px solid var(--cap);
  background: var(--cap-light);
  padding: 1.5em;
  margin-top: -2px;
}
.cap-box-body > :last-child { margin-bottom: 0; }
.cap-box-body > div:last-child > :last-child { margin-bottom: 0; }
/* 枠の上に乗る見出し（onborder_ttl2） */
.cap-box.is-onborder-ttl2 .cap-box-title {
  position: relative;
  top: 0.85em;
  left: 0.85em;
  z-index: 1;
  padding: 0.5em 0.75em;
  line-height: 1;
}
.cap-box.is-onborder-ttl2 .cap-box-body { padding-top: 2em; }

/* 印つきのリスト（× ○ ✓ △） */
.post_content div[class^="list-"] ul { list-style: none; padding-left: 0; }
.post_content div[class^="list-"] li { position: relative; padding-left: 1.6em; }
.post_content div[class^="list-"] li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.list-bad li::before { content: "×"; color: var(--list-bad); font-size: 1.2em; line-height: 1.2; }
.list-good li::before { content: "○"; color: var(--list-good); }
.list-check li::before { content: "✓"; color: var(--list-check); }
.list-triangle li::before { content: "▲"; color: var(--list-triangle); }
.post_content div[class^="list-"] > ul { margin-bottom: 1em; }

/* カラム */
.columns { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 2em; }
.columns > .column { flex: 1 1 0; min-width: 0; }
.columns > .column > :last-child { margin-bottom: 0; }
/* 今のサイトは、段組みの中の文だけ行の高さ 1.6・下の余白 1em（ほかの文は 1.8）。OVERVIEW の太字の文、執筆のページの「中」「大」の字（2026-11-16 見比べで合わせた） */
.post_content .column p { line-height: 1.6; margin-bottom: 1em; }
.post_content .column p:last-child { margin-bottom: 0; }
.fz-medium { font-size: 1.1em; }
.fz-large { font-size: 1.25em; }
/* 赤い字（今のサイトの「濃い色1」#e44141。相談のページの「ご紹介の方のみ」） */
.text-red { color: #e44141; }
.columns > .column img { width: 100%; }
/* スマホ（幅600未満）は、今のサイトと同じく縦に1列（2026-11-16 見比べで、9ページとも今は1列だった） */
@media (max-width: 599px) {
  .columns > .column { flex-basis: 100%; }
}
/* 画像を同じ幅で横に並べ、高い方に合わせて切りそろえる（今のサイトの WordPress のギャラリーと同じ。2026-11-16 見比べ） */
.gallery p { display: flex; gap: 16px; align-items: stretch; }
.gallery img { flex: 1 1 0; min-width: 0; width: 0; height: auto; margin: 0; object-fit: cover; }
.embed { margin-bottom: 2em; }

/* ---- 記事の一覧 ---- */
.page-title { font-size: 24px; margin: 0 0 32px; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.page-title small { font-size: 14px; font-weight: 400; opacity: 0.6; margin-left: 12px; }
.term-logo { margin: 0 0 32px; text-align: center; }
.term-logo img { max-width: 600px; width: 100%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 4px -4px rgba(0, 0, 0, 0.1); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list__item + .post-list__item { margin-top: 24px; }
.post-list__link { display: flex; gap: 24px; color: inherit; text-decoration: none; }
.post-list__link:hover .post-list__thumb img { transform: scale(1.04); }
.post-list__thumb { position: relative; flex: 0 0 36%; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.post-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
/* 画像の右上の種類の札：今のサイトと同じく、フォルダの印つき（2026-11-16 見比べで合わせた） */
.post-list__cat {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--color-main);
  color: #fff;
  font-size: 11px;
  line-height: 22px;
  padding: 0 8.25px;
}
.post-list__cat::before, .post-list__metacat::before, .post-list__date::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.3em;
  vertical-align: -0.15em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.post-list__cat, .post-list__metacat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5a2 2 0 0 1 2-2h6l2 2h8a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.post-list__date { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a11 11 0 1 1 0 22 11 11 0 0 1 0-22zm0 2.2a8.8 8.8 0 1 0 0 17.6 8.8 8.8 0 0 0 0-17.6zM11 6h2v5.6l3.9 2.3-1 1.7L11 12.7z'/%3E%3C/svg%3E"); }
.post-list__title { font-size: 16px; line-height: 1.5; font-weight: 700; margin: 0 0 8px; }
.post-list__date { font-size: 11px; opacity: 0.8; }
.post-list__empty { opacity: 0.7; }

/* ---- トップ ---- */
/* 下の区切りとの間：今のサイトと同じく 64px（スマホ 54px） */
.hero { position: relative; background: #f4f4f4; margin-bottom: 64px; }
.hero__img { display: block; width: 100%; height: auto; }
.hero__inner {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #454545;
}
.hero__lead {
  font-family: "Shippori Antique B1", var(--font);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}
/* メイン画像の文字とボタン：今のサイトの値（2026-11-16 見比べで合わせた）。
   トップの段落の余白（.home p）が効かないよう、.hero を付けて指定する */
.hero .hero__lead { margin: 0; line-height: 1.4; }
.hero .hero__sub { font-size: 16px; margin: 12px 0 0; line-height: 1.6; }
.hero .hero__btn { margin: 32px 0 0; }
.hero__btn a {
  display: inline-block;
  background: #e0a82f;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 1px;
  padding: 10.5px 35px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.hero__note { font-size: 11px; margin: 16px 0 0; opacity: 0.8; }
/* 区切りの上下の余白：今のサイトと同じく 96px（スマホ 60px）。2026-11-16 見比べで合わせた */
.section { padding: 96px 0; background: #fff; }
.section.is-gray { background: var(--color-gray); }
.section__inner { max-width: var(--article-w); margin: 0 auto; padding: 0 16px; }
.section-title {
  position: relative;
  font-size: 22.4px;
  font-weight: 600;
  color: #494949;
  letter-spacing: 0.2px;
  padding-top: 15px;
  padding-bottom: 0;
  margin: 0 0 44px;
}
/* 飾り線は、今のサイトと同じく見出しの上（2026-11-16 見比べで合わせた） */
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 1.5px;
  background: #494949;
}
/* 取引先のロゴ。今のサイトと同じく、どの幅でも横4つ（PC で 1つ 約199px） */
.client-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* トップ：左右の2つの塊に分けて、それぞれ横2つ（今のサイトの並び） */
.client-logos-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.client-logos-split .client-logos { grid-template-columns: repeat(2, 1fr); align-content: start; }
@media (max-width: 599px) {
  .client-logos, .client-logos-split { gap: 20px; }
}
.client-logos a { display: block; transition: transform 0.25s ease; }
.client-logos a:hover { transform: translateY(-4px); }
.client-logos img { width: 100%; display: block; }

/* ---- 動き（下・左からスッと出る） ---- */
.js-anim .animated:not(.is-inview) { opacity: 0; }
.animated.is-inview { animation-duration: 1s; animation-fill-mode: both; }
.animated.is-inview.fadeInUp { animation-name: klFadeInUp; }
.animated.is-inview.fadeInLeft { animation-name: klFadeInLeft; }
.animated.is-inview.bounceInLeft { animation-name: klBounceInLeft; }
/* backInLeft：今のサイトにも動きの定めが無く、見えた所でそのまま出る（CONTACT の最初の文）。同じにする */
@keyframes klFadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes klFadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes klBounceInLeft { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); } 0% { opacity: 0; transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; transform: translate3d(25px, 0, 0); } 75% { transform: translate3d(-10px, 0, 0); } 90% { transform: translate3d(5px, 0, 0); } to { transform: none; } }
/* 弾むときに右へ少しはみ出しても、横のスクロールを出さない */
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .animated:not(.is-inview) { opacity: 1; }
  .animated.is-inview { animation: none; }
}

/* ---- フッター（今のサイトに合わせた。2026-11-16 見比べ：地の色 #fdfdfd、各項目の左に線・最後は右にも） ---- */
.l-footer { padding: 80px 16px 16px; text-align: center; font-size: 12px; background: #fdfdfd; }
.l-footer__nav { list-style: none; padding: 8px 0 16px; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.l-footer__nav a { display: block; color: var(--color-text); text-decoration: none; font-size: 13px; line-height: 1.6; padding: 0 9.75px; border-left: 1px solid var(--color-text); }
.l-footer__nav li:last-child a { border-right: 1px solid var(--color-text); }
.copyright { margin: 0; }

/* ---- スマホ ---- */
@media (max-width: 959px) {
  /* 上の段：左に「≡」、真ん中にロゴ（今のサイトと同じ形） */
  .l-header__inner {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 0;
    padding: 0;
    min-height: 60px;
  }
  /* ロゴ・≡・虫眼鏡の大きさと線は、今のサイトに合わせる（2026-11-16 見比べで合わせた） */
  .l-header__logo { grid-column: 2; justify-self: center; }
  .l-header__logo img { height: 40px; }
  .menu-btn {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5.75px;
    width: 60px;
    height: 60px;
    padding: 0 19px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-btn span { display: block; height: 1px; background: var(--color-text); }
  /* メニュー：左から出す */
  .gnav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 101;
    width: min(88vw, 330px);
    padding: 0 15px 37.5px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s 0.35s;
  }
  .is-menu-open .gnav { transform: none; visibility: visible; transition: transform 0.35s ease; }
  /* 閉じる：今のサイトと同じく、左上に細い「×」（2026-11-16 見比べで合わせた） */
  .gnav__close {
    display: block;
    position: relative;
    margin: 0 0 0 -15px;
    width: 60px;
    height: 60px;
    border: 0;
    background: none;
    color: transparent;
    font-size: 0;
    cursor: pointer;
  }
  .gnav__close::before, .gnav__close::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 29.5px;
    width: 20px;
    height: 1px;
    background: var(--color-text);
    transform: rotate(45deg);
  }
  .gnav__close::after { transform: rotate(-45deg); }
  .gnav__title {
    display: block;
    margin: 0 0 22.5px;
    padding: 7.5px 11.25px;
    background: var(--color-main);
    color: #fff;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
  }
  /* 行：今のサイトと同じく、左に細い「›」、字は 13.5px、小さい字は 10px（2026-11-16 見比べで合わせた） */
  .gnav ul { display: block; margin-top: -13.5px; }
  .gnav a {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    padding: 10.125px 13.5px 10.125px 20.25px;
    border-bottom: 1px solid rgba(199, 199, 199, 0.5);
    position: relative;
    font-size: 13.5px;
    line-height: 18.9px;
  }
  .gnav a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--color-text);
    border-right: 1px solid var(--color-text);
    transform: translateY(-50%) rotate(45deg);
  }
  .gnav .ttl { font-size: 13.5px; letter-spacing: normal; }
  .gnav .desc { font-size: 10px; line-height: 10px; color: var(--color-text); opacity: 1; margin: 0 0 0 8px; }
  .gnav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0s 0.35s;
  }
  .is-menu-open .gnav-overlay { opacity: 1; visibility: visible; transition: opacity 0.35s; }
  .is-menu-open body { overflow: hidden; }
  .breadcrumb ol { padding: 0 32px; }
  .l-article { margin: 32px auto; }
  .post_content { font-size: 15px; }
  .post_content h2 { margin-left: -16px; margin-right: -16px; }
  .hero__lead { font-size: 24px; }
  .hero__btn a { font-size: 12px; padding: 9px 30px; }
  .hero__sub br { display: none; }
  .post-list__link { gap: 12px; }
  .post-list__title { font-size: 14px; }
}

/* ===== 段取り3で足した物（2026-11-11） ===== */

/* ---- 固定ページの上の帯（画像の上に題） ---- */
.title-area { position: relative; overflow: hidden; background: #333; }
.title-area__img { display: block; width: 100%; height: 240px; object-fit: cover; opacity: 0.85; }
.title-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
  background-size: 3px 3px;
}
.title-area__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 48px;
}
/* 題名は、今のサイトと同じく左寄せ・24px（スマホ 17.55px）。2026-11-16 見比べで合わせた */
.title-area__title { color: #fff; font-size: 32px; line-height: 1.4; font-weight: 700; margin: 0; text-align: left; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1); }

/* ---- 固定ページの本文 ---- */
.l-article.is-page { margin-top: 48px; }
/* 全幅の帯（SWELL の「フルワイド」） */
.post_content .band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 96px max(16px, calc(50vw - var(--article-w) / 2 + 16px));
  background: #fff;
}
.post_content .band.is-gray { background: #f7f7f7; }
.post_content .band > :last-child { margin-bottom: 0; }
.post_content .band > div:last-child > :last-child { margin-bottom: 0; }
/* 帯の左上の灰色の飾り（original_background） */
.has-deco { position: relative; isolation: isolate; }
.has-deco::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: -3%;
  width: 60%;
  height: 50%;
  background: #f7f7f7;
}
/* セクション見出し（英字＋日本語。トップ・固定ページ） */
.section-title { font-family: "Shippori Antique B1", var(--font); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 15px; }
.section-title.is-white { color: #fff; }
.section-title.is-white::after { background: #fff; }
.post_content .section-title { background: none; color: #494949; margin: 0 0 44px; padding: 15px 0 0; font-size: 22.4px; font-weight: 600; }
.post_content .section-title strong { font-weight: 700; }
.post_content .section-title::before { display: none; }
.post_content .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 1.5px;
  background: #494949;
}

/* ---- ボタン ----
   今のサイトの値（2026-11-16 見比べで合わせた）：幅は最低 40%、余白 0.75em 1.5em、字の間 1px。
   「緑」の名前のボタンは、今のサイトの設定で黄色（#e0a82f）になっている */
.btn { text-align: center; margin: 0 0 2em; }
.btn a {
  display: inline-block;
  min-width: 40%;
  padding: 0.75em 1.5em;
  line-height: 1.5;
  letter-spacing: 1px;
  background: var(--color-main);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 80px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn.is-green a { background: #e0a82f; }
.btn.is-red a { background: #f74a4a; }
.btn.is-blue a { background: #338df4; }
@media (hover: hover) { .btn a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } }

/* ---- ステップ ---- */
.step { counter-reset: step; margin-bottom: 2em; }
.step__item { position: relative; counter-increment: step; padding: 0 0 2em 64px; }
.step__item::before {
  content: "STEP " counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.step__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  border-left: 2px dotted #ccc;
}
.step__title { font-size: 1.25em; font-weight: 700; line-height: 1.4; padding-top: 12px; margin-bottom: 0.75em; }
.step__body > :last-child { margin-bottom: 0; }

/* ---- 問い合わせフォームの所 ---- */
.contact-form { margin-bottom: 2em; }
.contact-form__fallback { border: 1px solid var(--color-border); background: #fafafa; padding: 1.5em; color: var(--color-text); }
.contact-form__fallback > :last-child { margin-bottom: 0; }
.contact-form__note { font-size: 0.85em; opacity: 0.7; }
/* 問い合わせフォーム（src/lib/contact-form.mjs） */
.contact-form__form { max-width: 720px; }
.cf-field { margin-bottom: 1.4em; }
.cf-field > label { display: block; font-weight: 700; margin-bottom: 0.4em; }
.cf-req, .cf-opt { display: inline-block; margin-left: 0.6em; padding: 0 0.5em; font-size: 0.75em; font-weight: 400; color: #fff; background: #d9534f; border-radius: 2px; vertical-align: 0.1em; }
.cf-opt { background: #999; }
.contact-form__form input[type=text], .contact-form__form input[type=email], .contact-form__form input[type=tel], .contact-form__form textarea {
  width: 100%; box-sizing: border-box; padding: 0.7em 0.8em; font: inherit; font-size: 16px; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 2px; background: #fafafa;
}
.contact-form__form input:focus, .contact-form__form textarea:focus { outline: 2px solid var(--color-main); outline-offset: 1px; background: #fff; }
.contact-form__form [aria-invalid=true] { border-color: #d9534f; }
.cf-agree label { font-weight: 400; cursor: pointer; }
.cf-error { margin: 0.3em 0 0; color: #d9534f; font-size: 0.85em; }
.cf-error:empty { display: none; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile-box { margin: 0 0 1.4em; min-height: 65px; }
.cf-submit { text-align: center; }
.cf-submit button { min-width: 260px; padding: 1em 2em; font: inherit; font-weight: 700; color: #fff; background: var(--color-main); border: 0; border-radius: 2px; cursor: pointer; }
.cf-submit button:hover { opacity: 0.85; }
.cf-submit button:disabled { opacity: 0.5; cursor: wait; }
.cf-status { text-align: center; font-weight: 700; }
.cf-status:empty { display: none; }
.contact-form__done { border: 2px solid var(--color-main); padding: 1.5em; }
.contact-form__done > :last-child, .contact-form__alt { margin-bottom: 0; }
.contact-form__alt { margin-top: 1.5em; font-size: 0.9em; }

/* ---- リンクの札（ほかのサイトの記事への埋め込み） ---- */
.link-card { margin: 0 auto 2em; max-width: 720px; }
.link-card a {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s;
}
@media (hover: hover) { .link-card a:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); } }
.link-card__img { flex: 0 0 32%; max-width: 200px; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.link-card__img img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.link-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.link-card__title { font-weight: 700; line-height: 1.5; color: var(--color-link); }
.link-card__desc {
  font-size: 0.8em;
  line-height: 1.6;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-card__site { font-size: 0.75em; opacity: 0.6; margin-top: auto; }

/* ---- 音声・動画 ---- */
.post_content .media audio,
.post_content .media video { display: block; width: 100%; }

/* ---- 記事の下（カテゴリ・タグ・シェア） ---- */
.post-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 40px; }
.share { text-align: center; }
.share__msg { font-size: 14px; margin: 0 0 12px; }
.share__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share__btn {
  display: inline-block;
  min-width: 96px;
  padding: 8px 12px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.share__btn.is-facebook { background: #3b5998; }
.share__btn.is-x { background: #000; }
.share__btn.is-hatena { background: #00a4de; }
.share__btn.is-line { background: #00c300; }
.share__btn.is-copy { background: #888; }
.share__btn.is-copy.is-copied::after { content: "しました"; }

/* ---- ページの上へ ---- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-main);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-main);
  border-left: 2px solid var(--color-main);
  transform: translate(-50%, -50%) rotate(45deg);
}
.to-top.is-show { opacity: 1; visibility: visible; transition: opacity 0.3s; }

/* ---- トップ ---- */
.hero picture { display: block; }
.section.is-navy { background: #232654; color: #fff; }
/* トップの文：今のサイトと同じく、段落の下 1em・行の高さ 1.6。ABOUT の文は 1.1 倍、ABOUT と PROFILE の最初の文は行の高さ 2（2026-11-16 見比べで合わせた） */
.home p { margin: 0 0 1em; line-height: 1.6; }
.home .columns > .column > :last-child { margin-bottom: 0; }
.home-lead { font-size: 1em; }
#about .home-lead { font-size: 1.1em; }
.home-lead p { line-height: 2; }
.home .cap-box ul { margin: 0; padding-left: 1.5em; }
.home .cap-box li { margin: 4px 0; }
.service-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-links a { display: block; text-align: center; color: var(--color-text); text-decoration: none; transition: transform 0.25s; }
@media (hover: hover) { .service-links a:hover { transform: translateY(-4px); } }
.service-links img { width: 100%; display: block; margin-bottom: 8px; }
.service-links span { font-size: 20px; font-weight: 700; }
.client-logos { margin-bottom: 48px; }
.map { width: 100%; max-width: 100%; height: 450px; display: block; }
.access-table { width: 100%; border-collapse: collapse; }
.access-table th,
.access-table td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; font-weight: 500; vertical-align: top; }
.access-table th { width: 32%; background: var(--color-gray); }

/* ---- タブ ---- */
/* 今のサイトと同じく、ボタンは幅の半分で真ん中に寄せ、下に細い線・選んだ物は紺の太い線（2026-11-16 見比べで合わせた） */
.tabs__list { display: flex; justify-content: center; margin-bottom: 12px; }
.tabs__btn {
  position: relative;
  flex: 0 1 50%;
  padding: 3.5px 7px 14px;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
}
.tabs__btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-text); }
.tabs__btn[aria-selected="true"] { color: var(--color-main); font-weight: 700; }
.tabs__btn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-main); }
/* 「More」：今のサイトと同じく、幅 64% の白い横長のボタンに細い枠、右に「›」（2026-11-16 見比べで合わせた） */
.more-link { text-align: center; margin: 24px 0 0; padding: 2px 0; }
.more-link a {
  position: relative;
  display: inline-block;
  width: 64%;
  padding: 12px 43.2px;
  background: #fff;
  box-shadow: 0 0 0 1px #dcdcdc;
  color: #666;
  font-size: 14.4px;
  line-height: 1.8;
  text-decoration: none;
}
.more-link a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ---- 記事の一覧（カード・日付と題だけ） ---- */
/* カード：今のサイトと同じく、列の間 16px・行の間 40px、画像の下 16px、題 16px（2026-11-16 見比べで合わせた） */
.post-list.is-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 16px; }
.post-list.is-card .post-list__item + .post-list__item { margin-top: 0; }
.post-list.is-card .post-list__link { flex-direction: column; gap: 16px; }
.post-list.is-card .post-list__thumb { flex: none; width: 100%; }
.post-list.is-card .post-list__title { font-size: 16px; margin: 0 0 2.75px; }
/* 日付と題だけの一覧：上の行に日付と種類、下の行に太字の題 */
.post-list.is-simple .post-list__item + .post-list__item { margin-top: 0; }
.post-list.is-simple .post-list__link { display: block; padding: 16px 4px; border-bottom: 1px solid rgba(199, 199, 199, 0.5); }
.post-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0 0 4px; font-size: 11px; line-height: 13.75px; }
.post-list__metacat { opacity: 0.8; }
.post-list.is-simple .post-list__title { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0; }

@media (min-width: 600px) {
  .hero__lead { font-size: 40px; }
}
@media (max-width: 959px) {
  .title-area__body { padding: 0 32px; }
  /* メイン画像：スマホは縦長の画像に、文字を上に重ねる（今のサイトの追加の CSS と同じ） */
  .hero__inner { inset: 20px 0 auto; padding: 0 15px; }
  .hero__lead { text-align: center; }
  .hero .hero__btn { margin: 27px auto 0; text-align: center; }
  .post-list.is-card { grid-template-columns: 1fr; }
  .service-links { gap: 12px; }
  .service-links span { font-size: 16px; }
  .link-card a { padding: 12px; gap: 12px; }
  .link-card__desc { display: none; }
}
/* スマホ（幅600未満）の見出し。今のサイト（SWELL）は字の基準が約15px になり、見出しも小さくなる。幅375で測った値に合わせた */
@media (max-width: 599px) {
  /* SERVICE の3つの絵：今のサイトと同じく、スマホは縦に大きく並べる（2026-11-16 見比べで合わせた） */
  .hero { margin-bottom: 54px; }
  .home .section__inner { font-size: 15px; }
  .service-links { grid-template-columns: 1fr; gap: 23px; }
  .service-links a { padding-bottom: 15px; }
  .service-links img { margin-bottom: 15px; }
  .service-links span { font-size: 18.75px; line-height: 30px; }
  .post-list.is-card .post-list__title { font-size: 14.25px; }
  /* 日付と題の一覧の題は、今のサイトのスマホでは 15px（カードの題は 14.25px）。2026-11-16 見比べで直した */
  .post-list.is-simple .post-list__title { font-size: 15px; }
  .post_content .band { padding-top: 60px; padding-bottom: 60px; }
  .section { padding: 60px 0; }
  .post-title { font-size: 18.8px; }
  .page-title { font-size: 17.6px; }
  .title-area__img { height: 148.5px; }
  .title-area__body { padding: 0 15px; }
  .title-area__title { font-size: 22px; }
  .breadcrumb ol { padding: 0 15px; font-size: 10px; }
  .post_content h2 { font-size: 18px; }
  .post_content h3 { font-size: 16.5px; }
  .section-title, .post_content .section-title { font-size: 18px; }
  .tabs__btn { font-size: 13px; padding: 3.25px 6.5px 13px; line-height: 13px; }
  /* 今のサイトのスマホは左右 15px・帯の見出しは 7.5px はみ出す・h4 は 15.75px（2026-11-16 見比べで合わせた） */
  .l-article, .section__inner, .l-main.has-sidebar > .sidebar { padding-left: 15px; padding-right: 15px; }
  .post_content h2 { margin-left: -7.5px; margin-right: -7.5px; }
  .post_content h4 { font-size: 15.75px; }
}
@media (max-width: 959px) and (min-width: 450px) {
  .hero__img { max-height: 80vh; object-fit: cover; object-position: bottom; }
}

/* ---- サイト内の検索（今のサイトと同じく、虫眼鏡はスマホの右上だけ） ---- */
.search-btn { display: none; }
@media (max-width: 959px) {
  .search-btn {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-text);
    cursor: pointer;
  }
}
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}
.search-modal[hidden] { display: none; }
.is-search-open body { overflow: hidden; }
.search-modal__inner { width: min(100%, 600px); }
.search-modal__close {
  display: block;
  margin: 16px auto 0;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.search-form { display: flex; }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 0;
  background: #fff;
  font-size: 16px; /* 16px より小さいと、iPhone で画面が勝手に大きくなる */
}
.search-form button {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  background: var(--color-main);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-article .search-form { margin-bottom: 16px; }
.search-status { font-size: 14px; opacity: 0.8; }
.search-results { margin-top: 24px; }
.search-results__excerpt { margin: 6px 0 0; font-size: 13px; line-height: 1.7; opacity: 0.85; }
.search-results mark { background: #fff3a0; color: inherit; }
.search-more { text-align: center; margin-top: 32px; }
.search-more__btn {
  padding: 10px 32px;
  border: 1px solid var(--color-main);
  background: #fff;
  color: var(--color-main);
  font-size: 14px;
  cursor: pointer;
}
.search-results .post-list__date { margin: 0; }
.search-results .post-list__link { align-items: flex-start; }

/* ---- 記事の題の左の日付（今のサイトと同じ「年」と「月/日」の2段） ---- */
.post-title-wrap { display: flex; flex-direction: row-reverse; align-items: center; margin-bottom: 16px; }
.post-title-wrap .post-title { flex: 1; margin: 0; }
.post-title__date { flex: none; text-align: center; line-height: 1; padding: 8px 12px 8px 0; margin-right: 12px; border-right: 1px solid rgba(199, 199, 199, 0.5); }
.post-title__date .__y { display: block; font-size: 14px; margin-bottom: 4px; }
.post-title__date .__md { display: block; font-size: 24px; }
@media (max-width: 599px) {
  .post-title__date .__y { font-size: 11px; }
  .post-title__date .__md { font-size: 17px; }
}

/* ---- 記事と右の欄の並び（960px 以上で横に並べる。今のサイトと同じく、左右の余白 48・欄 304・間 52） ---- */
@media (min-width: 960px) {
  .l-main.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 52px;
    max-width: calc(var(--container-w) + 96px);
    margin: 0 auto;
    padding: 0 48px;
    align-items: start;
  }
  .l-main.has-sidebar > .l-article { max-width: none; padding: 0; margin: 64px 0; }
  .l-main.has-sidebar > .sidebar { margin: 64px 0; }
}
@media (max-width: 959px) {
  .l-main.has-sidebar > .sidebar { max-width: var(--article-w); margin: 0 auto 64px; padding: 0 16px; }
}

/* ---- 右の欄（今のサイトを測った値に合わせた） ---- */
.widget + .widget { margin-top: 40px; }
.widget__title { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.widget__list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.widget__list a { color: inherit; text-decoration: none; }
@media (hover: hover) { .widget__list a:hover { color: var(--color-main); text-decoration: underline; } }
/* Recent Posts：題を並べ、下に線 */
.widget__list.is-posts li { padding: 14px 0; border-bottom: 1px solid rgba(199, 199, 199, 0.5); line-height: 1.6; }
/* Archives・Categories：左に「›」、行ごとに下に線 */
.widget__list.is-menu a { position: relative; display: block; padding: 10px 14px 10px 20px; line-height: 1.4; border-bottom: 1px solid rgba(199, 199, 199, 0.5); }
.widget__list.is-menu a::before { content: "›"; position: absolute; left: 6px; top: 50%; transform: translateY(-55%); opacity: 0.7; }
.widget-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.widget-search__row { display: flex; gap: 10px; }
.widget-search__row input { flex: 1; min-width: 0; padding: 4px 8px; height: 34px; border: 1px solid rgba(199, 199, 199, 0.5); font: inherit; font-size: 16px; }
.widget-search__row button { flex: none; padding: 6px 10px; border: 0; background: #f7f7f7; color: #333; font: inherit; font-size: 14px; cursor: pointer; }

/* ---- 記事の下：前後の記事・書いた人・関連記事 ---- */
.post-section-title { font-size: 20px; font-weight: 700; line-height: 1.6; margin: 0 0 30px; padding: 0 15px; border-left: 2px solid var(--color-main); }
.post-bottom > * + * { margin-top: 96px; }
.post-bottom { margin-top: 64px; }
.pn-links { list-style: none; padding: 0; display: flex; justify-content: space-between; align-items: stretch; gap: 2%; margin: 0; }
.pn-links__item { position: relative; width: 49%; font-size: 13px; }
.pn-links__item.is-next:first-child { margin-left: auto; }
.pn-links__item a { display: flex; align-items: center; height: 100%; min-height: 4em; padding: 0.6em 1em 0.5em; line-height: 1.4; color: inherit; text-decoration: none; transition: box-shadow 0.25s; }
.pn-links__item.is-prev a { border-left: 1.25em solid var(--color-main); }
.pn-links__item.is-next a { border-right: 1.25em solid var(--color-main); justify-content: flex-end; text-align: right; }
.pn-links__item::before { content: ""; position: absolute; top: 50%; width: 0.5em; height: 0.5em; color: #fff; pointer-events: none; z-index: 1; }
.pn-links__item.is-prev::before { left: 0.35em; border-bottom: 1px solid; border-left: 1px solid; transform: rotate(45deg) translateY(-50%); }
.pn-links__item.is-next::before { right: 0.35em; border-bottom: 1px solid; border-right: 1px solid; transform: rotate(-45deg) translateY(-50%); }
@media (hover: hover) {
  .pn-links__item.is-prev a:hover { box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15); }
  .pn-links__item.is-next a:hover { box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.15); }
}
@media (max-width: 599px) { .pn-links__item { font-size: 12px; } }

.author-box__inner { display: flex; padding: 24px; border: 1px solid rgba(199, 199, 199, 0.5); }
.author-box__l { flex: none; width: 160px; text-align: center; }
.author-box__r { flex: 1; min-width: 0; padding-left: 24px; }
.author-box__photo { display: inline-block; width: 100px; height: 100px; border-radius: 50%; }
.author-box__name { display: block; margin-top: 8px; font-size: 17.6px; font-weight: 700; line-height: 1.4; color: inherit; text-decoration: none; }
@media (hover: hover) { .author-box__name:hover { color: var(--color-main); } }
@media (max-width: 599px) {
  .author-box__inner { display: block; padding: 20px 16px; }
  .author-box__l { width: auto; margin-bottom: 16px; }
  .author-box__r { padding-left: 0; }
  .author-box__name { font-size: 16px; }
  .author-box__desc { font-size: 15px; }
}
.author-box__desc { margin: 0; line-height: 1.6; }
.author-box__links { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 8px; }
.author-box__links a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 50%; color: inherit; }

/* 関連記事：今のサイトと同じく、スマホ 2列・600〜1239px 3列（6本）・1240px 以上 4列（8本） */
.related .post-list.is-card { gap: 24px 16px; grid-template-columns: repeat(3, 1fr); }
.related .post-list.is-card .post-list__title { font-size: 14px; }
.related .post-list.is-card .post-list__date { font-size: 11px; }
@media (max-width: 1239px) and (min-width: 600px) { .related .post-list__item:nth-child(n + 7) { display: none; } }
@media (min-width: 1240px) { .related .post-list.is-card { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 599px) {
  .related .post-list.is-card { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .related .post-list.is-card .post-list__title { font-size: 13px; }
}

/* ---- パソコンの左に固定のシェア（今のサイトと同じく 960px 以上だけ。今のサイトにあった Pocket は、Pocket が2025年に終わったので出さない） ---- */
.share-fix { display: none; }
@media (min-width: 960px) {
  .share-fix { display: flex; flex-direction: column; gap: 4px; position: fixed; left: 8px; top: 50%; transform: translateY(-50%); z-index: 10; }
  .share-fix a, .share-fix button {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 0; border-radius: 2px; padding: 0;
    color: #fff; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
  }
  .share-fix .is-facebook { background: #3b5998; }
  .share-fix .is-x { background: #000; }
  .share-fix .is-hatena { background: #00a4de; }
  .share-fix .is-line { background: #00c300; font-size: 8px; }
  .share-fix .is-copy { background: #888; }
  .share-fix .is-copy.is-copied { background: var(--color-main); }
  @media (hover: hover) { .share-fix a:hover, .share-fix button:hover { opacity: 0.8; } }
}

/* 書いた人のページ：書いた人の欄の下に、全部の記事を1列のカードで（今のサイトと同じ） */
.l-article .author-box { margin-bottom: 48px; }
.author-posts .post-list.is-card { grid-template-columns: 1fr; gap: 40px; }

/* 公開が終わったリンク先のひとこと（src/lib/rehype-post.mjs が足す） */
.post_content .link-note { margin: -0.5em 0 2em; font-size: 13px; color: #666; }
.post_content .link-note.is-inline { margin: 0; }

/* スマホ（幅600未満）の記事の下と右の欄。今のサイト（字の基準 約15px）を幅375で測った値に合わせた */
@media (max-width: 599px) {
  .post-title__date .__y { font-size: 11.25px; }
  .post-title__date .__md { font-size: 15.75px; }
  .pn-links__item { font-size: 11.25px; }
  .post-section-title { font-size: 16.9px; }
  .author-box__name { font-size: 14.85px; }
  .author-box__desc { font-size: 13.5px; }
  .related .post-list.is-card .post-list__title { font-size: 13.5px; }
  .widget__list, .widget__title { font-size: 13.5px; }
}

/* ==== 一覧ページ（タグ・カテゴリ・年月）：今のサイト（SWELL）を測った値に合わせた（2026-11-16 見比べ） ==== */
/* 題：灰色の細い線の上に、字の幅だけ紺の線。横の小さい字は太い斜体 */
.page-title:has(.page-title__inner) { line-height: 1.4; padding: 0; border-bottom: 1px solid rgba(199, 199, 199, 0.5); }
.page-title__inner { display: inline-block; padding: 0.25em 0.5em; margin-bottom: -1px; border-bottom: 1px solid var(--color-main); }
.page-title small, .title-area__sub { font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: 1px; opacity: 0.8; margin-left: 14px; }
.title-area__sub { position: relative; top: -2px; }
.term-page .page-title { margin-bottom: 0; }
.term-content { margin-top: 64px; }
/* タグのロゴ：今のサイトと同じく、幅いっぱい・細い枠（1200×630 の形） */
.term-page .term-logo { margin: 48px 0 0; border: 1px solid rgba(199, 199, 199, 0.5); }
.term-page .term-logo img { display: block; width: 100%; max-width: none; aspect-ratio: 1200 / 630; object-fit: cover; box-shadow: none; }
/* 吹き出しのタブ（ロゴのあるタグのページ）：幅 1/4 の箱、選んだ物は紺で下に三角。スマホは幅 1/2 */
.tabs.is-balloon .tabs__list { margin: 0 18px 32px; }
.tabs.is-balloon .tabs__btn { flex: 0 0 25%; padding: 0 4px; margin-bottom: 16px; background: none; font-size: 14px; line-height: 14px; }
.tabs.is-balloon .tabs__btn::before { content: none; }
.tabs.is-balloon .tabs__btn > span { display: block; padding: 14px 7px; background: rgba(199, 199, 199, 0.15); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 4px -4px rgba(0, 0, 0, 0.1); position: relative; }
.tabs.is-balloon .tabs__btn[aria-selected="true"] { color: #fff; font-weight: inherit; }
.tabs.is-balloon .tabs__btn[aria-selected="true"]::after { content: none; }
.tabs.is-balloon .tabs__btn[aria-selected="true"] > span { background: var(--color-main); }
.tabs.is-balloon .tabs__btn[aria-selected="true"] > span::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--color-main); border-bottom-width: 0; }
.l-article.is-wide { max-width: calc(var(--article-w) + 32px); }
/* 上の画像の中の、カテゴリの切りかえ（フォルダの印・今のカテゴリ・›・ほかのカテゴリは白い枠） */
.title-area__body { flex-direction: column; align-items: flex-start; justify-content: center; }
.term-nav { display: flex; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 0 4px; color: #fff; font-size: 11px; line-height: 1; }
.term-nav::before {
  content: ""; width: 11px; height: 11px; margin-right: 6px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5a2 2 0 0 1 2-2h6l2 2h8a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5a2 2 0 0 1 2-2h6l2 2h8a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.term-nav__link { color: #fff; text-decoration: none; }
a.term-nav__link { border: 1px solid #fff; padding: 4px 5.5px; }
.term-nav__sep { position: relative; width: 10px; height: 10px; margin: 0 8px 0 5px; }
.term-nav__sep::before { content: ""; position: absolute; left: 1px; top: 2.5px; width: 5px; height: 5px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }
/* 大きいカード（1列）：画像は 16:9 で影つき、下に題・抜き出しの文・日付 */
.post-list.is-big .post-list__item + .post-list__item { margin-top: 48px; }
.post-list.is-big .post-list__link { display: block; }
.post-list.is-big .post-list__thumb, .post-list.is-list2 .post-list__thumb { background: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 4px -4px rgba(0, 0, 0, 0.1); }
.post-list.is-big .post-list__body { padding-top: 16px; }
.post-list.is-big .post-list__title, .post-list.is-list2 .post-list__title { font-size: 16px; line-height: 1.5; margin: 0; }
.post-list__excerpt { font-size: 13px; line-height: 1.5; margin: 0.5em 0 0; }
.post-list.is-big .post-list__date, .post-list.is-list2 .post-list__date { display: block; margin-top: 12.25px; line-height: 1.25; }
/* 左右交互：上下に細い線、画像は 36%（黄金比の形）、偶数の行は画像が右。パソコンだけ READ MORE の枠 */
.post-list.is-list2 { border-top: 1px solid rgba(199, 199, 199, 0.5); padding-top: 32px; }
.post-list.is-list2 .post-list__item { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(199, 199, 199, 0.5); }
.post-list.is-list2 .post-list__item + .post-list__item { margin-top: 0; }
.post-list.is-list2 .post-list__link { align-items: flex-start; gap: 36px; padding: 0 4px; }
.post-list.is-list2 .post-list__item:nth-child(even) .post-list__link { flex-direction: row-reverse; }
.post-list.is-list2 .post-list__thumb { flex: 0 0 36%; aspect-ratio: 1.618; }
.post-list.is-list2 .post-list__body { flex: 1; min-width: 0; }
.post-list.is-list2 .post-list__cat { right: auto; left: 0; }
.post-list.is-list2 .post-list__excerpt { font-size: 14px; }
.post-list__more { display: inline-block; margin-top: 24px; padding: 6px 36px; font-size: 12px; line-height: 1.6; letter-spacing: 0.5px; box-shadow: 0 0 0 1px rgba(199, 199, 199, 0.5); }
/* ページの番号（「1」の紺の四角） */
.pagination { display: flex; justify-content: center; margin: 39px 0 13px; font-size: 13px; }
.pagination__num { display: block; width: 36px; height: 36px; margin: 6px; line-height: 36px; text-align: center; font-size: 14px; }
.pagination__num.is-current { background: var(--color-main); color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 4px -4px rgba(0, 0, 0, 0.1); }
@media (max-width: 599px) {
  .page-title:has(.page-title__inner) { font-size: 17.55px; }
  .term-content { margin-top: 54px; }
  .term-page .term-logo { margin-top: 40.5px; }
  .tabs.is-balloon .tabs__list { margin: 0 7px 27px; }
  .tabs.is-balloon .tabs__btn { flex-basis: 50%; font-size: 13px; line-height: 13px; }
  .tabs.is-balloon .tabs__btn > span { padding: 13px 6.5px; }
  .term-nav { margin-top: 10.125px; }
  .post-list.is-big .post-list__item + .post-list__item { margin-top: 33.75px; }
  .post-list.is-big .post-list__body { padding-top: 13.5px; }
  .post-list.is-big .post-list__title { font-size: 14.25px; }
  .post-list__excerpt { font-size: 12px; }
  .post-list.is-big .post-list__date, .post-list.is-list2 .post-list__date { margin-top: 11.5px; font-size: 10px; }
  .post-list.is-list2 { padding-top: 20.25px; }
  .post-list.is-list2 .post-list__item { padding-bottom: 20.25px; margin-bottom: 20.25px; }
  .post-list.is-list2 .post-list__link { gap: 13.5px; padding: 0 3.375px; }
  .post-list.is-list2 .post-list__title { font-size: 13.5px; }
  .post-list.is-list2 .post-list__excerpt { font-size: 12.75px; }
  .post-list.is-list2 .post-list__cat { font-size: 10px; line-height: 20px; padding: 0 7.5px; }
  .post-list__more { display: none; }
}
/* トップ：段組みの外の文（プロフィールの名前の文・問い合わせの文）は、今のサイトでは行の高さ 1.8（2026-11-16 見比べで合わせた） */
.home #profile > .section__inner > p:first-of-type, .home #contact > .section__inner > p { line-height: 1.8; }

/* 右の欄がある記事は、本文の左右に 16px の余白（今のサイトと同じ。スマホは余白なし。2026-11-16 見比べ） */
@media (min-width: 600px) {
  .l-main.has-sidebar .post_content { padding-left: 16px; padding-right: 16px; }
  .l-main.has-sidebar .post_content h2 { margin-left: -16px; margin-right: -16px; }
}


/* 一番上の題は今のサイト（24・17.55）より大きく：PC 32・タブレット 26・スマホ 22（2026-11-11 ユーザーと決めた形。2026-11-16 ユーザー「見出しは今小さいので、大きくして」で戻した） */
@media (max-width: 959px) and (min-width: 600px) { .title-area__title { font-size: 26px; } }

/* 活動実績：はじめは新着の数本だけ。More でその場に広げる（2026-11-16 ユーザー「A その場で広げる」） */
.tabs__panel[data-limit="3"]:not(.is-expanded) .post-list__item:nth-child(n + 4),
.tabs__panel[data-limit="6"]:not(.is-expanded) .post-list__item:nth-child(n + 7),
.tabs__panel[data-limit="10"]:not(.is-expanded) .post-list__item:nth-child(n + 11) { display: none; }
