/* ==========================================================================
   THE 女装家 - サイト共通スタイル
   構成:
     1. 変数 / 共通設定
     2. 共通パーツ（見出し・ボタン・タグ・ページネーション）
     3. ヘッダー / グローバルナビ / SPメニュー
     4. フッター / SP固定フッターバー
     5. 年齢認証
     6. TOPページ
     7. 在籍一覧・出勤一覧
     8. プロフィール詳細
     9. 裏日記 一覧・詳細
    10. 料金案内・初めての方へ
    11. レスポンシブ（SP）
   ========================================================================== */

/* -------------------------------------------------
   1. 変数 / 共通設定
------------------------------------------------- */
:root {
  --color-bg: #efe4c6;
  --color-bg-paper: #f4ecd8;
  --color-black: #0c0a08;
  --color-black-soft: #17130f;
  --color-primary: #7c1231;
  --color-primary-dark: #550c22;
  --color-primary-light: #9c2542;
  --color-gold: #c7a044;
  --color-gold-light: #e0c274;
  --color-gold-dark: #8a6a1f;
  --color-gray: #6f6f6f;
  --color-gray-light: #d8d3c2;
  --color-text: #3a2f22;
  --color-text-soft: #6b5f4d;
  --color-white: #fff;
  --color-card-bg: #fffdf6;
  --color-status-open: #7c1231;
  --color-status-few: #8a6a1f;
  --color-status-close: #7a7a7a;

  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;

  --container-width: 1180px;
  --header-black: linear-gradient(180deg, #050403 0%, #100b08 100%);
}

html {
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.25), rgba(0,0,0,0) 60%);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 視覚的には非表示だが読み上げ・SEOには残す（TOPページのh1等で使用） */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a img {
  transition: opacity .25s ease, transform .25s ease;
}
a:hover img {
  opacity: .85;
}

/* スクロールフェードイン（corner-frame単位） -------------------------------------------------- */
.corner-frame.reveal {
  opacity: 0;
  transform: translateY(70px) scale(.94);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.corner-frame.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .corner-frame.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero img,
  .btn-more,
  #ageGateYes img {
    animation: none !important;
  }
  .age-gate,
  .site-wrap {
    transition: opacity .3s ease !important;
    transform: none !important;
    filter: none !important;
  }
}

/* 見出し共通 -------------------------------------------------- */
.section {
  padding: 70px 0;
}
.section + .section {
  padding-top: 0;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: .12em;
  color: var(--color-text);
  position: relative;
  margin-bottom: 18px;
  scroll-margin-top: 24px;
}
.corner-frame > .section-title:first-child {
  margin-top: 30px;
}

.section-title::after {
  content: "";
  display: block;
  width: 220px;
  height: 12px;
  margin: 18px auto 0;
  background: url("../parts/deco-line.png") no-repeat center / contain;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.16,1,.3,1) .2s;
}
.corner-frame.reveal.is-revealed .section-title::after {
  transform: scaleX(1);
}

/* TOPページの各コンテナ見出し: PC_TOP_02.jpg のデザインに合わせて拡大（PC表示のみ） */
@media (min-width: 769px) {
  .corner-frame .section-title {
    font-size: 3rem;
  }
  .corner-frame .section-title::after {
    width: 460px;
    height: 34px;
    margin: 22px auto 0;
  }
}

.section-lead {
  text-align: center;
  color: var(--color-text-soft);
  margin-bottom: 40px;
  font-size: .95rem;
}

.corner-frame {
  position: relative;
}
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 70px;
  top: 10px;
  opacity: .85;
  pointer-events: none;
}
.corner-frame::before {
  left: 10px;
  background: url("../parts/frame-05.png") no-repeat center / contain;
}
.corner-frame::after {
  right: 10px;
  background: url("../parts/frame-06.png") no-repeat center / contain;
}
.list-frame::before {
  left: -14px;
}
.list-frame::after {
  right: -14px;
}
main > .list-frame {
  margin-top: 50px;
}
/* 新人情報・クチコミ・裏日記・料金案内などの .container.corner-frame
   セクション(一覧ページの .list-frame は対象外)は、見出しの margin-top(30px)
   だけだと上辺との間が詰まって見えるため、料金ページの .page-heading と
   同様にコンテナ自体にも上余白を持たせる */
.container.corner-frame:not(.list-frame) {
  padding-top: 26px;
}
.list-frame.is-loading {
  opacity: .5;
  pointer-events: none;
  transition: opacity .15s ease;
}
.cast-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-soft);
}

/* 共通ボタン -------------------------------------------------- */
.btn-img {
  display: inline-block;
  line-height: 0;
}

.btn-more {
  display: block;
  max-width: 320px;
  margin: 40px auto 0;
  animation: ctaGlowPulse 2.8s ease-in-out infinite;
}
.btn-more:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 0 16px rgba(199,160,68,.9)) brightness(1.05);
}

@keyframes ctaGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(199,160,68,0)); }
  50%      { filter: drop-shadow(0 0 14px rgba(199,160,68,.85)); }
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 18px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  border: 1px solid rgba(255,255,255,.25);
  white-space: nowrap;
}

