/* ===== Check Estate — shared styles for sub pages ===== */
*{ margin:0; padding:0; box-sizing:border-box; }
:root{
  --paper:#FAF6EE; --paper-2:#F1EADC; --card:#FFFFFF; --ink:#2A2622; --muted:#8A8074;
  --line:rgba(42,38,34,.12); --gold:#B08A47; --gold-soft:#D9BE8B; --rose:#C08893;
  --sky:#7C93AE; --terracotta:#B97C56;
  --grad:linear-gradient(120deg, var(--rose) 0%, var(--gold-soft) 50%, var(--sky) 100%);
  --ff-serif:'Zen Old Mincho', serif;
  --ff-jp:'Zen Kaku Gothic New', sans-serif;
  --ff-en:'Cormorant Garamond', serif;
  --ff-ui:'Inter', sans-serif;
  --ease:cubic-bezier(.16,.84,.44,1);
}
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }
body{ background:var(--paper); color:var(--ink); font-family:var(--ff-jp); line-height:1.9; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
::selection{ background:var(--gold-soft); color:var(--ink); }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.wrap{ max-width:1180px; margin:0 auto; width:100%; position:relative; z-index:1; }
.wrap-narrow{ max-width:780px; }
.section-pad{ padding:clamp(3.4rem,8vw,5.5rem) clamp(1.25rem,5vw,3rem); position:relative; }
.eyebrow{ font-family:var(--ff-en); font-style:italic; font-size:.95rem; letter-spacing:.06em; color:var(--gold); font-weight:500; }

.btn{ font-family:var(--ff-ui); font-weight:600; font-size:.9rem; display:inline-flex; align-items:center; gap:.55em;
  padding:1em 1.8em; border-radius:999px; transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
.btn .arrow{ display:inline-block; transition:transform .4s var(--ease); }
.btn:hover .arrow{ transform:translateX(5px); }
.btn:active{ transform:scale(.97); }
.btn-line{ background:#06C755; color:#fff; box-shadow:0 10px 22px -10px rgba(6,199,85,.5); }
.btn-line:hover{ box-shadow:0 14px 28px -8px rgba(6,199,85,.6); transform:translateY(-2px); }
.btn-dark{ background:var(--ink); color:var(--paper); }
.btn-dark:hover{ background:#413A32; transform:translateY(-2px); }
.btn-outline{ border:1.5px solid var(--line); color:var(--ink); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold); }

/* ---- header ---- */
.logo{ display:flex; align-items:center; gap:.55rem; }
.logo svg{ height:30px; width:auto; flex-shrink:0; }
.logo .lg-word{ font-family:var(--ff-ui); font-weight:700; font-size:.92rem; color:var(--ink); white-space:nowrap; }
.logo .lg-word i{ font-style:normal; font-size:.64em; margin-left:.28em; }
@media(max-width:400px){ .logo svg{ height:26px; } .logo .lg-word{ font-size:.82rem; } }

header{ position:fixed; top:0; left:0; right:0; z-index:200; display:flex; align-items:center; justify-content:space-between;
  padding:1.1rem clamp(1.1rem,4vw,2.5rem); background:rgba(250,246,238,.9); backdrop-filter:blur(10px); box-shadow:0 1px 0 var(--line); }
nav.desktop-nav{ display:none; gap:1.8rem; font-family:var(--ff-ui); font-size:.83rem; color:var(--muted); font-weight:500; }
nav.desktop-nav a{ position:relative; padding-bottom:3px; white-space:nowrap; }
nav.desktop-nav a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--gold); transition:width .35s var(--ease); }
nav.desktop-nav a:hover{ color:var(--ink); } nav.desktop-nav a:hover::after{ width:100%; }
nav.desktop-nav a.is-here{ color:var(--ink); } nav.desktop-nav a.is-here::after{ width:100%; }
.header-cta{ display:none; }
@media(min-width:1000px){ nav.desktop-nav{ display:flex; } .header-cta{ display:inline-flex; padding:.8em 1.5em; font-size:.85rem; } }
.burger{ width:24px; height:16px; position:relative; }
.burger span{ position:absolute; left:0; right:0; height:1.5px; background:var(--ink); transition:transform .35s var(--ease), opacity .35s var(--ease); }
.burger span:nth-child(1){ top:0; } .burger span:nth-child(2){ top:7px; } .burger span:nth-child(3){ top:14px; }
@media(min-width:1000px){ .burger{ display:none; } }

/* ===== mobile menu (shared) ===== */
#mobileMenu{ position:fixed; inset:0; background:var(--paper); z-index:190; display:block;
  padding:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  transform:translateY(-100%); visibility:hidden;
  transition:transform .5s var(--ease), visibility 0s linear .5s; }
