/* ==========================================================================
   ゆいの杜 — Common Stylesheet
   --------------------------------------------------------------------------
   1. Tokens & Base
   2. Typography
   3. Buttons & Links
   4. Header / Navigation / Mobile menu
   5. Opening loader
   6. Motion (reveal / split / parallax / ken burns / marquee)
   7. Hero & page hero
   8. Components (cards, counters, voices, news, tables, tabs, accordion, timeline)
   9. Gallery & lightbox
   10. Staff
   11. Form
   12. Footer & floating UI
   13. Accessibility (reduced motion / large text)
   ========================================================================== */

/* 0. Reset (Tailwind preflight 相当 — tailwind-config.js で preflight を無効化) */
*, ::before, ::after { box-sizing: border-box; border: 0 solid rgba(31, 38, 34, 0.12); }
body { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, blockquote, dl, dd, figure, pre { margin: 0; }
hr { height: 0; margin: 0; color: inherit; border-top-width: 1px; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
fieldset { margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
b, strong { font-weight: 700; }
small { font-size: 80%; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; background-color: transparent; background-image: none; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, picture { display: block; vertical-align: middle; }
input::placeholder, textarea::placeholder { opacity: 1; }
[hidden] { display: none !important; }

/* 1. Tokens & Base ------------------------------------------------------- */
:root {
  --linen: #f7f2ea;
  --cream: #fbf8f3;
  --sand: #ebe1d1;
  --sand-deep: #dccbb0;
  --forest: #24392f;
  --forest-900: #15221b;
  --navy: #1d2840;
  --terra: #a55f3a;
  --terra-light: #d9a688;
  --sage: #a3b09c;
  --ink: #1f2622;
  --ink-soft: #4a514c;
  --ink-mute: #656a64;
  --line: rgba(31, 38, 34, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 88px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
}
html.is-large-text { font-size: 112.5%; }

body {
  background-color: var(--linen);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

/* 和紙のような微細なノイズで、画面にあたたかい質感を */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--forest); color: var(--linen); }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--forest);
  color: var(--linen);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* 2. Typography ---------------------------------------------------------- */
.font-mincho { font-family: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif; }
.font-en { font-family: "Cormorant Garamond", "Times New Roman", serif; letter-spacing: 0.02em; }
.palt { font-feature-settings: "palt"; }

.heading-display {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
  line-height: 1.6;
}

/* セクション見出しの英字ラベル：細い罫線＋イタリック */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--terra);
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--terra-light); }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* 本文の行長と行間 */
.prose-jp p + p { margin-top: 1.4em; }
.prose-jp { line-height: 2.1; color: var(--ink-soft); }

