/* Kizunatap marketing chrome + LP + /pricing + legal sheet (B12 unit M). Loads after app.css (tokens, .btn base).
   Plan B "soft flat" (goal design/reference/blinq/NEOBRUTALISM.md): structure and motion numbers from the Blinq
   reference (LAYOUT.md / MOTION.md), colours only from BRAND §2. No shadows, no gradients, no webfont request.
   Depth = ground colour difference (Milk page / Paper sheet / Blush panel) + 1px lines. One strong surface per page
   (the closing Pink band). Every motion stops under prefers-reduced-motion. */
.site {
  --mk-line: #E3DBE4;                 /* Plum ~12% on Paper (COMMON token value; P sets --line to the same) */
  --mk-amber-20: #FFF0D4;             /* Amber 20% on Paper */
  --mk-pink-15: #FEE5EE;              /* Pink 15% on Paper */
  --mk-pad-x: clamp(16px, 5vw, 96px);
  --mk-sec-t: clamp(56px, 7vw, 96px);
  --mk-sec-b: clamp(80px, 9vw, 128px);
  --mk-sheet-r: clamp(28px, 3vw, 40px);
  --mk-ease: cubic-bezier(.25, .1, .25, 1);
  font-size: 16px; line-height: 1.7;
}
.site * { box-sizing: border-box; }
.sc { max-width: 1296px; margin: 0 auto; padding-left: var(--mk-pad-x); padding-right: var(--mk-pad-x); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site h1, .site h2, .site h3 { margin: 0; font-family: var(--font-round); font-weight: 700; letter-spacing: 0; line-height: 1.32; color: var(--kz-plum); word-break: auto-phrase; text-wrap: balance; }
.site p { margin: 0; }
.site ul, .site ol { margin: 0; padding: 0; list-style: none; }

/* ---------- buttons (M1: pill -> 14px corners, 400ms linear, no colour jump) ---------- */
.site .btn {
  display: inline-flex; width: auto; min-height: 48px; padding: 12px 24px; gap: 8px;
  border-radius: 999px; border: 1px solid var(--kz-plum); background: var(--kz-paper); color: var(--kz-plum);
  font-size: 15px; font-weight: 700; line-height: 1.35; box-shadow: none;
  transition: border-radius .4s linear;
}
.site .btn:hover { border-radius: 14px; border-color: var(--kz-plum); background: var(--kz-paper); }
.site .btn.primary, .site .btn.primary:hover { background: var(--kz-rose); border-color: var(--kz-rose); color: #fff; box-shadow: none; }
.site .btn.plum, .site .btn.plum:hover { background: var(--kz-plum); border-color: var(--kz-plum); color: #fff; }
.site .btn.lg { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.site .btn:active { transform: none; }
.arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-weight: 700; color: var(--kz-rose); text-decoration: none; }
.arrow::after { content: "→"; display: inline-block; transition: transform .2s ease; }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- header (C1 / C2 adapted) ---------- */
.sh { position: sticky; top: 0; z-index: 50; background: var(--kz-milk); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.sh.scrolled { border-bottom-color: var(--mk-line); }
.sh-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.sh .brand[data-product-name], .sf-logo[data-product-name] {
  display: block; flex: none; width: 132px; min-height: 48px; padding: 0;
  background: url(/brand/logo-horizontal.svg) left center / 132px auto no-repeat;
  overflow: hidden; white-space: nowrap; text-indent: 100%; color: transparent; font-size: 16px;
}
.sh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* B24: logo / centred list of <= 6 (使い方 = details menu) / language, log in / CTA */
.sh-nav { flex: 1 1 auto; min-width: 0; }
.site .sh-list, .site .sh-panel { margin: 0; padding: 0; list-style: none; }
.sh-list { display: flex; align-items: center; gap: 2px; margin: 0 auto !important; }
.sh-list > li { display: flex; align-items: center; }
.sh-dd { position: relative; }
.sh-dd summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px; border: 1px solid transparent; border-radius: 999px;
  color: var(--kz-plum); font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; transition: border-color .25s ease-in-out;
}
.sh-dd summary::-webkit-details-marker { display: none; }
.sh-dd summary::after {
  content: ""; width: 12px; height: 12px; background: no-repeat center / 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%233A2140' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .25s ease;
}
.sh-dd summary:hover, .sh-dd details[open] summary { border-color: var(--mk-line); }
.sh-dd details[open] summary::after { transform: rotate(180deg); }
.sh-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 51; min-width: 232px; padding: 8px; background: var(--kz-paper); border: 1px solid var(--mk-line); border-radius: 16px; }
.sh-nav .sh-panel a:not(.btn):not(.lang) { display: flex; width: 100%; padding: 0 12px; border: 0; border-radius: 10px; white-space: nowrap; }
.sh-nav .sh-panel a:not(.btn):not(.lang):hover { background: var(--kz-blush); }
.sh-nav a[aria-current="page"]:not(.btn) { color: var(--kz-rose); }
.sh-list > li > a[aria-current="page"] { border-color: var(--mk-line) !important; background: var(--kz-paper); }
.sh-nav a:not(.btn):not(.lang) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px;
  color: var(--kz-plum); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .25s ease-in-out;
}
.sh-nav a:not(.btn):not(.lang):hover { border-color: var(--mk-line); }
.sh-nav .lang { margin: 0 6px; }
.sh-nav a.sh-login { white-space: nowrap; }
.sh-menu-cta { display: none !important; }
.sh-cta { flex: none; }
.sh-burger { display: none; }
.sh-burger:not([hidden]) {
  display: none; position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--mk-line);
  border-radius: 999px; background: var(--kz-paper); color: var(--kz-plum); cursor: pointer;
}
.sh-burger i, .sh-burger i::before, .sh-burger i::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.sh-burger i { top: 50%; margin-top: -1px; }
.sh-burger i::before, .sh-burger i::after { content: ""; left: 0; margin: 0; }
.sh-burger i::before { top: -6px; }
.sh-burger i::after { top: 6px; }
.sh.open .sh-burger i { background: transparent; }
.sh.open .sh-burger i::before { transform: translateY(6px) rotate(45deg); background: var(--kz-plum); }
.sh.open .sh-burger i::after { transform: translateY(-6px) rotate(-45deg); background: var(--kz-plum); }
@media (max-width: 1100px) {
  .sh-in { flex-wrap: wrap; }
  /* without JS the nav stays a row of plain links under the logo */
  .sh-nav { order: 3; width: 100%; flex-wrap: wrap; margin: 0 0 8px -14px; }
  .js .sh-in { flex-wrap: nowrap; }
  .js .sh-cta { margin-left: auto; }
  .js .sh-burger:not([hidden]) { display: inline-block; }
  .js .sh-nav {
    /* M19: full-screen menu, 400ms fade, after an 80ms beat */
    position: fixed; left: 0; right: 0; top: 68px; bottom: 0; z-index: 49; margin: 0; padding: 24px var(--mk-pad-x) calc(24px + env(safe-area-inset-bottom));
    flex-direction: column; align-items: stretch; gap: 0; width: auto; background: var(--kz-milk); border-top: 1px solid var(--mk-line);
    opacity: 0; visibility: hidden; transition: opacity .4s linear .08s, visibility 0s linear .48s; overflow-y: auto;
  }
  .js .sh.open .sh-nav { opacity: 1; visibility: visible; transition: opacity .4s linear .08s, visibility 0s; }
  .js .sh-nav a:not(.btn):not(.lang) { min-height: 64px; padding: 0; border: 0; border-bottom: 1px solid var(--mk-line); border-radius: 0; font-family: var(--font-round); font-size: 24px; font-weight: 700; }
  .js .sh-nav .lang { align-self: flex-start; margin: 20px 0 0; }
  .js .sh-menu-cta { display: inline-flex !important; width: 100%; margin-top: auto; }
  /* B24: the list stacks; 使い方 is an open group (site.js opens the details with the menu) with its 4 links indented */
  .js .sh-nav { flex-wrap: nowrap; }
  .js .sh-list { flex: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0 !important; }
  .js .sh-nav .sh-list > li > a:not(.btn):not(.lang) { display: flex; min-height: 56px; }
  .js .sh-dd summary { display: flex; min-height: 56px; padding: 18px 0 6px; border: 0; border-radius: 0; color: var(--kz-mauve); font-size: 14px; font-weight: 700; pointer-events: none; }
  .js .sh-dd summary::after { display: none; }
  .js .sh-panel { position: static; min-width: 0; padding: 0 0 0 16px; border: 0; border-radius: 0; background: none; }
  .js .sh-nav .sh-panel a:not(.btn):not(.lang) { min-height: 56px; padding: 0; border-bottom: 1px solid var(--mk-line); border-radius: 0; font-size: 20px; }
  .js .sh-nav .sh-panel a:not(.btn):not(.lang):hover { background: none; }
  .js .sh-list > li > a[aria-current="page"] { background: none; }
  .js .sh-nav a.sh-login:not(.btn):not(.lang) { min-height: 48px; margin-top: 8px; border-bottom: 0; font-family: inherit; font-size: 17px; }
  .js .sh-nav .sh-menu-cta { margin-top: 16px; }
}
@media (max-width: 420px) { .sh .brand[data-product-name] { width: 112px; background-size: 112px auto; } .sh-cta { padding: 10px 16px !important; font-size: 14px !important; } }
.sh-lock { overflow: hidden; }