.pill-btn--gold {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark));
  color: #3a2c0c;
}

.pill-btn--outline {
  background: #f7f1de;
  color: var(--color-text);
  border: 1px solid var(--color-gray-light);
}

.pill-btn--outline.is-active {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-white);
  border-radius: 8px;
  /* status-badge--openだけ枠線がある分、他のstatusより2px大きくなって
     カード内の他の要素（タグ等）の位置がズレていたため、全statusで
     同じ太さの枠線を持たせる（openだけ実際に見せて、他は透明にする） */
  border: 1px solid transparent;
}
.status-badge--open {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-gray-light);
}
.status-badge--few  {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark));
  color: #000;
}
.status-badge--close{ background: #a8a8a8; color: var(--color-text); }

/* ページネーション -------------------------------------------------- */
.pager-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 44px 0 24px;
  flex-wrap: wrap;
}
.pager-nav img {
  display: block;
  width: 210px;
  height: auto;
}

.pager-nums {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pager-nums a,
.pager-nums span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 3px;
  font-weight: 700;
  color: var(--color-text);
}
.pager-nums .is-current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 押せないページ送り（今のところ実際のページ分割が無く、常に1ページ目
   かつ最終ページなので、前後ボタンは押せない見た目にしておく） */
.pager-nav .is-disabled,
.pager-nums .is-disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* パンくず的な戻る導線 */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 0;
}
.footer-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  color: var(--color-white);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  text-align: center;
  font-size: .95rem;
  padding: 6px 8px;
  transition: filter .2s ease;
}
.footer-nav a:hover {
  filter: brightness(1.1);
}

/* 画像未設置プレースホルダー -------------------------------------------------- */
.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #e6dfc9, #e6dfc9 10px, #dad0b2 10px, #dad0b2 20px);
}
.no-photo .ph-label {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--color-text-soft);
  background: rgba(255,255,255,.7);
  padding: 3px 8px;
  border-radius: 3px;
}

/* -------------------------------------------------
   3. ヘッダー / グローバルナビ
------------------------------------------------- */
.site-header {
  background: var(--header-black);
  color: var(--color-white);
  position: relative;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 34px;
}
.header-logo {
  width: 120px;
  flex: none;
}
.header-brand-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.header-catch {
  width: 360px;
}
.header-brand-sub {
  display: flex;
  align-items: center;
  gap: 38px;
}

.header-info {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  white-space: nowrap;
}

.header-brand-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.header-brand-buttons img {
  display: block;
  width: 160px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.header-actions .btn-img img {
  display: block;
}
.header-icon-btn img {
  width: 70px;
}
.header-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--color-white);
  line-height: 1.3;
}
.header-line img {
  width: 60px;
}
.header-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,.3);
}

/* pc-only は display:block を強制するため、flex を必要とするコンポーネントは
   クラス2つ分の詳細度で明示的に上書きする */
.header-brand-buttons.pc-only,
.header-line.pc-only {
  display: flex;
}

.header-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: .88rem;
  background: none;
  border: none;
}
.header-menu-btn .bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.header-menu-btn .bars span {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-white);
}

/* ハンバーガーメニューの高さを隣のLINE予約ボタン（アイコン+テキスト）に揃える */
@media (min-width: 769px) {
  .header-menu-btn {
    gap: 12px;
  }
  .header-menu-btn .bars {
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 7px;
  }
  .header-menu-btn .bars span {
    width: 50px;
    height: 5px;
  }
}

.global-nav {
  border-top: 1px solid rgba(255,255,255,.08);
}
.global-nav ul {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 14px 24px;
}
.global-nav li {
  flex: 1;
}
.global-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  transition: filter .2s ease;
}
.global-nav li:first-child a {
  background: linear-gradient(180deg, #cf9a3d, #8a5a15);
}
.global-nav a:hover {
  filter: brightness(1.12);
}
.global-nav a.is-current {
  outline: 2px solid var(--color-gold-light);
  outline-offset: -2px;
}

/* SP専用ヘッダー要素は既定で非表示、SP幅で切替 */
.sp-only { display: none; }
.pc-only { display: block; }

/* SPスライドメニュー -------------------------------------------------- */
.sp-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.sp-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sp-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(78vw, 340px);
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  z-index: 401;
  transform: translateX(100%);
  transition: transform .35s ease;
  overflow-y: auto;
  padding: 20px 26px 40px;
}
.sp-menu-panel.is-open {
  transform: translateX(0);
}

.sp-menu-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.sp-menu-close button {
  font-size: 1.8rem;
  color: var(--color-white);
  line-height: 1;
  background: none;
}

.sp-menu-list li + li {
  margin-top: 4px;
}
.sp-menu-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.sp-menu-list img {
  width: 28px;
}

.sp-menu-accounts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-menu-accounts img {
  display: block;
  width: 100%;
}

/* -------------------------------------------------
   4. フッター / SP固定フッターバー
------------------------------------------------- */
.site-footer {
  background: var(--color-bg);
  padding-bottom: 40px;
}

.footer-catch {
  text-align: center;
  padding: 40px 0 10px;
}
.footer-catch img {
  width: 260px;
}

