/* ============================================================
   Kakeru Legal Office — Japanese Roots Research
   Design language: derived from the "Finding Your Japanese Roots"
   book cover — deep navy, ivory, sakura pink, gold hairlines,
   crimson obi band. Serif-led, editorial, luxury-calm.
   ============================================================ */

:root {
  --navy-deepest: #0d1526;
  --navy-deep:    #121d33;
  --navy:         #182541;
  --navy-soft:    #21304f;
  --ivory:        #f6f0e1;
  --ivory-soft:   #efe7d3;
  --cream:        #e9dfc6;
  --ink:          #1d2436;
  --ink-soft:     #3a4258;
  --gold:         #c9a45c;
  --gold-soft:    #dcc08a;
  --sakura:       #f0c6cd;
  --sakura-deep:  #e3a8b2;
  --crimson:      #c0392b;
  --crimson-deep: #a93226;
  --serif: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --measure: 68ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--navy-deep);
  color: var(--ivory);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ---------- typography ---------- */

h1, h2, h3 { font-weight: 600; letter-spacing: 0.01em; }

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.18;
  color: var(--ivory);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 0.9em;
}

h3 { font-size: 1.15rem; line-height: 1.4; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}

.light .eyebrow { color: #a3823f; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deepest);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 240, 225, 0.45);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-crimson {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}
.btn-crimson:hover { background: var(--crimson-deep); }

.btn-large { padding: 1.05em 2.6em; font-size: 1.05rem; }

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 21, 38, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.25);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { text-decoration: none; line-height: 1.25; margin-right: auto; white-space: nowrap; }
.brand-main { display: block; color: var(--ivory); font-size: 1.02rem; letter-spacing: 0.06em; }
.brand-sub { display: block; color: var(--gold); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; }

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  color: rgba(246, 240, 225, 0.82);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--gold-soft); }

.btn-nav { padding: 0.5em 1.4em; font-size: 0.84rem; }

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, var(--navy-soft) 0%, var(--navy-deep) 55%, var(--navy-deepest) 100%);
  text-align: center;
  padding: 110px 0 150px;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 24px; }

.hero-lead {
  max-width: 62ch;
  margin: 1.6em auto 0;
  font-size: 1.12rem;
  color: rgba(246, 240, 225, 0.88);
}

.hero-cta {
  margin-top: 2.4em;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 2.2em;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  color: rgba(246, 240, 225, 0.55);
}

/* gold horizon + ship, as on the book cover */
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 88px;
  border-top: 1px solid var(--gold);
  background: linear-gradient(to bottom, rgba(13,21,38,0) 0%, rgba(13,21,38,0.55) 100%);
}
.horizon .ship {
  position: absolute;
  top: -46px;
  left: 12%;
  width: 92px;
  height: 46px;
  color: var(--cream);
  opacity: 0.85;
}
.contact .horizon .ship { left: auto; right: 12%; }

/* floating sakura petals */
.hero-petals, .contact-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.petal { position: absolute; }
.petal use, .petal path, .petal circle { fill: currentColor; }
.p1 { width: 190px; top: 8%;  right: 4%;  color: rgba(240, 198, 205, 0.16); transform: rotate(14deg); }
.p2 { width: 120px; top: 34%; right: 14%; color: rgba(233, 223, 198, 0.12); transform: rotate(-24deg); }
.p3 { width: 250px; bottom: 6%; left: -3%; color: rgba(240, 198, 205, 0.10); transform: rotate(40deg); }
.p4 { width: 110px; top: 14%; left: 10%;  color: rgba(233, 223, 198, 0.09); transform: rotate(-8deg); }
.p5 { width: 80px;  bottom: 30%; right: 30%; color: rgba(240, 198, 205, 0.08); transform: rotate(60deg); }
.contact-petals .p1 { top: 12%; right: 6%; }
.contact-petals .p2 { bottom: 18%; left: 6%; top: auto; }

.scroll-cue {
  display: inline-block;
  margin-top: 3em;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201, 164, 92, 0.4);
  padding-bottom: 6px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.scroll-cue:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- sections: shared rhythm ---------- */

section { padding: 110px 0; position: relative; }

.light {
  background: var(--ivory);
  color: var(--ink);
}
.light h2 { color: var(--ink); }
.light p { color: var(--ink-soft); }

/* ---------- story ---------- */

.story {
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, var(--navy-soft) 0%, var(--navy-deepest) 75%);
  text-align: center;
}

.story-prose {
  max-width: 58ch;
  margin: 0 auto;
  text-align: left;
}
.story-prose p { margin-bottom: 1.5em; color: rgba(246, 240, 225, 0.85); }

.story-emphasis {
  font-size: 1.22rem;
  color: var(--ivory) !important;
  border-left: 2px solid var(--gold);
  padding-left: 1.2em;
}

.story-turn {
  font-size: 1.45rem;
  color: var(--gold-soft) !important;
  text-align: center;
  margin-top: 2em;
  letter-spacing: 0.02em;
}

