/* ==========================================================================
   Cookle ランディングページ
   - ビルド不要 / 外部フォント・CDN なし / モバイルファースト
   - 基調色はアプリと同じ Tailwind orange-600 (#ea580c)、ホバー orange-700 (#c2410c)
   - コントラスト (WCAG AA):
       白文字 on #ea580c は 3.56:1 → 大きい太字 (19px 以上の bold) のボタンにだけ使う
       白文字 on #c2410c は 5.18:1 → 小さいボタン・オレンジの文字色はこちら
       本文 #374151 (gray-700) on 白は 10:1 以上
   - 切り替え幅 (min-width、各部品の直後に置いている):
       560px  ボタンを横並び・幅 auto に (ヒーロー・最終 CTA)
       640px  カード 2 列・課題の効果 3 列・料金カード 2 列
       768px  導入前後・2 カラム・機能一覧・ステップ・食品表示・フッターを横並びに
       900px  ヘッダーを PC 表示に (main.js の matchMedia と揃える)・ヒーローと料金詳細を 2 カラム・
              カード 3 列・仕組み 4 列・セクションの余白を広げる
       1000px 利用の流れを 4 列に
   ========================================================================== */

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;

  --color-primary: var(--orange-600);
  --color-primary-hover: var(--orange-700);
  --color-primary-text: var(--orange-700);
  --color-text: var(--gray-700);
  --color-heading: var(--gray-900);
  --color-muted: var(--gray-600);
  --color-border: var(--gray-200);

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --border-accent: 2px solid var(--orange-600);
  --content-narrow: 860px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.06);
}

/* --------------------------------------------------------------------------
   リセット・基本
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--white);
  overflow-wrap: anywhere;
  font-feature-settings: "palt";
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary-text); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { color: var(--orange-800); }
small { font-size: 0.875em; }
strong { color: var(--color-heading); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-weight: 700; color: var(--color-heading); margin-bottom: 0.5rem; }
button { font: inherit; color: inherit; }
sup { font-size: 0.7em; }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--gray-900);
  color: var(--white);
  border-radius: 6px;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }

/* 語句の途中で折り返さないための区切り (見出しの「食品表\n示も。」を防ぐ) */
.nowrap { display: inline-block; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--lg { width: 2.5rem; height: 2.5rem; stroke-width: 1.6; }

/* 丸い番号バッジの共通部分 (大きさ・文字サイズ・配置は各部品で指定) */
.hero__num, .card--feature .card__num, .effects__num, .flow__num, .faq__q::before {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-700);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }

/* 主ボタン: 白文字 on orange-600 は 3.56:1 なので、大きい太字 (19px 以上) にして AA の大文字基準を満たす */
.btn--primary {
  background: var(--color-primary);
  color: var(--white);
  font-size: 1.2rem;
}
.btn--primary:hover { background: var(--color-primary-hover); color: var(--white); }

/* 小さいボタンは orange-700 (5.18:1) を地にする */
.btn--primary-dark {
  background: var(--orange-700);
  color: var(--white);
}
.btn--primary-dark:hover { background: var(--orange-800); color: var(--white); }

.btn--outline {
  background: var(--white);
  color: var(--color-primary-text);
  border-color: var(--orange-600);
}
.btn--outline:hover { background: var(--orange-50); color: var(--orange-800); }

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
}
.btn--ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn--white {
  background: var(--white);
  color: var(--orange-700);
  font-size: 1.2rem;
}
.btn--white:hover { background: var(--orange-50); color: var(--orange-800); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }

.btn--lg { width: 100%; min-height: 56px; padding: 0.9rem 1.75rem; }
.btn--sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.9375rem; }

@media (min-width: 560px) {
  .btn--lg { width: auto; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
  padding-block: 8px;
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { width: 136px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.global-nav {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 0.5rem 0.75rem;
}
/* JS が動くときだけ、モバイルでは折りたたむ (JS 無しでも全リンクが見える) */
.js .global-nav { display: none; }
.js .global-nav.is-open { display: flex; }

.global-nav__list { display: flex; flex-direction: column; }
.global-nav__list a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--gray-700);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}
.global-nav__list a:hover { color: var(--orange-700); }
.global-nav__actions { display: flex; gap: 0.5rem; }
.global-nav__actions .btn { flex: 1; }

/* 900px は main.js の matchMedia('(min-width: 900px)') と揃える */
@media (min-width: 900px) {
  .site-header__logo img { width: 160px; }
  .nav-toggle { display: none; }
  .global-nav, .js .global-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .global-nav__list { flex-direction: row; gap: 0.25rem; }
  .global-nav__list a { padding: 0.5rem 0.75rem; border-bottom: 0; font-size: 0.9375rem; }
  .global-nav__actions .btn { flex: none; }
}

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--orange-50) 0%, var(--white) 100%);
  padding-block: 2.5rem 3rem;
}
.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__eyebrow {
  color: var(--orange-700);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}
