*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: #FFF8EF; color: #3D2B1F; line-height: 1.7; }
html.story-consent-pending body > nav,
html.story-consent-pending body > .mobile-menu,
html.story-consent-pending .story-consent-protected,
html.story-consent-pending footer { display: none !important; }
nav { background: #FFF8EF; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #F2DCC8; position: sticky; top: 0; z-index: 302; }
.nav-logo { font-family: 'Zen Maru Gothic', sans-serif; font-size: 18px; font-weight: 700; color: #D97B4A; text-decoration: none; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 13px; color: #7A5540; }
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: #D97B4A; font-weight: 700; }
main { max-width: 1040px; margin: 0 auto; padding: 48px 32px 72px; }
.section-label { display: inline-block; background: #FFDCBF; color: #C4612A; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; }
h1, h2, h3 { font-family: 'Zen Maru Gothic', sans-serif; color: #C4612A; letter-spacing: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.25; margin-bottom: 12px; }
h2 { font-size: 22px; margin-bottom: 14px; }
h3 { font-size: 17px; margin-bottom: 8px; }
p { color: #5C3D2E; font-size: 15px; line-height: 1.9; }
.page-head { display: grid; gap: 10px; margin-bottom: 30px; }
.page-intro { max-width: 680px; }
.coming-note { display: inline-flex; width: fit-content; margin-top: 10px; padding: 8px 14px; border: 1px solid rgba(255,255,255,0.76); border-radius: 999px; background: rgba(255,255,255,0.56); color: #7A5540; font-size: 13px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 8px 22px rgba(92,61,46,0.08); }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { display: block; overflow: hidden; border: 1px solid rgba(255,255,255,0.62); border-radius: 18px; background: rgba(255,255,255,0.46); color: inherit; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 8px 22px rgba(92,61,46,0.07); transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease; }
.story-card:hover, .story-card:focus-visible { transform: translateY(-4px); background: rgba(255,255,255,0.74); box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 14px 34px rgba(92,61,46,0.13); outline: none; }
.story-card img { display: block; width: calc(100% - 16px); height: calc((100vw - 64px - 52px) / 3 * 9 / 16); max-height: 178px; margin: 8px 8px 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 13px; background: #F2DCC8; }
.story-card-body { display: grid; gap: 8px; padding: 14px 16px 18px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #A07060; font-size: 12px; font-weight: 700; }
.story-category { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: #FFDCBF; color: #C4612A; font-size: 12px; }
.story-card h2 { color: #3D2B1F; font-size: 17px; line-height: 1.45; margin: 0; }
.story-card p { font-size: 13px; line-height: 1.75; }
.story-hero { overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,0.62); background: rgba(255,255,255,0.42); box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 12px 32px rgba(92,61,46,0.10); margin-bottom: 34px; }
.story-hero img { display: block; width: 100%; height: min(calc((100vw - 64px) * 9 / 16), 540px); aspect-ratio: 16 / 9; object-fit: cover; }
.story-hero-body { padding: 22px 24px 26px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.story-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,0.68); color: #7A5540; border: 1px solid rgba(242,220,200,0.9); font-size: 12px; font-weight: 700; }
.story-layout { display: grid; gap: 26px; }
.story-block { padding: 24px; border: 1px solid rgba(255,255,255,0.64); border-radius: 20px; background: rgba(255,255,255,0.48); box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 8px 22px rgba(92,61,46,0.06); }
.story-block p + p { margin-top: 12px; }
.story-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #1a0f09; }
.story-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.story-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.story-gallery-item { display: block; width: 100%; overflow: hidden; border: 1px solid #F2DCC8; border-radius: 14px; background: #fff; cursor: pointer; padding: 0; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.story-gallery-item:hover, .story-gallery-item:focus-visible { transform: translateY(-2px); border-color: rgba(217,123,74,0.52); box-shadow: 0 10px 24px rgba(92,61,46,0.12); outline: none; }
.story-gallery img { display: block; width: 100%; height: auto; object-fit: contain; background: #fff; }
.story-actions { display: flex; justify-content: center; width: 100%; margin: 22px 0 2px; }
.story-btn { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 320px); min-height: 52px; padding: 13px 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.78); background: linear-gradient(180deg, #E08A58, #D46F3B); color: #fff; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 24px rgba(196,97,42,0.22); transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.story-btn:hover, .story-btn:focus-visible { transform: translateY(-2px); background: linear-gradient(180deg, #E79A6C, #D97B4A); box-shadow: inset 0 1px 0 rgba(255,255,255,0.36), 0 14px 30px rgba(196,97,42,0.28); outline: none; }
.gallery-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 28px; visibility: hidden; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 0; pointer-events: none; transition: opacity 0.24s ease; }
.gallery-modal.open { visibility: visible; background: rgba(30, 18, 10, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 1; pointer-events: auto; }
.gallery-modal-content { position: relative; width: min(100%, 1040px); max-height: 88dvh; transform: translateY(12px) scale(0.98); transition: transform 0.24s ease; }
.gallery-modal.open .gallery-modal-content { transform: translateY(0) scale(1); }
.gallery-modal-media { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-height: calc(88dvh - 54px); overflow: hidden; border-radius: 18px; background: #1a0f09; box-shadow: 0 18px 52px rgba(0,0,0,0.36); }
.gallery-modal-media img, .gallery-modal-media video { display: block; max-width: 100%; max-height: calc(88dvh - 54px); width: auto; height: auto; }
.gallery-modal-media.is-image { width: fit-content; max-width: min(100%, 1040px); height: fit-content; max-height: calc(88dvh - 54px); margin: 0 auto; overflow: visible; background: transparent; box-shadow: none; }
.gallery-modal-media.is-image img { width: auto; height: auto; max-width: min(100%, 1040px); max-height: calc(88dvh - 54px); object-fit: contain; border-radius: 18px; box-shadow: 0 18px 52px rgba(0,0,0,0.36); }
.gallery-modal-media video { width: min(100%, 1040px); }
.gallery-tap-zone { position: absolute; top: 0; bottom: 0; width: 33.333%; border: none; background: transparent; cursor: pointer; z-index: 2; touch-action: manipulation; }
.gallery-tap-zone.prev { left: 0; }
.gallery-tap-zone.next { right: 0; }
.gallery-modal-caption { color: #fff; font-family: 'Zen Maru Gothic', sans-serif; font-size: 15px; font-weight: 700; margin-top: 12px; text-align: center; }
.gallery-modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-action-btn { border: 1px solid rgba(255,255,255,0.24); border-radius: 999px; background: rgba(255,255,255,0.94); color: #C4612A; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.18); text-decoration: none; transition: transform 0.16s ease, background 0.16s ease; }
.gallery-action-btn:hover, .gallery-action-btn:focus-visible { transform: translateY(-1px); background: #FFF3E4; outline: none; }
.gallery-modal-status { min-height: 22px; margin-top: 8px; color: rgba(255,255,255,0.86); font-size: 12px; line-height: 1.6; text-align: center; word-break: break-all; }
.gallery-modal-close { position: absolute; top: -18px; right: -18px; z-index: 4; width: 42px; height: 42px; border: none; border-radius: 50%; background: #fff; color: #C4612A; cursor: pointer; font-size: 28px; line-height: 1; box-shadow: 0 6px 20px rgba(0,0,0,0.24); transition: transform 0.16s ease, background 0.16s ease; }
.gallery-modal-close:hover, .gallery-modal-close:focus-visible { transform: scale(1.06); background: #FFF3E4; outline: none; }
.product-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card, .related-card { border: 1px solid #F2DCC8; border-radius: 16px; background: #fff; overflow: hidden; }
.product-card img, .related-card img { display: block; width: 100%; height: auto; max-height: 160px; aspect-ratio: 16 / 9; object-fit: cover; background: #F2DCC8; }
.product-body, .related-body { display: grid; gap: 9px; padding: 12px; }
.product-type { display: inline-flex; width: fit-content; min-height: 22px; align-items: center; padding: 0 9px; border-radius: 999px; background: #FFF3E4; color: #A07060; font-size: 11px; font-weight: 700; }
.product-links { display: flex; gap: 8px; flex-wrap: wrap; }
.product-links a { color: #C4612A; font-size: 12px; font-weight: 700; text-decoration: none; }
.related-card { color: inherit; text-decoration: none; }
.scene-grid { display: grid; gap: 14px; }
.scene-card { overflow: hidden; border: 1px solid #F2DCC8; border-radius: 16px; background: #fff; }
.scene-card video, .scene-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1a0f09; }
.scene-body { padding: 12px 14px 14px; }
.scene-body h3 { color: #5C3D2E; font-size: 15px; margin: 0; }
.story-roam { background: linear-gradient(180deg, rgba(255,255,255,0.54), rgba(255,240,224,0.62)); }
.story-roam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.story-roam-link { display: grid; gap: 4px; min-height: 92px; align-content: center; padding: 16px; border: 1px solid rgba(255,255,255,0.76); border-radius: 16px; background: rgba(255,255,255,0.64); color: #5C3D2E; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 8px 20px rgba(92,61,46,0.07); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.story-roam-link:hover, .story-roam-link:focus-visible { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 12px 28px rgba(92,61,46,0.12); outline: none; }
.story-roam-link span { color: #A07060; font-size: 12px; font-weight: 700; }
.story-roam-link strong { color: #C4612A; font-family: 'Zen Maru Gothic', sans-serif; font-size: 15px; line-height: 1.45; }
.story-consent { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; background: transparent; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.story-consent.open { visibility: visible; background: rgba(30,18,10,0.76); opacity: 1; pointer-events: auto; }
.story-consent-dialog { width: min(100%, 420px); border-radius: 18px; background: #fff; border: 1.5px solid #F2DCC8; padding: 24px; box-shadow: 0 18px 52px rgba(0,0,0,0.28); }
.story-consent-title { font-family: 'Zen Maru Gothic', sans-serif; color: #C4612A; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.story-consent-text { color: #5C3D2E; font-size: 14px; margin-bottom: 18px; }
.story-consent-actions { display: flex; justify-content: flex-end; gap: 10px; }
.story-consent-btn { border: 1.5px solid #F2DCC8; border-radius: 999px; background: #fff; color: #7A5540; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; padding: 9px 18px; }
.story-consent-btn.confirm { background: #D97B4A; border-color: #D97B4A; color: #fff; }
.story-consent-btn:hover, .story-consent-btn:focus-visible { outline: none; transform: translateY(-1px); }
.story-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager-link { min-height: 86px; padding: 16px; border: 1px solid #F2DCC8; border-radius: 16px; background: rgba(255,255,255,0.62); color: #5C3D2E; text-decoration: none; }
.pager-link.next { text-align: right; }
.pager-label { display: block; color: #A07060; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.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; }
footer { background: #FFF0E0; color: #7A5540; text-align: center; padding: 28px 32px; font-size: 13px; border-top: 1px solid #F2DCC8; }
footer a { color: #D97B4A; text-decoration: none; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.70); border-radius: 50%; background: rgba(255,255,255,0.34); box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 8px 22px rgba(92,61,46,0.10); cursor: pointer; padding: 4px; z-index: 303; position: relative; }
.hamburger span { display: block; width: 19px; height: 2px; background: #7A5540; border-radius: 2px; transition: all 0.25s ease; }
.mobile-menu { position: fixed; inset: 0; visibility: hidden; z-index: 300; 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 0.2s ease, background-color 0.2s ease; }
.mobile-menu.open { visibility: visible; opacity: 1; pointer-events: auto; background: rgba(255,248,239,0.92); }
.mobile-menu a { display: block; width: min(280px, calc(100% - 56px)); padding: 13px 24px; border: 1px solid rgba(255,255,255,0.72); border-radius: 999px; background: rgba(255,255,255,0.42); color: rgba(92,61,46,0.82); text-align: center; text-decoration: none; font-family: 'Zen Maru Gothic', sans-serif; font-size: 18px; font-weight: 700; }
@media (max-width: 820px) {
  main { padding: 40px 20px 56px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stories-grid, .product-grid, .related-grid { grid-template-columns: 1fr; }
  .story-card img { height: calc((100vw - 56px) * 9 / 16); max-height: none; }
  .story-hero img { height: calc((100vw - 40px) * 9 / 16); }
  .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-actions { justify-content: stretch; }
  .story-btn { width: 100%; }
  .gallery-modal { padding: 18px; }
  .gallery-modal-close { top: -14px; right: -10px; width: 38px; height: 38px; font-size: 25px; }
  .story-roam-grid { grid-template-columns: 1fr; }
  .story-hero-body, .story-block { padding: 20px; }
  .story-pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; }
}
