@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* claude design v5 の実トークン */
  --color-bg: #fdf8ee;
  --color-ink: #0b5751;          /* tw-primary-deep */
  --color-primary: #0ea59b;      /* tw-primary */
  --color-primary-dark: #0b5751;
  --color-accent: #ef8a2c;
  --color-accent-dark: #d1751f;  /* tw-accent-deep */
  --color-accent-soft: #ffd9a8;
  --color-navy: #1b3a5c;
  --color-soft: #f2faf8;         /* tw-primary-soft: カード薄地 */
  --color-tint: #e3f3f0;         /* tw-primary-tint: バナー/フォーム地 */
  --color-sec: #e9f5f1;          /* tw-sec-bg: 交互セクション地 */
  --color-line: #bfe3de;         /* tw-primary-line: セクション罫線 */
  --color-white: #ffffff;
  --color-text: #2f3a38;
  --color-text-soft: #4c5a57;    /* neutral-700 */
  --color-text-muted: #5f6d6a;   /* neutral-600 */
  --color-text-faint: #78827f;   /* neutral-500 */
  --color-border: #d5ddda;       /* neutral-300 */
  --rad: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 16px rgba(31, 78, 76, 0.08);
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--color-ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- セクション共通 ---------- */
main section { border-top: 3px solid var(--color-line); }
main section:first-of-type { border-top: none; }
.section { background: var(--color-white); }
.section-tint { background: var(--color-sec); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 84px) 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-inner.narrow { max-width: 760px; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 8px;
}

.section-head { text-align: center; }
.section-title {
  font-size: clamp(20px, 4.6vw, 30px);
  font-weight: 900;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
/* v5の見出し下線アニメーション */
.section-title::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 0; height: 4px; border-radius: 2px;
  background: var(--color-accent);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title.in::after { width: min(144%, 440px); }

.body-lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--color-text-soft);
  max-width: 36em;
  margin: 0 auto;
  text-align: center;
}

.stats-title {
  text-align: center;
  font-size: clamp(18px, 4.2vw, 24px);
  font-weight: 900;
  margin-bottom: 16px;
}

/* スクロール連動の出現アニメーション */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.lift { transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.rv.lift:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(31, 78, 76, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .section-title::after { transition: none; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-soft);
  box-shadow: 0 2px 12px rgba(31, 78, 76, 0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 3px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-weight: 900; font-size: 26px; color: var(--color-navy); }
.brand-sub {
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  color: var(--color-accent); white-space: nowrap; margin-left: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 10px;
  font-size: 13px; font-weight: 700; color: var(--color-ink);
  white-space: nowrap;
}
.nav a:hover { color: var(--color-accent); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.4px; background: var(--color-ink); border-radius: 2px; }

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 52px 0 34px;
  border-radius: 999px; font-weight: 900; font-size: 17px;
  border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 5px 18px rgba(239, 138, 44, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, #fff);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 138, 44, 0.4);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn .chev {
  position: absolute; top: 50%; right: 18px;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.btn-primary:hover .chev { transform: translateY(-50%) translateX(3px); }
.btn-block { width: 100%; padding: 0 34px; text-decoration: none; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--color-bg); position: relative; overflow: hidden; }
.hero-bg-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(58%, 620px); height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 35%, #000 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 35%, #000 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 20px clamp(24px, 3vw, 40px);
  display: block;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-copy h1 { white-space: nowrap; }
.hero-art { position: absolute; left: 38%; bottom: 0; z-index: 1; }
.badge {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 4px 18px;
  background: var(--color-tint); color: var(--color-ink);
  font-weight: 700; font-size: 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 56px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-ink);
}
.hero-lead {
  font-size: clamp(15px, 4vw, 17px);
  line-height: 2.1;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}
.hero-phone-img {
  width: min(18vw, 230px);
  filter: drop-shadow(0 18px 30px rgba(11, 87, 81, 0.3));
}

/* ---------- カードグリッド ---------- */
.card-grid { display: grid; gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 統計カードはv5どおり常に2×2 */
.card-grid-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* お悩みカード: v5は薄ミント地・枠線/影なし */
.issue-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 24px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.issue-icon {
  width: 110px; height: 110px; object-fit: cover; border-radius: 50%;
}
.issue-card p { font-weight: 700; color: var(--color-ink); font-size: 15px; line-height: 1.8; }

/* 白地カード */
.info-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.info-card h3, .info-card h4 { margin-bottom: 12px; font-size: 18px; font-weight: 900; }
.info-card p { font-size: 14px; line-height: 2; color: var(--color-text-soft); }
.info-card-title-accent { color: var(--color-primary); }
.info-card-center { text-align: center; }
.info-card-center p { text-align: left; }
.info-card-dark {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.92);
}
.info-card-dark h3 { color: var(--color-accent-soft); text-align: center; }
.info-card-dark p { color: rgba(255, 255, 255, 0.92); }
.info-card-dark strong { color: #fff; }

.check-list { margin-top: 14px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-primary);
  font-weight: 900;
}

/* 統計カード */
.stat-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-label { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.stat-value {
  margin-top: 8px;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 900;
  color: var(--color-primary);
}
.stat-value span { font-size: 0.5em; color: var(--color-text); margin-left: 2px; }
.stats-source { text-align: center; font-size: 12px; color: var(--color-text-faint); line-height: 1.7; margin-top: -18px; }

/* 機能一覧カード: アイコン丸+横並びタイトル */
.feature-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.feature-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-tint); flex-shrink: 0;
}
.feature-icon svg { stroke: var(--color-primary); }
.feature-card h4 { margin: 0; font-size: 16px; font-weight: 900; }
.feature-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }
.soon-tag {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700;
  background: var(--color-border); color: var(--color-text-muted);
  padding: 2px 8px; border-radius: 999px;
}

