html {
  font-size: 100%;
  background: var(--page-bg);
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-feature-settings: "palt" 1;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 15% 18%, rgba(245, 189, 63, .16), transparent 28rem),
    linear-gradient(180deg, #f4dfc7 0, var(--page-bg) 34rem, #fff8ee 100%);
}

a {
  color: inherit;
}

img {
  vertical-align: middle;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 7px clamp(14px, 2.5vw, 30px);
  border-bottom: 0;
  background: rgba(255, 250, 241, .93);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(67, 29, 16, .07);
}

.logo {
  width: clamp(70px, 8vw, 96px);
  padding: 0;
}

.logo a {
  display: block;
  border-radius: 10px;
}

.logo img {
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: block;
  min-height: 0;
  padding: 0;
  background: radial-gradient(circle at 78% 14%, rgba(245, 189, 63, .42), transparent 20rem),
    radial-gradient(circle at 16% 86%, rgba(255, 255, 255, .08), transparent 22rem),
    linear-gradient(145deg, #5b180d 0%, #9f2817 46%, #cf4a24 100%);
  width: 100%;
  height: auto;
}

.logomessage_setting h1 {
  width: 100%;
  margin: 0 auto;
  filter: none;
  display: block;
  max-width: 1500px;
  height: auto;
  padding: 0;
  overflow: visible;
}

.logomessage_setting h1 img {
  width: 100%;
  height: auto;
  position: static;
  display: block;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: initial;
  transform: none;
}

.site-main {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px) clamp(62px, 8vw, 96px);
  flex: 1;
}

.site-main > section {
  width: 100%;
}

.schedule-section {
  position: relative;
  z-index: 5;
  margin-top: 0 !important;
  margin-bottom: clamp(62px, 8vw, 92px) !important;
  text-align: center;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(18px, 2.6vw, 28px) 16px clamp(22px, 3vw, 34px);
  border-top: 7px solid var(--yellow);
  background: var(--cream);
  box-shadow: 0 8px 26px rgba(67, 29, 16, .08);
}

.p-program__date {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--brown);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: .02em;
  max-width: 100%;
  width: fit-content;
}

.accent {
  display: inline-block;
  color: var(--red);
  font-size: 1.8em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  text-shadow: 2px 2px 0 rgba(245, 189, 63, .42);
}

.content-section {
  margin-bottom: clamp(68px, 9vw, 106px) !important;
}

h2 {
  position: relative;
  width: fit-content;
  margin: 0 auto clamp(28px, 4vw, 38px) !important;
  padding: 0;
  color: var(--brown);
  font-size: clamp(30px, 4.8vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .04em;
}

p {
  color: var(--dark-text-color);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
}

.bangumi-naiyou {
  width: min(100%, 900px);
  margin: 0 auto clamp(26px, 4vw, 40px) !important;
  padding: clamp(26px, 4.5vw, 50px);
  border: 0;
  border-radius: 0 18px 18px 0;
  background: rgba(255, 250, 241, .88);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bangumi-naiyou p {
  margin-bottom: 1em !important;
  line-height: 2;
  color: #3a261d;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 650;
}

.bangumi-naiyou p:last-child {
  margin-bottom: 0 !important;
}

.bangumi-naiyou p:first-child {
  color: inherit;
  font-weight: 650;
}

.cast-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.6vw, 24px);
  width: min(100%, 1040px);
  margin: 0 auto;
}

.cast-item {
  overflow: visible;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transition: none;
}

/* .cast-item:hover {
  transform: none;
  box-shadow: none;
} */

.cast-item dt {
  overflow: hidden;
  margin: 0;
  background: #ead5bd;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(67, 29, 16, .12);
}

.cast-item img {
  width: 100%;
  height: auto;
  transition: transform .35s ease;
}

/* .cast-item:hover img {
  transform: scale(1.02);
} */

.cast-item dd {
  margin: 0;
  padding: 13px 6px 0;
  color: var(--brown);
  background: transparent;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 900;
  line-height: 1.5;
}

