/* 株式会社雉寅 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #f4efe4;
  color: #221e1b;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #221e1b; }
a:hover { color: #a8331f; }
a:focus-visible, summary:focus-visible { outline: 2px solid #a8331f; outline-offset: 3px; }

/* ── 絵のパート ───────────────── */
.track { position: relative; height: calc(100vh + 600px); height: calc(100svh + 600px); background: #d6c6a1; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.js .fallback { display: none; }
html:not(.js) .stage canvas { display: none; }
html:not(.js) .track { height: auto; }
html:not(.js) .stage { position: relative; }

/* 題箋 */
.daisen {
  position: absolute; top: 32px; right: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 14px 12px;
  background: #efe6d2; border: 1px solid #b9a77f;
  box-shadow: 0 1px 0 rgba(80, 60, 30, .15);
}
.daisen-name {
  margin: 0; writing-mode: vertical-rl;
  font-family: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: .24em;
}
.daisen-copy { margin: 0; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; line-height: 1.6; color: #3a3128; }
.seal {
  width: 30px; height: 30px; background: #a8331f; color: #f4efe4; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 11px; line-height: 1;
  writing-mode: vertical-rl;
}
.daisen-link {
  margin-top: 4px; display: inline-block; writing-mode: vertical-rl;
  font-size: 12px; line-height: 1; letter-spacing: .2em; padding: 8px 16px; text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .daisen { top: 16px; right: 16px; padding: 16px 10px 8px; gap: 10px; }
  .daisen-name { font-size: 26px; }
}

/* スクロールの手がかり */
.cue { position: absolute; left: 50%; bottom: 20px; width: 1px; height: 56px; margin-left: -.5px; overflow: hidden; transition: opacity .3s; }
.cue-line { width: 1px; height: 56px; background: #3a3128; animation: cue 2.4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .cue-line { animation: none; } }

/* ── 会社概要 ───────────────── */
main { display: block; }
.about { max-width: 1280px; margin: 0 auto; padding: 88px 48px 64px; display: flex; flex-wrap: wrap; gap: 56px; }
.vertical-heading {
  margin: 0; flex: 0 0 auto; writing-mode: vertical-rl;
  font-family: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 800; font-size: 26px; letter-spacing: .3em;
}
.facts { margin: 0; flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 56px; }
.facts > div { padding: 16px 0; border-top: 1px solid #d6ccb8; }
.facts dt { font-size: 12px; letter-spacing: .14em; color: #5d5246; }
.facts dd { margin: 6px 0 0; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }

.notice { max-width: 1280px; margin: 0 auto; padding: 0 48px 72px; }
.notice-box { padding: 24px 28px; background: #ebe3d2; }
.notice h2 { margin: 0 0 10px; font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 16px; letter-spacing: .12em; color: #a8331f; }
.notice p { margin: 0; font-size: 14px; line-height: 1.9; }
.notice p + p { margin-top: 8px; }

.security { max-width: 1280px; margin: 0 auto; padding: 0 48px 40px; font-size: 13px; line-height: 1.9; color: #5d5246; }
.security details { border-top: 1px solid #d6ccb8; padding-top: 16px; }
.security summary { cursor: pointer; color: #221e1b; min-height: 44px; display: flex; align-items: center; }
.policy { padding: 8px 0; max-width: 880px; color: #3a3128; }
.policy p { margin: 0; }
.policy ol { margin: 12px 0 0; padding-left: 1.6em; display: flex; flex-direction: column; gap: 6px; }
.policy .sign { margin-top: 12px; color: #5d5246; }
.sa { margin: 8px 0 0; }

.footer { max-width: 1280px; margin: 0 auto; padding: 0 48px 40px; font-size: 12px; color: #5d5246; letter-spacing: .08em; }

@media (max-width: 600px) {
  .about { padding: 64px 24px 48px; gap: 32px; }
  .notice, .security, .footer { padding-left: 24px; padding-right: 24px; }
}
