.page-title .ranking-main-title {
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0%, 75px);
    font-size: 72px;
    text-align: center;
    margin: 40px auto 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Cinzel', 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
    z-index: 1;
    pointer-events: none;
}

.page-title .ranking-main-title {
  position:relative;
  top: 0;
  left: 0;
  transform: translate(0%, 75px);
  font-size: 72px;
  text-align: center;
  margin: 40px auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  z-index: 1;
  pointer-events: none;
}

/* castpage.css - CAST一覧ページ専用スタイル（高級感・レスポンシブ改善・画像内ラベル表示） */

#castpage-wrapper {
  padding-bottom: 50px;
  font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
}

#castpage-title {
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 42px 20px 30px;
  border-bottom: 2px solid #4296e4;
  text-align: center;
}

.castpage-heading {
  font-size: 72px;
  text-align: center;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  z-index: 1;
  pointer-events: none;
}

.castpage-intro {
  color: #222;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: none;
}

#castpage-list-section {
  padding: 25px 10px;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  margin: 25px auto;
  width: 95%;
  max-width: 1300px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

#castpage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.castpage-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(3px);
}

.castpage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.castpage-card-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

.castpage-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #eee;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.castpage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
  display: block;
}

.castpage-card:hover .castpage-image {
  transform: scale(1.05);
}

.castpage-info {
  padding: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

.castpage-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

.castpage-meta {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 6px;
}

.castpage-no-results {
  text-align: center;
  color: #999;
  font-size: 1.2rem;
  padding: 30px 0;
}

/* ラベル：画像の下端に重ねる */
.castpage-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(66, 150, 228, 0.3); /* 不透明度30%の青 */
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
  font-weight: bold;
  padding: 20px 0;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
  #castpage-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  #castpage-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .castpage-heading {
    font-size: 2.4rem;
  }

  .castpage-intro {
    font-size: 0.95rem;
    color: #111;
  }

  .castpage-name {
    font-size: 1.15rem;
  }

  .castpage-meta {
    font-size: 0.95rem;
  }

  .castpage-info {
    padding: 4px;
  }

  .castpage-image-wrapper {
    aspect-ratio: 3 / 3.5;
  }
}

@media (min-width: 1025px) {
  .castpage-label {
    padding: 25px 0;
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .castpage-label {
    padding: 10px 0 !important;
    font-size: 1.4rem; /* ついでにスマホ用フォントサイズも調整 */
  }
}

@media (min-width: 1025px) {
  #castpage-list {
    grid-template-columns: repeat(5, 1fr); /* ← ここを追加 */
  }

  .castpage-label {
    padding: 25px 0;
    font-size: 1.4rem;
  }
}

/* === 出勤スケジュールページ用追加スタイル === */

/* 日付ボタンエリア */
.schedule-button-group {
  margin: 30px auto 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.schedule-btn {
  background: #fff;
  border: 2px solid #4296e4;
  color: #4296e4;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(66, 150, 228, 0.1);
}

.schedule-btn:hover,
.schedule-btn.active {
  background: #4296e4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(66, 150, 228, 0.2);
}

.today-label {
  color: #fff;
  background: #4296e4;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 0.9em;
}

/* 今日の出勤キャストリストエリア（.castpage-card と共通化） */
.today-boy-item {
  animation: fadeIn 0.4s ease;
}

/* キャストカードのラベル（勤務時間） */
.castpage-label {
  background-color: rgba(66, 150, 228, 0.75);
  font-size: 1.3rem;
  padding: 12px 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 出勤中以外は非表示（JavaScript制御用） */
.today-boy-item {
  display: none;
}

/* 初期表示（今日）だけ出す用スタイルはHTML側でinline指定済み */

/* アニメーション（任意） */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スマホ向け調整 */
@media (max-width: 768px) {
  .schedule-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .today-label {
    font-size: 0.8rem;
  }

  .castpage-label {
    font-size: 1.1rem;
    padding: 10px 0;
  }
}

#castpage-title {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 60px 20px 40px;
  box-sizing: border-box;
}

/*============================
  スケジュール全体背景タイル
============================*/
#schedule-list-section {
  padding: 10px;
  margin: 15px auto;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  max-width: 1300px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/*============================
  日付ボタンラッパー（SP横スクロール）
============================*/
.schedule-button-group {
  margin-bottom: 30px;
}

/* 中のボタン群 */
.scroll-inner {
  display: flex;
  gap: 10px;
}

/* PCでは中央寄せ + 折り返しなし */
@media screen and (min-width: 769px) {
  .scroll-inner {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

/* SPでは左寄せスクロール */
@media screen and (max-width: 768px) {
  .scroll-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-left: 12px;
  }
  .schedule-btn {
    scroll-snap-align: start;
  }
}

/* ボタン共通 */
.schedule-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedule-btn.active {
  background: #4296e4;
  color: #fff;
  border-color: #4296e4;
}

.schedule-btn .today-label {
  font-weight: bold;
  font-size: 12px;
  background: #4296e4;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 4px;
}

/*============================
  出勤カード表示（グリッド風）
============================*/
.today-boy-list {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  justify-content: flex-start;
}

.today-boy-item {
  padding: 10px;
  box-sizing: border-box;
  flex: 0 0 20%;
}

.today-boy-panel {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* カード画像とオーバーレイ */
/* ===== 画像カード：高さをpaddingで固定 ===== */
.img-wrap {
  position: relative;
  width: 100%;
  padding-top: 133.333%; /* = 4:3 縦横比（高さ/幅 × 100） */
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ===== カード画像：親の中で絶対位置にフィット ===== */
.img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.today-boy-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  padding: 6px 4px;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.today-boy-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #222;
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/*============================
  レスポンシブ調整
============================*/
@media screen and (max-width: 1024px) {
  .today-boy-item {
    flex: 0 0 25%;
  }
}

@media screen and (max-width: 768px) {
  .today-boy-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }

  .today-boy-item {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 10px;
    box-sizing: border-box;
  }

  .today-boy-overlay {
    font-size: 11px;
    padding: 5px;
  }

  .today-boy-name {
    font-size: 12px;
  }
}

/* 外枠（PC用中央寄せの基点） */
.scroll-outer {
  width: 100%;
}

/* 中身（ボタン群） */
.scroll-inner {
  display: flex;
  gap: 10px;
  padding: 15px 12px;
  flex-wrap: nowrap;
}

/* スマホは横スクロール可能 */
@media screen and (max-width: 768px) {
  .scroll-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scroll-inner {
    min-width: max-content;
    scroll-snap-type: x mandatory;
  }

  .schedule-btn {
    scroll-snap-align: start;
  }
}

/* PCは中央寄せ */
@media screen and (min-width: 769px) {
  .scroll-outer {
    display: flex;
    justify-content: center;
  }
}

.schedule-button-group {
  margin: 30px auto 30px;
  max-width: 1300px;
  padding: 0 10px;
}

.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
  display: flex;
  align-items: stretch; /* 高さを揃える */
}

/*============================
  SYSTEMページ：全体ラッパー
============================*/
#price-system-section {
  padding: 15px 5px;
  margin: 15px auto;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  max-width: 1300px;
  width: 95%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/*============================
  タイトル（CAST一覧と統一）
============================*/
#price-system-title {
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 42px 20px 30px;
  border-bottom: 2px solid #4296e4;
  text-align: center;
}

#price-system-title .castpage-heading {
  font-size: 72px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

#price-system-title .castpage-intro {
  color: #222;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/*============================
  タブ切り替えボタン（常に3つ横並び）
============================*/
.tab-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 40px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tab-buttons button {
  flex: 1 1 0;
  max-width: calc(33.33% - 8px);
  min-width: 0;
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: bold;
  background: #fff;
  border: 2px solid #4296e4;
  color: #4296e4;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(66, 150, 228, 0.1);
}

.tab-buttons button.active,
.tab-buttons button:hover {
  background: #4296e4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(66, 150, 228, 0.2);
}

/*============================
  タブコンテンツ切り替え
============================*/
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/*============================
  テーブル（2列・3列どちらも対応）
============================*/
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table th,
table td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  word-wrap: break-word;
}

