/* === 基本的なリセットとグローバルスタイル === */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    height: 100%; /* ★ html要素に高さを設定 (必須) */
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0; /* padding-topは下の :not(.top-page) で制御します */
    font-family: 'M PLUS 1p', sans-serif;
    color: #474747;
    background-image: linear-gradient(90deg, rgb(255, 255, 255) 0%, #ffe1d2 100%);
    background-color: #FFFFFF;
    background-repeat: no-repeat; /* ★ 追加 */
    background-attachment: fixed; /* ★ 追加 */
    line-height: 1.6; /* 1.5から変更しました (お好みで) */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    -webkit-overflow-scrolling: touch; /* Androidでのスムーズスクロール */
}

/* トップページ以外のページでヘッダーがある場合のpadding-top */
body:not(.top-page) {
    padding-top: 70px; /* 固定ヘッダーの高さ */
}

/* トップページ専用のbodyスタイル */
body.top-page { 
    padding-top: 0px;
}

textarea, input, select, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

a {
    text-decoration: none;
    color: #474747; /* デフォルトのリンク色 (例) */
}
a:hover {
    text-decoration: underline;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, [type="button"], [type="reset"], [type="submit"] {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit; 
}
/* === ヘッダースタイル === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    color: #474747;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    color: inherit; /* リンク色を親から継承 */
}

.logo-area:hover {
    text-decoration: none;
}

.logo-image {
    width: 60px;
    height: auto;
    margin-right: 5px;
}

.logo-text .logo-main-title {
    font-family: 'Kaisei Opti', sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 1px;
    color: #474747;
    text-decoration: none;
}

.logo-text .logo-main-title:hover {
    text-decoration: none;
}

.logo-text .logo-sub-title {
    font-weight: 700;
    margin-top: 1px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #474747;
    text-decoration: none;
}

.logo-text .logo-sub-title:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .logo-text .logo-sub-title {
        font-size: 18px;
    }
}

.menu-button-area {
    padding-right: 12px;
}

.hamburger-button {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #f58268, #ffbba0);
    color: white;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease-in-out;
}

.hamburger-button:hover {
    transform: scale(1.05);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
}

.hamburger-line {
    display: block;
    width: 32px;
    height: 1px;
    background-color: white;
    margin-bottom: 4px;
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

.menu-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

/* === ポップアップメニュースタイル === */
.popup-menu-overlay {
    position: fixed;
    inset: 0; 
    z-index: 2000; 
    background-color: rgba(255, 255, 255, 0.402); 
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    will-change: opacity, visibility;
}

.popup-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.popup-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, rgbargb(245 193 104 / 95%), rgbargb(255 209 160 / 95%));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    will-change: right;
}

.popup-menu-overlay.is-open .popup-menu-panel {
    right: 0;
}

@media screen and (max-width: 768px) {
    .popup-menu-panel {
        width: calc(100% - 60px);
        left: 60px;
        right: 0;
    }
}

/* メニュー背景スライドショー */
.menu-background-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden; /* 画像がはみ出ないように */
    z-index: 1; /* 白オーバーレイの下 */
}

.menu-background-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Reactコードの duration-[1000ms] ease-linear */
    /* ズームアニメーションは別途定義 */
}

.menu-background-slide.active-slide { /* JavaScriptでこのクラスを制御 */
    opacity: 1;
    animation: zoomEffect 15s ease-out infinite alternate; /* ズームアニメーションを長く、ゆっくり */
}

/* メニュー全体の白半透明オーバーレイ */
.menu-panel-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5); /* Reactコードの bg-white/50 */
    z-index: 2;
}

/* メニューコンテンツ */
.menu-panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    background: transparent;
}

.close-menu-icon {
    position: absolute;
    top: 0px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 4;
}

.close-menu-icon:hover {
    color: #333;
}

