/*
Theme Name: Oteage Theme - Mobile Optimized
Description: ガールズバーAJITOのカスタムテーマ（モバイル最適化版）
Author: Custom Developer
Version: 1.1
Text Domain: oteage-theme
*/

/* ===== リセット & 基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  background: #0a0a0a;
  color: #cdcdcd;
  line-height: 1.8;
  letter-spacing: 0.05em;
  overflow-x: hidden; /* 横スクロール防止 */
  opacity: 0;
  animation: bodyFadeIn 0.5s ease forwards 0.2s;
}

@keyframes bodyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: #ada58b;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 共通クラス ===== */
.gold {
  color: #ada58b;
}

.inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.center {
  text-align: center;
}

.section-title {
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
  animation: fadeIn 0.8s ease-out forwards;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: #ada58b;
}

.section-title .sub {
  display: block;
  font-size: 13px;
  margin-top: 8px;
  color: #888;
  letter-spacing: 0.05em;
  font-family: 'Noto Serif JP', serif;
}

.lead-text {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 30px;
  color: #aaa;
  animation: fadeIn 0.8s ease-out forwards;
}

section {
  padding: 70px 0;
  position: relative;
}

section:nth-child(odd) {
  background: #080808;
}

.more-btn {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid #ada58b;
  color: #ada58b;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  margin-top: 25px;
}

.more-btn:hover {
  background: #ada58b;
  color: #000;
}

/* キーフレームとアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease;
  height: 70px;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 4%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  height: 50px;
  transition: all 0.3s ease;
}

.global-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.global-nav li a {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: normal;
  color: #fff;
  position: relative;
  padding: 8px 0;
}

.global-nav li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #ada58b;
  transition: width 0.3s ease;
}

.global-nav li a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー（SP用） */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #ada58b;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2), .menu-toggle span:nth-child(3) {
  top: 9px;
}

.menu-toggle span:nth-child(4) {
  top: 18px;
}

/* ===== ファーストビュー ===== */
.firstView img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  opacity: 0.7;
}

/* その他のセクション */
/* ===== About ===== */
.aboutWrap {
  padding: 90px 0;
}

.flexWrap {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  animation: fadeIn 0.8s ease-out forwards;
}

.flexWrap .imgWrap {
  flex: 1;
}

.flexWrap .imgWrap img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.flexWrap .lead-text {
  flex: 1;
  text-align: left;
}

/* ===== Cast List ===== */
.castListWrap {
  padding: 90px 0;
  background: url('https://ajito-kameari.com/wp-content/themes/images/bg-pattern.png') #080808;
}

.castList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  list-style: none;
  animation: fadeIn 0.8s ease-out forwards;
}

.castList li {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #0a0a0a;
  border: 1px solid #222;
  transition: all 0.3s ease;
}

.castList li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(173, 165, 139, 0.2);
}

.castList li img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: all 0.3s ease;
}

.castList li:hover img {
  transform: scale(1.05);
}

.castList li p {
  background: rgba(0, 0, 0, 0.8);
  color: #ada58b;
  font-size: 16px;
  text-align: center;
  padding: 12px 0;
  width: 100%;
}

/* ===== System ===== */
.systemWrap {
  padding: 90px 0;
}

/* 料金表のスタイル変更 */
.new-price-table {
  width: 100%;
  max-width: 700px;
  margin: 40px auto 30px;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s ease-out forwards;
}

.new-price-table th, 
.new-price-table td {
  padding: 16px 20px;
  border: 1px solid #ada58b;
  text-align: center;
}

.new-price-table th {
  background-color: rgba(173, 165, 139, 0.3);
  color: #ada58b;
  font-weight: normal;
}

.payment-info {
  margin-top: 25px;
  color: #ada58b;
  line-height: 1.8;
}

.card-list {
  margin: 8px 0;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.payment-info .note {
  font-size: 13px;
  margin-top: 8px;
  color: #888;
}

/* ===== Gallery ===== */
.galleryWrap {
  padding: 90px 0;
}

.gallery-slider {
  margin: 40px auto;
  max-width: 1000px;
  position: relative;
  animation: fadeIn 0.8s ease-out forwards;
}

.gallery-slider .galleryList {
  margin: 0;
  padding: 0;
}

.gallery-slider .slick-slide {
  padding: 0 8px;
}

.gallery-slider .slick-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

/* Slick Slider Controls */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
}

.slick-prev {
  left: -15px;
}

.slick-next {
  right: -15px;
}