.footer-copy {
  text-align: center;
  font-size: .75rem;
  color: var(--color-text-soft);
  margin-top: 30px;
}

.sp-fixed-bar {
  display: none;
}

/* -------------------------------------------------
   5. 年齢認証
------------------------------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  z-index: 999;
  background: #000;
  transition: opacity .7s ease .15s, transform .8s cubic-bezier(.7,0,.84,0) .15s, filter .7s ease .15s;
}
.age-gate.is-hiding {
  opacity: 0;
  transform: scale(1.18);
  filter: brightness(2.6) blur(8px);
}
.age-gate.is-hidden {
  display: none;
}

.age-gate-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.age-gate-bg-blur {
  position: absolute;
  inset: -30px;
  background: url("../parts/age-verification-bg-large2.png") no-repeat center / cover;
  filter: blur(30px) brightness(.55);
}
.age-gate-bg-image {
  position: absolute;
  inset: 0;
  background: url("../parts/age-verification-bg-large2.png") no-repeat center bottom / cover;
}
.age-gate-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}

.age-gate-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  --gate-anchor-y: -50%;
  width: min(92%, 540px);
  background: rgba(238, 231, 205, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 46px 40px 38px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0;
  transform: translate(-50%, calc(var(--gate-anchor-y) + 18px));
  animation: ageGateIn .7s ease .1s forwards;
}

@keyframes ageGateIn {
  to { opacity: 1; transform: translate(-50%, var(--gate-anchor-y)); }
}

@media (min-width: 769px) {
  .age-gate-panel {
    width: min(80%, 440px);
    padding: 38px 32px 30px;
  }
}

/* PC版の背景フォーカス位置：cover時にどれだけ縦方向が切り取られるかは
   画面の「縦横比」で決まる（横幅だけでは決まらない）ため、
   縦横比ベースで刻んで、横長になるほど顔が見切れないよう調整する */
@media (min-width: 769px) {
  .age-gate-bg-image {
    background-position: center bottom;
  }
}
@media (min-width: 769px) and (min-aspect-ratio: 16/9) {
  .age-gate-bg-image {
    background-position: center 90%;
  }
}
@media (min-width: 769px) and (min-aspect-ratio: 2/1) {
  .age-gate-bg-image {
    background-position: center 75%;
  }
}
@media (min-width: 769px) and (min-aspect-ratio: 7/3) {
  .age-gate-bg-image {
    background-position: center 55%;
  }
}

.age-gate-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.age-gate-title img {
  width: 30px;
}

.age-gate-panel > .deco-line {
  width: 220px;
  margin: 0 auto 26px;
  display: block;
}

.age-gate-text {
  font-size: .95rem;
  margin-bottom: 18px;
  line-height: 1.8;
}
.age-gate-question {
  font-weight: 700;
  margin-bottom: 20px;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  margin: 0 auto;
}
.age-gate-buttons button {
  padding: 0;
  line-height: 0;
}
.age-gate-buttons img {
  width: 100%;
  transition: transform .2s ease, filter .2s ease;
}
.age-gate-buttons button:hover img {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
#ageGateYes img {
  animation: ctaGlowPulse 2.4s ease-in-out infinite;
}
#ageGateYes:hover img {
  animation-play-state: paused;
}

.age-gate-note {
  margin-top: 20px;
  font-size: .8rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.age-gate-reject {
  color: var(--color-white);
  text-align: center;
  max-width: 560px;
  padding: 0 20px;
}
.age-gate-reject h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.age-gate-reject p {
  line-height: 1.9;
}

/* 769px〜1450pxの中間帯：パネルの高さはほぼ一定なのに画面が縮むため、
   相対的にパネルが写真に対して大きくなり顔が埋もれてしまう。
   このゾーンだけパネルを一回り小さくし、背景も少し寄せて顔を確保する */
@media (min-width: 769px) and (max-width: 1450px) {
  .age-gate-panel {
    width: min(70%, 380px);
    padding: 28px 24px 22px;
  }
  .age-gate-title {
    font-size: 1.4rem;
  }
  .age-gate-text {
    font-size: .88rem;
  }
  .age-gate-bg-image {
    background-position: center top;
    transform: scale(1.4);
    transform-origin: 50% 100%;
  }
}

/* コンテンツ側のフェードイン（年齢認証通過時） */
.site-wrap {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
}
.site-wrap.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1) .25s,
              transform 1.3s cubic-bezier(.16,1,.3,1) .25s,
              filter 1s ease .25s;
}
/* 認証済みで再訪した場合、リビール演出の初期状態（ぼやけ）自体を
   描画させず、常に完成形をそのまま表示する（演出のチラつき防止） */