.popup-main-nav {
    margin-top: 60px; /* 閉じるボタンとのマージン */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.popup-nav-item {
    display: block;
    text-align: left;
    margin-bottom: 0px;
    text-decoration: none !important;
    padding: 2px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.popup-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.popup-nav-item:hover .nav-item-code,
.popup-nav-item:hover .nav-item-label {
    opacity: 0.8; /* 簡単なホバーエフェクト */
}

.nav-item-code {
    font-family: "ZCOOL XiaoWei", cursive;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(84, 84, 84, 0.3);
    color: #f58268;
    line-height: 1;
    margin-right: 15px;
    transition: transform 0.3s ease;
    min-width: 60px;
    text-align: left;
}

.nav-item-label {
    margin-top: -12px;
    font-family: "Kaisei Opti", serif;
    font-size: 15px;
    font-weight: 800;
    color: #474747;
    text-shadow: 1px 1px 2px rgba(84, 84, 84, 0.3);
    line-height: 1.2;
    transition: transform 0.3s ease;
}

/* フッターリンク */
.popup-footer-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    padding-bottom: 80px; 
}

.popup-footer-link:hover {
    text-decoration: none !important;
    opacity: 0.8;
}

.popup-footer-logo {
    width: 50px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2px; 
}

.popup-footer-text-official {
    font-family: "ZCOOL XiaoWei", cursive;
    font-size: 25px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
    color: #f58268;
    line-height: 1;
}

.popup-footer-text-sitename {
    font-family: "Kaisei Opti", serif;
    font-size: 13px;
    font-weight: 800;
    color: #474747;
    line-height: 0.8;
    margin-bottom: 3px;
}

/* アニメーション */
@keyframes popupIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes popupOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.popup-in  { animation: popupIn  0.3s ease-out forwards; }
.popup-out { animation: popupOut 0.3s ease-in  forwards; }

/* メインコンテンツエリアの基本的なラッパー */
.main-content-wrapper, /* 他のページ用 (header.phpで開始タグ) */
.top-page-content-wrapper { /* トップページ用 */
    flex-grow: 1; /* ★ この設定が最も重要です。 */
}

/* === 通常のページフッタースタイル (site-footer-standard) === */
.site-footer-standard {
    color: #474747;
    font-size: 11px;
    padding-top: 10px;
    padding-bottom: 55px;
    box-shadow: 0 -6px 10px -4px rgba(0,0,0,0.1); 
    width: 100%;     
    flex-shrink: 0;  
}

/* トップページ用のフッタースタイル */
.top-page .site-footer-standard {
    padding-bottom: 0px; /* トップページではpadding-bottomを小さく */
}

.page-footer-content {
    max-width: 64rem; /* 1024px (Tailwindのmax-w-5xl相当) */
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem; /* px-2 (8px) */
    padding-right: 0.5rem;
    text-align: center;
}

.footer-nav-standard ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 10px; /* gap-y-0.5 (2px) gap-x-2.5 (10px) */
    margin-bottom: 0.75rem; /* space-y-3 (各要素の間) の代わりに親要素に */
}
.footer-nav-standard ul li a {
    color: #474747; /* 親から継承でも良いが明示 */
}
/* a:hover のスタイルはグローバルで定義済み */

.copyright-standard {
    margin-top: 0.25rem; /* mt-1 */
}

/* === 画面最下部に固定するフッタースタイル (site-footer-fixed) === */
.site-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    color: #474747;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
}

.fixed-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

.fixed-footer-info {
    text-align: left;
    flex: 1;
    width: 50%;
    justify-content: flex-start;
}

.fixed-footer-info .open-hours {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    margin-bottom: 1px;
}

.fixed-footer-info .reception-info {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    color: #666;
}

.fixed-footer-phone-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f58268, #ffbba0);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(245, 104, 223, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    margin-left: 20px;
    margin-right: 20px;
}

.fixed-footer-phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 104, 223, 0.4);
    text-decoration: none;
}

