/* =========================================================
   3時のおやつ — Site styles
   Fonts: Geist (Latin) + Zen Kaku Gothic New (Japanese)
   ========================================================= */

:root {
  --ink: #0F1A24;
  --ink-2: #4A5563;
  --ink-3: #8A93A0;
  --base: #FFFFFF;
  --paper: #FFFFFF;
  --tint: #FFFFFF;
  --fill: color-mix(in srgb, var(--ink) 5%, #FFFFFF);
  --line: #E1E1DD;
  --line-strong: #CFCFCA;

  --signal: #4F46F0;
  --signal-hover: #3D33DB;
  --signal-soft: #ECEBFE;
  --signal-rgb: 79 70 240;
  --signal-on-dark: #8E88FF;
  --signal-on-dark-2: #A9A4FF;
  --on-signal: #FFFFFF;
  /* ボタンや塗り面の色。通常は --signal と同じ（Lime だけ別の色にする） */
  --signal-fill: var(--signal);
  --signal-fill-hover: var(--signal-hover);

  --night: #0B1119;
  --night-2: #131C27;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-ink: #E9ECF1;
  --night-sub: #8D97A6;
  --night-text: #C3CAD4;

  --font: "Geist", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Geist", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 時間帯ごとのカラーパターン（割り当ては assets/theme.js） ---------- */
/* Teal：YOUTRUST 寄り。清潔で信頼感のある深緑 × ティール */
:root[data-theme="teal"] {
  --ink: #0F1F1E;
  --ink-2: #45524F;
  --ink-3: #84918E;
  --line: #DDE5E2;
  --line-strong: #C8D3CF;
  --signal: #0E8C86;
  --signal-hover: #0A736E;
  --signal-soft: #E1F3F1;
  --signal-rgb: 14 140 134;
  --signal-on-dark: #4FD1C5;
  --signal-on-dark-2: #7EE0D6;
  --on-signal: #FFFFFF;
  --night: #0A1716;
  --night-2: #12211F;
  --night-ink: #E6F0EE;
  --night-sub: #86A09B;
  --night-text: #BCCCC8;
}
/* Mono：LegalOn 寄り。黒 × 白のモノクロに、旧サイトの橙をシグナルとして */
:root[data-theme="mono"] {
  --ink: #111111;
  --ink-2: #4D4D4D;
  --ink-3: #8C8C8C;
  --line: #E0E0DC;
  --line-strong: #CBCBC6;
  --signal: #FF5A1F;
  --signal-hover: #EB4A10;
  --signal-soft: #FFEDE5;
  --signal-rgb: 255 90 31;
  --signal-on-dark: #FF8A5C;
  --signal-on-dark-2: #FFA883;
  --on-signal: #FFFFFF;
  --night: #0A0A0A;
  --night-2: #171717;
  --night-ink: #EDEDED;
  --night-sub: #8F8F8F;
  --night-text: #C4C4C4;
}
/* Cobalt：王道の IT 企業らしい信頼感。濃紺 × コバルトブルー（暗いセクションも紺） */
:root[data-theme="cobalt"] {
  --ink: #0A1630;
  --ink-2: #475069;
  --ink-3: #8790A6;
  --line: #E1E5EE;
  --line-strong: #CBD2E0;
  --signal: #155EEF;
  --signal-hover: #0B4BCB;
  --signal-soft: #E6EEFE;
  --signal-rgb: 21 94 239;
  --signal-on-dark: #6EA0FF;
  --signal-on-dark-2: #9DBEFF;
  --on-signal: #FFFFFF;
  --night: #071330;
  --night-2: #0E1C40;
  --night-ink: #E8EDF8;
  --night-sub: #8D99B8;
  --night-text: #C2CCE2;
}
/* Lime：今っぽいスタートアップ感。黒 × ライム（白地の文字と線は濃い緑、塗り面はライム） */
:root[data-theme="lime"] {
  --ink: #0D0F0B;
  --ink-2: #4A4F45;
  --ink-3: #8A8F84;
  --line: #E3E6DE;
  --line-strong: #CDD2C6;
  --signal: #3D7A00;
  --signal-hover: #2F5F00;
  --signal-soft: #F0FBD5;
  --signal-rgb: 198 244 50;
  --signal-on-dark: #C6F432;
  --signal-on-dark-2: #D9FA6E;
  --on-signal: #0D0F0B;
  --signal-fill: #C6F432;
  --signal-fill-hover: #B5E61E;
  --night: #0B0D09;
  --night-2: #151912;
  --night-ink: #EEF2E8;
  --night-sub: #8E9587;
  --night-text: #C9CFC2;
}
/* Berry：大胆さの中に「おやつ」の甘さを少し。深いプラム × マゼンタ */
:root[data-theme="berry"] {
  --ink: #1A1218;
  --ink-2: #54464F;
  --ink-3: #928590;
  --line: #EAE2E8;
  --line-strong: #D6CAD3;
  --signal: #D1246E;
  --signal-hover: #B01A5B;
  --signal-soft: #FCE7F0;
  --signal-rgb: 209 36 110;
  --signal-on-dark: #FF6FA8;
  --signal-on-dark-2: #FF9AC2;
  --on-signal: #FFFFFF;
  --night: #170E15;
  --night-2: #22161F;
  --night-ink: #F5EBF2;
  --night-sub: #9E8E99;
  --night-text: #D7C9D2;
}

/* 時間帯が変わったとき、色をなめらかに移す */
.is-theme-shifting,
.is-theme-shifting *,
.is-theme-shifting *::before,
.is-theme-shifting *::after {
  transition:
    background-color 1.2s ease,
    color 1.2s ease,
    border-color 1.2s ease,
    fill 1.2s ease,
    stroke 1.2s ease,
    box-shadow 1.2s ease !important;
}

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

/* 固定ヘッダーの高さぶんは、ここでまとめてずらす。各要素の scroll-margin-top には、ヘッダーの下に空けたい余白だけを書く */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  /* 日本語は自然に折り返す（言葉の途中でもよい。文節で区切って手前で改行させない）。
     行頭の「、」「。」や小さい「っ」などは避ける。意図的な改行は「。」のあとに <br> で入れる */
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.br-pc { display: inline; }
@media (max-width: 767px) { .br-pc { display: none; } }
/* 途中で折り返すと読めなくなるもの（「2,980円〜」「1〜2営業日」のような数字と単位）だけに使う */
.nobr { white-space: nowrap; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-arrow {
  font-family: var(--font);
  transition: transform .35s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
/* 丸の中の矢印：ボタンの右端に小さな丸を置き、乗せると丸が少しふくらむ */
.btn--circle { gap: 16px; padding-right: 7px; }
.btn-arrow--circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.btn-arrow--circle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.btn:hover .btn-arrow--circle { transform: scale(1.1); }
.btn:hover .btn-arrow--circle svg { transform: translateX(2px); }
.btn--primary .btn-arrow--circle { background: var(--base); color: var(--signal-fill); }
.btn--ghost .btn-arrow--circle { background: var(--ink); color: var(--base); }

.btn--primary { background: var(--signal-fill); color: var(--on-signal); }
.btn--primary:hover { background: var(--signal-fill-hover); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--signal-soft); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--signal); }
.link-arrow:hover span { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
}
.tags--dark li { border-color: var(--night-line); color: var(--night-sub); }


/* =========================================================
   Header
   ========================================================= */
.gh {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}
/* ヘッダーの帯は、スクロールしても背景なしの完全透過。
   帯の色はスマホでメニューを開いたときだけ付ける（疑似要素で） */
.gh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.gh.is-open::before { background: var(--base); border-bottom-color: var(--line); }
/* 文字が本文と重なっても読めるように、まわりを地の色でうっすらぼかす */
.gh-nav a { text-shadow: 0 0 2px var(--base), 0 0 8px var(--base), 0 0 16px var(--base); }
.gh-logo img { filter: drop-shadow(0 0 6px var(--base)); }

/* 暗いセクションの上では、ロゴや文字を明るく（メニュー展開中は明るい地のまま） */
.gh.is-dark:not(.is-open) .gh-nav a { text-shadow: 0 0 2px var(--night), 0 0 8px var(--night), 0 0 16px var(--night); }
.gh.is-dark:not(.is-open) .gh-logo img { filter: invert(1) brightness(1.1) drop-shadow(0 0 6px var(--night)); }
.gh.is-dark:not(.is-open) .gh-nav a { color: var(--night-sub); }
.gh.is-dark:not(.is-open) .gh-nav a:hover { color: var(--night-ink); }
.gh.is-dark:not(.is-open) .gh-toggle span { background: var(--night-ink); box-shadow: 0 0 6px var(--night); }
.gh-logo img,
.gh-toggle span { transition: filter .3s ease, background-color .3s ease; }

.gh-inner {
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.gh-logo img { height: 22px; width: auto; }

.gh-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.gh-nav a { position: relative; color: var(--ink-2); transition: color .2s ease; }
.gh-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.gh-nav a:hover { color: var(--ink); }
.gh-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gh-nav-cta-sp { display: none; }

/* ヘッダーのお問い合わせ：時間帯に関係なく黒。右端に白い丸の矢印。
   暗い背景の上でも輪郭がわかるように、うっすら内側の線を入れる */
.gh-cta {
  gap: 12px;
  height: 40px;
  padding: 0 5px 0 18px;
  background: #111518;
  color: #fff;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.gh-cta:hover { background: #2a3136; }
.gh-cta .btn-arrow--circle { width: 30px; height: 30px; background: #fff; color: #111518; }
.gh-cta .btn-arrow--circle svg { width: 14px; height: 14px; }

.gh-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
/* 丸い枠はなしで2本線だけ。本文と重なっても見えるように、線のまわりを地の色でうっすらぼかす */
.gh-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  box-shadow: 0 0 6px var(--base);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.gh-toggle span:nth-child(1) { top: 16px; }
.gh-toggle span:nth-child(2) { top: 22px; }
.gh-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.gh-toggle[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* PC：スクロールしたら、メニューを右上の「Menu」だけの小さなカプセルにまとめる（ロゴは透過のまま左に）。
   「Menu」を押すとカプセルが左へ伸びて、すべてのメニューが出る。カプセルの位置と幅は site.js で合わせる */
@media (min-width: 961px) {
  .gh-inner { position: relative; }
  .gh-inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 10px;
    bottom: 10px;
    left: var(--pill-x, 0px);
    width: var(--pill-w, 0px);
    border-radius: 999px;
    background: var(--base);
    box-shadow: 0 0 0 1px var(--line), 0 12px 32px -16px rgba(15, 26, 36, 0.35);
    opacity: 0;
    transition: left .5s var(--ease), width .5s var(--ease), opacity .3s ease;
  }
  .gh.is-compact .gh-inner::before,
  .gh.is-releasing .gh-inner::before { opacity: 1; }
  /* カプセルを出す最初の一瞬は、位置と幅を動かさずにメニューの幅でぱっと出す */
  .gh.no-pill-anim .gh-inner::before { transition: opacity .25s ease; }

  /* メニューの文字とボタン：カプセルに吸い込まれるように右へ流れて消え、広げると左から順に戻る */
  .gh-nav a,
  .gh-cta {
    transition: color .2s ease, background-color .25s ease, opacity .4s ease, translate .55s var(--ease), visibility 0s;
  }
  .gh.is-compact:not(.is-expanded) .gh-nav a,
  .gh.is-compact:not(.is-expanded) .gh-cta {
    opacity: 0;
    translate: 40px 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, translate .5s var(--ease), visibility 0s linear .5s;
  }
  /* 吸い込まれるときは「Menu」に近い右側から、戻るときは左側から */
  .gh.is-compact:not(.is-expanded) .gh-nav a:nth-child(1) { transition-delay: .16s, .16s, .5s; }
  .gh.is-compact:not(.is-expanded) .gh-nav a:nth-child(2) { transition-delay: .12s, .12s, .5s; }
  .gh.is-compact:not(.is-expanded) .gh-nav a:nth-child(3) { transition-delay: .08s, .08s, .5s; }
  .gh.is-compact:not(.is-expanded) .gh-nav a:nth-child(4) { transition-delay: .04s, .04s, .5s; }
  .gh-nav a:nth-child(2) { transition-delay: 0s, 0s, .04s, .04s, 0s; }
  .gh-nav a:nth-child(3) { transition-delay: 0s, 0s, .08s, .08s, 0s; }
  .gh-nav a:nth-child(4) { transition-delay: 0s, 0s, .12s, .12s, 0s; }
  .gh-nav a:nth-child(5) { transition-delay: 0s, 0s, .16s, .16s, 0s; }
  .gh-cta { transition-delay: 0s, 0s, .2s, .2s, 0s; }
  .gh.is-compact .gh-nav a { text-shadow: none; }

  /* 「Menu」は、メニューが吸い込まれたあとにふわっと出る */
  .gh.is-compact .gh-toggle { animation: gh-menu-in .45s var(--ease) .2s both; }
  @keyframes gh-menu-in {
    from { opacity: 0; translate: 8px 0; }
    to { opacity: 1; translate: none; }
  }

  .gh.is-compact .gh-toggle {
    display: flex;
    align-items: center;
    width: auto;
    height: 36px;
    margin-left: -16px;
    padding: 0 38px 0 12px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .gh.is-compact .gh-toggle::before { content: "Menu"; }
  .gh.is-compact.is-expanded .gh-toggle::before { content: "Close"; }
  /* ロゴは透過のまま暗いセクションでは白くなるが、カプセルの中は白い地なので暗い文字のまま */
  .gh.is-compact.is-dark .gh-nav a { color: var(--ink-2); text-shadow: none; }
  .gh.is-compact.is-dark .gh-nav a:hover { color: var(--ink); }
  .gh.is-compact.is-dark .gh-toggle span { background: var(--ink); box-shadow: none; }
  .gh.is-compact .gh-toggle span { left: auto; right: 12px; width: 16px; box-shadow: none; }
  .gh.is-compact .gh-toggle span:nth-child(1) { top: 14px; }
  .gh.is-compact .gh-toggle span:nth-child(2) { top: 20px; }
  .gh.is-compact .gh-toggle[aria-expanded="true"] span:nth-child(1),
  .gh.is-compact .gh-toggle[aria-expanded="true"] span:nth-child(2) { top: 17px; }
}

@media (max-width: 960px) {
  .gh-cta { display: none; }
  .gh-toggle { display: block; }
  .gh-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 24px var(--gutter);
    background: var(--base);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .4s var(--ease), visibility 0s linear .4s;
  }
  .gh-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .gh-nav a::after { display: none; }
  .gh-nav-cta-sp { display: block; color: var(--signal) !important; }
  .gh.is-open .gh-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .4s var(--ease);
  }
}

/* =========================================================
   00 Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}

/* ヒーローの小見出し：細い枠のラベル。中を縦線で区切って、2つ目は控えめに */
.hero-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 32px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-label span { white-space: nowrap; }
.hero-label span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--ink-3); }
@media (max-width: 520px) {
  .hero-label span + span { display: none; }
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--signal-soft); }
  50% { box-shadow: 0 0 0 8px rgb(var(--signal-rgb) /0.06); }
}

