/* ============================================================
   劇場情報 standalone page — theaters.css
   Ported from nagidiarylp/css/styles.css (theater__ selectors)
   Design tokens and base styles replicated for standalone use.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600&display=swap');

/* --- Design Tokens (mirrored from original) --- */
:root {
  --c-bg: #ffffff;
  --c-text: #1c1813;
  --c-text-sub: #423b32;
  --c-text-mute: #645b50;
  --c-text-light: #8d867c;
  --c-accent: #7a5f3e;
  --c-border: #cfc7ba;
  --c-border-lt: #e4dfd5;
  --c-zebra: #f7f1e8;
  --c-zebra-hover: #efe6d7;
  --c-white: #fff;

  --ff-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --ff-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", sans-serif;
  --ff-en: "Cormorant Garamond", "Times New Roman", serif;

  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--ff-serif);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.section__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.section__inner--wide {
  max-width: 960px;
}

/* ============================================================
   PAGE HEADING
   ============================================================ */
.section__heading {
  font-family: var(--ff-en);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 8px;
}

.section__heading-sub {
  display: block;
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--c-text-mute);
  margin-top: 6px;
}

@media (min-width: 768px) {
  .section__heading {
    font-size: 28px;
  }

  .section__heading-sub {
    font-size: 12px;
  }
}

.section__divider {
  width: 40px;
  height: 1px;
  background: var(--c-border);
  margin: 20px auto 36px;
}

/* ============================================================
   THEATER SECTION — ported from nagidiarylp/css/styles.css
   ============================================================ */

/* Release line under heading */
.theater__release-line {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--c-text-sub);
  text-align: center;
  margin: 0 0 36px;
  min-height: 1.6em;
}

.theater__release-line:empty::before {
  content: "";
  display: inline-block;
}

@media (min-width: 768px) {
  .theater__release-line {
    font-size: 14px;
    margin-bottom: 48px;
  }
}

/* Controls (search + tabs) */
.theater__controls {
  margin: 0 auto 36px;
}

/* Search input */
.theater__search {
  position: relative;
  max-width: 480px;
  margin: 0 auto 24px;
}

.theater__search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-text-mute);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater__search-icon svg {
  width: 100%;
  height: 100%;
}

.theater__search-input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s var(--ease-soft);
  appearance: none;
  -webkit-appearance: none;
}

.theater__search-input::placeholder {
  color: var(--c-text-mute);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.theater__search-input:focus {
  border-bottom-color: var(--c-accent);
}

.theater__search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text-mute);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s var(--ease-soft);
}

.theater__search-clear:hover {
  color: var(--c-text);
}

/* Region tabs — pillless / underline-only / horizontally scrollable */
.theater__tabs {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--c-border-lt);
  padding: 0 4px;
  margin: 0 -4px;
}

.theater__tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .theater__tabs {
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--c-border-lt);
  }
}

.theater__tab {
  flex: 0 0 auto;
  padding: 14px 14px 12px;
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--c-text-mute);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}

.theater__tab:hover {
  color: var(--c-text-sub);
}

.theater__tab[aria-selected="true"] {
  color: var(--c-text);
  border-bottom-color: var(--c-accent);
}

.theater__tab-count {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-text-mute);
  vertical-align: 1px;
}

@media (min-width: 768px) {
  .theater__tab {
    padding: 16px 22px 14px;
    font-size: 14px;
  }

  .theater__tab-count {
    font-size: 12px;
  }
}

/* Theater list — grouped by region */
.theater__list {
  min-height: 240px;
}

.theater__placeholder,
.theater__empty,
.theater__error {
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-text-mute);
  padding: 80px 0;
  margin: 0;
}

.theater__error {
  color: var(--c-text-sub);
}

.theater__region-group {
  margin-bottom: 56px;
}

.theater__region-group:last-child {
  margin-bottom: 0;
}

.theater__region-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border-lt);
}

.theater__region-heading-jp {
  font-family: var(--ff-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--c-text-mute);
}

@media (min-width: 768px) {
  .theater__region-heading {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .theater__region-heading-jp {
    font-size: 13px;
  }
}

/* Theater card (no border, just thin divider) */
.theater__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 6px;
  background-color: var(--c-zebra);
}

@media (min-width: 768px) {
  .theater__card {
    grid-template-columns: 132px 1fr auto;
    gap: 18px;
    align-items: baseline;
    padding: 11px 16px;
  }
}

.theater__card-loc {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--c-text-mute);
}

.theater__card-pref {
  color: var(--c-text-sub);
  font-weight: 500;
}

.theater__card-city {
  color: var(--c-text-mute);
}

@media (min-width: 768px) {
  .theater__card-loc {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.theater__card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theater__card-name {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0;
}

.theater__card-name a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}

.theater__card-name a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.theater__card-name-link-icon {
  width: 9px;
  height: 9px;
  opacity: 0.6;
  flex-shrink: 0;
}

.theater__card-name-en {
  display: block;
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--c-text-mute);
  margin-top: 2px;
}

.theater__card-note {
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-text-mute);
  margin: 0;
}

@media (min-width: 768px) {
  .theater__card-name {
    font-size: 16px;
  }

  .theater__card-name-en {
    font-size: 12px;
  }

  .theater__card-note {
    font-size: 12px;
  }
}

/* Right column — date + status */
.theater__card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .theater__card-meta {
    margin-top: 0;
    justify-content: flex-end;
  }
}

.theater__card-date {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .theater__card-date {
    font-size: 13px;
  }
}

/* Status badge — minimal, no rounded pill, just thin border */
.theater__status {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--ff-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  white-space: nowrap;
  border: 1px solid currentColor;
  color: var(--c-text-mute);
  background: transparent;
  border-radius: 0;
}

.theater__status[data-status="公開中"],
.theater__status[data-status="上映中"] {
  color: var(--c-accent);
}

.theater__status[data-status="上映終了"] {
  color: var(--c-text-light);
}

.theater__status[data-status="公開予定"] {
  color: var(--c-text-sub);
}

/* 近日公開は塗りバッジで「公開予定」と明確に区別 */
.theater__status[data-status="近日公開"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
}

@media (min-width: 768px) {
  .theater__status {
    font-size: 11px;
    padding: 4px 12px;
  }
}

/* Footnote and updated_at */
.theater__footnote {
  margin: 48px 0 8px;
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-text-mute);
  text-align: center;
  line-height: 1.8;
}

.theater__updated {
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--c-text-light);
  text-align: center;
  margin: 0;
}

@media (min-width: 768px) {
  .theater__footnote {
    font-size: 12px;
    margin-top: 64px;
  }

  .theater__updated {
    font-size: 11px;
  }
}

/* Subtle fade-in for cards when filtered */
.theater__card,
.theater__region-group {
  animation: theaterFadeIn 0.5s var(--ease-soft) both;
}

@keyframes theaterFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
