/* ==========================================================
   Apple風 ダークテーマ — デザイントークン
   ========================================================== */
:root {
  --obsidian: #000000;
  --graphite: #0e0e0e;
  --carbon: #1d1d1f;
  --steel: #333336;
  --slate: #6e6e73;
  --ash: #86868b;
  --porcelain: #f5f5f7;
  --white: #ffffff;
  --blue: #0071e3;
  --link: #2997ff;
  --cobalt: #0066cc;
  --copper: #b64400;

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Inter", "Noto Sans JP", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", "Inter", "Noto Sans JP", sans-serif;

  --radius-card: 28px;
  --radius-nav: 20px;
  --radius-pill: 980px;

  --container: 1080px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--porcelain);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- フォーカス表示（キーボード操作時のみ） ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
.pale-card a:focus-visible { outline-color: var(--cobalt); }
/* スキップリンクで移動した本文コンテナ自体には枠を出さない（操作対象ではないため） */
#main:focus { outline: none; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- グローバルナビ ---------- */
.global-nav {
  height: 44px;
  background: var(--obsidian);
}
.global-nav__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.global-nav__logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #cccccc;
}
.global-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav__links a {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.global-nav__links a:hover { color: var(--white); }

/* ---------- ローカルナビ ---------- */
.local-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 16px 0;
}
.local-nav {
  max-width: var(--container);
  margin: 0 auto;
  height: 52px;
  padding: 0 12px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 14, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--radius-nav);
  box-shadow: rgb(40, 40, 40) 0 0 0 1px;
}
.local-nav__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.228px;
}
.local-nav__right { display: flex; align-items: center; gap: 24px; }
.local-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ash);
  transition: color 0.2s;
}
.local-nav__link:hover,
.local-nav__link.is-active { color: var(--porcelain); }

/* ---------- ピルボタン ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.12px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.pill--blue { background: var(--blue); color: var(--white); }
.pill--blue:hover { background: #0077ed; }
.pill--outline {
  color: var(--porcelain);
  box-shadow: inset 0 0 0 1px var(--slate);
}
.pill--outline:hover { box-shadow: inset 0 0 0 1px var(--porcelain); }
.pill--lg { font-size: 17px; line-height: 1.2; padding: 12px 24px; }

.link { color: var(--link); }
.link:hover { text-decoration: underline; }
.link--cobalt { color: var(--cobalt); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  /* 半透明のローカルナビの下まで画像を潜り込ませる */
  margin-top: -62px;
  /* 上のグローバルナビ分を引いて、ボタンまで1画面に収める */
  min-height: calc(100vh - 44px);
  min-height: calc(100svh - 44px);
  padding: 120px 22px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(120, 30, 50, 0.55), transparent 70%),
    radial-gradient(40% 50% at 50% 40%, rgba(255, 255, 255, 0.08), transparent 70%),
    #050505;
}
/* 下側を黒へ溶かして文字を読みやすく、次のセクションへ自然につなぐ */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 22%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 30%, transparent 60%);
}
.js .hero__media.reveal { transform: scale(1.06); transition-duration: 2s; }
.js .hero__media.reveal.is-visible { transform: none; }
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
  border: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__video.is-active { opacity: 1; }
/* 切り替え時は次の動画を上に重ねてフェードイン（下の静止画が透けないように） */
.hero__video.is-top { z-index: 1; }
/* 動画の上にもグラデーションを重ねるため、::after を最前面に */
.hero__media::after { z-index: 2; }

.hero__toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(51, 51, 54, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.hero__toggle:hover { background: rgba(66, 66, 69, 0.85); }
.hero__toggle[hidden] { display: none; }
/* 一時停止アイコン（縦棒2本） */
.hero__toggle-icon {
  width: 10px;
  height: 12px;
  border-left: 3px solid var(--porcelain);
  border-right: 3px solid var(--porcelain);
}
/* 再生アイコン（三角） */
.hero__toggle.is-paused .hero__toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--porcelain);
}

