@charset "UTF-8";
/*
Theme Name: AGATTA 2026
Theme URI: https://agatta.co.jp/
Author: Studio Chihiro
Description: 専門職のオークション式転職サービス AGATTA のオリジナルテーマ（2026年版）。白地にブランドの赤、三角形をモチーフに据え、ファーストビューは流れるカードの上にロゴを置く構成。スクロールに合わせて地の色が赤へ送られる。
Version: 4.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agatta2026

  ------------------------------------------------------------------
  ここは見た目の設定だけをまとめています。
  文言を変えたいときは inc/content.php を編集してください。
  ------------------------------------------------------------------
*/

/* ==========================================================================
   AGATTA — デザイン案 v4
   about.miroom.com の運びを土台に、赤と三角形で組み直したもの。
   配色・余白・モーションの数値はこのブロックに集約している。
   ========================================================================== */

:root {
  /* ---- 地（白基調）---- */
  --white:    #FFFFFF;
  --tint:     #F4F3F1;   /* 交互に敷く淡い地 */

  /* ---- 字（参考サイトの実測値をそのまま使う）---- */
  --ink:      #111111;   /* rgb(17,17,17) */
  --ink-2:    #282828;   /* rgb(40,40,40) */
  --mute:     #878787;   /* rgb(135,135,135) */
  --faint:    #AFAFAF;   /* rgb(175,175,175) */
  --line-l:   #DBDBDB;   /* rgb(219,219,219) */

  /* ---- 赤（主役。現行ブランドカラーを維持）---- */
  --red:      #B5342A;
  --red-deep: #8E251C;
  --red-tint: #F7EAE7;

  /* ---- 動き ---- */
  /* 参考サイトの spring(stiffness 113〜525 / damping 31〜100) はいずれも
     オーバーダンプ＝跳ね返らない減速。これに最も近いベジェを使う。 */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.33, 1, .68, 1);

  /* ---- 寸法 ---- */
  --pad:  clamp(20px, 5vw, 56px);
  --maxw: 1080px;
  --hdr:  68px;

  /* 参考サイトの文字サイズ: 80 / 40 / 32 / 20 / 16 / 14 / 12 */
  --fs-display: clamp(40px, 6.4vw, 80px);
  --fs-h2:      clamp(26px, 3.2vw, 40px);
  --fs-h3:      clamp(19px, 2.2vw, 32px);
  --fs-lead:    20px;
  --fs-body:    16px;
  --fs-sm:      14px;
  --fs-xs:      12px;

  /* 角丸。この3つを変えるとサイト全体の丸みが一括で変わる */
  --r-sm: 6px;    /* 入力欄・小さなラベル */
  --r:    10px;   /* ボタン・カード */
  --r-lg: 16px;   /* 大きな囲み・パネル */

  --f-en: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* 背景を流れるカードの絵柄。同じ画像を何枚も並べるので、ここで1回だけ持つ */
  --card-c01: url(assets/img/card-c01.png);
  --card-c02: url(assets/img/card-c02.png);
  --card-c03: url(assets/img/card-c03.png);
  --f-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);         /* 明示的に塗る。透過のままだと閲覧側の地色を拾う */
  color: var(--ink);
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ==========================================================================
   背景板
   参考サイト .framer-o75j（position:fixed / 100vh / z-index:0）と同じ作り。
   画面いっぱいの板を1枚敷き、その色をスクロールに合わせて変える。

   板に任せるのは「ファーストビュー → 入力フォーム」の白→赤だけ。
   the auction 以降は各セクションが自前で地を塗る。
   板で送ると、切り替わりの途中に次のセクションが画面へ入ってきて
   中間色（淡いピンク）の地に黒文字、という状態が見えてしまうため。
   ========================================================================== */

.bgplate {
  position: fixed; inset: 0; z-index: 0;
  background: var(--white);
  transition: background-color .18s linear;   /* 色はJS側で補間するので、繋ぎを滑らかにするだけ */
  pointer-events: none;
}
main, .ftr { position: relative; z-index: 1; }

/* ==========================================================================
   セクションの地
   .s--plain / .s--tint が配色トークンを差し替え、中身は同じ部品を使う。
   ========================================================================== */

