.header .theme-control {
  position: relative;
  flex: none;
  color: var(--paper);
}
.header .theme-trigger {
  display: grid;
  place-items: center;
  position: relative;
  width: 88px;
  height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  list-style: none;
  cursor: pointer;
}
.theme-trigger::-webkit-details-marker { display: none; }
.theme-trigger::after {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.theme-control[open] .theme-trigger::after {
  transform: translateY(2px) rotate(225deg);
}
.theme-trigger:focus-visible, .theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-options {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(164px, calc(100vw - 24px));
  padding: 5px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgb(0 0 0 / .18);
}
.theme-option {
  display: grid;
  grid-template-columns: 1fr 12px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 9px;
  background: transparent;
  color: var(--paper);
  font: 14px/1.3 Arial, sans-serif;
  text-align: start;
}
.theme-option:hover, .theme-option[aria-pressed="true"] { background: #26322b; }
.theme-option[aria-pressed="true"]::after {
  content: "";
  justify-self: end;
  width: 9px;
  height: 5px;
  border-inline-start: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
[data-theme="light"] .theme-option:is(:hover, [aria-pressed="true"]) { background: var(--sage); }
@media (max-width: 520px) {
  .header .theme-trigger { width: 76px; padding-inline: 14px; }
  .theme-trigger::after { inset-inline-end: 8px; }
  .header nav, html:lang(ja) .header nav { gap: 6px; }
  .header nav .language-switch summary.language { padding: 0 6px; }
}



:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f3efe4;
  --paper: #232e27;
  --muted: #505e53;
  --line: #b3b7a7;
  --accent: #8d4939;
  --surface: #ebe6d9;
  --sage: #dde3d5;
  --action: #34483b;
  --action-hover: #263a2d;
  --on-action: #f8f3e9;
  --field-border: #788375;
}
[data-theme="light"] .header { background: rgb(243 239 228 / .96); }
[data-theme="light"] :is(.series-page, .photo-preview, .photo-library, .studio, .language-options, .language-suggestion) {
  background: var(--ground);
  border-color: var(--line);
  color: var(--paper);
}
[data-theme="light"] :is(.intro, .sessions, .work, .series-index) {
  background: var(--surface);
  color: var(--paper);
}
[data-theme="light"] :is(.contact, .booking-band, .series-next, .footer) {
  background: var(--sage);
  border-color: var(--line);
  color: var(--paper);
}
[data-theme="light"] :is(.intro-copy, .studio-grid > div, .session-list p, .session-foot,
  .contact-note, .detail p, .demo-note, .gallery-hint, .filters button, .series-kicker,
  .series-summary > span, .series-summary p, .series-photo figcaption, .series-editorial-top .eyebrow,
  .series-index-heading p, .project-rail, .project-number, .project-edition, .project-subtitle,
  .project-foot, .booking-band p, .photo-section-heading p, .photo-tile figcaption, .photos-intro p,
  .photo-status, .section-label-number, #slide-counter, .slide-dot, .booking-note, #booking-status) {
  color: var(--muted);
}
[data-theme="light"] :is(.series-index-heading h2 em, .studio h2 em, .series-open, .series-back,
  .project-foot .series-card-link, .section-label-text, .slide-prev, .slide-next,
  .filters button[aria-pressed=true], .slide-dot[aria-pressed=true], .photo-filters button,
  .photo-pagination button, .shooting-dialog-intro, .shooting-dialog .eyebrow) {
  color: var(--paper);
}
[data-theme="light"] :is(.series-open:hover, .series-next > a:hover) { color: var(--accent); }
[data-theme="light"] .outline { -webkit-text-stroke-color: var(--muted); }
[data-theme="light"] :is(.language, .nav-book, .series-back, .series-open, .project-foot .series-card-link,
  .section-label-number, .photo-filters button, .photo-pagination button) { border-color: var(--field-border); }
[data-theme="light"] :is(.language:hover, .language-options a:hover, .language-options a[aria-current=page],
  .slide-prev:hover, .slide-next:hover, .studio h2 em::before) { background: var(--sage); color: var(--paper); }
[data-theme="light"] .slide-dot::before { background: var(--field-border); }
[data-theme="light"] :is(.slide-dot[aria-pressed=true]::before, .reading-progress > span) { background: var(--action); }
[data-theme="light"] :is(.shooting-cta, .reserve-button, .submit, .draft button, .skip,
  .photo-filters button[aria-pressed=true], .back-top) {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-action);
}
[data-theme="light"] :is(.shooting-cta:hover, .reserve-button:hover, .submit:hover, .draft button:hover) {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
[data-theme="light"] .shooting-cta-note { color: var(--on-action); }
[data-theme="light"] .shooting-cta-arrow { border-color: #f8f3e980; }
[data-theme="light"] :is(.header, main, .footer) img.icon[aria-hidden="true"] { filter: brightness(0); }
[data-theme="light"] :is(.shooting-cta, .reserve-button, .back-top, .series-card-arrow, .lightbox, .drag-cursor, .image-open) img.icon[aria-hidden="true"] {
  filter: brightness(0) invert(1);
}
[data-theme="light"] .shooting-dialog {
  color-scheme: light;
  background: var(--ground);
  color: var(--paper);
  border-color: var(--line);
}
[data-theme="light"] :is(.shooting-dialog-close, .shooting-dialog input, .shooting-dialog textarea,
  .shooting-dialog select, select option) {
  background: var(--ground);
  color: var(--paper);
  border-color: var(--field-border);
}
[data-theme="light"] :is(input, select, textarea) { border-color: var(--field-border); }
[data-theme="light"] :is(input, select, textarea):focus { border-bottom-color: var(--accent); }
[data-theme="light"] #brief-form :is(label, .booking-zone, .form-privacy) { color: var(--muted); }
[data-theme="light"] #brief-form .booking-slot { border-color: var(--field-border); color: var(--paper); }
[data-theme="light"] #brief-form .booking-slot:has(input:checked) { background: var(--sage); }
[data-theme="light"] #brief-form .booking-slot.unavailable { background: #efe0d7; color: #813d31; border-color: #9e6657; }
[data-theme="light"] #brief-form .request-status.is-error { color: #813d31; }