table th {
  background: #f0f4f8;
  font-weight: bold;
  color: #333;
}

/* 2列幅（基本・オプションなど） */
table th:first-child,
table td:first-child {
  width: 60%;
}
table th:last-child,
table td:last-child {
  width: 40%;
}

/* 3列幅（デートコースなど） */
.price-table th,
.price-table td {
  width: 33.33%;
}

/*============================
  補足説明・注意書き
============================*/
.price-notes {
  margin-top: 10px;
  padding: 16px;
  background: #fefefe;
  border-left: 4px solid #4296e4;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.price-notes p {
  margin-bottom: 10px;
}

/*============================
  情報ボックス（SM・フリー指名など）
============================*/
.info-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/*============================
  レスポンシブ調整（フォントと表のみ）
============================*/
@media screen and (max-width: 768px) {
  #price-system-title .castpage-heading {
    font-size: 2.4rem;
  }

  #price-system-title .castpage-intro {
    font-size: 0.95rem;
  }

  table th,
  table td {
    font-size: 13px;
    padding: 10px;
  }

  table th:first-child,
  table td:first-child,
  table th:last-child,
  table td:last-child {
    width: 50% !important;
  }

  .price-table th,
  .price-table td {
    width: 33.33% !important;
  }
}

@media screen and (max-width: 768px) {
  .tab-buttons {
    flex-direction: row !important;   /* ← 常に横並びに */
    flex-wrap: nowrap !important;     /* ← 折り返し禁止 */
    justify-content: center;
    gap: 8px;
  }

  .tab-buttons button {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(33.33% - 8px);
    padding: 10px 6px;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
  }
}

/* タイトルエリア */
#reserved-title {
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 42px 20px 30px;
  border-bottom: 2px solid #4296e4;
  text-align: center;
}

.reserved-heading {
  font-size: 72px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

.reserved-intro {
  color: #222;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* 本文全体調整 */
#reserved-list-section {
  padding: 60px 0 80px;
  background: transparent;
}

.contact-form-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 48px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Contact Form 7 初期化 */
.wpcf7 {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.wpcf7-form {
  width: 100%;
}

.wpcf7-form p.form-block {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-sizing: border-box;
  width: 100%;
}

/* ラベル */
.wpcf7-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #333;
}

/* 入力欄共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  box-sizing: border-box;
  margin-top: 8px;
  transition: border-color 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #4296e4;
  background: #fff;
  outline: none;
}

/* ラジオ＆チェックボックス共通 */
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.wpcf7-form .wpcf7-radio label,
.wpcf7-form .wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.wpcf7-form .wpcf7-list-item-label {
  white-space: nowrap;
}

/* フォームコントロールwrap調整 */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* submit */
.wpcf7-form input[type="submit"] {
  background: #4296e4;
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background: #2e79c2;
}

/* エラー */
span.wpcf7-not-valid-tip {
  color: #e63946;
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .reserved-heading {
    font-size: 2.4rem;
  }

  .reserved-intro {
    font-size: 0.95rem;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .wpcf7-form p.form-block {
    padding: 16px;
  }

  .wpcf7-form .wpcf7-radio,
  .wpcf7-form .wpcf7-checkbox {
    flex-direction: column;
    gap: 12px;
  }

  .wpcf7-form input[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

.hidden {
  display: none;
}

/*============================
  写メ日記一覧：ページ共通スタイル
============================*/

#castpage-title {
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 42px 20px 30px;
  border-bottom: 2px solid #4296e4;
  text-align: center;
}

.castpage-heading {
  font-size: 72px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

.castpage-intro {
  color: #222;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.page-container {
  max-width: 1200px;
  padding: 30px 8px;
  margin: 0 auto;
}

/*============================
  投稿カードレイアウト
============================*/
.shamenikki-list-item {
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid #ccc;
  border-radius: 12px;
   padding: 1em;
  margin-bottom: 2em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
}

.shamenikki-list-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  align-items: flex-start;
}

.shamenikki-image img {
  max-width: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.shamenikki-text {
  flex: 1;
  min-width: 200px;
}

.shamenikki-meta {
  font-size: 0.95rem;                  /* デフォルト（スマホ時） */
  color: #444;
  border-top: 1px dashed #aaa;
  border-bottom: 1px dashed #aaa;
  padding: 0.5em 0;
  margin-bottom: 1em;
}

/* PC時（画面幅768px以上） */
@media screen and (min-width: 768px) {
  .shamenikki-meta {
    font-size: 1.1rem;
  }
}

.shamenikki-cast,
.shamenikki-date {
  margin: 0.3em 0;
  font-size: 1.05rem;
}

.shamenikki-text .excerpt {
  margin-bottom: 1em;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shamenikki-text a {
  color: #4296e4;
  font-weight: bold;
  text-decoration: underline;
}

/*============================
  レスポンシブ調整
============================*/
@media screen and (max-width: 768px) {
  .castpage-heading {
    font-size: 2.4rem;
  }

  .castpage-intro {
    font-size: 0.95rem;
  }

  .shamenikki-list-inner {
    flex-direction: column;
    align-items: center;
  }

  .shamenikki-image img {
    max-width: 100%;
  }

  .shamenikki-text {
    width: 100%;
  }

.shamenikki-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
  color: #222;
 }
}

.cast-profile-button {
  display: inline-block;
  background-color: #4296e4;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
}

.cast-profile-button:hover {
  background-color: #2f7fc7;
}

@media (max-width: 768px) {
  .shamenikki-list-inner {
    flex-direction: row;
    gap: 10px;
  }

  .shamenikki-image {
    width: 100px;
  }

  .shamenikki-text .excerpt {
    font-size: 0.9rem;
  }
}

.table-section {
  overflow-x: auto;
  margin: 20px 0;
}

.recruit-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
  overflow: hidden;
  table-layout: fixed;
}

.recruit-table th, .recruit-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  font-size: 15px;
  white-space: nowrap;
}

.recruit-table th {
  background-color: #e0f2fc;
  font-weight: bold;
  color: #333;
  white-space: normal;
  line-height: 1.4;
}

/* 列幅調整 */
.recruit-table th:nth-child(1),
.recruit-table td:nth-child(1) {
  width: 20%;
}
.recruit-table th:nth-child(2),
.recruit-table td:nth-child(2) {
  width: 20%;
}
.recruit-table th:nth-child(3),
.recruit-table td:nth-child(3) {
  width: 30%;
}
.recruit-table th:nth-child(4),
.recruit-table td:nth-child(4) {
  width: 30%;
}

.recruit-tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.recruit-tab-button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #4296e4;
  border-radius: 999px;
  background-color: #fff;
  color: #4296e4;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
}

.recruit-tab-button.active,
.recruit-tab-button:hover {
  background-color: #4296e4;
  color: #fff;
}

.recruit-tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recruit-tab-content.active {
  display: block;
  opacity: 1;
}

/* ====== 共通レイアウト ====== */
#price-system-wrapper {
  background-color: #fff;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

/* ====== セクションタイトル（共通） ====== */
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4296e4;
  padding-left: 12px;
  margin-top: 50px;
  margin-bottom: 15px;
}

