@charset "UTF-8";
/* ============================================================================
   IELTS MyEssay — site.css
   2026-09-05 全面刷新（旧 custom-new.css を置き換え）
   ----------------------------------------------------------------------------
   旧デザインの何を変えたか
   ----------------------------------------------------------------------------
   1. **中央揃えをやめた。** 見出しも本文も全部センターだったため、どこが章の
      始まりか分からず、1画面に1つの情報しか入らなかった。左揃えの編集レイアウト
      にして、同じ内容を1/3の高さに収める。
   2. **アニメーションで本文を隠すのをやめた。** .swipe-animation / .typeText は
      JSが発火するまで中身が空で、未発火のまま巨大な空白として残っていた。
      いまは CSS だけで完結し、JSが動かなくても全文が読める。
   3. **角丸40px・多重グラデーションをやめた。** 面の輪郭が全部同じ丸みで、
      重要度の差が出せていなかった。角丸は 8/12/20px の3段に絞る。
   4. **Bootstrap を外した。** グリッドは CSS Grid、モーダル・アコーディオンは
      自前。外部CSS/JSが2本減る。
   5. **モバイルに追従CTAを足した。** SPではCTAがハンバーガーの中にしか無かった。

   色はロゴのまま（赤・茶・橙）。構造とタイポグラフィだけを入れ替えている。
   ========================================================================= */

/* ==========================================================================
   1. トークン
   ========================================================================== */
:root {
  /* 赤 — ブランド基準は red-600（主CTA） */
  --red-50:  #fef4f1;
  --red-100: #fde5df;
  --red-200: #f9c6ba;
  --red-300: #f3a08c;
  --red-400: #e9735a;
  --red-500: #dc4e31;
  --red-600: #c33d23;
  --red-700: #a1301a;
  --red-800: #7e2614;

  /* 茶 — 見出し・ヘッダーの地。ブランド基準は brown-700 */
  --brown-50:  #faf6f3;
  --brown-100: #f1e8e1;
  --brown-200: #e0cdc0;
  --brown-300: #c8ab99;
  --brown-400: #a9836b;
  --brown-500: #8d6249;
  --brown-600: #7c441e;
  --brown-700: #653718;
  --brown-800: #4b2911;
  --brown-900: #331c0c;

  /* 橙 — 差し色。ベタ塗りの面には使わない */
  --orange-50:  #fff8ea;
  --orange-100: #ffefd0;
  --orange-300: #fcd280;
  --orange-500: #f0a01a;
  --orange-600: #cf8409;
  --orange-700: #a06706;

  /* 中性色 — わずかに茶へ寄せて地色と馴染ませる */
  --n-0:   #ffffff;
  --n-25:  #fdfbfa;
  --n-50:  #faf7f4;
  --n-100: #f2ede9;
  --n-200: #e6ded8;
  --n-300: #d2c6bd;
  --n-400: #a89a90;
  --n-500: #7d7168;
  --n-600: #5f554e;
  --n-700: #453d38;
  --n-800: #2f2925;
  --n-900: #1e1a17;

  /* 意味ベースの別名。ページ側はこちらを使い、16進数を直書きしない */
  --surface:        var(--n-0);
  --surface-tinted: var(--n-50);
  --surface-deep:   var(--brown-800);

  --ink:        var(--n-800);
  --ink-strong: var(--brown-700);
  --ink-muted:  var(--n-600);
  --ink-subtle: var(--n-500);
  --ink-invert: #fdf7f3;

  --line:        var(--n-200);
  --line-strong: var(--n-300);

  --brand:  var(--brown-600);
  --accent: var(--red-600);
  --accent-hover: var(--red-700);
  --highlight: var(--orange-500);

  /* タイポグラフィ */
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
             "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;

  --fs-micro: clamp(.7rem, .68rem + .1vw, .78rem);
  --fs-small: clamp(.82rem, .8rem + .12vw, .9rem);
  --fs-body:  clamp(.95rem, .92rem + .16vw, 1.0625rem);
  --fs-lede:  clamp(1.02rem, .96rem + .3vw, 1.22rem);
  --fs-h3:    clamp(1.1rem, 1rem + .5vw, 1.4rem);
  --fs-h2:    clamp(1.55rem, 1.2rem + 1.5vw, 2.5rem);
  --fs-h1:    clamp(1.9rem, 1.35rem + 2.1vw, 3.15rem);

  --lh-tight: 1.24;
  --lh-snug:  1.5;
  --lh-body:  1.9;

  /* 余白 */
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
  --gap:  clamp(1rem, 2.5vw, 1.75rem);
  --gap-lg: clamp(1.75rem, 4vw, 3rem);

  /* 面 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --sh-sm: 0 1px 2px rgba(60, 35, 20, .05), 0 2px 8px rgba(60, 35, 20, .04);
  --sh-md: 0 2px 4px rgba(60, 35, 20, .05), 0 10px 28px rgba(60, 35, 20, .07);
  --sh-lg: 0 4px 8px rgba(60, 35, 20, .06), 0 24px 56px rgba(60, 35, 20, .1);

  --header-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================================
   2. リセット
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* 固定ヘッダーの下に見出しが潜り込むのを防ぐ。旧版に無く、
   ナビから飛ぶと見出しがヘッダーに隠れていた。 */
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   3. レイアウト
   ========================================================================== */
.wrap {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, 760px); }

