@charset "UTF-8";
:root {
  --font-serif-italic: "Cormorant Garamond", serif;
  --font-serif: "Cormorant Garamond", "Zen Old Mincho", serif;
  --font-sans: "Montserrat", sans-serif;
  --font-futura-like: "Futura PT", "Futura", "Avenir", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ui-ease-v1: cubic-bezier(0.4, 0, 0.2, 1);
  --color-text-main: #1a1a1a;
  --header-h: 5.5rem;
  --header-bg: transparent;
}

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

a {
  text-decoration: none;
  color: inherit;
}

body.no-scroll {
  overflow: hidden;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

body:not(.home) {
  --header-bg: rgba(255, 255, 255, 0.92);
  padding-top: var(--header-h);
  scroll-padding-top: calc(var(--header-h) + 12px);
}

.page-hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 8vh, 5rem) 4vw;
  background: var(--bg-color, #f8f8f8);
}

.page-hero__inner {
  width: min(1040px, 90vw);
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0 0 1.2rem;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: var(--font-serif, "Cormorant Garamond", "Zen Old Mincho", serif);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  line-height: 2.2;
}

.page-hero .hero-subhead {
  /* .page-hero p の max-width:70ch が効くので、左右autoで“箱ごと”中央へ */
  margin: 0.35rem auto 1rem;
  /* 70ch に制限されても中央に来るが、念のため制限を解除（短い1行なので問題なし） */
  max-width: none;
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-weight: 500;
  /* mobileで下限0.95remに張り付いて“大きい”問題を回避しつつ、PCでも上がりすぎない */
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.72);
}

.page-hero--no-lead .hero-subhead {
  position: relative;
  --cue-gap: clamp(0.9rem, 2vh, 1.15rem);
  --cue-h: clamp(56px, 6.5vh, 78px);
  --cue-seg: clamp(16px, 2vh, 22px);
  padding-bottom: calc(var(--cue-gap) + var(--cue-h));
}

.page-hero--no-lead .hero-subhead::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + var(--cue-gap));
  transform: translateX(-50%);
  width: 1px;
  height: var(--cue-h);
  background: currentColor;
  opacity: 0.14;
  pointer-events: none;
}

.page-hero--no-lead .hero-subhead::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + var(--cue-gap));
  width: 1px;
  height: var(--cue-seg);
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  animation: heroScrollDrop 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform: translateX(-50%) translateY(calc(-1 * var(--cue-seg)));
}

@keyframes heroScrollDrop {
  0% {
    transform: translateX(-50%) translateY(calc(-1 * var(--cue-seg)));
    opacity: 0;
  }
  16% {
    transform: translateX(-50%) translateY(calc(-1 * var(--cue-seg)));
    opacity: 0.38;
  }
  65% {
    transform: translateX(-50%) translateY(var(--cue-h));
    opacity: 0.38;
  }
  85% {
    transform: translateX(-50%) translateY(var(--cue-h));
    opacity: 0.38;
  }
  100% {
    transform: translateX(-50%) translateY(var(--cue-h));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero--no-lead .hero-subhead::before {
    animation: none;
    opacity: 0;
  }
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 160;
  pointer-events: auto;
  isolation: isolate;
  background: var(--header-bg);
}

.site-header > * {
  pointer-events: auto;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.logo .logo-main {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--color-text-main);
}

.logo .logo-sub {
  font-family: var(--font-futura-like);
  font-size: 1.05rem;
  letter-spacing: 0.55em;
  font-weight: 300;
  color: rgba(50, 50, 50, 0.75);
  text-transform: lowercase;
  padding-left: 0.08em;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text-main);
  transition: transform 260ms ease, opacity 220ms ease;
  transform-origin: center;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* =========================================================
   Fix: Keep TOP + close (X) clickable
   - Header stays above overlay so menu-btn isn't blocked
   - Menu content starts below header height
   - Modal (200) remains top-most
========================================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150; /* keep under header(160), above page */
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease;
}

.menu-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 220ms ease;
}

.menu-overlay.is-open .menu-backdrop {
  opacity: 1;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 88vw);
  background: rgba(255, 255, 255, 0.82);
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  transform: translateX(12px);
  opacity: 0;
  transition: transform 260ms var(--ui-ease-v1), opacity 260ms ease;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h, 5.8rem) + 1rem) 2rem 2rem;
  overflow-y: auto;
}

.menu-overlay.is-open .menu-panel {
  transform: translateX(0);
  opacity: 1;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0;
  padding-left: 0;
  text-align: left;
}

.menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(50, 50, 50, 0.08);
  font-family: var(--font-futura-like);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(30, 30, 30, 0.9);
}

.menu-link:hover {
  color: rgb(0, 0, 0);
  border-bottom-color: rgba(50, 50, 50, 0.14);
}

.submenu-list {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.submenu-link {
  display: block;
  padding: 0.5rem 0.2rem;
  font-family: var(--font-futura-like);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: rgba(30, 30, 30, 0.65);
  transition: color 180ms ease;
}

.submenu-link:hover {
  color: rgba(0, 0, 0, 0.9);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  min-height: 0;
}

.site-footer {
  margin-top: 0;
  padding: 1.25rem 4vw 1.75rem;
  border-top: none;
  background: transparent;
  backdrop-filter: none;
}

.site-footer__inner {
  max-width: min(1080px, 92vw);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-futura-like);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: rgba(30, 30, 30, 0.55);
}

body.home {
  --home-footer-offset: calc(2.1rem + env(safe-area-inset-bottom));
}

body.home .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.65rem 4vw calc(0.65rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

body.home .site-footer__inner {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem;
  }
  .logo .logo-main {
    font-size: 2.2rem;
  }
  .logo .logo-sub {
    font-size: 0.95rem;
    letter-spacing: 0.45em;
  }
  .menu-panel {
    padding: calc(var(--header-h, 5.2rem) + 1rem) 1.6rem 1.6rem;
  }
  .menu-link {
    letter-spacing: 0.22em;
  }
}
/* =========================================================
   Header padding fix for tablet
   - Keep vertical padding (header height) stable
   - Reduce horizontal padding so header doesn't feel "detached"
========================================================= */
@media (max-width: 1024px) {
  .site-header {
    /* was: 2.5rem 4rem; keep vertical, reduce horizontal */
    padding: 2.5rem 2.5rem;
  }
}
.offline-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
  color: #111;
  max-width: 360px;
}

.offline-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
}

.offline-badge__text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.offline-badge[data-status=\"caching\"] .offline-badge__dot,
.offline-badge[data-status=\"registering\"] .offline-badge__dot {
  background: rgba(255, 140, 0, 0.85);
}

.offline-badge[data-status=\"ok\"] .offline-badge__dot {
  background: rgba(0, 160, 80, 0.85);
}

.offline-badge[data-status=\"failed\"] .offline-badge__dot {
  background: rgba(200, 0, 0, 0.85);
}

.offline-badge__reason {
  font-size: 11px;
  line-height: 1.25;
  color: #333;
  word-break: break-word;
  white-space: normal;
}

.offline-badge__retry {
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.1;
  border-radius: 12px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  cursor: pointer;
}