.shop-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(58, 40, 31, .08);
  border-radius: clamp(18px, 2.5vw, 26px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(67, 42, 28, .08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

/* .shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 40, 31, .16);
  box-shadow: 0 22px 52px rgba(67, 42, 28, .12);
} */

.shop-card-content {
  padding: 0 0 clamp(22px, 3vw, 30px);
  background: #fffcf7;
}


/* ==========================================
   ランキング：共通レイアウト
========================================== */
.ranking-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.ranking-container > .shop-card {
  border: 3px solid var(--rank-border);
  border-radius: 23px;
  background: #fffcf7;
  box-shadow: var(--rank-shadow);
}

.ranking-container > .shop-card .shop-card-content {
  background: #fffcf7;
}

/* 順位の帯：全店舗共通 */
.ranking-container > .shop-card > h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  color: var(--rank-heading-color);
  background: var(--rank-heading-bg);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .05em;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .12);
}

/* 店名のメタリック帯：全店舗共通 */
.ranking-container > .shop-card > .shop-card-content > h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  color: var(--rank-name-color);
  background: linear-gradient(
    90deg,
    var(--metal-dark),
    var(--metal-light) 35%,
    var(--metal-mid) 70%,
    var(--metal-light)
  );
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}


/* ==========================================
  4位以下：カレー風ノーマルカラー
========================================== */

/* カード全体 */
.ranking-container > .shop-card:nth-child(n+4) {
  border: 2px solid #d6ad63;
  border-radius: 23px;
  background: #fffaf0;
  box-shadow: 0 8px 24px rgba(100, 72, 35, .08);
}

/* 順位：マスタードイエロー */
.ranking-container > .shop-card:nth-child(n+4) > h3 {
  color: #56381b;
  background: #e8bf72;
  text-shadow: none;
  box-shadow: none;
}

/* 店名：淡いクリーム色 */
.ranking-container > .shop-card:nth-child(n+4)
.shop-card-content > h4 {
  color: #56381b;
  background: #fff1d5;
  text-shadow: none;
}

