@charset "UTF-8";

/* ==========================================================================
   TapDeUp LP — style.css
   デザイン仕様: DESIGN_TEMPLATE.md 準拠（案A / Clean Trust）
   設計方針: モバイルファースト / 8pxグリッド / トークン駆動
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color ---------------------------------------------------------------- */
  --c-primary:        #4F46E5;   /* Primary（ブランドカラー） */
  --c-primary-hover:  #4338CA;   /* ホバー時：少し暗く */
  --c-primary-press:  #3730A3;
  --c-primary-soft:   #EEF2FF;   /* Primary の淡色面 */
  --c-primary-soft-2: #E0E7FF;

  --c-secondary:      #10B981;   /* Secondary（アクセント／面・装飾用） */
  --c-secondary-ink:  #047857;   /* 同系の濃色。白文字・白背景どちらでも 5.48:1 */

  --c-bg:             #F9FAFB;   /* Background */
  --c-text:           #111827;   /* Text Main   (白背景に対し 16.9:1) */
  --c-muted:          #6B7280;   /* Text Muted  (白背景に対し 4.83:1) */
  --c-border:         #E5E7EB;   /* Border */
  --c-card:           #FFFFFF;   /* Card */

  --c-focus:          #4F46E5;
  --c-danger:         #B91C1C;   /* 白背景に対し 6.4:1 */
  --c-danger-soft:    #FEF2F2;

  /* Spacing (8pxグリッド / ベース4px) ------------------------------------- */
  --sp-px:  4px;
  --sp-1:   8px;
  --sp-2:  16px;
  --sp-3:  32px;
  --sp-4:  64px;
  --sp-5:  96px;

  /* Radius ---------------------------------------------------------------- */
  --r-btn:   8px;
  --r-card: 12px;
  --r-pill: 999px;

  /* Elevation ------------------------------------------------------------- */
  --shadow-card:  0 4px 6px -1px rgba(0, 0, 0, .1);
  --shadow-lift:  0 12px 24px -6px rgba(17, 24, 39, .14);
  --shadow-head:  0 1px 0 0 var(--c-border);

  /* Typography ------------------------------------------------------------ */
  --font-jp: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", system-ui, -apple-system, sans-serif;

  /* Motion（上品・控えめ：200-300ms に統一） ------------------------------- */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --dur-fast:  150ms;
  --dur:       250ms;
  --dur-slow:  600ms;

  /* Layout ---------------------------------------------------------------- */
  --header-h: 64px;
  --maxw:     1120px;
  --maxw-narrow: 760px;

  /* Z-index scale --------------------------------------------------------- */
  --z-sticky:  40;
  --z-scrim:   50;
  --z-header:  60;
  --z-nav:     70;
  --z-skip:    100;
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 固定ヘッダー分だけアンカー位置をずらす */
  scroll-padding-top: calc(var(--header-h) + var(--sp-2));
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;                 /* ベースフォントサイズ 16px */
  line-height: 1.8;                /* 日本語の可読性に合わせて調整 */
  letter-spacing: .02em;           /* 日本語が詰まりすぎないよう微調整 */
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .01em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }

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

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-2);
}
.container--narrow { max-width: var(--maxw-narrow); }

@media (min-width: 640px)  { .container { padding-inline: var(--sp-3); } }
@media (min-width: 1024px) { .container { padding-inline: var(--sp-4); } }

.u-sr,
.u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.u-accent { color: var(--c-primary); }

.u-br-sp { display: inline; }
.u-br-pc { display: none; }
@media (min-width: 640px) {
  .u-br-sp { display: none; }
  .u-br-pc { display: inline; }
}

.skip-link {
  position: fixed; top: var(--sp-1); left: var(--sp-1);
  z-index: var(--z-skip);
  padding: 12px 20px;
  background: var(--c-primary); color: #fff;
  border-radius: var(--r-btn); font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--check { width: 18px; height: 18px; color: var(--c-secondary-ink); stroke-width: 2.6; }
.icon--ext   { width: 14px; height: 14px; margin-left: 6px; display: inline-block; vertical-align: -2px; opacity: .6; }

/* --------------------------------------------------------------------------
   4. Scroll Reveal（上品・控えめ）
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* スタッガー（60ms刻み） */
.js .reveal[data-reveal-delay="1"] { transition-delay:  60ms; }
.js .reveal[data-reveal-delay="2"] { transition-delay: 120ms; }
.js .reveal[data-reveal-delay="3"] { transition-delay: 180ms; }
.js .reveal[data-reveal-delay="4"] { transition-delay: 240ms; }
.js .reveal[data-reveal-delay="5"] { transition-delay: 300ms; }
.js .reveal[data-reveal-delay="6"] { transition-delay: 360ms; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-1);
  min-height: 44px;                 /* タップ領域 44px 以上 */
  padding: 10px 16px;               /* 仕様書：縦10px / 横16px */
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-jp);
  font-weight: 700; font-size: 15px; line-height: 1.4;
  text-align: center;
  box-shadow: none;                 /* 仕様書：シャドウなし */
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color     var(--dur) var(--ease),
    color            var(--dur) var(--ease),
    transform        var(--dur) var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover  { background: var(--c-primary-hover); }