.fixed-footer-phone-button .phone-icon {
    font-family: 'Material Icons';
    font-size: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.fixed-footer-phone-button .phone-number {
    margin-left: 2px;
    font-size: 15px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .site-footer-fixed {
        padding: 10px 0;
        padding-bottom: max(env(safe-area-inset-bottom), 10px);
    }
    .fixed-footer-container {
        gap: 10px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 12px;
    }
    .fixed-footer-info .open-hours {
        font-size: 14px;
        line-height: 1.1;
        margin-bottom: 0px;
    }
    .fixed-footer-info .reception-info {
        font-size: 10px;
        line-height: 1.1;
    }
    .fixed-footer-phone-button {
        font-size: 12px !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        justify-content: center !important;
        margin-right: 0px !important;
    }
    .fixed-footer-phone-button .phone-icon {
        font-size: 14px;
        margin-right: 4px;
    }
    .fixed-footer-phone-button .phone-number {
        font-size: 13px;
    }
}

/* 両サイドに伸びるライン */
.stripe-line {
  height: 10px;
  background-image: repeating-linear-gradient(120deg, #f58268 0 1px, transparent 12px 12px);
  background-repeat: repeat-x;
  background-size: 12px 15px;
}

/* 両サイドに伸びるドットライン */
.dot-line {
  height: 10px;
  background-image: repeating-radial-gradient(circle, #f58268 0 2px, transparent 2px 12px);
  background-repeat: repeat-x;
  background-size: 12px 10px;
  margin: 0;
  margin-bottom: -20px;
}

/* loading全体 */
#loading {
  /* display: none;  JavaScriptで制御するため、CSSでのデフォルト非表示は不要な場合も */
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  display: flex; /* JavaScriptで表示する場合に flex にする */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loading .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #0050BA; /* React版のglobals.cssより */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

#loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #0050BA; /* React版のglobals.cssより */
  animation: blink 1.5s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* accordion 共通 */
.accordion {
  max-width: 800px;
  margin: 0 auto 1px;
  box-sizing: border-box;
}
@media only screen and (max-width: 768px) {
  .accordion { width: 100%; /* React版のglobals.cssでは vw だったが、%の方が一般的か */ }
}

.accordion-header,
.hotel-header { /* hotel-headerも共通スタイルを適用 */
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px 3px; 
}

/* インデックス専用のbodyスタイル */
body.top-page {
    padding-top: 0; /* ★固定ヘッダー分のpaddingをリセット */
    padding-bottom: 0; /* ★もしbodyに固定フッター用のpadding-bottomを設定していたら、それもリセット */
                       /* そうでなければこの行は不要 */
}

/* Systemページ専用のスタイル */
/* ── system.php の全セクションを中央寄せ ── */
.system-page main,
.system-page section,
.system-page .system-top-banners,
.system-page .system-section,
.system-page .system-bottom-banner {
  text-align: center;
}

/* オプショングリッドのアイテムを中央に並べる */
.system-page .options-grid {
  display: inline-flex;       /* ブロック内で横並び */
  justify-content: center;    /* 中央揃え */
  gap: 15px;                  /* 要素間の余白 */
}

/* 注意事項リストだけ左右余白を確保 */
.system-page .attention-list {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

/* === パンくずリストの共通スタイル === */
.breadcrumb {
    font-size: 12px; /* スマホ用の基本サイズ */
    color: #666666;
    padding: 1px 10px;
}

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

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

.breadcrumb span {
    margin: 0 4px;
}

/* PCサイズ（768px以上）でのパンくずリスト */
@media (min-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        padding-top: 5px;
        padding-left: 20px;
    }
}

/* === タイトルセクションの共通スタイル === */
.title-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 14px 16px 0;
}

.title-section h1 {
    font-family: 'ZCOOL XiaoWei', sans-serif;
    font-size: 32px; /* スマホ用のサイズ */
    font-weight: 400;
    line-height: 31px;
    letter-spacing: -0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #f58268;
    margin: 0;
}

.title-section h2 {
    font-family: 'Kaisei Opti', sans-serif;
    font-size: 16px; /* スマホ用のサイズ */
    font-weight: 400;
    line-height: 31px;
    letter-spacing: -0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #474747;
    margin: 0;
}

/* PCサイズ（768px以上）でのタイトルセクション */
@media (min-width: 768px) {
    .title-section {
        text-align: left;
        padding-bottom: 30px;
    }

    .title-section h1 {
        font-size: 40px;
    }

    .title-section h2 {
        font-size: 20px;
    }
}

/* モバイルサイズ（768px未満）でのタイトルセクション */
@media (max-width: 767px) {
    .title-section {
        text-align: left;
        padding-bottom: 30px;
    }

}


/* === メインコンテンツエリアの共通スタイル === */
.main-content {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    text-align: center;
    margin-top: 0;
}

/* PCサイズ（768px以上）でのメインコンテンツ */
@media (min-width: 768px) {
    .main-content {
        padding: 0 15px;
    }
}

/* === 注意事項セクションのスタイル === */
.notice-section {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 16px;
    text-align: center;
}

.notice-section img {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
}

/* PCサイズ（768px以上）での注意事項セクション */
@media (min-width: 768px) {
    .notice-section {
        padding: 0 20px;
    }
}

/* === トップページスタイル === */
.top-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.top-page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 114, 182, 0.2);
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    padding: 3rem 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Kaisei Opti', sans-serif;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 0 10px rgba(103, 103, 103, 0.6);
    margin-bottom: 1rem;
}