.section { padding-block: var(--section-pad); }
.section--tinted { background: var(--surface-tinted); }

.section__head { max-width: 46rem; margin-bottom: var(--gap-lg); }

.eyebrow {
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 2.5rem;
  height: 2px;
  background: var(--orange-300);
}

.section__title {
  /* 日本語の見出しを読点・句点で折る（keep-all）。
     ただし keep-all + overflow-wrap:normal だと、区切りの無い一続きの
     日本語がどこでも折れず、狭い画面でそのまま画面外へはみ出していた。
     iOS Safari は横にはみ出すと表示領域そのものを広げるので、
     見出し1つのはみ出しがページ全体を右へずらしてしまう。
     anywhere は「他に折り返せる場所が無いときだけ」効くので、
     普段の折り返し位置は keep-all のまま変わらない。 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
  color: var(--ink-strong);
}
.section__lede {
  margin-top: 1rem;
  font-size: var(--fs-lede);
  line-height: 1.85;
  color: var(--ink-muted);
}
.section__lede strong { color: var(--ink); font-weight: 700; }

.section__foot {
  margin-top: var(--gap);
  font-size: var(--fs-small);
  color: var(--ink-subtle);
}
.section__foot a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-center { text-align: center; }

/* 幅に余裕があるときだけ入れる改行。狭い画面では通常の折り返しに任せる */
.br-md { display: none; }
@media (min-width: 700px) { .br-md { display: inline; } }

/* ==========================================================================
   4. ボタン
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85rem 1.6rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn i { font-size: .9em; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(120, 35, 15, .2), 0 8px 20px rgba(120, 35, 15, .22);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(120, 35, 15, .22), 0 14px 30px rgba(120, 35, 15, .28);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink-strong);
  background: var(--n-0);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--brown-50); }

.btn--ghost-invert {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--ghost-invert:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }

.btn--sm { padding: .55rem 1.05rem; font-size: var(--fs-micro); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--fs-body); }

/* ==========================================================================
   5. ヘッダー
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header__logo img { width: 132px; height: auto; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); }
.site-nav__cta { display: none; }

.site-header__cta { flex: none; }

.site-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-strong);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__cta { display: none; }
  .site-header__toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.5rem;
    background: var(--n-0);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a {
    padding: .95rem .25rem;
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--line);
  }
  .site-nav__cta {
    display: block;
    margin-top: 1rem;
    padding: .95rem !important;
    border: 0 !important;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: #fff !important;
    text-align: center;
  }
}

/* ==========================================================================
   6. ヒーロー
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 92% 8%, var(--orange-50) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, var(--red-50) 0%, transparent 60%),
    var(--n-25);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: var(--gap-lg);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--ink-strong);
  /* 日本語の見出しを単語の途中で折らない。
     「見てほ／しい。」のような割れ方を防ぐ。
     はみ出したときだけ折る anywhere を保険に入れる（.section__title と同じ理由）。
     ここを break-word にすると 320px 幅で折れずにはみ出したままになる。 */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  /* 下線は文字ではなく面で引く。行間を詰めずに強調できる */
  background: linear-gradient(transparent 68%, var(--orange-300) 68%, var(--orange-300) 90%, transparent 90%);
}