.hero__label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: 0.128px;
}
.hero__display {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- セクション帯 ---------- */
.band { padding: 80px 0; }
.band--carbon { background: linear-gradient(#1d1d1f, #000000 480px); }
.band--black { background: var(--obsidian); }
.band--last { padding-bottom: 160px; }

.section-head { margin-bottom: 40px; }
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--ash);
}
.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.84px;
  text-wrap: balance;
}
.section-lead {
  margin: 0;
  max-width: 560px;
  font-size: 21px;
  line-height: 1.38;
  color: var(--ash);
}
.more-link { margin: 32px 0 0; text-align: center; font-size: 17px; }

/* ---------- 動画 ---------- */
.feature-frame,
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
}
.feature-frame { margin-bottom: 24px; }
.frame-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.frame-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.frame-preview.is-playing { opacity: 1; }
/* プレビュー再生中は再生アイコンを控えめに */
.frame-btn:has(.is-playing) .play-btn { opacity: 0.35; }
/* 親が overflow: hidden のため、枠は内側に描く */
.frame-btn:focus-visible { outline-offset: -4px; }
.feature-frame img,
.video-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature-frame:hover img,
.video-card:hover .video-card__frame img { transform: scale(1.03); }
.feature-frame iframe,
.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.feature-frame__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}
.feature-frame__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.12px;
  text-wrap: balance;
}
.feature-frame__meta { margin: 0; color: rgba(245, 245, 247, 0.75); font-size: 17px; }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(51, 51, 54, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s;
  pointer-events: none;
}
.play-btn::before {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--porcelain);
}
.feature-frame:hover .play-btn,
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: rgba(51, 51, 54, 0.85); }
.video-card .play-btn { width: 52px; height: 52px; }
.video-card .play-btn::before { border-width: 9px 0 9px 15px; margin-left: 4px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card__body { padding: 16px 4px 0; }
.video-card__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.21;
  font-weight: 600;
  letter-spacing: 0.228px;
  text-wrap: balance;
}
.video-card__meta { margin: 0; font-size: 14px; color: var(--ash); letter-spacing: -0.224px; }

/* プレースホルダー（ID未設定時） */
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20%;
  color: var(--slate);
  font-size: 14px;
}

/* ---------- 写真 ---------- */
.photo-wrap { container-type: inline-size; }
.photo-grid {
  /* 縦写真1枚＝1列×2行。行の高さを列幅から計算し、縦写真が4:5の枠に収まるようにする */
  --cols: 3;
  --gap: 12px;
  --col-w: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: calc((var(--col-w) * 1.25 - var(--gap)) / 2);
  grid-auto-flow: row dense;
  gap: var(--gap);
}
.photo {
  position: relative;
  display: block;
  grid-row: span 2;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: zoom-in;
  background: #0a0a0a;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.photo--feature { grid-column: span 2; grid-row: span 4; }
.photo--wide { grid-column: span 2; }
.photo--full { grid-column: 1 / -1; grid-row: span 3; }
.photo img,
.photo .photo__fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s;
}
.photo:hover img,
.photo:hover .photo__fill { transform: scale(1.04); }
.photo__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 18px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--porcelain);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.photo:hover .photo__caption,
.photo:focus-visible .photo__caption { opacity: 1; transform: none; }
/* ホバーできない端末（スマホ）ではタイトルを常に表示 */
@media (hover: none) {
  .photo__caption { opacity: 1; transform: none; padding: 28px 14px 12px; font-size: 12px; }
}

/* ---------- About パネル ---------- */
.panel {
  background: var(--carbon);
  border-radius: var(--radius-card);
  padding: 64px 48px 48px;
}
.panel__head { margin-bottom: 40px; }
.panel__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.24px;
  text-wrap: balance;
}
.panel__lead { margin: 0; max-width: 820px; text-wrap: pretty; color: var(--ash); font-size: 19px; line-height: 1.42; }
.panel__sub {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--ash);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.metric {
  background: var(--obsidian);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  justify-content: flex-end;
}
.metric__value {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.196px;
}
.metric__label { font-size: 14px; color: var(--ash); letter-spacing: -0.224px; }