.hero__title {
  font-size: clamp(1.625rem, 5.4vw, 2.375rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero__services li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem 0.3rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-900);
}
.hero__num {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--gray-700);
}
.hero__note .icon { color: var(--orange-700); }
.hero__figure {
  max-width: 320px;
  margin-inline: auto;
}
.phone-mock { width: 100%; filter: drop-shadow(0 20px 30px rgba(154, 52, 18, 0.18)); }

@media (min-width: 560px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero__inner { grid-template-columns: 1.6fr 1fr; gap: 3rem; }
  .hero__figure { max-width: 360px; }
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */
.section { padding-block: 3.5rem; }
.section--gray { background: var(--gray-50); }
.section__eyebrow {
  color: var(--orange-700);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section__title {
  font-size: clamp(1.375rem, 4.4vw, 2rem);
  text-align: center;
  margin-bottom: 1rem;
}
.section__lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--color-muted);
}
.section__subtitle {
  font-size: clamp(1.125rem, 3.6vw, 1.5rem);
  text-align: center;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  position: relative;
}
.section__subtitle::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange-600);
  margin: 0.6rem auto 0;
}
.section__catch {
  text-align: center;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--orange-700);
  margin-bottom: 0.5rem;
}
.arrow-down {
  width: 0; height: 0;
  margin: 1.5rem auto 1rem;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid var(--orange-600);
}

@media (min-width: 900px) {
  .section { padding-block: 5rem; }
}

/* --------------------------------------------------------------------------
   カードグリッド
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.card__title .icon { color: var(--orange-700); }
.card__num {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange-700);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.card--problem { text-align: center; }
.card--problem .icon--lg { color: var(--orange-700); margin: 0 auto 0.75rem; }
.card--problem .card__title { justify-content: center; }
.card--service { display: flex; flex-direction: column; }
.card--service .card__num { font-size: 1.5rem; line-height: 1; }
.card--service .card__title { font-size: 1.25rem; }
.card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--orange-50);
  color: var(--orange-800);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card__lines { flex: 1; margin-bottom: 1rem; }
.card__lines li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}
.card__lines li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65rem;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--orange-600);
}
.card--feature { position: relative; padding-top: 1.75rem; }
.card--feature .card__num {
  position: absolute;
  top: -12px; left: 16px;
  width: 32px; height: 32px;
  font-size: 0.9375rem;
  margin: 0;
}
/* 仕様カードと課題の機能一覧で dt / dd の見た目を共有する (dt の margin-bottom だけ別々) */
.card--spec dt, .feature-list__item dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-heading);
}
.card--spec dt .icon, .feature-list__item dt .icon { color: var(--orange-700); width: 1.5rem; height: 1.5rem; }
.card--spec dd, .feature-list__item dd { font-size: 0.9375rem; }
.card--spec dt { margin-bottom: 0.4rem; }