.hero__lede {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: var(--fs-lede);
  line-height: 1.9;
  color: var(--ink-muted);
}
.hero__lede strong { color: var(--ink); font-weight: 700; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.hero__facts li { display: flex; align-items: baseline; gap: .45rem; }
.hero__facts-num {
  font-family: var(--font-en);
  font-size: 1.35em;
  font-weight: 800;
  color: var(--ink-strong);
  letter-spacing: -.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

.hero__note {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.hero__note i { color: var(--highlight); margin-right: .35rem; }
.hero__note strong { color: var(--ink); }
.nowrap { white-space: nowrap; }
.hero__note code {
  display: inline-block;
  margin-left: .2rem;
  padding: .1rem .5rem;
  border-radius: 4px;
  background: var(--brown-100);
  color: var(--brown-700);
  font-weight: 700;
  letter-spacing: .06em;
}

/* ヒーローの図版 = 返却物の縮図 */
.hero__card {
  background: var(--n-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  rotate: -1.2deg;
}
.hero__card-head {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  background: var(--brown-600);
}
.hero__card-head .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hero__card-title {
  margin-left: .6rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.hero__card-body { padding: 1.1rem 1.15rem 1.35rem; }

.hero__card-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.hero__card-scores div {
  text-align: center;
  padding: .5rem .2rem;
  background: var(--brown-50);
  border-radius: var(--r-sm);
}
.hero__card-scores span {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--ink-subtle);
  letter-spacing: .06em;
}
.hero__card-scores strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brown-700);
  line-height: 1.3;
}

.hero__card-line {
  padding: .5rem 0;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.hero__card-line s { color: var(--ink-subtle); text-decoration-color: var(--red-300); }
.hero__card-line b { color: var(--red-700); }
.hero__card-line i { color: var(--n-400); font-size: .75em; margin-inline: .2rem; }
.hero__card-line--note { color: var(--ink-muted); font-size: var(--fs-micro); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  /* 図版は見出しより下に置く。上に出すと、文脈のないスコア表が
     最初に目に入って「何のページか」が伝わらない */
  .hero__visual { max-width: 27rem; margin-inline: auto; width: 100%; }
  .hero__card { rotate: 0deg; }
  .hero__lede { max-width: none; }
}

/* ==========================================================================
   7. #for — 向いている / 向いていない
   ========================================================================== */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--gap);
}
.fit {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--n-0);
}
.fit--yes { border-color: var(--red-200); background: var(--red-50); }
.fit--no  { background: var(--n-50); }

.fit h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--ink-strong);
  margin-bottom: 1.1rem;
}
.fit--yes h3 i { color: var(--accent); }
.fit--no  h3 i { color: var(--n-400); }

.fit ul { display: grid; gap: .8rem; }
.fit li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.85;
}
.fit li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}
.fit--no li::before { background: var(--n-400); }
.fit li strong { font-weight: 700; color: var(--ink-strong); }

.fit__redirect {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.fit__redirect a {
  display: inline-block;
  margin-top: .3rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 累計実績 */
.record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--gap);
  margin-top: var(--gap-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--r-md);
  background: var(--brown-600);
  color: var(--ink-invert);
}
/* 数字とラベルは縦積みにする。横並びにすると「2013 年から」「1,721 本の」の
   ように助数詞の前で切れて、日本語として不自然になる。 */
.record__item strong {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.9rem, 1.35rem + 2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--orange-300);
  letter-spacing: -.02em;
  /* 数字を途中で折らない */
  white-space: nowrap;
  overflow-wrap: normal;
}
.record__item span {
  display: block;
  margin-top: .35rem;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.6;
}
.record__item small {
  display: block;
  margin-top: .3rem;
  font-size: var(--fs-micro);
  line-height: 1.7;
  color: rgba(253, 247, 243, .6);
}

/* ==========================================================================
   8. #sample — 返却物の見本
   ========================================================================== */
.sample-doc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--n-0);
  box-shadow: var(--sh-md);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.sample-doc__label {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--brown-100);
  color: var(--brown-700);
  font-size: var(--fs-micro);
  font-weight: 700;
}
.sample-doc__para {
  padding-bottom: .6rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-subtle);
}

.sample-doc__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--gap);
  margin-bottom: 1.4rem;
}
.sample-doc__col h4 {
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--ink-subtle);
  margin-bottom: .55rem;
}
.sample-doc__col p { font-size: var(--fs-small); line-height: 1.95; }
.sample-doc__col--model {
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--brown-50);
}
.sample-doc__col--model h4 { color: var(--brown-600); }