.slick-dots {
  position: relative;
  bottom: -25px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.slick-dots li {
  margin: 0;
}

.slick-dots li button {
  font-size: 0;
  width: 8px;
  height: 8px;
  background: #333;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.slick-dots li.slick-active button {
  background: #ada58b;
}

/* ===== Access ===== */
.accessWrap {
  padding: 90px 0;
  background: url('https://ajito-kameari.com/wp-content/themes/images/bg-pattern.png') #080808;
}

.access-table {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 30px;
  border-collapse: collapse;
  animation: fadeIn 0.8s ease-out forwards;
}

.access-table th,
.access-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #333;
  text-align: left;
}

.access-table th {
  width: 30%;
  color: #ada58b;
  font-weight: normal;
  letter-spacing: 0.1em;
}

.access-table td {
  width: 70%;
  color: #fff;
  font-weight: 300;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 55%;
  margin-top: 35px;
  overflow: hidden;
  border-radius: 4px;
  animation: fadeIn 0.8s ease-out forwards;
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Recruit ===== */
.recruitWrap {
  padding: 90px 0;
  background: url('https://ajito-kameari.com/wp-content/themes/images/recruit-bg.jpg') center center/cover no-repeat;
  position: relative;
}

.recruitWrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

.recruitWrap .inner {
  position: relative;
  z-index: 1;
}

.recruitWrap .lead-text {
  max-width: 700px;
  margin: 0 auto 35px;
  color: #ddd;
}

.recruit-btn {
  display: inline-block;
  padding: 14px 35px;
  border: 1px solid #ada58b;
  color: #ada58b;
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.recruit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ada58b;
  transition: all 0.3s ease;
  z-index: -1;
}

.recruit-btn:hover {
  color: #000;
}

.recruit-btn:hover::before {
  left: 0;
}

/* ===== News ===== */
.newsWrap {
  padding: 90px 0;
}

.news-list {
  max-width: 800px;
  margin: 35px auto 0;
  list-style: none;
  animation: fadeIn 0.8s ease-out forwards;
}

.news-list li {
  border-bottom: 1px solid #333;
  padding: 18px 15px;
  text-align: left;
  display: flex;
  align-items: center;
}

.news-list li::before {
  content: "•";
  margin-right: 15px;
  color: #ada58b;
  font-size: 18px;
}

.news-list .date {
  color: #ada58b;
  font-size: 14px;
  margin-right: 18px;
  font-family: 'Playfair Display', serif;
}

/* ===== Footer ===== */
footer {
  background: #000;
  padding: 45px 0;
  text-align: center;
}

footer .inner {
  padding: 0 15px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  height: 45px;
  margin: 0 auto;
}

.sns {
  display: flex;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin-bottom: 25px;
}

.sns li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #222;
  transition: all 0.3s ease;
}

.sns li a:hover {
  background: #ada58b;
}

.sns li a img {
  width: 18px;
  height: 18px;
}

.footer-nav {
  margin-bottom: 25px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.footer-nav a {
  color: #aaa;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: #ada58b;
}

.copyright {
  color: #666;
  font-size: 13px;
}

/* ===== レスポンシブ設定 ===== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 26px;
  }
  
  .gallery-slider {
    width: 90%;
  }
  
  .gallery-slider .slick-prev {
    left: -20px;
  }
  
  .gallery-slider .slick-next {
    right: -20px;
  }
  
  .castList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .castList {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section, 
  .aboutWrap, 
  .castListWrap, 
  .systemWrap,
  .galleryWrap, 
  .accessWrap, 
  .recruitWrap, 
  .newsWrap {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .lead-text {
    font-size: 14px;
  }
  
  /* ヘッダー改善 */
  .site-header {
    height: 60px;
  }
  
  .header-inner {
    height: 60px;
    padding: 0 15px;
  }
  
  .site-logo img {
    height: 40px;
  }
  
  /* モバイルナビ改善 */
  .menu-toggle {
    display: block;
  }
  
  .site-header .global-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態は画面外 */
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }
  
  /* オーバーレイ */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  
  .global-nav ul {
    flex-direction: column;
    gap: 20px;
  }
  
  .global-nav li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }
  
  /* フレックスレイアウト改善 */
  .flexWrap {
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
  }
  
  .flexWrap .imgWrap,
  .flexWrap .lead-text {
    width: 100%;
  }
  
  /* テーブル改善 */
  .new-price-table th, 
  .new-price-table td {
    padding: 12px 10px;
    font-size: 14px;
  }
  
  .access-table th,
  .access-table td {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .access-table th {
    width: 35%;
  }
  
  .access-table td {
    width: 65%;
  }
}