/* マーカー風の強調 */
.mark {
  background: linear-gradient(transparent 62%, rgba(217, 166, 136, 0.45) 62%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.4s var(--ease) 0.4s;
}
.is-in .mark, .mark.is-in { background-size: 100% 100%; }

/* 3. Buttons & Links ----------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.1rem 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .btn-arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.btn .btn-arrow svg { width: 0.9rem; height: 0.9rem; transition: transform 0.5s var(--ease); }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

.btn-sm { min-height: 3rem; padding: 0.4rem 0.4rem 0.4rem 1.5rem; font-size: 0.85rem; gap: 0.75rem; }
.btn-sm .btn-arrow { width: 2.2rem; height: 2.2rem; }

/* インラインSVGアイコンの器 */
.ico { display: inline-block; flex-shrink: 0; }
.ico svg { width: 100%; height: 100%; }

.btn-primary { background: var(--terra); color: #fff; }
.btn-primary::before { background: var(--forest); }
.btn-primary .btn-arrow { background: rgba(255, 255, 255, 0.18); }

.btn-forest { background: var(--forest); color: var(--linen); }
.btn-forest::before { background: var(--terra); }
.btn-forest .btn-arrow { background: rgba(255, 255, 255, 0.14); }

.btn-ghost { border: 1px solid rgba(31, 38, 34, 0.25); color: var(--ink); background: transparent; }
.btn-ghost::before { background: var(--forest); }
.btn-ghost:hover { color: var(--linen); border-color: var(--forest); }
.btn-ghost .btn-arrow { background: var(--forest); color: var(--linen); }
.btn-ghost:hover .btn-arrow { background: rgba(255, 255, 255, 0.16); }

.btn-light { background: var(--linen); color: var(--forest); }
.btn-light::before { background: var(--terra); }
.btn-light:hover { color: #fff; }
.btn-light .btn-arrow { background: var(--forest); color: var(--linen); }
.btn-light:hover .btn-arrow { background: rgba(255, 255, 255, 0.2); }

.btn-outline-light { border: 1px solid rgba(247, 242, 234, 0.4); color: var(--linen); }
.btn-outline-light::before { background: var(--linen); }
.btn-outline-light:hover { color: var(--forest); }
.btn-outline-light .btn-arrow { background: rgba(247, 242, 234, 0.14); }

/* テキストリンク：下線が左から伸びる */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link-line:hover::after { animation: line-in 0.9s var(--ease) forwards; }
@keyframes line-in {
  0% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.link-line svg { width: 0.85rem; height: 0.85rem; transition: transform 0.5s var(--ease); }
.link-line:hover svg { transform: translateX(4px); }

/* 4. Header / Navigation ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--header-h);
  transition: transform 0.6s var(--ease), background-color 0.5s ease, box-shadow 0.5s ease, height 0.5s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(247, 242, 234, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand { white-space: nowrap; flex-shrink: 0; }
.brand-mark { width: auto; height: 44px; transition: height 0.5s var(--ease), transform 0.8s var(--ease); }
.site-header.is-scrolled .brand-mark { height: 38px; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink);
}
.nav-link .nav-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  transition: color 0.4s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--terra);
  transform: translate(-50%, 6px) scale(0);
  transition: transform 0.5s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: translate(-50%, 0) scale(1); }
.nav-link:hover .nav-en,
.nav-link[aria-current="page"] .nav-en { color: var(--terra); }

/* 文字サイズ切替 */
.fontsize-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}
.fontsize-switch button {
  min-width: 2.1rem;
  height: 1.9rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.fontsize-switch button[aria-pressed="true"] { background: var(--forest); color: var(--linen); }
.fontsize-switch--dark { border-color: rgba(247, 242, 234, 0.2); background: rgba(255, 255, 255, 0.06); color: var(--sage); }
.fontsize-switch--dark button { color: rgba(247, 242, 234, 0.75); }
.fontsize-switch--dark button[aria-pressed="true"] { background: var(--linen); color: var(--forest); }

/* ハンバーガー */
.menu-toggle {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--linen);
  display: grid;
  place-items: center;
  z-index: 80;
  transition: background-color 0.4s ease;
}
.menu-toggle .bar {
  position: absolute;
  left: 50%;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.5s var(--ease), opacity 0.3s ease, width 0.5s var(--ease);
}
.menu-toggle .bar:nth-child(1) { transform: translate(-50%, -5px); }
.menu-toggle .bar:nth-child(2) { transform: translate(-50%, 5px); width: 0.85rem; margin-left: -0.2rem; }
.menu-toggle[aria-expanded="true"] { background: var(--terra); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); width: 1.25rem; margin-left: 0; }
.menu-toggle-label {
  position: absolute;
  right: calc(100% + 0.8rem);
  top: 50%;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--linen);
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-label {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
  transition-delay: 0.3s;
}

/* メニュー展開中：ヘッダーをメニューより前面に出し、閉じるボタンを常に見せる */
body.menu-open .site-header {
  z-index: 80;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
body.menu-open .site-header .brand-ja { color: var(--linen); }
body.menu-open .site-header .brand-en { color: var(--sage); }
@media (max-width: 479px) { body.menu-open .site-header .brand-en { opacity: 0; } }
body.menu-open .site-header .brand-mark { filter: brightness(0) invert(0.96); }
body.menu-open .site-header .btn-primary { background: var(--linen); color: var(--forest); }

/* 横幅が足りないとき（文字サイズ「大」など）はPCでもハンバーガーに切り替え（main.js が判定） */
html.nav-compact .desktop-nav { display: none; }
html.nav-compact .menu-toggle { display: grid; }
html.nav-compact .mobile-menu { display: block; }
/* 文字サイズ「大」：ヘッダーの横幅を広げ、メニューの間隔を詰めて1行に収める */
html.is-large-text .site-header > div { max-width: 1600px; }
html.is-large-text .desktop-nav ul { gap: 1.6rem; }
html.is-large-text .site-header .fontsize-label { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--forest);
  color: var(--linen);
  clip-path: circle(0% at calc(100% - 2.6rem) 2.6rem);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s linear 0.9s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem);
  visibility: visible;
  transition: clip-path 0.9s var(--ease), visibility 0s;
}
.mobile-menu .mm-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.mobile-menu.is-open .mm-item {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i, 0) * 0.07s);
}