.sample-doc mark {
  background: var(--orange-100);
  color: inherit;
  padding: .1em .15em;
  border-radius: 3px;
}
.sample-doc sup { font-family: var(--font-en); font-size: .7em; color: var(--orange-700); font-weight: 700; }
.sample-doc .note-ref { color: var(--accent); }

.sample-doc__block {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-sm);
  background: var(--n-50);
}
.sample-doc__block--lr { background: var(--orange-50); }
.sample-doc__block--tr { background: var(--red-50); }

.sample-doc__block h4 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: .8rem;
}
.sample-doc__block .count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding-inline: .35em;
  border-radius: 999px;
  background: var(--n-0);
  border: 1px solid var(--line-strong);
  font-family: var(--font-en);
  font-size: .85em;
}
.sample-doc__block ol { display: grid; gap: .85rem; counter-reset: fixnum; }
.sample-doc__block li {
  counter-increment: fixnum;
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-small);
  line-height: 1.8;
}
.sample-doc__block li::before {
  content: counter(fixnum);
  position: absolute;
  left: 0;
  top: .15em;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--ink-subtle);
}
.sample-doc__block .fix { font-weight: 500; }
.sample-doc__block .fix s { color: var(--ink-subtle); }
.sample-doc__block .fix b { color: var(--brown-700); }
.sample-doc__block .fix i { color: var(--n-400); font-size: .8em; margin-inline: .35rem; }
.sample-doc__block .ref {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  font-size: var(--fs-small);
}
.sample-doc__block--tr p { font-size: var(--fs-small); line-height: 1.85; }
.sample-doc__block .suggest {
  margin-top: .7rem;
  padding: .7rem .9rem;
  border-left: 3px solid var(--accent);
  background: var(--n-0);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.sample-doc__block .suggest i { color: var(--accent); margin-right: .35rem; font-size: .8em; }

.sample-doc__disclaimer {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--ink-subtle);
  line-height: 1.8;
}

.sample-links { margin-top: var(--gap-lg); }
.sample-links h3 {
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--ink-strong);
  margin-bottom: 1rem;
}
.sample-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--gap);
}
.sample-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--n-0);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.sample-link:hover {
  border-color: var(--red-300);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.sample-link__num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--accent);
  font-family: var(--font-en);
  font-weight: 800;
}
.sample-link__body strong { display: block; font-size: var(--fs-small); color: var(--ink-strong); }
.sample-link__body span {
  display: block;
  margin-top: .2rem;
  font-size: var(--fs-micro);
  color: var(--ink-subtle);
  line-height: 1.7;
}
.sample-link > i { color: var(--n-400); font-size: .85em; }

/* ==========================================================================
   9. #feedback
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
  counter-reset: none;
}
.flow li {
  position: relative;
  padding: 1.35rem 1.3rem;
  border-radius: var(--r-md);
  background: var(--n-50);
  border: 1px solid var(--line);
}
/* 段階のつながりを矢印で示す。折り返した行では出さない */
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--gap) / -2 - 5px);
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 780px) { .flow li::after { display: none; } }

.flow__step {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: .7rem;
  border-radius: 50%;
  background: var(--brown-600);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: .9rem;
}
.flow h3 {
  font-size: var(--fs-small);
  font-weight: 900;
  color: var(--ink-strong);
  margin-bottom: .4rem;
}
.flow p { font-size: var(--fs-micro); line-height: 1.85; color: var(--ink-muted); }
.flow strong { color: var(--ink); font-weight: 700; }

