/* ==========================================================
   まちのホームページ屋 ／ リニューアル版スタイル
   ----------------------------------------------------------
   設計の下敷き：jinsholdings.com の実測値
     ・色はほぼ無彩色（白・#f8f8f8・#e6e6e6・#5e5e5e・#1b1b1b）
       で組み、差し色は面積をごく小さく保つ
     ・見出しは極太（700〜750）、本文は細め、行間は 1.7〜1.8
     ・数字は大きく薄いグレーで、飾りとして置く
     ・縦に積まず、横スクロールと折りたたみで
       「1画面あたりの情報量」を下げる
   ========================================================== */

.legacy-content {
  /* ---- 色 ---------------------------------------------- */
  --ink:        #1b1b1b;  /* 見出し・本文 */
  --ink-2:      #5e5e5e;  /* 副次的な文章（白背景で 7.0:1） */
  --ink-3:      #767676;  /* 注記（白背景で 4.5:1。これ以上薄くしない） */
  --ink-4:      #8f8f8f;  /* 大きな数字。白背景で3.3:1（大きい文字のAA基準3:1を満たす） */

  --line:       #e6e6e6;
  --line-2:     #bfbfbf;

  --paper:      #ffffff;
  --paper-2:    #f8f8f8;
  --paper-3:    #f1f1f1;

  --accent:      #1b6b5a;  /* 深緑。リンク・ボタン・細い線だけに使う */
  --accent-deep: #0d3830;
  --accent-tint: #eef4f2;

  --warn:       #7a5a12;
  --warn-tint:  #faf6ec;

  /* ---- 書体 -------------------------------------------- */
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    YuGothic, "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP",
    "MS PMincho", serif;
  --en: "Helvetica Neue", Arial, sans-serif;

  /* ---- 寸法 -------------------------------------------- */
  --shell: 1160px;
  --col:   720px;
  --gutter: clamp(18px, 4vw, 40px);
  --band-y: clamp(56px, 8vw, 108px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt" 1;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent-tint); }


/* ==========================================================
   1. 段組み
   ========================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 読み物の段。長い本文は必ずこの幅に収める */
.col { width: 100%; max-width: var(--col); }

.band { padding-block: var(--band-y); }
.band--soft { background: var(--paper-2); }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }

/* 帯の境目に線を1本。面で区切らないほうが軽く見える */
.band + .band:not(.band--soft) { border-top: 1px solid var(--line); }


/* ==========================================================
   2. 文字組み
   ========================================================== */

/* 英字の小見出し（01 — WORKS） */
.eyebrow {
  display: block;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.eyebrow--ja { font-family: var(--sans); letter-spacing: .06em; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
}

h1, .t1 { font-size: clamp(27px, 4.6vw, 44px); line-height: 1.45; }
h2, .t2 { font-size: clamp(22px, 3.1vw, 31px); }
h3, .t3 { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; }
h4, .t4 { font-size: 17px; line-height: 1.6; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* 見出し直後の導入文。本文よりわずかに大きく、行間を広く */
.lead {
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.95;
  color: var(--ink-2);
  margin-top: 22px;
}
.lead strong { color: var(--ink); font-weight: 700; }

.note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-3);
}
.caption { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }

/* 飾りの大きな数字 */
.num {
  font-family: var(--en);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--ink-4);
  display: block;
}

/* 節の見出しのかたまり */
.sechead { max-width: var(--col); margin-bottom: clamp(30px, 4vw, 52px); }
.sechead .lead { margin-top: 18px; }


/* ==========================================================
   3. ヘッダー
   ========================================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.wordmark { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.wordmark a { color: var(--ink); text-decoration: none; }
.wordmark a:hover { color: var(--accent); }

.masthead nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
}
.masthead nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding-block: 6px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ナビの末尾に置くボタン */
.masthead .nav-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  border-bottom: 0;
  font-weight: 600;
}
.masthead .nav-cta:hover { background: var(--accent); color: #fff; border-bottom-color: transparent; }
/* 現在ページでも、黒い丸ボタンの文字は白のまま */
.masthead nav a.nav-cta[aria-current="page"] { color: #fff; border-bottom-color: transparent; background: var(--accent); }

/* ハンバーガー
   JavaScript が動いているときだけ現れる。動いていなければ
   メニューは開いたまま表示され、どのページにも行ける */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .masthead nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .js .masthead nav { display: none; }
  .js .masthead nav[data-open="true"] { display: block; }
  .masthead nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
  }
  .masthead nav li + li { border-top: 1px solid var(--line); }
  .masthead nav a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 0;
  }
  .masthead nav a[aria-current="page"] { border-bottom: 0; color: var(--accent); }
  .masthead .nav-cta {
    display: inline-block;
    margin-top: 14px;
    text-align: center;
    padding: 12px 20px;
  }
}