.hero-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 128px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-line { display: block; white-space: nowrap; }
/* PC：左カラムの幅に合わせて、1行目（7文字）が右の時計にかからない大きさに */
@media (min-width: 961px) {
  .hero-copy { container-type: inline-size; }
  .hero-title { font-size: min(5.8vw, 120px); font-size: min(14cqi, 120px); }
}
/* 2行目は少し小さく、主役の1行目を引き立てる */
.hero-line--sm { margin-top: 0.04em; font-size: 0.8em; }
/* 文字の左端をそろえる：「あ」「を」は字形の左に余白があるぶん、下の英語より右に見えるので、その分だけ左へ */
.hero-title .hero-line { margin-left: -0.09em; }
.hero-title .hero-line--sm { margin-left: -0.075em; }
.hero-lead { margin-left: -0.04em; }

/* 1文字ずつのリビール（JSで .ch に分割） */
.ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s ease;
  transition-delay: calc(var(--i) * 55ms + 150ms);
}
.is-ready .ch { opacity: 1; transform: none; filter: none; }

/* キャッチの下：英語のひとこと */
.hero-lead {
  margin-top: 28px;
  font-family: var(--font);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.js .hero-lead,
.js .hero-actions,
.js .hero-dial,
.js .hero-meta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s ease, transform 1s var(--ease);
}
.is-ready .hero-lead { opacity: 1; transform: none; transition-delay: .85s; }
.is-ready .hero-actions { opacity: 1; transform: none; transition-delay: .95s; }
.is-ready .hero-dial { opacity: 1; transform: none; transition-delay: .3s; }
.is-ready .hero-meta { opacity: 1; transform: none; transition-delay: 1.1s; }

/* ---------- Dial ---------- */
.hero-dial { justify-self: end; width: 100%; max-width: 560px; }
.dial { width: 100%; height: auto; overflow: visible; }
.dial-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.dial-ring--inner { stroke: var(--line); stroke-dasharray: 2 6; }
.dial-ticks line { stroke: var(--ink-3); stroke-width: 1; }
.dial-ticks line.is-major { stroke: var(--ink); stroke-width: 1.6; }
.dial-nums text {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink-3);
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.04em;
}
.dial-arc { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; opacity: 0.9; }
.dial-marker circle { fill: var(--signal); }
.dial-marker-label {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  fill: var(--signal);
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.02em;
}
.dial-readout text {
  font-family: var(--font);
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}
.dial-readout-plate { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.dial-readout-zone { font-size: 11px; font-weight: 500; fill: var(--ink-3); letter-spacing: 0.24em; }
.dial-readout-time { font-size: 34px; font-weight: 300; fill: var(--ink); letter-spacing: 0.02em; dominant-baseline: middle; }
.dial-readout-next { font-size: 11px; font-weight: 500; fill: var(--signal); letter-spacing: 0.04em; }
.dial-hand { stroke-linecap: round; }
.dial-hand--h { stroke: var(--ink); stroke-width: 5; }
.dial-hand--m { stroke: var(--ink); stroke-width: 3; }
.dial-hand--s { stroke: var(--signal); stroke-width: 1.4; }
.dial-pin { fill: var(--signal); stroke: var(--base); stroke-width: 2; }
.dial-readout { pointer-events: none; }

/* ---------- Globe：いま15時台の街のほうを向く地球 ---------- */
.hero-globe { position: relative; aspect-ratio: 1; }
.globe-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.globe-canvas.is-dragging { cursor: grabbing; }

/* 街の印：点が波紋のように広がり、横に街の名前 */
.globe-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.globe-pin.is-on { opacity: 1; }
.globe-pin-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
}
.globe-pin-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  animation: pin-pulse 2.4s var(--ease) infinite;
}
@keyframes pin-pulse {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(1.7); opacity: 0; }
}
/* 街のラベル：点から細い線を引き出し、線の上に街の名前と時刻、下に国名（地図の注記のように）。
   文字のまわりを地の色でぼかして、下の点に埋もれないようにする */
.globe-pin-leader { position: absolute; left: 0; top: 0; }
.globe-pin-leader::before,
.globe-pin-leader::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--ink);
  transform-origin: 0 50%;
}
.globe-pin-leader::before { left: 4px; top: -4px; width: 34px; transform: rotate(-45deg) scaleX(0); }
.globe-pin-leader::after { left: 28px; top: -28px; width: var(--lw, 120px); transform: scaleX(0); }
.globe-pin.is-drawn .globe-pin-leader::before { transform: rotate(-45deg) scaleX(1); transition: transform .35s var(--ease); }
.globe-pin.is-drawn .globe-pin-leader::after { transform: scaleX(1); transition: transform .5s var(--ease) .3s; }
.globe-pin.is-left .globe-pin-leader { transform: scaleX(-1); }
/* 地球の上のほうにある街は、ラベルを下向きに出して外周の文字と重ならないように */
.globe-pin.is-down .globe-pin-leader { transform: scaleY(-1); }
.globe-pin.is-down.is-left .globe-pin-leader { transform: scale(-1, -1); }

.globe-pin-name,
.globe-pin-country {
  position: absolute;
  left: 30px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font);
  text-shadow: 0 0 1px var(--paper), 0 0 3px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper), 0 0 16px var(--paper), 0 0 24px var(--paper);
  opacity: 0;
  translate: 0 4px;
  transition: opacity .4s ease, translate .5s var(--ease);
}
.globe-pin-name { bottom: 32px; }
.globe-pin-country { top: -23px; transition-delay: .6s; }
.globe-pin.is-drawn .globe-pin-name { opacity: 1; translate: none; transition-delay: .25s; }
.globe-pin.is-drawn .globe-pin-country { opacity: 1; translate: none; }
.globe-pin.is-left .globe-pin-name,
.globe-pin.is-left .globe-pin-country { left: auto; right: 30px; }
.globe-pin.is-down .globe-pin-name { bottom: -25px; }
.globe-pin.is-down .globe-pin-country { top: 33px; }

/* 街が変わるときは、空港の発着案内板のように文字がパタパタと入れ替わる */
.globe-pin-name b {
  display: inline-block;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
  vertical-align: bottom;
}
.globe-pin-time { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.globe-pin-country { font-size: 11px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.globe-pin-country span:first-child { letter-spacing: 0.16em; }
.globe-pin-country span:last-child { letter-spacing: 0.06em; }

/* 外周の文字：上に英語、下に日本語。円の大きさと文字サイズは site.js で合わせる */
.globe-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.globe-ring text { font-family: var(--font); font-weight: 500; }
.globe-ring-en { letter-spacing: 0.24em; fill: var(--ink-3); }
.globe-ring-ja { letter-spacing: 0.32em; fill: var(--signal); }
@media (prefers-reduced-motion: reduce) {
  .globe-pin-dot::after { animation: none; opacity: 0; }
}

/* ---------- Hero meta ---------- */
.hero-meta {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 32px;
}
/* FV左下：対応環境。右下の SCROLL と対になる位置に、雑誌の表紙の隅の情報のように */
.hero-platforms { flex: 1; max-width: 520px; font-family: var(--font); }
.hero-platforms dt {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-platforms dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: auto;
}
.scroll-cue span {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--ink-3), var(--ink-3)) no-repeat;
  background-size: 1px 40%;
  animation: cue 2s var(--ease) infinite;
  background-color: var(--line);
}
@keyframes cue {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 260%; }
}

