:root {
  color-scheme: light;
  --blue: #1b43dc;
  --blue-dark: #1032b2;
  --ink: #172338;
  --muted: #5c6678;
  --line: #dfe4ed;
  --paper: #f5f7fb;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 4px;
}
[hidden] { display: none !important; }
.gallery-page { background: linear-gradient(#fff 0 330px, var(--paper) 330px); }
.gallery-shell { max-width: 1200px; margin: auto; padding: 34px 40px 52px; }
.gallery-header { max-width: 1200px; margin: auto; min-height: 64px; padding: 8px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gallery-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.gallery-brand svg { width: 42px; height: 30px; }
.gallery-about { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.gallery-about:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.gallery-skip { position: fixed; left: 16px; top: -100px; padding: 12px; z-index: 10; background: white; }
.gallery-skip:focus { top: 12px; }
.consultation-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 32px; border: 1px solid #ccd6fa; border-radius: 8px; background: #f0f4ff; }
.consultation-banner h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.6; }
.consultation-banner p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.consultation-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex: 0 1 330px; padding: 14px 20px; min-height: 48px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.7; }
.consultation-button:hover { background: var(--blue-dark); }
.consultation-button:focus-visible { outline-offset: 4px; }
.gallery-intro { position: relative; padding: 0 0 38px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .12em; margin: 0 0 16px; }
.gallery-intro h1 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.45; font-weight: 800; letter-spacing: .025em; margin: 0 0 20px; }
.gallery-intro h1 span { color: var(--blue); }
.gallery-intro > p:not(.eyebrow) { font-size: 14px; line-height: 2; color: var(--muted); margin: 0; }
.readonly-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 16px; }
.readonly-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.preview-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px #17233804; }
.card-heading { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 108px; padding: 18px 22px; }
.card-number { font-size: 11px; font-weight: 800; color: var(--blue); letter-spacing: .08em; }
.card-heading h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
.gallery-design { display: flex; flex-basis: 100%; gap: 6px; padding-left: 26px; }
.gallery-design button, .design-choices button {
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted);
  min-height: 34px; padding: 5px 13px; font-size: 12px; font-weight: 700;
}
.gallery-design button[aria-pressed="true"], .design-choices button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.gallery-design button:hover, .design-choices button:hover { border-color: var(--blue); }
.card-visual { position: relative; aspect-ratio: 3 / 2; background: #101724; }
.card-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-play {
  position: absolute; right: 16px; top: 16px; display: flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 94px; min-height: 42px; padding: 10px 15px; border: 1px solid #fff8; border-radius: 5px;
  background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; box-shadow: 0 3px 15px #0003;
}
.card-play:hover { background: #edf1ff; }
.play-icon { font-size: 14px; }
.is-playing .card-play { background: #101724e8; border-color: #ffffff4d; color: #fff; }
.is-playing .card-play:hover { background: #263247; }
.card-text { padding: 20px 22px; }
.card-description { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.9; min-height: 50px; }
.card-status { display: block; font-size: 11px; color: var(--muted); min-height: 18px; }
.is-playing .card-status { color: var(--blue); }
.card-share { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; color: var(--muted); }
.card-share summary { width: fit-content; }
.card-share label, .share-panel label { display: block; margin: 14px 0 6px; }
.card-share input, .card-share textarea, .share-panel input, .share-panel textarea {
  width: 100%; min-width: 0; padding: 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 11px;
}
.site-footer { max-width: 1200px; margin: auto; padding: 0 40px 30px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.site-header { max-width: 1040px; margin: auto; padding: 24px 30px 0; }
.back-link { color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--blue); }
.player-shell { max-width: 1040px; margin: auto; padding: 28px 30px 50px; }
.player-heading { margin-bottom: 22px; }
.player-heading h1 { font-size: clamp(24px, 3.5vw, 36px); margin: 10px 0 16px; }
.player-heading > p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.player-panel { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #101724; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; min-height: 68px; background: #fff; }
.design-choices { display: flex; gap: 6px; }
#playbackToggle { border: 1px solid var(--line); border-radius: 4px; padding: 9px 14px; color: var(--muted); background: #fff; font-size: 12px; min-height: 40px; }
#playbackToggle:hover { border-color: var(--blue); }
.single-label { font-size: 13px; font-weight: 650; }
.video-stage { aspect-ratio: 3 / 2; position: relative; }
.video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.player-caption { padding: 12px 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #a4b4c9; font-size: 11px; border-top: 1px solid #ffffff17; }
.preview-note { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 16px 0 28px; }
.share-panel { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 13px; }
.share-panel p { line-height: 1.8; font-size: 12px; }
.is-embed { background: #101724; min-height: 0; }
.is-embed .site-header, .is-embed .player-heading, .is-embed .preview-note, .is-embed .share-panel { display: none; }
.is-embed .player-shell { padding: 0; max-width: 100%; height: 100vh; height: 100dvh; }
.is-embed .player-panel { border: 0; border-radius: 0; height: 100%; display: flex; flex-direction: column; }
.is-embed .player-toolbar { padding: 10px 14px; min-height: 58px; flex: none; }
.is-embed .player-caption { padding: 8px 14px; flex: none; }
.is-embed .video-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
@media (min-width: 900px) {
  .gallery-intro > p:not(.eyebrow) { position: absolute; right: 0; bottom: 86px; max-width: 44%; }
}
@media (max-width: 650px) {
  .gallery-header { padding: 6px 20px; min-height: 58px; gap: 10px; }
  .gallery-brand { font-size: 14px; gap: 5px; }
  .gallery-brand svg { width: 32px; height: 24px; }
  .gallery-about { font-size: 12px; }
  .consultation-banner { display: block; padding: 18px; margin-bottom: 24px; }
  .consultation-banner h2 { font-size: 15px; }
  .consultation-button { width: 100%; margin-top: 16px; padding: 12px; font-size: 13px; gap: 8px; }
  .gallery-shell { padding: 32px 20px 36px; }
  .gallery-intro { padding-bottom: 28px; }
  .gallery-intro h1 { font-size: clamp(22px, 6vw, 28px); margin-bottom: 16px; }
  .gallery-intro h1 span { white-space: nowrap; }
  .gallery-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; }
  .preview-grid { grid-template-columns: 1fr; gap: 22px; }
  .card-heading { min-height: 0; padding: 18px; }
  .card-heading h2 { font-size: 19px; }
  .gallery-design { padding-left: 0; }
  .gallery-design button { min-height: 40px; padding: 7px 10px; white-space: nowrap; }
  .card-text { padding: 18px; }
  .card-description { min-height: 0; }
  .card-play { right: 12px; top: 12px; }
  .site-footer { padding: 0 20px 25px; }
  .site-header { padding: 20px 18px 0; }
  .player-shell { padding: 20px 12px 30px; }
  .player-toolbar { padding: 10px; gap: 8px; flex-wrap: wrap; }
  .design-choices button, #playbackToggle { padding: 8px 10px; font-size: 12px; }
  .player-caption { padding: 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
