/* S-PRING home — redesign preview (2026-10-01) */
:root {
  --paper: #F3F0E8;
  --paper-2: #E9E3D6;
  --ink: #141816;
  --ink-2: #4B524D;
  --ink-3: #7C827D;
  --line: rgba(20, 24, 22, .14);
  --green: #1F7A45;
  --leaf: #8CC63F;
  --leaf-soft: #CFE6B4;
  --forest: #0E2219;
  --forest-2: #163326;
  --on-dark: #EEF0E8;
  --on-dark-2: rgba(238, 240, 232, .62);
  --line-dark: rgba(238, 240, 232, .16);

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --latin: "Instrument Serif", "Times New Roman", serif;

  --gx: clamp(20px, 4.2vw, 72px);
  --gap: clamp(12px, 1.6vw, 28px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --hd-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--leaf); color: var(--forest); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 13px; }
.skip:focus { top: 12px; }
.pc { display: none; }
.nw { display: inline-block; }
@media (min-width: 900px) { .pc { display: inline; } }

/* grain */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- shared ---------- */
.label {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.label span { font-family: var(--latin); font-style: italic; font-size: 18px; letter-spacing: 0; color: var(--green); text-transform: none; }
.label.light { color: var(--on-dark-2); }
.label.light span { color: var(--leaf); }

.sec-head {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: 0 var(--gx);
  margin-bottom: clamp(40px, 6vw, 96px);
}
.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 84px); line-height: 1.22; letter-spacing: .04em;
}
.sec-note { color: var(--ink-2); max-width: 26em; font-size: 14px; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .sec-head .label { grid-column: 1 / 4; align-self: start; padding-top: .9em; }
  .sec-head .sec-title { grid-column: 4 / 11; white-space: nowrap; font-size: clamp(40px, 4.6vw, 80px); }
  .sec-head .sec-note { grid-column: 11 / 13; }
  .sec-head .sec-note { grid-column: 10 / 13; justify-self: end; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em;
  padding: 6px 0; position: relative;
}
.link-arrow::after { content: ""; position: absolute; left: 0; right: 38px; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-arrow i { font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; transition: background .4s, color .4s, transform .6s var(--ease); }
.link-arrow:hover::after { transform: scaleX(0); }
.link-arrow:hover i { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateX(4px); }

.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 60px; padding: 0 12px 0 30px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: .08em;
  transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn i { font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); transition: transform .6s var(--ease); }
.btn:hover i { transform: rotate(-45deg); }
.btn-light { --bg: var(--paper); --fg: var(--forest); }
.btn-light::before { background: var(--leaf); }

.fine { font-size: 11.5px; line-height: 1.8; color: var(--ink-3); letter-spacing: .03em; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.hd {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  height: var(--hd-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gx);
  transition: transform .7s var(--ease), background .5s, box-shadow .5s;
}
.hd.is-scrolled { background: rgba(243, 240, 232, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd-logo { display: grid; }
.hd-logo img { grid-area: 1 / 1; width: 108px; height: auto; transition: opacity .4s; }
.hd-logo .logo-d { opacity: 0; }
.hd.is-dark .logo-l, .menu-open .hd .logo-l { opacity: 0; }
.hd.is-dark .logo-d, .menu-open .hd .logo-d { opacity: 1; }
.hd.is-dark { color: var(--on-dark); }
.hd.is-dark.is-scrolled { background: rgba(14, 34, 25, .72); box-shadow: 0 1px 0 var(--line-dark); }
.hd.is-dark .hd-cta { background: var(--paper); color: var(--ink); }
.hd.is-dark .hd-menu { border-color: var(--line-dark); background: rgba(14,34,25,.4); }
.hd-nav { display: none; margin-left: auto; gap: 34px; font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.hd-nav a { position: relative; padding: 4px 0; }
.hd-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hd-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hd-tel { display: none; flex-direction: column; align-items: flex-end; line-height: 1.25; margin-left: 6px; }
.hd-tel-num { font-family: var(--latin); font-size: 22px; letter-spacing: .02em; transition: color .3s; }
.hd-tel-sub { font-size: 10px; letter-spacing: .12em; color: var(--ink-3); }
.hd.is-dark .hd-tel-sub { color: var(--on-dark-2); }
.hd-tel:hover .hd-tel-num { color: var(--green); }
.hd.is-dark .hd-tel:hover .hd-tel-num { color: var(--leaf); }
.hd-cta { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; letter-spacing: .1em; transition: background .4s; }
.hd-cta i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--leaf); color: var(--forest); font-size: 12px; }
.hd-cta:hover { background: var(--green); }
.hd-menu { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; background: rgba(243,240,232,.6); }
.hd-menu-lines { display: grid; gap: 5px; width: 18px; }
.hd-menu-lines i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .hd-menu-lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .hd-menu-lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-open .hd { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--on-dark); transform: none; }
.menu-open .hd-menu { border-color: var(--line-dark); background: transparent; }
@media (min-width: 1080px) {
  .hd-nav, .hd-cta, .hd-tel { display: flex; }
  .hd-menu { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--forest); color: var(--on-dark);
  padding: calc(var(--hd-h) + 24px) var(--gx) 40px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 60px) 38px);
  transition: clip-path .9s var(--ease-io);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 38px); }