/* ====== recruit-box（募集・求人ページ用） ====== */
.recruit-box {
  background-color: #f9f9fb;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 8px rgba(66, 150, 228, 0.08);
}

.recruit-box-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.75em;
  color: #222;
}

.recruit-box p {
  font-size: 1.15rem;
  line-height: 2;
  margin: 0;
}

/* ====== disclaimer 専用スタイル ====== */
.disclaimer-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: #2b70c9;
  margin-bottom: 0.5em;
}

.disclaimer-intro {
  font-size: 1.3rem;
  color: #444;
  background: #f0f8ff;
  padding: 1em 1.5em;
  border-left: 4px solid #2b70c9;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(66, 150, 228, 0.1);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.disclaimer-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2b70c9;
  border-left: 6px solid #2b70c9;
  padding-left: 16px;
  margin: 50px 0 25px;
  background: linear-gradient(to right, #f0f8ff, #ffffff);
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(66, 150, 228, 0.07);
}

.disclaimer-box {
  background-color: #f8fbff;
  border: 1px solid #c2dbf2;
  border-left: 5px solid #2b70c9;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(66, 150, 228, 0.06);
}

.disclaimer-box p {
  font-size: 1.15rem;
  line-height: 2;
  color: #333;
  margin: 0;
}

/* ====== モバイル対応 ====== */
@media (max-width: 768px) {
  .disclaimer-heading {
    font-size: 2rem;
  }

  .disclaimer-intro {
    font-size: 1.1rem;
  }

  .disclaimer-title {
    font-size: 1.5rem;
    padding-left: 12px;
  }

  .disclaimer-box {
    padding: 18px;
  }

  .disclaimer-box p {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .recruit-box {
    padding: 20px;
  }

  .recruit-box p {
    font-size: 1.05rem;
  }
}

/*==================
   ハンバーガーメニュー
========================== */
#sp-menu {
  position: fixed;
  top: 25px;
  right: 23px;
  z-index: 100000;
  width: 90px;
  height: 90px;
  cursor: pointer;
}

#sp-menu img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
  transform-origin: center bottom; /* ← 回転の起点を下に */
}

/* メニュー開いたときの傾き */
#sp-menu.active img {
  transform: rotate(-18deg) translateY(5px);
}

/* -------------------------------
   PC表示（1025px以上）
------------------------------- */
.header-image {
  position: relative;
  width: 100%;
  height: 600px; /* ←ここを大きく */
  overflow: hidden;
}

.video-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .header-image {
    height: 200px;  /* スマホ用 */
  }
}

/* ==============================
   横スクロール対応の完全スタイル
============================== */
/* TOPページ：スケジュールボタン横スクロール用 */

.top-today-scroll-outer {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-today-scroll-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 20px 12px;
  min-width: max-content;
  width: max-content;
  scroll-snap-type: x mandatory;
}

/* スマホ：3個表示用の調整 */
.top-today-scroll-inner .schedule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 80px;
  max-width: 140px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* アクティブ状態（本日） */
.top-today-scroll-inner .schedule-btn.active {
  background: #4296e4;
  color: #fff;
  border-color: #4296e4;
}

/* 本日ラベル */
.top-today-scroll-inner .schedule-btn .today-label {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #4296e4;
  padding: 1px 5px;
  border-radius: 6px;
  margin-right: 4px;
  display: inline-block;
  flex-shrink: 0;
}

/* PCレイアウト：中央寄せ＋均等幅 */
@media screen and (min-width: 769px) {
  .top-today-scroll-outer {
    display: flex;
    justify-content: center;
  }

  .top-today-scroll-inner {
    width: 100%;
    max-width: 960px;
    justify-content: space-between;
  }

  .top-today-scroll-inner .schedule-btn {
    width: auto;
    flex: 1 1 auto;
    max-width: none;
  }
}

/* スケジュールボタンと出勤一覧の間に余白を追加 */
.top-today-scroll-outer {
  margin-bottom: 24px; /* 必要に応じて16～32pxの間で調整 */
}

@media screen and (max-width: 768px) {
  .top-today-scroll-outer {
    margin-bottom: 20px;
  }
}

