/* Layout: single-column editorial landing page. Cream ground, red as the one accent, mincho serif headings, dark band for the money flow. */
:root {
  --bg: #fdfbf7;
  --bg-soft: #f8f1e8;
  --bg-blush: #fdf3f0;
  --card: #ffffff;
  --fg: #1c1818;
  --muted: #6d6460;
  --line: #eadfd6;
  --accent: #d7101c;
  --accent-ink: #ffffff;
  --dark: #161314;
  --dark-card: #1d1a1b;
  --dark-line: #3a3436;
  --dark-fg: #f6f1ec;
  --dark-muted: #b9aea8;
  --shadow: 0 18px 40px rgba(120, 60, 40, .14);
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151213; --bg-soft: #1b1718; --bg-blush: #201718; --card: #1f1b1c;
    --fg: #f4eee8; --muted: #b3a8a2; --line: #352d2e; --accent: #ff4a54;
    --accent-ink: #1a0709; --dark: #0f0d0e; --dark-card: #171415; --shadow: 0 18px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151213; --bg-soft: #1b1718; --bg-blush: #201718; --card: #1f1b1c;
  --fg: #f4eee8; --muted: #b3a8a2; --line: #352d2e; --accent: #ff4a54;
  --accent-ink: #1a0709; --dark: #0f0d0e; --dark-card: #171415; --shadow: 0 18px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; width: 100%; }
/* full-bleed bands: cancel the body gutter so backgrounds reach the edges */
.band { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
.sec { padding-block: 84px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.4; letter-spacing: .06em; }
.sec-head p { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { font-family: var(--font-latin); font-weight: 700; font-size: 19px; letter-spacing: .2em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); letter-spacing: .08em; margin-left: 4px; }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { font-size: 12px; text-decoration: none; letter-spacing: .06em; }
nav a:hover { color: var(--accent); }
nav .contact { border: 2px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 7px 20px; font-weight: 700; }
nav .contact:hover { background: var(--accent); color: var(--accent-ink); }

/* hero */
.hero { background: linear-gradient(100deg, var(--bg) 40%, var(--bg-blush)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding-block: 90px 100px; }
.hero h1 { font-size: clamp(44px, 8vw, 78px); line-height: 1.35; letter-spacing: .1em; font-weight: 500; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 32px 0 0; max-width: 460px; font-size: 14px; line-height: 2.1; }
.hero .note { margin: 26px 0 0; max-width: 460px; border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; font-size: 11.5px; color: var(--muted); line-height: 2; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; background: var(--bg-soft); border-radius: 999px; padding: 6px 16px; font-size: 11px; color: var(--muted); }
.pill i { width: 6px; height: 6px; background: #c9962d; display: block; }

.stage { position: relative; display: grid; place-items: center; min-height: 440px; min-width: 0; }
.stage::before { content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--bg-soft), transparent 72%); right: 0; }
.ribbon { position: absolute; left: -6%; top: 20%; width: 64%; max-width: 330px; z-index: 2; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.phone { position: relative; width: 224px; aspect-ratio: 9 / 18.4; border: 7px solid #111; border-radius: 36px; background: #fff; color: #1c1818; box-shadow: var(--shadow); transform: rotate(3deg); padding: 40px 18px 18px; text-align: center; overflow: hidden; z-index: 1; }
.phone::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; background: #111; border-radius: 0 0 14px 14px; }
.phone .pl { font-family: var(--font-latin); font-weight: 700; font-size: 11px; letter-spacing: .24em; line-height: 1.3; }
.phone .pl b { display: block; color: #d7101c; letter-spacing: .1em; }
.phone .pq { font-family: var(--font-display); font-size: 13px; line-height: 1.6; margin: 36px 0 12px; }
.phone .amt { border: 1px solid #e6dcd3; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 17px; text-align: right; }
.phone .amt small { font-size: 10px; margin-left: 2px; }
.phone .pay { margin-top: 18px; background: #d7101c; color: #fff; border-radius: 9px; padding: 11px 6px; font-size: 12px; font-weight: 700; }
.phone .fine { margin-top: 12px; font-size: 7px; color: #8a807a; line-height: 1.5; }

/* what we do */
.intro { max-width: 640px; margin: 0 auto 52px; text-align: center; font-family: var(--font-display); font-size: 16px; line-height: 2.3; letter-spacing: .08em; }
.intro strong { color: var(--accent); font-weight: 500; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 28px 26px 30px; min-width: 0; }
.card .tag { font-family: var(--font-latin); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 700; }
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.95; }

/* how it works */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.step { background: var(--card); border-radius: 20px; padding: 26px 26px 34px; min-width: 0; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-bottom: 26px; }
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.95; }
.arrow { align-self: center; color: #c4a998; font-size: 18px; }

/* flow (dark band) */
.flow { background: var(--dark); color: var(--dark-fg); }
.flow .sec-head p { color: var(--dark-muted); }
.flow .eyebrow { color: #ff4a54; }
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.node { border: 1.5px solid var(--dark-line); background: var(--dark-card); border-radius: 18px; padding: 34px 20px; text-align: center; min-width: 0; }
.node h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.node p { margin: 0; font-size: 11px; color: var(--dark-muted); line-height: 1.8; }
.flow .arrow { color: #ff4a54; }
.flow-note { margin-top: 28px; background: #262223; border-radius: 14px; padding: 18px 24px; font-size: 12px; line-height: 1.95; color: var(--dark-fg); }
.flow-note b { font-weight: 700; }

/* scenes */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scene { background: linear-gradient(160deg, var(--card), var(--bg-soft)); border: 1.5px solid var(--line); border-radius: 18px; padding: 26px 22px 28px; min-width: 0; }
.scene svg { width: 28px; height: 28px; display: block; margin-bottom: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scene h3 { font-family: var(--font-body); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.scene p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.9; }

/* transparency */
.trust { background: var(--bg-blush); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.check { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 24px 22px; min-width: 0; }
.check h3 { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.check h3::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.check p { margin: 0 0 0 24px; font-size: 11.5px; color: var(--muted); line-height: 1.9; }

/* company */
.company .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.company h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: .06em; margin-bottom: 18px; }
.company .tagline { font-family: var(--font-latin); font-size: 14px; color: var(--muted); margin: 0; font-weight: 600; letter-spacing: .02em; }
.company .tagline-ja { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
dl { margin: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dt { color: var(--muted); font-size: 11.5px; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dd a { text-underline-offset: 3px; }

footer { background: var(--dark); color: var(--dark-fg); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 48px; align-items: end; }
footer .logo { font-size: 15px; display: block; }
footer .sub { margin: 6px 0 0; font-size: 11px; color: var(--dark-muted); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 10.5px; color: var(--dark-muted); }
footer .copy { font-size: 10.5px; color: var(--dark-muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .stage { min-height: 400px; }
  .grid3 { grid-template-columns: 1fr; }
  .steps, .flow-row { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .company .wrap { grid-template-columns: 1fr; gap: 32px; }
  footer .wrap { grid-template-columns: 1fr; align-items: start; }
  .sec { padding-block: 60px; }
}
@media (max-width: 560px) {
  nav a:not(.contact) { display: none; }
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: rotate(3deg) translateY(-8px); } }
}

/* active nav link (set by script.js) */
nav a.is-active:not(.contact) { color: var(--accent); }