:root {
  --bg: #0d0712;
  --header-bg: #1a0a0ff2;
  --header-border: #4a3a1e;
  --card-bg: #2a1216;
  --card-border: #4a2630;
  --text-main: #f4ecdd;
  --text-sub: #d6b4b9;
  --text-muted: #a17c82;
  --gold: #e8c572;
  --gold-soft: #f5de9a;
  --red: #a81b35;
  --red-deep: #7a1520;
  --board-bg: #f5f2eb;
  --board-text: #2a1a14;
  --board-role: #7a6a5c;
  --board-highlight: #efddb6;
  --favorite-pink: #f08099;
  --company-shiki: #f0603f;
  --company-toho: #5b93d6;
  --company-takarazuka: #c77de0;
  --company-other: #7fc46a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.app.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* データ取得が終わるまで出す全画面ローディング表示。.appのフェードインと差し替わる */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.35s ease;
}

.page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.page-loader .spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  border-top-color: var(--gold);
  animation: page-loader-spin 0.8s linear infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.brand {
  font-family: "Zen Kaku Gothic Antique", system-ui, sans-serif;
  letter-spacing: 3px;
}

.beta-banner {
  background: var(--red-deep);
  color: var(--gold-soft);
  font-size: 11px;
  line-height: 1.5;
  padding: 7px 16px;
  text-align: center;
}

.serif {
  font-family: "Shippori Mincho", serif;
}

/* Material Icons（classic）。絵文字は使わずアイコンフォントで統一する */
.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

.inline-icon {
  font-size: 1em;
  vertical-align: -0.15em;
}

.muted-icon {
  font-size: 20px;
  color: var(--text-muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #2c1b3c;
  border: 1px solid #4a2630;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  text-decoration: none;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.nav-card .material-icons {
  font-size: 24px;
  color: var(--gold);
}

.add-link {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  text-decoration: none;
}

.form-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.card-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 16px;
}

select.search-input,
input[type="date"].search-input,
input[type="time"].search-input {
  width: 100%;
  color-scheme: dark;
}

.hero {
  position: relative;
  margin: 0;
  padding: 0 0 20px;
  text-align: center;
  background: radial-gradient(ellipse 60% 75% at 50% 0%, #7a243880 0%, #3a142040 45%, transparent 100%);
}

.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 10px;
  background: var(--card-bg);
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slideshow img.active {
  opacity: 1;
}

.hero .kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-sub);
  font-size: 14px;
  margin: 0;
}

.section {
  padding: 18px 16px 0;
}

.section.beat {
  padding-top: 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 11px;
}

.section-head h2 {
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-size: 19px;
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-eyebrow {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 3px;
}

.section-head .aux {
  font-size: 13px;
  color: var(--text-muted);
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cast-board {
  flex: 0 0 auto;
  width: 330px;
  background: var(--board-bg);
  color: var(--board-text);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px #00000055;
}

.cast-board.wide {
  flex: none;
  width: 100%;
}

.cast-board .band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 16px;
  background: var(--red);
  color: #fbefd6;
  font-size: 13px;
  font-weight: 700;
  gap: 2px;
}

.cast-board .band .date {
  font-weight: 600;
  font-size: 12px;
  white-space: normal;
  opacity: 0.9;
}

.cast-board .content {
  padding: 16px 18px 18px;
}

.cast-board .title {
  text-align: center;
  margin-bottom: 10px;
}

.cast-board .title .name {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--red-deep);
}

.cast-board .title .sub {
  font-family: "Shippori Mincho", serif;
  font-size: 12px;
  color: #6e5a4e;
  letter-spacing: 2px;
}

.cast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cast-grid.list-layout {
  grid-template-columns: 1fr;
  gap: 0;
}

.cast-grid.list-layout .role-row {
  padding: 8px 0;
  border-bottom: 1px solid #e4dcc8;
}

.cast-grid.list-layout .role-row:last-child {
  border-bottom: 0;
}

.cast-grid.list-layout .role-row .role {
  font-size: 13px;
}

.cast-grid.list-layout .role-row .actor {
  font-size: 15px;
}

.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-family: "Shippori Mincho", serif;
  gap: 6px;
}

/* 狭い2列レイアウト（TOPのカルーセル）用: 役名を上、俳優名を下に積んで
   長い役名・俳優名でもカードの外にはみ出さないようにする */
.role-row.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.role-row.stacked .actor {
  align-items: flex-start;
  align-self: stretch;
  width: 100%;
}

.role-row.fav {
  background: var(--board-highlight);
  border-radius: 2px;
  padding: 5px 6px;
}

.role-row .role {
  font-size: 12px;
  color: var(--board-role);
}