/* タブレット・スマホ：時計を主役として上に大きく置き、テキストはその下に */
@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 4px); padding-bottom: 48px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .hero-dial { order: -1; align-self: center; width: min(100%, 440px); max-width: none; }
  .js .hero-dial { transform: translateY(12px) scale(0.96); }

  .globe-pin-name b { font-size: 13px; }
  .globe-pin-time { font-size: 10px; }
  .globe-pin-country { font-size: 10px; }
  .globe-pin-name,
  .globe-pin-country { gap: 6px; }
  .globe-pin-time { padding-left: 6px; }

  .hero-title { font-size: min(10.4vw, 72px); }
  .hero-lead { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }

  .hero-grid-bg {
    mask-image: radial-gradient(ellipse 80% 32% at 50% 26%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 32% at 50% 26%, #000 20%, transparent 75%);
  }
  /* 下の帯は対応環境だけ。スクロール案内は省く */
  .hero-meta { padding-top: 40px; padding-bottom: 0; }
  .scroll-cue { display: none; }
  .hero-platforms dd { gap: 4px 24px; font-size: 14px; }
}
@media (max-width: 560px) {
  .hero-label { margin-bottom: 16px; padding: 2px 9px; font-size: 8px; line-height: 1.6; letter-spacing: 0.06em; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .btn { justify-content: center; gap: 8px; padding: 0 12px; font-size: 13px; }
  .hero-actions .btn--circle { justify-content: space-between; padding: 0 6px 0 16px; }
  .hero-actions .btn-arrow--circle { width: 30px; height: 30px; }
}

/* =========================================================
   Section scaffolding
   ========================================================= */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--tint { background: var(--tint); }
/* 背景が白で統一なので、塗り分けの代わりに罫線でセクションを区切る */
.sec--tint,
.sec--tint + .sec:not(.sec--dark) { border-top: 1px solid var(--line); }
.sec--dark { background: var(--night); color: var(--night-ink); }

.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
/* 見出しのアクセント：番号の代わりに短い線。表示されるときに左から伸びる */
.sec-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--signal);
  margin-bottom: 20px;
}
.sec-index::before {
  content: "";
  flex: none;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: left center;
}
.js [data-reveal] .sec-index::before { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.25s; }
.js [data-reveal].is-in .sec-index::before { transform: none; }
.sec-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.sec-ja {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.sec--dark .sec-ja { color: var(--night-sub); }
.sec--dark .sec-index { color: var(--signal-on-dark); }

/* 全面は塗らず、その時間帯の色が端からにじんで、ゆっくり漂う */
.sec--drift { position: relative; overflow: hidden; isolation: isolate; }
.sec--drift::before,
.sec--drift::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.sec--drift::before {
  top: 2%;
  right: -14%;
  width: min(72vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 24%, transparent), transparent);
  animation: drift-a 24s ease-in-out infinite alternate;
}
.sec--drift::after {
  bottom: 0;
  left: -16%;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 14%, transparent), transparent);
  animation: drift-b 30s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { translate: 0 0; scale: 1; }
  to { translate: -14vw 8%; scale: 1.12; }
}
@keyframes drift-b {
  from { translate: 0 0; scale: 1.1; }
  to { translate: 16vw -10%; scale: 0.95; }
}
@media (max-width: 560px) {
  .sec--drift::before { right: -50%; width: 130vw; }
  .sec--drift::after { left: -50%; width: 120vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sec--drift::before,
  .sec--drift::after { animation: none; }
}

.sec-desc {
  max-width: 540px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.95;
}
.sec--dark .sec-desc { color: var(--night-sub); }
.sec-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.sub-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.sub-title span {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.sec--dark .sub-title span { color: var(--night-sub); }

/* スクロールで出現 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   01 About
   ========================================================= */
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  border-top: 1px solid var(--line-strong);
  padding-top: 48px;
}
.about-statement {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.about-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; color: var(--ink-2); }
.about-text .link-arrow { margin-top: 12px; color: var(--ink); }

.about-body--text { display: block; }
.about-body--text .about-text { max-width: 44em; font-size: 16px; line-height: 2.1; }

@media (max-width: 860px) {
  .about-body { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   02 Products — 2×2 の横長カード。動きは「静かに浮かぶ」と「光が追う」だけ
   ========================================================= */
.pcard--ikocca,
.prow--ikocca,
.plp--ikocca {
  --p-accent: #C2603F;
  --p-soft: rgba(194, 96, 63, 0.16);
  --p-bg: linear-gradient(150deg, #FCF7F1 0%, #F5E8DA 100%);
}
.pcard--poissh,
.prow--poissh,
.plp--poissh {
  --p-accent: #2F7CF6;
  --p-soft: rgba(15, 198, 160, 0.18);
  --p-bg: linear-gradient(150deg, #F3F8FF 0%, #E4F6F1 100%);
}
.pcard--jibungo,
.prow--jibungo,
.plp--jibungo {
  --p-accent: #1A6FE0;
  --p-soft: rgba(255, 210, 90, 0.45);
  --p-bg: linear-gradient(150deg, #F1F6FF 0%, #FFF3D6 100%);
}
.pcard--another,
.prow--another-contact,
.plp--another {
  --p-accent: #6F5FB8;
  --p-soft: rgba(138, 118, 204, 0.22);
  --p-bg: linear-gradient(150deg, #F7F5FC 0%, #E8E2F5 100%);
}

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.pcard {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  min-height: 340px;
  border-radius: 28px;
  background: var(--p-bg);
  border: 1px solid rgba(15, 26, 36, 0.06);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .8s ease, translate .9s var(--ease);
  transition-delay: 0s, 0s, var(--d, 0ms), var(--d, 0ms);
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 40px 64px -48px rgba(15, 26, 36, 0.4); }
/* カーソルの位置にやわらかい光をあてる（光だけが動き、画像は動かさない） */
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.pcard:hover::before { opacity: 1; }
.pcard:has(.pcard-link:focus-visible) { outline: 2px solid var(--p-accent); outline-offset: 4px; }

.pcard-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 8px 28px 30px;
}
.pcard-id { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pcard-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 20px -12px rgba(15, 26, 36, 0.4), inset 0 0 0 1px rgba(15, 26, 36, 0.06);
}
.pcard-name { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }
.pcard-name--en { font-family: var(--font); font-size: clamp(20px, 1.7vw, 25px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
/* カード全体を押せるように、リンクの当たり判定をカードいっぱいに広げる */
.pcard-link::after { content: ""; position: absolute; inset: 0; z-index: 5; }
.pcard-cat {
  margin-top: 2px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.pcard-catch { margin-top: 14px; font-size: clamp(17px, 1.45vw, 20px); font-weight: 700; line-height: 1.55; color: var(--p-accent); }
.pcard-desc { margin-top: 8px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.pcard-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pcard-more i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  transition: transform .5s var(--ease), background-color .3s ease;
}
.pcard:hover .pcard-more i { transform: translateX(4px); background: var(--p-accent); }
.pcard:hover .ppanel-status::before { width: 44px; }

/* 画面イメージ：下はカードの縁で切る。ホバーでは全体がそろって少し上がるだけ */
.pcard-visual { position: relative; z-index: 2; }
.pv-stage {
  position: absolute;
  inset: 0;
  transition: transform .7s var(--ease);
}
.pcard:hover .pv-stage { transform: translateY(-6px); }
.pv-stage > * {
  position: absolute;
  transition: translate .9s var(--ease), opacity .8s ease;
  transition-delay: calc(var(--d, 0ms) + 150ms + var(--i) * 80ms);
}

.pv-phone {
  width: 50%;
  max-width: 172px;
  padding: 5px;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 36px 60px -32px rgba(15, 26, 36, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.pv-phone img { display: block; width: 100%; border-radius: 25px; }
/* 端末の枠ごと描かれたモックアップ画像は、枠を足さずに影だけ付ける */
.pv-phone--framed { padding: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 26px 30px rgba(36, 34, 44, 0.32)); }
.pv-phone--back { z-index: 1; left: 6%; top: 70px; transform: rotate(-8deg) scale(0.9); }
.pv-phone--front { z-index: 2; left: 40%; top: 34px; transform: rotate(4deg); }

/* 出てくるとき：カードがふわっと上がり、少し遅れて画面イメージが静かに浮かぶ */
.js .pcard:not(.is-shown) { opacity: 0; translate: 0 24px; }
.js .pcard:not(.is-shown) .pv-stage > * { opacity: 0; translate: 0 24px; }

/* ジブンゴ：キャラクターと吹き出し（メモ → 英語） */
.mascot {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: 76%;
  max-width: 440px;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 32px rgba(15, 26, 36, 0.18));
}
.bubble {
  position: absolute;
  z-index: 2;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 32px -16px rgba(15, 26, 36, 0.35);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.bubble small {
  display: block;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bubble--ja { top: 10%; left: 0; border-bottom-left-radius: 4px; }
.bubble--en {
  top: 28%;
  right: 0;
  border-bottom-right-radius: 4px;
  background: var(--p-accent);
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bubble--en small { color: rgba(255, 255, 255, 0.72); }

/* ジブンゴ：会話の英語の例 */
.phrases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phrase {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: 20px;
  background: var(--p-bg);
}
.phrase-ja { font-size: 15px; font-weight: 700; line-height: 1.7; }
.phrase-ja span {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.phrase-en {
  margin-top: auto;
  font-family: var(--font);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--p-accent);
}
.phrase-en::before {
  content: "→";
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.soon-badge i { width: 8px; height: 8px; border-radius: 50%; background: #F2A900; }

@media (max-width: 960px) {
  .mascot { width: 58%; bottom: auto; top: 30px; }
  .bubble { padding: 8px 12px; font-size: 13px; }
  .bubble--en { font-size: 15px; }
  .bubble--ja { top: 66px; left: 16px; }
  .bubble--en { top: 138px; right: 16px; }
  .phrases { grid-template-columns: 1fr; }
}

/* 配信状況：バッジにせず、罫線＋文字の見出しラベルとして置く（まもなくリリースは点線） */
.ppanel-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--p-accent);
}
.ppanel-status::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  transition: width .5s var(--ease);
}
.ppanel-status--soon::before {
  background: repeating-linear-gradient(to right, currentColor 0 4px, transparent 4px 7px);
}
.ppanel-store { display: block; transition: opacity .25s ease; }
.ppanel-store:hover { opacity: 0.75; }
.ppanel-store img { height: 48px; width: auto; }
/* いこっか。：ストア画像を扇状に */
.fan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  max-width: 228px;
  aspect-ratio: 720 / 1557;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 32px 60px -30px rgba(43, 33, 24, 0.5), 0 0 0 1px rgba(43, 33, 24, 0.06);
  transition: transform 1s var(--ease);
}
.fan--c { z-index: 3; transform: translate(-50%, -50%); }
.fan--l { z-index: 1; transform: translate(-112%, -46%) rotate(-8deg) scale(0.9); }
.fan--r { z-index: 2; transform: translate(12%, -46%) rotate(8deg) scale(0.9); }
/* ポイッシュ：iPhone フレーム2台 */
.device {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  max-width: 236px;
  padding: 7px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 40px 70px -34px rgba(15, 26, 36, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transition: transform 1s var(--ease);
}
.device img { width: 100%; border-radius: 33px; }
.device--back { z-index: 1; transform: translate(-96%, -46%) rotate(-7deg) scale(0.88); }
.device--front { z-index: 2; transform: translate(-26%, -50%) rotate(3deg); }
/* Coming soon */
.psoon {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.psoon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--base);
}
.psoon-code {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.psoon-code b { color: var(--signal); font-weight: 600; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.psoon-label { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }


/* タブレット：1列にして横長のまま */
@media (max-width: 1099px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard { min-height: 320px; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}
/* スマホ：画面イメージを上に置いて覗かせる */
@media (max-width: 640px) {
  .pgrid { gap: 16px; }
  .pcard { grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
  .pcard-visual { order: -1; height: 210px; overflow: hidden; }
  .pcard-body { padding: 18px 24px 22px; }
  .pcard-desc { display: none; }
  .pcard-id { margin-top: 16px; }
  .pcard-icon { width: 52px; height: 52px; border-radius: 13px; }
  .pcard-catch { margin-top: 14px; font-size: 18px; }
  /* 端末を少し小さくして、画面の7〜8割が見えるように */
  .pv-phone { width: 33%; }
  .pv-phone--back { left: 18%; top: 48px; }
  .pv-phone--front { left: 47%; top: 20px; }
}

/* 紹介ページ（いこっか。・ポイッシュ）：画面イメージは上部で端末が覗く形にトリミング */
@media (max-width: 960px) {
  .fan { top: 64px; width: 34%; border-radius: 14px; }
  .fan--c { transform: translate(-50%, 0); }
  .fan--l { transform: translate(-110%, 22px) rotate(-8deg) scale(0.9); }
  .fan--r { transform: translate(10%, 22px) rotate(8deg) scale(0.9); }

  .device { top: 64px; width: 36%; border-radius: 28px; padding: 5px; }
  .device img { border-radius: 23px; }
  .device--back { transform: translate(-94%, 24px) rotate(-7deg) scale(0.88); }
  .device--front { transform: translate(-28%, 0) rotate(3deg); }
}
@media (max-width: 560px) {
  .psoon { grid-template-columns: 1fr; gap: 12px; }
  .psoon-card { padding: 18px 20px; }
  .psoon-code { display: none; }
}

/* =========================================================
   Products ページ：1アプリ＝横長の行。左右を交互に入れ替えて並べる
   ========================================================= */
.plist { display: grid; gap: 24px; }
.prow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border-radius: 32px;
  background: var(--p-bg);
  border: 1px solid rgba(15, 26, 36, 0.06);
  overflow: hidden;
}
.prow:nth-child(even) .prow-visual { order: -1; }
.prow-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 56px);
}
.prow .pcard-id { margin-top: 20px; }
.prow .pcard-icon { width: 64px; height: 64px; border-radius: 16px; }
.prow-name { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; }
.prow-name--en { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; }
.prow-catch { margin-top: 22px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; color: var(--p-accent); }
.prow-desc { margin-top: 10px; max-width: 34em; font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.prow-features { display: grid; gap: 8px; margin-top: 22px; }
.prow-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.prow-features li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 11px;
  margin: 0 3px 4px 4px;
  border: solid var(--p-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.prow-meta {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 34em;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 26, 36, 0.08);
  font-size: 13px;
}
.prow-meta div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 12px; }
.prow-meta dt { color: var(--ink-3); }
.prow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 85%, #fff); }

/* 画面イメージ：トップのカードと同じ部品を大きめに。下は行の縁で切る */
.prow-visual { position: relative; z-index: 1; min-height: 420px; }
.prow .pv-phone { width: 44%; max-width: 230px; }
.prow .pv-phone--back { left: 10%; top: 96px; }
.prow .pv-phone--front { left: 44%; top: 56px; }
.prow .pv-phone:not(.pv-phone--framed) { border-radius: 40px; padding: 7px; }
.prow .pv-phone > img { border-radius: 33px; }

@media (max-width: 960px) {
  .prow { grid-template-columns: 1fr; border-radius: 24px; }
  .prow .prow-visual,
  .prow:nth-child(even) .prow-visual { order: -1; min-height: 0; height: 220px; overflow: hidden; }
  .prow .pv-phone { width: 30%; }
  .prow .pv-phone--back { left: 18%; top: 44px; }
  .prow .pv-phone--front { left: 50%; top: 24px; }
}
@media (max-width: 560px) {
  .prow-body { padding: 24px; }
  .prow .pcard-icon { width: 56px; height: 56px; border-radius: 14px; }
  .prow-actions .btn { height: 44px; }
  .prow-actions .ppanel-store img { height: 44px; }
}

/* =========================================================
   03 Development (dark)
   ========================================================= */
.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
}
.cap {
  position: relative;
  padding: 44px 32px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cap + .cap { padding-left: 32px; border-left: 1px solid var(--night-line); }
/* 上の罫線に重ねるインディゴの線（ホバーで項目の幅いっぱいに伸びる） */
.cap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--signal-on-dark);
  transition: width .7s var(--ease);
}
.cap + .cap::before { left: 32px; }
.cap:hover::before { width: calc(100% - 32px); }
.cap + .cap:hover::before { width: calc(100% - 64px); }
.cap:nth-child(2) { --d: 80ms; }
.cap:nth-child(3) { --d: 160ms; }
.cap-title {
  font-family: var(--font);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cap-ja { font-size: 13px; color: var(--night-sub); letter-spacing: 0.08em; }
.cap-desc { margin: 20px 0 24px; font-size: 14px; color: var(--night-text); line-height: 1.9; }
.cap .tags { margin-top: auto; }
/* Development ページ：領域ごとの「こんなご相談に」 */
.cap-list-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--night-sub); }
.cap-list { display: grid; gap: 6px; margin: 10px 0 28px; }
.cap-list li { display: flex; gap: 10px; font-size: 14px; color: var(--night-ink); }
.cap-list li::before { content: "—"; color: var(--signal-on-dark); }

.principles,
.flow { margin-top: clamp(56px, 7vw, 88px); }

/* How we work：箱を使わず、罫線と数字の大小で見せる */
.principles {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.principles-head { position: sticky; top: calc(var(--header-h) + 32px); }
.principles-lead {
  max-width: 22em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--night-sub);
}
.principle-list { border-top: 1px solid var(--night-line); }
.principle-list li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(80px, 9vw, 128px) minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 12px 32px;
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--night-line);
}
.principle-list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--signal-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease);
}
.principle-list li:hover::after { transform: scaleX(1); }
.pl-no {
  font-family: var(--font);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--night-sub);
  transition: color .4s ease;
}
.principle-list li:hover .pl-no { color: var(--signal-on-dark-2); }
.pl-head strong {
  display: block;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.pl-head em {
  display: block;
  margin-top: 6px;
  font-family: var(--font);
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--signal-on-dark);
}
.principle-list p { font-size: 14px; line-height: 1.95; color: var(--night-text); }

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: flow;
}
.flow-list li {
  position: relative;
  padding: 24px 24px 0 0;
  border-top: 1px solid var(--night-line);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.flow-list li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-on-dark);
}
.flow-list span {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--night-sub);
  margin-bottom: 8px;
}
.flow-list small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--night-sub);
}

.dev-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(40px, 5vw, 64px); }
.sec--dark .dev-cta .link-arrow { color: var(--night-ink); }
/* トップの Development：ひとことと料金。数字は細く大きく、罫線で区切って静かに */
.dev-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 40px;
  border-top: 1px solid var(--night-line);
}
.dev-offer-msg { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.6; }
.dev-offer-price { display: flex; }
.dev-offer-price div + div { margin-left: 48px; padding-left: 48px; border-left: 1px solid var(--night-line); }
.dev-offer-price dt { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--night-sub); }
.dev-offer-price dd {
  margin-top: 12px;
  font-family: var(--font);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}
.dev-offer-price dd small { margin-left: 6px; font-family: var(--font-ja); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--night-text); }
.dev-offer + .dev-cta { margin-top: 40px; }
@media (max-width: 760px) {
  .dev-offer { grid-template-columns: 1fr; }
  .dev-offer-price div + div { margin-left: 32px; padding-left: 32px; }
}