/* ---------- sections: rounded paper sheets stacked on the page ground ---------- */
.sec { position: relative; padding: var(--mk-sec-t) 0 var(--mk-sec-b); background: var(--kz-milk); }
.sec.sheet { background: var(--kz-paper); border-radius: var(--mk-sheet-r) var(--mk-sheet-r) 0 0; margin-top: calc(-1 * var(--mk-sheet-r)); }
.sec.sheet.milk { background: var(--kz-milk); }
.sec-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 44px); }
.sec-head p { margin-top: 14px; font-size: clamp(16px, 1.3vw, 18px); color: var(--kz-mauve); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 12px; border-radius: 8px; background: var(--kz-blush); color: var(--kz-rose); font-size: 13px; font-weight: 700; line-height: 20px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kz-amber); }

/* ---------- FAQ (C13 adapted: 2 columns, rounded rows, animated chevron) ---------- */
.site .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(14px, 2vw, 28px); align-items: start; border: 0; }
.site .faq details { background: var(--kz-paper); border: 1px solid var(--mk-line); border-radius: 16px; }
.sheet:not(.milk) .faq details { background: var(--kz-milk); }
.site .faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 18px 14px 22px;
  font-size: 16px; line-height: 1.55; font-weight: 700; list-style: none; cursor: pointer;
}
.site .faq summary::-webkit-details-marker { display: none; }
.site .faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--kz-blush) no-repeat center / 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23BE1F60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .35s ease; border: 0; margin: 0;
}
.site .faq details[open] summary::after { transform: rotate(180deg); }
.site .faq details p { padding: 0 22px 20px; font-size: 15px; line-height: 1.8; color: var(--kz-mauve); }

