/* getkiseki.com · black and white only. Hierarchy from opacity, weight and size (like the app). */

@font-face { font-family: "Manrope"; src: url("/fonts/manrope-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #f3f3f1;
  --paper-2: #e9e9e6;
  --ink: 13 13 13;
  --dark: #101010;
  --dark-2: #0a0a0a;
  --on-dark: 245 245 243;
  --radius: 8px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101010;
    --paper-2: #181818;
    --ink: 245 245 243;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { --paper: #101010; --paper-2: #181818; --ink: 245 245 243; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: rgb(var(--ink));
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(ja) { --font: "Manrope", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; }
:lang(ko) { --font: "Manrope", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
:lang(zh-Hans) { --font: "Manrope", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(zh-Hant) { --font: "Manrope", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) body { line-height: 1.8; }
:is(:lang(ja), :lang(zh-Hans), :lang(zh-Hant)) :is(h1, h2, h3, .lede) { word-break: auto-phrase; line-break: strict; letter-spacing: 0.01em; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: rgb(var(--ink)); color: var(--paper); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgb(var(--ink) / 0.55); margin-bottom: 18px;
}
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) .eyebrow { letter-spacing: 0.08em; font-size: 13px; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; }
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) .h2 { letter-spacing: 0; line-height: 1.3; max-width: 22em; font-size: clamp(28px, 3.8vw, 46px); }
.h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 12px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgb(var(--ink) / 0.72); max-width: 36em; margin-top: 22px; }
.fine { font-size: 14px; color: rgb(var(--ink) / 0.55); margin-top: 20px; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--dark) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
  color: rgb(var(--on-dark));
  border-bottom: 1px solid rgb(var(--on-dark) / 0.08);
}
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.brand .mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: rgb(var(--on-dark) / 0.66); transition: color 0.2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: rgb(var(--on-dark)); }

.lang { position: relative; font-size: 14px; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius); border: 1px solid rgb(var(--on-dark) / 0.16);
  color: rgb(var(--on-dark) / 0.8); font-weight: 500;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 16px; height: 16px; }
.lang[open] summary, .lang summary:hover { border-color: rgb(var(--on-dark) / 0.4); color: rgb(var(--on-dark)); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: #1a1a1a; border: 1px solid rgb(var(--on-dark) / 0.12); border-radius: 12px;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.6);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: rgb(var(--on-dark) / 0.75); }
.lang li a:hover { background: rgb(var(--on-dark) / 0.08); color: rgb(var(--on-dark)); }
.lang li a[aria-current] { color: rgb(var(--on-dark)); font-weight: 600; }

/* ---------- Hero (always dark: the app's hero look) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 75% 40%, #1b1b1b 0%, var(--dark) 55%, var(--dark-2) 100%);
  color: rgb(var(--on-dark));
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
}
.hero .eyebrow { color: rgb(var(--on-dark) / 0.55); }
.hero .lede { color: rgb(var(--on-dark) / 0.72); }
.hero-trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero-trail path {
  fill: none; stroke: rgb(var(--on-dark) / 0.09); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4.5s cubic-bezier(.45, 0, .2, 1) 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: 1; letter-spacing: -0.035em; }
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) .hero h1 { font-size: clamp(29px, 5.6vw, 68px); line-height: 1.22; letter-spacing: 0; }
.hero-sub h1 { font-size: clamp(42px, 6.2vw, 80px); }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { width: min(340px, 72vw); animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.cta-note { font-size: 14px; color: rgb(var(--on-dark) / 0.5); }
.store { display: inline-block; line-height: 0; }
.store img { height: 45px; width: auto; }
.store-lg img { height: 56px; }

/* ---------- Phone frame ---------- */
.phone {
  margin: 0; aspect-ratio: 1320 / 2868; padding: 2.4%;
  background: #050505; border-radius: 15.5% / 7.2%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.13), inset 0 0 0 1px rgb(255 255 255 / 0.05), 0 50px 90px -30px rgb(0 0 0 / 0.75);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13.4% / 6.2%; background: #101010; }

/* ---------- Name ---------- */
.name-strip { padding: clamp(72px, 9vw, 120px) 0 0; text-align: center; }
.name-strip .narrow { margin-inline: auto; }
.kanji { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: 64px; line-height: 1; letter-spacing: 0.1em; color: rgb(var(--ink) / 0.9); margin-bottom: 24px; }
.name-strip h2 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--ink) / 0.55); margin-bottom: 18px; }
.name-strip p { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; color: rgb(var(--ink) / 0.8); max-width: 34em; margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0 0; }
.section:last-of-type { padding-bottom: clamp(72px, 10vw, 140px); }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgb(var(--ink) / 0.14); border-bottom: 1px solid rgb(var(--ink) / 0.14); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 32px 28px 36px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgb(var(--ink) / 0.14); }
.steps h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 10px; }
.steps p { color: rgb(var(--ink) / 0.68); }

.showcase { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: clamp(72px, 10vw, 140px); }
.show { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 7vw, 100px); }
.show.flip .show-copy { order: 2; }
.show-copy { max-width: 30em; }
.show h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) .show h3 { letter-spacing: 0; line-height: 1.35; font-size: clamp(24px, 2.6vw, 34px); }
.show p { font-size: 18px; color: rgb(var(--ink) / 0.7); }
.show-phone { display: flex; justify-content: center; padding: clamp(24px, 4vw, 56px) 0; background: radial-gradient(closest-side, rgb(var(--ink) / 0.07), transparent); }
.show-phone .phone { width: min(320px, 70vw); }