.btn--primary:active { background: var(--c-primary-press); }

.btn--outline { background: var(--c-card); color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary-soft); }

.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { background: var(--c-card); border-color: #C7CBD3; }

.btn--lg    { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  background: rgba(255, 255, 255, .94);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--sp-2);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; }
.brand__name {
  font-family: var(--font-en);
  font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  color: var(--c-text);
}

/* --- Mobile nav panel ----------------------------------------------------- */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  z-index: var(--z-nav);
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform  var(--dur) var(--ease),
    opacity    var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}
.nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.nav__list { display: flex; flex-direction: column; }

.nav__link {
  display: flex; align-items: center;
  min-height: 52px; padding: 0 var(--sp-1);
  font-family: var(--font-en);
  font-weight: 600; font-size: 15px; letter-spacing: .06em;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--c-primary); }
.nav__link.is-current { color: var(--c-primary); }

.nav-scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim);
  background: rgba(17, 24, 39, .45);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

/* --- Hamburger ------------------------------------------------------------ */
.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  width: 48px; min-height: 44px;
  padding: 0;
  background: none; border: 0;
  color: var(--c-text);
}
.nav-toggle__box { position: relative; display: block; width: 22px; height: 14px; }
.nav-toggle__bar,
.nav-toggle__box::before,
.nav-toggle__box::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle__box::before { top: 0; }
.nav-toggle__bar         { top: 6px; }
.nav-toggle__box::after  { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar         { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--c-muted); }

/* --- Desktop nav ---------------------------------------------------------- */
@media (min-width: 1024px) {
  .nav {
    position: static;
    flex-direction: row; align-items: center; gap: var(--sp-3);
    padding: 0;
    background: none; border: 0;
    transform: none; opacity: 1; visibility: visible;
  }
  .nav__list { flex-direction: row; align-items: center; gap: var(--sp-3); }
  .nav__link {
    position: relative;
    min-height: 44px; padding: 0;
    font-size: 13px; letter-spacing: .1em;
    border: 0;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; bottom: 14px;
    width: 100%; height: 2px; border-radius: 2px;
    background: var(--c-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav__link:hover::after,
  .nav__link.is-current::after { transform: scaleX(1); }

  .nav__cta { font-size: 14px; }
  .nav-toggle, .nav-scrim { display: none !important; }
}

/* --------------------------------------------------------------------------
   7. Section primitives
   -------------------------------------------------------------------------- */
.section { padding-block: var(--sp-4); }
.section--muted { background: var(--c-primary-soft); }

@media (min-width: 1024px) { .section { padding-block: var(--sp-5); } }

.section__head { margin-bottom: var(--sp-3); }
.section__head--center { text-align: center; }
@media (min-width: 1024px) { .section__head { margin-bottom: var(--sp-4); } }

.label {
  display: inline-block;
  margin-bottom: var(--sp-1);
  font-family: var(--font-en);
  font-weight: 700; font-size: 12px; letter-spacing: .18em;
  color: var(--c-primary);
}
.section__head--center .label {
  padding: 6px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-primary-soft-2);
  border-radius: var(--r-pill);
}
.section--muted .section__head--center .label { background: var(--c-card); }

.section__title {
  font-size: clamp(1.5rem, 4.6vw, 2.125rem);
  line-height: 1.45;
  letter-spacing: .01em;
}
.section__lead {
  margin-top: var(--sp-2);
  color: var(--c-muted);
  font-size: 15px;
}

.eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-primary-soft-2);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--c-primary);
}

.grid { display: grid; gap: var(--sp-2); }
@media (min-width: 640px) {
  .grid { gap: var(--sp-3); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--sp-4));
  padding-bottom: var(--sp-4);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, #EEF2FF 0%, rgba(238, 242, 255, 0) 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--c-bg) 100%);
}
.hero__glow {
  position: absolute; top: -120px; right: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, .16) 0%, rgba(79, 70, 229, 0) 70%);
  pointer-events: none;
}