html.is-preverified .age-gate {
  display: none !important;
}
html.is-preverified .site-wrap {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* -------------------------------------------------
   6. TOPページ
------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  /* 単色を自分で持たず、body の背景(光の演出込み)をそのまま透けさせる。
     単色ベタ塗りにすると body 側の radial-gradient と微妙に色がずれ、
     斜めカット部分の境目にうっすら線が見えてしまうため */
  background: transparent;
}
.hero > img,
.hero-sp-image {
  width: 100%;
  display: block;
  animation: heroKenBurns 16s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.gate-open-btn {
  display: block;
  max-width: 460px;
  margin: -30px auto 0;
  position: relative;
  z-index: 5;
}

.hero-sp {
  position: relative;
}
.hero-nav-grid {
  display: grid;
  /* クチコミ・ランキングの2項目追加により8個になったため、3列(6個=2段)から
     4列(8個=2段)に変更し、ボタン1個あたりの幅をその分縮めて2段に収める */
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 20px 16px;
  background: var(--color-bg);
}
.hero-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 6px 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  border: 1px solid var(--color-gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
}

.event-banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.event-banner-track {
  display: flex;
  transition: transform .5s cubic-bezier(.65,0,.35,1);
}
.event-banner-slide {
  flex: 0 0 100%;
  min-width: 0;
  line-height: 0;
}
.event-banner-slide img {
  display: block;
  width: 100%;
}
.event-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.event-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.event-banner-dot.is-active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* 四隅フレーム：スライド画像が枠いっぱいに敷き詰められているため、
   .corner-frameのデフォルトの::before/::afterのままだと重なり順で
   左上だけ画像の下に隠れてしまう。z-indexで画像より前面に固定し、
   下2隅は疑似要素が2つしか使えないため実要素を追加して対応する */
.event-banner.corner-frame::before,
.event-banner.corner-frame::after {
  z-index: 2;
}
.event-banner.corner-frame::before {
  background-image: url("../parts/frame-01.png");
}
.event-banner.corner-frame::after {
  background-image: url("../parts/frame-02.png");
}
.event-banner-corner {
  position: absolute;
  width: 62px;
  height: 70px;
  bottom: 10px;
  opacity: .85;
  pointer-events: none;
  z-index: 2;
}
.event-banner-corner--bl {
  left: 10px;
  background: url("../parts/frame-03.png") no-repeat center / contain;
}
.event-banner-corner--br {
  right: 10px;
  background: url("../parts/frame-04.png") no-repeat center / contain;
}

.today-schedule {
  background-image:
    url("../parts/frame-03.png"),
    url("../parts/frame-04.png"),
    linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left 10px bottom 10px, right 10px bottom 10px, center;
  background-size: 62px 70px, 62px 70px, cover;
  border: 6px solid #3a0916;
  border-radius: 6px;
  padding: 40px 30px;
  /* 親 .container の左右padding(20px) + 自身のborder(6px)分だけ外側にはみ出させ、
     frame-01/02 の実位置を他セクションの frame-05/06 と一致させる */
  margin: 0 -26px;
  color: var(--color-white);
}
/* 四隅フレーム: 上部2隅は frame-01/02、下部2隅は上の背景レイヤーで frame-03/04 */
.today-schedule.corner-frame::before {
  background-image: url("../parts/frame-01.png");
}
.today-schedule.corner-frame::after {
  background-image: url("../parts/frame-02.png");
}
.today-schedule .section-title {
  color: var(--color-white);
}
.today-schedule .section-title::after {
  filter: brightness(1.4);
  margin-top: 8px;
}

.today-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 50px;
  max-width: 900px;
  margin: 30px auto 0;
}

.cast-mini-card {
  display: flex;
  gap: 22px;
  border-radius: 4px;
  padding: 14px;
}
.cast-mini-card .thumb {
  width: 160px;
  aspect-ratio: 390 / 560;
  flex: none;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}
.cast-mini-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cast-mini-card .info {
  flex: 1;
  min-width: 0;
}
.cast-mini-card .status-badge {
  font-size: .95rem;
  padding: 0px 20px;
}
.cast-mini-card .name {
  font-weight: 700;
  font-size: 1.4rem;
  margin: 1px 0;
}
.cast-mini-card .time {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f2d9e0;
}
.cast-mini-card .desc {
  font-size: .95rem;
  line-height: 1.6;
  color: #e9d3d9;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 50px;
  max-width: 900px;
  margin: 34px auto 0;
}

.info-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.info-card .thumb {
  width: 160px;
  aspect-ratio: 390 / 560;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
.info-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 裏日記のサムネイルは正方形で表示する（新人情報側のキャスト写真は3:4のまま） */
.info-card--diary .thumb {
  aspect-ratio: 1/1;
}
.info-card .cast-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.info-card .name {
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-card .name--cast {
  color: var(--color-primary);
}
.info-card .age {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text-soft);
  margin: 3px 0 6px;
}
.info-card .desc {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}
.info-card .stars {
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.info-card .date-tag {
  display: inline-block;
  font-size: .85rem;
  color: var(--color-black);
  font-weight: 700;
  margin-bottom: 6px;
}

.price-preview {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-bg);
  padding: 20px 30px;
}
.price-preview ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 50px;
}
.price-preview li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-gray-light);
  font-size: 1.2rem;
}
.price-preview li .label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 13px;
  margin-right: 8px;
  vertical-align: middle;
  background: url("../parts/deco-01.png") no-repeat center / contain;
}
.price-preview li .value {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.6rem;
  font-family: var(--font-serif);
}