/* ==========================================================
   4. ヒーロー
   ========================================================== */

.hero {
  position: relative;
  background: #101010;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  filter: grayscale(1) contrast(1.05) brightness(.62);
}
/* 文字が乗る側を確実に暗くする */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,.85) 0%, rgba(10,10,10,.15) 42%, rgba(10,10,10,0) 62%),
    linear-gradient(100deg, rgba(10,10,10,.93) 0%, rgba(10,10,10,.82) 42%, rgba(10,10,10,.40) 100%);
}
.hero .shell {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 11vw, 132px);
}
.hero h1 { color: #fff; max-width: 17em; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 34em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ヒーロー下の数字 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
  margin: clamp(38px, 5vw, 58px) 0 0;
}
.stats > div { padding: 18px 0 16px; }
.stats > div + div { border-left: 1px solid rgba(255,255,255,.22); padding-left: clamp(16px, 2.5vw, 32px); }
.stats dd { margin: 0; }
.stat-label {
  display: block;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.66);
  margin-bottom: 4px;
}
.stat-value {
  display: block;
  font-family: var(--en);
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}
.stat-value small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  margin-left: 3px;
  color: rgba(255,255,255,.8);
}

/* 狭い画面では数字を1行に収める */
@media (max-width: 460px) {
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 20px; }
  .stat-value small { font-size: 11px; margin-left: 2px; }
  .stats > div + div { padding-left: 12px; }
}

/* 下層ページの見出し（写真なし・白地） */
.pagehead {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(38px, 6vw, 74px) clamp(30px, 4.5vw, 56px);
}
.pagehead .stats { border-color: var(--line); max-width: 660px; }
.pagehead .stats > div + div { border-left-color: var(--line); }
.pagehead .stat-label { color: var(--ink-3); }
.pagehead .stat-value { color: var(--ink); }
.pagehead .stat-value small { color: var(--ink-2); }


/* ==========================================================
   5. ボタン
   ========================================================== */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button::after { content: "→"; font-family: var(--en); }

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.button--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero .button--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .button--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* 文中の控えめなリンク */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.textlink::after { content: "→"; font-family: var(--en); }


/* ==========================================================
   6. カード（3列グリッド）
   ========================================================== */

.cards {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px clamp(16px, 2vw, 22px) 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.card-body .open {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.card-body .open::after { content: " →"; font-family: var(--en); }

/* 札 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--accent { background: var(--accent-tint); color: var(--accent-deep); }
.tag--ink { background: var(--ink); color: #fff; }


/* ==========================================================
   7. 横スクロールの棚
   1画面に全部を積まないための仕掛け。参考サイトと同じ考え方
   ========================================================== */

.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.rail-nav { display: none; gap: 8px; flex-shrink: 0; }
.js .rail-nav { display: flex; }
.rail-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--en);
  font-size: 15px;
  color: var(--ink);
  line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rail-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 720px) { .js .rail-nav { display: none; } }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 300px);
  gap: 16px;
  overflow-x: auto;
  /* proximity にすること。mandatory だと指の勢いを常に吸い取って
     止まり方が不自然になり、縦スクロールとも競合する */
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 14px;
  /* 画面の端まで流して「まだ先がある」ことを見せる */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  /* これが無いと 1枚目が左の余白を食い潰して画面端に張り付き、
     本文と左端が揃わなくなる（スナップが padding を無視するため） */
  scroll-padding-inline: var(--gutter);
  /* 端までこすったときにページごと動かしたり
     ブラウザの「戻る」ジェスチャーにならないようにする */
  overscroll-behavior-x: contain;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.rail::-webkit-scrollbar-track { background: var(--line); border-radius: 3px; }

.rail-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
@media (min-width: 721px) { .rail-hint { display: none; } }


/* ==========================================================
   8. 写真＋文章の2段組み
   ========================================================== */

