/* ═══════════════════════════════════════════════════════════
   COMPONENTS — header · nav · drawer · buttons · footer
   ═══════════════════════════════════════════════════════════ */

/* ── Header ─────────────────────────────────────────────────── */
#hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem,4vw,3rem);
  height: var(--header-h);
  background: rgba(10,10,10,.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
#hd.solid {
  background: rgba(245,242,237,.97);
  border-color: var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.15rem;
  font-weight: 400; letter-spacing: .18em; color: #fff;
  transition: color .3s;
}
.logo-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .3s;
}
.logo-ring svg { width: 9px; height: 9px; fill: #fff; transition: fill .3s; }
.logo-name     { display: block; line-height: 1; }
.logo-sub {
  font-family: var(--sans); font-size: .55rem; letter-spacing: .12em;
  color: rgba(255,255,255,.6); display: block; margin-top: 2px;
  font-weight: 300; text-transform: lowercase; transition: color .3s;
}

#hd.solid .logo          { color: var(--text); }
#hd.solid .logo-ring     { border-color: var(--accent); }
#hd.solid .logo-ring svg { fill: var(--accent); }
#hd.solid .logo-sub      { color: var(--muted); }

/* ── Primary nav ─────────────────────────────────────────────── */
.hnav { display: flex; align-items: center; gap: 2rem; }
.hnav a {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.8); transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.hnav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .3s var(--ease);
}
.hnav a:hover         { color: #fff; }
.hnav a:hover::after  { width: 100%; }
#hd.solid .hnav a       { color: var(--muted); }
#hd.solid .hnav a:hover { color: var(--text); }

/* ── Header action buttons ───────────────────────────────────── */
.hbtns { display: flex; align-items: center; gap: .5rem; }
.hbtn {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 0 1.1rem; border: 1px solid transparent;
  transition: .22s var(--ease); white-space: nowrap;
  display: inline-flex; align-items: center; height: 38px;
}
.hbtn-o { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.85); }
.hbtn-o:hover { border-color: #fff; color: #fff; }
.hbtn-f { border-color: var(--accent); background: var(--accent); color: #fff; }
.hbtn-f:hover { background: transparent; color: var(--accent); }
#hd.solid .hbtn-o { border-color: rgba(26,24,20,.25); color: rgba(26,24,20,.7); }

/* ── Hamburger ───────────────────────────────────────────────── */
#ham {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; width: 42px; min-height: 44px;
  align-items: center; justify-content: center;
}
#ham span {
  display: block; height: 1.5px; background: #fff;
  transition: .28s var(--ease); border-radius: 1px;
}
#ham span:nth-child(1) { width: 22px; }
#ham span:nth-child(2) { width: 14px; align-self: flex-end; }
#ham span:nth-child(3) { width: 18px; }
#ham.x span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
#ham.x span:nth-child(2) { opacity: 0; }
#ham.x span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }
#hd.solid #ham span { background: var(--text); }

/* ── Drawer ──────────────────────────────────────────────────── */
#drawer {
  display: none; position: fixed; inset: 0; z-index: 290;
  background: var(--bg); flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem; padding-top: var(--header-h);
}
#drawer.on { display: flex; }
#drawer a:not(.dsub-a) {
  font-family: var(--serif);
  font-size: clamp(1.8rem,7vw,2.8rem);
  font-weight: 400; letter-spacing: .04em;
  color: var(--text); transition: color .2s;
}
#drawer a:not(.dsub-a):hover { color: var(--accent); }
.dsub      { display: flex; gap: 1.5rem; margin-top: .25rem; }
.dsub-a {
  font-family: var(--sans); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.dsub-a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .hnav { display: none; }
  #ham { display: flex; }
}
/* 小さい画面でボタンが詰まらないよう両ボタンをコンパクトに */
@media (max-width: 400px) {
  .hbtn { font-size: .64rem; padding: 0 .75rem; letter-spacing: .1em; }
}

/* ── Button system ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-size: .9rem; font-weight: 400;
  letter-spacing: .08em; padding: .85rem 2rem;
  border: 1px solid transparent; min-height: 50px;
  transition: .25s var(--ease); cursor: pointer; white-space: nowrap;
}
.btn--primary  { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: transparent; color: var(--accent); }

.btn--outline  { border-color: rgba(26,24,20,.25); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost-white { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--white { background: #fff; border-color: #fff; color: var(--accent); }
.btn--white:hover { background: transparent; color: #fff; }

.btn--lg { font-size: 1rem; padding: 1rem 2.5rem; min-height: 56px; }

/* Inline link-style button */
.lbtn {
  display: inline-flex; align-items: center; min-height: 40px;
  font-size: .85rem; letter-spacing: .1em;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(26,24,20,.22); color: var(--text);
  transition: .2s var(--ease); margin-bottom: .4rem;
}
.lbtn:hover { border-color: var(--accent); color: var(--accent); }

/* ── YouTube facade (click-to-load) ─────────────────────────── */
.yt-facade {
  position: absolute; inset: 0;
  cursor: pointer; background: #000; display: block;
}
.yt-facade img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .82;
  transition: opacity .2s;
}
.yt-facade:hover img { opacity: 1; }
.yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), background .2s;
  pointer-events: none;
}
.yt-facade:hover .yt-play {
  transform: translate(-50%,-50%) scale(1.1);
  background: #fff;
}
.yt-play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.ftin {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.ftbrand   { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .2em; color: var(--text); }
.ftcopy    { font-size: .7rem; color: var(--muted); letter-spacing: .07em; margin-top: 4px; }
.ftics     { display: flex; gap: 1.1rem; align-items: center; }
.ftics a   { color: var(--muted); transition: color .2s; display: flex; }
.ftics a:hover { color: var(--accent); }
.ftics svg { width: 20px; height: 20px; }