/* TOPページの料金表: PC_TOP_02.jpg のデザインに合わせて太く・大きく（PC表示のみ） */
@media (min-width: 769px) {
  .price-preview {
    max-width: 950px;
    padding: 20px 24px;
  }
  .price-preview ul {
    gap: 12px 90px;
  }
  .price-preview li {
    font-size: 1.7rem;
    font-weight: 700;
    padding: 18px 0;
    justify-content: space-between;
    gap: 20px;
  }
  .price-preview li .label,
  .price-preview li .value {
    white-space: nowrap;
  }
  .price-preview li .value {
    font-size: 2.6rem;
  }
}

/* -------------------------------------------------
   7. 在籍一覧・出勤一覧
------------------------------------------------- */
.page-heading {
  text-align: center;
  padding: 56px 0 10px;
}
.page-heading h1,
.page-heading h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  letter-spacing: .12em;
}
.page-heading .deco-line {
  width: 260px;
  margin: 20px auto 0;
  display: block;
}
.page-heading--sub h2 {
  font-size: 2.5rem;
}
.page-heading--price h1,
.page-heading--price h2 {
  color: #7c1231;
}

/* #beginners 等、ページ内アンカーの着地位置調整用の目印。
   実際の見出しより少し上に着地してほしいので、見た目には出さずに
   position:relative で見出しより上へずらして置いておく */
.anchor-offset {
  display: block;
  position: relative;
  top: -40px;
  visibility: hidden;
  pointer-events: none;
}

.date-tabs,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 40px;
}
.date-tabs button,
.filter-tabs button {
  padding: 0px 20px;
  border-radius: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  font-weight: 700;
  font-size: .9rem;
}
.date-tabs button.is-sat:not(.is-active) {
  color: #2b6cb0;
}
.date-tabs button.is-sun:not(.is-active) {
  color: #d9382e;
}
.date-tabs button.is-active,
.filter-tabs button.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.current-date {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 20px;
  letter-spacing: .06em;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 50px;
}
.cast-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cast-card {
  background: var(--color-bg);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.cast-card:hover {
  transform: translateY(-10px);
}
.cast-card-thumb-wrap {
  display: block;
  position: relative;
}
.cast-card .thumb {
  aspect-ratio: 390 / 560;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
  position: relative;
  transition: box-shadow .4s ease;
}
.cast-card .thumb img {
  transition: transform .5s cubic-bezier(.16,1,.3,1), filter .4s ease, opacity .4s ease;
}
.cast-card:hover .thumb {
  box-shadow: 0 0 0 3px var(--color-gold), 0 22px 45px rgba(12,10,8,.5);
}
.cast-card:hover .thumb img {
  transform: scale(1.12) rotate(-1.5deg);
  filter: brightness(1.06) saturate(1.15);
  opacity: 1;
}

/* タブ非同期切り替え時：新しいカードが1枚ずつ浮かび上がる演出
   （在籍一覧・出勤一覧の.cast-cardだけでなく、クチコミ一覧のキャスト
   絞り込み結果である.review-cardにも同じ演出を適用する） */
.cast-card.tab-enter,
.review-card.tab-enter {
  animation: castCardIn 1.1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes castCardIn {
  from {
    opacity: 0;
    transform: translateY(55px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cast-card.tab-enter,
  .review-card.tab-enter {
    animation: none;
  }
}
.cast-card .new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 3px;
}
/* ランキングページの順位バッジ。1〜3位は金・銀・銅、4位以降は共通色 */
.cast-card .rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-black-soft);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(12,10,8,.35);
}
.cast-card .rank-badge--1 {
  background: linear-gradient(180deg, #f0d78a, #b8860b);
  color: var(--color-black);
}
.cast-card .rank-badge--2 {
  background: linear-gradient(180deg, #e6e6e6, #9a9a9a);
  color: var(--color-black);
}
.cast-card .rank-badge--3 {
  background: linear-gradient(180deg, #e0b48f, #a56a3a);
  color: #fff;
}
.cast-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cast-card .name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8rem;
  margin-top: 14px;
}
.cast-card .age {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-soft);
  margin: 4px 0 8px;
}
.cast-card .desc {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
  /* 紹介文の文字数がキャストごとに違うとタグの位置が揃わないため、
     4行で省略しつつ、4行に満たない紹介文も常に4行分の高さを確保して
     カードの高さ・タグの位置を揃える */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 4);
}
.cast-card .time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
/* ランキングページ：現在の並び替え基準（総合指名本数等）の実際の値を表示 */
.cast-card .rank-stat {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.cast-card .status-badge {
  margin-bottom: 10px;
}
.cast-card .tag-list {
  gap: 8px;
}
.cast-card .pill-btn {
  width: calc(50% - 4px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------
   8. プロフィール詳細
------------------------------------------------- */
.profile-head {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.profile-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 390/560;
  background: #ddd;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 10, 8, .45);
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.gallery-arrow:hover {
  background: rgba(12, 10, 8, .7);
}
.gallery-arrow--prev {
  left: 10px;
}
.gallery-arrow--next {
  right: 10px;
}
.profile-sub-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.profile-sub-photos div,
.profile-sub-photos .thumb {
  aspect-ratio: 390/560;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s ease;
}
.profile-sub-photos .thumb.is-active {
  border-color: var(--color-primary);
}
.profile-sub-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 2px;
}
.profile-kana {
  color: var(--color-text-soft);
  font-size: .85rem;
  margin-bottom: 14px;
}
.profile-new-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 3px;
  font-size: .75rem;
  margin-bottom: 16px;
}

.btn-message {
  display: inline-block;
  text-align: center;
  padding: 10px 28px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-gold), #5c4713);
  transition: filter .2s ease;
}
.btn-message:hover {
  filter: brightness(1.08);
}

.profile-sns-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .2s ease, filter .2s ease;
}
.profile-sns-icon:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.profile-sns-icon img {
  width: 100%;
  height: 100%;
}

.profile-table {
  width: 100%;
  font-size: .92rem;
  margin-bottom: 32px;
}
.profile-table th,
.profile-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-gray-light);
}
.profile-table th {
  width: 140px;
  color: var(--color-gold-dark);
  font-weight: 500;
}
.profile-table td {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-black);
}