.hero__inner { display: grid; gap: var(--sp-4); align-items: center; }

/* --- モバイル：カード演出を見出しの背後に置く装飾レイヤーにする ------------
   1023px以下では通常のグリッド配置から外し、.hero を基準に絶対配置。
   これで折り返し後の空白（CTA下の空きスペース）が消え、見出しの右上に
   アニメーションが「透けて見える」構図になる。デスクトップ（1024px以上）は
   従来どおり右カラムに独立表示。 */
@media (max-width: 1023px) {
  .hero__copy { position: relative; z-index: 1; }

  .hero__visual {
    position: absolute;
    top: 11%;
    right: 0;
    width: 60%;
    max-width: 250px;
    z-index: 0;
    /* .reveal / .is-visible のopacityルールより詳細度が高いため上書きされる。
       背景装飾として常に一定の薄さを保つよう !important で固定する。 */
    opacity: .32 !important;
    pointer-events: none;
  }
  .hero__visual .tapstage { width: 100%; }
  .hero__visual .tapcard {
    justify-self: end;   /* 「アップ！」の文字にかからないよう右いっぱいに寄せる */
    margin-right: 0;
  }

  /* スマホ画面では要素が輻輳して見づらいため、カード（実測でコントラスト
     safe確認済み）だけを背景装飾として残し、スマホ本体・通知バッジは隠す */
  .hero__visual .tapphone,
  .hero__visual .tapbadge { display: none; }

  /* 見出し本体は不透明な背景の上に乗せ、コントラストを確実に確保する */
  .hero__title,
  .hero__lead {
    position: relative;
    z-index: 1;
  }
}

.hero__title {
  margin-top: var(--sp-2);
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 900;                 /* ヒーローのみ最太ウェイトで訴求 */
  line-height: 1.2;                 /* 仕様書：h1 line-height 1.2 */
  letter-spacing: -.01em;
}
.hero__lead {
  margin-top: var(--sp-2);
  font-size: clamp(1rem, 3.6vw, 1.1875rem);
  line-height: 1.85;
  color: #374151;
}
.hero__brand {
  margin-top: var(--sp-2);
  font-family: var(--font-en);
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--c-muted);
}
.hero__brand span { font-family: var(--font-jp); font-weight: 500; }

.hero__actions {
  display: flex; flex-direction: column; gap: var(--sp-1);
  margin-top: var(--sp-3);
}
@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2); }
  .hero__actions .btn { flex: 0 1 auto; }
}

.hero__chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2);
  margin-top: var(--sp-3);
}
.hero__chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #374151;
}

/* --- Hero visual: NFC ripple --------------------------------------------- */
.hero__visual { display: flex; justify-content: center; }

.tapstage {
  --card-shift: 16%;                /* カードと波紋を左に寄せる量 */
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}

.tapstage__ring {
  position: absolute;
  width: 62%; aspect-ratio: 1;
  margin-right: var(--card-shift);
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  opacity: 0;
  animation: tdu-ripple 3.6s var(--ease) infinite;
}
.tapstage__ring--2 { animation-delay: 1.2s; }
.tapstage__ring--3 { animation-delay: 2.4s; }