.grid { list-style: none; padding: 0; margin: clamp(64px, 9vw, 120px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); border-bottom: 1px solid rgb(var(--ink) / 0.14); }
.grid li { padding: 28px 0 36px; border-top: 1px solid rgb(var(--ink) / 0.14); }
.grid .icon { width: 26px; height: 26px; margin-bottom: 22px; color: rgb(var(--ink) / 0.85); }
.grid h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.005em; }
.grid p { color: rgb(var(--ink) / 0.66); font-size: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.25s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Walk me home band (always dark) ---------- */
.band { margin-top: clamp(80px, 11vw, 160px); background: var(--dark-2); color: rgb(var(--on-dark)); padding: clamp(72px, 10vw, 130px) 0; }
.band .eyebrow, .band .fine { color: rgb(var(--on-dark) / 0.5); }
.band .lede { color: rgb(var(--on-dark) / 0.72); }
.band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.band-phone { display: flex; justify-content: center; }
.band-phone .phone { width: min(320px, 70vw); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; opacity: 0.85; }

/* ---------- Kiseki+ ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.plan { border: 1px solid rgb(var(--ink) / 0.16); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.plan h3 { font-size: 24px; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; color: rgb(var(--ink) / 0.8); }
.plan li .icon { width: 20px; height: 20px; margin-top: 3px; }
.plan-plus { background: rgb(var(--ink)); color: var(--paper); border-color: transparent; }
.plan-plus li { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.fine.center { margin-inline: auto; max-width: 40em; margin-top: 28px; }

/* ---------- Facts ---------- */
.facts { margin: 48px 0 0; border-top: 1px solid rgb(var(--ink) / 0.14); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgb(var(--ink) / 0.14); }
.facts dt { font-weight: 600; font-size: 15px; color: rgb(var(--ink) / 0.55); }
.facts dd { margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid rgb(var(--ink) / 0.14); }
.faq details { border-bottom: 1px solid rgb(var(--ink) / 0.14); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.faq summary .icon { width: 20px; height: 20px; transition: transform 0.3s; opacity: 0.6; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 40px 26px 0; color: rgb(var(--ink) / 0.7); }

/* ---------- Final ---------- */
.final { padding: clamp(96px, 12vw, 170px) 0; text-align: center; }
.final .mark { width: 52px; height: 52px; margin: 0 auto 36px; }
.final .h2 { margin-inline: auto; }
.final .lede { margin: 18px auto 36px; }

/* ---------- Sub pages ---------- */
.page-head { padding: clamp(72px, 10vw, 130px) 0 0; }
.page-head h1, .legal h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) :is(.page-head h1, .legal h1) { letter-spacing: 0; line-height: 1.3; }
.page-head .mark { width: 52px; height: 52px; margin: 0 auto 32px; }
.page-head.center .lede { margin-inline: auto; }
.contact { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.01em; }
.contact span { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(var(--ink) / 0.5); }
.two-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 64px); }
.two-col p { color: rgb(var(--ink) / 0.72); }
.notice { margin-top: 56px; padding: 20px 24px; border: 1px solid rgb(var(--ink) / 0.2); border-radius: var(--radius); font-size: 15px; color: rgb(var(--ink) / 0.8); }

.legal { padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 10vw, 140px); }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin: 52px 0 14px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: rgb(var(--ink) / 0.78); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal .summary { margin-top: 36px; padding: 24px 28px; border-radius: var(--radius); background: var(--paper-2); }
.legal .summary p { color: rgb(var(--ink) / 0.9); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid rgb(var(--ink) / 0.14); }
.legal th { font-weight: 600; color: rgb(var(--ink) / 0.6); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.foot { background: var(--dark-2); color: rgb(var(--on-dark) / 0.7); padding: 72px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot .brand { color: rgb(var(--on-dark)); margin-bottom: 14px; }
.foot-brand p { margin-bottom: 22px; }
.foot h2 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(var(--on-dark) / 0.45); margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: rgb(var(--on-dark)); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(var(--on-dark) / 0.1); display: grid; gap: 6px; font-size: 13px; color: rgb(var(--on-dark) / 0.42); }

/* ---------- Language suggestion ---------- */
.langbar {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px; border-radius: 12px; font-size: 14px;
  background: #1a1a1a; color: rgb(var(--on-dark)); border: 1px solid rgb(var(--on-dark) / 0.14);
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.5);
}
.langbar[hidden] { display: none; }
.langbar p { color: rgb(var(--on-dark) / 0.7); }
.langbar a { font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 6px; background: rgb(var(--on-dark)); color: #0d0d0d; white-space: nowrap; }
.langbar button { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: rgb(var(--on-dark) / 0.6); font-size: 18px; }
.langbar button:hover { color: rgb(var(--on-dark)); background: rgb(var(--on-dark) / 0.08); }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-4 li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps-4 li:nth-child(n + 3) { border-top: 1px solid rgb(var(--ink) / 0.14); }
  .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-grid, .band-grid, .show, .plans { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 8px; }
  .show.flip .show-copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 28px; border-left: 0; }
  .steps li + li { border-top: 1px solid rgb(var(--ink) / 0.14); }
  .steps-4 li:nth-child(n + 3) { margin-top: 0; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .faq details p { padding-right: 0; }
  .kanji { font-size: 52px; }
  .langbar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-trail path { stroke-dashoffset: 0; }
}

/* Uppercase only helps Latin scripts; in CJK it just breaks words like iPhone. */
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) :is(.eyebrow, .name-strip h2, .foot h2, .contact span) { text-transform: none; }

.store { flex: none; }
@media (max-width: 720px) {
  /* The deliberate line break only suits wide screens. */
  :not(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) > .hero h1 br, .hero h1:not(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) br { display: none; }
}
/* CJK headlines already break by phrase; balancing splits the second line needlessly. */
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) .hero h1 { text-wrap: wrap; }