/* 1位：ゴールド */
.ranking-container > .shop-card:nth-child(1) {
  --rank-border: #ca9436;
  --rank-card-bg: #fffaf0;
  --rank-card-tint: #fff4da;
  --rank-shadow: 0 0 0 4px rgba(255, 231, 178, .75), 0 16px 42px rgba(119, 77, 23, .17);
  --rank-heading-color: #f8d77c;
  --rank-heading-bg: linear-gradient(130deg, #321c12, #613e22 52%, #301c12);
  --rank-name-color: #3b2918;
  --metal-dark: #aa6a26;
  --metal-mid: #c99237;
  --metal-light: #ffe9a6;
}

/* 2位：シルバー */
.ranking-container > .shop-card:nth-child(2) {
  --rank-border: #aab5c5;
  --rank-card-tint: #f0f3f8;
  --rank-shadow: 0 0 0 4px rgba(213, 222, 232, .65), 0 16px 42px rgba(65, 80, 105, .17);
  --rank-heading-color: #f0f5fc;
  --rank-heading-bg: linear-gradient(130deg, #252d39, #647183 52%, #303945);
  --rank-name-color: #252d39;
  --metal-dark: #7e8b9d;
  --metal-mid: #9daabb;
  --metal-light: #fff;
}

/* 3位：ブロンズ */
.ranking-container > .shop-card:nth-child(3) {
  --rank-border: #be855e;
  --rank-card-tint: #fff0e2;
  --rank-shadow: 0 0 0 4px rgba(239, 199, 164, .65), 0 16px 42px rgba(111, 65, 38, .17);
  --rank-heading-color: #ffdbb8;
  --rank-heading-bg: linear-gradient(130deg, #432619, #946044 52%, #4d2c20);
  --rank-name-color: #432619;
  --metal-dark: #985d3e;
  --metal-mid: #bd8056;
  --metal-light: #f9d4ab;
}

.shop-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4px;
  width: 100%;
  margin-bottom: 0;
}

.shop-images img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
}

.store-info {
  display: grid;
  gap: 0;
  margin: 18px clamp(20px, 3vw, 30px) 0;
  padding: 0;
  color: var(--primary-text-color);
  font-size: 13px;
  border-top: 1px solid #ece5dd;
}

.store-info li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #ece5dd;
  background: transparent;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.store-label {
  color: #866445;
  font-weight: 700;
  white-space: nowrap;
}

.streaming-section {
  width: min(100%, 920px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(28px, 4vw, 44px) !important;
  border: 2px solid var(--brown);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 8px 8px 0 rgba(67, 29, 16, .12);
}

.streaming-section h2 {
  margin-bottom: 20px !important;
  font-size: clamp(26px, 4vw, 38px);
}

.haishin {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(100%, 780px);
  margin: 16px auto 0;
  padding: 0;
}

.haishin li {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 10px;
  box-shadow: none;
}

/* .haishin li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(67, 29, 16, .09);
} */

.haishin a {
  display: grid;
  place-items: center;
  width: 100%;
}

.haishin img {
  width: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

footer {
  width: 100%;
  padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
  text-align: center;
  background: #35170f;
}

footer p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .04em;
  white-space: normal;
}

:root {
  --page-bg: #f7ead8;
  --page-bg-deep: #eed8bd;
  --ink: #2a1710;
  --brown: #431d10;
  --red: #d93a20;
  --red-deep: #a92314;
  --yellow: #f5bd3f;
  --cream: #fffaf1;
  --line: rgba(67, 29, 16, .16);
}

.pagetop {
  border: 0;
  background: var(--brown);
  box-shadow: 0 8px 18px rgba(47, 33, 27, .2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ------------------------------------------
  スマートフォン（599px以下）
------------------------------------------ */
@media (max-width: 599px) {
  .site-header { min-height: 50px; }
  .schedule-section {
    padding: 14px 10px 19px;
    border-top-width: 5px;
  }
  .p-program__date { font-size: clamp(17px, 5.2vw, 23px); }
  .bangumi-naiyou {
    padding: 24px 20px;
    border-radius: 0 12px 12px 0;
    border-left-width: 7px;
  }
  .bangumi-naiyou p { line-height: 1.85; }
  .cast-list { gap: 30px; }
  .cast-item dt { border-radius: 14px; }
  .shop-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(67, 42, 28, .09);
  }
  .shop-card-content { padding-bottom: 20px; }
  .shop-images {
    grid-template-columns: 1fr;
    gap: 8px;
    background: transparent;
    padding: 0 10px;
  }
  .shop-images img {
    border-radius: 14px;
  }
  .store-info { margin: 16px 16px 0; }
  .store-info li {
    padding: 9px 0;
    line-height: 1.65;
  }
  .streaming-section {
    padding: 26px 18px !important;
    border-radius: 12px;
    box-shadow: 5px 5px 0 rgba(67, 29, 16, .12);
  }
}

/* 出演者・配信ロゴを3列表示 */
@media (min-width: 600px) {
  .cast-list,
  .haishin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ランキングを2列表示 */
@media (min-width: 768px) {
  .site-main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .bangumi-naiyou { text-align: center; }
  .ranking-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .ranking-container > .shop-card > h3 {
    font-size: 30px;
    padding: 10px;
  }
  .ranking-container > .shop-card > .shop-card-content > h4 {
    padding: 10px;
    font-size: clamp(18px, 2.5vw, 25px);
  }

  .shop-images {
    padding: 8px;
    gap: 8px;
    background: transparent;
  }

  .shop-images img {
    border-radius: 8px;
  }

}

/* 広いPCでランキングの余白と文字を調整 */
@media (min-width: 1100px) {
  .ranking-container { gap: 30px; }
  .ranking-container > .shop-card > h3 {
    font-size: clamp(28px, 4vw, 40px);
    padding: 15px;
  }
  .ranking-container > .shop-card > .shop-card-content > h4 {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 1440px以上：店舗情報を大きくする */
@media (min-width: 1440px) {
  .ranking-container > .shop-card > h3 {
    font-size: 32px;
    padding: 20px 16px;
  }

  .store-info {
    font-size: 16px;
    margin: 24px 28px 0;
  }

  .store-info li {
    padding: 14px 0;
    line-height: 1.8;
  }

}