/* ---------- closing band: the page's one strong surface (Pink, Plum text >= 24px bold or Plum button) ---------- */
.band { position: relative; margin-top: calc(-1 * var(--mk-sheet-r)); padding: clamp(64px, 8vw, 112px) 0 calc(clamp(64px, 8vw, 112px) + var(--mk-sheet-r)); background: var(--kz-pink); border-radius: var(--mk-sheet-r) var(--mk-sheet-r) 0 0; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.band h2 { font-size: clamp(28px, 3.6vw, 52px); color: var(--kz-plum); }
.band .band-p { margin-top: 10px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; color: var(--kz-plum); }
.band .actions { display: flex; margin: 0; }
.band .btn.primary, .band .btn.primary:hover { background: var(--kz-plum); border-color: var(--kz-plum); color: #fff; }
.band .btn small { color: #fff; }

/* ---------- footer (B24): Plum ground, on-dark logo, 4 columns + language / rights. Text = Paper / Blush only (>= 4.5:1
   on Plum); hover = underline, never a colour (Rose / Pink fail on Plum). ---------- */
.sf { position: relative; margin-top: calc(-1 * var(--mk-sheet-r)); padding: clamp(48px, 6vw, 80px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--kz-plum); color: var(--kz-paper); border-radius: var(--mk-sheet-r) var(--mk-sheet-r) 0 0; font-size: 14px; }
.sf-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; }
.sf-logo[data-product-name] { width: 148px; background-image: url(/brand/logo-horizontal-on-dark.svg); background-size: 148px auto; }
.sf-tag { margin-top: 16px; font-family: var(--font-round); font-size: 18px; font-weight: 700; color: var(--kz-paper); }
.sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sf-h { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--kz-blush); }
.sf-cols a { display: flex; align-items: center; min-height: 40px; color: var(--kz-paper); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.sf-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site .sf-txt { padding: 9px 0; color: var(--kz-blush); line-height: 1.6; overflow-wrap: anywhere; }
.sf-bot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--kz-mauve); }
.site .sf-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--kz-blush); font-size: 13px; }
.sf-lang a { display: inline-flex; align-items: center; min-height: 40px; color: var(--kz-paper); font-weight: 600; text-decoration: none; }
.sf-lang a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site .sf-op { color: var(--kz-blush); font-size: 13px; }
.sf a:focus-visible { outline: 2px solid var(--kz-paper); outline-offset: 2px; }

/* ---------- legal sheet (/terms, /privacy): readable column on Milk ---------- */
.legal { padding: clamp(24px, 4vw, 56px) 0 calc(var(--mk-sec-b) + var(--mk-sheet-r)); }
.legal-sheet { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 56px); background: var(--kz-paper); border: 1px solid var(--mk-line); border-radius: var(--mk-sheet-r); }
.legal-sheet .page-h { margin-top: 0; font-family: var(--font-round); font-size: clamp(28px, 3vw, 40px); }
.legal-sheet .section > h2 { font-family: var(--font-round); }

/* ---------- reveal on scroll (fade + 12px up, 500ms ease-out, once). Hidden only when JS is running. ---------- */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .tile.rv.in { transition: opacity .5s ease-out, transform .35s ease; transition-delay: var(--d, 0ms), 0ms; }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .site .faq { grid-template-columns: 1fr; }
  .sf-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .actions, .band .btn { width: 100%; }
}

/* ---------- reduced motion: every animation and transition above off, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