.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* ホーム専用の料金テーブル補正 */
.price-home-wrapper .price-table th,
.price-home-wrapper .price-table td {
  width: auto !important;
  font-size: 13px;
  padding: 8px;
  word-break: break-word;
}

/* スマホで崩れないように */
@media (max-width: 768px) {
  .price-home-wrapper .price-table th,
  .price-home-wrapper .price-table td {
    font-size: 12px;
    padding: 6px 4px;
  }
}

/* -------------------------------
   ナビ（共通）
------------------------------- */
/*============================
  ヘッダー全体
============================*/
.site-header {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
 padding: 12px 0;
}

.header-wrapper {
  max-width: 1400px;
  height: 100px;
  margin: 0 auto;
  padding: 0 25px;
  position: relative;
}

/*============================
  ロゴ中央配置
============================*/
.site-logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  max-width: 90vw; /* ロゴの左右が突き出ないように制限 */
  width: auto;
}

.site-logo-title img {
  height: auto;
  max-height: 100px;
  max-width: 90vw; /* スマホ幅に対して90%以内 */
  width: auto;
  display: block;
}

/*============================
  メニュー（PC）
============================*/
.main-nav-left,
.main-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav-left {
  left: 75px;
}

.main-nav-right {
  right: 75px;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.main-menu li {
  position: relative;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.main-menu li a:hover {
  color: #4296e4;
}

.main-menu li.menu-item-has-children > a::after {
  content: "\25BC";
  font-size: 0.6em;
  margin-left: 5px;
}

.main-menu li ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}


.main-menu li:hover > ul {
  display: block;
}

.main-menu li ul li {
  padding: 5px 20px;
}

.main-menu li ul li a {
  display: block;
  color: #333;
  text-decoration: none;
}

.main-menu li ul li a:hover {
  background-color: #f2f2f2;
  color: #4296e4;
}

/*============================
  ハンバーガーメニュー（右上固定）
============================*/
.sp-menu-toggle {
  position: fixed;
  top: -32px;
  right: -42px;
  width: 170px;
  height: 170px;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hamburger-button {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/*============================
  モバイルメニュー（振り子 + スポットライト風）
============================*/
.sp-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: transparent;
  transform: translateX(100%) rotate(-45deg);
  transform-origin: top right;
  opacity: 0;
  z-index: 1100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;    /* ← 縦中央寄せ */
  align-items: flex-end;      /* ← 横は右寄せ */
  padding-right: 5vw;         /* ← 右の余白 */
}


.sp-menu-panel.open {
  animation: swingIn 0.6s ease-out forwards;
  pointer-events: auto;
}

.sp-menu-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(50,110,200,0.7), rgba(30,70,150,0.6));
  clip-path: polygon(100% 0%, 95% 0%, 48% 100%, 100% 100%);
  opacity: 0.95;
  z-index: 0;
  animation: spotlightFade 0.8s ease forwards;
}

.sp-menu-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90,160,255,0.5), rgba(50,110,200,0.4));
  clip-path: polygon(100% 0%, 95% 0%, 35% 100%, 100% 100%);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  animation: glowRightLight 2.5s ease-in-out infinite alternate;
}

.sp-menu-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 3rem;
  padding-right: 0;
}

.sp-nav-list {
  list-style: none;
  margin: 0;
  padding: 3rem 0;
  max-width: 240px;
  text-align: center;
}

.sp-nav-list li {
  margin-bottom: 2rem;
}

.sp-nav-list li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
}

.sp-nav-list li a:hover {
  color: #cce5ff;
}

@keyframes swingIn {
  0% {
    transform: translateX(100%) rotate(-45deg);
    opacity: 0;
  }
  40% {
    transform: translateX(0%) rotate(5deg);
    opacity: 1;
  }
  70% {
    transform: translateX(0%) rotate(-3deg);
  }
  100% {
    transform: translateX(0%) rotate(0deg);
    opacity: 1;
  }
}

@keyframes spotlightFade {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 0.75;
    transform: scale(1);
  }
}

@keyframes glowRightLight {
  0% {
    opacity: 0.4;
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
    filter: brightness(1.2);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
    filter: brightness(1);
  }
}

@media screen and (max-width: 768px) {
  .sp-menu-panel {
    width: 100%;
  }
  .sp-nav-list {
    padding: 1.5rem 1rem;
  }
  .sp-nav-list li a {
    font-size: 1.3rem;
  }
  .sp-menu-panel::before {
    clip-path: polygon(100% 0%, 85% 0%, 20% 100%, 100% 100%);
    opacity: 0.95;
  }
  .sp-menu-panel::after {
    clip-path: polygon(100% 0%, 88% 0%, 5% 100%, 100% 100%);
    opacity: 0.9;
  }
}

.sp-menu-panel.open {
  animation: swingIn 0.6s ease-out forwards;
  pointer-events: auto;
}

.sp-menu-panel.closing {
  animation: swingOut 0.6s ease-in forwards;
  pointer-events: none;
}

@keyframes swingOut {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateX(0) rotate(-3deg);
  }
  60% {
    transform: translateX(0) rotate(5deg);
  }
  100% {
    transform: translateX(100%) rotate(-45deg);
    opacity: 0;
  }
}

/* ▼ ハンバーガーアイコン動作 */
.hamburger-button img {
  transition: transform 0.6s ease;
  transform-origin: bottom right;
 /*  transform: rotate(-10deg) translateY(5px); 初期状態：下に傾ける */
}

.hamburger-button.active img {
 /*  transform: rotate(2deg) translateY(-5px);  メニュー開いた時：上に跳ねる */
}

@media screen and (max-width: 1030px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .site-logo-title img {
    max-height: 100px;
  }
}

@media screen and (max-width: 768px) {
  .site-logo-title img {
    max-height: 70px; /* 高さ少し下げてもOK */
    max-width: 85vw;  /* 横幅制限を強めに */
  }
}

@media screen and (max-width: 850px) {
  .sp-menu-panel {
    justify-content: center; /* 中央寄せベース */
    align-items: flex-end;   /* 横は右寄せ */
  }

  .sp-menu-inner {
    margin-top: -4rem;  /* ← 「少しだけ上にずらす」値。必要に応じて調整 */
    padding-top: 0;
    padding-right: 0;
  }

  .sp-nav-list {
    padding-top: 12rem;
    padding-bottom: 0.5rem;
  }
}

