/* Kamae — product site. Quiet, Mac-native. Paper + ink + the icon's teal; the menu-bar dot carries the only loud colors. */
:root {
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --ink: #141c1b;
  --ink-2: #4c5553;
  --ink-3: #858d8a;
  --rule: rgba(20, 28, 27, 0.12);
  --teal: #1a9a8a;
  --teal-2: #3cc2b0;
  --deep: #0c3a41;
  --deep-2: #0f4a52;
  --good: #34c759;
  --warn: #ffcc00;
  --bad: #ff3b30;
  --radius: 18px;
  --display: 'Instrument Serif', 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;
  --body: 'Geist', 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ja) body, body:lang(ja) { font-size: 16px; line-height: 1.85; letter-spacing: 0.02em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* grain — barely there, keeps the paper from looking like a flat #fff */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; line-height: 1; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.lang { font-size: 13px; color: var(--ink-3); text-decoration: none; border: 1px solid var(--rule); padding: 4px 10px; border-radius: 99px; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-sm { font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  font: 500 16px/1 var(--body); text-decoration: none;
  transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 24px -10px rgba(20,28,27,.5); }
.btn-primary:hover { background: #26302e; }
.btn-ghost { color: var(--ink); border: 1px solid var(--rule); background: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; }
.btn small { font-size: 13px; opacity: .6; font-weight: 400; }
.top .btn { padding: 8px 14px; font-size: 14px; border-radius: 9px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h1 {
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.02; letter-spacing: 0.005em;
  margin: 22px 0 26px;
}
h1 em, h2 em { font-style: italic; color: var(--teal); }
h1, h2 { text-wrap: balance; }
:lang(ja) h1 { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.3; letter-spacing: 0.01em; font-weight: 500; }
/* 日本語の見出しは文節で折り返す。明朝に斜体は無い（疑似斜体になる）ので、強調は色だけにする */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; text-wrap: balance; }
:lang(ja) h1 em, :lang(ja) h2 em { font-style: normal; }
:lang(ja) h2 { font-weight: 500; }
:lang(ja) .step .n { font-style: italic; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 32em; margin: 0 0 34px; }
:lang(ja) .lead { font-size: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span::before { content: '·'; margin-right: 16px; }
.fine span:first-child::before { content: none; }

/* stage: the popover screenshot alone. Good → slumped → good, cross-faded */
.stage { position: relative; display: flex; justify-content: center; }
.pop { position: relative; width: 340px; max-width: 100%; }
/* good と bad は高さが数 px 違う（状態の文言が違う）ので、枠ではなく画像ごとに角丸と影を付けて上揃えで重ねる */
.pop img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 0 120px 10px rgba(60, 194, 176, .22), 0 40px 80px -30px rgba(12,58,65,.55), 0 12px 24px -12px rgba(12,58,65,.25), 0 0 0 .5px rgba(0,0,0,.2);
}
.pop .bad { position: absolute; top: 0; left: 0; opacity: 0; animation: popbad 9s infinite; }
@keyframes popbad { 0%, 44% { opacity: 0; } 50%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pop .bad { animation: none; } }

/* ---------- sections ---------- */
section { padding: 110px 0; }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
h2 { font-family: var(--display); font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; letter-spacing: 0.01em; max-width: 16em; }
:lang(ja) h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; letter-spacing: 0; }
.sub { color: var(--ink-2); max-width: 36em; margin: 20px 0 0; font-size: 18px; }
:lang(ja) .sub { font-size: 16px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--rule); }
.step { padding: 32px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--rule); }
.step .n { font-family: var(--display); font-style: italic; font-size: 54px; line-height: 1; color: var(--teal); }
.step h3 { font-size: 20px; font-weight: 600; margin: 18px 0 10px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.legend { display: inline-flex; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.legend b { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* privacy band */
.privacy { background: var(--deep); color: #e6efed; position: relative; overflow: hidden; }
.privacy::after {
  content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(60,194,176,.22), transparent);
}
.privacy .kicker { color: var(--teal-2); }
.privacy h2 em { color: var(--teal-2); }
.privacy .sub { color: #a9c3bf; }
.pgrid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 60px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.pgrid div { background: var(--deep); padding: 34px 34px 30px; }
.pgrid h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.pgrid p { margin: 0; color: #a9c3bf; font-size: 16px; }
.pgrid .mono { font-family: var(--mono); font-size: 13px; color: var(--teal-2); display: block; margin-top: 14px; }

/* features */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 80px; }
.feat.flip .shot { order: -1; }
.feat h3 { font-family: var(--display); font-size: 36px; line-height: 1.15; letter-spacing: 0.01em; }
:lang(ja) .feat h3 { font-size: 28px; line-height: 1.4; }
.feat p { color: var(--ink-2); margin: 16px 0 0; }
.shot { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 60px -30px rgba(12,58,65,.35), 0 0 0 1px var(--rule); }
.shot.narrow { max-width: 400px; justify-self: center; border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(26,154,138,.1); color: var(--deep-2); }

.minor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--rule); }
.minor h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.minor p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* pricing */
.pricing { background: var(--paper-2); }
.price-card {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0;
  background: #fbfaf7; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(12,58,65,.35), 0 0 0 1px var(--rule);
}
.price-l { padding: 48px; border-right: 1px solid var(--rule); }
.amount { font-family: var(--display); font-size: 104px; line-height: .9; letter-spacing: 0; }
.amount sup { font-size: 34px; vertical-align: top; position: relative; top: 14px; margin-right: 4px; font-family: var(--body); font-weight: 400; color: var(--ink-3); }
.per { color: var(--ink-2); margin: 14px 0 30px; }
.price-l .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.yen { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.price-r { padding: 48px; }
.price-r ul { list-style: none; margin: 0; padding: 0; }
.price-r li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--rule); position: relative; }
.price-r li:last-child { border-bottom: none; }
.price-r li::before { content: ''; position: absolute; left: 0; top: 23px; width: 16px; height: 9px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.price-r li b { font-weight: 600; }
.price-r li span { display: block; font-size: 14px; color: var(--ink-3); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 500; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 300 28px/1 var(--body); color: var(--ink-3); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* closing */
.closing { text-align: center; padding: 140px 0; }
.closing img { width: 96px; margin: 0 auto 30px; filter: drop-shadow(0 20px 30px rgba(12,58,65,.3)); }
.closing h2 { margin: 0 auto; }
.closing .cta { justify-content: center; margin-top: 36px; }

footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .right { margin-left: auto; display: flex; gap: 22px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.hero .rv:nth-child(2) { transition-delay: .08s; }
.hero .rv:nth-child(3) { transition-delay: .16s; }
.hero .rv:nth-child(4) { transition-delay: .24s; }
.hero .rv:nth-child(5) { transition-delay: .32s; }
.stage.rv { transition-delay: .2s; transition-duration: 1.3s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* language hint */
.hint { display: none; background: var(--deep); color: #fff; font-size: 14px; text-align: center; padding: 9px 16px; }
.hint.on { display: block; }
.hint a { color: var(--teal-2); margin-left: 8px; }
.hint button { background: none; border: 0; color: #a9c3bf; cursor: pointer; margin-left: 12px; font: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .feat, .faq, .price-card { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .feat.flip .shot { order: 0; }
  .feat { gap: 36px; margin-top: 64px; }
  .pop { width: 300px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: none; }
  .step + .step { border-top: 1px solid var(--rule); }
  .pgrid { grid-template-columns: 1fr; }
  .minor { grid-template-columns: 1fr 1fr; }
  .price-l { border-right: none; border-bottom: 1px solid var(--rule); }
  .price-l, .price-r { padding: 32px 24px; }
  .top nav a:not(.keep) { display: none; }
  section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .minor { grid-template-columns: 1fr; }
  .amount { font-size: 84px; }
  .top .wrap { gap: 14px; }
  .top nav { gap: 14px; }
}

/* ---------- legal pages (privacy) ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal .back { display: inline-block; font-size: 14px; color: var(--ink-3); text-decoration: none; margin-bottom: 28px; }
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 24px; }
:lang(ja) .legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-family: var(--body); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 12px; max-width: none; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); }
.legal a { color: var(--teal); }

/* ---------- download page ---------- */
.dl { padding: 72px 0 110px; }
.dl .wrap { max-width: 980px; }
.dl-icon { width: 88px; height: 88px; margin-bottom: 28px; filter: drop-shadow(0 16px 24px rgba(12,58,65,.28)); }
.dl h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 18px; }
:lang(ja) .dl h1 { font-size: clamp(30px, 4vw, 46px); }
.dl .sub { margin: 0 0 64px; }
.dl .sub a { color: var(--teal); }
.dl .steps { margin-top: 20px; }
.dl-note { margin-top: 48px; font-size: 14px; color: var(--ink-3); }