/* Development ページ：自社プロダクトへの導線 */
.dev-own { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; }
.dev-own .sec-head { margin-bottom: 0; }
.dev-own-body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.dev-own-lead { font-size: 15px; line-height: 2; color: var(--ink-2); }
.dev-own .mini-apps { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .dev-own { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .dev-own .mini-apps { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap + .cap { padding: 32px 0; border-left: 0; }
  .cap + .cap { border-top: 1px solid var(--night-line); }
  .cap + .cap::before { left: 0; }
  .cap:hover::before,
  .cap + .cap:hover::before { width: 100%; }
  .principles { grid-template-columns: 1fr; }
  .principles-head { position: static; }
  .principle-list li { grid-template-columns: clamp(64px, 12vw, 96px) minmax(0, 1fr); }
  .principle-list p { grid-column: 2; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 560px) {
  .principle-list li { grid-template-columns: 1fr; gap: 10px; }
  .principle-list p { grid-column: auto; margin-top: 4px; }
  .pl-no { font-size: 48px; margin-bottom: 8px; }
}

/* =========================================================
   04 News
   ========================================================= */
.news-rows { border-top: 1px solid var(--line-strong); }
.news-rows li { border-bottom: 1px solid var(--line); }
/* お知らせの一覧：日付を主役に大きく。カテゴリは見出しの上に日本語で小さく、右端は丸い矢印 */
.news-rows a,
.news-rows .news-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 32px;
  padding: 26px 0;
  transition: padding .4s var(--ease), color .25s ease;
}
.news-rows-body { display: block; }
.news-rows-excerpt {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-2);
}
.news-date {
  font-family: var(--font);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.news-date small { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-3); }
.news-cat { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-3); }
.news-rows-title { font-size: 16px; font-weight: 500; }
.news-rows-arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .4s var(--ease);
}
.news-rows-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.news-rows a:hover { padding-left: 12px; }
.news-rows a:hover .news-rows-title { color: var(--signal); }
.news-rows a:hover .news-rows-arrow { transform: translateX(4px); border-color: var(--ink); background: var(--ink); color: var(--base); }

@media (max-width: 760px) {
  .news-rows a,
  .news-rows .news-row {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 20px 0;
  }
  .news-date { font-size: 20px; }
  .news-date small { margin-bottom: 4px; font-size: 10px; }
  .news-rows-title,
  .news-rows-body { font-size: 15px; }
  .news-rows-arrow { display: none; }
  .news-rows a:hover { padding-left: 0; }
}

/* =========================================================
   05 Recruit
   ========================================================= */
.recruit {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px;
  align-items: end;
}
.recruit-lead {
  margin: 0 0 32px;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.7;
}
.recruit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 採用ページのヒーローと同じ夜色＋光だまり。下端に流れる帯 */
.join {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}
.join::before {
  content: "";
  position: absolute;
  inset: -30% -15% auto auto;
  width: 64vw;
  height: 64vw;
  max-width: 820px;
  max-height: 820px;
  z-index: 1;
  background: radial-gradient(closest-side, rgb(var(--signal-rgb) /0.38), transparent);
  pointer-events: none;
}
/* 背景の写真：ほとんど黒に沈め、よく見ると写真だとわかるくらいに */
.join-photo { position: absolute; inset: 0; z-index: 0; margin: 0; pointer-events: none; }
.join-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; filter: grayscale(1) contrast(1.05); opacity: 0.07; }
/* PC では横長になり人物が右の文章に重なるので、人物を中心に少し拡大して、左右の真ん中あたりへ寄せる */
@media (min-width: 861px) {
  .join-photo img { transform-origin: 70% 45%; transform: translateX(-22%) scale(1.8); }
}
.join .wrap { position: relative; z-index: 2; }
.join .marquee { z-index: 2; }
/* 「Now hiring」：円に沿った文字だけがゆっくり回るバッジ。押すと採用ページへ。
   右上の、セクションの上の余白に重ねて置く（並びの外に出すので、セクションの高さは変わらない）。
   大きさは上の余白と同じ割合で変えて、どの画面幅でも説明文にかからないように */
.hire-badge {
  position: absolute;
  top: calc(24px - clamp(72px, 9vw, 128px));
  right: var(--gutter);
  display: block;
  width: clamp(96px, 9vw, 128px);
  height: clamp(96px, 9vw, 128px);
  border-radius: 50%;
  color: var(--night-ink);
  transition: scale .5s var(--ease);
}
.hire-badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hire-badge-text { transform-origin: 60px 60px; animation: hire-spin 16s linear infinite; }
.hire-badge text { font-family: var(--font); font-size: 9.5px; font-weight: 500; fill: currentColor; }
.hire-badge text { transition: fill .3s ease; }
.hire-badge:hover { scale: 1.06; }
.hire-badge:hover text { fill: var(--signal-on-dark); }
@keyframes hire-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .hire-badge-text { animation: none; }
}
.join-title {
  margin-top: 24px;
  font-family: var(--font);
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.join-title span { color: var(--signal-on-dark); }
/* PC：「Now hiring」のカプセルがあったときと同じ位置に、見出し・説明文・ボタンを置く */
@media (min-width: 861px) {
  .join-title { margin-top: 94px; }
}
.join .recruit-lead { color: var(--night-ink); }

@media (max-width: 860px) {
  .recruit { grid-template-columns: 1fr; gap: 40px; }
  /* 1列のときは「採用情報」のラベルと同じ高さの右端に */
  .hire-badge { top: -28px; width: 88px; height: 88px; }
}
@media (max-width: 560px) {
  .recruit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .recruit-actions .btn { justify-content: center; gap: 8px; padding: 0 12px; font-size: 13px; }
}

/* =========================================================
   Development ページ：黒基調。制作例と費用の目安・料金の考え方・よくある質問
   ========================================================= */
/* 色の変数を夜色に置き換えて、ほかのページの部品をそのまま黒の上で使う */
.theme-dark {
  --ink: var(--night-ink);
  --ink-2: var(--night-text);
  --ink-3: var(--night-sub);
  --line: var(--night-line);
  --line-strong: rgba(255, 255, 255, 0.2);
  --base: var(--night-2);
  --paper: var(--night-2);
  --tint: var(--night);
  --fill: rgba(255, 255, 255, 0.05);
  background: var(--night);
  color: var(--night-ink);
}
.theme-dark .sec + .sec { border-top: 1px solid var(--night-line); }
.theme-dark .page-head { border-bottom-color: var(--night-line); }
.theme-dark .link-arrow:hover,
.theme-dark .mini-app:hover i { color: var(--signal-on-dark); }
.theme-dark .faq-item summary::before { color: var(--signal-on-dark); }
/* 白いボタンの文字は、置き換え前の濃い色のまま */
.theme-dark .btn--light { color: var(--night); }

/* ページ見出し：主役は「つくりたいもの」。料金は条件として静かに添える */
.dhero-lead + .page-lead { max-width: 48em; }
.dhero-lead { margin-top: 40px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; line-height: 1.55; }
.dev-terms { display: flex; flex-wrap: wrap; margin-top: 36px; border-top: 1px solid var(--night-line); }
.dev-terms li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 40px 0 0;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dev-terms li + li { padding-left: 40px; border-left: 1px solid var(--night-line); }
.dev-terms span { font-family: var(--font-ja); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--night-sub); }
.dhero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 36px; }