/* ▼ ハンバーガーアイコン動作追加 */
.hamburger-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.hamburger-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

/* ベース画像（下のやつ） */
.hamburger-base-img {
  z-index: 1;
}

/* 新しいオーバーレイ画像（上のやつ） */
.hamburger-overlay-img {
  z-index: 2;
  opacity: 1; /* 初期は見えてる */
}

/* メニュー開いた時：オーバーレイを透明にする */
.hamburger-button.active .hamburger-overlay-img {
  opacity: 0;
}

/*============================
  ハンバーガーメニュー（入れ子）
============================*/
.sp-nav-list li.menu-item-has-children > ul {
  display: none;
  padding-left: 1rem;
  margin-top: 1rem;
}

.sp-nav-list li.menu-item-has-children.open > ul {
  display: block;
}

/* トップ階層（最上位レベル）の親メニューだけに「▼」「▲」適用 */
.sp-nav-list > li.menu-item-has-children > a::after {
  content: "▼";
  margin-left: 8px;
  font-size: 0.8em;
  color: #fff;  /* 必要なら色も */
}

/* トップ階層が開いた時は「▲」に変化 */
.sp-nav-list > li.menu-item-has-children.open > a::after {
  content: "▲";
  margin: 0;
  padding: 0;
}

/* 子メニュー内のどの階層であってもアイコン完全消す */
.sp-nav-list li ul li.menu-item-has-children > a::after {
  content: none !important;
}

.sp-nav-list li ul li a {
  text-align: left;
  display: block;  /* 念のためブロック化 */
  padding-left: 1rem;  /* 必要なら左インデント調整 */
}

.sp-nav-list li.menu-item-has-children.open > ul {
  display: block;
  background: rgba(66, 150, 228, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  animation: submenuFade 0.3s ease-out;
}

@keyframes submenuFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-nav-list li.menu-item-has-children.open > ul li a {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(66, 150, 228, 0.8);
  font-weight: bold;
}

.sp-nav-list > li > a {
  border-bottom: 2px solid #fff;  /* 白のアンダーライン */
  padding-bottom: 4px;            /* 余白調整、好みで */
  display: inline-block;          /* インライン要素に下線つけたいとき必須 */
}

.sp-nav-list li ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav-list li ul li {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;  /* 必要なら行間だけ残す */
}

/*============================
  footer
============================*/
footer {
  background: #fff; /* 背景は白 */
  border-top: 4px solid #4296e4;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  padding: 40px 20px;
  color: #333;
  font-size: 14px;
}

.footer-group {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ========================
   フッターナビ
======================== */
#footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin-bottom: 30px;
}

#footer-nav ul li a {
  color: #333; /* 初期：黒 */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#footer-nav ul li a:hover {
  color: #4296e4; /* ホバー：青 */
}

/* ========================
   SNSアイコン
======================== */
.nav-sns {
  margin-bottom: 30px;
}

.nav-sns a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.6rem;
  color: #333;
  transition: transform 0.3s, color 0.3s;
}

.nav-sns a:hover {
  transform: scale(1.1);
  color: #4296e4;
}

/* ========================
   ロゴ表示
======================== */
.footLogo img {
  max-width: 260px;
  height: auto;
  margin: 0 auto; /* ← 上の余白を削除 */
  display: block;
}

/* ========================
   営業情報・連絡先
======================== */
.footer-info {
  line-height: 1.8;
  margin-bottom: 20px;
  margin-top: 10px;
  color: #555;
}

/* ========================
   コピーライト
======================== */
.copyright p {
  font-size: 12px;
  color: #999;
}

/* ========================
   スマホ対応
======================== */
@media (max-width: 768px) {
  #footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .nav-sns {
    margin-bottom: 20px;
  }

  .footLogo img {
    max-width: 200px;
  }
}

/* -------------------------------
   レビュー
------------------------------- */
:root {
  --main-blue: #4296e4;
  --light-blue: #f5faff;
  --input-bg: #f9fafe;
  --border-color: #ccc;
  --text-color: #333;
}

/* --- フォーム全体 --- */
#cast-detailed-review-form {
  background: #fff;
  border: 1px solid var(--main-blue);
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(66, 150, 228, 0.1);
  font-family: 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
}

#cast-detailed-review-form h3 {
  color: var(--main-blue);
  font-size: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  text-align: center;
}

/* --- 通常の入力項目 --- */
#cast-detailed-review-form input,
#cast-detailed-review-form textarea,
#cast-detailed-review-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  margin-bottom: 16px;
  box-sizing: border-box;
}

#cast-detailed-review-form textarea[name="comment"] {
  height: 200px;
  resize: vertical;
}

/* --- ラベル --- */
#cast-detailed-review-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-color);
}

/* --- 横並びのラジオボタン群（四角ボタン）--- */
.radio-group.horizontal {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 20px;
  max-width: 700px;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease;
  text-align: center;
  min-width: 140px;
  white-space: nowrap;
  flex: 1 0 auto;
  max-width: 200px;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option span {
  display: inline-block;
  padding: 8px 12px;
  width: 100%;
  text-align: center;
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ span {
  background-color: var(--main-blue);
  color: #fff;
  font-weight: bold;
}

.radio-option:hover {
  border-color: var(--main-blue);
  background-color: var(--light-blue);
}

/* --- 丸いボタン（5段階評価）--- */
.rating-circle-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rating-circle-group label {
  position: relative;
  width: 40px;
  height: 40px;
}

.rating-circle-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rating-circle-group input[type="radio"]:checked {
  background-color: var(--main-blue);
  border-color: var(--main-blue);
}

.rating-circle-group span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
  color: var(--text-color);
  pointer-events: none;
}

.rating-circle-group input[type="radio"]:checked + span {
  color: white;
}

/* --- 送信ボタン --- */
#cast-detailed-review-form input[type="submit"] {
  background-color: var(--main-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto;
}

#cast-detailed-review-form input[type="submit"]:hover {
  background-color: #357dcc;
}

/* --- レスポンスメッセージ --- */
.cast-review-response {
  font-size: 14px;
  margin-top: 12px;
  color: var(--text-color);
  text-align: center;
}

/* --- レビュー表示セクション --- */
.cast-review-section {
  background: #fff;
  padding: 40px 20px;
  border-top: 2px solid var(--main-blue);
  margin-top: 60px;
}