.hero-logo {
    width: 150px;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: 'Zen Old Mincho', serif;
    font-size: 15px;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.44);
    margin-top: 5px;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.badge-image {
    height: 90px;
    width: auto;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-button {
    background-color: rgba(245, 130, 104, 0.7);
    color: white;
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: clamp(18px, 4vw, 25px);
    font-weight: 100;
    letter-spacing: 4.9px;
    padding: 15px 30px;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.hero-button:hover {
    transform: scale(1.05);
}

.hero-description {
    font-size: 14px;
    line-height: 1.6;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    margin-top: 2.5rem;
    padding: 0 1.5rem;
}

/* === キャンペーンセクションのスタイル === */
.campaign-section {
    background-color: #fff;
}

.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.campaign-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.campaign-card:hover {
    transform: translateY(-5px);
}

.campaign-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.campaign-content {
    padding: 1.5rem;
    flex: 1;
}

.campaign-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.campaign-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .hero-section {
        height: 90vh;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(24px, 4vw, 30px);
        margin-bottom: 0.5rem;
    }
    
    .hero-logo {
        width: 120px;
    }
    
    .badge-container {
        margin-top: 1.5rem;
    }
    
    .badge-image {
        height: 70px;
    }
    
    .button-container {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .hero-button {
        padding: 12px 24px;
        font-size: clamp(16px, 4vw, 20px);
    }
    
    .hero-description {
        margin-top: 1.5rem;
        font-size: 12px;
        padding: 0 1rem;
    }
}

/* 閲覧履歴カードのスタイル */
.view-history-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-wrapper {
    position: relative;
}

.history-content {
    max-height: 413px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #f58268 #f0f0f0;
    padding: 5px;
}

.history-content::-webkit-scrollbar {
    width: 6px;
}

.history-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.history-content::-webkit-scrollbar-thumb {
    background-color: #f58268;
    border-radius: 3px;
}

.history-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-cards a {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.history-cards a:hover {
    transform: translateY(-2px);
}

.history-cards .card-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.history-cards .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-cards .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.history-cards .card-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.history-cards .card-stats {
    font-size: 12px;
    color: #666;
}

.history-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-wrapper.has-scroll.show-gradient::after {
    opacity: 1;
}

/* スマホ表示用のスタイル */
@media screen and (max-width: 768px) {
    .history-cards a {
        padding: 6px;
    }
    
    .history-cards .card-image {
        width: 50px;
        height: 50px;
    }
    
    .history-cards .card-name {
        font-size: 13px;
    }
    
    .history-cards .card-stats {
        font-size: 11px;
    }
    
    .history-content {
        max-height: none;
    }
}

/* === ここからcss/style.css独自スタイル === */

/* === キャスト一覧ページのスタイル === */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1200px) {
    .cast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0;
    }
}

.cast-card {
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.cast-card a {
    text-decoration: none;
    color: inherit;
}

.cast-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.cast-info {
    padding: 15px;
}

.cast-info h2 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

.cast-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.new-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 5px;
}

.status-badges {
    margin: 5px 0;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    color: white;
}

.status-badge.today {
    background: #4CAF50;
}

.status-badge.now {
    background: #2196F3;
}

.status-badge.closed {
    background: #9E9E9E;
}

.status-badge.new {
    background: #FF4444;
}

/* === main-content-sections レイアウト === */
.main-content-sections {
    width: 100%;
}

.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.left-section {
    width: 65%;
}

.right-section {
    width: 35%;
}

.left-section > div,
.right-section > div {
    padding: 10px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .main-content-container {
        flex-direction: column;
    }
    .left-section,
    .right-section {
        width: 100%;
    }
    .left-section > div,
    .right-section > div {
        margin-bottom: 10px;
    }
    .section-title .title-en {
        font-size: 18px;
    }
    .section-title .title-ja {
        font-size: 14px;
    }
}

/* === Androidデバイス専用のメディアクエリ === */
/* Android Chrome/Samsung Internet */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 767px) {
    body {
        -webkit-text-size-adjust: none;
    }
    
    .site-header {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .hamburger-button {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Android特有の高解像度デバイス対応 */
@media screen and (min-resolution: 2dppx) and (max-width: 767px) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Android Chrome のアドレスバー対応 */
@media screen and (max-height: 600px) and (max-width: 767px) {
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* === 既存のメディアクエリを改善 === */
@media (min-width: 768px) {
    .logo-text .logo-sub-title {
        font-size: 18px;
    }
}

/* AndroidとiOSの両方に対応したモバイルメディアクエリ */
@media screen and (max-width: 767px), 
       screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2),
       screen and (max-width: 767px) and (min-resolution: 192dpi) {
    .popup-menu-panel {
        width: calc(100% - 60px);
        left: 60px;
        right: 0;
    }
    
    .fixed-footer-container {
        gap: 10px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 12px;
    }
    
    .fixed-footer-info .open-hours {
        font-size: 14px;
        line-height: 1.1;
        margin-bottom: 0px;
    }
    
    .fixed-footer-info .reception-info {
        font-size: 10px;
        line-height: 1.1;
    }
    
    .fixed-footer-phone-button {
        font-size: 12px !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        justify-content: center !important;
        margin-right: 0px !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    .fixed-footer-phone-button .phone-icon {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .fixed-footer-phone-button .phone-number {
        font-size: 13px;
    }
    
    .main-content-container {
        flex-direction: column;
    }
    
    .left-section,
    .right-section {
        width: 100%;
    }
    
    .left-section > div,
    .right-section > div {
        margin-bottom: 10px;
    }
    
    .section-title .title-en {
        font-size: 18px;
    }
    
    .section-title .title-ja {
        font-size: 14px;
    }
    
    .hero-section {
        height: 90vh;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(24px, 4vw, 30px);
        margin-bottom: 0.5rem;
    }
    
    .hero-logo {
        width: 120px;
    }
    
    .badge-container {
        margin-top: 1.5rem;
    }
    
    .badge-image {
        height: 70px;
    }
    
    .button-container {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .hero-button {
        padding: 12px 24px;
        font-size: clamp(16px, 4vw, 20px);
        -webkit-tap-highlight-color: transparent;
    }
    
    .hero-description {
        margin-top: 1.5rem;
        font-size: 12px;
        padding: 0 1rem;
    }
    
    .history-cards a {
        padding: 6px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .history-cards .card-image {
        width: 50px;
        height: 50px;
    }
    
    .history-cards .card-name {
        font-size: 13px;
    }
    
    .history-cards .card-stats {
        font-size: 11px;
    }
    
    .history-content {
        max-height: none;
    }
}