.story-figure {
  max-width: 420px;
  margin: 2.4em auto;
}
.story-figure img {
  border: 1px solid rgba(201, 164, 92, 0.45);
  filter: sepia(0.28) saturate(0.72) contrast(0.96) brightness(0.94);
}
.story-figure figcaption {
  font-size: 0.82rem;
  color: rgba(246, 240, 225, 0.55);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.heritage-band { margin: 70px 0 0; }
.heritage-band img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(201, 164, 92, 0.35);
  filter: saturate(0.82);
}
.heritage-band figcaption {
  font-size: 0.82rem;
  color: rgba(246, 240, 225, 0.6);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* ---------- record ---------- */

.record-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.record-text p { margin-bottom: 1.4em; max-width: var(--measure); }
.record-text em { color: var(--crimson-deep); font-style: italic; }

.record-facts { display: grid; gap: 26px; }

.fact {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
}
.fact-num {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}
.fact-unit { font-size: 1.1rem; color: #a3823f; margin-left: 4px; }
.fact-label { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .record-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- receive ---------- */

.receive { background: var(--navy); }

.receive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 70px;
}

.r-card {
  border: 1px solid rgba(201, 164, 92, 0.35);
  padding: 30px 26px;
  background: rgba(13, 21, 38, 0.45);
}
.r-card h3 { color: var(--gold-soft); margin-bottom: 0.7em; }
.r-card p { font-size: 0.95rem; color: rgba(246, 240, 225, 0.8); }

.ext-title {
  color: var(--ivory);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.4em;
  text-align: center;
}

.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px;
}

.ext-item h4 { color: var(--sakura); font-size: 1.02rem; margin-bottom: 0.5em; }
.ext-item p { font-size: 0.92rem; color: rgba(246, 240, 225, 0.72); }

/* ---------- sample family tree ---------- */

.sample { background: var(--ivory); }

.sample-lead {
  max-width: var(--measure);
  font-size: 1.05rem;
  margin-bottom: 2.5em;
}

.tree-wrap {
  overflow-x: auto;
  background: #fbf7ea;
  border: 1px solid rgba(163, 130, 63, 0.3);
  padding: 34px 20px 26px;
}

.tree {
  display: block;
  min-width: 880px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-width: 1000px;
}

.tree .t-line path, .tree path.t-line {
  stroke: #b99b57;
  stroke-width: 1.4;
}

.tree .t-box rect {
  fill: #fdfaf1;
  stroke: #b99b57;
  stroke-width: 1;
}

.tree .t-box-main rect {
  fill: #fffdf6;
  stroke: var(--crimson);
  stroke-width: 2;
}

.tree .t-kanji {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS Mincho", var(--serif);
  font-size: 17px;
  fill: var(--ink);
  font-weight: 600;
}

.tree .t-kanji-main { font-size: 21px; }

.tree .t-romaji {
  font-family: var(--serif);
  font-size: 10.5px;
  fill: #5a6178;
  letter-spacing: 0.02em;
}

.tree .t-dates {
  font-family: var(--serif);
  font-size: 10px;
  fill: #5a6178;
}

.tree .t-tag {
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  fill: #a3823f;
}

.tree .t-tag-main { fill: var(--crimson-deep); font-size: 11.5px; }

.tree .gen-num text {
  font-family: var(--serif);
  font-size: 20px;
  fill: rgba(163, 130, 63, 0.55);
  font-style: italic;
}

.tree .t-legend text {
  font-family: var(--serif);
  font-size: 11.5px;
  fill: #5a6178;
}

.sample-note {
  margin-top: 1.8em;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 76ch;
}

/* ---------- process ---------- */

.steps { list-style: none; display: grid; gap: 40px; margin-top: 10px; }

.steps li { display: flex; gap: 26px; align-items: flex-start; }

.step-num {
  font-size: 1.5rem;
  color: #a3823f;
  border-bottom: 2px solid var(--gold);
  line-height: 1.4;
  flex-shrink: 0;
  min-width: 52px;
}

.steps h3 { margin-bottom: 0.4em; color: var(--ink); }
.steps p { max-width: 60ch; }

/* ---------- about ---------- */

.about { background: var(--navy-deep); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.about-photo img {
  border: 1px solid rgba(201, 164, 92, 0.4);
}
.photo-caption {
  font-size: 0.82rem;
  color: rgba(246, 240, 225, 0.6);
  margin-top: 12px;
  line-height: 1.5;
}

.about-text p { margin-bottom: 1.4em; color: rgba(246, 240, 225, 0.85); max-width: var(--measure); }
.about-text em { color: var(--gold-soft); }

.cred-list {
  list-style: none;
  margin-top: 1.8em;
  border-top: 1px solid rgba(201, 164, 92, 0.35);
}
.cred-list li {
  padding: 0.7em 0;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
  font-size: 0.95rem;
  color: rgba(246, 240, 225, 0.8);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 360px; }
}

/* ---------- book (crimson obi band, as on the cover) ---------- */

.book {
  background: var(--navy-deepest);
  overflow: hidden;
}

.book-band {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 180px;
  transform: translateY(-50%) rotate(-1.2deg) scale(1.05);
  background: var(--crimson);
  opacity: 0.12;
}

.book-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 70px;
  align-items: center;
}

