/* ============================================================
   FUTSU — simple.css（2026-09-29）
   下層ページのシンプル化。ビルド済みの shell / lower CSS の「後」に読み込む上書き専用。
   トップページ（index.html）では読み込まない＝トップの見た目は変わらない。
   規範: 影なし／本文15〜16px・注記12px以上／アクセント青は線と図形だけ
   ============================================================ */

/* 下層ページにはスナップ対象（.station）が無い。フッターだけが吸着点になるのを防ぐ */
html { scroll-snap-type: none !important; }
.footer { scroll-snap-align: none; }

/* ---------- 1. ヘッダー：浮かせず帯にする（本文との重なりをなくす） ---------- */
.site-header {
  height: 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  pointer-events: auto;
}
.brand {
  position: absolute; top: 50%; left: var(--gutter);
  transform: translateY(-50%);
  margin: 0;
}
.nav {
  position: absolute; top: 50%; right: var(--gutter);
  transform: translateY(-50%);
  background: none; padding: 0; gap: 4px; border-radius: 0;
}
.nav__link {
  position: relative;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  padding: 12px 16px;
}
.nav__link:hover, .nav__link.is-current { color: var(--ink); background: none; }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-micro) var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link--cta {
  margin-left: 12px; padding: 12px 24px;
  background: var(--pill-dark); color: #fff; font-weight: 700;
}
.nav__link--cta:hover, .nav__link--cta.is-current { background: #000; color: #fff; }
.nav__link--cta::after { display: none; }
/* 固定バッジは本文に重なるため下層では出さない（診断への導線はページ末尾とフッターに置く） */
.badge { display: none; }

/* ---------- 0. 折り返しを整える（行末に数文字だけ残さない） ---------- */
.page-head h1, .page-head .lead, .sec-head h2, .closing h2, .closing p,
.svc__lead, .svc__desc, .plist h3, .plist p, .proof p, .mvv__decl, .mvv__body,
.flow__body, .callout, .section--dark h2, .pair__from, .pair__to, .work-body h3, .post-card h3 { text-wrap: balance; word-break: auto-phrase; }
.prose p, .msg__body p, .faq__a, .dl dd, .case-body p { text-wrap: pretty; word-break: auto-phrase; }

/* ---------- 2. ページ見出し ---------- */
.page-head { padding: 144px var(--gutter) 8px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .03em; }
.page-head .lead { font-size: 16px; line-height: 1.9; margin-top: 18px; max-width: 36em; }
.pix-deco, .pix-dots, .page-head > .iconbox { display: none; }

/* ---------- 3. 余白と文字 ---------- */
.section { max-width: 1040px; padding: 64px var(--gutter); }
main > .section + .section { padding-top: 40px; }
.page-head + .section { padding-top: 56px; }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 30px); }

.prose p, .svc-block .desc, .mvv__body, .msg__body p, .case-body p { font-size: 16px; line-height: 2; }
.feature__body, .value__body, .flow__body, .tile p, .faq__a, .checklist li,
.pair__from, .pair__to, .ba__list li, .linkcard__desc, .cta-plain p { font-size: 15px; line-height: 1.9; }
.feature__head, .value__head, .flow__title { font-size: 17px; }
.callout { font-size: 14px; }
.dl dt, .dl dd { font-size: 15px; padding: 18px 0; }
.col-item .ttl { font-size: 16px; }

/* ---------- 4. 事業の一覧（事業内容ページ） ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc__link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr) auto;
  align-items: center; gap: 8px 32px;
  padding: 36px 12px;
  color: var(--ink);
  transition: background var(--dur-micro) var(--ease);
}
.svc__link:hover { background: var(--surface); }
.svc__no { font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.svc__ttl { font-size: 24px; line-height: 1.4; letter-spacing: .02em; }
.svc__lead { font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--ink-2); margin-top: 6px; }
.svc__desc { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.svc__more {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.svc__more i { font-style: normal; transition: transform var(--dur-comp) var(--ease); }
.svc__link:hover .svc__more i { transform: translateX(5px); }

/* 実績の抜粋: PCは3枚、SPは2列×2段の4枚 */
.works-grid--teaser .work-card:nth-child(n+4) { display: none; }

/* ---------- 5. 見出し＋1行の一覧（枠なし・2列） ---------- */
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--line); }
.plist > li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.plist h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.6; }
.plist h3 .icon { width: 22px; height: 22px; color: var(--accent-deep); }
.plist p { font-size: 15px; line-height: 1.9; color: var(--ink-2); margin-top: 6px; }
.plist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.plist__no { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--muted); min-width: 26px; }

