
/* ===== Pro Theme: Designer-Polished =======================================
   Goals: readability, hierarchy clarity, modern spacing, accessible contrast.
============================================================================= */
:root{
  /* Palette */
  --brand: #d81b60;         /* cooler magenta-red (AA capable on white at bold sizes) */
  --brand-700:#b1174f;
  --ink:#0e1320;            /* body text */
  --ink-2:#374151;          /* secondary */
  --muted:#6b7280;          /* tertiary */
  --line:#e6e8ef;           /* subtle separators */
  --bg:#ffffff;
  --bg-alt:#f6f8fb;
  --blue1:#0d6efd;          /* accents (links/tags) */
  --blue2:#0a58ca;
  --pill-bg:#ffffff;
  --pill-border:#e7eaf1;
  --pill-shadow:0 6px 18px rgba(2,10,28,.06);

  /* Rhythm & scale */
  --maxw: 1120px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  --gap: clamp(var(--space-3), 2.4vw, var(--space-6));
  --section-pad: clamp(var(--space-7), 7vw, var(--space-9));

  /* Corners & shadows */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(8,15,35,.12);
  --shadow-md: 0 10px 30px rgba(8,15,35,.12);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
/* Base typography: Inter for Latin, Noto Sans JP for Japanese */
body{
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.74;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  letter-spacing: .01em;
}

h1,h2,h3{line-height:1.18;margin:0 0 .55em;color:#0b1220}
/* Fluid type with clamps chosen for readability */
h1{font-weight:900; font-size:clamp(28px, 5.2vw, 44px); letter-spacing:.005em}
h2{font-weight:800; font-size:clamp(22px, 3.4vw, 30px); letter-spacing:.004em}
h3{font-weight:800; font-size:clamp(18px, 2.3vw, 22px); letter-spacing:.002em}
.lead{font-size:clamp(16px, 2.1vw, 18px); color:var(--ink-2)}
.small{font-size:.95rem; color:var(--muted)}

a{color:var(--blue1); text-decoration:none}
a:hover{text-decoration:underline}

.container{width:min(100% - 32px, var(--maxw)); margin-inline:auto}
.section{padding-block:var(--section-pad)}
.section--alt{background:var(--bg-alt)}

/* Header */
.header{background:#fff; border-bottom:1px solid var(--line)}
.header .inner{display:flex; align-items:center; justify-content:space-between; padding:var(--space-3) 0}
.brand{display:flex; align-items:center; gap:var(--space-2); font-weight:900; letter-spacing:.03em}
.brand img{height:40px}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  border-radius:999px; padding:12px 22px; font-weight:800;
  border:1px solid var(--brand); background:var(--brand); color:#fff;
  box-shadow:var(--shadow-sm); transition:transform .06s ease, box-shadow .2s ease, background .15s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow-md); background:var(--brand-700)}
.btn--outline{background:#fff; color:var(--brand)}
.btn--lg{font-size:clamp(15px, 2.1vw, 17px)}

/* Hero (cleaner) */
.hero{background:linear-gradient(180deg, #2066d1 0%, #103a8c 60%, #0b296a 100%); color:#fff; position:relative}
.hero .container{display:grid; grid-template-columns:1.05fr .95fr; gap:var(--gap); align-items:center}
@media(max-width: 980px){ .hero .container{grid-template-columns:1fr} }
.hero .kicker{display:inline-block; font-weight:800; letter-spacing:.06em; opacity:.92}
.hero .title{margin:.2em 0}
.hero .kpis{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.hero .pill{background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); color:#fff; padding:8px 12px; border-radius:999px; font-weight:800}
.hero .cta-row{display:flex; flex-wrap:wrap; gap:12px; margin-top:16px}
.hero .kv{position:relative; min-height:360px}
.hero .kv .hero-bg-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:var(--radius-lg); opacity:.15}
.hero .kv .hero-kv-img{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:min(92%, 720px); filter:drop-shadow(0 20px 40px rgba(0,0,0,.3))}

/* Problem (pills right) */
.section.problem.section--alt{ background:#f2f6f8; }
.problem .problem-ttl{position:relative; text-align:center; margin-bottom:var(--space-5); color:#0b1220}
.problem .problem-ttl::after{content:""; display:block; width:170px; height:4px; background:#cfd6d9; margin:12px auto 0; border-radius:6px}
.problem .grid{display:grid; grid-template-columns: .9fr 1.1fr; gap:var(--gap); align-items:center}
@media(max-width: 980px){ .problem .grid{grid-template-columns:1fr} }
.problem .visual img{width:min(400px, 100%); display:block; border:none; box-shadow:none}
.problem .list{display:grid; gap:var(--space-3); list-style:none; padding:0; margin:0; max-width:640px}
.problem .pill{display:flex; align-items:center; gap:14px; background:var(--pill-bg); border:1px solid var(--pill-border); border-radius:24px; padding:14px 18px; box-shadow: var(--pill-shadow)}
.problem .pill-ico{width:36px; height:36px; object-fit:contain}
.problem .pill-txt{color:var(--brand); font-weight:800; letter-spacing:.01em; line-height:1.6}

/* About */
.about .stack{display:grid; gap:10px; margin-bottom:18px}
.about .ttl{position:relative; text-align:center}
.about .ttl::after{content:""; display:block; width:200px; height:4px; background:#1652a8; margin:10px auto 0; border-radius:4px}
.about .lead{color:var(--ink-2); font-weight:700; text-align:center}
.about .visual-wide{display:grid; place-items:center}
.about .visual-wide img{width:min(100%, 980px); border-radius:12px; box-shadow: var(--shadow-md)}

/* Mid CTA */
.band{background:linear-gradient(180deg, #1f7ae0 0%, #1652a8 100%); color:#fff; border-radius:16px; padding:24px; text-align:center; box-shadow: var(--shadow-sm)}
.band .title{font-weight:900; letter-spacing:.015em; margin-bottom:10px}
.band .row{display:flex; gap:12px; flex-wrap:wrap; justify-content:center}

/* Benefits circles */
.benefits .grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap)}
@media(max-width:900px){.benefits .grid{grid-template-columns:1fr}}
.benefit{display:grid; place-items:center; gap:10px; text-align:center}
.benefit .circle{width:136px; height:136px; border-radius:50%; border:4px solid #bcd8ff; background:#eaf3ff; display:grid; place-items:center; font-weight:900; font-size:28px; color:#1f5f99}
.benefit .txt{font-weight:800}

/* Steps */
.steps .flow{display:grid; gap:var(--gap)}
.step{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px; box-shadow: var(--shadow-sm)}
.step .head{display:flex; gap:10px; align-items:center; justify-content:space-between}
.step .left{display:flex; gap:10px; align-items:center}
.step .id{background:#ff6ea3; color:#fff; border-radius:999px; padding:4px 10px; font-weight:800}
.step .tag{background:#ff6ea3; color:#fff; border-radius:999px; padding:4px 10px; font-weight:800}

/* FAQ */
.faq .items{display:grid; gap:12px}
.faq details{background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 14px}
.faq summary{cursor:pointer; font-weight:850; list-style:none}
.faq summary::-webkit-details-marker{display:none}

/* Footer */
.footer{border-top:1px solid var(--line); color:#6b7280; padding:26px 0; text-align:center}


/* === Designer pass v2: problem visual smaller & grid ratio tweak ========== */
.problem .grid{
  grid-template-columns: 0.74fr 1.26fr; /* widen right side like reference */
}
.problem .visual img{
  max-width: 300px; /* was 400px; reduce to match screenshot ratio */
}
@media (max-width: 980px){
  .problem .visual img{ max-width: 62%; }
}
/* tighten pill vertical rhythm slightly */
.problem .list{ gap: 14px; }
.problem .pill{ padding: 12px 16px; border-radius: 22px; }
.problem .pill-ico{ width: 32px; height: 32px; }
.problem .pill-txt{ font-size: 0.98rem; }



/* === Readability pass: hero contrast & remove KV background ================= */
.hero{ color:#fff; }
.hero .title, .hero .kicker, .hero .lead{ color:#fff; }
.hero .title{ text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero .lead{ color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.18); }

/* Remove any visual background behind right KV image */
.hero .kv{ background: none !important; box-shadow: none !important; }
.hero .kv .hero-bg-img{ display: none !important; }
.hero .kv .hero-kv-img{ border-radius: 0; } /* image itself only */

/* KPI pills on dark background: lighten borders for legibility */
.hero .pill{ border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.14); }



/* === Pro v4: holistic polish ============================================ */
/* 1) Hero: improve readability & KV white panel */
.hero { color:#fff; }
.hero .title { color:#fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero .lead { color:rgba(255,255,255,.95); text-shadow: 0 1px 3px rgba(0,0,0,.18); }
.hero .kicker { color:rgba(255,255,255,.95); opacity:.92; }
.hero .kv{ background:#fff !important; border-radius:12px; padding:18px; box-shadow: 0 10px 36px rgba(10,30,60,.12); }
.hero .kv .hero-bg-img{ display:none !important; }
.hero .kv .hero-kv-img{ position:relative; inset:auto; transform:none; width:100%; max-width:560px; filter:none; display:block; margin:0 auto; }

/* KPI pills on dark */
.hero .pill{ border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.16); }

/* 2) Problem: balance left image ratio (already smaller in v2) */
.problem .visual img{ max-width: 280px; } /* slightly smaller */
@media (max-width: 980px){ .problem .visual img{ max-width: 58%; }}

/* 3) Benefits: refined scale & hierarchy */
.benefits .grid{ align-items: start; }
.benefit .circle{ width: 72px; height: 72px; border:2px solid #a5c9f7; background:#f5f9ff; }
.benefit .circle{ font-size: 18px; font-weight: 700; color:#1a3e72; }
.benefit .txt{ font-size: 15.5px; line-height:1.65; color:#222; max-width: 260px; margin-inline:auto; }

/* 4) Buttons: increase contrast & focus styles */
.btn{ box-shadow: 0 2px 10px rgba(10,20,40,.12); }
.btn:focus{ outline: 3px solid rgba(216,27,96,.3); outline-offset: 2px; }
.btn--outline{ border-color: var(--brand); }
.btn--lg{ font-size: clamp(15px, 2vw, 17px); }

/* 5) Headings & spacing rhythm */
h1{ letter-spacing: .003em; }
h2{ letter-spacing: .002em; }
.section{ padding-block: calc(var(--section-pad) - 8px); }
.section.problem.section--alt{ padding-block: calc(var(--section-pad) - 6px); }
.section.about.section--alt{ padding-top: calc(var(--section-pad) - 10px); }

/* 6) Card consistency (steps/faq) */
.step{ border-radius: 12px; box-shadow: 0 6px 20px rgba(10,30,60,.08); }
.faq details{ border-radius: 12px; }

/* 7) Accessibility: link color & hover */
a{ color:#136fe0; }
a:hover{ color:#0d56b0; text-decoration: underline; }