.menu-in { display: grid; gap: 2px; max-width: 520px; }
.menu-cap { margin: 22px 0 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); }
.menu-in a { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--serif); font-size: 22px; font-weight: 600; opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s var(--ease); }
.menu-in a em { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 16px; color: var(--leaf); }
.menu-open .menu-in a { opacity: 1; transform: none; }
.menu-open .menu-in a:nth-of-type(n) { transition-delay: calc(.25s + var(--i, 0) * .04s); }
.menu-in .menu-tel { display: grid; gap: 2px; justify-items: center; margin-top: 10px; padding: 16px; border: 1px solid var(--line-dark); border-radius: 18px; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.menu-tel b { font-family: var(--latin); font-weight: 400; font-size: 30px; letter-spacing: .02em; color: var(--leaf); line-height: 1.2; }
.menu-tel small { font-size: 11px; color: var(--on-dark-2); }
.menu-in .menu-cta { margin-top: 28px; justify-content: center; border: 0; border-radius: 999px; background: var(--leaf); color: var(--forest); font-family: var(--sans); font-size: 15px; padding: 18px; }

/* ---------- contact ---------- */
section.contact, .contact-block {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--forest); color: var(--on-dark);
  padding: clamp(96px, 14vw, 200px) var(--gx) clamp(80px, 10vw, 140px);
  display: grid; justify-items: center; text-align: center; gap: 28px;
  border-radius: clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px) 0 0;
}
.contact-glow { position: absolute; inset: -30%; z-index: -1; background:
  radial-gradient(40% 35% at 30% 40%, rgba(140,198,63,.22), transparent 70%),
  radial-gradient(35% 30% at 72% 62%, rgba(31,122,69,.5), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6%, -4%) rotate(8deg); } }
.contact-hand { width: min(980px, 88vw); margin: 18px 0 12px; }
.contact-hand img { width: 100%; height: auto; }
.js .contact-hand { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s cubic-bezier(.55, .1, .3, 1); }
.js .contact-hand.is-in { clip-path: inset(0 0 0 0); }
.contact-copy { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 22px); line-height: 2; letter-spacing: .08em; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 32px; margin-top: 12px; }
.contact-actions .btn { min-height: 68px; font-size: 16px; }
.contact-ways { display: grid; gap: 14px; width: min(760px, 100%); margin-top: 18px; }
.contact-ways a { display: grid; gap: 2px; justify-items: center; padding: 22px 18px; border: 1px solid var(--line-dark); border-radius: 22px; background: rgba(238,240,232,.03); transition: background .4s, border-color .4s; }
.contact-ways a:hover { background: rgba(140,198,63,.08); border-color: rgba(140,198,63,.5); }
.cw-cap { font-size: 11.5px; letter-spacing: .16em; color: var(--leaf); }
.contact-ways b { font-family: var(--latin); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .02em; line-height: 1.25; }
.contact-mail b { font-size: clamp(22px, 2.4vw, 30px); }
.cw-sub { font-size: 11.5px; color: var(--on-dark-2); }
@media (min-width: 760px) { .contact-ways { grid-template-columns: 1.15fr 1fr; align-items: stretch; } .contact-ways a { align-content: center; } }
.contact-note { font-size: 12px; color: var(--on-dark-2); }

/* ---------- footer ---------- */
.ft { background: #0A1611; color: var(--on-dark); padding: clamp(64px, 8vw, 110px) var(--gx) 24px; overflow: hidden; }
.ft-top { display: grid; gap: 48px; }
.ft-brand { display: grid; gap: 10px; align-content: start; }
.ft-logo { justify-self: start; margin-bottom: 18px; }
.ft-logo img { width: 156px; height: auto; }
.ft-tel { font-family: var(--latin); font-size: 30px; letter-spacing: .02em; justify-self: start; transition: color .3s; }
.ft-tel:hover { color: var(--leaf); }
.ft-hours { font-size: 12px; color: var(--on-dark-2); }
.ft-tag { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: .08em; }
.ft-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px var(--gap); }
.ft-nav div { display: grid; gap: 8px; align-content: start; }
.ft-nav p { font-family: var(--latin); font-style: italic; font-size: 17px; color: var(--leaf); margin-bottom: 4px; }
.ft-nav a { font-size: 13px; color: var(--on-dark-2); transition: color .3s; justify-self: start; }
.ft-nav a:hover { color: var(--on-dark); }
@media (min-width: 900px) {
  .ft-top { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .ft-brand { grid-column: 1 / 6; }
  .ft-nav { grid-column: 7 / 13; grid-template-columns: repeat(3, 1fr); }
}
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-dark); font-size: 11.5px; color: var(--on-dark-2); letter-spacing: .08em; }
.ft-top-link:hover { color: var(--leaf); }

/* ---------- mobile contact dock ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 8px;
  border-radius: 999px; background: rgba(20, 24, 22, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
  transform: translateY(160%); transition: transform .7s var(--ease);
}
.dock.is-on { transform: none; }
.menu-open .dock { transform: translateY(160%); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.dock-tel { color: var(--on-dark); border: 1px solid var(--line-dark); }
.dock-talk { background: var(--leaf); color: var(--forest); }
@media (min-width: 1080px) { .dock { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .grain { animation: none; }
  .ticker-track { animation: none; }
}

/* phone UI stays hidden until main.js has a number (SITE_TEL) */
html:not(.has-tel) .js-tel { display: none !important; }
html:not(.has-tel) .dock { grid-template-columns: 1fr; }
@media (min-width: 760px) { html:not(.has-tel) .contact-ways { grid-template-columns: 1fr; width: min(420px, 100%); } }