.cast-review-section .section-heading {
  font-size: 20px;
  color: var(--main-blue);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.cast-review-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cast-review-item {
  background: var(--light-blue);
  border: 1px solid var(--main-blue);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(66, 150, 228, 0.08);
  transition: transform 0.2s ease;
}

.cast-review-item:hover {
  transform: translateY(-4px);
}

.cast-review-item p {
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text-color);
}

.cast-review-item strong {
  color: var(--main-blue);
  font-weight: bold;
  display: inline-block;
}


.interactive-star-rating {
  display: flex;
  justify-content: center;
  font-size: 32px;
  color: #ccc;
  cursor: pointer;
  gap: 8px;
  margin-bottom: 20px;
}

.interactive-star-rating span.selected,
.interactive-star-rating span.hovered {
  color: var(--main-blue);
}

/*============================
  レビュー一覧
============================*/
/* ==== レビューリスト全体 ==== */
.cast-review-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px 0;
}

/* ==== 各レビューアイテム ==== */
.cast-review-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ==== 画像エリア ==== */
.review-image {
  flex-shrink: 0;
  width: 120px;
}

.review-image img,
.review-image .no-image-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 8px;
  background-color: #ccc;
}

/* ==== テキストエリア ==== */
.review-text {
  flex: 1;
}

.review-text p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.review-text strong {
  font-weight: 600;
  color: #333;
}

/* ==== 検索フォームラッパー（中央寄せ） ==== */
.cast-review-search-wrap {
  display: flex;
  justify-content: center;
  padding-top: 30px;
  margin-bottom: 30px;
  width: 100%;
}

/* ==== 検索フォーム本体 ==== */
.cast-review-search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  text-align: center;
}

.cast-review-search-form label {
  font-size: 13px;
}

/* ==== 入力フィールド（少し小さめ） ==== */
.cast-review-search-form input[type="text"] {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 160px;
  max-width: 100%;
}

/* ==== ボタン ==== */
.cast-review-search-form button {
  padding: 4px 10px;
  font-size: 13px;
  background-color: #4296e4;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cast-review-search-form button:hover {
  background-color: #2f7bc4;
}

/* ==== スマホ対応（画像サイズのみ調整） ==== */
@media (max-width: 768px) {
  .review-image {
    width: 100px;
  }

  .review-image img,
  .review-image .no-image-placeholder {
    max-height: 180px;
  }

  .review-text p {
    font-size: 13px;
  }
}

/* === 共通設定 === */
body.single-product {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #222;
  overflow-x: hidden;
  animation: fadeInPage 1.2s ease;
}

@keyframes fadeInPage {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 32px rgba(0, 0, 0, 0.4); }
}

@keyframes glow {
  0% { box-shadow: 0 0 4px rgba(66, 150, 228, 0.35); }
  50% { box-shadow: 0 0 12px rgba(66, 150, 228, 0.6); }
  100% { box-shadow: 0 0 4px rgba(66, 150, 228, 0.3); }
}

@keyframes bgTwinkle {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); }
}

/* === セクションレイアウト === */
.cast-detail-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5px 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cast-detail-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.cast-detail-left {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cast-main-image-block {
  text-align: center;
}

.cast-main-visual-img {
  width: 100%;
  max-width: 400px;
  height: 533px;
  object-fit: cover;
  border-radius: 24px;
  animation: glowPulse 6s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  background-color: #f5faff;
}

@media (max-width: 768px) {
  .cast-main-visual-img {
    max-width: 320px;
    height: 426px;
  }
}

/* === プロフィール・推しポイント === */
.cast-detail-right {
  flex: 1 1 400px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.cast-profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid #a8d0ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.cast-profile-table th {
  background: linear-gradient(135deg, #4296e4, #74b9ff);
  color: #fff;
  font-weight: bold;
  padding: 18px;
  text-align: left;
  text-shadow: 0 0 6px rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.3);
}

.cast-profile-table td {
  background: rgba(255,255,255,0.8);
  color: #1c2a45;
  font-weight: 500;
  padding: 18px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}

.cast-profile-table tr:not(:last-child) td,
.cast-profile-table tr:not(:last-child) th {
  border-bottom: 1px solid rgba(160, 200, 255, 0.2);
}


/* === 推しポイント === */
.oshi-point-section {
  margin-top: 20px;
}

.oshi-point-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.oshi-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 2px solid #4296e4;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oshi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.oshi-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.oshi-label {
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
}

/* === 下段2カラムレイアウト === */
.cast-bottom-2col {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.cast-bottom-left {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
  height: auto;
}

.cast-bottom-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  align-self: flex-start;
}

.cast-tab-area {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  transition: height 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 300px;
  overflow: visible !important;
}

.cast-tab-buttons {
  display: flex;
  justify-content: center; /* ← 中央寄せに変更 */
  gap: 10px;
  padding: 35px 0px 20px;
  background: #ffffff4d;
  border-radius: 16px;
  flex-wrap: nowrap;
}

.cast-tab-button {
  flex: 0 0 140px; /* ← 固定幅にして中央配置しやすく */
  text-align: center;
  padding: 10px;
  font-size: 11px;
  background: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  color: #003366;
  border: 2px solid #4296e4;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.cast-tab-button:hover,
.cast-tab-button.active {
  background: #fff;
  color: #002244;
  border-color: #207fd7;
  box-shadow: 0 0 18px rgba(66, 150, 228, 0.3);
}

.cast-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
  animation: fadeInPage 0.8s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cast-tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === タブ2 === */
.cast-tab2-section {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  transition: height 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 300px;
  overflow: visible !important;
}

.cast-tab2-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 35px 0px 20px;
  background: #ffffff4d;
  border-radius: 16px;
  flex-wrap: nowrap;
}

.cast-tab2-button {
  flex: 0 0 140px;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  background: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  color: #003366;
  border: 2px solid #4296e4;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.cast-tab2-button:hover,
.cast-tab2-button.active {
  background: #fff;
  color: #002244;
  border-color: #207fd7;
  box-shadow: 0 0 18px rgba(66, 150, 228, 0.3);
}

.cast-tab2-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
  animation: fadeInPage 0.8s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cast-tab2-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




/* === 写メ日記セクション === */
/* セクション全体 */
.cast-shamenikki-section {
  margin-top: 10px;
  padding: 0 20px; /* ← これを追加：他と揃える */
}

/* タイル背景のBOX（blur + white） */
.cast-shamenikki-box {
  background: rgba(255, 255, 255, 0.5);
  padding: 0 20px 20px;

  border-radius: 12px;
  backdrop-filter: blur(12px);
}

/* 写メ日記グリッド（PC時） */
.cast-shamenikki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 写メ日記カード */
.cast-shamenikki-card {
  background: #fff;
  border: 1px solid #a4cfff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-shamenikki-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 16px rgba(0,0,0,0.15);
}

/* サムネイル画像 */
.cast-shamenikki-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* タイトル部分 */
.cast-shamenikki-title {
  padding: 14px;
  font-weight: bold;
  font-size: 1rem;
  color: #003366;
  text-align: center;
}

/* スマホ：横スクロールで1枚ずつ表示 */
@media (max-width: 768px) {
  .cast-shamenikki-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0; /* ← 外paddingはセクション側で確保済 */
    margin: 0;
    justify-content: flex-start !important; /* ← これで1枚目を左端に */
  }

  .cast-shamenikki-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: start;
  }
}