@keyframes tdu-ripple {
  0%   { transform: scale(.55); opacity: 0; }
  12%  { opacity: .45; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* 実際に使用しているNFCカード（縦型） */
.tapcard {
  position: relative;
  width: 44%;
  margin-right: var(--card-shift);
  filter: drop-shadow(0 24px 40px rgba(17, 24, 39, .26));
  animation: tdu-float 6s ease-in-out infinite;
}
.tapcard__img { width: 100%; height: auto; }

@keyframes tdu-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.tapphone {
  position: absolute; right: 0; bottom: 4%;
  width: 31%; aspect-ratio: 1 / 1.9;
  padding: 6px;
  border-radius: 18px;
  background: #111827;
  box-shadow: var(--shadow-lift);
  animation: tdu-float 6s ease-in-out .8s infinite;
}
.tapphone__screen {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 10px;
  border-radius: 13px;
  background: #fff;
}
.tapphone__bar { width: 60%; height: 5px; border-radius: 3px; background: var(--c-border); }
.tapphone__stars { display: flex; gap: 2px; margin-top: 2px; }
.tapphone__stars svg { width: 13px; height: 13px; fill: #FBBF24; }
.tapphone__line { width: 78%; height: 4px; border-radius: 2px; background: var(--c-border); }
.tapphone__line--short { width: 52%; }
.tapphone__btn { width: 78%; height: 16px; margin-top: auto; border-radius: 5px; background: var(--c-primary); }

.tapbadge {
  position: absolute; right: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lift);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  animation: tdu-float 6s ease-in-out 1.6s infinite;
}
.tapbadge svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: var(--c-secondary-ink); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--sp-5)); padding-bottom: var(--sp-5); }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--sp-4); }
  .tapstage { width: 100%; max-width: 460px; }
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about__body { display: grid; gap: var(--sp-2); max-width: 780px; }
.about__text { color: #374151; }

.keywords {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.keywords li {
  padding: 7px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-family: var(--font-en);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   10. Cards (Features)
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

.card__media {
  width: 100%; aspect-ratio: 400 / 280;
  object-fit: cover;
  border-bottom: 1px solid var(--c-border);
}
.card__body { padding: var(--sp-2); }
@media (min-width: 640px) { .card__body { padding: var(--sp-3) var(--sp-2) var(--sp-2); } }

.card__no {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--c-primary);
}
.card__title {
  margin-top: var(--sp-px);
  font-size: 1.1875rem; line-height: 1.5;
}
.card__text {
  margin-top: var(--sp-1);
  font-size: 15px; color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   11. Plans (Pricing)
   -------------------------------------------------------------------------- */
.plan {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) {
  .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

.plan--featured { border: 2px solid var(--c-primary); }

/* プランは2つ。タブレットまでは1列、デスクトップで2列（中央寄せで幅を抑える） */
.plans { max-width: 480px; margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .plans { max-width: 860px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plan__badge {
  position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 1;
  padding: 5px 12px;
  background: var(--c-primary); color: #fff;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.plan__badge--save { background: var(--c-secondary-ink); }

.plan__media {
  width: 100%; aspect-ratio: 400 / 240;
  object-fit: cover;
  border-bottom: 1px solid var(--c-border);
}
.plan__body {
  display: flex; flex-direction: column;
  flex: 1;
  padding: var(--sp-2);
}
@media (min-width: 640px) { .plan__body { padding: var(--sp-3) var(--sp-2) var(--sp-2); } }

.plan__title { margin-top: var(--sp-px); font-size: 1.0625rem; line-height: 1.55; }

.plan__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
  margin-top: var(--sp-1);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--c-border);
}
.plan__num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  font-size: 2rem; font-weight: 700; line-height: 1.1;
  color: var(--c-primary);
}
.plan__num--sm { font-family: var(--font-jp); font-size: 1.375rem; }
.plan__unit { font-size: 13px; font-weight: 600; color: var(--c-muted); }

.plan__text {
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-2);
  font-size: 14px; color: var(--c-muted);
}
.plan__text strong { font-weight: 700; color: var(--c-text); }
.plan__body .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-1); }

.faq__item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item.is-open { border-color: var(--c-primary-soft-2); box-shadow: var(--shadow-card); }

.faq__heading { margin: 0; font-size: inherit; font-weight: inherit; }

.faq__q {
  display: flex; align-items: flex-start; gap: var(--sp-1);
  width: 100%; min-height: 56px;
  padding: var(--sp-2);
  background: none; border: 0;
  text-align: left;
  border-radius: var(--r-card);
  transition: background-color var(--dur) var(--ease);
}
.faq__q:hover { background: var(--c-primary-soft); }

.faq__mark {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  background: var(--c-primary-soft); color: var(--c-primary);
  border-radius: 7px;
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
}
.faq__label { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.65; }

.faq__chevron {
  flex: none; margin-top: 3px;
  color: var(--c-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); color: var(--c-primary); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner > p {
  padding: 0 var(--sp-2) var(--sp-2) calc(var(--sp-2) + 26px + var(--sp-1));
  font-size: 15px; color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact__direct { display: grid; gap: var(--sp-1); }
@media (min-width: 640px) { .contact__direct { grid-template-columns: 1fr 1fr; gap: var(--sp-2); } }

.linkbtn {
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .linkbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--c-primary-soft-2); }
}

.linkbtn__icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: #fff;
}
.linkbtn__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linkbtn__icon--line { background: var(--c-secondary-ink); }
.linkbtn__icon--ig   { background: var(--c-text); }

