/* Hareyaka site. Tokens follow the app's redesign: paper / ink / indigo / dawn amber. */
:root {
  --paper: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #17181C;
  --muted: #5E6068;
  --line: #E1DDD3;
  --indigo: #1B2340;
  --indigo-ink: #F3F1EC;
  --amber: #E8A657;
  --celadon: #3F8A6E;
  --link: #34508C;
  --soft: #E9E6DE;
  --serif: "New York", "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang SC", "Noto Sans JP", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121318; --surface: #1A1C23; --ink: #EDEBE6; --muted: #A2A3AB; --line: #2A2D36;
    --indigo: #1B2340; --indigo-ink: #F3F1EC; --link: #9DB3E8; --soft: #20232C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121318; --surface: #1A1C23; --ink: #EDEBE6; --muted: #A2A3AB; --line: #2A2D36;
  --indigo: #1B2340; --indigo-ink: #F3F1EC; --link: #9DB3E8; --soft: #20232C;
  color-scheme: dark;
}

/* language visibility: only the block matching <html data-lang> shows */
html[data-lang="ja"] [data-l]:not([data-l="ja"]),
html[data-lang="zh"] [data-l]:not([data-l="zh"]),
html[data-lang="en"] [data-l]:not([data-l="en"]) { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 64rem; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.narrow { max-width: 46rem; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 14px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 16px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { display: flex; gap: 2px; background: var(--soft); padding: 3px; border-radius: 999px; flex-shrink: 0; }
.lang button {
  font: inherit; font-size: 12.5px; border: 0; cursor: pointer; padding: 3px 10px; border-radius: 999px;
  background: transparent; color: var(--muted); line-height: 1.6;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
@media (max-width: 560px) { .nav { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { background: var(--indigo); color: var(--indigo-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 72px 0; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6.2vw, 58px); line-height: 1.18;
  margin: 0 0 18px; text-wrap: balance; letter-spacing: -.005em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); opacity: .86; margin: 0 0 28px; max-width: 34em; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgb(243 241 236 / .28); color: var(--indigo-ink); margin-bottom: 22px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 72px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn.primary { background: var(--amber); color: #1B1406; }
.btn.ghost { color: var(--indigo-ink); border: 1px solid rgb(243 241 236 / .3); }
.phone {
  width: min(300px, 100%); margin-inline: auto; border-radius: 40px 40px 0 0; overflow: hidden;
  border: 8px solid #0B0E1A; border-bottom: 0; box-shadow: 0 30px 80px rgb(0 0 0 / .35);
  aspect-ratio: 603 / 980; align-self: end;
}
.phone img { width: 100%; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .cta { padding-bottom: 40px; }
  .phone { width: min(260px, 80%); }
}

/* sections */
section.block { padding-block: 80px; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
h2.title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; margin: 0 0 16px; text-wrap: balance; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--indigo); color: var(--indigo-ink); font-weight: 600; font-size: 14px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps, .features { grid-template-columns: 1fr; } section.block { padding-block: 56px; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 26px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery figure { scroll-snap-align: start; }
}

.privacy-band { background: var(--surface); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 44em; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--celadon); border-bottom: 2px solid var(--celadon); transform: rotate(-45deg); }

.note { color: var(--muted); font-size: 14px; }

/* legal / support pages */
.doc { padding-block: 48px 24px; }
.doc h1 { font-family: var(--serif); font-size: clamp(28px, 6vw, 40px); line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 {
  font-family: var(--serif); font-size: 21px; line-height: 1.45; margin: 40px 0 10px; padding-top: 20px;
  border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; text-wrap: balance;
}
.doc h2 .no { color: var(--amber); font-family: var(--sans); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.doc h3 { font-size: 17px; margin: 28px 0 6px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.keypoints { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 14px; padding: 18px 20px; }
.keypoints h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.keypoints ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td.rw { white-space: nowrap; color: var(--muted); }
.contact { font-weight: 600; overflow-wrap: anywhere; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--muted); }
.mailbox { background: var(--indigo); color: var(--indigo-ink); border-radius: 18px; padding: 24px; margin: 24px 0; }
.mailbox a { color: var(--amber); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }

footer.site { border-top: 1px solid var(--line); padding-block: 28px 48px; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer.site a { color: var(--muted); }
footer.site .sp { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
