*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; font-family: 'Noto Sans JP', sans-serif; background: #FFF8EF; color: #3D2B1F; line-height: 1.7; }
nav { position: sticky; top: 0; z-index: 302; display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; border-bottom: 1px solid #F2DCC8; background: #FFF8EF; }
.nav-logo { color: #D97B4A; font-family: 'Zen Maru Gothic', sans-serif; font-size: 18px; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: #7A5540; font-size: 13px; text-decoration: none; }
.nav-links a.active, .nav-links a:hover { color: #D97B4A; font-weight: 700; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 48px; height: 48px; padding: 4px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.34); cursor: pointer; }
.hamburger span { display: block; width: 19px; height: 2px; border-radius: 2px; background: #7A5540; transition: all .25s ease; }
.mobile-menu { position: fixed; inset: 0; z-index: 300; visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; pointer-events: none; background: rgba(255,248,239,0); transition: opacity .2s ease, background-color .2s ease; }
.mobile-menu.open { visibility: visible; opacity: 1; pointer-events: auto; background: rgba(255,248,239,.92); }
.mobile-menu a { display: block; width: min(280px, calc(100% - 56px)); padding: 13px 24px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(255,255,255,.42); color: rgba(92,61,46,.82); font: 700 18px 'Zen Maru Gothic', sans-serif; text-align: center; text-decoration: none; }
main { width: min(100%, 1040px); margin: 0 auto; padding: 48px 32px 72px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: #A07060; font-size: 12px; font-weight: 700; }
.breadcrumb a { color: #C4612A; text-decoration: none; }
.video-detail-header { margin-bottom: 28px; }
.section-label { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 50px; background: #FFDCBF; color: #C4612A; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
h1, h2 { color: #C4612A; font-family: 'Zen Maru Gothic', sans-serif; }
h1 { max-width: 900px; margin-bottom: 14px; font-size: clamp(28px, 5vw, 44px); line-height: 1.3; text-wrap: pretty; }
h2 { margin-bottom: 14px; font-size: 22px; }
.video-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #A07060; font-size: 12px; font-weight: 700; }
.video-detail-genres { display: flex; flex-wrap: wrap; gap: 7px; }
.video-detail-genre { display: inline-flex; align-items: center; min-height: 25px; padding: 0 10px; border-radius: 999px; background: #FFDCBF; color: #C4612A; }
.video-detail-layout { display: grid; gap: 24px; }
.video-detail-block { padding: 24px; border: 1px solid rgba(255,255,255,.62); border-radius: 20px; background: rgba(255,255,255,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 22px rgba(92,61,46,.07); }
.video-detail-player { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #2b1b13; color: inherit; text-decoration: none; }
.video-detail-player img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.video-detail-play { position: absolute; top: 50%; left: 50%; width: 82px; height: 56px; border-radius: 16px; background: rgba(211,42,42,.94); box-shadow: 0 10px 28px rgba(0,0,0,.3); transform: translate(-50%, -50%); transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease; }
.video-detail-play::after { position: absolute; top: 50%; left: 52%; width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid #fff; content: ''; transform: translate(-40%, -50%); }
.video-detail-player:hover img, .video-detail-player:focus-visible img { transform: scale(1.025); filter: brightness(.9); }
.video-detail-player:hover .video-detail-play, .video-detail-player:focus-visible .video-detail-play { opacity: .92; box-shadow: 0 12px 34px rgba(0,0,0,.36); transform: translate(-50%, -50%) scale(1.06); }
.video-detail-player:focus-visible { outline: 3px solid rgba(217,123,74,.42); outline-offset: 4px; }
.video-detail-block p { color: #5C3D2E; font-size: 15px; line-height: 1.9; }
.video-detail-copy { display: grid; gap: 14px; }
.video-detail-highlights { display: grid; gap: 12px; padding-left: 22px; color: #5C3D2E; font-size: 15px; line-height: 1.8; }
.video-detail-related-stories { grid-template-columns: minmax(0, 340px); justify-content: center; }
.video-detail-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border: 1px solid #D97B4A; border-radius: 999px; background: #D97B4A; color: #fff; cursor: pointer; font: 700 14px 'Noto Sans JP', sans-serif; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.video-detail-button:hover, .video-detail-button:focus-visible { transform: translateY(-1px); outline: none; box-shadow: 0 8px 20px rgba(196,97,42,.2); }
.video-detail-button.secondary { border-color: #F2DCC8; background: #fff; color: #C4612A; }
.video-detail-gallery.restricted-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-detail-gallery-card { padding: 0; cursor: pointer; }
.video-detail-gallery-card:hover img, .video-detail-gallery-card:focus-visible img { transform: scale(1.035); }
.video-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.video-detail-actions [data-gallery-story-link] { width: 100%; }
.video-detail-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.video-detail-video-card { display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.62); border-radius: 16px; background: rgba(255,255,255,.5); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.video-detail-video-card:hover, .video-detail-video-card:focus-visible { transform: translateY(-3px); outline: none; box-shadow: 0 12px 28px rgba(92,61,46,.12); }
.video-detail-video-thumb { position: relative; display: block; margin: 7px 7px 0; overflow: hidden; border-radius: 11px; aspect-ratio: 16 / 9; background: #F2DCC8; }
.video-detail-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-detail-video-thumb > span { position: absolute; right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 700; }
.video-detail-video-body { display: grid; gap: 7px; padding: 13px 14px 16px; }
.video-detail-video-body strong { color: #3D2B1F; font-size: 14px; line-height: 1.55; }
.video-detail-video-body small { color: #A07060; font-size: 11px; }
.video-detail-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 6px; }
footer { padding: 28px 32px; border-top: 1px solid #F2DCC8; background: #FFF0E0; color: #7A5540; font-size: 13px; text-align: center; }
footer a { color: #D97B4A; text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  main { padding: 38px 20px 56px; }
  .video-detail-block { padding: 20px; border-radius: 18px; }
  .video-detail-related-stories { grid-template-columns: 1fr; }
  .video-detail-videos { grid-template-columns: 1fr; }
  .video-detail-play { width: 70px; height: 48px; border-radius: 14px; }
  .video-detail-final-actions .video-detail-button { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .video-detail-gallery.restricted-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .video-detail-gallery.restricted-media-grid { grid-template-columns: 1fr; }
}
