:root {
  --primary: #00a094;
  --primary-dark: #08766f;
  --text: #242424;
  --muted: #646a69;
  --surface: #f5f9f8;
  --gold: #c9a961;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #f8faf9; font-family: var(--sans); line-height: 1.8; }
a { color: inherit; }
.detail-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid #e8efee; backdrop-filter: blur(12px); }
.detail-nav-inner { width: min(1120px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.detail-logo { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); font-size: 22px; font-weight: 700; text-decoration: none; }
.detail-logo img { width: 36px; height: 36px; object-fit: contain; }
.detail-back { display: inline-flex; align-items: center; padding-bottom: 4px; position: relative; color: var(--primary-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.detail-back::after { content: ''; width: 34px; height: 1px; position: absolute; bottom: 0; left: 0; background: currentColor; transition: width .25s ease; }
.detail-back:hover::after { width: 100%; }
.detail-hero { position: relative; overflow: hidden; background: linear-gradient(145deg, #e8f7f4 0%, #f9fcfb 53%, #f7f0e2 100%); }
.detail-hero::before, .detail-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.detail-hero::before { width: 430px; height: 430px; top: -240px; right: -80px; background: rgba(0,160,148,.1); }
.detail-hero::after { width: 280px; height: 280px; bottom: -190px; left: 8%; background: rgba(201,169,97,.12); }
.detail-hero-inner { width: min(1040px, calc(100% - 40px)); margin: auto; padding: 88px 0; display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: center; gap: 80px; }
.detail-hero-inner { position: relative; z-index: 1; }
.detail-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.detail-hero h1 { margin: 18px 0 22px; font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); line-height: 1.35; letter-spacing: .03em; }
.detail-lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 2; }
.detail-lead-emphasis { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 700; }
.phone { width: 300px; margin: auto; padding: 10px; position: relative; border-radius: 42px; background: linear-gradient(180deg,#1a1a1a,#333); box-shadow: 0 28px 70px rgba(0,0,0,.22), 0 0 0 22px rgba(255,255,255,.52); }
.phone::before { content: ''; position: absolute; top: 0; left: 50%; width: 40%; height: 28px; transform: translateX(-50%); border-radius: 0 0 24px 24px; background: #111; z-index: 2; }
.phone-inner { aspect-ratio: 390/844; overflow: hidden; border-radius: 33px; background: #fff; }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.phone-inner-balanced {
  position: relative;
  aspect-ratio: 390/780;
}
.phone-inner-balanced::after {
  content: '';
  position: absolute;
  inset: 0;
  border-width: 32px 14px;
  border-style: solid;
  border-color: #fff;
  border-radius: inherit;
  pointer-events: none;
}
.phone img.phone-screen-balanced {
  height: auto;
  transform: translateY(17px);
}
.phone-inner-ai { position: relative; aspect-ratio: 390/740; }
.phone .ai-brand-mark { position: absolute; z-index: 3; width: 8%; height: auto; object-fit: contain; }
.phone .ai-brand-header { top: 4.8%; left: 5.5%; width: 9%; filter: brightness(0) invert(1); }
.phone .ai-brand-first { top: 27.1%; left: 4.5%; }
.phone .ai-brand-second { top: 43.5%; left: 4.5%; }
.phone .ai-brand-third { top: 68.6%; left: 4.5%; }
.detail-section { padding: 88px 0; background: #fbf8f1; }
.detail-section.alt { position: relative; background: linear-gradient(180deg,#eaf7f5 0%,#f2faf8 100%); }
.detail-section:nth-of-type(3) { background: #f7faf9; }
.detail-container { width: min(1040px, calc(100% - 40px)); margin: auto; }
.detail-heading { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.detail-heading h2 { margin: 10px 0 14px; font-family: var(--serif); font-size: clamp(28px,4vw,40px); }
.detail-heading p { margin: 0; color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.benefit { padding: 30px; border: 1px solid rgba(0,118,111,.13); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 14px 36px rgba(14,70,65,.08); }
.benefit .material-icons { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: var(--primary-dark); background: rgba(0,160,148,.1); }
.benefit h3 { margin: 0 0 9px; font-size: 18px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }
.flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; counter-reset: step; }
.flow-item { position: relative; padding: 26px 24px; border-radius: 16px; background: #fff; border-top: 3px solid var(--primary); }
.flow-item:not(:last-child)::after { content: ''; position: absolute; top: 42px; right: -27px; width: 27px; height: 2px; background: rgba(0,160,148,.35); }
.flow-item::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 700; }
.flow-item h3 { margin: 0 0 8px; font-size: 17px; }
.flow-item p { margin: 0; color: var(--muted); font-size: 14px; }
.plan-note { max-width: 860px; margin: auto; padding: 34px 38px; border: 1px solid rgba(255,255,255,.28); border-left: 5px solid var(--gold); border-radius: 18px; color: #fff; background: linear-gradient(135deg,#08766f,#075b58); box-shadow: 0 18px 46px rgba(7,91,88,.18); }
.plan-note h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; }
.plan-note p { margin: 0; color: rgba(255,255,255,.82); }
.feature-page-ai .detail-hero { background: linear-gradient(145deg,#e6f6f5 0%,#f8fbfb 54%,#edf4f7 100%); }
.feature-page-ai .detail-section:first-of-type { background: #f3f8f8; }
.feature-page-recurring .detail-section:first-of-type { background: #fbf7ed; }
.feature-page-recurring .phone-inner-balanced {
  aspect-ratio: .58;
  padding: 6px;
  background: #f7f4eb;
}
.feature-page-recurring .phone-inner-balanced::after { display: none; }
.feature-page-recurring .phone img.phone-screen-balanced {
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: contain;
  object-position: center;
  background: #f7f4eb;
}
.detail-cta { padding: 80px 20px; text-align: center; color: #fff; background: linear-gradient(145deg,var(--primary),#075b58); }
.detail-cta h2 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(28px,4vw,42px); }
.detail-cta p { margin: 0 auto 28px; max-width: 680px; color: rgba(255,255,255,.86); }
.detail-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.detail-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.detail-button.secondary { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }
.detail-button:focus-visible, .detail-back:focus-visible, .detail-logo:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.detail-footer { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .detail-nav-inner { width: min(100% - 28px,1120px); min-height: 64px; }
  .detail-logo { font-size: 19px; }
  .detail-hero-inner { width: min(100% - 32px,1040px); padding: 56px 0 64px; grid-template-columns: 1fr; gap: 42px; text-align: center; }
  .detail-lead { font-size: 15px; }
  .phone { width: min(285px,82vw); }
  .detail-section { padding: 64px 0; }
  .detail-container { width: min(100% - 32px,1040px); }
  .benefit-grid, .flow { grid-template-columns: 1fr; }
  .flow-item:not(:last-child)::after { top: auto; right: auto; bottom: -27px; left: 40px; width: 2px; height: 27px; }
  .plan-note { padding: 24px; }
  .detail-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: auto; }
}