/* === 店長コメント === */

.cast-manager-description {
  padding: 0 20px;
}

.cast-manager-description .section-heading {
  font-size: 1.4rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.3);
  color: #003366;
  padding: 16px 20px; /* ← 親の padding に合わせて統一 */
  border-left: 8px solid #4296e4;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.cast-manager-description .section-heading::before {
  content: "♪"; /* ← アイコンなどが必要ならここに */
  position: absolute;
  left: 0.5em;
  top: 0;
  font-size: 1.6rem;
  color: #4296e4;
  opacity: 0.7;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  animation: glowPulse 3s infinite ease-in-out;
}

.manager-comment-text {
  font-size: 1.4rem;
  line-height: 1.7;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .manager-comment-text {
    font-size: 1.1rem;
  }
}

/* === コメント本体のタイル === */
.manager-comment-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #cfe7ff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  line-height: 1.8;
  color: #1c2a45;
  position: relative;
  transition: max-height 0.4s ease;
}

/* === 読み込み制限と展開 === */
.read-more-container {
  position: relative;
  overflow: hidden;
}

.read-more-content {
  max-height: 4.2em; /* 2行程度 */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.read-more-container.expanded .read-more-content {
  max-height: none;
}

/* === 「もっと読む」ボタン === */
.read-more-toggle {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(to right, #4296e4, #6fbaff);
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(66, 150, 228, 0.2);
  transition: background 0.3s ease;
}

.read-more-toggle:hover {
  background: #2f80ed;
}



/* === アコーディオン項目 === */
.accordion-item + .accordion-item {
  margin-top: 24px;
}

.accordion-toggle {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: bold;
  background: #ffffff;
  border: 2px solid #4296e4;
  color: #003366;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  box-shadow: 0 4px 12px rgba(66,150,228,0.1);
}

.accordion-toggle::before {
  content: "🗣️";
  margin-right: 10px;
  font-size: 1rem;
  vertical-align: middle;
}

.accordion-toggle:hover {
  background-color: #f4faff;
}

.accordion-content {
  display: none;
  padding: 18px;
  margin-top: 6px;
  background: #ffffff;
  border-left: 4px solid #4296e4;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: #333;
}



/* === Q&A セクション（LINE風・対話型）=== */
/* Q&Aリスト全体 */
.cast-qa-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 16px;
}

/* Q&Aの一対 */
.qa-line-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

/* 共通設定：縦積み */
.qa-message {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* ← 画像を上に、吹き出しを下に */
  width: 100%;
  position: relative;
}


/* Q左寄せ */
.qa-message.qa-left {
  align-items: flex-start;
}

/* A右寄せ */
.qa-message.qa-right {
  flex-direction: row-reverse;
}


/* 丸い画像 */
.qa-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 4px solid #4296e4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  overflow: hidden;
  background-color: #fff;
}

/* スマホ画面幅（例：最大768px）でサイズ縮小 */
@media (max-width: 768px) {
  .qa-icon {
    width: 96px;
    height: 96px;
  }
}


/* 吹き出し（共通） */
.qa-bubble {
  margin-top: 6px; /* ← 画像と距離をとる */
  padding: 10px 25px;
  background: #eaf5ff;
  border-radius: 20px;
  max-width: 75%;
  font-size: 1.4rem;
  line-height: 1.7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  word-break: break-word;
  position: relative;
}

@media (max-width: 768px) {
  .qa-bubble {
    font-size: 1.1rem;
  }
}


/* Q（左）の吹き出し：画像より少し右＆下に */
.qa-message.qa-left .qa-bubble {
  margin-left: 38px;
}
.qa-message.qa-left .qa-bubble::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -12px;
  border: 12px solid transparent;
  border-right-color: #eaf5ff;
}

/* A（右）の吹き出し：画像より少し左＆下に */
.qa-message.qa-right .qa-bubble {
  margin-right: 38px;
}
.qa-message.qa-right .qa-bubble::before {
  content: '';
  position: absolute;
  top: 16px;
  right: -12px;
  border: 12px solid transparent;
  border-left-color: #eaf5ff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .qa-bubble {
    max-width: 100%;
  }
  .qa-message.qa-left .qa-bubble {
    margin-left: 80px;
  }
  .qa-message.qa-right .qa-bubble {
    margin-right: 80px;
  }
}

@media (max-width: 500px) {
  .qa-bubble {
    max-width: 100%;
  }
  .qa-message.qa-left .qa-bubble {
    margin-left: 40px;
  }
  .qa-message.qa-right .qa-bubble {
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  .qa-message {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .qa-message.qa-right {
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .qa-bubble {
    margin-top: 6px; /* アイコンと吹き出しの距離（小さめに） */
  }
}


/* もっと見る対応 */
.hidden-qa {
  display: none;
}
#qaList.show-all .hidden-qa {
  display: flex;
  flex-direction: column;
}


/* 自己紹介：画像＋吹き出し全体 */
.intro-bubble-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
}

/* 丸い画像枠 */
.intro-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #4296e4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* 中の画像を完全フィット＋丸く */
.intro-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* cover → contain に変更！ */
  border-radius: 50%;       /* 中身も丸く */
  display: block;
  background-color: #fff;   /* 万が一の余白対応：背景色を白に */
}

@media (max-width: 768px) {
  .intro-circle img {
    width: 96px;
    height: 96px;
  }
}
/* 吹き出し */
.intro-bubble {
  position: relative;
  background: #f0f8ff;
  border-radius: 20px;
  padding: 18px 22px;
  font-size: 1.4rem;
  line-height: 1.7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  word-break: break-word;
}

