/* TIMEGRAPH 公式ホームページ プロトタイプ：共通 */

:root {
  --c-charcoal: #1b1a18;
  --c-charcoal-warm: #34312d;
  --c-cream: #f3eee4;
  --c-ivory: #faf7f0;
  --c-stone: #b8ad9c;
  --c-yellow: #d8a900;
  --c-ink: #24211d;
  --c-ink-soft: #4b463f;
  --c-line-dark: rgba(250, 247, 240, .28);
  --c-line-light: rgba(36, 33, 29, .22);

  --f-serif: "Shippori Mincho", "Zen Old Mincho", "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-sans: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  --f-latin: "Montserrat", "Helvetica Neue", "Arial", sans-serif;

  --gutter: clamp(20px, 5.4vw, 64px);
  --ease-out: cubic-bezier(.22, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .06em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  padding: 12px 18px; background: var(--c-charcoal); color: var(--c-ivory);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
/* Sub pages have a fixed header: keyboard focus and in-page links stop below it, and above the follow buttons at the
   bottom (shia-official-home-20261106-012029). */
html:has(body.page-sub) { scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 24px; }
html:has(.lp-follow), html:has(.follow-cta) { scroll-padding-bottom: 112px; }

.br-sp { display: none; }
.only-sp { display: none; }
@media (max-width: 767px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
  .only-pc { display: none; }
  .only-sp { display: inline; }
}

/* ラベル・リンク */
.eyebrow {
  font-family: var(--f-latin);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--c-ink-soft);
  line-height: 1.6;
}
.eyebrow span { margin: 0 .5em; }
.eyebrow--light { color: rgba(250, 247, 240, .82); }
.eyebrow--rule::after {
  content: ""; display: block; width: 30px; height: 1px; margin-top: 14px; background: var(--c-yellow);
}

.link-line {
  position: relative;
  display: inline-flex; align-items: center; gap: 0;
  min-height: 44px;
  padding-left: 46px;
  font-family: var(--f-latin);
  font-size: 13px;
  letter-spacing: .26em;
  text-decoration: none;
}
.link-line::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 1px; background: var(--c-yellow);
}
.link-line::after {
  content: ""; position: absolute; left: 46px; right: .26em; bottom: 9px; height: 1px; background: currentColor; opacity: .7;
  transform-origin: left; transition: transform .35s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(.6); }

.chev {
  display: inline-block; width: 9px; height: 9px;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
}
.chev--r { transform: rotate(-45deg); margin-left: 14px; }
.chev--l { transform: rotate(135deg); }
.chev--d { transform: rotate(45deg) translate(-2px, -2px); }

.arrow {
  position: relative; display: inline-block; width: 38px; height: 10px; flex: none;
}
.arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.arrow::after {
  content: ""; position: absolute; right: 1px; top: 50%; width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg);
}

.btn-outline, .btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--f-serif); font-size: 17px; letter-spacing: .24em;
  text-decoration: none; cursor: pointer; border-radius: 4px;
}
.btn-outline { border: 1px solid currentColor; background: transparent; }
.btn-outline .arrow { width: 28px; }
.btn-outline--light { color: var(--c-ivory); border-color: rgba(250, 247, 240, .7); }
.btn-solid { border: 1px solid var(--c-charcoal); background: var(--c-charcoal); color: var(--c-ivory); }
.btn-ghost { border: 1px solid rgba(250, 247, 240, .55); background: transparent; color: var(--c-ivory); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
}

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: color .4s, opacity .5s;
}
.site-header > * { pointer-events: auto; }
.site-header[data-tone="dark"] { color: var(--c-ivory); }
.site-header[data-tone="light"] { color: var(--c-ink); }
/* スクロール後は文字が本文と重ならないよう薄い下地を敷く */
.site-header.is-scrolled { transition: color .4s, opacity .5s, background-color .3s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header.is-scrolled[data-tone="light"] { background-color: rgba(243, 238, 228, .86); }
.site-header.is-scrolled[data-tone="dark"] { background-color: rgba(20, 19, 17, .72); }
.site-logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-latin); font-size: 20px; font-weight: 400; letter-spacing: .52em;
  text-decoration: none;
}
.menu-button {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -10px;
}
.menu-button__lines, .menu-button__lines::before {
  display: block; width: 30px; height: 1.5px; background: currentColor; position: relative;
}
.menu-button__lines { transform: translateY(-4px); }
.menu-button__lines::before { content: ""; position: absolute; top: 8px; left: 0; }

/* メニュー */
.site-menu {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 19, 17, .96); color: var(--c-ivory);
  overflow-y: auto;
}
.site-menu[hidden] { display: none; }
.site-menu__inner { max-width: 720px; margin: 0 auto; padding: 96px var(--gutter) 64px; }
.site-menu__close {
  position: absolute; top: 14px; right: calc(var(--gutter) - 8px);
  min-width: 88px; min-height: 48px; border: 1px solid rgba(250, 247, 240, .4); background: none; border-radius: 4px; cursor: pointer;
  font-size: 14px;
}
.site-menu__list li + li { border-top: 1px solid var(--c-line-dark); }
.site-menu__list a {
  display: flex; align-items: baseline; gap: 24px; min-height: 64px; padding: 16px 0;
  font-family: var(--f-serif); font-size: 22px; letter-spacing: .14em; text-decoration: none;
}
.site-menu__list span { font-family: var(--f-latin); font-size: 12px; color: var(--c-yellow); width: 2em; }