@media (min-width: 640px) {
  .card-grid--2, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { gap: 1.5rem; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   課題セクション
   -------------------------------------------------------------------------- */
.effects {
  display: grid;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}
.effects__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--orange-200);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--gray-900);
}
.effects__num {
  width: 2rem; height: 2rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.feature-list {
  display: grid;
  gap: 1rem;
}
.feature-list__item {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
/* dt / dd の共通部分は .card--spec と一緒に書いている */
.feature-list__item dt { margin-bottom: 0.35rem; }

@media (min-width: 640px) {
  .effects { grid-template-columns: repeat(3, 1fr); }
  .effects__item { flex-direction: column; text-align: center; padding: 1.25rem 0.75rem; }
}
@media (min-width: 900px) {
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   チェックリスト・導入前後
   -------------------------------------------------------------------------- */
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--orange-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.check-list--minus li::before {
  background: var(--gray-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.before-after {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.before-after__col {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--color-border);
}
.before-after__col--after {
  border: var(--border-accent);
  background: var(--orange-50);
}
/* 導入前後のラベルと食品表示のバッジで見た目を共有する (display だけ別々) */
.before-after__label, .plan-compare__badge {
  padding: 0.15rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  background: var(--gray-200);
  color: var(--gray-900);
}
.before-after__col--after .before-after__label, .plan-compare__badge--paid { background: var(--orange-700); color: var(--white); }
.before-after__label { display: inline-block; }
.before-after__summary { font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.before-after__note { margin-top: 0.75rem; font-weight: 700; color: var(--orange-800); }

.flow { display: grid; gap: 0.5rem; }
.flow__step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--orange-200);
  position: relative;
}
.flow__step + .flow__step::before {
  content: "";
  position: absolute;
  top: -0.5rem; left: 1.35rem;
  width: 2px; height: 0.5rem;
  background: var(--orange-600);
}
.flow__step small { display: block; color: var(--color-muted); font-size: 0.8125rem; line-height: 1.5; }
.flow__step--highlight { border: var(--border-accent); font-weight: 700; }
.flow__num {
  width: 1.75rem; height: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .before-after { grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   2 カラム + ロット換算表
   -------------------------------------------------------------------------- */
.two-col { display: grid; gap: 1.5rem; }
.two-col__text p { margin-bottom: 1rem; }
.two-col__figure figcaption { font-size: 0.875rem; color: var(--color-muted); margin-top: 0.5rem; }

.lot-table, .price-table {
  background: var(--white);
  border: 1px solid var(--gray-300);
  font-size: 0.9375rem;
}
.lot-table th, .lot-table td, .price-table th, .price-table td {
  border: 1px solid var(--gray-300);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}
.lot-table thead th, .price-table thead th {
  background: var(--gray-100);
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.875rem;
  line-height: 1.4;
}
.lot-table thead th small { font-weight: 400; color: var(--gray-600); }
.lot-table tbody th { font-weight: 700; color: var(--gray-900); background: var(--gray-50); }
.lot-table td { white-space: nowrap; }
.lot-table__result {
  font-weight: 700;
  color: var(--orange-800);
  background: var(--orange-50);
  text-align: right;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
}

/* --------------------------------------------------------------------------
   仕組み (概念図)
   -------------------------------------------------------------------------- */
.concept { max-width: var(--content-narrow); margin-inline: auto; }
.concept__flow { display: grid; gap: 1.5rem; }
.concept__node {
  position: relative;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.concept__node + .concept__node::before {
  content: "";
  position: absolute;
  top: -1.2rem; left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--orange-600);
}
.concept__label { display: block; font-weight: 700; color: var(--gray-900); }
.concept__node small { display: block; color: var(--color-muted); font-size: 0.8125rem; line-height: 1.5; }
.concept__node--hq { border-color: var(--orange-200); background: var(--orange-50); }
.concept__node--result { border: var(--border-accent); }
.concept__node--result .concept__label { color: var(--orange-800); font-size: 1.125rem; }
.concept figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--orange-800);
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .concept__flow { grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: stretch; }
  .concept__node + .concept__node::before {
    top: 50%; left: -1.5rem;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--orange-600);
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   折りたたみ (機能一覧) / FAQ
   -------------------------------------------------------------------------- */
.more {
  max-width: var(--content-narrow);
  margin: 2rem auto 0;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.more summary, .faq__q {
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  position: relative;
  list-style: none;
}
.more summary::-webkit-details-marker, .faq__q::-webkit-details-marker { display: none; }
.more summary::after, .faq__q::after {
  content: "";
  position: absolute;
  right: 1.25rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--orange-700);
  border-bottom: 2px solid var(--orange-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}
.more[open] summary::after, .faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(225deg); }
.more summary:hover, .faq__q:hover { color: var(--orange-700); }

.spec-list { padding: 0 1.25rem 1.25rem; display: grid; gap: 0.75rem; }
.spec-list div { padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.spec-list dt { font-weight: 700; color: var(--gray-900); }
.spec-list dd { font-size: 0.9375rem; }
@media (min-width: 768px) {
  .spec-list { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 2rem; }
}

.faq { display: grid; gap: 0.75rem; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq__q { padding-left: 3.25rem; }
.faq__q::before {
  content: "Q";
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem;
  font-size: 0.875rem;
}
.faq__a { padding: 0 1.25rem 1.25rem 3.25rem; color: var(--color-text); }
.faq__a p { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   ステップ (マニュアル 3 ステップ / 利用の流れ 4 ステップ)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1rem;
}
.steps__item {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.steps__num {
  display: inline-block;
  padding: 0.1rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--orange-700);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.steps__item .icon--lg { color: var(--orange-700); margin: 0 auto 0.5rem; }
.steps__title { font-size: 1.125rem; margin-bottom: 0.4rem; }
.steps__item p { font-size: 0.9375rem; }
.steps__item + .steps__item::before {
  content: "";
  position: absolute;
  top: -0.85rem; left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--orange-600);
}

@media (min-width: 768px) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .steps__item + .steps__item::before { display: none; }
}
@media (min-width: 1000px) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   食品表示: 無料 / 有料
   -------------------------------------------------------------------------- */
.plan-compare { display: grid; gap: 1rem; }
.plan-compare__col {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan-compare__col--paid { border: var(--border-accent); }
/* 余白・色などの共通部分は .before-after__label と一緒に書いている */
.plan-compare__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.plan-compare__title { font-size: 1.125rem; margin-bottom: 0.75rem; }

@media (min-width: 768px) {
  .plan-compare { grid-template-columns: 1fr 1.6fr; gap: 1.5rem; align-items: start; }
}

/* --------------------------------------------------------------------------
   料金
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  gap: 1rem;
  max-width: var(--content-narrow);
  margin: 0 auto 2.5rem;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price-card--paid { border: var(--border-accent); }
.price-card__name { font-weight: 700; color: var(--gray-900); font-size: 1.0625rem; }
.price-card__amount { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.price-card__yen { font-size: 2.5rem; font-weight: 700; color: var(--orange-800); line-height: 1.1; }
.price-card__unit { font-weight: 700; color: var(--gray-700); }
.price-card .check-list { margin-bottom: 1.25rem; }
.price-card__plans { margin-bottom: 0.75rem; }
.price-card__plans li {
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.35rem;
  background: var(--orange-50);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--gray-900);
}
.price-card__note { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 1.25rem; }
.price-card .btn { margin-top: auto; }

/* minmax(0, …) と .pricing-detail__col の min-width: 0 は二重の対策 (両方消すと早見表の幅で列が広がり、スマホで横にはみ出す)。片方を掃除しても再発しないよう両方残す */
.pricing-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.pricing-detail__col {
  min-width: 0;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.pricing-detail__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.pricing-detail__col > p { margin-bottom: 0.75rem; font-size: 0.9375rem; }
.pricing-detail__formula {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.9375rem;
}
.pricing-detail__small { font-size: 0.8125rem; color: var(--color-muted); }
.price-table td { text-align: right; white-space: nowrap; font-weight: 700; color: var(--gray-900); }
.price-table tbody th { font-weight: 400; white-space: nowrap; }
/* 狭い幅で横スクロールになる。キーボードでもスクロールできるよう HTML 側で tabindex="0" (枠は共通の :focus-visible) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-footnote {
  max-width: var(--content-narrow);
  margin: 1.5rem auto 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .price-grid { grid-template-columns: 1fr 1.2fr; }
}
@media (min-width: 900px) {
  .pricing-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; }
}

/* --------------------------------------------------------------------------
   最終 CTA
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--orange-700) 0%, var(--orange-600) 100%);
  color: var(--white);
  padding-block: 3.5rem;
}
.cta__inner { text-align: center; }
.cta__title { color: var(--white); font-size: clamp(1.5rem, 5vw, 2.25rem); margin-bottom: 0.75rem; }
.cta__lead { font-size: 1.0625rem; font-weight: 700; margin-bottom: 1.75rem; }
.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 560px;
  margin-inline: auto;
}
.cta__note { margin-top: 1rem; font-size: 0.9375rem; }
/* 共通のフォーカス枠 (orange-600) はオレンジの背景では 3:1 に届かないので白にする */
.cta :focus-visible { outline-color: var(--white); }

@media (min-width: 560px) {
  .cta__buttons { flex-direction: row; justify-content: center; }
}
@media (min-width: 900px) {
  .cta { padding-block: 5rem; }
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding-block: 2.5rem 1.5rem;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange-200); }
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer__brand img {
  width: 140px;
  height: auto;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
/* h2 の共通スタイル (line-height 1.4) と UA の font-size を打ち消し、本文と同じ大きさにする */
.site-footer__heading { font-size: inherit; line-height: inherit; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.site-footer__nav li { margin-bottom: 0.35rem; }
.site-footer__copy {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 1.25rem var(--gutter) 0;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  color: var(--gray-300);
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
}