.fb-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: var(--gap);
}
.fb {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange-300);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--n-0);
}
.fb__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.fb__name {
  font-size: var(--fs-body);
  font-weight: 900;
  color: var(--ink-strong);
  line-height: 1.5;
}
.fb__abbr {
  display: inline-block;
  margin-left: .4rem;
  font-family: var(--font-en);
  font-size: .72em;
  font-weight: 700;
  color: var(--ink-subtle);
  letter-spacing: .04em;
}
.fb__time {
  flex: none;
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.fb__time i { margin-right: .25rem; }
.fb__desc { font-size: var(--fs-small); line-height: 1.85; color: var(--ink-muted); }
.fb__plans { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }

.pill {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.6;
}
.pill--unlimited { background: var(--brown-100); color: var(--brown-700); }
.pill--lite      { background: var(--orange-100); color: var(--orange-700); }
.pill--ticket    { background: var(--red-100); color: var(--red-700); }

/* 返却時間の説明。
   カードの「所要 48時間」だけを見て「48時間で返ってくる」と読まれると
   誤解になるので、合計とクランプをここで必ず説明する。 */
.turnaround {
  margin-top: var(--gap-lg);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--n-50);
}
.turnaround h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-small);
  font-weight: 900;
  color: var(--ink-strong);
  margin-bottom: .9rem;
}
.turnaround h3 i { color: var(--accent); }
.turnaround ul { display: grid; gap: .7rem; }
.turnaround li {
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--ink-muted);
}
.turnaround li strong:first-child {
  display: inline-block;
  min-width: 12.5em;
  margin-right: .6rem;
  padding: .1rem .6rem;
  border-radius: 999px;
  background: var(--brown-100);
  color: var(--brown-700);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-align: center;
  vertical-align: 1px;
}
.turnaround li strong { color: var(--ink); font-weight: 700; }
.turnaround__note {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  line-height: 1.8;
  color: var(--ink-subtle);
}
.turnaround__note a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .turnaround li strong:first-child { display: block; min-width: 0; margin: 0 0 .4rem; width: fit-content; }
}

/* ==========================================================================
   10. #price
   ========================================================================== */
.coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border: 2px dashed var(--orange-500);
  border-radius: var(--r-md);
  background: var(--orange-50);
}
.coupon__badge {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
}
.coupon__head { font-size: var(--fs-h3); font-weight: 900; color: var(--ink-strong); line-height: 1.5; }
.coupon__head strong { color: var(--accent); font-family: var(--font-en); }
.coupon__desc { margin-top: .5rem; font-size: var(--fs-small); color: var(--ink-muted); }

.coupon__code { text-align: center; }
.coupon__code-label {
  display: block;
  margin-bottom: .35rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--ink-subtle);
}
.coupon__code-btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .8rem .7rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--n-0);
  transition: border-color .2s var(--ease);
}
.coupon__code-btn:hover { border-color: var(--accent); }
.coupon__code-text {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brown-700);
}
.coupon__code-action {
  padding: .35rem .8rem;
  border-radius: 5px;
  background: var(--brown-600);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  white-space: nowrap;
}
.coupon__code-btn.is-copied .coupon__code-action { background: var(--accent); }

@media (max-width: 700px) {
  .coupon { grid-template-columns: 1fr; }
  .coupon__code { text-align: left; }
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--n-0);
}
.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--sh-lg);
}
.plan__flag {
  align-self: flex-start;
  margin-bottom: .8rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
}
.plan__label {
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--ink-strong);
}
.plan__for {
  margin-top: .25rem;
  font-size: var(--fs-micro);
  color: var(--ink-subtle);
}