.genre-block {
  margin-bottom: 34px;
}
.comment-area {
  max-width: 540px;
  margin-top: 46px;
  margin-left: auto;
  margin-right: auto;
}
.comment-area ~ .genre-block {
  margin-bottom: 46px;
}
.genre-block h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.genre-group {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 25px;
  text-align: left;
}
.genre-group .pill-btn {
  width: 120px;
  padding: 5px 4px;
}
.genre-group .genre-label {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-soft);
  margin-bottom: 1px;
}
.genre-group .tag-list {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  gap: 8px;
  justify-content: center;
  margin-top: 1px;
}

.comment-area dl {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-light);
}
.comment-area dl:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.comment-area dt {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-gold-dark);
  margin-bottom: 6px;
}
.comment-area dd {
  font-size: 1.02rem;
  color: var(--color-text);
}

.option-table {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: .92rem;
}
.option-table caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.option-table tr {
  border-bottom: 1px dashed var(--color-gray-light);
}
.option-table td {
  padding: 10px 4px;
}
.option-table td:first-child {
  width: 65%;
}
.option-table .price {
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
}
.option-table .note {
  display: block;
  font-size: .78rem;
  color: var(--color-text-soft);
}

.shop-comment {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  font-size: 1.05rem;
  line-height: 2;
  text-align: left;
  font-weight: 700;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic UI", "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
}

.week-schedule {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.week-schedule td {
  padding: 8px 0;
}
.week-schedule tr {
  border-bottom: 1px solid var(--color-gray-light);
}
.week-schedule .day {
  width: 140px;
  background: var(--color-bg-paper);
  text-align: center;
  font-weight: 700;
  border-radius: 3px;
}
.week-schedule .time {
  text-align: center;
}
.week-schedule .day.is-off,
.week-schedule .time.is-off {
  color: var(--color-gray);
}

.mini-diary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 540px;
  margin: 0 auto;
}
.mini-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 540px;
  margin: 0 auto;
}
/* 「クチコミをすべて見る」。専用の画像素材が無いため.btn-messageと同じ
   ゴールドグラデーションのCSSボタンにして統一感を持たせている */
.review-more-btn {
  display: block;
  max-width: 320px;
  margin: 24px auto 0;
  padding: 12px 20px;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-gold), #5c4713);
  transition: filter .2s ease;
}
.review-more-btn:hover {
  filter: brightness(1.08);
}
.mini-diary-card {
  display: flex;
  align-items: center;
  gap: 20px;
  /* .mini-diary-grid のグリッドアイテムとして、.excerpt(white-space:nowrap)
     の分だけ min-width:auto の既定挙動で膨張してしまうため明示的に0にする */
  min-width: 0;
}
.mini-diary-card .thumb {
  width: 140px;
  aspect-ratio: 1/1;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 0;
}
.mini-diary-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-diary-card .info {
  min-width: 0;
}
.mini-diary-card .date {
  font-size: .92rem;
  color: var(--color-text-soft);
}
.mini-diary-card .title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}
.mini-diary-card .excerpt {
  font-size: .95rem;
  color: var(--color-text-soft);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* クチコミカード（プロフィールページ内の一覧／クチコミ一覧ページの両方で共通使用） */
.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-gray-light);
}
.review-card:first-child {
  padding-top: 0;
}
.review-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.review-card-cast {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.review-card-cast .thumb {
  width: 100px;
  aspect-ratio: 390/560;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
.review-card-cast .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card-cast .name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.review-card .stars {
  color: var(--color-gold-dark);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.review-card-body p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 8px;
}
.review-card-body p:last-child {
  margin-bottom: 0;
}
.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  font-size: .78rem;
  color: var(--color-text-soft);
}

/* -------------------------------------------------
   8-2. クチコミ一覧
------------------------------------------------- */
.review-list-controls {
  max-width: 780px;
  margin: 30px auto 0;
}
.review-list-control-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-gray-light);
}
.review-list-control-row .control-label {
  flex: none;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cast-filter-select {
  padding: 8px 30px 8px 14px;
  border: 1px solid var(--color-gray-light);
  border-radius: 20px;
  background: var(--color-white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%237c1231" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 18px;
  appearance: none;
  -webkit-appearance: none;
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}
.review-list-total {
  max-width: 780px;
  margin: 16px auto 0;
  font-size: .85rem;
  color: var(--color-text-soft);
  text-align: right;
}
.review-list-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 780px;
  margin: 16px auto 0;
}
.review-list-grid .review-card {
  padding: 28px 0;
}

/* クチコミ投稿ボタン・モーダル（見た目のみ。バックエンド未接続） */
.review-post-open-btn {
  /* .review-list-control-row（絞り込み行）の右端に配置し、絞り込みの
     プルダウンと同じ高さに揃える */
  margin-left: auto;
  padding: 10px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--color-gold), #5c4713);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 12px rgba(12,10,8,.25);
  transition: filter .2s ease;
}
.review-post-open-btn:hover {
  filter: brightness(1.08);
}
.review-post-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,10,8,.55);
  z-index: 500;
  opacity: 0;
  transition: opacity .3s ease;
}
.review-post-modal-overlay.is-open {
  opacity: 1;
}
.review-post-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  /* 閉じている間は少し上にずらしておき、開くときに本来の位置(-50%)まで
     落ちてくるフェードイン演出にする */
  transform: translate(-50%, -65%);
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-bg-paper);
  border-radius: 10px;
  padding: 36px 28px 28px;
  box-shadow: 0 20px 60px rgba(12,10,8,.4);
  z-index: 501;
  opacity: 0;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.review-post-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.review-post-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-soft);
}
.review-post-step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.review-post-cast-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 2px;
}
.review-post-cast-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.review-post-cast-btn:hover {
  border-color: var(--color-gray-light);
  background: rgba(255,255,255,.4);
}
.review-post-cast-btn .thumb {
  width: 100%;
  aspect-ratio: 390/560;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
.review-post-cast-btn .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-post-cast-btn span {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-text);
}
.review-post-back {
  font-size: .85rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}