.book-cover img {
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(201, 164, 92, 0.3);
}

.book-text p { color: rgba(246, 240, 225, 0.85); margin-bottom: 1.3em; max-width: var(--measure); }
.book-text em { color: var(--ivory); }

.book-points {
  list-style: none;
  margin: 0 0 1.5em;
}
.book-points li {
  padding: 0.55em 0 0.55em 1.6em;
  position: relative;
  color: rgba(246, 240, 225, 0.82);
  font-size: 0.97rem;
}
.book-points li::before {
  content: "―";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.book-honest {
  border-left: 2px solid var(--sakura-deep);
  padding-left: 1.2em;
  font-size: 0.97rem;
}

.book-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 1.6em; }
.book-meta { font-size: 0.85rem; color: rgba(246, 240, 225, 0.55); }

@media (max-width: 860px) {
  .book-grid { grid-template-columns: 1fr; gap: 46px; }
  .book-cover img { max-width: 260px; }
}

/* ---------- investment ---------- */

.invest-lead { font-size: 1.08rem; max-width: var(--measure); margin-bottom: 2.2em; }

.invest-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.invest-col h3 {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.6em;
  margin-bottom: 1em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.invest-price {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #a3823f;
  white-space: nowrap;
}

.invest-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1em;
  min-height: 3.2em;
}

.invest-col ul { list-style: none; }
.invest-col li {
  padding: 0.5em 0 0.5em 1.5em;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(29, 36, 54, 0.1);
}
.invest-col li::before {
  content: "―";
  position: absolute;
  left: 0;
  color: #a3823f;
}

.invest-payment {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: -28px 0 40px;
}
.invest-payment strong { color: var(--ink); }

.invest-honest {
  background: var(--navy-deep);
  color: var(--ivory);
  padding: 42px 44px;
}
.invest-honest h3 { color: var(--gold-soft); margin-bottom: 0.7em; }
.invest-honest p { color: rgba(246, 240, 225, 0.85); max-width: none; }

@media (max-width: 720px) {
  .invest-cols { grid-template-columns: 1fr; }
  .invest-honest { padding: 32px 26px; }
}

/* ---------- faq ---------- */

.faq { background: var(--ivory-soft); }

.faq-list { display: grid; gap: 8px; }

.faq-item {
  background: var(--ivory);
  border: 1px solid rgba(163, 130, 63, 0.25);
  padding: 26px 30px;
}
.faq-item dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.faq-item dd { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- contact ---------- */

.contact {
  background:
    radial-gradient(ellipse 120% 80% at 50% 120%, var(--navy-soft) 0%, var(--navy-deepest) 70%);
  text-align: center;
  padding-bottom: 190px;
  overflow: hidden;
}

.contact-inner { position: relative; z-index: 2; }

.contact-lead {
  max-width: 58ch;
  margin: 0 auto 2.4em;
  color: rgba(246, 240, 225, 0.85);
}

.contact-email-card {
  display: inline-block;
  border: 1px solid rgba(201, 164, 92, 0.45);
  background: rgba(13, 21, 38, 0.55);
  padding: 34px 44px;
  max-width: 100%;
}

.email-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}

.contact-email {
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  color: var(--ivory);
  letter-spacing: 0.02em;
  margin-bottom: 1.2em;
  word-break: break-all;
  user-select: all;
}

.email-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-btn { cursor: pointer; min-width: 190px; }

.email-hint {
  margin-top: 1.3em;
  font-size: 0.8rem;
  color: rgba(246, 240, 225, 0.55);
  max-width: 46ch;
}

.contact-template {
  max-width: 560px;
  margin: 3em auto 0;
  text-align: left;
  border-top: 1px solid rgba(201, 164, 92, 0.35);
  padding-top: 2em;
}

.contact-template h3 {
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1em;
  text-align: center;
}

.contact-template ul { list-style: none; }
.contact-template li {
  padding: 0.45em 0 0.45em 1.6em;
  position: relative;
  font-size: 0.94rem;
  color: rgba(246, 240, 225, 0.8);
}
.contact-template li::before {
  content: "―";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.template-note {
  margin-top: 1em;
  font-size: 0.85rem;
  color: rgba(246, 240, 225, 0.55);
  text-align: center;
}

.contact-confidential {
  margin-top: 2.6em;
  font-size: 0.83rem;
  color: rgba(246, 240, 225, 0.5);
  letter-spacing: 0.03em;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deepest);
  border-top: 1px solid rgba(201, 164, 92, 0.3);
  padding: 60px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  color: var(--ivory);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6em;
}

.footer-meta { color: rgba(246, 240, 225, 0.6); line-height: 1.9; }
.footer-meta a { color: var(--gold-soft); text-decoration: none; }

.footer-legal {
  color: rgba(246, 240, 225, 0.45);
  font-size: 0.8rem;
  max-width: 76ch;
  margin-bottom: 1.2em;
}

.footer-copy { color: rgba(246, 240, 225, 0.35); font-size: 0.8rem; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 80px 0; }
  .hero { padding: 80px 0 130px; }
}
