:root {
  --bg: #f7f3ee;
  --white: #ffffff;
  --text: #151515;
  --subtext: rgba(21, 21, 21, 0.6);
  --accent: #c46a5a;
  --pale-yellow: #fff1b8;
  --pale-green: #d9f4e7;
  --pale-blue: #ddeeff;
  --pale-pink: #ffe5e2;
  --radius-lg: 34px;
  --radius-md: 26px;
  --shadow-sm: 0 12px 28px rgba(21, 21, 21, 0.07);
  --shadow-cta: 0 20px 40px rgba(21, 21, 21, 0.18);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
.container { width: min(var(--max-width), 100% - 48px); margin: 0 auto; }
.section { padding: 104px 0; }

.fade-in { opacity: 0; transform: translateY(18px); transition: .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; }
.site-header.is-scrolled { backdrop-filter: blur(8px); background: rgba(247, 243, 238, .94); box-shadow: 0 1px 0 rgba(21, 21, 21, .08); }
.site-header__inner { width: min(var(--max-width), 100% - 48px); margin: 0 auto; min-height: 74px; display: flex; align-items: center; justify-content: space-between; }
.site-header__logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.site-header__logo-name { font-family: 'Cormorant Garamond', serif; letter-spacing: .08em; font-size: 1.6rem; }
.site-header__logo-sub { font-size: .7rem; letter-spacing: .15em; opacity: .7; margin-top: 4px; }
.site-nav ul { display: flex; list-style: none; gap: 28px; padding: 0; margin: 0; align-items: center; }
.site-nav a { text-decoration: none; font-size: .88rem; font-weight: 500; }
.site-nav .nav-cta a { background: #151515; color: #fff; padding: 10px 18px; border-radius: 999px; }
.site-header__toggle { display: none; }

.hero { background: var(--white); padding: 156px 0 96px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -120px; background: var(--pale-yellow); }
.hero::after { width: 300px; height: 220px; right: 140px; bottom: -80px; background: #f2efea; }
.hero__layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: end; position: relative; z-index: 1; }
.hero__eyebrow { font-size: .78rem; letter-spacing: .14em; font-weight: 700; margin: 0 0 20px; }
.hero__title { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.12; margin: 0 0 24px; font-weight: 700; }
.hero__subtitle { font-size: 1rem; color: var(--subtext); margin: 0 0 28px; max-width: 640px; text-wrap: pretty; }
.hero__cta-group { display: inline-flex; flex-direction: column; }
.hero__micro { margin: 8px 0 0; color: var(--subtext); font-size: .82rem; }
.hero__kpis { display: grid; gap: 16px; }
.kpi-card { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(21, 21, 21, 0.05); }
.kpi-card span { display: block; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 700; }
.kpi-card p { margin: 10px 0 0; color: var(--subtext); font-size: .9rem; }
.kpi-card--blue { background: var(--pale-blue); }
.kpi-card--warm { background: #f7efe8; }

.btn { text-decoration: none; border-radius: 999px; padding: 14px 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn--primary { background: #151515; color: #fff; box-shadow: var(--shadow-cta); }
.btn--secondary { background: #fff; border-color: rgba(21, 21, 21, .22); }
.btn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pale-yellow); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(196, 106, 90, .4); outline-offset: 3px; }

.section-heading { font-family: 'Noto Serif JP', serif; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.25; margin: 0 0 18px; }
.section-heading--center { text-align: center; }
.section-lead { color: var(--subtext); margin: 0; font-size: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; margin-bottom: 34px; }

.problem-grid, .scope-grid, .results-grid, .voice-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.problem-card, .scope-card, .result-card, .flow-card, .voice-card, .why-card { border-radius: var(--radius-md); background: #fff; padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid rgba(21, 21, 21, 0.05); transition: transform .25s ease, box-shadow .25s ease; }
.problem-card:hover, .scope-card:hover, .result-card:hover, .flow-card:hover, .voice-card:hover, .why-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(21, 21, 21, .11); }
.problem-card span, .why-card span, .flow-card span { font-size: .8rem; letter-spacing: .1em; color: var(--subtext); font-weight: 700; }
.problem-card h3, .scope-card h3, .result-card h3, .flow-card h3, .why-card h3 { margin: 10px 0; font-size: 1.28rem; line-height: 1.4; }
.problem-card p, .scope-card p, .flow-card p { margin: 0; color: var(--subtext); }
.problem-card--a { background: #fff; }
.problem-card--b { background: #fbf9f4; }
.problem-card--c { background: #f9f3f2; }

.scope-card h3 { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--y { background: var(--pale-yellow); }
.dot--g { background: var(--pale-green); }
.dot--b { background: var(--pale-blue); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-list span { background: #fff; border: 1px solid rgba(21, 21, 21, 0.12); border-radius: 999px; padding: 6px 12px; font-size: .82rem; }
.service-note { background: #fff7dc; margin: 22px 0 0; border-radius: 999px; padding: 15px 20px; text-align: center; color: var(--subtext); }

.why-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.why-card--strong { background: #151515; color: #fff; }
.why-card--strong span { color: var(--pale-yellow); }
.why-card--strong h3 { color: #fff7dc; }

.result-card { padding-bottom: 24px; }
.result-card .rate { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin: 12px 0 6px; font-weight: 700; color: var(--accent); background: #fff2ef; border-radius: 18px; padding: 16px 18px; display: inline-block; }
.result-card .sub { margin: 0; color: var(--subtext); font-size: .88rem; }

.flow-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.flow-card strong { margin-top: 14px; display: inline-block; background: #fff; border-radius: 999px; border: 1px solid rgba(21,21,21,.15); padding: 6px 12px; }
.flow-card:first-child strong { background: var(--pale-yellow); border: none; }

.voice { background: #f5efe9; }
.badge { display: inline-block; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .78rem; margin-bottom: 14px; }
.voice-card p { margin: 0 0 16px; font-size: 1rem; }
.voice-card small { color: var(--subtext); }

.faq__list { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: 8px 28px; box-shadow: var(--shadow-sm); border: 1px solid rgba(21, 21, 21, 0.06); }
.faq__item { border-bottom: 1px solid rgba(21, 21, 21, .1); }
.faq__item:last-child { border: none; }
.faq__item summary { cursor: pointer; list-style: none; padding: 26px 0; font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '▾'; color: var(--subtext); }
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__answer { margin: 0; max-width: 760px; color: var(--subtext); padding: 0 0 26px; line-height: 1.9; }

.final-cta { background: var(--pale-green); }
.final-cta__inner { border-radius: var(--radius-lg); background: rgba(255,255,255,.52); padding: 48px; text-align: center; }
.final-cta__inner p { margin: 0 0 20px; color: var(--subtext); }
.final-cta__buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.contact-form { padding-top: 0; padding-bottom: 220px; }
.contact__form-wrap { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact__form-wrap iframe { border: 0; display: block; width: 100%; }

.floating-cta { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 20; background: #151515; color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-cta); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.floating-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta__label { font-weight: 700; font-size: .86rem; }
.floating-cta__micro { font-size: .66rem; opacity: .75; }

.footer { background: #151515; color: rgba(255,255,255,.7); padding: 32px 24px 96px; text-align: center; font-size: .76rem; }
.footer__links { margin-top: 10px; display: flex; justify-content: center; gap: 18px; }
.footer__links a { color: inherit; }

@media (max-width: 900px) {
  .container, .site-header__inner { width: calc(100% - 32px); }
  .section { padding: 78px 0; }
  .hero { padding-top: 132px; }
  .hero__layout, .split, .problem-grid, .scope-grid, .results-grid, .flow-grid, .voice-grid, .why-grid { grid-template-columns: 1fr; }
  .hero__kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__kpis .kpi-card:last-child { grid-column: 1/-1; }
  .site-header__toggle { display: flex; flex-direction: column; gap: 6px; width: 40px; border: 1px solid rgba(21,21,21,.2); border-radius: 10px; background: transparent; padding: 10px 8px; }
  .site-header__toggle span { height: 2px; background: #151515; display: block; }
  .site-nav { position: fixed; top: 74px; right: 0; width: min(78vw, 300px); background: #151515; height: calc(100dvh - 74px); transform: translateX(100%); transition: .25s; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 16px; }
  .site-nav a { color: #fff; display: block; padding: 12px 8px; }
  .site-nav .nav-cta a { text-align: center; background: var(--accent); }
  .problem-card:hover, .scope-card:hover, .result-card:hover, .flow-card:hover, .voice-card:hover, .why-card:hover, .btn:hover { transform: none; }
  .faq__list { padding: 8px 20px; }
  .contact-form { padding-bottom: 180px; }
  .floating-cta { left: 16px; right: 16px; border-radius: 16px; align-items: center; text-align: center; }
  .floating-cta__label { font-size: .9rem; }
  .floating-cta__micro { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .btn,
  .problem-card,
  .scope-card,
  .result-card,
  .flow-card,
  .voice-card,
  .why-card,
  .floating-cta {
    transition: none !important;
    transform: none !important;
  }
}