/* ---------- 6. つくってきたもの（図＋名前＋説明の行） ---------- */
.proofs { border-top: 1px solid var(--line); }
.proof {
  display: grid;
  grid-template-columns: 88px minmax(0, 300px) minmax(0, 1fr);
  align-items: center; gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.proof__fig {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 88px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.proof__fig svg { width: 56px; height: auto; max-height: 60px; margin: 0; image-rendering: pixelated; }
.proof h3 { font-size: 17px; line-height: 1.5; }
.proof .tagpills { margin-top: 10px; }
.proof p { font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 7. 理念（会社概要） ---------- */
.mvv { gap: 0; border-top: 1px solid var(--line); }
.mvv__item {
  display: grid; grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 32px; align-items: baseline;
  border-left: none; padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.mvv__label { font-size: 12px; }
.mvv__decl { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; }
.mvv__body { margin-top: 12px; max-width: 38em; }

/* ---------- 8. よくある質問 ---------- */
/* 回答文は横並び（flex）にしない。文中にリンクがあると「文｜リンク｜文」の3列に割れて読めなくなる */
.faq__a { display: block; }
.faq__a:has(> .faq__badge), .faq__a--b { position: relative; padding-left: 38px !important; }
.faq__a:has(> .faq__badge) > .faq__badge, .faq__a--b > .faq__badge { position: absolute; left: 2px; top: 2px; }

details.faq__item { padding: 0; }
details.faq__item > summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 2px; position: relative;
  font-size: 16px;
}
details.faq__item > summary::-webkit-details-marker { display: none; }
details.faq__item > summary::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-micro) var(--ease);
}
details.faq__item[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details.faq__item > .faq__a { margin: 0; padding: 0 2px 24px; }

/* フォームの同意欄のリンク（指で押せる高さに） */
.form .agree a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 9. 問い合わせの3ステップ（1行の帯） ---------- */
.steps3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  max-width: 640px; margin: 0 auto 36px;
  counter-reset: s3;
}
.steps3 li {
  counter-increment: s3;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 500; line-height: 1.5;
}
.steps3 li::before {
  content: counter(s3);
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-en); font-weight: 700; font-size: 12px;
}

/* ---------- 10. ページ末尾の相談ブロック ---------- */
.closing { max-width: 1040px; margin: 32px auto 96px; padding: 0 var(--gutter); }
.closing__inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 64px 32px; text-align: center;
}
.closing h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .02em; }
.closing p { font-size: 15px; line-height: 1.9; color: var(--ink-2); margin-top: 12px; }
.closing__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.closing__btns .btn { margin-top: 0; }

/* ---------- 11. 重複の整理と、指で押せる大きさ ---------- */
/* ページ末尾の「対応エリア」リンク列はフッターと同じ内容なので出さない */
main nav[aria-label="対応エリア"] { display: none; }
main .section:has(> nav[aria-label="対応エリア"]) { display: none; }
/* 記事ページ（blog-article.css が後から読み込まれるので main を付けて優先させる） */
main .blog-post__kicker { font-size: 12px; }
main .page-back { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 12. ブログ一覧：最初は12件、あとは「もっと見る」 ---------- */
.post-grid:not(.is-open) .post-card:nth-child(n+13) { display: none; }
.more-wrap { text-align: center; margin-top: 40px; }
.more-wrap .btn { margin-top: 0; }

/* ---------- タブレット ---------- */
@media (min-width: 769px) and (max-width: 1080px) {
  .nav__link { font-size: 13px; padding: 12px 12px; }
  .nav__link::after { left: 12px; right: 12px; }
  .nav__link--cta { padding: 12px 20px; }
  .svc__link { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px 22px; }
  .proof { grid-template-columns: 88px minmax(0, 240px) minmax(0, 1fr); gap: 8px 24px; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 768px) {
  .site-header { height: 60px; }
  .menu-btn { top: 8px; right: 12px; min-height: 44px; border: 1px solid var(--line); }
  .page-head { padding: 108px var(--gutter) 4px; }
  .page-head .lead { font-size: 15px; }

  .section { padding: 48px var(--gutter); }
  main > .section + .section { padding-top: 28px; }
  .page-head + .section { padding-top: 40px; }
  .sec-head { margin-bottom: 24px; }
  .prose p, .svc-block .desc, .mvv__body, .msg__body p, .case-body p { font-size: 15px; line-height: 1.95; }
  .callout { font-size: 14px; }

  /* ドロワー：4項目を1列で大きく＋診断ボタン */
  .drawer { padding: 84px 28px 40px; justify-content: flex-start; }
  .drawer__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .drawer a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 2px; }
  .drawer a b { order: 1; font-size: 20px; }
  .drawer a span { order: 2; font-size: 12px; }
  .drawer__grid--sub { margin-top: 32px; }
  .drawer__grid--sub a {
    justify-content: center; align-items: center;
    padding: 16px 24px; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--radius-pill);
  }
  .drawer__grid--sub a b { font-size: 16px; }
  .drawer__grid--sub a span { display: none; }

  .svc__link { grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 6px 8px; padding: 28px 2px; }
  .svc__no { padding-top: 7px; }
  .svc__ttl { font-size: 20px; }
  .svc__desc, .svc__more { grid-column: 2; }

  .works-grid--teaser .work-card:nth-child(4) { display: block; }

  .plist, .plist--3 { grid-template-columns: minmax(0, 1fr); }
  .plist > li { padding: 22px 0; }

  .proof { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 22px 0; }
  .proof__fig { width: 64px; height: 64px; border-radius: 12px; }
  .proof__fig svg { width: 40px; max-height: 44px; }
  .proof p { grid-column: 1 / -1; }

  .mvv__item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 30px 0; }
  .mvv__body { margin-top: 10px; }

  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }

  a.tagpill { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .toc a { display: inline-block; padding: 10px 0; }

  .closing { margin: 24px auto 64px; }
  .closing__inner { padding: 44px 20px; border-radius: 20px; }
  .closing__btns { flex-direction: column; align-items: stretch; }
  .closing__btns .btn { justify-content: center; }

}