/* 5. Opening loader ------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--linen);
  transition: clip-path 1.1s var(--ease-in-out), visibility 0s linear 1.1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loader-mark { width: 72px; opacity: 0; transform: scale(0.85); animation: loader-mark 1.1s var(--ease) 0.1s forwards; }
.loader-text {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  color: var(--forest);
  overflow: hidden;
}
.loader-text span { display: inline-block; transform: translateY(110%); animation: loader-text 1s var(--ease) 0.45s forwards; }
.loader-bar { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--terra);
  transform-origin: left;
  transform: scaleX(0);
  animation: loader-bar 1.4s var(--ease-in-out) 0.2s forwards;
}
@keyframes loader-mark { to { opacity: 1; transform: scale(1); } }
@keyframes loader-text { to { transform: none; } }
@keyframes loader-bar { to { transform: scaleX(1); } }

/* 6. Motion -------------------------------------------------------------- */
/* JSが有効なときだけ初期状態を隠す（JS無効時でも内容は必ず表示） */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 画像のカーテン・リビール */
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip-x"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip"] img,
.js [data-reveal="clip-x"] img { transform: scale(1.18); transition: transform 2.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in,
.js [data-reveal="clip-x"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img,
.js [data-reveal="clip-x"].is-in img { transform: scale(1); }

/* 一文字ずつ立ち上がる見出し */
.split-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.06em;
  margin-block: -0.06em;
}
.split-char > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--i) * 45ms);
}
.is-in .split-char > span { transform: none; }
.vertical .split-char { padding-block: 0; margin-block: 0; padding-inline: 0.06em; margin-inline: -0.06em; }

/* パララックス */
.parallax { position: relative; overflow: hidden; }
.parallax > img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: translate;
}

/* ケンバーンズ */
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-2%, -1.5%, 0); }
}

/* 画像ホバーズーム */
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform 1.4s var(--ease); }
.group:hover .zoom-img img, .zoom-img:hover img { transform: scale(1.06); }

/* マーキー */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-word {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--forest);
}
.marquee-word.is-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(36, 57, 47, 0.45);
}
.marquee-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: var(--terra); flex-shrink: 0; }

/* ゆっくり浮遊する装飾 */
.float-slow { animation: float 9s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(2deg); }
}

/* 7. Hero ---------------------------------------------------------------- */
.vertical {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: mixed;
  font-feature-settings: "vpal";
}
.hero-title {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 4.1vw, 4.1rem);
  line-height: 1.55;
  letter-spacing: 0.16em;
  color: var(--forest);
}
.hero-title .accent { color: var(--terra); }
/* デスクトップでは縦書き、スマートフォンでは横書き */
@media (min-width: 1024px) {
  .hero-title--vertical {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    font-feature-settings: "vpal";
    line-height: 1.75;
    max-height: calc(100svh - 300px);
  }
  .hero-title--vertical .split-char { padding-block: 0; margin-block: 0; padding-inline: 0.08em; margin-inline: -0.08em; }
  .lg-vertical { writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl; font-feature-settings: "vpal"; }
  .lg-vertical .split-char { padding-block: 0; margin-block: 0; padding-inline: 0.08em; margin-inline: -0.08em; }
}

/* 左上だけ大きく弧を描くアーチ型マスク */
.arch-tl { border-radius: clamp(120px, 18vw, 280px) 28px 28px 28px; }
.arch-top { border-radius: 999px 999px 28px 28px; }
.arch-round { border-radius: 28px; }

/* 回転するサークルバッジ */
.badge-rotate {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: var(--linen);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -20px rgba(36, 57, 47, 0.35);
}
.badge-rotate svg.badge-ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 26s linear infinite; }
.badge-rotate text {
  font-family: "Cormorant Garamond", serif;
  font-size: 9.5px;
  fill: var(--forest);
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.scroll-indicator .line { position: relative; width: 1px; height: 72px; background: var(--line); overflow: hidden; }
.scroll-indicator .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--forest);
  animation: scroll-line 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* 柔らかい光のにじみ */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