.split {
  display: grid;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--flip .split-media { order: 2; }
}
.split-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split-body h2 + .lead, .split-body h3 + .lead { margin-top: 16px; }
.split-body p { color: var(--ink-2); }
.split-body p strong { color: var(--ink); }

/* 幅いっぱいの写真の帯 */
.figure-band { margin-block: clamp(28px, 4vw, 48px); }
.figure-band img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
.figure-band figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }


/* ==========================================================
   9. 手順（番号つき）
   ========================================================== */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: #fff; padding: clamp(20px, 2.4vw, 28px); }
.step .num { margin-bottom: 6px; }
.step h3 { margin-bottom: 6px; }
.step .step-meta {
  display: inline-block;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  margin-bottom: 14px;
}
.step ul { margin: 0; padding-left: 1.15em; }
.step li { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin-bottom: 8px; }
.step li:last-child { margin-bottom: 0; }
.step li strong { color: var(--ink); font-weight: 600; }


/* ==========================================================
   10. 定義リスト（あらまし・仕様）
   ========================================================== */

.digest { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.digest > div {
  display: grid;
  gap: 6px 28px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .digest > div { grid-template-columns: 180px 1fr; } }
.digest dt { font-weight: 700; font-size: 15px; }
.digest dt .note { display: block; font-weight: 400; margin-top: 2px; }
.spec dd .note, .split-body .spec dd .note { display: block; }
.digest dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.digest dd strong { color: var(--ink); }

.spec { margin: 26px 0 0; display: grid; border-top: 1px solid var(--line); }
.spec > div {
  display: grid;
  gap: 4px 28px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .spec > div { grid-template-columns: 150px 1fr; } }
.spec dt { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.spec dd { margin: 0; font-size: 15.5px; }
.spec dd .note { margin-top: 4px; }


/* ==========================================================
   11. 料金
   ========================================================== */

.plans { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.plan { border: 1px solid var(--line); background: #fff; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; }
.plan--pick { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan .tag { margin-bottom: 14px; }
.plan h3 { margin-bottom: 4px; }
.plan .plan-for { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.plan .price {
  font-family: var(--en);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  display: block;
}
.plan .price small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute; left: 4px; top: 20px;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* 金額の内訳 */
.ledger { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ledger th, .ledger td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.ledger td:last-child, .ledger th:last-child { text-align: right; white-space: nowrap; font-family: var(--en); font-weight: 500; }
.ledger .sub { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; font-family: var(--sans); font-weight: 400; }
.ledger tfoot td, .ledger tfoot th { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 17px; padding-top: 16px; }


/* ==========================================================
   12. 折りたたみ（よくある質問・但し書き）
   ========================================================== */

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.65;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:hover { color: var(--accent); }
.qa .qa-body { padding: 0 0 24px; color: var(--ink-2); font-size: 15px; max-width: var(--col); }

/* 本文中の補足 */
.aside {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(18px, 2.2vw, 26px);
  margin-block: 26px;
}
.aside h3, .aside h4 { margin-bottom: 10px; }
.aside p, .aside li { font-size: 14.5px; color: var(--ink-2); }
.aside--warn { background: var(--warn-tint); border-color: #e8dcc0; }
.aside--accent { background: var(--accent-tint); border-color: #cfe0da; }


/* ==========================================================
   13. 次に読むもの
   ========================================================== */

.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px clamp(18px, 2.2vw, 26px);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.next + .next { margin-top: 12px; }
.next:hover { border-color: var(--ink); background: var(--paper-2); }
.next-label {
  display: block;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.next-title { display: block; font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }
.next-desc { display: block; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.next .arrow { font-family: var(--en); font-size: 18px; color: var(--ink-3); flex-shrink: 0; }
.next:hover .arrow { color: var(--accent); }

.nextgrid { display: grid; gap: 12px; }
@media (min-width: 860px) { .nextgrid { grid-template-columns: 1fr 1fr; } .nextgrid .next + .next { margin-top: 0; } }


/* ==========================================================
   14. 締めの誘導
   ========================================================== */

.cta { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 88px); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); max-width: 40em; margin-top: 16px; }
.cta .button { background: #fff; color: var(--ink); border-color: #fff; margin-top: 28px; }
.cta .button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta .note { color: rgba(255,255,255,.6); margin-top: 16px; }

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cta-inline a { font-weight: 700; }
.cta-inline span { font-size: 13.5px; color: var(--ink-3); }


/* ==========================================================
   15. フォーム
   ========================================================== */

.form { max-width: var(--col); margin-top: 30px; }
.field { margin-bottom: 26px; }
.field > label,
.field > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req, .opt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: 2px;
}
.req { background: var(--ink); color: #fff; }
.opt { background: var(--paper-3); color: var(--ink-3); }
.field .hint { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }

/* ラジオボタンの選択肢 */
.choices { display: grid; gap: 8px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--ink); background: var(--paper-2); }
.choice input { margin: 3px 0 0; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 12px 14px;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 6px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }

/* 迷惑メール対策の隠しフィールド（人には見せません） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 28px; }
.consent input { margin-top: 6px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }

.submit {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 15px 34px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.submit:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.submit:disabled { opacity: .55; cursor: default; }

/* 送信結果の知らせ */
.form-status {
  display: none;
  border-radius: 3px;
  padding: 18px 20px;
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.8;
}
.form-status.is-shown { display: block; }
.form-status p { margin: 0 0 8px; }
.form-status > :last-child { margin-bottom: 0; }
.form-status--ok { background: var(--accent-tint); border: 1px solid var(--accent); color: var(--accent-deep); }
.form-status--ng { background: #fbeeec; border: 1px solid #9c3b33; color: #9c3b33; }

/* 本文中の枠つきの案内（旧ページも使っています） */
.callout {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(18px, 2.2vw, 26px);
  margin-block: 24px;
}
.callout h3, .callout h4 { margin-bottom: 10px; }
.callout p, .callout li { font-size: 14.5px; color: var(--ink-2); }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: var(--warn-tint); border-color: #e8dcc0; }
.callout--accent { background: var(--accent-tint); border-color: #cfe0da; }
.callout-title { display: block; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 8px; }

/* 旧ページの導入文クラス */
.section-lead {
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.95;
  color: var(--ink-2);
  margin-top: 22px;
  max-width: var(--col);
}
.section-lead strong { color: var(--ink); font-weight: 700; }

/* 旧ページの下層ヘッダー */
.hero--sub { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero--sub .hero-media { display: none; }
.hero--sub h1 { color: var(--ink); }
.hero--sub .lead, .hero--sub .hero-lead { color: var(--ink-2); }
.hero--sub .eyebrow { color: var(--ink-3); }
.hero--sub .stats { border-color: var(--line); max-width: 660px; }
.hero--sub .stats > div + div { border-left-color: var(--line); }
.hero--sub .stat-label { color: var(--ink-3); }
.hero--sub .stat-value { color: var(--ink); }
.hero--sub .stat-value small { color: var(--ink-2); }
.hero-lead {
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.95;
  margin-top: 22px;
  max-width: 34em;
}


/* ==========================================================
   16. フッター
   ========================================================== */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 32px;
  font-size: 14px;
}
.footer-meta { margin: 0 0 30px; display: grid; gap: 18px 40px; }
@media (min-width: 760px) { .footer-meta { grid-template-columns: repeat(3, 1fr); } }
.footer-meta dt { font-size: 12px; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.footer-meta dd { margin: 0; color: var(--ink); }

.site-footer ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.site-footer ul a:hover { color: var(--accent); text-decoration: underline; }
.site-footer > .shell > p { margin: 0; font-size: 12.5px; color: var(--ink-3); }


/* ==========================================================
   17. 旧ページ（ご依頼条件・法定表記）が使っている部品
   ========================================================== */

.works { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr)); }
.work {
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.work:hover { border-color: var(--ink); transform: translateY(-2px); }
.work > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-body { padding: 20px clamp(16px, 2vw, 22px) 22px; flex: 1; display: flex; flex-direction: column; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.work-body h3 { margin-bottom: 10px; }
.work-desc { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.work-open { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.work-open::after { content: " →"; font-family: var(--en); }
.tag--free { background: var(--accent-tint); color: var(--accent-deep); }

.rule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule > li { border-bottom: 1px solid var(--line); padding-block: 22px; }
.rule h3 { margin-bottom: 10px; }
.rule p, .rule li { color: var(--ink-2); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th { font-weight: 700; color: var(--ink); }
td { color: var(--ink-2); }

hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ==========================================================
   18. 印刷
   ========================================================== */

@media print {
  .masthead, .cta, .rail-nav, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  .hero { background: #fff; color: #000; }
  .hero-media { display: none; }
  .hero h1, .hero .lead, .hero .eyebrow { color: #000; }
  .band { padding-block: 18pt; }
  a { color: #000; }
}


/* ==========================================================
   19. ご依頼条件・法定表記ページが使っている部品
   （中身は書き換えずに、見た目だけ新しい体系へ寄せています）
   ========================================================== */

/* ---- 料金の行リスト ---- */
.rates { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.rates > li { border-bottom: 1px solid var(--line); padding: 18px 0; display: grid; gap: 4px 24px; }
@media (min-width: 720px) {
  .rates > li { grid-template-columns: minmax(0, 15rem) minmax(0, 8.5rem) minmax(0, 1fr); align-items: baseline; }
}
.rate-name { font-weight: 700; }
.rate-price { font-family: var(--en); font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-desc { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ---- 精算率のリスト ---- */
.settle { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.settle > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.settle .when { font-size: 15px; min-width: 0; }
.settle .rate {
  font-family: var(--en); font-size: 1.6rem; font-weight: 500; line-height: 1.2;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink);
}
.settle > li:first-child .rate { color: var(--ink-3); }
.settle-row { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; }
.settle-bar {
  display: block; width: 100%; height: 6px;
  background: var(--paper-3); border: 0; overflow: hidden; margin-top: 10px;
}
.settle-bar::before { content: ""; display: block; height: 100%; width: var(--v, 0%); background: var(--ink); }
.settle > li:first-child .settle-bar::before { background: var(--line-2); }

/* ---- ○×の対比 ---- */
.duo { display: grid; gap: 20px; margin-bottom: 8px; }
@media (min-width: 720px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.duo > div { border-top: 2px solid var(--line-2); padding-top: 18px; }
.duo > div.is-yes { border-top-color: var(--accent); }
.duo ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.duo li { padding-left: 22px; position: relative; margin-bottom: 9px; line-height: 1.8; color: var(--ink-2); }
.duo .yes li::before, .duo .no li::before { position: absolute; left: 0; top: 0; font-size: .95em; font-weight: 700; }
.duo .yes li::before { content: "○"; color: var(--accent); }
.duo .no  li::before { content: "×"; color: #9c3b33; }

/* ---- 目次（丸いリンク） ---- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 44px; padding: 0; }
.jump a {
  display: inline-block; font-size: 13px; line-height: 1.6;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  text-decoration: none; color: var(--ink-2); background: #fff;
  transition: border-color .15s ease, color .15s ease;
}
.jump a:hover { border-color: var(--ink); color: var(--ink); }

/* ---- 見出しに添えるアイコン ---- */
.head-icon { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.head-icon svg { flex: none; color: var(--accent); }
.head-icon h2 { margin: 0; }

/* ---- 目次のマス ---- */
.index-grid { display: grid; gap: 12px; list-style: none; margin: 0 0 44px; padding: 0; }
@media (min-width: 560px) { .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.index-grid a {
  display: flex; align-items: center; gap: 13px; height: 100%;
  border: 1px solid var(--line); background: #fff; padding: 15px 16px;
  text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.index-grid a:hover { border-color: var(--ink); background: var(--paper-2); }
.index-grid svg { flex: none; color: var(--accent); }
.index-grid .idx-num {
  display: block; font-family: var(--en); font-size: 11px;
  letter-spacing: .12em; font-weight: 600; color: var(--ink-3); line-height: 1.4;
}
.index-grid .idx-name { font-weight: 700; font-size: 15px; line-height: 1.5; }

/* 縦長の写真は、横長に切らずに縦のまま置く */
.split-media img.is-portrait { aspect-ratio: 4 / 5; object-position: 50% 30%; }
@media (min-width: 860px) { .split-media img.is-portrait { max-height: 560px; } }

/* 旧ページの見出し帯は、写真がないぶん余白を詰める */
.hero--sub .shell { padding-block: clamp(38px, 6vw, 74px) clamp(30px, 4.5vw, 56px); }

/* ==========================================================
   20. ページ内の目次（長いページの頭に置く）
   ========================================================== */

.jumpnav { margin-top: clamp(26px, 3.4vw, 40px); }
.jumpnav-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.jumpnav .jump { margin-bottom: 0; }
.jumpnav .jump a { background: #fff; }

/* 帯の中に置くときは白地が浮かないようにする */
.band--soft .jumpnav .jump a { background: var(--paper-2); }
