/* =========================================================
   ミセクル
   バクラク経費精算（bakuraku.jp/expense）のLP構成を下敷きに、
   緑 → ミセクルのオレンジ、黄緑 → 黄色 に置き換えている。
   ========================================================= */
:root {
  --ink: #2B2622;          /* 本文 */
  --ink-2: #5A524B;
  --ink-3: #8A817A;
  --line: #E8E2DB;
  --paper: #FFFFFF;
  --gray: #F5F3F0;
  --tint: #FFF6EC;         /* 薄いオレンジの面（バクラクのミント色に当たる） */
  --tint-2: #F6EFE8;       /* ステップの画面側 */

  --brand: #C2570A;        /* 面の色。白文字とのコントラスト 4.5:1 */
  --brand-light: #D2681A;  /* ヒーローの斜めの帯 */
  --brand-logo: #F59100;   /* ロゴのオレンジ。小さな面だけに使う */
  --accent: #FFE15A;       /* ボタン・ラベル（バクラクの黄緑に当たる） */
  --dark: #3A3532;

  --ig: #E1306C;
  --meo: #1A73E8;
  --line-green: #06C755;
  --hp: #7A5AF8;

  --font: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-en: 'Montserrat', 'Noto Sans JP', sans-serif;
  --container: 1130px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #F3B37A; outline-offset: 2px; }
h1, h2, h3 { font-feature-settings: "palt"; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- 丸いボタン ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 9999px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.pill:hover { opacity: .85; }
.pill--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.pill--lg { height: 60px; font-size: 17px; }
.pill--block { display: flex; width: 100%; }
.pill--brand { background: var(--brand); color: #fff; }
.pill--accent { background: var(--accent); color: var(--ink); }
.pill--outline { background: #fff; border-color: #D9D2CB; color: var(--ink); }
.pill--white { background: #fff; color: var(--brand); }

/* 2行の大きなボタン（＼〇〇／ + ボタン名） */
.cta-pair { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 280px; min-height: 72px; padding: 10px 36px;
  border-radius: 9999px; text-decoration: none; text-align: center;
  transition: opacity .15s ease, transform .15s ease;
}
.cta:hover { opacity: .9; transform: translateY(-1px); }
.cta__tag { font-size: 12px; font-weight: 500; line-height: 1.4; }
.cta__label { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; }
.cta--accent { background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08); }
.cta--brand { background: var(--brand); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08); }
.cta--white { background: #fff; color: var(--brand); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08); }
@media (max-width: 599px) { .cta { min-width: 0; width: 100%; } }

/* 英語の小さなラベル */
.label {
  display: inline-block;
  padding: 2px 6px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: 0.02em;
}

/* ---------- 上の細い帯とヘッダー ---------- */
.topbar { background: var(--gray); font-size: 12px; }
.topbar__inner { max-width: 1440px; margin: 0 auto; padding: 6px 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--ink); text-decoration: none; font-weight: 700; }
.topbar ul { display: flex; gap: 20px; }
@media (max-width: 767px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header__inner { max-width: 1440px; height: var(--header-h); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
@media (min-width: 768px) { .site-header__inner { padding: 0 24px; } }
.site-header__logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.site-header__logo img { width: 128px; }
.site-header__tagline { font-size: 9px; color: var(--ink-3); letter-spacing: 0.02em; }
.site-nav { display: none; }
.site-header__actions { display: none; }
.site-header__toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.site-header__toggle .icon { width: 26px; height: 26px; }
.site-header__toggle .icon--close, .site-header.is-open .icon--open { display: none; }
.site-header.is-open .icon--close { display: block; }
.site-header.is-open .site-nav {
  display: flex; flex-direction: column;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 8px 16px 20px; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
@media (min-width: 1100px) {
  .site-header__toggle { display: none; }
  .site-nav { display: flex; gap: 28px; margin-left: auto; }
  .site-nav a { padding: 0; border: 0; font-size: 14px; }
  .site-nav a:hover { color: var(--brand); }
  .site-nav__sp { display: none !important; }
  .site-header__actions { display: flex; gap: 8px; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; }
.hero::before {
  /* 右側の明るい斜めの帯 */
  content: '';
  position: absolute; top: 0; bottom: 0; right: -10%;
  width: 58%;
  background: var(--brand-light);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__inner {
  position: relative;
  max-width: 1300px; margin: 0 auto;
  padding: 56px 16px 64px;
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1fr; padding: 72px 40px 88px; gap: 40px; }
}
/* 見出しの上の吹き出し。しっぽは下の見出しを指す */
.hero__bubble {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  padding: 8px 18px 8px 14px; border-radius: 9999px;
  background: var(--accent); color: var(--ink);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem); font-weight: 700; line-height: 1.5; letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(80, 30, 0, 0.18);
}
.hero__sparkle { flex: none; width: 1.45em; height: 1.45em; color: var(--brand); }
.hero__bubble::after {
  content: ''; position: absolute; top: 100%; left: 28px;
  border: 9px solid transparent; border-top-color: var(--accent); border-bottom: 0;
}
.hero__title { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.45; letter-spacing: 0.06em; }
.hero__lead { margin-top: 20px; max-width: 32em; font-size: 16px; line-height: 1.9; }
.hero__badges { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.hero__badges li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 10px;
  line-height: 1.3;
}
.hero__badge-label { font-size: 12px; font-weight: 700; }
.hero__badge-value { font-size: 14px; font-weight: 700; }
.hero__badge-value b { font-family: var(--font-en); font-size: 32px; font-weight: 700; margin-right: 2px; }
.hero__badge-note { font-size: 11px; opacity: .85; }
.hero .cta-pair { justify-content: flex-start; margin-top: 32px; }

/* お店の人の写真（背景を切り抜いたもの）。下の端をヒーローの下の端にそろえる */
.hero__visual { display: flex; align-items: flex-end; justify-content: center; width: 100%; max-width: 560px; margin: 24px auto -64px; padding-top: 72px; }
@media (min-width: 1024px) { .hero__visual { align-self: end; max-width: none; margin: 0 0 -88px; } }
.hero__person { position: relative; margin: 0; }
.hero__person img { display: block; width: 100%; height: auto; }
.hero__person--owner { width: 52%; }
.hero__person--staff { width: 48%; }
/* 「＼ ○○ ／」の形。両わきの線は、下（人物の方）へ向かって狭まる */
.hero__target {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-size: 17px; font-weight: 700; line-height: 1.5; text-align: center; white-space: nowrap;
}
.hero__target::before, .hero__target::after { content: ''; flex: none; width: 2px; height: 2.6em; border-radius: 1px; background: currentColor; }
.hero__target::before { transform: rotate(-22deg); }
.hero__target::after { transform: rotate(22deg); }
.hero__person--staff .hero__target { left: 58%; }
@media (max-width: 479px) { .hero__target { gap: 8px; font-size: 13px; } }

/* ---------- 対応する媒体 ---------- */
.channels { padding: 28px 16px; border-bottom: 1px solid var(--line); }
.channels__list { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .channels__list { grid-template-columns: repeat(4, 1fr); } }
.channels__list li { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.channels__list .icon { width: 28px; height: 28px; color: var(--hp); }
/* 公式ロゴ（各社の規定により、色・形・縦横比は変えない） */
.channels__logo { flex: none; width: 24px; height: 24px; }
.channels__logo--maps { width: 26px; height: 26px; }
/* LINEはアイコンの周りに、アイコンの幅の半分の余白が必要（規定） */
.channels__list .channels__line { gap: 12px; }
@media (max-width: 767px) {
  .channels__list { gap: 14px 8px; }
  .channels__list li { justify-content: flex-start; gap: 6px; font-size: 13px; }
  .channels__list .channels__line { gap: 11px; }
  .channels__list .icon { width: 22px; height: 22px; }
  .channels__logo { width: 20px; height: 20px; }
  .channels__logo--maps,
  .channels__logo--line { width: 22px; height: 22px; } /* LINEはスマホで40ピクセル（画面の実際の点の数）以上が規定 */
}

/* ---------- セクション共通 ---------- */
.section { padding: 80px 16px; }
@media (min-width: 1024px) { .section { padding: 120px 24px; } }
.section--top-none { padding-top: 0; }
.section--tint { background: var(--tint); }
.section__inner { max-width: var(--container); margin: 0 auto; }
.heading { text-align: center; margin-bottom: 48px; }
@media (min-width: 1024px) { .heading { margin-bottom: 64px; } }
.heading__title { margin-top: 16px; font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.5; letter-spacing: 0.05em; }
.heading__lead { margin-top: 20px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.9; }
.note { margin-top: 24px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- これまで / ミセクルなら ---------- */
.compare { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 48px 1fr; gap: 16px; } }
.compare__col { border-radius: 10px; overflow: hidden; }
.compare__col--before { background: var(--gray); }
.compare__col--after { background: #fff; border: 3px solid var(--brand); }
.compare__head { padding: 14px 24px; font-size: 18px; font-weight: 700; text-align: center; }
.compare__col--before .compare__head { background: #E2DDD7; color: var(--ink-2); }
.compare__col--after .compare__head { background: var(--brand); color: #fff; }
.compare dl { padding: 8px 24px 16px; }
.compare dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.compare dl div:last-child { border-bottom: 0; }
.compare dt { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.compare dd { margin-top: 2px; font-size: 16px; font-weight: 700; }
.compare__col--before dd { color: var(--ink-2); font-weight: 500; }
.compare__arrow { display: grid; place-items: center; color: var(--brand); }
.compare__arrow .icon { width: 40px; height: 40px; }
@media (max-width: 899px) { .compare__arrow { transform: rotate(90deg); height: 32px; } }

/* ---------- 使い方（ステップ） ---------- */
/* パソコンは横一列、タブレットは2列、スマホは縦。カードの間の矢印で順番を見せる */
.how { display: grid; gap: 28px; }
@media (min-width: 640px) { .how { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; } }
@media (min-width: 1024px) { .how { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.how__step { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.how__scene { position: relative; border-radius: 15px 15px 0 0; background: var(--tint); }
.how__scene img { display: block; width: 100%; height: auto; }
.how__body { padding: 20px 22px 26px; }
.how__no { display: inline-block; padding: 1px 6px; background: var(--accent); font-family: var(--font-en); font-size: 13px; font-weight: 600; }
.how__title { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; }
.how__text { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.how__step::after {
  content: ''; position: absolute; z-index: 1;
  width: 12px; height: 12px;
  border-top: 3px solid var(--brand); border-right: 3px solid var(--brand);
}
/* スマホ：下向き */
.how__step:not(:last-child)::after { left: 50%; bottom: -21px; transform: translateX(-50%) rotate(135deg); }
.how__step:last-child::after { display: none; }
/* タブレット：同じ段の右どなりへ */
@media (min-width: 640px) {
  .how__step::after { display: none; }
  .how__step:nth-child(odd)::after { display: block; left: auto; bottom: auto; right: -24px; top: 33%; transform: rotate(45deg); }
}
/* パソコン：右どなりへ */
@media (min-width: 1024px) {
  .how__step:not(:last-child)::after { display: block; left: auto; bottom: auto; right: -21px; top: 33%; transform: rotate(45deg); }
}

/* ---------- メニュー ---------- */
.menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.menu { display: flex; flex-direction: column; padding: 24px 22px; border-radius: 10px; background: #fff; }
.menu__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--brand); }
.menu__icon .icon { width: 30px; height: 30px; }
.menu__cat { margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.menu__name { font-size: 17px; font-weight: 700; line-height: 1.5; }
.menu__unit { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.menu__pt { color: var(--brand); font-weight: 700; }
.menu__pt b { font-family: var(--font-en); font-size: 26px; margin-right: 2px; }

/* ---------- シミュレーター ---------- */
.simulator { display: grid; gap: 24px; }
@media (min-width: 1024px) { .simulator { grid-template-columns: 1fr 360px; gap: 40px; align-items: start; } }
.simulator__rows { padding: 8px 24px; border-radius: 10px; background: var(--gray); }
.simulator__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.simulator__row:last-child { border-bottom: 0; }
@media (min-width: 600px) { .simulator__row { grid-template-columns: 40px 1fr auto 64px; } }
.simulator__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand); }
.simulator__name { display: block; font-weight: 700; font-size: 15px; }
.simulator__unit { display: block; font-size: 12px; color: var(--ink-3); }
.simulator__amount { justify-self: end; font-size: 14px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 599px) { .simulator__amount { grid-column: 3; } }
.stepper { display: inline-flex; align-items: center; overflow: hidden; border-radius: 9999px; background: #fff; border: 1px solid #DDD5CD; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; color: var(--brand); font-size: 20px; font-weight: 700; cursor: pointer; }
.stepper input { width: 44px; height: 40px; border: 0; text-align: center; font-family: var(--font-en); font-weight: 700; font-size: 17px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.simulator__result { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px 28px; border-radius: 10px; background: var(--brand); color: #fff; text-align: center; }
.simulator__label { font-size: 14px; font-weight: 700; }
.simulator__total { font-size: 20px; font-weight: 700; }
.simulator__total b { font-family: var(--font-en); font-size: 64px; line-height: 1.1; margin-right: 4px; }
.simulator__plan { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-weight: 700; }
.simulator__detail { margin: 4px 0 24px; font-size: 14px; min-height: 1.8em; }
.simulator__result .pill--brand { background: var(--accent); color: var(--ink); }

/* ---------- 料金 ---------- */
.plans { display: grid; gap: 24px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border-radius: 10px; background: #fff; text-align: center; }
.plan__name { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; letter-spacing: 0.05em; }
.plan__price { margin-top: 20px; font-size: 18px; font-weight: 700; }
.plan__label { margin-right: 6px; font-size: 15px; }
.plan__price b { font-family: var(--font-en); font-size: 48px; font-weight: 700; color: var(--brand); letter-spacing: 0; }
.plan__tax { font-size: 13px; color: var(--ink-3); }
.plan__points { margin: 16px auto 0; padding: 6px 20px; border-radius: 9999px; background: var(--accent); font-weight: 700; }
.plan__points b { font-family: var(--font-en); font-size: 24px; margin: 0 2px; }
.plan__specs { margin-top: 24px; text-align: left; }
.plan__specs div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan__specs dt { color: var(--ink-2); }
.plan__specs dd { font-weight: 700; }
.plan__example { flex-grow: 1; margin: 20px 0 24px; padding: 16px; border-radius: 8px; background: var(--gray); text-align: left; }
.plan__example > p { font-size: 13px; font-weight: 700; }
.plan__example li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--ink-2); }
.plan__example li span:last-child { font-family: var(--font-en); font-weight: 700; color: var(--ink); }
.price-notes { margin-top: 32px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.price-notes li { padding-left: 1.2em; text-indent: -1.2em; }
.price-notes li::before { content: '※'; margin-right: .2em; }

/* ---------- 締めの帯 ---------- */
.banner-wrap { padding: 0 16px 80px; }
@media (min-width: 1024px) { .banner-wrap { padding: 0 24px 120px; } }
.banner {
  position: relative; overflow: hidden;
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 24px; align-items: center;
  padding: 40px 28px;
  border-radius: 10px;
  background: var(--brand); color: #fff;
}
.banner::after {
  content: '';
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%;
  background: var(--tint);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
@media (min-width: 900px) { .banner { grid-template-columns: 1.2fr 1fr; padding: 48px 56px; } }
@media (max-width: 899px) { .banner::after { display: none; } }
.banner__copy { position: relative; z-index: 1; }
.banner h2 { font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 700; line-height: 1.6; letter-spacing: 0.05em; }
.banner .cta-pair { justify-content: flex-start; margin-top: 28px; }
.banner .cta { min-width: 240px; }
.banner__visual { position: relative; z-index: 1; display: grid; place-items: center; }
.banner__card { width: 100%; max-width: 320px; padding: 28px 24px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 16px 32px rgba(80, 30, 0, 0.18); text-align: center; }
.banner__card img { width: 140px; margin: 0 auto; }
.banner__card p { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.banner__card-price { font-weight: 700; color: var(--brand) !important; font-size: 15px !important; }
.banner__card-price b { font-family: var(--font-en); font-size: 32px; }

/* ---------- 導入の流れ（色付きの面） ---------- */
.section--brand { background: var(--brand); color: #fff; }
.flow { display: grid; gap: 40px; }
@media (min-width: 1024px) { .flow { grid-template-columns: 360px 1fr; gap: 64px; align-items: start; } }
.flow__head .heading__title { margin-top: 16px; }
.flow__head .heading__lead { color: #fff; }
.flow__list { display: grid; gap: 16px; }
.flow__list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 24px 28px; border-radius: 10px; background: #fff; color: var(--ink); }
.flow__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--brand); }
.flow__icon .icon { width: 32px; height: 32px; }
.flow__no { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--brand); }
.flow__list h3 { font-size: 18px; font-weight: 700; color: var(--brand); }
.flow__list li p:last-child { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

/* ---------- よくある質問 ---------- */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 10px; background: #fff; }
.faq summary { position: relative; padding: 22px 56px 22px 64px; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; position: absolute; left: 24px; top: 18px; font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--brand); }
.faq summary::after {
  content: ''; position: absolute; right: 26px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { position: relative; margin: 0 24px; padding: 20px 8px 24px 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.faq details p::before { content: 'A'; position: absolute; left: 0; top: 16px; font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--ink-3); }

/* ---------- お問い合わせフォーム ---------- */
.form { max-width: 800px; margin: 0 auto; display: grid; gap: 24px; padding: 32px 20px; border-radius: 10px; background: var(--gray); }
@media (min-width: 768px) { .form { padding: 48px 56px; } }
.form__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__row { display: grid; gap: 8px; border: 0; min-width: 0; }
.form__label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.req, .opt { padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.req { background: var(--brand); color: #fff; }
.opt { background: #fff; color: var(--ink-3); border: 1px solid var(--line); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid #D9D2CB; border-radius: 8px; background: #fff; font-size: 16px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #FBE3CF; }
.choice { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; }
.choice input, .form__agree input { width: 18px; height: 18px; accent-color: var(--brand); }
.form__agree { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile。ふだんは見えず、確認が必要なときだけ出る */
.form__captcha { display: flex; justify-content: center; }

/* ---------- お問い合わせ先の箱（フッター上） ---------- */
.contact-boxes__inner { display: grid; }
@media (min-width: 900px) { .contact-boxes__inner { grid-template-columns: 1fr 1fr; } }
.contact-box { padding: 48px 32px; color: #fff; }
@media (min-width: 900px) { .contact-box { padding: 56px 64px; } }
.contact-box--brand { background: var(--brand); }
.contact-box--dark { display: grid; gap: 32px; background: var(--dark); }
.contact-box--dark > div + div { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.contact-box__title { font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: 0.05em; }
.contact-box__tel { margin-top: 32px; font-family: var(--font-en); font-size: 30px; font-weight: 700; }
.contact-box__tel a { color: #fff; text-decoration: none; }
.contact-box__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }
.contact-box__link .icon { width: 28px; height: 28px; padding: 5px; border: 1.5px solid #fff; border-radius: 50%; }

/* ---------- フッター ---------- */
.site-footer { padding: 56px 16px 120px; }
@media (min-width: 900px) { .site-footer { padding: 64px 24px 120px; } }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 300px 1fr; } }
.site-footer__brand img { width: 160px; }
.site-footer__company { margin-top: 16px; font-size: 18px; font-weight: 700; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.site-footer__nav a { color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-footer__bottom { max-width: var(--container); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__bottom a { color: var(--ink-2); text-decoration: none; }

/* ---------- 下に固定する帯 ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 48px calc(12px + env(safe-area-inset-bottom)) 16px;
  background: var(--brand); color: #fff;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar.is-closed { display: none; }
.sticky-bar__text { display: none; font-size: 14px; font-weight: 700; }
@media (min-width: 900px) { .sticky-bar__text { display: block; } }
.sticky-bar__actions { display: flex; gap: 8px; }
@media (max-width: 899px) { .sticky-bar__actions { flex: 1; } .sticky-bar__actions .pill { flex: 1; } }
.sticky-bar__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: #fff; cursor: pointer; }

/* ---------- 規約などの文章ページ ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 64px 16px 120px; }
.doc h1 { font-size: clamp(1.625rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: 0.05em; }
.doc__meta { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.doc__notice { margin-top: 32px; padding: 16px 20px; border-radius: 8px; background: var(--tint); font-size: 14px; }
.doc h2 { margin-top: 48px; padding-left: 12px; border-left: 4px solid var(--brand); font-size: 19px; font-weight: 700; }
.doc p, .doc li { margin-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.doc ol { list-style: decimal; padding-left: 1.5em; }

/* ---------- 仮ページ・エラーページ ---------- */
.placeholder { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; text-align: center; background: var(--tint); }
.placeholder h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.placeholder p { color: var(--ink-2); }
.debug { max-width: 100%; overflow-x: auto; padding: 16px; text-align: left; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

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

/* ---------- 文言の編集ページ（/_copy。手元の開発環境だけ） ---------- */
.editor-page { background: var(--gray); }
.editor__bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 24px; background: #fff; box-shadow: 0 1px 0 var(--line);
}
.editor__title { font-size: 17px; font-weight: 700; margin-right: 8px; }
.editor__search { flex: 1 1 240px; max-width: 420px; height: 40px; padding: 0 16px; border: 1px solid #D9D2CB; border-radius: 9999px; font-size: 14px; }
.editor__changed { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand); }
.editor__layout { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .editor__layout { grid-template-columns: 240px 1fr; } }
.editor__nav { display: none; }
@media (min-width: 1024px) {
  .editor__nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; align-self: start; }
  .editor__nav a { padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
  .editor__nav a:hover { background: #fff; color: var(--ink); }
}
.editor__notice { padding: 14px 18px; border-radius: 8px; font-weight: 700; margin-bottom: 16px; }
.editor__notice--ok { background: #E7F8EE; color: #0F6B37; }
.editor__notice--error { background: #FDECEC; color: #A61B1B; }
.editor__help { padding: 18px 22px; border-radius: 10px; background: #fff; margin-bottom: 24px; font-size: 14px; }
.editor__help summary { font-weight: 700; cursor: pointer; }
.editor__help ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; color: var(--ink-2); }
.editor__help code { padding: 1px 6px; border-radius: 4px; background: var(--tint); color: var(--brand); font-size: 13px; }
.editor__vars { margin-top: 12px; width: 100%; border-collapse: collapse; font-size: 13px; }
.editor__vars th, .editor__vars td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.editor__vars th { color: var(--ink-3); font-weight: 700; }
.editor__section { margin-bottom: 24px; padding: 24px; border-radius: 10px; background: #fff; scroll-margin-top: 88px; }
.editor__section h2 { font-size: 18px; font-weight: 700; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--brand); }
.editor__item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.editor__item:last-child { border-bottom: 0; }
.editor__item label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.editor__label { font-size: 14px; font-weight: 700; }
.editor__key { font-size: 11px; color: var(--ink-3); font-family: ui-monospace, Menlo, monospace; }
.editor__item textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #D9D2CB; border-radius: 8px; background: #fff;
  font-size: 15px; line-height: 1.7; resize: vertical;
}
.editor__item textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #FBE3CF; }
.editor__item.is-changed textarea { border-color: var(--brand); background: #FFFBF6; }
.editor__item.is-changed .editor__label::after { content: '変更あり'; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--accent); font-size: 11px; }

/* ヒーローの実績の注記 */
.hero__footnote { margin-top: 10px; font-size: 11px; opacity: .9; }

/* ---------- 申込ページ ---------- */
.order { padding: 56px 16px 120px; background: var(--tint); }
@media (min-width: 1024px) { .order { padding: 72px 24px 140px; } }
.order__inner { max-width: 880px; margin: 0 auto; }
.order .heading { margin-bottom: 32px; }
.order-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; counter-reset: none; }
.order-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 9999px; background: #fff; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.order-steps__no { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gray); font-family: var(--font-en); font-size: 13px; }
.order-steps .is-current { background: var(--brand); color: #fff; }
.order-steps .is-current .order-steps__no { background: #fff; color: var(--brand); }
.order-steps .is-done .order-steps__no { background: var(--accent); color: var(--ink); }
.order-alert { margin-bottom: 24px; padding: 14px 18px; border-radius: 8px; background: #FDECEC; color: #A61B1B; font-weight: 700; }
.order-form, .order-final { display: grid; gap: 24px; }
.order-block { padding: 32px 24px; border-radius: 10px; background: #fff; }
@media (min-width: 768px) { .order-block { padding: 40px 48px; } }
.order-block + .order-block { margin-top: 24px; }
.order-form .order-block + .order-block { margin-top: 0; }
.order-block__title { margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--brand); font-size: 19px; font-weight: 700; }
.order-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .order-grid { grid-template-columns: 1fr 1fr; } }
.order-field { display: grid; gap: 8px; margin-top: 20px; border: 0; min-width: 0; }
.order-grid .order-field { margin-top: 0; }
.order-block > .order-grid { margin-top: 20px; }
.order-field__label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.order-field__help { font-size: 13px; color: var(--ink-3); }
.order-field input[type="text"], .order-field input[type="email"], .order-field input[type="tel"], .order-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #D9D2CB; border-radius: 8px; background: #fff; font-size: 16px;
}
.order-field input:focus, .order-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #FBE3CF; }
[aria-invalid="true"], .order-field input[aria-invalid="true"] { border-color: #D93025 !important; }
.field-error { font-size: 13px; font-weight: 700; color: #C5221F; }
.order-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.plan-choices { display: grid; gap: 12px; border-radius: 10px; }
@media (min-width: 768px) { .plan-choices { grid-template-columns: repeat(3, 1fr); } }
.plan-choice { position: relative; cursor: pointer; }
.plan-choice input { position: absolute; opacity: 0; }
.plan-choice__body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 12px; border: 2px solid var(--line); border-radius: 10px; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.plan-choice input:checked + .plan-choice__body { border-color: var(--brand); background: var(--tint); }
.plan-choice input:focus-visible + .plan-choice__body { outline: 3px solid #F3B37A; outline-offset: 2px; }
.plan-choice__name { font-size: 17px; font-weight: 700; }
.plan-choice__price { margin-top: 4px; font-size: 14px; font-weight: 700; }
.plan-choice__price b { font-family: var(--font-en); font-size: 28px; color: var(--brand); }
.plan-choice__tax { font-size: 12px; color: var(--ink-3); }
.plan-choice__pt { margin-top: 8px; padding: 2px 12px; border-radius: 9999px; background: var(--accent); font-size: 13px; font-weight: 700; }
@media (max-width: 767px) {
  /* スマホでは1プラン1行にして、縦に長くなりすぎないようにする */
  .plan-choice__body { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "pt tax"; align-items: center; gap: 4px 12px; padding: 14px 16px; text-align: left; }
  .plan-choice__name { grid-area: name; }
  .plan-choice__price { grid-area: price; margin-top: 0; text-align: right; }
  .plan-choice__price b { font-size: 24px; }
  .plan-choice__tax { grid-area: tax; text-align: right; }
  .plan-choice__pt { grid-area: pt; justify-self: start; margin-top: 0; }
}
.pay-choices { display: grid; gap: 12px; }
.pay-choice { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.pay-choice:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.pay-choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.pay-choice b { display: block; font-size: 16px; color: var(--ink); }
.order-actions { display: flex; justify-content: center; margin-top: 8px; }
.order-actions .pill, .order-final .pill { min-width: 320px; }
@media (max-width: 599px) { .order-actions .pill, .order-final .pill { min-width: 0; width: 100%; } }
.summary div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (min-width: 768px) { .summary div { grid-template-columns: 200px 1fr; gap: 24px; } }
.summary dt { font-weight: 700; color: var(--ink-2); }
.summary__total dd b { font-family: var(--font-en); font-size: 30px; color: var(--brand); }
.summary__total small { display: block; font-size: 13px; color: var(--ink-3); }
.summary__pre { white-space: pre-wrap; }
.order-edit { margin-top: 16px; text-align: right; font-size: 14px; }
.order-final { margin-top: 32px; justify-items: center; text-align: center; }
.order-done { padding: 48px 24px; border-radius: 10px; background: #fff; text-align: center; }
.order-done h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: 0.05em; }
.nobr { display: inline-block; }
.order-done p { margin-top: 12px; color: var(--ink-2); }
.order-done__no b { font-family: var(--font-en); color: var(--ink); letter-spacing: 0.04em; }
.order-next { max-width: 480px; margin: 28px auto 32px; text-align: left; counter-reset: step; }
.order-next li { counter-increment: step; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.order-next li::before { content: counter(step); width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-en); font-size: 13px; font-weight: 700; }
.form__row--center { justify-items: center; text-align: center; }
/* 中央ぞろえの文章は、スマホでは行末に1〜2文字だけ残りやすいので左ぞろえにする */
@media (max-width: 599px) { .order-done > p:not(.order-done__no) { text-align: left; } }