.plan__price {
  margin-top: 1.1rem;
  font-family: var(--font-en);
  color: var(--ink-strong);
  line-height: 1;
}
.plan__price .cur { font-size: 1.1rem; font-weight: 700; }
.plan__price strong { font-size: clamp(2.3rem, 1.8rem + 1.8vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.plan__price .unit { font-size: .95rem; font-weight: 500; color: var(--ink-subtle); }

.plan__initial { margin-top: .5rem; font-size: var(--fs-small); font-weight: 700; color: var(--ink-muted); }
.plan__off { color: var(--accent); }
.plan__jpy { margin-top: .3rem; font-size: var(--fs-micro); color: var(--ink-subtle); }
.plan__bulk {
  margin-top: .6rem;
  font-size: var(--fs-micro);
  line-height: 1.8;
  color: var(--ink-muted);
}

.plan__sec { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.plan__sec h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.plan__text { font-size: var(--fs-small); line-height: 1.8; color: var(--ink-muted); }
.plan__note { margin-top: .5rem; font-size: var(--fs-micro); color: var(--ink-subtle); }

.ticks { display: grid; gap: .4rem; }
.ticks li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--fs-small);
  line-height: 1.75;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* CTA はカードの下端にそろえる。
   ▲ ここに margin-top を書くと auto が消えてボタンの高さがバラバラになる。
     CTA との間隔は直前の要素側（.plan__sec:last-of-type）で取ること。 */
.plan__cta { margin-top: auto; width: 100%; }
.plan__sec:last-of-type { margin-bottom: 1.6rem; }

.price-note {
  margin-top: var(--gap-lg);
  font-size: var(--fs-micro);
  line-height: 1.9;
  color: var(--ink-subtle);
}
.price-note strong { color: var(--ink-muted); }

/* ==========================================================================
   11. #faq
   ========================================================================== */
.qa {
  border-top: 1px solid var(--line);
}
.qa__item { border-bottom: 1px solid var(--line); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem .25rem;
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.7;
  transition: color .2s var(--ease);
}
.qa__q:hover { color: var(--accent); }

.qa__icon {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }

.qa__a { padding: 0 .25rem 1.35rem; }
.qa__a p { font-size: var(--fs-small); line-height: 1.95; color: var(--ink-muted); }

/* ==========================================================================
   12. #more
   ========================================================================== */
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--gap);
}
.more-card {
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--n-0);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.more-card:hover { border-color: var(--brown-300); transform: translateY(-2px); box-shadow: var(--sh-md); }
.more-card i {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: .8rem;
}
.more-card strong { display: block; font-size: var(--fs-small); font-weight: 900; color: var(--ink-strong); }
.more-card span {
  display: block;
  margin-top: .35rem;
  font-size: var(--fs-micro);
  line-height: 1.8;
  color: var(--ink-subtle);
}

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--r-md);
  background: var(--n-0);
  border: 1px solid var(--line);
}
.book h3 {
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--ink-strong);
  margin-bottom: .7rem;
}
.book p { font-size: var(--fs-small); line-height: 1.9; color: var(--ink-muted); }
.book img { width: 170px; border-radius: 4px; box-shadow: var(--sh-md); }

@media (max-width: 640px) {
  .book { grid-template-columns: 1fr; justify-items: center; text-align: left; }
}

/* ==========================================================================
   13. Closing CTA
   ========================================================================== */
.closing {
  padding-block: var(--section-pad);
  background:
    radial-gradient(100% 120% at 85% 0%, var(--brown-700) 0%, transparent 60%),
    var(--brown-800);
  color: var(--ink-invert);
  text-align: center;
}
.closing h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
}
.closing > .wrap > p {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  font-size: var(--fs-small);
  line-height: 1.95;
  color: rgba(253, 247, 243, .78);
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.9rem;
}
.closing__note {
  margin-top: 1.4rem !important;
  font-size: var(--fs-micro) !important;
  color: rgba(253, 247, 243, .55) !important;
}

/* ==========================================================================
   14. 追従CTA（SPのみ）
   ========================================================================== */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(60, 35, 20, .09);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text strong {
  display: block;
  font-size: var(--fs-small);
  font-weight: 900;
  color: var(--ink-strong);
  line-height: 1.4;
}
.sticky-cta__text span { font-size: var(--fs-micro); color: var(--ink-subtle); }
.sticky-cta .btn { flex: none; }

@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  /* 追従バーの高さぶん、フッター末尾が隠れないように逃がす */
  .site-footer { padding-bottom: 5.5rem; }
}

/* ==========================================================================
   15. フッター
   ========================================================================== */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: var(--n-900);
  color: rgba(253, 247, 243, .72);
  font-size: var(--fs-small);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--gap-lg) var(--gap);
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

.site-footer__brand .wordmark {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.site-footer__brand .wordmark span { color: var(--orange-300); }
.site-footer__brand p { font-size: var(--fs-micro); line-height: 1.95; max-width: 26rem; }

.site-footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(253, 247, 243, .8);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-footer__social a:hover { background: var(--accent); color: #fff; }

.site-footer__col h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--orange-300);
  margin-bottom: .9rem;
}
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer__col a { font-size: var(--fs-micro); line-height: 1.7; }
.site-footer__col a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-micro);
  color: rgba(253, 247, 243, .5);
}
.site-footer__legal { display: flex; gap: 1.2rem; }
.site-footer__legal a:hover { color: #fff; }

/* ==========================================================================
   16. スクロールでの出現
   ----------------------------------------------------------------------------
   ▲ **既定は「見えている」状態にしてある。** 初期状態を透明にすると、
     JS が動かない・IntersectionObserver が発火しない環境で本文が消える。
     旧デザインで実際に起きていた不具合なので、JS が .js-reveal を付けた
     ときだけ隠す、という向きにしてある。
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
}