/* 構成要素カード(薄ミント地+数字バッジ) */
.element-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 26px 22px;
  text-align: center;
}
.element-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 18px; font-weight: 900; margin-bottom: 12px;
}
.element-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 900; }
.element-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }

/* 安心カード(薄ミント地) */
.assure-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 26px 22px;
  text-align: center;
}
.assure-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 900; }
.assure-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }
.assure-icon { display: flex; justify-content: center; margin-bottom: 8px; }
.assure-icon svg { stroke: var(--color-primary); }
.sandbox-logo { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }

/* 利用者の声 */
.voice-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.voice-headline { font-size: 17px; font-weight: 900; line-height: 1.7; color: var(--color-ink); }
.voice-body { font-size: 14px; line-height: 2; color: var(--color-text-soft); flex: 1; }
.voice-footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.voice-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-tint); color: var(--color-ink);
  font-size: 14px; font-weight: 900;
}
.voice-person { font-size: 13px; font-weight: 700; color: var(--color-primary); }

/* 料金カード */
.plan-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.plan-tag {
  display: inline-flex; align-items: center;
  min-height: 30px; padding: 2px 16px;
  background: var(--color-primary); color: #fff;
  font-weight: 900; font-size: 14px;
  border-radius: 999px; margin-bottom: 12px;
}
.plan-card p { font-size: 14px; line-height: 2; color: var(--color-text-soft); text-align: left; }

/* 導入ステップカード(薄ミント地) */
.step-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 26px 22px;
  text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-size: 18px; font-weight: 900; margin-bottom: 12px;
}
.step-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 900; }
.step-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }

/* ---------- バナー(callout) ---------- */
.callout {
  border-radius: var(--rad);
  padding: clamp(28px, 5vw, 44px) 24px;
  text-align: center;
}
.callout-light { background: var(--color-tint); }
.callout-white { background: var(--color-white); box-shadow: var(--shadow-card); }
.callout .eyebrow { margin-bottom: 6px; font-size: 14px; }
.callout-sub { font-size: 15px; line-height: 2; color: var(--color-text-soft); margin-bottom: 4px; }
.callout-main { font-size: clamp(17px, 3vw, 21px); font-weight: 900; color: var(--color-ink); line-height: 1.8; margin-bottom: 16px; }
.callout .btn { margin-top: 4px; }