/* 下層ページのヒーロー */
.page-hero-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 11.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.page-hero-en .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(36, 57, 47, 0.5);
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb .sep { width: 1.25rem; height: 1px; background: currentColor; opacity: 0.5; }

/* 8. Components ---------------------------------------------------------- */
/* 選ばれる理由 */
.reason-item { position: relative; border-top: 1px solid var(--line); }
.reason-item:last-child { border-bottom: 1px solid var(--line); }
.reason-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.reason-item:hover::before { transform: scaleX(1); }
.reason-icon {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  background: #f9f4ee;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(31, 38, 34, 0.06);
}
.reason-icon img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.reason-item:hover .reason-icon { transform: rotate(-8deg) scale(1.06); box-shadow: 0 20px 40px -20px rgba(165, 95, 58, 0.45); }

/* サービスカード */
.service-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; }
.service-card .sc-img { position: absolute; inset: 0; z-index: -2; }
.service-card .sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(21, 34, 27, 0) 30%, rgba(21, 34, 27, 0.82) 100%);
  transition: opacity 0.8s var(--ease);
}
.service-card:hover .sc-img img { transform: scale(1.07); }
.circle-arrow {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 234, 0.5);
  color: var(--linen);
  flex-shrink: 0;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--ease), color 0.5s ease;
}
.circle-arrow svg { width: 1rem; height: 1rem; }
.group:hover .circle-arrow { background: var(--terra); border-color: var(--terra); transform: rotate(-45deg); }
.circle-arrow--dark { border-color: rgba(31, 38, 34, 0.25); color: var(--forest); }
.group:hover .circle-arrow--dark { color: #fff; }

/* カウンター */
.counter-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(3.25rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--forest);
  font-variant-numeric: lining-nums tabular-nums;
}

/* お客様の声（横スクロール・スナップ） */
.voices-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 420px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.voices-track::-webkit-scrollbar { display: none; }
.voices-track > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .voices-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
.voice-card { position: relative; transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.voice-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(36, 57, 47, 0.35); }
.voice-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--terra-light);
  height: 2.6rem;
  display: block;
}

/* お知らせ */
.news-item { position: relative; border-bottom: 1px solid var(--line); transition: background-color 0.5s ease; }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item a { transition: padding 0.6s var(--ease); }
.news-item:hover { background: rgba(255, 255, 255, 0.55); }
@media (min-width: 768px) { .news-item:hover a { padding-left: 1.5rem; padding-right: 1.5rem; } }
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  border: 1px solid currentColor;
}

/* 情報テーブル（dl） */
.info-table > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.info-table > div:first-child { border-top: 1px solid var(--line); }
.info-table dt { font-weight: 500; color: var(--forest); letter-spacing: 0.1em; }
.info-table dd { color: var(--ink-soft); }
@media (min-width: 768px) {
  .info-table > div { grid-template-columns: 11rem 1fr; gap: 2rem; }
}

/* 料金表 */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.price-table caption { caption-side: top; text-align: left; }
.price-table th, .price-table td { padding: 1.05rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--linen);
  background: var(--forest);
  border-bottom: 0;
}
.price-table thead th:last-child { text-align: right; }
.price-table thead th:first-child { border-top-left-radius: 14px; }
.price-table thead th:last-child { border-top-right-radius: 14px; }
.price-table tbody th { font-weight: 500; color: var(--forest); white-space: nowrap; }
.price-table tbody tr { transition: background-color 0.3s ease; }
.price-table tbody tr:hover { background: rgba(235, 225, 209, 0.45); }
.price-table td.num { text-align: right; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.price-table td.num small { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 0.75rem; margin-left: 0.2rem; color: var(--ink-mute); }
@media (max-width: 639px) {
  .price-table th, .price-table td { padding: 0.9rem 0.7rem; }
  .price-table td.num { font-size: 1.2rem; }
}
.price-value { display: inline-block; transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.price-value.is-switching { opacity: 0; transform: translateY(6px); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* タブ（料金の負担割合など） */
.seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  border-radius: 999px;
  background: var(--sand);
}
.seg button {
  position: relative;
  z-index: 1;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: color 0.4s ease;
}
.seg button[aria-selected="true"] { color: var(--linen); }
.seg .seg-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 999px;
  background: var(--forest);
  transition: transform 0.6s var(--ease), width 0.6s var(--ease);
}

/* サービス内アンカーナビ */
.subnav { scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative;
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.subnav a:hover { color: var(--forest); background: rgba(255, 255, 255, 0.7); }
.subnav a.is-active { background: var(--forest); color: var(--linen); }

/* アコーディオン（details/summary） */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.6rem 0.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q, .faq-a {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.1;
  flex-shrink: 0;
  width: 1.75rem;
}
.faq-q { color: var(--forest); }
.faq-a { color: var(--terra); }
.faq-plus { position: relative; width: 1.75rem; height: 1.75rem; flex-shrink: 0; margin-left: auto; border-radius: 999px; border: 1px solid var(--line); transition: background-color 0.4s ease, border-color 0.4s ease; }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--forest);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease), background-color 0.4s ease;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--forest); border-color: var(--forest); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--linen); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { overflow: hidden; }
.faq-body-inner { display: flex; gap: 1.25rem; padding: 0 0.25rem 1.8rem; }