.role-row .actor {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.role-row .actor.multi {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.role-row.stacked .actor.multi {
  align-items: flex-start;
}

.actor-line {
  display: block;
  max-width: 100%;
}

.actor-line .note {
  display: block;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-size: 11px;
  color: var(--board-role);
  margin-left: 0;
  margin-top: 2px;
  font-weight: 400;
  white-space: normal;
}

.role-row.fav .actor {
  color: #9a6b12;
}

.role-row .actor .material-icons {
  font-size: 14px;
}

.ensemble-block {
  text-align: center;
  margin-top: 10px;
}

.ensemble-block .heading {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: "Shippori Mincho", serif;
  font-size: 12px;
  color: #6e5a4e;
  margin-bottom: 5px;
}

.ensemble-block .heading .d {
  width: 16px;
  height: 1px;
  background: #b7a48c;
}

.ensemble-block .names {
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  color: #3a2c22;
  line-height: 19px;
}

.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: #8a7461;
  margin-top: 8px;
}

.legend .material-icons {
  font-size: 13px;
  color: var(--gold-soft);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
}

.chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--text-main);
  color: #1c1029;
  font-weight: 600;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.prod-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
}

.prod-row .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.prod-row .title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pill {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 2px 7px;
  border-radius: 9px;
  white-space: nowrap;
}

.prod-row .name {
  font-size: 16px;
  font-weight: 600;
}

.prod-row .loc {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--text-sub);
}

.prod-row .loc .material-icons {
  font-size: 14px;
}

.badge-row {
  display: flex;
  gap: 6px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

.badge .material-icons {
  font-size: 12px;
}

.badge.updated {
  background: #7fc46a22;
  border: 1px solid #7fc46a;
  color: #7fc46a;
}

.badge.newcast {
  background: #4a3a1e;
  color: var(--gold-soft);
}

.badge.preopening {
  background: #2c1b3c;
  border: 1px solid #5b93d6;
  color: #9db9e8;
}

.badge.oshi {
  background: #3e1826;
  color: var(--favorite-pink);
  display: flex;
  align-items: center;
  gap: 4px;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
}

.highlight-row b {
  margin-right: 4px;
}

.highlight-row.new {
  border-color: var(--gold);
}

.highlight-row.updated {
  border-color: #7fc46a;
}

.highlight-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.highlight-row.new .highlight-icon {
  color: var(--gold);
}

.highlight-row.updated .highlight-icon {
  color: #7fc46a;
}

.bell-btn {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #4a3a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  flex-shrink: 0;
}

.bell-btn .material-icons {
  font-size: 16px;
}

.empty-note {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
}

.back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
}