@media (max-width: 576px) {
  section, 
  .aboutWrap, 
  .castListWrap, 
  .systemWrap,
  .galleryWrap, 
  .accessWrap, 
  .recruitWrap, 
  .newsWrap {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
  .section-title:after {
    bottom: -10px;
    width: 50px;
  }
  
  .section-title .sub {
    font-size: 12px;
  }
  
  .lead-text {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .castList {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
  }
  
  .castList li p {
    font-size: 14px;
    padding: 10px 0;
  }
  
  /* テーブルのさらなる改善 */
  .new-price-table th, 
  .new-price-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .payment-info,
  .card-list {
    font-size: 13px;
  }
  
  .payment-info .note {
    font-size: 12px;
  }
  
  .access-table th,
  .access-table td {
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .castList {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .map-wrapper {
    padding-bottom: 65%; /* アスペクト比調整 */
  }
  
  .news-header .news-title {
    font-size: 20px;
  }
  
  .sns {
    gap: 12px;
  }
  
  .sns li a {
    width: 34px;
    height: 34px;
  }
}

/* スマホ向け特別調整 */
@media (max-width: 480px) {
  /* キャストリスト調整 */
  .castList li img {
    height: auto;
    aspect-ratio: 3/4;
  }
  
  /* SP用テーブル最適化 */
  .new-price-table {
    width: 100%;
    font-size: 12px;
  }
  
  .new-price-table th, 
  .new-price-table td {
    padding: 8px 5px;
  }
  
  /* アクセステーブル最適化 */
  .access-table {
    display: block;
    width: 100%;
  }
  
  .access-table tbody {
    display: block;
    width: 100%;
  }
  
  .access-table tr {
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
  }
  
  .access-table th,
  .access-table td {
    display: block;
    width: 100%;
    padding: 8px 5px;
  }
  
  .access-table th {
    background: rgba(173, 165, 139, 0.1);
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  .access-table td {
    border-bottom: none;
    padding-top: 5px;
  }
  
  /* ニュース一覧調整 */
  .news-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px;
  }
  
  .news-list .date {
    margin-bottom: 5px;
  }
  
  /* フッターナビ調整 */
  .footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: left;
  }
}

@media (max-width: 375px) {
  .section-title {
    font-size: 20px;
  }
  
  /* 維持すべき2列表示 */
  .castList {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .castList li p {
    font-size: 13px;
    padding: 8px 0;
  }
  
  /* ボタン調整 */
  .more-btn, .recruit-btn {
    padding: 10px 25px;
    font-size: 13px;
  }
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* タッチデバイス対応 */
@media (hover: hover) {
  .castList li:hover img {
    transform: scale(1.05);
  }
  
  .more-btn:hover,
  .recruit-btn:hover {
    background: #ada58b;
    color: #000;
  }
}

@media (hover: none) {
  .more-btn:active,
  .recruit-btn:active {
    background: #ada58b;
    color: #000;
  }
  
  .castList li:active {
    transform: translateY(-2px);
  }
}

/* Cast Archive Styling */
.cast-archive {
    padding: 100px 0 60px; /* ヘッダーとの重なりを防ぐための上部パディングを増加 */
}

.cast-archive .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.cast-archive .page-title {
    font-size: 36px;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.cast-archive .page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #e74c3c; /* アクセントカラー（必要に応じて変更） */
}

/* グリッドレイアウト */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* キャスト項目のスタイリング */
.cast-item {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ホバーとフォーカスの状態 */
.cast-item:hover,
.cast-item:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cast-item a {
    display: block;
    text-decoration: none;
    color: #fff;
}

.cast-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.cast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.cast-item:hover .cast-thumb img {
    transform: scale(1.1);
}

/* インフォオーバーレイ */
.cast-info {
    padding: 15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.cast-name {
    font-size: 22px;
    margin: 0 0 10px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* キャスト名のホバーエフェクト */
.cast-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.cast-item:hover .cast-name::after {
    width: 100%;
}

.profile-preview-item {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.profile-preview-item .label {
    font-weight: 600;
    color: #e74c3c; /* アクセントカラー */
}

/* ロード時のアニメーション (CSSのみ) */
.cast-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* アニメーションの遅延（CSSのみ） */
.cast-item:nth-child(1) { animation-delay: 0.1s; }
.cast-item:nth-child(2) { animation-delay: 0.2s; }
.cast-item:nth-child(3) { animation-delay: 0.3s; }
.cast-item:nth-child(4) { animation-delay: 0.4s; }
.cast-item:nth-child(5) { animation-delay: 0.5s; }
.cast-item:nth-child(6) { animation-delay: 0.6s; }
.cast-item:nth-child(n+7) { animation-delay: 0.7s; }

/* 追加インタラクティブエフェクト（Javascriptなし） */
.cast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.cast-item:hover::before {
    opacity: 1;
}

/* クリック時の効果（:activeセレクタを使用） */
.cast-item:active {
    transform: scale(0.98);
    transition: transform 0.2s ease;
}

/* シビれ効果 */
.cast-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
    opacity: 0;
    transform: scale(3);
    transition: transform 0.5s, opacity 0.5s;
}

.cast-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* キャスト情報の追加アニメーション */
.cast-info {
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.cast-item:hover .cast-info {
    transform: translateY(-5px);
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .cast-archive {
        padding: 60px 0 40px;
    }
    
    .cast-archive .page-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .cast-name {
        font-size: 18px;
    }
    
    .profile-preview-item {
        font-size: 12px;
    }
}
.cast-item a {
    display: block;
    text-decoration: none;
    color: #fff;
    cursor: pointer; /* カーソルをポインタに変更 */
    -webkit-tap-highlight-color: rgba(231, 76, 60, 0.2); /* タップ時のハイライト色 (モバイル向け) */
    outline: none;
    position: relative;
    z-index: 5; /* リンクのz-indexを上げる */
}

.breadcrumb {
  font-size: 0.9rem;
  margin: 30px 0 20px !important;
  color: #ccc;
}

.breadcrumb a {
  color: #ada58b;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.cast-archive .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.cast-item {
  width: 180px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.cast-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.cast-name {
  padding: 10px 0;
  color: #fff;
  font-size: 1rem;
}

.breadcrumb {
  font-size: 0.9rem;
  margin: 30px 0 20px !important;
  color: #ccc;
}

/* --- ページ全体共通レイアウト --- */
.cast-archive .container,
.cast-profile .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 60px; /* 上80px、左右20px、下60px */
}

/* --- パンくずリスト --- */
.breadcrumb {
  font-size: 0.9rem;
  margin: 30px 0 20px;
  color: #ccc;
}

.breadcrumb a {
  color: #ada58b;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- キャスト一覧（archive）用 --- */
.cast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.cast-item {
  width: 180px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.cast-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.cast-name {
  padding: 10px 0;
  color: #fff;
  font-size: 1rem;
}

/* --- 個人プロフィール（single）用 --- */
.cast-main-photo {
  text-align: center;
  margin-bottom: 30px;
}

.cast-profile .cast-name {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  display: block;
  width: 100%;
  color: #fff;
}

.shift-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
}
.shift-table th,
.shift-table td {
  border: 1px solid #333;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}
.shift-table th {
  background-color: #1b1b1b;
  font-weight: bold;
}
.shift-table td img {
  max-width: 80px;
  border-radius: 8px;
}

.shift-table td {
  display: table-cell !important;
  vertical-align: middle;
  text-align: center;
}

.shift-table td.holiday {
  background-color: #222;
  color: #aaa;
}
.shift-table td.working {
  background-color: #111;
  color: #fff;
}
.shift-table th {
  background-color: #1b1b1b;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

.shift-table td {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 10px;
}

/* 画像を中央に配置 */
.shift-table td a img {
  display: block;
  margin: 0 auto;
  max-width: 80px;
  border-radius: 8px;
}

/* 出勤の背景（黒＋白字） */
.shift-table td.working {
  background-color: #111;
  color: #fff;
}

/* 休みの背景（グレー＋薄字） */
.shift-table td.holiday {
  background-color: #222;
  color: #aaa;
}

/* 未定の背景（黒＋ややグレー） */
.shift-table td:not(.working):not(.holiday) {
  background-color: #111;
  color: #ccc;
}

@media screen and (max-width: 768px) {
  .shift-table {
    transform: scale(0.60);         /* 全体を60%に縮小 */
    transform-origin: top left;     /* 左上から縮小される */
    width: auto;                    /* 固定幅を解除 */
  }
  .shift-table--today {
    transform: none;                /* 本日出勤表は2列のため縮小不要 */
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .shift-table-wrapper {
    overflow-x: hidden;
  }
}

/* 本日出勤一覧: アイコン+名前+時間のコンパクトカード */
.today-shift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.today-shift-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border-radius: 8px;
  padding: 8px;
  text-decoration: none;
  color: #fff;
}

.today-shift-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.today-shift-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.today-shift-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
  color: #ada58b;
  font-weight: bold;
  font-size: 0.95rem;
}

.today-shift-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.today-shift-name {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-shift-time {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.75rem;
  color: #cdcdcd;
  background: #1b1b1b;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-shift-empty {
  text-align: center;
  color: #aaa;
  margin-top: 20px;
}

.page-title {
  display: block;
  width: 100%;
  text-align: center !important;
  font-size: 2em;
  margin: 30px 0;
  color: #fff;
}
/* ニュースセクション */
.newsWrap {
  padding: 60px 20px;
  background: #111;
  color: #fff;
  text-align: center;
}

.news-list {
  margin-top: 30px;
}

.news-item {
  margin-bottom: 20px;
}

.news-item a {
  color: #fff;
  text-decoration: none;
}

.news-item time {
  display: block;
  font-size: 0.9rem;
  color: #ada58b;
  margin-bottom: 5px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
}

.news-more .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  border: 1px solid #ada58b;
  color: #ada58b;
  text-decoration: none;
}
.news-more .btn:hover {
  background-color: #ada58b;
  color: #111;
}

/* ===== 2026 quality / conversion improvements ===== */
.firstView {
  position: relative;
  min-height: 760px;
  background: #050505;
  overflow: hidden;
}

.firstView::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

.firstView .slider,
.firstView .slider img {
  width: 100%;
  height: 100%;
}

.firstView .slider {
  position: absolute;
  inset: 0;
}

.firstView .slider img {
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.firstView .textWrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(1120px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding-top: 80px;
  text-align: left;
}

.firstView .hero-kicker {
  margin-bottom: 18px;
  color: #d8caa6;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.firstView h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.8rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.42);
}

.firstView .hero-lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
  line-height: 1.9;
}

.firstView .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.firstView .hero-btn,
.official-sticky-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.firstView .hero-btn.primary {
  color: #111;
  background: #d8caa6;
}

.firstView .hero-btn.recruit,
.global-nav .nav-recruit {
  color: #fff;
  border: 1px solid rgba(216, 202, 166, 0.74);
  background: rgba(216, 202, 166, 0.12);
}

.firstView .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.firstView .hero-facts li {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.92rem;
  font-weight: 700;
}

.global-nav .nav-recruit {
  padding: 7px 12px;
  border-radius: 6px;
}

.global-nav .nav-recruit::after {
  display: none;
}

.recruitWrap {
  background-image: url("images/recruit-bg-v2.webp");
}

.recruitWrap::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58));
}

.recruitWrap .lead-text {
  font-size: 1.02rem;
  line-height: 1.9;
}

.official-sticky-actions {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .firstView {
    min-height: 720px;
  }

  .firstView .textWrap {
    width: calc(100% - 32px);
    min-height: 720px;
    padding-top: 72px;
  }

  .firstView h1 {
    font-size: clamp(4.2rem, 24vw, 6.6rem);
  }

  .firstView .hero-lead {
    font-size: 1rem;
    line-height: 1.8;
  }

  .firstView .hero-actions {
    width: 100%;
  }

  .firstView .hero-btn {
    width: 100%;
  }

  .site-header .global-nav.open {
    right: 0;
  }

  .menu-toggle.open span:nth-child(1),
  .menu-toggle.open span:nth-child(4) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(2) {
    top: 21px;
    transform: rotate(45deg);
  }

  .menu-toggle.open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  .official-sticky-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    overflow: hidden;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.32);
  }

  .official-sticky-actions a {
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    color: #fff;
    background: #1f1f1f;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .official-sticky-actions .sticky-recruit {
    color: #111;
    background: #d8caa6;
  }

  .official-sticky-actions .sticky-phone {
    display: inline-flex;
  }
}

/* ===== Responsive navigation correction ===== */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .menu-toggle span {
    left: 11px;
    width: 22px;
    background: #d8caa6;
  }

  .menu-toggle span:nth-child(1) {
    top: 13px;
  }

  .menu-toggle span:nth-child(2),
  .menu-toggle span:nth-child(3) {
    top: 21px;
  }

  .menu-toggle span:nth-child(4) {
    top: 29px;
  }

  .site-header .global-nav {
    right: min(-82vw, -320px);
    width: min(82vw, 320px);
    max-width: none;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header .global-nav.open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .overlay.open {
    display: block;
  }

  .official-sticky-actions {
    left: 50%;
    right: auto;
    width: min(420px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 8px;
  }

  .official-sticky-actions a {
    min-height: 46px;
    padding-inline: 6px;
    font-size: 0.9rem;
  }
}