/* 制作例と費用の目安：つくったものが主役。費用は右に小さく添える */
.cases { border-top: 1px solid var(--night-line); }
.case {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 340px);
  grid-template-areas:
    "head main shot"
    "head cost shot"
    "head more shot";
  grid-template-rows: auto auto 1fr;
  column-gap: 40px;
  row-gap: 18px;
  padding: 40px 0;
  border-bottom: 1px solid var(--night-line);
}
.case-head { grid-area: head; display: flex; flex-direction: column; gap: 10px; }
.case-main { grid-area: main; }
.case-no { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--signal-on-dark); }
.case-kind {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--night-sub);
}
.case-client { margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--signal-on-dark); }
.case-title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.4; }
/* 行の長さをそろえ、最後の行に「守る。」のような短い言葉だけが残らないように */
.case-desc { margin-top: 12px; max-width: 38em; font-size: 14px; line-height: 1.95; color: var(--night-text); }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.case-tags li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 12px; color: var(--night-text); }
.case-cost { grid-area: cost; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.case-cost span { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--night-sub); }
.case-cost b { font-family: var(--font); font-size: 18px; font-weight: 600; }
.case-cost small { margin-left: 2px; font-family: var(--font-ja); font-size: 12px; font-weight: 500; }
.cases-note { margin-top: 20px; font-size: 12px; line-height: 1.8; color: var(--night-sub); }
/* 導入の背景を開くボタン（説明の下に置く） */
.case-more {
  grid-area: more;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: transparent;
  color: var(--night-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.case-more span { font-family: var(--font); font-weight: 400; transition: transform .4s var(--ease); }
.case-more:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.case-more:hover span { transform: rotate(90deg); }

/* 制作例のイメージ：精密機械のように作動する抽象UI。
   細い方眼とトンボの上に、線だけの図形を描き、要所だけをテーマ色で光らせる */
.case-shot {
  grid-area: shot;
  position: relative;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 16px 16px,
    #0b1018;
  --cm-acc: var(--signal-on-dark);
}
.cm { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm * { transform-box: fill-box; transform-origin: center; }
.cm-frame { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.cm-label { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 6.5px; letter-spacing: 0.14em; fill: rgba(255, 255, 255, 0.42); }
.cm-live circle { fill: var(--cm-acc); animation: cm-blink 1.6s steps(1) infinite; }
.cm-line,
.cm-line path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.cm-node { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
.cm-core { fill: var(--cm-acc); animation: cm-pulse 2.4s ease-in-out infinite; }
.cm-pkt,
.cm-flow { fill: var(--cm-acc); filter: drop-shadow(0 0 3px var(--cm-acc)); }

/* 01 配信の振り分け：粒が3つの経路を流れ、リッチメニューの面が順に切り替わる */
.cm-tiles rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; animation: cm-tile 3.6s steps(1) infinite; animation-delay: calc(var(--t) * 0.6s); }

/* 02 予約枠の走査：カーソルが1マスずつ止まりながら空き枠を探し、確定する */
.cm-slot { fill: rgba(255, 255, 255, 0.07); }
.cm-slot.is-busy { fill: rgba(255, 255, 255, 0.26); }
.cm-cursor { fill: none; stroke: var(--cm-acc); stroke-width: 1.2; transform-origin: 0 0; animation: cm-scan 6s cubic-bezier(.7, 0, .3, 1) infinite; }
.cm-hit { fill: var(--cm-acc); opacity: 0; animation: cm-hit 6s linear infinite; }
.cm-bar { fill: rgba(255, 255, 255, 0.5); }
.cm-bar.is-dim { fill: rgba(255, 255, 255, 0.18); }
.cm-track { fill: rgba(255, 255, 255, 0.1); }
.cm-fill { fill: var(--cm-acc); transform-origin: left center; animation: cm-fill 6s linear infinite; }
.cm-check-ring { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.cm-check { fill: none; stroke: var(--cm-acc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; animation: cm-check 6s linear infinite; }
.cm-ok { fill: var(--cm-acc); animation: cm-ok 6s linear infinite; }

/* 03 集客の流れ：粒が段階を進み、途中で抜けていく。各段階の柱が順に光る */
.cm-col { fill: rgba(255, 255, 255, 0.1); animation: cm-col 3s ease-in-out infinite; animation-delay: calc(var(--t) * 0.3s); }
.cm-cap { fill: none; stroke: var(--cm-acc); stroke-width: 1.4; }
.cm-flow { opacity: 0; animation: cm-flow 3s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: var(--d); }

/* 04 本部と店舗の同期：目盛りの輪が回り、線の上をデータが流れ、各店舗の状態が進む */
.cm-link { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 2 4; animation: cm-dash 1.2s linear infinite; }
.cm-ticks { fill: none; stroke: rgba(255, 255, 255, 0.32); stroke-width: 5; stroke-dasharray: 1 3.4; animation: cm-spin 24s linear infinite; }
.cm-step { fill: rgba(255, 255, 255, 0.12); animation: cm-step 3.6s steps(1) infinite; animation-delay: calc(var(--t) * 0.6s); }

/* 05 暗号化と自動削除：走査線が通ったデータが伏せ字に変わり、保存期限が減っていく */
.cm-plain,
.cm-mask { fill: none; stroke-linecap: round; }
.cm-plain { stroke: rgba(255, 255, 255, 0.22); stroke-width: 8; transform-origin: right center; animation: cm-unmask 5s cubic-bezier(.5, 0, .5, 1) infinite; }
.cm-mask { stroke: var(--cm-acc); stroke-width: 5; stroke-dasharray: 0.1 6; transform-origin: left center; animation: cm-mask 5s cubic-bezier(.5, 0, .5, 1) infinite; }
.cm-beam rect { fill: var(--cm-acc); opacity: 0.12; }
.cm-beam path { stroke: var(--cm-acc); stroke-width: 1.4; }
.cm-beam { transform-box: view-box; transform-origin: 0 0; animation: cm-beam 5s cubic-bezier(.5, 0, .5, 1) infinite; }
.cm-ring { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; stroke-dasharray: 14 6; animation: cm-spin 18s linear infinite reverse; }
.cm-ttl { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 3; stroke-linecap: round; transform-origin: left center; animation: cm-ttl 6s linear infinite; animation-delay: calc(var(--t) * -2s); }

/* 06 ダッシュボード：折れ線が描かれ、点が順に灯り、目標の計器がたまっていく */
.cm-grid { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.cm-chart { fill: none; stroke: var(--cm-acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: cm-draw 6s cubic-bezier(.6, 0, .3, 1) infinite; }
.cm-area { fill: var(--cm-acc); opacity: 0; animation: cm-area 6s ease infinite; }
.cm-pt { fill: #0b1018; stroke: var(--cm-acc); stroke-width: 1.2; opacity: 0; animation: cm-pt 6s linear infinite; animation-delay: calc(var(--t) * 0.28s); }
.cm-dial { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 4; stroke-dasharray: 0.8 5.48; animation: cm-spin 40s linear infinite; }
.cm-track-ring { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 5; }
.cm-gauge { fill: none; stroke: var(--cm-acc); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; transform: rotate(-90deg); animation: cm-gauge 6s cubic-bezier(.6, 0, .3, 1) infinite; }
.cm-num { font-family: var(--font); font-size: 15px; font-weight: 600; fill: #fff; }
.cm-num tspan { font-size: 8px; fill: rgba(255, 255, 255, 0.55); }

@keyframes cm-blink { 50% { opacity: 0.2; } }
@keyframes cm-pulse { 50% { opacity: 0.45; } }
@keyframes cm-spin { to { rotate: 360deg; } }
@keyframes cm-dash { to { stroke-dashoffset: -12; } }
@keyframes cm-tile {
  0% { fill: color-mix(in srgb, var(--cm-acc) 30%, transparent); stroke: var(--cm-acc); }
  16.66% { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.28); }
}
@keyframes cm-scan {
  0%, 10% { translate: 26px 56px; }
  13%, 23% { translate: 86px 56px; }
  26%, 36% { translate: 146px 76px; }
  39%, 49% { translate: 66px 96px; }
  52%, 62% { translate: 106px 116px; }
  65%, 100% { translate: 126px 96px; }
}
@keyframes cm-hit { 0%, 66% { opacity: 0; } 69%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cm-fill { 0%, 68% { scale: 0 1; } 84%, 96% { scale: 1 1; } 100% { scale: 0 1; } }
@keyframes cm-check { 0%, 84% { stroke-dashoffset: 12; } 90%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 12; } }
@keyframes cm-ok { 0%, 86% { opacity: 0; } 90%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cm-col { 50% { fill: rgba(255, 255, 255, 0.22); } }
@keyframes cm-flow {
  0% { translate: 0 0; opacity: 0; }
  8%, 80% { opacity: 1; }
  100% { translate: var(--to) 0; opacity: 0; }
}
@keyframes cm-step { 0% { fill: var(--cm-acc); } 33.33% { fill: rgba(255, 255, 255, 0.12); } }
@keyframes cm-beam { 0% { translate: 0 0; opacity: 0; } 6% { opacity: 1; } 60% { translate: 150px 0; opacity: 1; } 66%, 100% { translate: 150px 0; opacity: 0; } }
@keyframes cm-unmask { 0%, 4% { scale: 1 1; opacity: 1; } 60%, 92% { scale: 0 1; opacity: 1; } 93% { scale: 1 1; opacity: 0; } 100% { scale: 1 1; opacity: 1; } }
@keyframes cm-mask { 0%, 4% { scale: 0 1; opacity: 1; } 60%, 92% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; } }
@keyframes cm-ttl { 0% { scale: 1 1; stroke: rgba(255, 255, 255, 0.3); } 85% { stroke: rgba(255, 255, 255, 0.3); } 96% { scale: 0.04 1; stroke: var(--cm-acc); } 100% { scale: 0 1; } }
@keyframes cm-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 45%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cm-area { 0%, 30% { opacity: 0; } 50%, 88% { opacity: 0.12; } 100% { opacity: 0; } }
@keyframes cm-pt { 0%, 8% { opacity: 0; } 12%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cm-gauge { 0% { stroke-dashoffset: 100; } 45%, 90% { stroke-dashoffset: 18; } 100% { stroke-dashoffset: 100; } }

/* 画面に入るまでは止めておく。動きを減らす設定では、止まった状態で見せる */
.cases:not(.is-in) .cm * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .cm * { animation: none !important; }
  .cm-pkt,
  .cm-flow,
  .cm-beam { display: none; }
}

/* ポップアップの中では大きめに */
.cdlg .case-shot { height: 280px; margin-top: 24px; }

/* 制作例の詳細（ポップアップ） */
.cdlg-no { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--signal-on-dark); }
.cdlg-no span {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.cdlg .rdlg-title { margin-top: 10px; }
.cdlg .pos-spec { margin: 24px 0 32px; }
.cdlg .pos-spec li + li { margin-top: 6px; }
.cdlg-cost { font-family: var(--font); font-size: 18px; font-weight: 600; }
/* スマホ：上に余白を残さず、画面いっぱいのシートで開く（中身はシートの中でスクロール） */
@media (max-width: 640px) {
  .rdlg.cdlg { height: calc(100svh - 16px); max-height: none; }
}

/* 料金の考え方：仕様表のように並べる */
.pricing { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.pricing .sec-head { margin-bottom: 0; }
.pricing-lead { font-size: 16px; line-height: 2; color: var(--night-text); }
.pricing-spec { margin-top: 36px; border-top: 1px solid var(--night-line); }
.pricing-spec div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-line);
}
.pricing-spec dt { font-size: 13px; color: var(--night-sub); letter-spacing: 0.04em; }
.pricing-spec dd { font-family: var(--font); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.pricing-spec dd small { display: block; margin-top: 4px; font-family: var(--font-ja); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--night-sub); }
.pricing-spec .pricing-spec-text { font-family: var(--font-ja); font-size: 14px; font-weight: 500; line-height: 1.9; letter-spacing: 0; }
.dev-cta-note { font-size: 13px; color: var(--night-sub); }
/* 料金の考え方の下：無料でお見積り。黒の上に白い面を置き、ひと目でボタンとわかるように */
.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
  padding: 32px 32px 32px 36px;
  border-radius: 24px;
  background: #fff;
  color: var(--night);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pricing-cta-body { display: flex; flex-direction: column; }
.pricing-cta-label { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.pricing-cta-title { margin-top: 6px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.pricing-cta-text { margin-top: 8px; max-width: 32em; font-size: 14px; line-height: 1.85; color: #4A5462; }
.pricing-cta-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--signal-fill);
  color: var(--on-signal);
  font-family: var(--font);
  font-size: 22px;
  transition: transform .5s var(--ease);
}
.pricing-cta:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.75); }
.pricing-cta:hover .pricing-cta-arrow { transform: translateX(4px); }
@media (max-width: 560px) {
  .pricing-cta { gap: 16px; padding: 24px 20px 24px 24px; }
  .pricing-cta-arrow { width: 48px; height: 48px; font-size: 18px; }
}

@media (max-width: 960px) {
  .case {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "shot" "main" "cost" "more";
    grid-template-rows: none;
    gap: 16px;
    padding: 32px 0;
  }
  .case-head { flex-direction: row; align-items: center; }
  .pricing { grid-template-columns: 1fr; gap: 32px; }
}
/* スマホ：制作例は縦に積まず、横にスワイプして1件ずつ見る */
@media (max-width: 760px) {
  .cases {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    border-top: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cases::-webkit-scrollbar { display: none; }
  /* 横にスワイプして見比べる一覧なので、カードは画面の半分ほどの高さに。
     詳しい説明やタグはポップアップで読めるので、カードでは説明を2行までにする */
  .case {
    flex: 0 0 84%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 18px;
    border: 1px solid var(--night-line);
    border-radius: 20px;
    background: var(--night-2);
    scroll-snap-align: start;
  }
  .case-shot { height: 128px; margin: 0 -6px; border-radius: 12px; }
  .cdlg .case-shot { height: 230px; margin: 20px 0 0; border-radius: 16px; }
  .case-client { margin-bottom: 4px; font-size: 12px; }
  .case-title { font-size: 18px; }
  .case-desc {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.75;
  }
  .case-tags { display: none; }
  .case-cost { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--night-line); }
  .case-cost b { font-size: 16px; }
  .case-more { justify-content: space-between; width: 100%; padding: 9px 16px; font-size: 12px; }
}
@media (max-width: 560px) {
  .dev-terms li { padding-right: 20px; font-size: 17px; }
  .dev-terms li + li { padding-left: 20px; }
  .pricing-spec div { grid-template-columns: 1fr; gap: 6px; }
}

/* よくある質問 */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 22px 48px 22px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; font-family: var(--font); font-weight: 600; color: var(--signal); }
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 10px;
  height: 10px;
  border: solid var(--ink-3);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-75%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item p { padding: 0 48px 24px 30px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }

@media (max-width: 960px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   下層ページ共通：ページ見出し
   ========================================================= */
.page-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-head .wrap { position: relative; }
.crumb {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.crumb a { transition: color .2s ease; }
.crumb a:hover { color: var(--signal); }
.page-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(72px, 14vw, 184px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
/* 長い見出し（Development など）はスマホで画面からはみ出さないよう小さめから */
.page-title--long { font-size: clamp(50px, 14vw, 184px); }
.page-lead { margin-top: 24px; max-width: 40em; font-size: 15px; line-height: 2; color: var(--ink-2); }
/* 色の付いた FV は、下に向かって本文の白へ溶かしてつなげる（文字は色の濃い上側に収まる） */
.page-head--fade { --fade: clamp(72px, 8vw, 112px); padding-bottom: var(--fade); border-bottom: 0; }
/* グラデーションそのものが余白になるので、次のセクションの上の余白は詰める */
.page-head--fade + .sec { border-top: 0; padding-top: clamp(16px, 3vw, 40px); }

/* About：ミッションの言葉そのものを FV の主役に（トップと同じく1文字ずつ浮かび上がる） */
.ph-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.ph-kicker::before { content: ""; width: 32px; height: 1.5px; background: currentColor; }
.ph-kicker span { font-family: var(--font-ja); font-weight: 500; letter-spacing: 0.08em; text-transform: none; color: var(--ink-3); }
.ph-statement { font-size: clamp(24px, 7.2vw, 96px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

/* 日本語・英語の切り替え（英語版があるのは About のみ）：パンくずの右端に置く */
.lang-switch {
  position: absolute;
  top: -3px;
  right: var(--gutter);
  display: flex;
  gap: 4px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.lang-switch > * { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-3); }
.lang-switch [aria-current] { border-color: var(--ink); background: var(--ink); color: var(--base); }
.lang-switch a { transition: color .2s ease, border-color .2s ease; }
.lang-switch a:hover { border-color: var(--signal); color: var(--signal); }

/* 英語版：欧文は Geist で組む。見出しは1行に収めず、狭い画面では単語の間で折り返す */
html[lang="en"] { --font-ja: var(--font); }
html[lang="en"] .hero-line { white-space: normal; }

/* Products：4つのアプリの色を淡く重ね、アイコンを右に並べる */
.page-head--products {
  background:
    radial-gradient(55% 80% at 90% 10%, rgba(194, 96, 63, 0.34), transparent 70%),
    radial-gradient(50% 75% at 62% 100%, rgba(47, 124, 246, 0.28), transparent 70%),
    radial-gradient(45% 70% at 100% 90%, rgba(138, 118, 204, 0.36), transparent 70%),
    radial-gradient(55% 70% at 40% 0%, rgba(15, 198, 160, 0.24), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(255, 210, 90, 0.3), transparent 70%),
    #FBFAF8;
}
/* いちばん上に、下へ向かって白くなる幕を重ねる */
.page-head--products::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--base) 100%);
  pointer-events: none;
}
.ph-icons {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 88px);
  gap: 18px;
  transform: translateY(-46%) rotate(-6deg);
}
.ph-icons img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 24px 40px -24px rgba(15, 26, 36, 0.45), inset 0 0 0 1px rgba(15, 26, 36, 0.06);
}
.ph-icons img:nth-child(2n) { translate: 0 36px; }
@media (max-width: 960px) {
  .ph-icons { position: static; display: flex; gap: 12px; margin-top: 32px; transform: none; }
  .ph-icons img { width: 52px; height: 52px; border-radius: 13px; }
  .ph-icons img:nth-child(2n) { translate: none; }
}

.gh-nav a[aria-current="page"] { color: var(--ink); }
.gh-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* =========================================================
   News ページ：その時間帯の色を淡く敷いた FV、注目の1件、年ごとの一覧
   ========================================================= */
.page-head--news {
  background:
    radial-gradient(55% 90% at 88% 0%, color-mix(in srgb, var(--signal) 30%, transparent), transparent 70%),
    radial-gradient(45% 80% at 8% 20%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%),
    var(--base);
}
.page-head--news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--base) 100%);
  pointer-events: none;
}

/* 最新の3件：横並びのカード。画像のないお知らせは、カテゴリの色と文字で見せる */
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--base);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.news-card:hover { transform: translateY(-3px); box-shadow: 0 32px 56px -44px rgba(15, 26, 36, 0.4); }
.news-card-visual { position: relative; display: grid; place-items: center; height: 200px; overflow: hidden; }
.news-card-visual--product { background: linear-gradient(150deg, #FCF7F1 0%, #F5E8DA 100%); }
.news-card-visual--product img {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 46%;
  max-width: 170px;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 26px rgba(43, 33, 24, 0.28));
  transition: transform .7s var(--ease);
}
a.news-card:hover .news-card-visual--product img { transform: translate(-50%, -6px); }
.news-card-visual--notice { background: var(--fill); color: var(--ink-3); }
.news-card-visual--journal { background: linear-gradient(150deg, #FFF8E6 0%, #FCEBC2 100%); color: #9A6A00; }
.news-card-word { font-family: var(--font); font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.news-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.news-card-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; color: var(--ink-3); }
.news-card-meta .news-cat { margin: 0; padding-left: 10px; border-left: 1px solid var(--line-strong); }
.news-card-title { font-size: 17px; font-weight: 700; line-height: 1.6; }
.news-card-text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-all { margin-top: clamp(56px, 7vw, 88px); }

.news-archive { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
/* 一覧ページは本文の抜粋まであるので、日付は上でそろえる */
.news-archive .news-rows a,
.news-archive .news-rows .news-row { align-items: start; }
.news-year { font-family: var(--font); font-size: clamp(40px, 4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }

/* カテゴリごとの色 */

/* タブレット・スマホ：最新の3件は横にスワイプ */
@media (max-width: 860px) {
  .news-cards {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .news-cards::-webkit-scrollbar { display: none; }
  .news-card { flex: 0 0 min(80%, 340px); scroll-snap-align: start; }
  .news-card-visual { height: 170px; }
  .news-archive { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
   About：名前の由来
   ========================================================= */
.name-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  border-top: 1px solid var(--night-line);
  padding-top: clamp(48px, 6vw, 80px);
}
.name-dial { width: 100%; max-width: 440px; }
.name-q {
  font-family: var(--font);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.name-lead {
  margin-top: 32px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.7;
}
.name-desc {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
  color: var(--night-text);
}

/* 暗い背景の上の時計 */
.sec--dark .dial-ring { stroke: rgba(255, 255, 255, 0.18); }
.sec--dark .dial-ticks line { stroke: rgba(255, 255, 255, 0.3); }
.sec--dark .dial-ticks line.is-major { stroke: var(--night-ink); }
.sec--dark .dial-hand--h,
.sec--dark .dial-hand--m { stroke: var(--night-ink); }
.sec--dark .dial-arc { stroke: var(--signal-on-dark); }
.sec--dark .dial-marker circle { fill: var(--signal-on-dark); }
.sec--dark .dial-marker-label { fill: var(--signal-on-dark-2); }
.sec--dark .dial-pin { fill: var(--signal-on-dark); stroke: var(--night); }

/* About の時計：2時→3時のアニメーション */
.dial-now {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
  fill: var(--ink);
}
.sec--dark .dial-now { fill: var(--night-ink); }
.dial-marker circle,
.dial-marker-label { transition: opacity .6s ease; }
.dial.is-waiting .dial-marker circle,
.dial.is-waiting .dial-marker-label { opacity: 0.3; }
.dial-halo {
  fill: none;
  stroke: var(--signal-on-dark);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.dial.is-three .dial-halo { animation: dial-halo 1.6s var(--ease) 2; }
@keyframes dial-halo {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(4.5); }
}

/* =========================================================
   About：スタジオ概要
   ========================================================= */
.facts { border-top: 1px solid var(--line-strong); }
.facts > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; }
.facts dd { font-size: 15px; line-height: 1.9; }
.facts a { border-bottom: 1px solid currentColor; transition: color .2s ease; }
.facts a:hover { color: var(--signal); }
.facts-map { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 860px) {
  .name-body { grid-template-columns: 1fr; }
  .name-dial { max-width: 300px; }
}
@media (max-width: 560px) {
  .facts > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
}

/* =========================================================
   Contact ページ：ご用件を選ぶ → 用件ごとの専用フォーム
   ========================================================= */
.ccontact [hidden],
.cform [hidden] { display: none !important; }

.cpick-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  scroll-margin-top: 24px;
}
.cpick-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.5; }
.cpick-note { font-size: 14px; color: var(--ink-2); }
.cpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); scroll-margin-top: 16px; }
.cpick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .3s ease, background-color .3s ease, color .3s ease, box-shadow .4s ease, transform .4s var(--ease);
}
.cpick-icon { width: 44px; height: 44px; }
.cpick-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cpick-icon [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cpick-card:hover .cpick-icon [pathLength] { animation: cpick-draw 1s var(--ease) both; }
.cpick-card:hover .cpick-icon [pathLength]:nth-child(2) { animation-delay: .12s; }
.cpick-card:hover .cpick-icon [pathLength]:nth-child(3) { animation-delay: .24s; }
@keyframes cpick-draw { from { stroke-dashoffset: 1; } }
.cpick-en {
  padding-top: clamp(40px, 4.4vw, 64px);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.cpick-name { margin-top: 8px; font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; line-height: 1.5; }
.cpick-name small { display: none; }
.cpick-text { margin: 10px 0 24px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.cpick-tag {
  margin-top: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 12px;
  font-weight: 500;
}
.cpick-arrow {
  position: absolute;
  top: clamp(24px, 2.4vw, 32px);
  right: clamp(24px, 2.4vw, 32px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.cpick-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.cpick-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 22px 44px -32px rgba(15, 26, 36, 0.5); }
.cpick-card:hover .cpick-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.cpick-card:hover .cpick-arrow svg { transform: translateY(2px); }
.cpick-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ご用件を選んだあとは、小さな切り替えに */
.cpick.is-picked .cpick-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px 14px 20px;
  border-radius: 999px;
}
.cpick.is-picked .cpick-card:hover { transform: none; box-shadow: none; }
.cpick.is-picked .cpick-icon { flex: none; width: 28px; height: 28px; }
.cpick.is-picked .cpick-en,
.cpick.is-picked .cpick-text,
.cpick.is-picked .cpick-tag { display: none; }
.cpick.is-picked .cpick-name { margin: 0; font-size: 15px; line-height: 1.4; }
.cpick.is-picked .cpick-arrow { position: static; flex: none; width: 32px; height: 32px; margin-left: auto; }
.cpick.is-picked .cpick-arrow svg { width: 14px; height: 14px; }
.cpick-card[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cpick-card[aria-current="true"] .cpick-arrow { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: #fff; }

/* 用件ごとのフォーム（左に説明、右にフォーム） */
.cpanel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
  scroll-margin-top: 16px;
  animation: cpanel-in .7s var(--ease) both;
}
@keyframes cpanel-in { from { opacity: 0; transform: translateY(20px); } }
.cpanel-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.cpanel-en {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.cpanel-title { margin-top: 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.55; }
.cpanel-text { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.cpanel-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
.cpanel-facts dt { font-size: 11px; color: var(--ink-3); }
.cpanel-facts dd { margin: 2px 0 0; font-family: var(--font); font-size: 26px; font-weight: 500; line-height: 1.3; }
.cpanel-facts dd small { margin-left: 2px; font-family: var(--font-ja); font-size: 12px; font-weight: 500; }
.cpanel .cp-topics { margin-top: 32px; }
.cpanel-more { margin-top: 24px; }
.cpanel-elsewhere { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.cpanel-elsewhere li { padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.cpanel-elsewhere a { display: inline-flex; gap: 6px; margin-left: 4px; color: var(--ink); font-weight: 700; border-bottom: 1px solid currentColor; transition: color .2s ease; }
.cpanel-elsewhere a:hover { color: var(--signal); }

.cp-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 72px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.cp-direct .cp-mail,
.cp-direct .cp-mail + .cp-mail { margin-top: 0; }

.cp-topics { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.cp-topics li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 500;
}
.cp-topics span { font-family: var(--font); font-size: 13px; color: var(--signal); padding-top: 2px; }
.cp-topics small { grid-column: 2; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.cp-mail { margin-top: 40px; }
.cp-mail-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cp-mail a {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: color .2s ease;
}
.cp-mail a:hover { color: var(--signal); }
.cp-mail + .cp-mail { margin-top: 28px; }
.cp-address { margin-top: 6px; font-style: normal; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

.cform {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}
.cform fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.cform-row { display: flex; flex-direction: column; gap: 10px; }
.cform-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
}
.req,
.opt {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.req { background: var(--signal-soft); color: var(--signal); }
.opt { background: var(--fill); color: var(--ink-3); }

.cform input[type="text"],
.cform input[type="email"],
.cform input[type="tel"],
.cform input[type="url"],
.cform select,
.cform textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--base);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cform textarea {
  height: auto;
  min-height: 200px;
  padding: 14px 16px;
  line-height: 1.8;
  resize: vertical;
}
.cform textarea::placeholder,
.cform input::placeholder { color: var(--ink-3); font-size: 14px; }
.cform select {
  appearance: none;
  padding-right: 40px;
  background: var(--base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237A8592' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
}
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.cform input:user-invalid,
.cform textarea:user-invalid { border-color: #D64545; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip-radio span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--base);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chip-radio:hover span { border-color: var(--ink-3); }
.chip-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-radio input:focus-visible + span { box-shadow: 0 0 0 4px var(--signal-soft); border-color: var(--signal); }

.agree { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--signal); }
.agree a { color: var(--signal); border-bottom: 1px solid currentColor; }

.cform-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
button.btn { border: 0; cursor: pointer; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 15px; }
.cform-hint { font-size: 12px; color: var(--ink-3); }
.cform-status { font-size: 14px; line-height: 1.8; }
.cform-status:empty { display: none; }
.cform-status[data-state="error"] { color: #D64545; }
.cform-status[data-state="info"] { color: var(--signal); }
.cform-status a { border-bottom: 1px solid currentColor; font-weight: 500; }
/* 送信中のボタン（site.js が中身を回る印と「送信しています…」に変える） */
.cform button[type="submit"]:disabled { cursor: progress; }
.btn.is-sending { justify-content: center; gap: 10px; }
.btn--primary.is-sending { background: var(--signal-fill-hover); }
.btn-spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .8s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
/* 自動送信よけの入力欄（site.js が足す）。人には見せない */
.cform-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* 送信できたら、フォームの中身を「受け付けました」に入れ替える */
.cform { scroll-margin-top: 16px; }
.cform.is-sent > :not(.cform-done) { display: none; }
.cform-done { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(8px, 2vw, 24px) 0; outline: none; animation: cpanel-in .7s var(--ease) both; }
.cform-done-mark svg { display: block; width: 56px; height: 56px; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cform-done-mark [pathLength] { stroke-dasharray: 1; animation: cpick-draw .9s var(--ease) .15s both; }
.cform-done-mark path { animation-duration: .5s; animation-delay: .75s; }
.cform-done-en {
  margin-top: 28px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.cform-done-title { margin-top: 10px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.55; }
.cform-done-text { margin-top: 14px; font-size: 15px; line-height: 2; color: var(--ink-2); }
.cform-done-text [data-when] { display: block; }
.cform-done-note { align-self: stretch; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.9; color: var(--ink-3); }
.cform-done-note a { color: var(--signal); border-bottom: 1px solid currentColor; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .cform-done,
  .cform-done-mark [pathLength] { animation: none; }
}

/* フォームの中の区切り（01 ご相談の内容 / 02 ご連絡先） */
.cform-step { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.cform-step span { font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--signal); }
.cform-step::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cform-step:not(:first-child) { margin-top: 20px; }

/* 説明つきの大きな選択肢（採用：応募 / カジュアル面談） */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice-card > span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px 18px 50px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--base);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.choice-card > span::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 18px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--base);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.choice-card b { font-size: 15px; line-height: 1.5; }
.choice-card small { font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.choice-card:hover > span { border-color: var(--ink-3); }
.choice-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card input:checked + span::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--base); }
.choice-card input:focus-visible + span { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }

/* 選んだ内容に応じて出てくる項目 */
.cform [data-when]:not([hidden]) { animation: cwhen-in .45s var(--ease) both; }
@keyframes cwhen-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 860px) {
  .cform-grid { grid-template-columns: 1fr; }
  .cform { border-radius: 20px; }
  .cform-actions .btn { width: 100%; justify-content: center; }

  .cpick { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cpick-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    column-gap: 14px;
    align-items: center;
    min-height: 0;
    padding: 18px 16px 18px 18px;
    border-radius: 20px;
  }
  .cpick-card:hover { transform: none; }
  .cpick-icon { grid-row: 1 / span 3; align-self: start; width: 36px; height: 36px; }
  .cpick-en { grid-column: 2; margin: 0; padding: 0; font-size: 11px; }
  .cpick-name { grid-column: 2; margin-top: 2px; font-size: 17px; }
  .cpick-text { grid-column: 2; margin: 4px 0 0; font-size: 13px; line-height: 1.7; }
  .cpick-tag { display: none; }
  .cpick-arrow { position: static; grid-column: 3; grid-row: 1 / span 3; width: 36px; height: 36px; }

  /* 選んだあとは、3つ並びの切り替えに */
  .cpick.is-picked { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cpick.is-picked .cpick-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 16px;
  }
  .cpick.is-picked .cpick-icon { align-self: center; width: 24px; height: 24px; }
  .cpick.is-picked .cpick-name { font-size: 12px; text-align: center; }
  .cpick.is-picked .cpick-name > span { display: none; }
  .cpick.is-picked .cpick-name small { display: block; font-size: inherit; }
  .cpick.is-picked .cpick-arrow { display: none; }

  /* 説明 → フォーム → 流れ の順に並べ替える */
  .cpanel { display: flex; flex-direction: column; gap: 0; }
  .cpanel-aside { display: contents; }
  /* 縦並びでは画面の幅に合わせる（中の選択肢の長さで、320px 幅の画面からはみ出さないように） */
  .cpanel .cform { order: 1; align-self: stretch; min-width: 0; margin-top: 28px; }
  .cpanel .cp-topics,
  .cpanel-more,
  .cpanel-elsewhere { order: 2; }
  .cpanel .cp-topics,
  .cpanel-elsewhere { margin-top: 40px; }
  .cpanel-facts dd { font-size: 22px; }
  .choice { grid-template-columns: 1fr; }
}

/* =========================================================
   Recruit ページ（トップとは違う見せ方にする）
   ========================================================= */

/* 小さなセクションラベル：(01) Message — メッセージ ──── */
.rlabel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 48px);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.rlabel b { font-weight: 500; color: var(--signal); }
.rlabel::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.rlabel--dark { color: var(--night-sub); }
.rlabel--dark b { color: var(--signal-on-dark); }
.rlabel--dark::after { background: var(--night-line); }

.rsec-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* 黒い地のセクション（白どうしが続くところは、写真の細い帯 .rslit で区切る） */
.rtone-ink {
  --ink: var(--night-ink);
  --ink-2: var(--night-text);
  --ink-3: var(--night-sub);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --signal: var(--signal-on-dark);
  position: relative;
  isolation: isolate;
  background: #0b0b0b;
  color: var(--ink);
}
/* 黒い地にも、写真と同じ粒子をうっすら */
.rtone-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.3 -0.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.rhero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  background: var(--night);
  color: var(--night-ink);
}
.rhero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgb(var(--signal-rgb) /0.38), transparent);
  pointer-events: none;
}
.rhero .wrap { position: relative; }
.rhero .crumb { color: var(--night-sub); }
.rhero-title {
  margin-top: 28px;
  font-family: var(--font);
  font-size: clamp(88px, 17vw, 232px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.rhero-title span { color: var(--signal-on-dark); }
.rhero-lead {
  margin-top: 36px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.6;
}
.rhero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

/* 職種名が流れ続ける帯 */
.marquee {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 22px 0;
  border-top: 1px solid var(--night-line);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-right: 0.5em;
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}
.marquee-track span::after {
  content: "";
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--signal-on-dark);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Message：スクロールで文字が濃くなる ---------- */
.fill-text {
  max-width: 28em;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.fill-text.is-split .fc { color: var(--line-strong); transition: color .3s ease; }
.fill-text.is-split .fc.is-lit { color: var(--ink); }

/* ---------- フィルム写真：白黒・粒子・細い枠・時刻の写し込み ----------
   写真はそのまま置けば、ここで同じトーンにそろう（人物は使わない） */
.film { position: relative; margin: 0; overflow: hidden; background: #1a1a1a; isolation: isolate; }
.film img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.96); }
/* 粒子は重ねるだけ（動かすのはFVの1枚だけにして、ページを軽く保つ） */
.film::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.3 -0.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.34;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.film::after { content: ""; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.32); pointer-events: none; }
/* ---------- 写真を目立たせず、質感として溶け込ませる ---------- */
.rtexture { position: absolute; inset: 0; z-index: 0; background: transparent; }
.rtexture img { opacity: 0.16; }
.rtexture::after { display: none; }

/* ---------- Hero：写真は入れず、黒地に大きな「Join us.」だけ ---------- */
.rhero--type { background: #0b0b0b; }
.rhero--type::before { display: none; }
.rhero--type .wrap,
.rhero--type .marquee { z-index: 1; }
.rhero--type .crumb { color: rgba(255, 255, 255, 0.6); }

/* ---------- Message：左に写真を固定し、右の文章だけがスクロールする ---------- */
.rmsg { background: var(--base); }
.rmsg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rmsg-photo { position: sticky; top: 0; height: 100svh; }
.rmsg-photo::after { inset: 16px; }
/* 縦長に切り取っても、窓辺の人物とパソコンが枠に収まるように */
.rmsg-photo img { object-position: 65% 50%; }
.rmsg-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130svh;
  padding: clamp(96px, 12vw, 180px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) clamp(96px, 12vw, 180px) clamp(40px, 6vw, 96px);
}
.rmsg-body .fill-text { font-size: clamp(22px, 2.4vw, 34px); }

/* ---------- こんな人と、働きたい。見出しを左に固定し、
   読み進めると、一文ずつ白く浮かび上がっていく ---------- */
.rwant { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rwant-title { position: sticky; top: calc(var(--header-h) + 40px); }
.want-list li { padding: clamp(16px, 2.2vw, 26px) 0; font-size: clamp(22px, 2.8vw, 38px); }
.want-list p {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
/* カメラのピントが合うように、ぼやけた文字が1行ずつくっきり浮かび上がる */
.want-list p span {
  display: block;
  transition: color .8s ease, filter 1s var(--ease), translate 1s var(--ease);
}
.want-list p span + span { transition-delay: .14s; }
.js .want-list li:not(.is-on) p span { color: var(--line-strong); filter: blur(7px); translate: 0 0.3em; }

/* ---------- Work：自社プロダクトと受託開発は、別々の仕事ではなく、ひとつのチームが行き来するもの ---------- */
/* 「あったらいいな」の途中で改行しない */
.rwork-lead { max-width: 44em; margin-top: 24px; font-size: 15px; line-height: 2; color: var(--ink-2); }

/* 2つの仕事を、ひとつのチームが行き来する図。スマホでも横並びのまま縮める */
.loop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 2.4vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
.loop-node {
  display: grid;
  place-content: center;
  gap: 6px;
  width: clamp(104px, 17vw, 210px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  font-size: clamp(15px, 1.9vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}
.loop-node small { font-family: var(--font); font-size: clamp(11px, 0.95vw, 12px); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.loop-mid { display: grid; gap: clamp(12px, 1.6vw, 20px); text-align: center; }
.loop-team { font-size: clamp(12px, 1.4vw, 16px); font-weight: 700; white-space: nowrap; }
.loop-arrow { display: grid; gap: 8px; font-size: clamp(11px, 1.05vw, 13px); line-height: 1.5; color: var(--ink-2); }
.loop-arrow i { position: relative; height: 1px; background: var(--line-strong); }
/* 矢じり */
.loop-arrow i::after { content: ""; position: absolute; top: -3.5px; width: 7px; height: 7px; border: solid var(--ink-3); }
.loop-arrow--to i::after { right: 1px; border-width: 1px 1px 0 0; rotate: 45deg; }
.loop-arrow--back i::after { left: 1px; border-width: 0 0 1px 1px; rotate: 45deg; }
/* 線の上を、点が行き来し続ける */
.loop-arrow i::before { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: loop-to 3.2s var(--ease) infinite both; }
.loop-arrow--back i::before { animation-name: loop-back; animation-delay: 1.6s; }
@keyframes loop-to {
  0% { left: 0; opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}
@keyframes loop-back {
  0% { left: calc(100% - 7px); opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loop-arrow i::before { display: none; }
}

/* 図の下に、それぞれの中身を左右に。どちらも4つずつ、アプリのアイコンのように並べて左右をそろえる */
.work-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-strong); }
/* 左右の「見出し・説明・アイコン」を同じ行にそろえ、説明の行数が違ってもアイコンの段の高さをそろえる */
.work-col { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 48px) 8px 0; }
.work-col + .work-col { padding-left: clamp(24px, 3vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
.work-title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
.work-text { margin-top: 14px; max-width: 30em; font-size: 15px; line-height: 2; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: start; gap: clamp(10px, 1.6vw, 20px); padding-top: clamp(24px, 2.6vw, 32px); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tile-icon {
  display: grid;
  place-items: center;
  width: min(100%, 96px);
  aspect-ratio: 1;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22%;
  background: #fff;
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.tile-icon img { width: 100%; height: 100%; object-fit: cover; }
/* 受託開発は、アイコンの代わりに、細い線で描いた環境の形と名前を置く。
   画面に入ると、線が描かれ、そのあとに色の点が灯る */
.tile-icon--type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6%;
  font-family: var(--font);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.tile-glyph { width: 40%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tile-glyph [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) calc(var(--i) * 140ms + 200ms); }
.tile-glyph .ac { fill: var(--signal); stroke: none; transition: opacity .5s ease calc(var(--i) * 140ms + 1.1s); }
.tile-glyph .ac--dim { fill: var(--line-strong); }
.js .work-cols:not(.is-in) .tile-glyph [pathLength] { stroke-dashoffset: 1; }
.js .work-cols:not(.is-in) .tile-glyph .ac { opacity: 0; }
.tile b { font-size: 13px; font-weight: 700; line-height: 1.45; }
/* 受託開発の下には、使う開発言語とフレームワークを添える */
.tile--tech b,
.tile--tech small { font-family: var(--font); letter-spacing: 0; }
.tile--tech b { font-weight: 600; }
.tile--tech small { font-size: 12px; color: var(--ink-3); }
a.tile:hover .tile-icon { translate: 0 -4px; box-shadow: 0 12px 22px -14px rgba(15, 26, 36, 0.4); }
a.tile:hover b { color: var(--signal); }

/* あなたの関わり方：職種で分けず、考える→つくる→届ける→広める→育てるのひと回りに全員で関わる */
.role { margin-top: clamp(72px, 9vw, 120px); }
.role-kicker { font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.role-title { margin-top: 10px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.5; }
.role-title .nobr { display: inline-block; }
/* 5つの言葉を1本の線でつなぎ、下の線で「育てる」から「考える」へ戻す。
   光る言葉が順に移り、ひと回りし続ける */
.role-cycle { position: relative; margin-top: clamp(28px, 3vw, 44px); padding-bottom: calc(1.5em + 18px); font-size: clamp(15px, 2.4vw, 30px); }
.role-steps { display: flex; align-items: center; font-weight: 700; line-height: 1.5; }
.role-steps li { display: flex; flex: 1 1 auto; align-items: center; white-space: nowrap; animation: role-turn 5s linear infinite; animation-delay: calc(var(--i) * 1s); }
.role-steps li:first-child { flex: 0 0 auto; }
.role-steps li + li::before { content: ""; flex: 1; height: 1px; margin: 0 clamp(8px, 1.4vw, 20px); background: var(--ink); }
@keyframes role-turn {
  0%, 16% { color: var(--signal); }
  24%, 100% { color: var(--ink); }
}
/* 戻りの線：「育てる」の下から「考える」の下まで。左端に上向きの矢じり */
.role-return {
  position: absolute;
  top: calc(1.5em + 8px);
  bottom: calc(0.75em + 2px);
  left: 1.5em;
  right: 1.5em;
  border: 1px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  transition: clip-path 1.4s var(--ease) .3s;
}
.role-return::before { content: ""; position: absolute; top: -1px; left: -4.5px; width: 8px; height: 8px; border: solid var(--ink); border-width: 1px 0 0 1px; rotate: 45deg; }
.role-all {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  padding: 0 14px;
  background: var(--base);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5em;
  color: var(--signal);
  white-space: nowrap;
  transition: opacity .6s ease 1.2s;
}
.js .role:not(.is-in) .role-return { clip-path: inset(0 0 0 100%); }
.js .role:not(.is-in) .role-all { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .role-steps li { animation: none; }
}
.role-text { max-width: 38em; margin-top: 22px; font-size: 15px; line-height: 2; color: var(--ink-2); }

/* ---------- Culture：大切にしている3つのことと、一緒に働きたい人 ---------- */
/* 3つのことは、英語の言葉を細い文字で大きく見せ、横に並べる（下の「働きたい人」とは見せ方を変える） */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.values li { display: flex; flex-direction: column; padding-top: 24px; border-top: 1px solid var(--line-strong); }
/* 英語が2行になる列があっても、下の日本語の見出しの高さがそろうように */
.values em { min-height: 2.16em; font-family: var(--font); font-style: normal; font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; }
.values strong { margin-top: 20px; font-size: 16px; font-weight: 700; color: var(--signal); }
.values p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
/* 3つのことと、働きたい人のあいだに挟む写真の帯 */
.rslit--inset { margin: clamp(72px, 9vw, 128px) 0; }

.mini-apps { margin-top: 28px; }

.mini-apps { margin-top: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mini-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--base);
  transition: border-color .25s ease, transform .4s var(--ease);
}
.mini-app img { width: 48px; height: 48px; border-radius: 12px; }
.mini-app strong { display: block; font-size: 15px; }
.mini-app small { display: block; font-size: 12px; color: var(--ink-3); }
.mini-app i { font-style: normal; font-family: var(--font); transition: transform .4s var(--ease); }
.mini-app:hover { border-color: var(--line-strong); }
.mini-app:hover i { transform: translateX(4px); color: var(--signal); }

/* ---------- Positions：絞り込み ＋ 一覧 ＋ ポップアップ ---------- */
.rsec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 絞り込みごとの職種の数を、ボタンの中に小さく */
.filter-num { margin-left: 6px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .2s ease; }
.filter[aria-pressed="true"] .filter-num { color: rgba(255, 255, 255, 0.55); }
.filter:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.pos-card[hidden] { display: none; }
/* 「すべての職種を見る」はスマホだけで使う */
.pos-more { display: none; }
@keyframes pos-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
.pos-cat {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--signal-soft);
  color: var(--signal);
}
.pos-cat--design { background: rgba(15, 157, 132, 0.12); color: #0B7D69; }
.pos-cat--business { background: rgba(217, 119, 6, 0.12); color: #B45309; }
/* 職種：一覧の行。行に乗せると、その仕事のイメージ写真がふわっと出る（PC） */
.pos-rows { border-top: 1px solid var(--line-strong); }
.pos-row { position: relative; border-bottom: 1px solid var(--line); }
.pos-row-btn {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.2fr) minmax(0, 1fr) 140px 44px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding .4s var(--ease);
}
.pos-row-cat { font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.pos-row-name b { display: block; font-family: var(--font); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.pos-row-name small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.pos-row-sum { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.pos-row-type { font-size: 12px; color: var(--ink-3); }
.pos-row-plus {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, rotate .45s var(--ease);
}
.pos-row-btn:hover { padding-left: 12px; }
.pos-row-btn:hover .pos-row-plus { background: var(--ink); border-color: var(--ink); color: var(--base); rotate: 90deg; }
.pos-row-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.pos-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  transition: border-color .3s ease;
}
.pos-open b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.pos-open > span { font-size: 14px; color: var(--ink-2); }
.pos-open .btn-arrow--circle { flex: none; width: 44px; height: 44px; background: var(--ink); color: var(--base); transition: translate .4s var(--ease); }
.pos-open:hover { border-color: var(--ink-3); }
.pos-open:hover .btn-arrow--circle { translate: 4px 0; }

.rdlg {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 64px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -40px rgba(15, 26, 36, 0.5);
}
.rdlg::backdrop { background: color-mix(in srgb, var(--night) 55%, transparent); backdrop-filter: blur(6px); }
.rdlg[open] { animation: rdlg-in .45s var(--ease); }
@keyframes rdlg-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
body:has(.rdlg[open]) { overflow: hidden; }
.rdlg-inner { position: relative; padding: clamp(28px, 4vw, 48px); }
.rdlg .pos-cat { display: inline-block; }
.rdlg-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: background-color .25s ease;
}
.rdlg-close::before,
.rdlg-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.rdlg-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.rdlg-close:hover { background: var(--fill); }
.rdlg-title {
  margin-top: 16px;
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.rdlg-jp { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.rdlg .pos-spec { margin: 28px 0 32px; }

.pos-spec > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.pos-spec dt { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.pos-spec dd { font-size: 14px; line-height: 1.9; }
.pos-spec ul { list-style: disc; padding-left: 1.2em; }

/* ---------- Process：1本の線の上に4つの段階。画面に入ると線が伸び、順に現れる ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 64px); }
.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
  transition: transform 1.6s var(--ease) .2s;
}
.step { position: relative; padding-top: 40px; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--base);
}
.step:last-child::before { border-color: var(--signal-fill); background: var(--signal-fill); }
.js .steps[data-reveal] { opacity: 1; transform: none; }
.js .steps:not(.is-in)::before { transform: scaleX(0); }
.js .steps .step { transition: opacity .6s ease, translate .8s var(--ease); transition-delay: calc(var(--i) * 220ms + 300ms); }
.js .steps:not(.is-in) .step { opacity: 0; translate: 0 12px; }
.step-no { font-family: var(--font); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.step-title { margin-top: 8px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.step-title em { display: block; margin-top: 2px; font-family: var(--font); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-3); }
.step-text { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.steps-note { margin-top: 28px; font-size: 13px; color: var(--ink-3); }

/* ---------- Entry：夕暮れの写真に、大きな一言と2つのボタン ---------- */
.rentry { padding: clamp(72px, 9vw, 120px) 0; background: var(--night); color: var(--night-ink); }
.rentry--film { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 180px) 0; background: #0b0b0b; }
/* 右寄りにある夕日が、スマホの縦長でも切れないように */
.rentry--film .rtexture img { opacity: 0.3; object-position: 80% 50%; }
.rentry--film .wrap { position: relative; z-index: 1; }
.rentry-big { font-family: var(--font); font-size: clamp(72px, 13vw, 200px); font-weight: 600; line-height: 0.86; letter-spacing: -0.06em; }
.rentry-big span { color: var(--signal-on-dark); }
.rentry-lead { margin-top: 28px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; }
.rentry-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.rentry-actions .btn--circle .btn-arrow--circle { width: 40px; height: 40px; }

/* ---------- 写真の細い帯：白いセクションどうしの間に挟む。
   画面に入ると上下に開き、写真は帯よりゆっくり流れる（動きは site.js） ---------- */
.rslit { height: clamp(150px, 24vw, 320px); background: #0b0b0b; }
.rslit::after { display: none; }
.rslit img { position: absolute; top: -30%; left: 0; height: 160%; transform: translate3d(0, var(--slit-y, 0px), 0); will-change: transform; }
.rslit.is-live { clip-path: inset(var(--slit-cut, 0%) 0); }

/* ---------- いま何番目のセクションか：画面の下に小さく出し、押すと次のセクションへ ---------- */
.rcounter {
  position: fixed;
  left: var(--gutter);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 6px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity .4s ease, translate .5s var(--ease), visibility 0s .5s;
}
.rcounter.is-on { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.rcounter-no { color: rgba(255, 255, 255, 0.45); }
.rcounter-no b { font-weight: 500; color: var(--signal-on-dark); }
.rcounter-name { display: inline-block; min-width: 5.6em; font-weight: 500; }
.rcounter-bar { position: relative; width: 44px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.rcounter-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left center; transform: scaleX(var(--p, 0)); }
.rcounter-next { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #0b0b0b; cursor: pointer; }
.rcounter-next svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .35s var(--ease); }
.rcounter-next:hover svg { translate: 0 2px; }
.rcounter-next:focus-visible { outline: 2px solid var(--signal-on-dark); outline-offset: 2px; }

@media (max-width: 860px) {
  .work-cols { grid-template-columns: 1fr; }
  .work-col,
  .work-col + .work-col { display: block; grid-row: auto; padding: 28px 0 8px; border-left: 0; }
  .work-col + .work-col { border-top: 1px solid var(--line); }
  .work-text { font-size: 14px; line-height: 1.9; }
  .tile b { font-size: 12px; }
  .tile--tech small { font-size: 11px; }
  /* Work の見出しは、画面幅に合わせて文字を縮め、スマホでも2行に収める（1行目が16文字） */
  .rwork .rsec-title { font-size: calc((100vw - var(--gutter) * 2) / 16.6); }
  .rmsg-split { grid-template-columns: 1fr; }
  /* スマホでは、FVのすぐ下にメッセージを置き、写真はそのあとに */
  .rmsg-body { order: -1; }
  .rmsg-photo { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .rmsg-body { min-height: 0; padding: clamp(56px, 10vw, 96px) var(--gutter); }
  .values { grid-template-columns: 1fr; gap: 40px; }
  .values em { min-height: 0; }
  .rwant { grid-template-columns: 1fr; gap: 24px; }
  .rwant-title { position: static; }
  .pos-row-btn {
    grid-template-columns: minmax(0, 1fr) 40px;
    grid-template-areas: "cat plus" "name plus" "sum sum" "type type";
    gap: 6px 16px;
    padding: 24px 0;
  }
  .pos-row-cat { grid-area: cat; }
  .pos-row-name { grid-area: name; }
  .pos-row-sum { grid-area: sum; margin-top: 6px; }
  .pos-row-type { grid-area: type; }
  .pos-row-plus { grid-area: plus; width: 40px; height: 40px; }
  .pos-row-btn:hover { padding-left: 0; }
  /* スマホでは最初の3件だけ見せ、残りは「すべての職種を見る」で開く */
  .pos-rows.is-collapsed .pos-row:nth-child(n + 4),
  .pos-rows.is-collapsed ~ .pos-open { display: none; }
  .pos-rows.is-opened .pos-row:nth-child(n + 4) { animation: pos-in .5s var(--ease) both; }
  .pos-rows.is-opened .pos-row:nth-child(5) { animation-delay: .08s; }
  .pos-rows.is-opened ~ .pos-open { animation: pos-in .5s var(--ease) .16s both; }
  /* 開いたときは、「該当する職種がない方へ」の下に「閉じる」が来る */
  .pos-open + .pos-more { margin-top: 12px; border-top: 1px solid var(--line); }
  .pos-more {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }
  .pos-more[hidden] { display: none; }
  .pos-more small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
  /* 右の丸の中の「v」が、開くと上向きに */
  .pos-more-icon { position: relative; flex: none; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 50%; }
  .pos-more-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: solid var(--ink);
    border-width: 0 1.5px 1.5px 0;
    translate: -50% -70%;
    rotate: 45deg;
    transition: rotate .4s var(--ease), translate .4s var(--ease);
  }
  .pos-more[aria-expanded="true"] .pos-more-icon::before { translate: -50% -30%; rotate: 225deg; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; transform-origin: top center; }
  .js .steps:not(.is-in)::before { transform: scaleY(0); }
  .step { padding: 0 0 0 40px; }
  .step::before { top: 4px; }
}
@media (max-width: 640px) {
  .mini-apps { grid-template-columns: 1fr; }
  .pos-open { padding: 20px; }
  .rentry-actions { display: grid; grid-template-columns: 1fr; }
  .rentry-actions .btn { justify-content: space-between; }
  .rdlg {
    width: 100%;
    max-width: none;
    max-height: 88svh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .pos-spec > div { grid-template-columns: 1fr; gap: 4px; }
  .rdlg .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--signal-fill); color: var(--on-signal); }
.contact-link { display: block; }
.contact-inner { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.contact-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.contact-title {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(72px, 15vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.contact-arrow {
  flex: none;
  width: clamp(64px, 9vw, 120px);
  height: clamp(64px, 9vw, 120px);
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--on-signal) 50%, transparent);
  display: grid;
  place-items: center;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: 0;
  transition: background-color .35s ease, color .35s ease, transform .6s var(--ease), border-color .35s ease;
}
.contact-link:hover .contact-arrow { background: var(--on-signal); color: var(--signal-fill); border-color: var(--on-signal); transform: rotate(-45deg); }
.contact-text { margin-top: 32px; font-size: 15px; opacity: 0.85; }

/* =========================================================
   Footer
   ========================================================= */
.gf { background: var(--night); color: var(--night-sub); padding: 80px 0 32px; }
.gf-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--night-line);
}
.gf-logo { height: 24px; width: auto; filter: invert(1) brightness(1.1); }
.gf-brand p { margin-top: 16px; font-family: var(--font); font-size: 13px; letter-spacing: 0.04em; }
.gf-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.gf-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.gf-cols a { color: var(--night-ink); transition: color .2s ease; }
.gf-cols a:hover { color: var(--signal-on-dark-2); }
.gf-head {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gf-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   文書ページ（プライバシーポリシー・サポート）
   ========================================================= */
.doc-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s ease;
}
.doc-app img { width: 32px; height: 32px; border-radius: 8px; }
.doc-app:hover { border-color: var(--ink-3); }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.doc-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.doc-toc-label {
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-toc ol { border-top: 1px solid var(--line-strong); }
.doc-toc a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  transition: color .2s ease, padding .3s var(--ease);
}
.doc-toc a:hover { color: var(--ink); padding-left: 6px; }
.doc-toc a.is-active { color: var(--signal); }

.doc-main { max-width: 760px; }
.doc-lead {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 2;
}
.doc-body h2 {
  margin: 56px 0 18px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 24px;
}
.doc-body h3 {
  position: relative;
  margin: 32px 0 10px;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}
.doc-body h3::before {
  content: "Q";
  position: absolute;
  top: 0.05em;
  left: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--signal);
}
.doc-body p { margin: 0 0 16px; font-size: 15px; line-height: 2; color: var(--ink-2); }
.doc-body ul { list-style: disc; margin: 0 0 16px; padding-left: 1.4em; }
.doc-body ol { list-style: decimal; margin: 0 0 16px; padding-left: 1.6em; }
.doc-body li { margin: 6px 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.doc-body li::marker { color: var(--ink-3); }
.doc-body strong { color: var(--ink); }
.doc-body a { color: var(--signal); border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
/* アプリのサポートページ：「お問い合わせ」の見出しの横にアプリのアイコン（ページ上部の .doc-app と同じ角の丸み） */
.doc-body h2.doc-h2-app { display: flex; align-items: center; gap: 14px; }
.doc-h2-app img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
/* アプリのサポートページのお問い合わせフォーム（本文の .doc-body を閉じた間に置く） */
.cform--doc { margin-top: 8px; }
.doc-body .doc-meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}

/* =========================================================
   404
   ========================================================= */
.nf {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 80px;
}
.nf .hero-grid-bg { opacity: 0.6; }
.nf-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}
.nf-code {
  font-family: var(--font);
  font-size: clamp(120px, 22vw, 300px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.nf-code span { color: var(--signal); }
.nf-title { margin-top: 28px; font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.5; }
.nf-lead { margin-top: 16px; font-size: 15px; line-height: 2; color: var(--ink-2); }
.nf-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.nf-dial { justify-self: end; width: 100%; max-width: 420px; }
/* 時計の針が巻き戻っていく */
.dial--rewind [data-rewind] { transform-box: view-box; transform-origin: 0 0; animation: dial-rewind linear infinite; }
.dial--rewind [data-rewind="m"] { animation-duration: 8s; }
.dial--rewind [data-rewind="h"] { animation-duration: 96s; animation-delay: -72s; }
@keyframes dial-rewind { to { transform: rotate(-360deg); } }

@media (max-width: 860px) {
  .nf-inner { grid-template-columns: 1fr; }
  .nf-dial { order: -1; justify-self: start; max-width: 240px; }
}

/* =========================================================
   プロダクト紹介ページ
   ========================================================= */
.plp-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(64px, 8vw, 112px);
  background: var(--p-bg);
}
.plp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.plp-top { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.plp-icon {
  width: 96px;
  height: 96px;
  margin-top: 28px;
  border-radius: 24px;
  box-shadow: 0 16px 32px -16px rgba(15, 26, 36, 0.35), inset 0 0 0 1px rgba(15, 26, 36, 0.06);
}
.plp-name {
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.plp-catch {
  margin-top: 16px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--p-accent);
}
.plp-lead { margin-top: 20px; max-width: 32em; font-size: 15px; line-height: 2; color: var(--ink-2); }
.plp-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.plp-cta .ppanel-store img { height: 54px; }
.plp-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.plp-visual { position: relative; align-self: stretch; min-height: 560px; }
.plp-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--p-soft), transparent);
}

.plp-kicker {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--p-accent);
}
.plp-title { margin-top: 8px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.45; }
.plp-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

/* スクリーンショット：横スクロール */
.shots-nav { display: flex; gap: 8px; }
.shots-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.shots-nav button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.shots-track {
  display: flex;
  gap: 16px;
  margin-right: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 20px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot {
  flex: 0 0 auto;
  width: clamp(200px, 21vw, 280px);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--tint);
}
.shot img { width: 100%; height: auto; }

/* 使い方 */
.plp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.plp-steps li { padding: 28px 28px 8px 0; }
.plp-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.plp-step-no {
  display: block;
  font-family: var(--font);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--p-accent);
}
.plp-steps strong { display: block; margin-top: 20px; font-size: 20px; font-weight: 700; }
.plp-steps p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }

/* 主な機能 */
.plp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plp-feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.plp-feature .plp-kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.plp-feature h3 { margin-top: 14px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.plp-feature p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }

/* ダウンロードへの導線 */
.plp-download { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.plp-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--p-bg);
}
.plp-band-id { display: flex; align-items: center; gap: 18px; }
.plp-band-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(15, 26, 36, 0.06); }
.plp-band-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.plp-band-note { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.plp-band .ppanel-store img { height: 54px; }
.plp-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }

@media (max-width: 960px) {
  .plp-hero-grid { grid-template-columns: 1fr; }
  .plp-visual { height: 340px; min-height: 0; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); }
  .plp-visual .fan { top: 36px; width: 36%; }
  .plp-visual .device { top: 36px; width: 38%; }
  .plp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plp-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .plp-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .plp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .plp-icon { width: 72px; height: 72px; border-radius: 18px; }
  .plp-steps { grid-template-columns: 1fr; }
  .plp-steps li,
  .plp-steps li + li { padding: 24px 0 8px; border-left: 0; }
  .plp-steps li + li { border-top: 1px solid var(--line); }
  .plp-features { grid-template-columns: 1fr; }
  .plp-feature { padding: 24px; }
  .shots-nav { display: none; }
  .shot { width: 62vw; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ch, .js [data-reveal], .js .hero-lead, .js .hero-actions, .js .hero-dial, .js .hero-meta { opacity: 1; transform: none; filter: none; }
}