@media (max-width: 768px) {
  .intro-bubble {
    font-size: 1.1rem;
  }
}
/* 吹き出しの三角 */
.intro-bubble::before {
  content: '';
  position: absolute;
  top: 28px;
  left: -14px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 14px 12px 0;
  border-color: transparent #f0f8ff transparent transparent;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .intro-bubble-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-bubble::before {
    top: -12px;
    left: 24px;
    border-width: 0 12px 14px 12px;
    border-color: transparent transparent #f0f8ff transparent;
  }
}

/* === 出勤スケジュールカード === */

.cast-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 130px); /* PC時：7列 */
  gap: 10px;
  justify-content: center;
}

/* 画面幅が 1100px 未満になったら 6列 */
@media (max-width: 1099px) {
  .cast-schedule-grid {
    grid-template-columns: repeat(6, 130px);
  }
}

/* 画面幅が 960px 未満になったら 5列 */
@media (max-width: 959px) {
  .cast-schedule-grid {
    grid-template-columns: repeat(5, 130px);
  }
}

/* 画面幅が 820px 未満になったら 4列 */
@media (max-width: 819px) {
  .cast-schedule-grid {
    grid-template-columns: repeat(4, 130px);
  }
}

/* 画面幅が 680px 未満になったら 3列 */
@media (max-width: 679px) {
  .cast-schedule-grid {
    grid-template-columns: repeat(3, 130px);
  }
}

/* スマホ：画面幅が 540px 未満になったら 2列 */
@media (max-width: 539px) {
  .cast-schedule-grid {
    grid-template-columns: repeat(2, 130px);
  }
}


.cast-schedule-card {
  width: 130px;         /* ← カード幅も固定 */
  min-height: 100px;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  color: #222;
}

/* アクティブなスケジュールカード */
.cast-schedule-card.schedule-active {
  background: linear-gradient(135deg, #e6f1ff, #f2faff);
  box-shadow: 0 0 8px rgba(66, 150, 228, 0.3);
  animation: glow 2s infinite ease-in-out;
}

/* 非アクティブ（グレーアウト） */
.cast-schedule-card.schedule-inactive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.cast-schedule-card.schedule-inactive > div {
  color: #fff;
  z-index: 2;
  position: relative;
}

/* スケジュール内部の情報 */
.schedule-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}

.stay-label {
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
}

.stay-ok {
  background-color: #d4f0ff;
  color: #007acc;
  border: 1px solid #a4d4f5;
}
.stay-maybe {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.stay-ng {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* === スマホ対応：2列固定 === */
@media (max-width: 768px) {
  .cast-schedule-grid {
    grid-template-columns: repeat(2, 130px);
    justify-content: center;
  }
}

/* === 推しポイントカード グリッド === */
.cast-preference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.preference-card {
  background: #fff;
  border: 1px solid #4296e4;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(66,150,228,0.08);
  height: 130px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
  text-align: center;
}

.preference-card:hover {
  background-color: #f4faff;
}

.preference-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.4;
}

.preference-value {
  font-size: 20px;
  font-weight: bold;
  color: #2b5d88;
  line-height: 1.4;
}

.preference-card.empty {
  background: transparent;
  box-shadow: none;
  border: none;
  visibility: hidden;
}

/* === セクション見出し === */
.section-heading {
  font-size: 1.4rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.3);
  color: #003366;
  padding: 16px 24px;
  border-left: 8px solid #4296e4;
  border-radius: 16px;
  margin: 40px 0 24px;
  position: relative;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  text-align: left;
}

.section-heading::before {
  content: '♪';
  position: absolute;
  left: 0.2em;
  top: 0;
  font-size: 1.6rem;
  color: #4296e4;
  opacity: 0.6;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  animation: glowPulse 3s infinite ease-in-out;
}

/* === モアボタン === */
.more-button-wrap {
  text-align: center;
  margin-top: 30px;
}

.more-button {
  display: inline-block;
  background: linear-gradient(to right, #4296e4, #6fbaff);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 26px;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(66, 150, 228, 0.2);
  transition: all 0.3s ease;
}

.more-button:hover {
  background: #2f80ed;
  box-shadow: 0 6px 12px rgba(47, 128, 237, 0.3);
}

/* === スクロールアニメーション用 === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* PROFILE タイトル調整 */
.page-title .profile-main-title {
  position: relative;
  top: 0;
  left: 0;
  transform: translate(0%, 5px);
  font-size: 70px;
  text-align: center;
  margin: 40px auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  z-index: 1;
  pointer-events: none;
}

/* レビュー全体ラップ */
.cast-review-section--single {
  padding: 0 20px;
  margin-top: 40px;
}

/* セクション見出し（他と統一） */
.cast-review-section--single .section-heading {
  font-size: 1.4rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.3);
  color: #003366;
  padding: 16px 20px;
  border-left: 8px solid #4296e4;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

/* レビューリストのラッパー */
.cast-review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 各レビュー項目 */
.cast-review-item--single {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  color: #333;
}

/* 投稿日 */
.review-date {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #666;
}

/* 感想本文 */
.review-comment {
  font-size: 1.4rem;
  line-height: 1.8;
  word-break: break-word;
  color: #222;
}

/* 未投稿時のメッセージ */
.cast-review-list-wrapper > p {
  font-size: 1.3rem;
  color: #666;
  padding: 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* 写メ日記セクション */
.cast-shamenikki-thumb.placeholder {
  width: 100%;
  background-color: #eef3f9;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  aspect-ratio: 4 / 1; /* 高さを1/4に */
}

@media (max-width: 768px) {
  .cast-shamenikki-thumb.placeholder {
    aspect-ratio: unset;
    padding-top: 25%; /* モバイル時に高さ確保 */
    width: calc(100% - 32px);
    margin: 0 auto;
  }
}

/* スマホ向け：中央寄せ、幅制限あり、縦長め */
@media screen and (max-width: 768px) {
  .cast-shamenikki-card.no-entry {
    max-width: 300px;
    margin: 0 auto;
  }

  .cast-shamenikki-thumb.placeholder::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9くらいの縦比率 */
  }
}

/*カルーセル画像 */
.cast-thumb-carousel-vertical {
  display: grid;
  grid-template-columns: repeat(4, 90px); /* ← 4列固定 */
  gap: 12px;
  justify-content: start; /* ← 左寄せ */
  padding: 0;
}

.cast-thumb-carousel-vertical .thumb-wrapper {
  width: 90px;
  aspect-ratio: 2 / 3;
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.cast-thumb-carousel-vertical .thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}