/* 沿革タイムライン */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--line);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--terra);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}
.timeline-item { position: relative; padding-left: 2.75rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--linen);
  border: 1px solid var(--terra);
  transition: background-color 0.6s ease;
}
.timeline-item.is-in::before { background: var(--terra); }

/* 1日の流れ */
.dayflow { counter-reset: flow; }
.dayflow-item { position: relative; }
.dayflow-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
  font-variant-numeric: lining-nums;
}

/* 9. Gallery & Lightbox -------------------------------------------------- */
.gallery-filter button {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: all 0.4s var(--ease);
}
.gallery-filter button:hover { border-color: var(--forest); color: var(--forest); }
.gallery-filter button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--linen); }

.gallery-grid { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; column-gap: 1.5rem; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
@media (min-width: 1024px) { .gallery-item { margin-bottom: 1.5rem; } }
.gallery-item.is-hidden { display: none; }
.gallery-item.is-entering { opacity: 0; transform: translateY(20px) scale(0.98); }
.gallery-item button { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 22px; cursor: zoom-in; text-align: left; }
.gallery-item img { width: 100%; transition: transform 1.4s var(--ease), filter 0.8s ease; }
.gallery-item button:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  border-radius: 14px;
  background: rgba(247, 242, 234, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(calc(100% + 1rem));
  transition: transform 0.7s var(--ease);
}
.gallery-item button:hover .gallery-cap,
.gallery-item button:focus-visible .gallery-cap { transform: none; }
@media (hover: none) { .gallery-cap { transform: none; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 6rem;
  background: rgba(21, 34, 27, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s ease, visibility 0s; }
.lightbox figure { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.lightbox img {
  max-height: calc(100svh - 12rem);
  width: auto;
  border-radius: 18px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.5s ease;
}
.lightbox.is-open img.is-loaded { transform: none; opacity: 1; }
.lightbox figcaption { color: var(--linen); text-align: center; letter-spacing: 0.12em; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 234, 0.35);
  color: var(--linen);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.lb-btn:hover { background: var(--terra); border-color: var(--terra); }
.lb-btn svg { width: 1.1rem; height: 1.1rem; }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; bottom: 1.5rem; }
.lb-next { right: 1.25rem; bottom: 1.5rem; }
@media (min-width: 1024px) {
  .lb-prev { left: 2rem; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 2rem; top: 50%; bottom: auto; transform: translateY(-50%); }
}
.lb-count { position: absolute; left: 50%; bottom: 2.1rem; transform: translateX(-50%); font-family: "Cormorant Garamond", serif; font-style: italic; color: rgba(247, 242, 234, 0.7); letter-spacing: 0.2em; }

/* 10. Staff -------------------------------------------------------------- */
.staff-card .staff-photo { position: relative; overflow: hidden; border-radius: 999px 999px 24px 24px; background: var(--sand); }
.staff-card .staff-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.4s var(--ease); }
.staff-card:hover .staff-photo img { transform: scale(1.05); }
.staff-msg {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.5rem 1.5rem;
  color: var(--linen);
  font-size: 0.9rem;
  line-height: 1.9;
  background: linear-gradient(180deg, rgba(21, 34, 27, 0) 0%, rgba(21, 34, 27, 0.88) 45%);
  transform: translateY(100%);
  transition: transform 0.8s var(--ease);
}
.staff-card:hover .staff-msg, .staff-card:focus-within .staff-msg { transform: none; }
.staff-quote-touch { display: none; }
@media (hover: none) {
  .staff-msg { display: none; }
  .staff-quote-touch { display: block; }
}

/* 11. Form --------------------------------------------------------------- */
.form-steps { display: flex; align-items: center; gap: 0.75rem; counter-reset: step; }
.form-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  transition: color 0.4s ease;
}
.form-step .num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  transition: all 0.5s var(--ease);
}
.form-step.is-current, .form-step.is-done { color: var(--forest); }
.form-step.is-current .num { background: var(--forest); border-color: var(--forest); color: var(--linen); }
.form-step.is-done .num { background: var(--terra); border-color: var(--terra); color: #fff; }
.form-steps .bar { flex: 1; height: 1px; background: var(--line); min-width: 1.5rem; }

.field-label { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; letter-spacing: 0.1em; color: var(--forest); margin-bottom: 0.65rem; }
.req, .opt {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.req { background: var(--terra); color: #fff; }
.opt { background: var(--sand); color: var(--ink-soft); }

.input {
  width: 100%;
  min-height: 3.6rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 38, 34, 0.16);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.input::placeholder { color: #a3a6a1; }
.input:hover { border-color: rgba(31, 38, 34, 0.32); }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(36, 57, 47, 0.12); }
textarea.input { min-height: 11rem; resize: vertical; line-height: 1.9; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324392F' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.1rem;
}
.field.has-error .input { border-color: #b23b2a; background: #fff8f6; }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(178, 59, 42, 0.12); }
.field-error { display: none; margin-top: 0.5rem; font-size: 0.85rem; color: #a23423; letter-spacing: 0.06em; }
.field.has-error .field-error { display: flex; align-items: center; gap: 0.4rem; }

/* ラジオをカードで */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 38, 34, 0.16);
  background: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: all 0.35s var(--ease);
}
.choice span::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 38, 34, 0.3);
  flex-shrink: 0;
  transition: all 0.35s var(--ease);
}
.choice:hover span { border-color: var(--forest); }
.choice input:checked + span { border-color: var(--forest); background: #f1f4ef; color: var(--forest); font-weight: 500; }
.choice input:checked + span::before { border: 5px solid var(--forest); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(165, 95, 58, 0.45); }

.check { display: inline-flex; align-items: flex-start; gap: 0.8rem; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin-top: 0.25rem; border-radius: 6px; border: 1px solid rgba(31, 38, 34, 0.35); background: #fff; flex-shrink: 0; display: grid; place-items: center; transition: all 0.3s var(--ease); }
.check input::after { content: ""; width: 0.4rem; height: 0.75rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -0.15rem; transition: transform 0.3s var(--ease); }
.check input:checked { background: var(--forest); border-color: var(--forest); }
.check input:checked::after { transform: rotate(45deg) scale(1); }

.confirm-list > div { display: grid; gap: 0.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-size: 0.85rem; color: var(--ink-mute); letter-spacing: 0.1em; }
.confirm-list dd { white-space: pre-wrap; word-break: break-word; }
@media (min-width: 768px) { .confirm-list > div { grid-template-columns: 12rem 1fr; gap: 1.5rem; } }

.form-panel { animation: panel-in 0.9s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ご利用までの流れ */
.flow-step { position: relative; }
.flow-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--terra-light);
}

/* 12. Footer & floating UI ---------------------------------------------- */
.site-footer { position: relative; background: var(--forest-900); color: rgba(247, 242, 234, 0.82); overflow: hidden; }
.site-footer a { transition: color 0.3s ease; }
.site-footer a:hover { color: var(--terra-light); }
.footer-big {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(4.5rem, 16vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 234, 0.16);
  white-space: nowrap;
  user-select: none;
}

.mobile-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 65;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(247, 242, 234, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgba(21, 34, 27, 0.4);
  transform: translateY(150%);
  transition: transform 0.7s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; }
.mobile-cta svg { width: 1.05rem; height: 1.05rem; }

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--linen);
  box-shadow: 0 16px 30px -14px rgba(21, 34, 27, 0.5);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease), background-color 0.4s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--terra); }
.to-top svg { width: 1.1rem; height: 1.1rem; }
.to-top .progress-ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.to-top .progress-ring circle { fill: none; stroke: var(--terra); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset 0.15s linear; }

/* 13. Accessibility ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-reveal] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-char > span { transform: none !important; }
  .marquee-track { animation: none; }
  .loader { display: none; }
}