.linkbtn__body { display: flex; flex-direction: column; line-height: 1.5; }
.linkbtn__title { font-size: 15px; font-weight: 700; }
.linkbtn__sub   { font-size: 12px; color: var(--c-muted); }
.linkbtn__arrow { margin-left: auto; color: var(--c-muted); }

.contact__or {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-block: var(--sp-3);
  color: var(--c-muted); font-size: 13px; font-weight: 600;
}
.contact__or::before,
.contact__or::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

/* --- Form ---------------------------------------------------------------- */
.form {
  display: grid; gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .form { padding: var(--sp-3); gap: var(--sp-3); } }

.form__summary {
  padding: var(--sp-2);
  background: var(--c-danger-soft);
  border: 1px solid #FECACA;
  border-left: 4px solid var(--c-danger);
  border-radius: var(--r-btn);
}
.form__summary-title { font-size: 15px; font-weight: 700; color: var(--c-danger); }
.form__summary-list { margin-top: var(--sp-1); display: grid; gap: 4px; }
.form__summary-list a { font-size: 14px; color: var(--c-danger); text-decoration: underline; }

.field { display: grid; gap: 6px; }

.field__label { font-size: 14px; font-weight: 700; }
.req, .opt {
  display: inline-block; margin-left: 6px;
  padding: 2px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  vertical-align: 1px;
}
.req { background: var(--c-danger-soft); color: var(--c-danger); }
.opt { background: var(--c-bg); color: var(--c-muted); border: 1px solid var(--c-border); }

.field__input {
  width: 100%;
  min-height: 48px;                  /* モバイル入力の最小高さ */
  padding: 12px 14px;
  font-size: 16px;                   /* iOSの自動ズーム防止 */
  background: var(--c-card);
  border: 1px solid #D1D5DB;
  border-radius: var(--r-btn);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: #9CA3AF; }
.field__input:hover { border-color: #9CA3AF; }
.field__input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .18);
}
.field__input:focus-visible { outline: none; }

.field__textarea { min-height: 132px; resize: vertical; line-height: 1.75; }

.field__select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.field__help  { font-size: 12px; color: var(--c-muted); }
.field__error { font-size: 13px; font-weight: 600; color: var(--c-danger); }

.field.has-error .field__input { border-color: var(--c-danger); }
.field.has-error .field__input:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .16); }

.form__note   { font-size: 12px; line-height: 1.7; color: var(--c-muted); }
.form__status { font-size: 14px; font-weight: 700; color: var(--c-secondary-ink); }
.form__status:empty { display: none; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-block: var(--sp-4) var(--sp-2);
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
}

.footer__inner { display: grid; gap: var(--sp-3); }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1fr 1.4fr; gap: var(--sp-4); } }

.brand--footer { margin-bottom: var(--sp-2); }
.footer__company { font-size: 13px; line-height: 1.9; color: var(--c-muted); }

.footer__nav { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.footer__heading {
  margin-bottom: var(--sp-1);
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--c-text);
}
.footer__col ul { display: grid; }
.footer__col a {
  display: inline-flex; align-items: center;
  min-height: 44px;                  /* タップ領域 44px 以上 */
  font-size: 13px; color: var(--c-muted);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--c-primary); }

.footer__copy {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border);
  font-family: var(--font-en);
  font-size: 12px; color: var(--c-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. Sticky CTA (mobile)
   -------------------------------------------------------------------------- */
.stickycta {
  position: fixed; inset: auto 0 0 0;
  z-index: var(--z-sticky);
  padding: 10px var(--sp-2) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  transform: translateY(120%);
  transition: transform var(--dur) var(--ease);
}
.stickycta.is-shown { transform: translateY(0); }

/* 固定CTAに本文が隠れないよう下部に余白を確保 */
@media (max-width: 1023px) {
  body { padding-bottom: 76px; }
  html { scroll-padding-bottom: 96px; }
}
@media (min-width: 1024px) {
  .stickycta { display: none; }
}

/* --------------------------------------------------------------------------
   16. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  .tapstage__ring,
  .tapcard,
  .tapphone,
  .tapbadge { animation: none !important; }
  .tapstage__ring--1 { opacity: .35; transform: scale(1.1); }
  .tapstage__ring--2 { opacity: .2;  transform: scale(1.35); }
  .tapstage__ring--3 { opacity: .1;  transform: scale(1.55); }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .stickycta, .nav-toggle, .nav-scrim, .skip-link { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .faq__panel { grid-template-rows: 1fr !important; }
}