.back-header a.back {
  color: var(--text-sub);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.segment {
  display: flex;
  margin: 14px 16px 0;
  background: var(--card-bg);
  border-radius: 4px;
  padding: 4px;
}

.segment button {
  flex: 1;
  border: 0;
  padding: 8px;
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.segment button.active {
  background: var(--gold);
  color: #1c1029;
  font-weight: 600;
}

.week-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 16px 0;
  color: var(--text-sub);
  font-size: 14px;
}

.week-selector button {
  background: none;
  border: 0;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 0;
  text-align: center;
}

.profile .name {
  font-size: 23px;
  font-weight: 700;
}

.profile .kana {
  font-size: 13px;
  color: var(--text-muted);
}

.stats {
  display: flex;
  align-items: center;
}

.stats .stat {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats .stat .n {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
}

.stats .stat .l {
  font-size: 12px;
  color: var(--text-sub);
}

.stats .div {
  width: 1px;
  height: 26px;
  background: var(--card-border);
}

.notify-btn {
  width: 100%;
  max-width: 380px;
  padding: 13px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.notify-btn.active {
  background: #4a3a1e;
  color: var(--gold-soft);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.toggle-row .label {
  font-size: 15px;
  font-weight: 600;
}

.toggle-row .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--card-border);
  border: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.switch.on {
  background: var(--gold);
}

.switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}

.switch.on .knob {
  left: 20px;
}

.ticket-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}

.ticket-item .bar {
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
}

.history-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.history-item.current .dot {
  background: var(--gold);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
}

.search-result-row .info {
  flex: 1;
  min-width: 0;
}

.search-result-row .name {
  font-size: 15px;
  font-weight: 600;
}

.search-result-row .appearances {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-toggle-btn .material-icons {
  font-size: 16px;
}

.fav-toggle-btn.active {
  background: #4a3a1e;
  border-color: var(--gold);
  color: var(--gold);
}

.share-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: radial-gradient(ellipse 90% 100% at 0% 0%, #7a243850 0%, #3a142025 60%, transparent 100%);
  border: 1px solid var(--gold);
  border-radius: 4px;
}

.share-banner-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.share-banner-text .inline-icon {
  color: var(--gold);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--gold);
  color: #1c1029;
  border: 0;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.podium {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.podium-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 4px 4px 2px 2px;
  text-decoration: none;
  text-align: center;
}

.podium-card.empty {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
}

.podium-medal .material-icons {
  font-size: 22px;
}

.podium-rank {
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.podium-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.podium-count {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--favorite-pink);
}

.podium-card.rank1 {
  order: 2;
  padding-top: 22px;
  background: linear-gradient(180deg, #4a3a1e 0%, var(--card-bg) 70%);
  border: 1px solid var(--gold);
}

.podium-card.rank1 .podium-medal .material-icons {
  font-size: 30px;
  color: var(--gold);
}

.podium-card.rank1 .podium-rank {
  font-size: 16px;
  color: var(--gold);
}

.podium-card.rank1 .podium-name {
  font-size: 15px;
}

.podium-card.rank2 {
  order: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.podium-card.rank2 .podium-medal .material-icons {
  color: #cdd3da;
}

.podium-card.rank2 .podium-rank {
  color: #cdd3da;
}

.podium-card.rank3 {
  order: 3;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.podium-card.rank3 .podium-medal .material-icons {
  color: #c98a56;
}

.podium-card.rank3 .podium-rank {
  color: #c98a56;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-main);
}

.ranking-row .rank {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.ranking-row .name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.ranking-row .count {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--favorite-pink);
  flex-shrink: 0;
}

.oshi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.oshi-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.oshi-card .head .name {
  font-size: 16px;
  font-weight: 600;
}

.appearance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
}

.appearance-row:first-of-type {
  border-top: 0;
}

.appearance-row .role {
  color: var(--text-muted);
  flex-shrink: 0;
}

.no-appearance {
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 4px;
}

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

/* ============================================================
   PCレイアウト（画面幅860px以上）
   スマホ版の構造・クラスはそのまま流用し、.app に data-layout 属性で
   ページの性格（一覧/詳細/フォーム等）ごとに最大幅とグリッド化を切り替える。
   ============================================================ */
@media (min-width: 860px) {
  body {
    padding: 48px 24px;
    background: radial-gradient(ellipse 60% 40% at 50% -5%, #7a243833 0%, transparent 60%), var(--bg);
  }

  .app {
    max-width: 560px;
    min-height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px -24px #000000a0, 0 0 0 1px var(--card-border);
  }

  .app[data-layout="wide"] {
    max-width: 1120px;
  }

  .app[data-layout="medium"] {
    max-width: 760px;
  }

  .app[data-layout="narrow"] {
    max-width: 600px;
  }

  .app[data-layout="form"] {
    max-width: 480px;
  }

  .header,
  .back-header {
    padding: 18px 32px;
  }

  .section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .section.beat {
    padding-top: 40px;
  }

  .chip-row {
    padding-left: 32px;
    padding-right: 32px;
  }

  .profile {
    padding: 28px 32px 0;
  }

  .segment,
  .week-selector {
    margin-left: 32px;
    margin-right: 32px;
  }

  form#ticket-form {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-slideshow {
    max-height: 380px;
  }

  .nav-grid {
    gap: 14px;
  }

  .nav-card {
    padding: 20px 10px;
  }

  /* 一覧ページ（index.html）: 演目一覧をカードグリッドに */
  .app[data-layout="wide"] .prod-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
  }

  .app[data-layout="wide"] .carousel {
    flex-wrap: wrap;
  }

  /* 検索結果・私の推し一覧を2列に */
  .app[data-layout="medium"] #search-results,
  .app[data-layout="medium"] #oshi-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
  }

  .app[data-layout="medium"] #search-results .empty-note,
  .app[data-layout="medium"] #oshi-list .empty-note {
    grid-column: 1 / -1;
  }

  .app[data-layout="medium"] #ranking-list .ranking-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* 俳優ページ: 出演予定・履歴を2列に */
  .app[data-layout="medium"] #upcoming-list,
  .app[data-layout="medium"] #history-list,
  .app[data-layout="medium"] #viewing-history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
  }

  .app[data-layout="medium"] #upcoming-list .ticket-item,
  .app[data-layout="medium"] #history-list .history-item,
  .app[data-layout="medium"] #viewing-history-list .history-item {
    border-bottom: 1px solid var(--card-border);
  }

  .app[data-layout="medium"] #upcoming-list .empty-note,
  .app[data-layout="medium"] #history-list .empty-note,
  .app[data-layout="medium"] #viewing-history-list .empty-note {
    grid-column: 1 / -1;
  }

  /* 演目の週間キャスト表（cast.html）: リード役を2列に */
  .app[data-layout="medium"] .cast-board.wide .cast-grid.list-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .app[data-layout="medium"] .cast-board.wide .cast-grid.list-layout .role-row {
    border-bottom: 1px solid #e4dcc8;
  }
}