.review-post-back:hover {
  color: var(--color-primary);
}
.review-post-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-post-form[hidden] {
  display: none;
}
.review-post-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-post-field-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.review-post-field input[type="text"],
.review-post-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-gray-light);
  border-radius: 4px;
  background: var(--color-white);
  font-size: .92rem;
  resize: vertical;
}
.review-post-star-input {
  display: flex;
  gap: 6px;
}
.review-post-star {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-gray-light);
  transition: color .15s ease, transform .1s ease;
}
.review-post-star:hover {
  transform: scale(1.1);
}
.review-post-star.is-filled {
  color: var(--color-gold-dark);
}
.review-post-submit {
  align-self: center;
  margin-top: 6px;
  padding: 12px 40px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
}
.review-post-thanks {
  text-align: center;
  padding: 20px 0;
}
.review-post-thanks-note {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--color-text-soft);
}

/* -------------------------------------------------
   9. 裏日記 一覧・詳細
------------------------------------------------- */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 50px;
}
.diary-card {
  display: flex;
  gap: 24px;
  /* align-itemsの既定値(stretch)だとタイトルが2行になった時にこのカードの
     高さが伸び、.thumbも一緒に引き伸ばされてaspect-ratio:1/1の正方形が
     崩れてしまうため、サムネイルはテキスト量に関わらず自身の実寸(正方形)を
     保つようにする */
  align-items: flex-start;
  /* .diary-card自体も.diary-gridのグリッドアイテムであり、min-width:autoの
     既定挙動のままだと中の.titleのwhite-space:nowrapな内容分だけこのカード
     自体がグリッド列の幅を超えて広がろうとしてしまう（結果、1行省略が効かず
     ページ全体が横スクロールしてしまっていた）。明示的に0にして、グリッド列の
     幅までしか広がれないようにする */
  min-width: 0;
}
/* テキスト側(サムネイル以外)のflexアイテム。同じ理由でこちらも0にしておく */
.diary-card > div {
  min-width: 0;
}
.diary-card .thumb {
  width: 200px;
  aspect-ratio: 1/1;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
.diary-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diary-card .cast-name {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0;
}
.diary-card .date {
  color: var(--color-text-soft);
  font-size: .85rem;
  margin-bottom: 4px;
}
.diary-card .cat-tag {
  display: inline-block;
  width: 90px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 0;
  border-radius: 3px;
  margin-bottom: 6px;
}
.diary-card .title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
  /* 2行になるとカードの高さが伸びてサムネイルサイズが崩れるため、
     2行目に入りそうな場合は1行で省略表示にする */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diary-card .excerpt {
  font-size: .85rem;
  color: var(--color-text-soft);
}

.diary-detail {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 46px;
  align-items: start;
}
/* 長いタイトルやURLなど、折り返せない長い文字列が入ると1frの列が
   min-width:autoの既定挙動で内容分まで広がりページがはみ出すため、
   明示的に0にして本来の1frの幅まで縮められるようにする */
.diary-detail > div {
  min-width: 0;
}
.diary-detail-photo {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.diary-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.diary-detail-castname {
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 6px;
}
.diary-detail-castname--sp {
  display: none;
}
.diary-detail-date {
  color: var(--color-text-soft);
  margin-bottom: 16px;
}
.diary-detail-cat {
  position: relative;
  display: block;
  text-align: center;
  background: linear-gradient(180deg, var(--color-gold), #5c4713);
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  padding: 14px 34px;
  border-radius: 4px;
  margin-bottom: 24px;
  line-height: 1.4;
}
.diary-detail-cat::before,
.diary-detail-cat::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 24px;
  height: 27px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}
.diary-detail-cat::before {
  left: 6px;
  background-image: url("../parts/frame-01.png");
}
.diary-detail-cat::after {
  right: 6px;
  background-image: url("../parts/frame-02.png");
}
.diary-detail-body {
  font-size: 1rem;
  line-height: 2.1;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.diary-detail-tags {
  margin-bottom: 30px;
}
.diary-detail-tags .pill-btn--outline {
  cursor: default;
}
.diary-profile-link {
  display: block;
  text-align: center;
  padding: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-gold), #5c4713);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 40px auto 20px;
}
.diary-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.diary-prev-next a {
  display: block;
  text-align: center;
  padding: 11px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(12,10,8,.18);
}
.diary-prev-next a.is-full {
  grid-column: 1 / -1;
}

/* -------------------------------------------------
   10. 料金案内・初めての方へ
------------------------------------------------- */
.price-table-main {
  max-width: 1000px;
  margin: 0 auto 50px;
}
.price-table-main ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 50px;
}
.price-table-main li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--color-gray-light);
}
.price-table-main .label {
  font-size: 1.55rem;
  font-weight: 700;
}
.price-table-main .label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  background: url("../parts/deco-01.png") no-repeat center / contain;
}
.price-table-main .value {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 2.4rem;
}
.price-table-main .badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
/* 人気No.1バッジが付いたコースは、コース名だけ赤色で強調する */
.price-table-main li:has(.badge) .label {
  color: #d9382e;
}