/* 参考サイトのセクション余白は padding:80px 0。画面幅に応じて少しだけ伸ばす */
.s {
  background: var(--bg);            /* 自前で塗る。背景板の色送りの影響を受けない */
  color: var(--fg);
  padding: clamp(64px, 7.5vw, 112px) var(--pad);
}
.s--plain { --bg: var(--white); --fg: var(--ink); --mute: #878787; --rule: var(--line-l); --accent: var(--red); --card: var(--tint); }
.s--tint  { --bg: var(--tint);  --fg: var(--ink); --mute: #75756F; --rule: #DCDAD5;      --accent: var(--red); --card: var(--white); }
/* .s--tint は現在どのセクションでも使っていない（こんな方へ 以降は白で固定）。
   交互の地に戻したくなったときのために定義だけ残している。 */
/* 赤地。差し色だった赤が地になるので、強調は白が担う */
.s--red   { --bg: var(--red);   --fg: #FFFFFF;    --mute: rgba(255,255,255,.78);
            --rule: rgba(255,255,255,.26); --accent: #FFFFFF; --card: rgba(255,255,255,.08); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.wrap--narrow { max-width: 880px; }

/* ==========================================================================
   見出しまわり
   ========================================================================== */

/* 参考サイトの ( company ) にあたる小見出し。こちらは三角形を頭に置く。 */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-family: var(--f-en); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: lowercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 10px; height: 9px; background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* 参考サイト: 80px / Poppins 600 / line-height:1 / letter-spacing:-0.03em */
.display {
  margin: 0;
  font-family: var(--f-en); font-weight: 600;
  font-size: var(--fs-display); line-height: 1; letter-spacing: -.03em;
  color: var(--ink); text-wrap: balance;
}

/* 参考サイト: 40px 見出し */
.h-ja {
  margin: 0;
  font-family: var(--f-ja); font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.5; letter-spacing: .01em;
  text-wrap: balance;
}

/* 参考サイト: 20px / 700 / line-height:150% */
.lead { margin: clamp(16px, 2.2vw, 24px) 0 0; font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; color: var(--mute); }
.note { margin: clamp(16px, 2.2vw, 24px) 0 0; font-size: var(--fs-xs); line-height: 1.85; color: var(--mute); }

/* 本文と注記は、読みやすさ基準の幅ではなくセクションの幅いっぱいで折り返す
   （the auction のグラフ幅に全セクションを揃えている）*/

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr);
  display: flex; align-items: center; gap: 20px;
  padding-inline: var(--pad);
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* ヒーローも白地なので、上端では罫線を出さない。
   スクロールして中身が下に潜ってから境目を引く。 */
.hdr.is-stuck { border-bottom-color: var(--line-l); box-shadow: 0 1px 22px rgba(17,17,17,.06); }
.hdr__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.hdr__logo .mark { width: 108px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav a { font-size: 13px; text-decoration: none; color: inherit; opacity: .78; transition: opacity .25s; }
.nav a:hover { opacity: 1; }
.nav__links { display: contents; }
@media (max-width: 900px) { .nav__links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border: 0; border-radius: 999px;
  font-family: var(--f-ja); font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn::after {
  content: ""; width: 8px; height: 9px; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform .3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn--red,
a.btn--red:link,
a.btn--red:visited { background-color: #B5342A; color: #FFFFFF; }
a.btn--red:hover, .btn--red:hover { background-color: #8E251C; color: #FFFFFF; }
.btn--sm { padding: 10px 16px; font-size: 13px; }

/* 単独で置くボタン（ご利用の流れの末尾）。ピル型・左にアイコン・右端に三角。 */
.btn--lg { width: 100%; max-width: 360px; gap: 14px; padding: 22px 28px; font-size: 16px; }
.btn--lg .btn__txt { flex: 1; text-align: center; }
.btn--lg .btn__ico, .btn--lg::after { flex: none; }
.btn--dark { background: var(--red); color: #FFFFFF; }
.btn--dark:hover { background: var(--red-deep); }
.btn--dark .btn__ico { width: 15px; height: 13px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* LINE：LINE本来の緑に白文字 */
.btn--line,
a.btn--line:link,
a.btn--line:visited { background-color: #06C755; color: #FFFFFF; }
a.btn--line:hover, .btn--line:hover { background-color: #05B34C; color: #FFFFFF; }
.btn--line .ln { font-style: normal; }
.btn--line.is-pending { cursor: default; }

/* ヘッダーのボタンに、斜めの光を一定間隔で通す */
.hdr .btn { position: relative; overflow: hidden; isolation: isolate; }
.hdr .btn::before {
  content: ""; position: absolute; inset: -60% -15%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 46%, #FFFFFF 50%, transparent 54%);
  opacity: .12; transform: translateX(-130%);
  animation: glint 5s ease-in-out infinite;
}
/* 2つのボタンが同時に光ると、どちらも色が抜けて見えるのでずらす */
.hdr .btn--red::before { animation-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) { .hdr .btn::before { animation: none; opacity: 0; } }

/* ===== CTA =====
   斜線で挟んだ見出し ＋ アイコン付きのピルボタン。
   ファーストビュー下は赤地、最終CTAは白地に出るので、
   地に応じてボタンの塗りと文字色を入れ替える。 */
.ctaPitch {
  --c: var(--red);          /* 文字とアイコン */
  --c-line: #9C2C22;        /* 縁取り。文字より少しだけ濃くして輪郭を立てる */
  display: flex; flex-direction: column; align-items: center; gap: var(--lead-gap);
  width: 100%; max-width: 360px;
}
.ctaPitch--line { --c: #0C9A45; --c-line: #0A8038; }

/* 見出し。左右の斜線は ::before / ::after */
.ctaPitch__lead {
  display: flex; align-items: center; gap: 16px; margin: 0;
  height: var(--lead-h);
  font-size: clamp(13px, 1.4vw, 15px); font-weight: 700; letter-spacing: .04em;
  color: var(--c); white-space: nowrap;
}
.ctaPitch__lead::before, .ctaPitch__lead::after {
  content: ""; flex: none; width: 2px; height: var(--lead-h); background: currentColor; border-radius: 1px;
}
.ctaPitch__lead::before { transform: rotate(-22deg); }
.ctaPitch__lead::after  { transform: rotate(22deg); }

.ctaPitch__btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 20px 26px; border: 2px solid var(--c-line); border-radius: 999px;
  background: #FFFFFF; color: var(--c); cursor: pointer;
  font-family: var(--f-ja); font-size: clamp(14px, 1.6vw, 18px); font-weight: 700; line-height: 1.4;
  white-space: nowrap; -webkit-appearance: none; appearance: none;
  box-shadow: 0 8px 22px rgba(17,17,17,.14);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease);
}
.ctaPitch__btn:hover {
  transform: translateY(-2px); background: var(--c); color: #FFFFFF;
  box-shadow: 0 14px 28px rgba(17,17,17,.22);
}

/* キランと走る光。斜めの帯を一定間隔で一度だけ通す。
   z-index:-1 と isolation で、地の上・文字の下に入れている。 */
.ctaPitch__btn::before {
  content: ""; position: absolute; inset: -60% -15%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 44%, currentColor 50%, transparent 56%);
  opacity: .20; transform: translateX(-130%);
  animation: glint 4s ease-in-out infinite;
}
@keyframes glint { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .ctaPitch__btn::before { animation: none; opacity: 0; } }
.ctaPitch.is-pending .ctaPitch__btn { cursor: default; }
.ctaPitch.is-pending .ctaPitch__btn:hover {
  transform: none; background: #FFFFFF; color: var(--c); box-shadow: 0 8px 22px rgba(17,17,17,.14);
}
.ctaPitch__ico { flex: none; width: 21px; height: 21px; }

/* 見出しは赤地の上だけ白抜きにする（ボタンはどちらの地でも白で共通） */
.applysec .ctaPitch__lead { color: #FFFFFF; }

@media (max-width: 900px) { .ctaPitch { max-width: 420px; } }

.nav__toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer; color: inherit;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span { display: block; width: 19px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 900px) { .nav__toggle { display: flex; } }

/* ===== スマホ：ヘッダーのボタンを画面下の固定バーに出す =====
   ヘッダーに詰め込むと文字が折り返して読みにくいので、
   スクロール中も押せる位置へ移す。ヘッダーにはロゴとメニューだけ残る。 */
.nav__cta { display: contents; }

@media (max-width: 900px) {
  .nav__cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    display: flex; gap: 8px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-l);
    box-shadow: 0 -4px 20px rgba(17, 17, 17, .08);
  }
  .nav__cta .btn {
    flex: 1 1 0; min-width: 0;
    justify-content: center; gap: 7px;
    padding: 14px 10px; font-size: 13.5px;
    white-space: nowrap;
  }
  /* 固定バーのぶん、ページの末尾に逃げを作る（フッターが隠れないように）*/
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
  .nav__cta .btn { font-size: 12.5px; padding-inline: 8px; }
  .nav__cta .btn::after { display: none; }   /* 幅が足りないときは矢印を省く */
}

.drawer {
  position: fixed; inset: var(--hdr) 0 auto; z-index: 55;
  background: #FFFFFF; color: var(--ink);
  box-shadow: 0 14px 30px rgba(12,12,13,.10);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-bottom: 1px solid var(--line-l);
  display: grid; gap: 4px; padding: 18px var(--pad) 26px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer a { padding: 12px 0; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line-l); }


/* ==========================================================================
   ファーストビュー
   参考サイトと同じ 100vh・中央寄せ・内側 1000px・gap 64px の組み。
   主役は、三角形484個でできたワードマーク。
   ========================================================================== */

/* 参考サイト .framer-t022jh の組みをそのまま使う。
   height:100vh / place-content:center / gap:64px / padding:0 56px（→32→20）*/
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-flow: column; place-content: center; align-items: center;
  width: 100%; min-height: 100svh;
  gap: 64px;
  padding: var(--hdr) 56px 0;       /* 参考は上下0。固定ヘッダーのぶんだけ上に確保する */

  /* 地が白から赤へ送られるあいだ、中身の色も一緒に送る。
     初期値＝白地のときの色。赤地側の値はJSが上書きする。 */
  --fv-fg:     #111111;
  --fv-mute:   var(--faint);
}
/* ===== 背景を流れるカード =====
   ファーストビューの上下の帯に2列。中央は見出しとロゴのために空けている。
   列ごと動かす（カード1枚ずつではない）ので、動かす要素は2つだけで済む。 */
.cards {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* 中央へ向かってカードそのものを消していく（上に幕を重ねないので境目が出ない）。
     --veil は中央でカードを隠す割合。1に近いほど中央がすっきりする。 */
  --veil: .78;
  -webkit-mask-image: radial-gradient(86% 95% at 50% 50%,
      rgba(0,0,0,calc(1 - var(--veil))) 0 38%,
      rgba(0,0,0,calc(1 - var(--veil) * .55)) 66%,
      rgba(0,0,0,calc(1 - var(--veil) * .18)) 86%,
      #000 100%);
          mask-image: radial-gradient(86% 95% at 50% 50%,
      rgba(0,0,0,calc(1 - var(--veil))) 0 38%,
      rgba(0,0,0,calc(1 - var(--veil) * .55)) 66%,
      rgba(0,0,0,calc(1 - var(--veil) * .18)) 86%,
      #000 100%);
}

/* ロゴの帯だけ、追加でもう一段カードを抑える。
   外側(.cards)と内側(.cards__inner)でマスクが掛け算されるので、
   ここだけ濃くなり、上下の端や四隅のカードはそのまま残る。
   重ねるのではなくマスクなので境目は出ない。 */
.cards__inner {
  --logo-veil: .9;
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(96% 32% at 50% 70%,
      rgba(0,0,0,calc(1 - var(--logo-veil))) 0 46%,
      rgba(0,0,0,calc(1 - var(--logo-veil) * .5)) 74%,
      #000 100%);
          mask-image: radial-gradient(96% 32% at 50% 70%,
      rgba(0,0,0,calc(1 - var(--logo-veil))) 0 46%,
      rgba(0,0,0,calc(1 - var(--logo-veil) * .5)) 74%,
      #000 100%);
}
.cards__row {
  position: absolute; left: -14%; top: var(--y);
  display: flex; width: max-content;
  animation: cardsFlow var(--t) linear infinite;
}
.cards__row--rev { animation-direction: reverse; }
@keyframes cardsFlow {
  from { transform: rotate(var(--rot)) translateX(0); }
  to   { transform: rotate(var(--rot)) translateX(-50%); }
}
/* 1組の幅が画面幅を下回ると、ループの折り返しで端に空きが出て白く抜ける。
   最低 125vw を確保し、カードが足りないぶんは間隔を広げて埋める。 */
.cards__list {
  display: flex; justify-content: space-between;
  min-width: 125vw;
  gap: clamp(14px, 2.2vw, 32px); padding-right: clamp(14px, 2.2vw, 32px);
}
.cards__item {
  flex: none; width: clamp(148px, 19vw, 272px); aspect-ratio: 3909 / 2069;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(17,17,17,.12);
  animation: cardsBob var(--bt, 6s) ease-in-out var(--bd, 0s) infinite alternate;
}
.cards__item img { display: block; width: 100%; height: 100%; }
.cards__item--c01, .cards__item--c02, .cards__item--c03 { background-size: cover; background-position: center; }
.cards__item--c01 { background-image: var(--card-c01); }
.cards__item--c02 { background-image: var(--card-c02); }
.cards__item--c03 { background-image: var(--card-c03); }
.cards__item--red   { background: var(--red); }
.cards__item--black { background: var(--ink); }
.cards__item--white { background: #FFFFFF; box-shadow: 0 12px 30px rgba(17,17,17,.14), inset 0 0 0 1px var(--line-l); }
@keyframes cardsBob { to { transform: translateY(-12px) rotate(1.5deg); } }

@media (prefers-reduced-motion: reduce) {
  .cards__row, .cards__item { animation: none; }
}


/* 参考サイト .framer-1ke59rw: max-width:1000px / gap:64px（→710px・56→48）*/
.hero__in {
  position: relative; z-index: 2;
  width: 100%; max-width: 1000px;
  display: flex; flex-flow: column; place-content: center; align-items: center;
  gap: 64px;
}
/* 参考サイト .framer-5tr2uw: gap:10px（→24→16）*/
.hero__text { display: flex; flex-flow: column; align-items: center; gap: 10px; width: 100%; }

@media (max-width: 1200px) {
  .hero { padding-inline: 32px; gap: 56px; }
  .hero__in { max-width: 710px; gap: 56px; }
  .hero__text { gap: 24px; }
}
@media (max-width: 810px) {
  /* 画面いっぱい（100svh）だと中身に対して余白が大きすぎるので、
     中身が収まる下限を持たせたうえで画面の74%に抑える。
     次のセクションが少し覗くので、続きがあることも伝わる。 */
  .hero { padding-inline: 20px; gap: 40px; min-height: max(440px, 74svh); }
  .hero__in { gap: 40px; }
  .hero__text { gap: 16px; }
}

.mark { display: block; width: 100%; height: auto; }

/* ファーストビューのマーク。支給ロゴ（agatta_logo.svg）を文字ごとに書き出し、5枚重ねている。
   赤地に送られたときのために、白抜き版も重ねて入れ替える。 */
.mark--hero {
  position: relative; width: 100%; max-width: 780px; margin-inline: auto;
  aspect-ratio: 2729.06 / 474.74;
}
.mark__l { position: absolute; inset: 0; display: block; z-index: 1; }
.mark__l img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mark__l .on-red { opacity: var(--fv-swap, 0); }

/* ファーストビューの見出し。1行に収まる範囲で最大になるよう 8.4vw を噛ませ、
   上限を 121px にしている。色は地の変化に合わせて --fv-fg が送る。 */
.hero__display {
  margin: 0; text-align: center; white-space: nowrap; max-width: none;
  font-family: var(--f-en); font-weight: 600;
  font-size: clamp(30px, 8.4vw, 121px); line-height: 1; letter-spacing: -.02em;
  color: var(--fv-fg);
}

/* 指定: 20px / #111111 */
.hero__tag {
  margin: 0; text-align: center; color: var(--fv-fg);
  font-family: var(--f-ja); font-weight: 700;
  font-size: 20px; line-height: 1.7; letter-spacing: .04em;
}
@media (max-width: 480px) {
  .hero__tag { font-size: 17px; }
  .hero { min-height: max(400px, 66svh); gap: 32px; }
  .hero__in { gap: 32px; }
}

.scroll {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 2.6vw, 32px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-en); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: lowercase; color: var(--fv-mute);
  text-decoration: none;
}
.scroll__tri { width: 11px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* ==========================================================================
   履歴書アップロード（ファーストビューの直下と、最終CTA内で共用）
   ※ 最終CTAの並びは現行のまま
   ========================================================================== */

.applysec { padding: clamp(14px, 2.2vw, 30px) var(--pad) clamp(64px, 8vw, 112px); }
.apply {
  width: 100%; max-width: 1120px; margin-inline: auto; text-align: left;
  background: var(--white); color: var(--ink);   /* 親の文字色をここで断ち切る（最終CTAは白文字のため）*/
  border: 1px solid var(--line-l);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px -40px rgba(0,0,0,.4);
}
.apply__head { padding: 18px clamp(18px, 2.6vw, 30px) 14px; }
.apply__ttl { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; }
.apply__bar { height: 2px; background: var(--line-l); overflow: hidden; }
.apply__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .4s var(--ease); }
.apply__bar.is-on span { width: 100%; }

/* STEP01〜03 を横並びにする。
   STEP01 は説明文と「ファイルを選ぶ」が横に並ぶので、他より広く取る。 */
.apply__steps {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-l);
}
.astep { padding: 20px clamp(16px, 2.2vw, 26px) 24px; min-width: 0; }
.astep + .astep { border-left: 1px solid var(--line-l); }
.astep__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.astep__label > span {
  font-family: var(--f-en); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--red); padding: 4px 7px; border-radius: 4px; box-shadow: inset 0 0 0 1px currentColor;
}
.astep__label .req { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--red); padding: 3px 6px; border-radius: 3px; letter-spacing: .06em; }
.astep__note { margin: 10px 0 0; font-size: 11.5px; color: var(--faint); }

.drop { position: relative; }
/* 説明文と「ファイルを選ぶ」を横並びに。幅が足りないときは、
   文字を細かく折らずにボタンを下の行へ送る。 */
.drop__zone {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 14px;
  padding: 14px 16px; cursor: pointer;
  background: var(--tint); border-radius: 8px;
  transition: background .2s;
}
.drop__zone:hover { background: #E9EAE7; }
.drop.is-over .drop__zone { background: var(--red-tint); }
.drop__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.drop__frame rect { x: .6px; y: .6px; width: calc(100% - 1.2px); height: calc(100% - 1.2px); rx: 8px; transition: stroke-width .2s; }
.drop.is-over .drop__frame rect { stroke-width: 2; animation: ants 380ms linear infinite; }
@keyframes ants { to { stroke-dashoffset: -8; } }
.drop__s { flex: 1 1 165px; min-width: 0; margin: 0; font-size: 12px; line-height: 1.7; color: var(--mute); }
.drop__pick {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 9px 16px; white-space: nowrap; border-radius: 999px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-l);
  font-size: 13px; font-weight: 700;
}
.drop__zone:hover .drop__pick { border-color: var(--ink); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.drop__item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--tint); border-radius: var(--r-sm); font-size: 12.5px; }
.drop__item .ico { font-family: var(--f-en); font-size: 10px; font-weight: 700; color: var(--red); }
.drop__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__size { color: var(--mute); font-size: 11.5px; }
.drop__del { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }

.apply input[type="text"], .apply input[type="email"] {
  width: 100%; padding: 13px 15px;
  background: var(--white); border: 1px solid var(--line-l); border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--f-ja); font-size: 15px;
  transition: border-color .25s;
}
.apply input::placeholder { color: var(--faint); }
.apply input:focus { border-color: var(--red); outline: none; }

.hp { position: absolute; left: -9999px; }

.apply__consents { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: clamp(18px, 2.4vw, 26px) auto 0; text-align: left; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--red); flex: none; }
.legal-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* --lead-h / --lead-gap は、ボタン側の見出しと「または」の位置合わせで共有する */
.apply__actions {
  --lead-h: 24px; --lead-gap: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 0;
}

/* 幅が足りなくなったら、3つのSTEPを縦に積む */
@media (max-width: 900px) {
  .apply__steps { grid-template-columns: 1fr; }
  .astep + .astep { border-left: 0; border-top: 1px solid var(--line-l); }
  .drop__zone { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; padding: 16px 14px; }
  /* 横並び用の flex-basis:165px が、縦並びでは「高さの下限」として効いてしまい
     説明文の下に大きな空きができる。縦のときは中身なりの高さに戻す。 */
  .drop__s { flex: 0 0 auto; }
  .drop__pick { justify-content: center; }
  .apply__actions { flex-direction: column; gap: 12px; }
  .apply__or { align-self: auto; padding-top: 0; }
  .apply__actions .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .drop.is-over .drop__frame rect { animation: none; } }
/* 「または」は見出しのぶんを飛ばしてから中央に寄せ、ボタンの中心と揃える */
.apply__or {
  align-self: stretch; display: flex; align-items: center;
  padding-top: calc(var(--lead-h) + var(--lead-gap));
  font-size: 12px; color: var(--mute);
}
.apply__msg { margin: 16px auto 0; font-size: 13px; text-align: center; min-height: 1.2em; }
.apply__msg.is-error { color: var(--red); }
.apply__msg.is-ok { color: #1E8A55; }

/* --- 赤地の上に乗るときの調整（カードの外側だけ白抜きにする）--- */
.applysec { --fg: #FFFFFF; }
.applysec .apply { box-shadow: 0 10px 44px rgba(0,0,0,.16); border-color: transparent; }
.applysec .consent { color: rgba(255,255,255,.90); }
.applysec .consent input { accent-color: #FFFFFF; }
.applysec .apply__or { color: rgba(255,255,255,.72); }
.applysec .apply__msg { color: #FFFFFF; }
.applysec :focus-visible { outline-color: #FFFFFF; }

/* ==========================================================================
   the auction — 棒グラフ
   AI査定額を起点に、各社の提示額がどこまで伸びるかを見せる。
   目盛りは0起点。差を大きく見せるために軸を途中から始めることはしない。
   赤地の上に乗るので、強調は白が担う。
   ========================================================================== */

.chart { margin-top: clamp(34px, 4.5vw, 60px); }

.chart__plot {
  position: relative;
  /* --band … 上に空ける帯（差額のブラケット用）
     --line-y … 横線を置く位置（プロットの上端から）
     この2つを変えれば、ブラケットと棒の距離が変わる。縦線の長さは自動で追従する。 */
  --band: 54px;
  --line-y: 22px;
  --gap: calc(var(--band) - var(--line-y));
  height: calc(clamp(300px, 36vw, 430px) + var(--band));
  border-bottom: 1px solid rgba(255,255,255,.55);
}

/* 目盛りの線 */
.chart__grid { position: absolute; inset: var(--band) 0 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart__grid i { display: block; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 5px, transparent 5px 11px); }

.chart__cols { position: absolute; inset: var(--band) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }

.col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }

/* 吹き出し */
.col__callout {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--r-sm);
  background: #FFFFFF; color: var(--red);
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.col__callout i { font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 3px; background: var(--red); color: #FFFFFF; }
/* 吹き出しから棒へ下ろす線と点 */
.col__lead { display: block; width: 1px; height: 14px; background: rgba(255,255,255,.65); position: relative; }
.col__lead::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; transform: translateX(-50%); }

.col__value {
  font-family: var(--f-en); font-size: clamp(13px, 1.5vw, 19px); font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.88);
}
.col--top .col__value { color: #FFFFFF; }

.col__bar {
  width: min(100%, 118px); height: calc(var(--h) * 1%);
  background: rgba(255,255,255,.32);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transform-origin: bottom center;
}
.col--top .col__bar { background: #FFFFFF; }

/* 差額のブラケット。
   横線は上から22pxに置き、そこから左右の棒の先端まで縦線を下ろす。
   縦線の長さ = 帯の残り32px ＋ 列エリアに対する棒の高さぶん。 */
.chart__delta { position: absolute; left: 12.5%; right: 12.5%; top: var(--line-y); bottom: 0; pointer-events: none; }
.chart__delta::before, .chart__delta::after { content: ""; position: absolute; top: 0; width: 1px; background: rgba(255,255,255,.6); }
.chart__delta::before { left: 0;  height: calc(var(--gap) + (100% - var(--gap)) * .454); }   /* AI査定の棒の先端まで */
.chart__delta::after  { right: 0; height: calc(var(--gap) + (100% - var(--gap)) * .300); }   /* 最高提示の棒の先端まで */
.chart__delta-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.6); }
.chart__delta-tip {
  position: absolute; right: -4px; top: calc(var(--gap) + (100% - var(--gap)) * .300 - 8px);
  width: 9px; height: 8px; background: rgba(255,255,255,.85);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.chart__delta-pill {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  padding: 7px 16px; border-radius: 999px;
  background: #FFFFFF; color: var(--red);
  font-family: var(--f-en); font-size: clamp(12px, 1.3vw, 16px); font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* 横軸のラベル */
.chart__axis { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 0; padding: 0; list-style: none; }
.chart__axis li { text-align: center; padding: 0 6px; min-width: 0; }
.chart__axis b { display: block; font-size: clamp(12px, 1.3vw, 15px); font-weight: 700; line-height: 1.5; }
.chart__axis span { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,.72); }

@media (max-width: 720px) {
  .col__callout { font-size: 10.5px; padding: 5px 8px; gap: 5px; }
  .col__callout i { display: none; }
  .chart__delta-pill { font-size: 11px; padding: 5px 10px; }
  .chart__axis span { display: none; }
  .col__bar { width: min(100%, 64px); }
}
@media (max-width: 480px) {
  .col__callout { display: none; }
  .col__lead { display: none; }
}

/* ==========================================================================
   こんな方へ
   ========================================================================== */

.pains { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.pains li {
  display: grid; grid-template-columns: 54px 1fr; align-items: baseline; gap: 6px;
  padding: clamp(17px, 2.2vw, 24px) 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.75;
}
.pains li > span { font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }

/* ==========================================================================
   AGATTAとは — 比較
   ========================================================================== */

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(30px, 4vw, 48px); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.vsc { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); }
/* AGATTA 側のカードは、薄い赤地＋赤い枠線でブランド側だと分かるようにする。
   従来サービス側は中立のままにして対比を残す。 */
.vsc--ours { background: var(--red-tint); border-color: var(--red); }
.vsc__label { font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--mute); }
.vsc--ours .vsc__label { color: var(--accent); }
.vsc h3 { margin: 12px 0 20px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.5; font-weight: 700; white-space: pre-line; }
.vsc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.vsc li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.75; color: var(--mute); }
.vsc li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 8px; background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.vsc--ours li { color: var(--fg); }
.vsc--ours li::before { background: var(--accent); }

/* ==========================================================================
   査定の仕組み
   ========================================================================== */

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(30px, 4vw, 48px); }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.cell { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); display: grid; align-content: start; gap: 10px; }
.cell__no { font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.cell h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.cell p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--mute); }

/* ==========================================================================
   赤の帯（全幅で赤を使うのはここ1か所だけ）
   ========================================================================== */

.band { background: var(--red); color: #fff; overflow: hidden; padding: 20px 0; }
.band__track { display: flex; width: max-content; animation: slide 72s linear infinite; }
/* 1組の幅が画面幅を下回ると、ループの折り返しで端に空きが出る。
   最低 112vw を確保し、足りないぶんは間隔を広げて埋める。 */
.band__track > span {
  display: flex; align-items: center; justify-content: space-between;
  min-width: 112vw; gap: 26px; padding-right: 26px;
  font-family: var(--f-en); font-size: 15px; font-weight: 600; letter-spacing: .16em; white-space: nowrap;
}
.band__track i { font-style: normal; font-family: var(--f-ja); font-weight: 700; letter-spacing: .08em; }
.band__tri { width: 10px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }

/* ==========================================================================
   ご利用の流れ
   ========================================================================== */

.steps { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; counter-reset: st; }
.step {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: start; gap: clamp(14px, 2.4vw, 32px);
  padding: clamp(20px, 2.6vw, 30px) 0; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__no { font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent); padding-top: .35em; }
.step h3 { margin: 0 0 7px; font-size: clamp(17px, 1.9vw, 21px); font-weight: 700; line-height: 1.5; }
.step p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--mute); max-width: 54ch; }
.step__meta { font-size: 11.5px; color: var(--accent); white-space: nowrap; padding-top: .5em; }
@media (max-width: 680px) {
  .step { grid-template-columns: 62px 1fr; }
  .step__meta { grid-column: 2; padding-top: 8px; }
}

.sec-cta { display: flex; justify-content: center; margin-top: clamp(34px, 4.5vw, 56px); }

/* ==========================================================================
   利用者の声
   ========================================================================== */

.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(30px, 4vw, 48px); }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.voice { display: grid; gap: 14px; align-content: start; }
.voice__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--card); }
.voice__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.voice:hover .voice__img img { transform: scale(1.04); }
.voice__fig { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--mute); flex-wrap: wrap; }
.voice__fig b { font-family: var(--f-en); font-size: 16px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-left: 5px; color: var(--fg); }
.voice__to { width: 9px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.voice__fig .to b { color: var(--accent); }
.voice blockquote { margin: 0; font-size: 14px; line-height: 1.9; }
.voice__who { margin: 0; font-size: 11.5px; color: var(--mute); }

/* ==========================================================================
   よくある質問
   ========================================================================== */

.faq { margin-top: clamp(26px, 3.4vw, 40px); border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: clamp(18px, 2.2vw, 24px) 0; cursor: pointer; list-style: none;
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 700; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 10px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .ans { margin: 0; padding: 0 0 clamp(20px, 2.4vw, 26px); font-size: 14px; line-height: 1.95; color: var(--mute); max-width: 68ch; }
.faq .ans strong { color: var(--fg); }

/* ==========================================================================
   最終CTA — 並びは現行のまま（黒地／大見出し／小見出し／フォーム）
   ========================================================================== */

/* 最終CTA：背景に動画を敷き、その上にベールを重ねて文字を読ませる。
   動画が再生されない環境でも成立するよう、下地に濃い色を置いている。 */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: #170A08; color: #FFFFFF;
  padding: clamp(64px, 8vw, 120px) var(--pad); text-align: center;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,8,7,.62) 0%, rgba(18,8,7,.45) 42%, rgba(18,8,7,.66) 100%);
}
/* 映像は明るさが変わるので、文字には薄い影を添えてどの瞬間でも読めるようにする */
.cta .display { color: #FFFFFF; text-shadow: 0 2px 18px rgba(10,4,3,.55); }
.cta .display em { font-style: normal; color: #FFFFFF; }
.cta__sub { text-shadow: 0 1px 12px rgba(10,4,3,.6); }
.cta .consent { color: rgba(255,255,255,.92); }
.cta .consent input { accent-color: #FFFFFF; }
.cta .apply__or { color: rgba(255,255,255,.75); }
.cta .apply__msg { color: #FFFFFF; }
.cta .ctaPitch__lead { color: #FFFFFF; }
.cta__sub { margin: clamp(14px, 2vw, 22px) 0 clamp(30px, 4vw, 44px); font-size: clamp(13px, 1.5vw, 17px); font-weight: 700; letter-spacing: .32em; text-indent: .32em; }
.cta form { text-align: left; }
.cta .apply__actions, .cta .apply__consents, .cta .apply__msg { text-align: left; }

/* ==========================================================================
   会社概要
   ========================================================================== */

.corp { margin: clamp(30px, 4vw, 48px) 0 0; border-top: 1px solid var(--rule); }
.corp > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: clamp(14px, 1.8vw, 19px) 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 620px) { .corp > div { grid-template-columns: 1fr; gap: 4px; } }
.corp dt { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.corp dd { margin: 0; font-size: 14px; }
.corp dd p { margin: 0 0 3px; }

/* ==========================================================================
   フッター
   ========================================================================== */

.ftr { background: var(--white); color: var(--ink); padding: clamp(56px, 7vw, 80px) var(--pad) 30px; border-top: 1px solid var(--line-l); }
.ftr__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 56px); padding-bottom: 34px; border-bottom: 1px solid var(--line-l); }
@media (max-width: 760px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ftr__cols { grid-template-columns: 1fr; } }
.ftr__brand .mark { width: 138px; }
.ftr__brand p { margin: 16px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--mute); max-width: 26em; }
.ftr__ttl { margin: 0 0 14px; font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: lowercase; color: var(--mute); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr ul a { font-size: 13px; text-decoration: none; opacity: .82; }
.ftr ul a:hover { opacity: 1; }
.ftr__base { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; padding-top: 22px; font-size: 11.5px; color: var(--mute); }
.ftr__base p { margin: 0; }

/* ==========================================================================
   モーション
   参考サイトの実測値をそのまま移植している。
     ヒーロー  … y+48px・0.2秒ずつ遅延
     ロゴ      … 不透明度のみ・部品を順に（あちらは45個、こちらは三角形484個）
     スクロール… y+40px・ゆっくり
   ========================================================================== */

.js .rise { opacity: 0; transform: translateY(40px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.05s var(--ease); transition-delay: var(--d, 0s); }

.js .hero__in > *, .js .hero__text > *, .js .scroll { opacity: 0; transform: translateY(48px); }
.js .hero.in .hero__in > *, .js .hero.in .hero__text > *, .js .hero.in .scroll {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
/* 入れ物は最初から置き、中身だけを動かす */
.js .hero__in > .hero__text { opacity: 1; transform: none; }

/* マークの入れ物は最初から置き、中の図形だけを動かす */
.js .hero__in > .mark { opacity: 1; transform: none; }

/* グラフ：棒が下から立ち上がり、吹き出しと金額が追いかける */
.js .chart .col__bar { transform: scaleY(0); }
.js .chart.is-on .col__bar { animation: grow .9s var(--ease) forwards; animation-delay: calc(var(--i) * .13s); }
@keyframes grow { to { transform: none; } }

.js .chart .col__callout, .js .chart .col__lead, .js .chart .col__value { opacity: 0; transform: translateY(8px); }
.js .chart.is-on .col__callout, .js .chart.is-on .col__lead, .js .chart.is-on .col__value {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(.45s + var(--i) * .13s);
}
.js .chart .chart__delta { opacity: 0; }
.js .chart.is-on .chart__delta { opacity: 1; transition: opacity .8s var(--ease) 1.15s; }

/* ロゴは1文字ずつ、底辺を軸にして下から上へ立ち上げる */
.js .hero .mark__l { opacity: 0; transform: scaleY(0); transform-origin: bottom center; }
.js .hero.in .mark__l {
  animation: raise .9s var(--ease) forwards;
  animation-delay: calc(.45s + var(--i) * .12s);   /* A → G → A → TT → A の順 */
}
@keyframes raise { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .hero__in > *, .js .hero__text > *, .js .scroll { opacity: 1 !important; transform: none !important; }
  .js .hero .mark__l { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .chart .col__bar, .js .chart .col__callout, .js .chart .col__lead,
  .js .chart .col__value, .js .chart .chart__delta { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ==========================================================================
   オープニング
   赤い幕でページを覆い、ロゴを1文字ずつ立ち上げてから幕が上へ抜ける。
   動きはサイト内と同じ「下から立ち上がる」語彙で揃えている。
   ========================================================================== */

.op {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--red);          /* 動画が再生されなくても成立する下地 */
  overflow: hidden;
  transition: transform 1s var(--ease);
}
.op.is-out { transform: translateY(-101%); }

/* 背景の動画。ゆっくり引きながら見せる */
.op__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14);
}
.op.is-on .op__video { animation: opZoom 4.6s var(--ease-out) forwards; }
@keyframes opZoom { to { transform: scale(1); } }

/* 赤のベール。最初は濃く、徐々に薄れて映像が見えてくる */
.op__veil { position: absolute; inset: 0; z-index: 1; background: var(--red); opacity: .94; }
.op.is-on .op__veil { animation: opVeil 1.4s var(--ease) .15s forwards; }
@keyframes opVeil { to { opacity: .52; } }

.op__mark {
  position: relative; z-index: 2;
  width: min(64vw, 560px);
  aspect-ratio: 2729.06 / 474.74;
  transition: transform 1s var(--ease);
  filter: drop-shadow(0 6px 26px rgba(0,0,0,.35));   /* 映像の上でも輪郭が立つように */
}
/* 幕より少しゆっくり動かして奥行きを出す */
.op.is-out .op__mark { transform: translateY(30%); }

.op__l { position: absolute; inset: 0; opacity: 0; transform: translateY(24px) scale(.97); }
.op__l img { display: block; width: 100%; height: 100%; }
.op.is-on .op__l {
  animation: opIn .8s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i) * .13s);
}
@keyframes opIn { to { opacity: 1; transform: none; } }

/* 幕が出ているあいだはスクロールさせない */
html.is-opening, html.is-opening body { overflow: hidden; }

/* 動きを控える設定では幕を出さない */
@media (prefers-reduced-motion: reduce) { .op { display: none; } }

/* スクロール進捗 */
.progress { position: fixed; inset: 0 auto auto 0; z-index: 70; height: 2px; background: var(--red); width: 0; }


/* ==========================================================================
   共通の部品と下層ページ
   トップページのデザインには出てこないが、以下で必要になるもの。
     ・読み上げ用のスキップリンク
     ・規約類のポップアップ（フッターに置いた dialog）
     ・記事ページ／一覧ページ
   配色は新しいトークンに合わせてある。
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 999;
  width: auto; height: auto;
  clip: auto;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  font-size: 13px;
}
.legal-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.legal-link:focus-visible { color: var(--red); }
.cta-band .legal-link:focus-visible { color: #F0857A; }
.apply__notice {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: 14px auto 0;
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.7;
  text-align: right;
}
.cta-band .apply__notice { color: rgba(254, 255, 252, .55); }
.page-head { padding-block: clamp(40px, 5vw, 76px) 0; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; line-height: 1.4; margin: 12px 0 0; }
.page-head .meta { font-size: 12px; color: var(--faint); margin: 14px 0 0; }
.entry { padding-block: clamp(30px, 4vw, 52px) clamp(56px, 7vw, 96px); max-width: 48em; }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { font-size: clamp(20px, 2.5vw, 27px); font-weight: 700; line-height: 1.55; margin-top: 2.2em; padding-bottom: .5em; border-bottom: 1px solid var(--line-l); }
.entry h3 { font-size: 18px; font-weight: 700; margin-top: 1.9em; }
.entry p { margin-block: 0; }
.entry a { color: var(--red); text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .5em; }
.entry blockquote { margin-inline: 0; padding-left: 18px; border-left: 2px solid var(--line-l); color: var(--mute); }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry th, .entry td { border-bottom: 1px solid var(--line-l); padding: 11px 8px; text-align: left; }
.entry th { font-weight: 700; }
.entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--white); padding: 2px 5px; }
.entry pre { overflow-x: auto; background: var(--white); padding: 16px; font-size: 13px; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.post-list li { border-bottom: 1px solid var(--line-l); }
.post-list a { display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 22px 0; text-decoration: none; align-items: baseline; }
.post-list time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.post-list h2 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.6; transition: color .18s; }
.post-list a:hover h2 { color: var(--red); }
.pager { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 36px 72px; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border: 1px solid var(--line-l); text-decoration: none; font-size: 13px;
}
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.entry pre { border-radius: var(--r-sm); }
.entry code { border-radius: 4px; }
.legal {
  width: min(760px, 92vw);
  max-height: min(84svh, 780px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 20, 14, .28);
  overflow: hidden;
}
.legal::backdrop {
  background: rgba(20, 20, 14, .58);
  backdrop-filter: blur(3px);
}
.legal[open] { animation: legal-in .26s cubic-bezier(.22, .8, .3, 1) both; }
.legal[open]::backdrop { animation: legal-fade .26s ease both; }
.legal { width: 94vw; max-height: 88svh; }

.legal {
  width: min(760px, 92vw);
  max-height: min(84svh, 780px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 20, 14, .28);
  overflow: hidden;
}
.legal::backdrop {
  background: rgba(20, 20, 14, .58);
  backdrop-filter: blur(3px);
}
.legal__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px clamp(20px, 3.4vw, 34px) 18px;
  border-bottom: 1px solid var(--line-l);
}
.legal__ttl {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
}
.legal__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: -4px -6px 0 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-l);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.legal__close:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.legal__body {
  padding: 6px clamp(20px, 3.4vw, 34px) clamp(28px, 3.4vw, 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(min(84svh, 780px) - 82px);
  font-size: 13.5px;
  line-height: 1.95;
  color: #45453F;
}
.legal__body h3 {
  margin: 30px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.legal__body h3:first-child { margin-top: 22px; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul {
  margin: 0 0 12px;
  padding-left: 1.15em;
  list-style: disc;
}
.legal__body li { margin-bottom: 4px; }
.legal { width: 94vw; max-height: 88svh; }
.legal__body { max-height: calc(88svh - 76px); font-size: 13px; }
.legal__body:focus { outline: none; }

/* 404ページのボタンに添える矢印 */
.btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }


/* ==========================================================================
   スマホでの申し込みボタン
   ・吹き出しの見出しは省く（幅が狭く、ボタンだけで十分伝わる）
   ・2つのボタンを縦に積む
   ・「または」は赤地／動画の上に乗るので白抜きで中央に置く
   .applysec / .cta を頭に付けているのは、各セクション側の指定
   （.cta .apply__or など）に負けないようにするため。
   ========================================================================== */

@media (max-width: 900px) {
  .applysec .ctaPitch__lead,
  .cta .ctaPitch__lead { display: none; }

  .applysec .apply__actions,
  .cta .apply__actions { flex-direction: column; align-items: center; gap: 14px; }

  .applysec .apply__or,
  .cta .apply__or {
    align-self: center; width: 100%;
    display: flex; justify-content: center; text-align: center;
    padding-top: 0; color: #FFFFFF;
    font-size: 15px; font-weight: 700; letter-spacing: .08em;
  }

  /* 同意文は、行ごとに中央寄せされると長さの違いで左端が揃わない。
     幅いっぱいに広げて、どの行も同じ位置から始まるようにする。 */
  .applysec .apply__consents,
  .cta .apply__consents { align-items: stretch; }
}


/* ==========================================================================
   スマホでの本文サイズ
   20px の段は画面が狭いと1行の文字数が少なくなり、行数ばかり増えて読みにくい。
   この段だけ 16px に落とす。トークンを上書きしているので、
   .lead を使っている箇所はすべて一度に下がる。
   ========================================================================== */

@media (max-width: 900px) {
  :root { --fs-lead: 16px; }   /* .lead（各セクションの本文）*/
  .hero__tag { font-size: 16px; }
}


/* ==========================================================================
   スマホでのグラフ
   ・480px以下では吹き出しと引き出し線が消えるので、棒の上の空きが広くなる。
     ブラケットの横線をその空きまで下ろして、差額を棒に近づける。
   ・差額の数字は小さすぎたので大きくする。
   縦線の長さは --band / --line-y から自動で計算されるので、ここでは触らない。
   ========================================================================== */

@media (max-width: 720px) {
  .chart__delta-pill { font-size: 13px; padding: 6px 12px; }
}

@media (max-width: 480px) {
  .chart__plot { --band: 24px; --line-y: 56px; }
  .chart__delta-pill { font-size: 15px; padding: 7px 14px; }
}


/* スマホでは比較カードの見出しの行間を詰める（2行で収まる短い見出しのため）*/
@media (max-width: 900px) {
  .vsc h3 { line-height: 1.3; }
}


/* ==========================================================================
   スマホの「利用者の声」
   縦に3枚積むと縦長になりすぎるので、横に送るカルーセルにする。
   指で払っても、下のタブを押しても切り替わる。
   ========================================================================== */

.voices__tabs { display: none; }

.voices__tab {
  min-width: 46px; padding: 8px 0; border: 1px solid var(--line-l); border-radius: 999px;
  background: var(--white); color: var(--mute); cursor: pointer;
  font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.voices__tab.is-on { background: var(--red); border-color: var(--red); color: #FFFFFF; }

@media (max-width: 860px) {
  .voices {
    display: flex; grid-template-columns: none;
    max-width: none; margin-inline: 0;
    gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 端の札も中央に寄せられるよう、左右に逃げを作る */
    padding-inline: 6vw;
    margin-inline: -6vw;
  }
  .voices::-webkit-scrollbar { display: none; }

  .voice { flex: 0 0 min(100%, 320px); scroll-snap-align: center; }

  /* 横に隠れている札は画面に入らず、出現演出が解けないまま残ってしまう。
     カルーセルのときは最初から見えている状態にする。 */
  .voices > .rise { opacity: 1 !important; transform: none !important; }

  .voices__tabs { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
}


/* ==========================================================================
   ページの先頭へ戻る
   サイトのモチーフに合わせて三角形。少しスクロールしてから現れる。
   スマホでは下の固定バーに重ならないよう持ち上げる。
   ========================================================================== */

.totop {
  position: fixed; z-index: 50;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(17, 17, 17, .22);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s, background-color .3s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background-color: var(--red-deep); }
.totop__tri {
  width: 13px; height: 11px; background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@media (max-width: 900px) {
  .totop {
    width: 44px; height: 44px;
    bottom: calc(66px + 14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .totop { transition: opacity .2s linear, visibility .2s; transform: none; }
}