/* ---------- Shop ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.shop-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}
.shop-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.shop-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 35%, transparent 70%);
}
.shop-tile:hover img { transform: scale(1.04); }
.shop-tile__body { padding: 40px; }
.shop-tile__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.12px;
}
.shop-tile__link { font-size: 17px; color: var(--link); }
.shop-tile:hover .shop-tile__link { text-decoration: underline; }

/* ---------- Contact（白カード） ---------- */
.pale-card {
  background: var(--white);
  color: var(--carbon);
  border-radius: var(--radius-card);
  padding: 80px 48px;
  text-align: center;
}
.pale-card__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.84px;
  text-wrap: balance;
}
.pale-card__lead { margin: 0 0 36px; color: var(--slate); font-size: 19px; }
.pale-card__actions {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- フッター ---------- */
.footer {
  background: var(--carbon);
  color: var(--ash);
  font-size: 12px;
  letter-spacing: -0.12px;
  padding: 20px 0;
}
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--porcelain); }

/* ---------- ライトボックス ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 16px;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  /* 開くときは即座に表示状態にする（直後にフォーカスを移せるように） */
  transition: opacity 0.35s var(--ease);
}
.lightbox__img {
  width: min(1000px, 100%);
  height: min(75vh, 900px);
  border-radius: var(--radius-card);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.45s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__img img,
.lightbox__img .photo__fill { width: 100%; height: 100%; object-fit: contain; }
.lightbox__caption { margin: 0; color: var(--ash); font-size: 14px; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--steel);
  color: var(--porcelain);
  font-size: 14px;
  cursor: pointer;
}
.lightbox__close:hover { background: #424245; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 0;
  background: rgba(51, 51, 54, 0.7);
  color: var(--porcelain);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: #424245; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__ig { margin-left: 12px; }

/* ---------- スクロール表示アニメーション ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1068px) {
  .hero__display { font-size: 60px; letter-spacing: -0.9px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 734px) {
  .container, .global-nav__inner { padding: 0 16px; }
  /* スマホ：上のバーは名前だけにし、リンクは下の浮いたナビにまとめる */
  .global-nav__links { display: none; }
  .global-nav__inner { justify-content: center; }
  .local-nav-wrap { padding: 8px 8px 0; }
  .local-nav { padding: 0 8px 0 16px; }
  .local-nav__title { display: none; }
  .local-nav__right { width: 100%; justify-content: space-between; gap: 8px; }
  .local-nav__link { font-size: 13px; }

  .hero { margin-top: -60px; padding: 100px 16px 56px; }
  .hero__label { font-size: 19px; }
  .hero__toggle { right: 16px; bottom: 16px; }
  .hero__display { font-size: 44px; letter-spacing: -0.5px; }

  .band { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title, .pale-card__title { font-size: 36px; letter-spacing: -0.3px; }
  .section-lead { font-size: 17px; }

  .feature-frame { aspect-ratio: 4 / 5; }
  .feature-frame__overlay { padding: 24px; }
  .feature-frame__title { font-size: 28px; }

  .video-grid { grid-template-columns: 1fr; }

  .photo-grid { --cols: 2; --gap: 10px; }
  .photo { border-radius: 18px; }
  .photo--full { grid-row: span 2; }

  .shop-grid { grid-template-columns: 1fr; gap: 16px; }
  .shop-tile { aspect-ratio: 4 / 4.4; }
  .shop-tile__body { padding: 28px; }
  .shop-tile__title { font-size: 32px; }

  .panel { padding: 40px 20px 20px; }
  .panel__title { font-size: 36px; }
  .metric { min-height: 110px; padding: 20px 16px; border-radius: 20px; }
  .metric__value { font-size: 18px; }
  .metric-grid { gap: 10px; }
  .panel__lead { font-size: 16px; }

  .pale-card { padding: 56px 24px; }

  .lightbox__nav { top: auto; bottom: 20px; margin-top: 0; width: 44px; height: 44px; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
  .lightbox { padding-bottom: 88px; }
}