/* フッター */
.site-footer {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0;
  padding: 44px var(--gutter) 46px;
  background: #151412; color: rgba(250, 247, 240, .86);
  border-top: 1px solid rgba(250, 247, 240, .12);
}
.site-footer__logo { font-family: var(--f-latin); font-size: 26px; letter-spacing: .58em; color: var(--c-ivory); }
.site-footer__copy { margin-top: 10px; font-family: var(--f-latin); font-size: 11px; letter-spacing: .2em; opacity: .75; }
.site-footer__nav {
  margin-left: 48px; padding-left: 32px; border-left: 1px solid rgba(250, 247, 240, .3);
}
/* nine links (the refund policy since 0.5.0): three rows of three, each label on one line from 1280px */
.site-footer__nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 0; }
.site-footer__nav li { position: relative; }
.site-footer__nav li:not(:nth-child(3n+1))::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: rgba(250, 247, 240, .3);
}
.site-footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 26px;
  font-size: 13px; letter-spacing: .1em; text-decoration: none;
}
.site-footer__nav a:hover { color: var(--c-ivory); text-decoration: underline; text-underline-offset: 5px; }
.page-top {
  display: grid; justify-items: center; gap: 8px; min-width: 96px; min-height: 64px; padding: 8px 0 8px 32px;
  border-left: 1px solid rgba(250, 247, 240, .3);
  font-family: var(--f-latin); font-size: 11px; letter-spacing: .24em; text-decoration: none;
}
.page-top__mark { width: 14px; height: 14px; border-left: 1.4px solid currentColor; border-top: 1.4px solid currentColor; transform: translateY(5px) rotate(45deg); }

/* below 1280px the links go under the logo (beside it the labels wrapped from 1279px down) */
@media (max-width: 1279px) {
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer__nav { grid-column: 1 / -1; grid-row: 2; margin: 28px 0 0; padding: 0; border: 0; }
  .site-footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__nav li::before { display: none; }
  .site-footer__nav li:not(:nth-child(3n+1))::before { display: none; }
  .site-footer__nav a { padding: 0 0 0 26px; position: relative; }
  .site-footer__nav a::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: rgba(250, 247, 240, .4); }
  .page-top { grid-column: 2; grid-row: 1; border: 0; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .site-logo { font-size: 17px; letter-spacing: .5em; }
  .site-footer { grid-template-columns: 1fr auto; padding: 28px 22px 16px; }
  .site-footer__brand { display: contents; }
  .site-footer__logo { grid-column: 1 / -1; grid-row: 1; font-size: 21px; }
  .site-footer__nav { grid-row: 2; margin-top: 10px; }
  .site-footer__nav ul { grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
  .site-footer__nav a { font-size: 12px; letter-spacing: 0; padding-left: 16px; }
  .site-footer::before {
    content: ""; grid-column: 1 / -1; grid-row: 3; align-self: start;
    margin-top: 10px; border-top: 1px solid rgba(250, 247, 240, .2);
  }
  .site-footer__copy { grid-column: 1; grid-row: 3; align-self: center; margin: 10px 0 0; }
  .page-top { grid-column: 2; grid-row: 3; min-height: 48px; margin-top: 10px; padding: 0; border: 0; grid-template-columns: auto auto; align-items: center; gap: 18px; }
  .page-top__mark { transform: translateY(4px) rotate(45deg); }
}

/* 追尾CTA */
.follow-cta {
  position: fixed; z-index: 50; right: 28px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 26px;
  border-radius: 999px; background: rgba(27, 26, 24, .92); color: var(--c-ivory);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  font-family: var(--f-serif); font-size: 16px; letter-spacing: .24em; text-decoration: none;
  transition: opacity .35s, transform .35s var(--ease-out), visibility 0s .35s;
  opacity: 0; visibility: hidden; transform: translateY(16px);
}
.follow-cta.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.no-js .follow-cta { opacity: 1; visibility: visible; transform: none; }
.follow-cta::before { content: ""; width: 18px; height: 1px; background: var(--c-yellow); }
.down {
  display: inline-block; position: relative; width: 1px; height: 16px; background: currentColor; margin-left: 2px;
}
.down::after {
  content: ""; position: absolute; left: -4px; bottom: 0; width: 8px; height: 8px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transform-origin: 70% 70%;
}
@media (max-width: 767px) {
  .follow-cta { left: 50%; right: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px); }
  .follow-cta.is-visible { transform: translate(-50%, 0); }
  .no-js .follow-cta { transform: translate(-50%, 0); }
}

/* 扉の入場・退出（画面全体） */
.passage {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden;
  display: grid; place-items: center; perspective: 1200px;
}
.passage.is-active { visibility: visible; pointer-events: auto; }
.passage__door {
  position: absolute; left: 0; top: 0;
  transform-origin: 50% 55%;
  transform-style: preserve-3d;
  will-change: transform, filter;
}
.passage__opening {
  position: absolute; inset: 2%;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 249, 220, .98) 0 8%, rgba(255, 208, 130, .86) 28%, rgba(88, 56, 28, .64) 62%, rgba(10, 8, 7, .95) 100%),
    linear-gradient(180deg, #cf9d61, #21170f);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, .88), 0 0 34px rgba(255, 205, 128, .48);
}
.passage__door img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 3% 50%;
  backface-visibility: hidden;
  will-change: transform, filter;
  filter: drop-shadow(12px 10px 12px rgba(0, 0, 0, .38));
}
.passage__door::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 235, 196, .2), inset 0 0 28px rgba(0, 0, 0, .5);
}
.passage__veil { position: absolute; inset: 0; background: #0c0b0a; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}
@media (max-width: 374px) {
  .site-footer__nav a { font-size: 11.5px; letter-spacing: 0; padding-left: 14px; }
}