.callout-dark {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--rad);
  padding: clamp(28px, 5vw, 44px) 24px;
  text-align: center;
}
.callout-dark-title { font-size: clamp(21px, 5.2vw, 32px); font-weight: 900; margin-bottom: 14px; line-height: 1.55; }
.callout-dark-body { font-size: 14px; line-height: 2; color: rgba(255, 255, 255, 0.85); max-width: 28em; margin: 0 auto; }

/* ---------- フロー図 ---------- */
.flow-diagram {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 12px 0;
}
.flow-node-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; padding: 14px 18px; border-radius: 999px;
  background: var(--color-white); box-shadow: var(--shadow-card);
  font-weight: 700; font-size: 14px; color: var(--color-ink);
}
.flow-node-badge-ai { background: var(--color-primary); color: #fff; }
.flow-arrow { font-size: 20px; color: var(--color-accent); }

/* ---------- 運営会社 ---------- */
.company-mark { display: block; margin: 0 auto; width: 180px; height: auto; }

/* ---------- フォーム ---------- */
#apply { background: var(--color-tint); }
.apply-form {
  background: transparent;
  display: flex; flex-direction: column; gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-weight: 700; font-size: 14px; color: var(--color-ink); }
.required {
  background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-left: 6px;
}
.apply-form input {
  min-height: 50px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 16px; font-size: 16px; font-family: inherit;
  color: var(--color-text); background: #fff;
}
.apply-form input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.apply-form .btn { min-height: 56px; }
.form-note { text-align: center; font-size: 12px; color: var(--color-text-faint); line-height: 1.7; }
.form-note-success { font-size: 16px; font-weight: 700; color: var(--color-ink); }

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 4px 20px;
}
.accordion-item summary {
  cursor: pointer; padding: 16px 0;
  font-size: 15px; font-weight: 700; color: var(--color-ink);
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.accordion-item p { padding: 0 0 18px; font-size: 14px; line-height: 2; color: var(--color-text-soft); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(36px, 6vw, 52px) 20px 24px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr 1fr 1.2fr; gap: 28px;
  padding: 0 0 24px;
}
.footer-brand { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 900; }
.footer-brand .brand-sub { color: var(--color-accent-soft); font-size: 12px; letter-spacing: 0.1em; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 900; margin: 0 0 10px; }
.footer-col p { font-size: 14px; line-height: 2; margin-bottom: 8px; color: rgba(255, 255, 255, 0.75); }
.footer-col a {
  display: block; font-size: 14px; margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75); text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-patent-row { display: flex; align-items: center; gap: 12px; }
.footer-patent-row p { font-size: 13px; line-height: 1.8; margin: 0; }
.sandbox-logo-footer {
  width: 44px; height: 44px; flex-shrink: 0; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px; margin: 0;
}
.footer-copyright {
  max-width: var(--container); margin: 0 auto;
  text-align: left; font-size: 13px; color: rgba(255, 255, 255, 0.6);
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- モバイル固定CTA ---------- */
.sticky-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(31, 78, 76, 0.15);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  background: var(--color-accent); color: #fff;
  font-weight: 900; font-size: 16px;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(239, 138, 44, 0.35);
}
.sticky-cta:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 899px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(31, 78, 76, 0.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; font-size: 15px; border-bottom: 1px solid var(--color-border); padding: 0; }
  .nav-toggle { display: flex; }

  /* v5仕様: 背景写真は残し、CTAボタンは下部固定バーに一本化して非表示 */
  .hero-copy .btn { display: none; }
  .hero-art { position: static; display: flex; justify-content: center; margin-top: 32px; }
  .hero-phone-img { width: min(80vw, 300px); }
  .hero-copy h1 { white-space: normal; }

  /* v5のモバイル横スワイプカルーセル */
  .card-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 10vw 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .card-grid::-webkit-scrollbar { display: none; }
  .card-grid > * { flex: 0 0 72vw; min-width: 72vw; scroll-snap-align: center; scroll-snap-stop: always; }
  /* 統計2×2はモバイルでもグリッド維持 */
  .card-grid-stats { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0; overflow: visible; }
  .card-grid-stats > * { min-width: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .sticky-cta-bar { display: flex; }
  .site-footer { padding-bottom: 108px; }

  h1, .hero h1 { animation: none !important; }
}

@media (min-width: 900px) {
  .sticky-cta-bar { display: none !important; }
}