#mobileMenu.open{ transform:translateY(0); visibility:visible; transition:transform .5s var(--ease), visibility 0s linear 0s; }
.mm-inner{ max-width:540px; margin:0 auto; padding:4.6rem clamp(1.4rem,6vw,2.2rem) 2rem; }
.mm-title{ display:block; font-family:var(--ff-en); font-style:italic; font-size:.78rem; letter-spacing:.14em;
  color:var(--gold); margin-bottom:.8rem; }
.mm-list{ display:block; border-top:1px solid var(--line); }
.mm-list a{ display:flex; align-items:center; gap:1rem; padding:clamp(.62rem,1.8vh,.95rem) .2rem; border-bottom:1px solid var(--line);
  transition:padding-left .35s var(--ease); }
.mm-list a:hover{ padding-left:.5rem; }
.mm-list .mm-en{ font-family:var(--ff-en); font-style:italic; font-size:.66rem; color:var(--gold); display:block; margin-bottom:.05rem; }
.mm-list .mm-jp{ font-family:var(--ff-jp); font-weight:700; font-size:clamp(1.02rem,3.9vw,1.22rem); line-height:1.35; color:var(--ink); }
.mm-list .mm-txt{ flex:1; min-width:0; }
.mm-list .mm-arrow{ font-family:var(--ff-ui); font-size:.85rem; color:var(--muted); flex-shrink:0; transition:transform .35s var(--ease), color .35s var(--ease); }
.mm-list a:hover .mm-arrow{ transform:translateX(4px); color:var(--gold); }
.mm-list a.mm-home{ background:linear-gradient(120deg,#FFFDF8,#F6ECDA); border-radius:10px; border-bottom:none;
  margin-bottom:.7rem; padding:clamp(.7rem,2vh,1rem) 1.1rem; box-shadow:0 12px 24px -20px rgba(42,38,34,.5); }
.mm-list a.mm-home .mm-jp{ color:var(--ink); }
.mm-list a.mm-home .mm-arrow{ color:var(--gold); }
.mm-list a.mm-quiet .mm-jp{ font-size:.92rem; font-weight:600; color:var(--muted); }
.mm-foot{ margin-top:clamp(1.1rem,3vh,2.2rem); display:flex; flex-direction:column; gap:.7rem; align-items:stretch; }
.mm-foot .btn{ justify-content:center; }
.mm-tel{ display:flex; align-items:baseline; justify-content:center; gap:.6rem; font-family:var(--ff-ui); }
.mm-tel b{ font-size:1.05rem; font-weight:700; }
.mm-tel span{ font-size:.68rem; color:var(--muted); }

/* ---- page hero ---- */
.page-hero{ padding:clamp(7rem,14vw,9.5rem) clamp(1.25rem,5vw,3rem) clamp(2.5rem,6vw,4rem); position:relative; overflow:hidden;
  background:linear-gradient(160deg,#FFFDF8 0%,#F7EFE0 100%); }
.page-hero .ring{ position:absolute; border-radius:50%; border:1px solid rgba(176,138,71,.25); pointer-events:none; }
.page-hero .r1{ width:620px; height:620px; top:-280px; right:-200px; }
.page-hero .r2{ width:420px; height:420px; bottom:-260px; left:-140px; }
.crumb{ font-family:var(--ff-ui); font-size:.72rem; color:var(--muted); margin-bottom:1rem; }
.crumb a:hover{ color:var(--gold); }
.page-hero h1{ font-family:var(--ff-serif); font-weight:700; line-height:1.4; font-size:clamp(1.9rem,5vw,3.1rem); margin-top:.6rem; }
.page-hero h1 b{ font-weight:700; background:linear-gradient(115deg,#B97C56 0%,#B08A47 60%,#8E7A55 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.page-hero .lead{ margin-top:1.3rem; color:var(--muted); font-size:.95rem; max-width:40rem; }

/* ---- content ---- */
.prose h2{ font-family:var(--ff-serif); font-weight:700; font-size:clamp(1.4rem,3.4vw,2rem); line-height:1.5; margin-top:clamp(2.6rem,6vw,3.6rem); }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-family:var(--ff-jp); font-weight:700; font-size:1.02rem; margin-top:1.9rem; }
.prose p{ margin-top:1rem; color:var(--muted); font-size:.92rem; }
.prose ul,.prose ol{ margin-top:1rem; padding-left:1.2rem; color:var(--muted); font-size:.92rem; }
.prose li{ margin-top:.5rem; }
.prose strong{ color:var(--ink); font-weight:700; }
.prose a{ color:var(--gold); border-bottom:1px solid rgba(176,138,71,.4); }
.rule{ height:1px; background:var(--line); margin:clamp(2.4rem,6vw,3.4rem) 0; }

.cards{ display:grid; gap:1rem; margin-top:1.8rem; }
@media(min-width:760px){ .cards.c2{ grid-template-columns:repeat(2,1fr); } .cards.c3{ grid-template-columns:repeat(3,1fr); } }
.card{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:1.5rem 1.4rem; }
.card .c-num{ font-family:var(--ff-en); font-style:italic; font-size:1.3rem; color:var(--gold); }
.card h3{ margin-top:.4rem; font-family:var(--ff-jp); font-weight:700; font-size:1.02rem; line-height:1.6; }
.card p{ margin-top:.55rem; color:var(--muted); font-size:.86rem; }

.tablelike{ border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-top:1.6rem; }
.tablelike .row{ display:grid; grid-template-columns:1fr; gap:.2rem; padding:1.1rem 1.2rem; background:var(--card); border-top:1px solid var(--line); }
.tablelike .row:first-child{ border-top:none; }
@media(min-width:640px){ .tablelike .row{ grid-template-columns:170px 1fr; gap:1.2rem; align-items:baseline; } }
.tablelike dt{ font-family:var(--ff-ui); font-size:.72rem; font-weight:700; letter-spacing:.05em; color:var(--muted); }
.tablelike dd{ font-size:.92rem; }

.note{ margin-top:1.4rem; font-family:var(--ff-ui); font-size:.7rem; color:var(--muted); line-height:1.9; }

/* ---- cta ---- */
.page-cta{ background:var(--ink); color:var(--paper); text-align:center; padding:clamp(3.4rem,8vw,5rem) clamp(1.25rem,5vw,3rem); }
.page-cta h2{ font-family:var(--ff-serif); font-weight:700; font-size:clamp(1.5rem,4vw,2.3rem); line-height:1.5; }
.page-cta p{ margin-top:1rem; color:rgba(250,246,238,.65); font-size:.9rem; }
.page-cta .btns{ margin-top:1.9rem; display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; }
.page-cta .btn-outline{ border-color:rgba(250,246,238,.28); color:var(--paper); }
.page-cta .btn-outline:hover{ border-color:var(--gold-soft); color:var(--gold-soft); }

/* ---- back to main ---- */
.back-band{ background:var(--paper-2); padding:clamp(2rem,5vw,2.8rem) clamp(1.25rem,5vw,3rem); text-align:center; }
.back-band .btn-back{ display:inline-flex; align-items:center; gap:.6em; font-family:var(--ff-ui); font-weight:700; font-size:.9rem;
  background:var(--card); border:1px solid var(--line); border-radius:999px; padding:.95em 1.8em; color:var(--ink);
  transition:border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.back-band .btn-back:hover{ border-color:var(--gold); transform:translateY(-2px); box-shadow:0 16px 30px -20px rgba(42,38,34,.5); }
.back-band .btn-back svg{ width:15px; height:15px; color:var(--gold); }
.back-band small{ display:block; margin-top:.9rem; font-family:var(--ff-ui); font-size:.7rem; color:var(--muted); }

/* ---- footer ---- */
footer{ background:var(--ink); color:rgba(250,246,238,.5); padding:2.2rem clamp(1.25rem,6vw,3rem) 6rem; }
.foot-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.2rem; font-family:var(--ff-ui); font-size:.72rem; }
.foot-inner a:hover{ color:var(--gold-soft); }
.foot-links{ display:flex; flex-wrap:wrap; gap:1.2rem; }
@media(min-width:900px){ footer{ padding-bottom:2.2rem; } }

/* ---- sticky line button ---- */
#stickyLine{ position:fixed; left:.85rem; right:.85rem; bottom:1rem; z-index:150; display:flex; align-items:center; justify-content:center; gap:.5em;
  background:linear-gradient(135deg,#0ADB63 0%,#06C755 55%,#04A648 100%); color:#fff; font-family:var(--ff-ui); font-weight:700;
  font-size:clamp(.86rem,3.6vw,1rem); padding:.9em 1em; border-radius:999px; overflow:hidden; isolation:isolate;
  box-shadow:0 12px 26px -8px rgba(6,199,85,.65), 0 0 0 4px rgba(6,199,85,.14);
  animation:stickyBreath 2.8s ease-in-out infinite; }
#stickyLine:active{ transform:scale(.97); }
#stickyLine .sl-icon{ width:22px; height:22px; flex-shrink:0; object-fit:contain; filter:brightness(0) invert(1); }
#stickyLine .sl-main{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.2; white-space:nowrap; }
#stickyLine .sl-sub{ font-size:.58rem; font-weight:600; opacity:.9; margin-top:.16em; white-space:nowrap; }
#stickyLine .sl-badge{ font-size:.58rem; font-weight:700; color:#04A648; background:#fff; border-radius:999px; padding:.35em .6em; white-space:nowrap; }
#stickyLine::after{ content:""; position:absolute; top:-60%; left:-40%; width:38%; height:220%; z-index:-1;
  background:linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 100%);
  transform:skewX(-18deg); animation:stickyShine 4.2s ease-in-out infinite; }
@keyframes stickyBreath{ 0%,100%{ box-shadow:0 12px 26px -8px rgba(6,199,85,.6), 0 0 0 0 rgba(6,199,85,.34); }
  55%{ box-shadow:0 14px 30px -8px rgba(6,199,85,.7), 0 0 0 12px rgba(6,199,85,0); } }
@keyframes stickyShine{ 0%{ left:-45%; } 55%,100%{ left:125%; } }
@media(max-width:359px){ #stickyLine .sl-badge{ display:none; } }
@media(min-width:900px){ #stickyLine{ display:none; } }
@media (prefers-reduced-motion: reduce){ #stickyLine{ animation:none; } #stickyLine::after{ display:none; } }

/* ===== scroll motion (shared) ===== */
.js-motion [data-motion]{ opacity:0; }
.js-motion [data-motion].in{ opacity:1; }

/* headings: characters rise one by one */
.js-motion .mo-split .ch{ display:inline-block; opacity:0; transform:translateY(.6em) rotate(2deg);
  transition:opacity .75s var(--ease), transform .85s var(--ease); }
.js-motion .mo-split.in .ch{ opacity:1; transform:none; }

/* headings with gradient text: wipe up instead of splitting */
.js-motion .mo-wipe{ clip-path:inset(0 0 105% 0); transform:translateY(.18em);
  transition:clip-path 1.05s var(--ease), transform 1.05s var(--ease), opacity .6s var(--ease); }
.js-motion .mo-wipe.in{ clip-path:inset(0 0 -25% 0); transform:none; }

/* blocks: rise with a slight scale */
.js-motion .mo-up{ transform:translateY(34px) scale(.985);
  transition:opacity .9s var(--ease), transform 1s var(--ease); }
.js-motion .mo-up.in{ transform:none; }

/* images / cards: reveal behind a moving mask */
.js-motion .mo-mask{ clip-path:inset(0 0 100% 0); transform:scale(1.04);
  transition:clip-path 1.15s var(--ease), transform 1.4s var(--ease), opacity .5s var(--ease); }
.js-motion .mo-mask.in{ clip-path:inset(0 0 0 0); transform:none; }

/* thin gold line that draws itself */
.js-motion .mo-line{ transform:scaleX(0); transform-origin:0 50%; opacity:1;
  transition:transform 1s var(--ease); }
.js-motion .mo-line.in{ transform:scaleX(1); }

@media (prefers-reduced-motion: reduce){
  .js-motion [data-motion]{ opacity:1 !important; transform:none !important; clip-path:none !important; }
  .js-motion .mo-split .ch{ opacity:1 !important; transform:none !important; }
}