.option-list-block {
  max-width: 800px;
  margin: 0 auto 50px;
}
.option-list-block h2 {
  font-family: var(--font-serif);
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  letter-spacing: .1em;
}
.option-list-block ul li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-gray-light);
}
.option-list-block .opt-name {
  font-weight: 700;
  font-size: 1.4rem;
}
.option-list-block .opt-desc {
  display: block;
  font-size: 1.2rem;
  color: var(--color-gold-dark);
  font-weight: 500;
  margin-top: 4px;
}
.option-list-block .opt-price {
  flex: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.guide-list {
  max-width: 800px;
  margin: 0 auto 50px;
}
.guide-list > li {
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-gray-light);
}
.guide-list .g-title {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-black);
  margin-bottom: 6px;
}
.guide-list .g-title::before {
  content: url("../parts/deco-01.png");
  display: inline-block;
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.guide-list .g-desc,
.flow-step .body p {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-gold-dark);
}

.flow-steps {
  max-width: 700px;
  margin: 0 auto 50px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
}
.flow-step .num {
  width: 44px;
  flex: none;
}
.flow-step .body h3 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.flow-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.flow-arrow img {
  width: 20px;
}
.flow-final {
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 20px;
}

.notice-block {
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--color-black);
}
.notice-block h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 6px;
  text-align: center;
}
.notice-block p {
  color: var(--color-gold-dark);
  text-align: left;
  margin-bottom: 6px;
}
.notice-block--tight {
  margin-bottom: 16px;
}

.prohibited-list {
  max-width: 800px;
  margin: 0 auto 16px;
  columns: 2;
  column-gap: 40px;
  font-size: .88rem;
  color: var(--color-text-soft);
}
.prohibited-list li {
  break-inside: avoid;
  padding: 6px 0;
  font-weight: 700;
  border-bottom: 1px dotted var(--color-gray-light);
}

.see-you {
  text-align: center;
  margin: 0 auto 120px;
  display: block;
  max-width: 320px;
}

/* ==================== 会員ログイン ==================== */
.login-panel {
  max-width: 440px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: 0 10px 30px rgba(12,10,8,.08);
}
.login-lead {
  text-align: center;
  font-size: .88rem;
  color: var(--color-text-soft);
  margin-bottom: 28px;
  line-height: 1.7;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-field-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .04em;
}
.login-field input {
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-gray-light);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-field input:focus {
  outline: none;
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 3px rgba(199,160,68,.2);
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--color-text-soft);
  cursor: pointer;
}
.login-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
}
.login-submit {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .08em;
  padding: 14px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  color: var(--color-white);
  cursor: pointer;
  margin-top: 6px;
  transition: filter .2s ease, transform .2s ease;
}
.login-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.login-forgot {
  display: block;
  text-align: center;
  font-size: .8rem;
  color: var(--color-text-soft);
  text-decoration: underline;
  margin-top: 18px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
  color: var(--color-text-soft);
  font-size: .78rem;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-gray-light);
}
.login-signup-link {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: .92rem;
  letter-spacing: .06em;
  padding: 13px;
  border: 1px solid var(--color-gold-dark);
  border-radius: 4px;
  color: var(--color-gold-dark);
  transition: background .2s ease, color .2s ease;
}
.login-signup-link:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
}
