/**
 * Cast WP - Main Stylesheet
 *
 * @package Cast_WP
 * @version 1.0.0
 */

/* ============================================
   CSS Variables (カスタムプロパティ)
   ============================================ */
:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f48fb1;
    --secondary-color: #333333;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-color: #ffffff;
    --bg-gray: #f7f7f7;
    --border-color: #f0f0f0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Layout
   ============================================ */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ロゴ */
.site-branding {
    flex-shrink: 0;
}

.site-logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

/* ナビゲーション */
.main-navigation {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow-y: auto;
    z-index: 999;
}

.nav-toggle:checked ~ .main-navigation {
    display: block;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.nav-toggle:checked ~ .nav-overlay {
    display: block;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-toggle-bar--short {
    width: 20px;
}

.nav-toggle-text {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-top: 2px;
}

/* メニュー（旧デザイン - 通常のサイドバーメニュー用） */
.main-navigation:not(.bilingual-nav) .nav-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.main-navigation:not(.bilingual-nav) .nav-menu li {
    margin-bottom: 10px;
}

.main-navigation:not(.bilingual-nav) .nav-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

.main-navigation:not(.bilingual-nav) .nav-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

/* PC表示（旧デザイン用） */
@media (min-width: 768px) {
    .nav-toggle-container {
        display: none;
    }

    .main-navigation:not(.bilingual-nav) {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }

    .main-navigation:not(.bilingual-nav) .nav-inner {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .mobile-logo {
        display: none;
    }

    .main-navigation:not(.bilingual-nav) .nav-menu {
        display: flex;
        margin: 0;
        gap: 5px;
    }

    .main-navigation:not(.bilingual-nav) .nav-menu li {
        margin: 0;
    }

    .main-navigation:not(.bilingual-nav) .nav-menu a {
        padding: 8px 15px;
    }
}

/* 電話番号 */
.phone-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-gray);
    border-radius: 8px;
}

.phone-container i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.phone-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color);
}

.phone-hours {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    margin-bottom: 40px;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget {
    color: #ffffff;
}

.footer-widget .widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-navigation {
    margin-bottom: 30px;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu a {
    color: #cccccc;
}

.footer-menu a:hover {
    color: #ffffff;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #cccccc;
}

.footer-info-item i {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 0.875rem;
}

.footer-copyright a {
    color: #cccccc;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background: var(--secondary-color);
}

.btn--secondary:hover {
    background: #555555;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn--small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn--large {
    padding: 15px 40px;
    font-size: 1.125rem;
}

/* ============================================
   Cast Profile (キャストプロフィール)
   ============================================ */
.cast-profile {
    margin-top: 100px;
}

.cast-profile-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
}

.cast-profile-header {
    background: var(--bg-color);
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cast-profile-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cast-profile-icon {
    font-size: 2.5rem;
}

.cast-profile-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 2px;
}

.cast-profile-subtitle {
    font-size: 0.875rem;
}

.back-link {
    color: var(--primary-color);
}

.cast-profile-content {
    display: flex;
    padding: 30px;
    gap: 40px;
}

.cast-profile-image-section {
    flex: 0 0 400px;
}

.cast-profile-main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.cast-profile-main-image:hover {
    transform: scale(1.02) translateZ(0);
}

.cast-profile-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cast-profile-sub-images {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.cast-profile-sub-image {
    width: calc((100% - 16px) / 3);
    height: 125px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cast-profile-sub-image:hover,
.cast-profile-sub-image.active {
    border-color: var(--primary-color);
    transform: scale(1.05) translateZ(0);
}

.cast-profile-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-profile-info-section {
    flex: 1;
    min-width: 0;
}

.cast-profile-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.cast-profile-age {
    font-size: 1.25rem;
}

.cast-profile-measurements {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cast-profile-details {
    margin-bottom: 20px;
}

.cast-profile-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.cast-profile-detail-label {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: bold;
}

.cast-profile-detail-value {
    color: var(--text-color);
    font-size: 0.875rem;
}

.cast-profile-section-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

.cast-profile-course {
    color: var(--text-color);
    font-size: 0.875rem;
    padding: 10px;
    background: #fff5f8;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cast-profile-comment-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cast-profile-comment-box--girl {
    background: #e3f2fd;
}

.cast-profile-comment-box--shop {
    background: #fff3e0;
}

.cast-profile-comment-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.cast-profile-comment-box--girl .cast-profile-comment-title {
    color: #1976d2;
}

.cast-profile-comment-box--shop .cast-profile-comment-title {
    color: #f57c00;
}

.cast-profile-comment-text {
    color: var(--text-color);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* スケジュール */
.cast-schedule-section {
    background: var(--bg-gray);
    padding: 40px 20px;
    margin-top: 30px;
}

.cast-schedule-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 30px;
}

.cast-schedule-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
}

.cast-schedule-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cast-schedule-row:last-child {
    border-bottom: none;
}

.cast-schedule-date {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.875rem;
}

.cast-schedule-time {
    color: var(--text-color);
    font-size: 0.875rem;
}

/* ライトボックス */
.cast-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.cast-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cast-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.cast-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.cast-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
}

.cast-lightbox-close:hover {
    color: var(--primary-color);
}

.cast-lightbox-prev,
.cast-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transition: var(--transition);
    z-index: 10000;
    user-select: none;
}

.cast-lightbox-prev:hover,
.cast-lightbox-next:hover {
    background: rgba(233, 30, 99, 0.8);
}

.cast-lightbox-prev {
    left: 20px;
}

.cast-lightbox-next {
    right: 20px;
}

.cast-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
}

/* ============================================
   Cast Card (キャストカード)
   ============================================ */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.cast-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cast-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-hover);
}

.cast-card-link {
    display: block;
    color: inherit;
}

.cast-card__thumbnail {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.cast-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
}

.cast-card__badge--new {
    background: #ff5722;
}

.cast-card__info {
    padding: 20px;
}

.cast-card__name {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

.cast-card__age {
    font-size: 1rem;
    color: var(--text-light);
}

.cast-card__measurements {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.cast-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.cast-card__button {
    text-align: center;
}

/* ============================================
   Archive Pages
   ============================================ */
.archive-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.archive-description {
    color: var(--text-light);
}

/* 新着情報一覧 */
.news-list {
    margin: 40px 0;
}

.news-item {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-item-link {
    display: flex;
    color: inherit;
    gap: 20px;
    padding: 20px;
}

.news-item__thumbnail {
    flex: 0 0 200px;
}

.news-item__thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.news-item__content {
    flex: 1;
}

.news-item__date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.news-item__title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-item__excerpt {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-item__more {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* 写メ日記一覧 */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.diary-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.diary-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-hover);
}

.diary-card-link {
    display: block;
    color: inherit;
}

.diary-card__thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.diary-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diary-card__content {
    padding: 20px;
}

.diary-card__title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.diary-card__meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.diary-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.diary-card__more {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin: 60px 0 40px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination a {
    display: block;
    padding: 10px 15px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination .active a {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination-dots {
    padding: 10px 5px;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 20px 0;
    margin-bottom: 20px;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.breadcrumb li::after {
    content: "›";
    margin-left: 10px;
    color: var(--text-lighter);
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* ============================================
   Page Top Button
   ============================================ */
.page-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.page-top-button.visible {
    opacity: 1;
    visibility: visible;
}

.page-top-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) translateZ(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        height: 60px;
    }

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

    /* Cast Profile */
    .cast-profile {
        margin-top: 80px;
    }

    .cast-profile-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .cast-profile-image-section {
        flex: 0 0 auto;
        width: 100%;
    }

    .cast-profile-info-section {
        width: 100%;
    }

    .cast-profile-header {
        padding: 15px;
    }

    .cast-profile-title {
        font-size: 1.5rem;
    }

    .cast-profile-detail-row {
        grid-template-columns: 110px 1fr;
    }

    .cast-schedule-row {
        grid-template-columns: 100px 1fr;
    }

    /* サブ画像: スマホでは横スクロール */
    .cast-profile-sub-images {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--border-color);
    }

    .cast-profile-sub-images::-webkit-scrollbar {
        height: 6px;
    }

    .cast-profile-sub-images::-webkit-scrollbar-track {
        background: var(--border-color);
        border-radius: 3px;
    }

    .cast-profile-sub-images::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }

    .cast-profile-sub-image {
        width: 90px;
        min-width: 90px;
        height: 130px;
    }

    /* ライトボックス */
    .cast-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .cast-lightbox-prev,
    .cast-lightbox-next {
        font-size: 30px;
        padding: 15px;
    }

    .cast-lightbox-prev {
        left: 5px;
    }

    .cast-lightbox-next {
        right: 5px;
    }

    /* News Item */
    .news-item-link {
        flex-direction: column;
        padding: 15px;
    }

    .news-item__thumbnail {
        flex: 0 0 auto;
        width: 100%;
    }

    .news-item__thumbnail img {
        width: 100%;
        height: 200px;
    }

    /* Diary Grid */
    .diary-grid {
        grid-template-columns: 1fr;
    }

    /* Cast Grid */
    .cast-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.pc-only {
    display: block;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-message {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ============================================
   Schedule Tables (スケジュール表)
   ============================================ */
/* 本日の出勤スケジュール */
.schedule-info {
    text-align: center;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-bottom: 30px;
}

.schedule-count {
    font-size: 1.125rem;
    color: var(--text-color);
}

.schedule-count strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 出勤バッジ */
.cast-card__working-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* キャストカードのスケジュール時間表示 */
.cast-card__schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #fff5f8;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--text-color);
}

.cast-card__schedule i {
    color: var(--primary-color);
}

.cast-card__catchphrase {
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 個別キャストの週間スケジュール表 */
.week-schedule-wrapper {
    margin: 30px 0;
}

.week-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
}

.week-schedule-table thead th {
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 15px;
    font-weight: bold;
    text-align: left;
}

.week-schedule-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.week-schedule-table tbody tr:last-child {
    border-bottom: none;
}

.week-schedule-table td {
    padding: 12px 15px;
}

.schedule-date {
    color: var(--primary-color);
    font-weight: bold;
    width: 150px;
}

.schedule-time {
    color: var(--text-color);
}

.schedule-comment {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    background: #fff3e0;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #f57c00;
}

/* 全キャストの週間スケジュール表 */
.all-casts-schedule-wrapper {
    margin: 30px 0;
}

.schedule-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.all-casts-schedule-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: var(--bg-color);
}

.all-casts-schedule-table thead {
    background: var(--primary-color);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.all-casts-schedule-table th {
    padding: 12px 15px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.all-casts-schedule-table th:last-child {
    border-right: none;
}

.cast-name-header {
    text-align: left;
    min-width: 150px;
    position: sticky;
    left: 0;
    background: var(--primary-color);
    z-index: 11;
}

.schedule-date-header {
    min-width: 100px;
}

.schedule-date-header .weekday {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.9;
}

.all-casts-schedule-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.all-casts-schedule-table tbody tr:hover {
    background: var(--bg-gray);
}

.all-casts-schedule-table tbody tr:last-child {
    border-bottom: none;
}

.all-casts-schedule-table td {
    padding: 12px 15px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.all-casts-schedule-table td:last-child {
    border-right: none;
}

.cast-name-cell {
    text-align: left;
    font-weight: bold;
    position: sticky;
    left: 0;
    background: var(--bg-color);
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.all-casts-schedule-table tbody tr:hover .cast-name-cell {
    background: var(--bg-gray);
}

.cast-name-cell a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cast-name-cell a:hover {
    color: var(--primary-color);
}

.schedule-cell {
    font-size: 0.875rem;
    white-space: nowrap;
}

.schedule-cell.working {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
}

.schedule-cell.off {
    color: var(--text-lighter);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .schedule-info {
        padding: 15px;
    }

    .schedule-count {
        font-size: 1rem;
    }

    .schedule-count strong {
        font-size: 1.25rem;
    }

    .week-schedule-table {
        font-size: 0.875rem;
    }

    .week-schedule-table th,
    .week-schedule-table td {
        padding: 10px 12px;
    }

    .schedule-date {
        width: 120px;
    }

    .all-casts-schedule-table {
        min-width: 600px;
        font-size: 0.75rem;
    }

    .all-casts-schedule-table th,
    .all-casts-schedule-table td {
        padding: 8px 10px;
    }

    .cast-name-header,
    .cast-name-cell {
        min-width: 120px;
    }

    .schedule-date-header {
        min-width: 80px;
    }
}

/* ============================================
   Page Content (固定ページ)
   ============================================ */
.page-content {
    padding: 60px 0;
}

.page-article {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.entry-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0;
}

.entry-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.entry-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 30px 0 15px;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 25px 0 10px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content strong {
    font-weight: bold;
    color: var(--text-color);
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

/* ショートコード表示用のスタイル調整 */
.entry-content .cast-list-wrapper,
.entry-content .today-schedule-wrapper,
.entry-content .all-casts-schedule-wrapper,
.entry-content .week-schedule-wrapper,
.entry-content .diary-list-wrapper,
.entry-content .news-list-wrapper {
    margin: 40px 0;
}

.entry-content .cast-grid,
.entry-content .diary-grid {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-content {
        padding: 40px 0;
    }

    .page-article {
        padding: 20px;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Bilingual Header (バイリンガルヘッダー - 2カラムレイアウト)
   ============================================ */
/* CSS変数（JavaScript経由で動的に設定） */
:root {
    --header-bg: linear-gradient(135deg, #8B0000 0%, #4A0000 100%);
    --menu-bg: linear-gradient(135deg, #8B0000 0%, #4A0000 100%);
    --menu-color: #FFFFFF;
    --menu-hover-color: #FFD700;
    --phone-number-color: #FFFFFF;
    --header-subtitle-color: #FFFFFF;
    --header-subtitle-font-size: 12px;
    --main-phone-font-size: 32px;
    --sub-phone-1-font-size: 18px;
    --sub-phone-2-font-size: 18px;
    --menu-ja-font-size: 15px;
    --menu-en-font-size: 10px;
}

.bilingual-header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* ヘッダーサブタイトル */
.header-subtitle-bar {
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    text-align: center;
    transition: all 0.3s ease;
    max-height: 50px;
    overflow: hidden;
}

.header-subtitle {
    font-size: var(--header-subtitle-font-size);
    color: var(--header-subtitle-color);
    margin: 0;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

/* スクロール時: サブタイトルバーを非表示 */
.bilingual-header.scrolled .header-subtitle-bar {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

/* 上部エリア（2カラムレイアウト） */
.header-top {
    background: inherit;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

/* スクロール時: ヘッダーを縮小 */
.bilingual-header.scrolled .header-top {
    padding: 0;
}

.bilingual-header.scrolled .header-top-inner {
    padding: 0 40px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: auto;
    background: transparent;
}

/* スクロール時: 電話番号を非表示 */
.bilingual-header.scrolled .header-right {
    display: none;
}

/* 左カラム: ロゴとサブタイトル */
.header-left {
    flex: 0 0 auto;
}

.bilingual-header .site-branding {
    flex-shrink: 0;
}

.bilingual-header .logo-wrapper {
    margin: 0;
}

.bilingual-header .logo-image {
    height: 60px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* スクロール時: ロゴを縮小 */
.bilingual-header.scrolled .logo-image {
    height: 45px;
}

.bilingual-header .site-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 5px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* スクロール時: ロゴサブタイトルを非表示 */
.bilingual-header.scrolled .logo-subtitle {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
}

/* 右カラム: 電話番号（縦並び） */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.phone-blocks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.phone-block {
    text-align: right;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--phone-number-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number i {
    font-size: 16px;
}

.phone-number:hover {
    color: var(--menu-hover-color);
}

.phone-subtitle {
    font-size: 11px;
    color: #ffffff;
    margin-top: 3px;
    opacity: 0.8;
}

/* ハンバーガーメニュー（モバイル）*/
.bilingual-header .nav-toggle {
    display: none;
}

.bilingual-header .nav-toggle-label {
    display: none; /* デスクトップでは非表示 */
}

.bilingual-header .nav-close-button {
    display: none; /* デスクトップでは非表示 */
}

.bilingual-header .nav-toggle-bars .nav-toggle-bar {
    background: #ffffff;
}

.bilingual-header .nav-toggle-text {
    color: #ffffff;
}

/* ナビゲーションメニュー（バイリンガル） */
.bilingual-nav {
    background: var(--menu-bg);
    display: block;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.bilingual-nav .nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* スクロール時: メニューをロゴの隣に配置 */
.bilingual-header.scrolled .bilingual-nav .nav-inner {
    justify-content: flex-start;
    padding-left: 200px;
}

.bilingual-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.bilingual-menu .nav-item {
    margin: 0;
}

.bilingual-menu .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--menu-color);
    padding: 20px 10px;
    transition: all 0.3s ease;
    position: relative;
}

/* スクロール時: メニューのパディングを縮小 */
.bilingual-header.scrolled .bilingual-menu .nav-link {
    padding: 12px 10px;
}

.bilingual-menu .nav-link:hover {
    color: var(--menu-hover-color);
    transform: translateY(-2px) translateZ(0);
    background: transparent;
}

.bilingual-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--menu-hover-color);
    transition: width 0.3s ease;
}

.bilingual-menu .nav-link:hover::after {
    width: 100%;
}

.nav-en {
    font-size: var(--menu-en-font-size);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: normal;
}

.nav-ja {
    font-size: var(--menu-ja-font-size);
    font-weight: 500;
}

/* モバイルメニュー内の電話番号 */
.mobile-phone-container {
    display: none;
}

/* レスポンシブ対応: タブレット（768px以下） */
@media (max-width: 768px) {
    .header-top-inner {
        padding: 0 20px;
    }

    /* スクロール時のレイアウト調整 */
    .bilingual-header.scrolled .bilingual-nav .nav-inner {
        padding-left: 180px;
    }

    /* 電話番号の調整 */
    .phone-blocks {
        flex-direction: column;
        gap: 12px;
    }

    .phone-number {
        font-size: 16px;
    }

    .phone-subtitle {
        font-size: 10px;
    }

    /* メニューのgap調整 */
    .bilingual-menu {
        gap: 25px;
    }

    .bilingual-menu .nav-link {
        padding: 15px 8px;
    }

    /* タブレットでもCSS変数を使用（固定値で上書きしない） */
}

/* レスポンシブ対応: スマートフォン（480px以下） */
@media (max-width: 480px) {
    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: relative;
    }

    /* ロゴを左上に配置 */
    .header-left {
        width: 100%;
    }

    .bilingual-header .logo-image {
        height: 40px;
    }

    /* スクロール時: さらに縮小 */
    .bilingual-header.scrolled .logo-image {
        height: 35px;
    }

    .logo-subtitle {
        font-size: 9px;
    }

    /* スクロール時: ヘッダートップのパディング調整 */
    .bilingual-header.scrolled .header-top {
        padding: 5px 0;
    }

    .bilingual-header.scrolled .header-top-inner {
        position: relative;
        padding: 0 20px;
    }

    /* 電話番号は非表示（メインのみハンバーガーメニュー内） */
    .header-right {
        display: none;
    }

    /* ハンバーガーメニューを表示（モバイルのみ） */
    .bilingual-header .nav-toggle-label {
        display: flex;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1001;
        cursor: pointer;
    }

    /* 閉じるボタンを表示 */
    .bilingual-header .nav-close-button {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .bilingual-header .nav-close-button i {
        color: #ffffff;
        font-size: 24px;
    }

    .bilingual-header .nav-close-button:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* モバイルメニュー */
    .bilingual-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--secondary-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        padding: 70px 20px 30px;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-toggle:checked ~ .bilingual-nav {
        display: block;
    }

    .bilingual-nav .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .bilingual-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .bilingual-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bilingual-menu .nav-link {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        width: 100%;
    }

    .bilingual-menu .nav-link::after {
        display: none;
    }

    .nav-en {
        font-size: 10px;
        opacity: 0.6;
        margin-bottom: 4px;
    }

    .nav-ja {
        font-size: 16px;
    }

    /* モバイルメニュー内の電話番号を表示 */
    .mobile-phone-container {
        display: block;
        margin-top: 30px;
        width: 100%;
    }

    .mobile-phone-item {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        text-align: right;
    }

    .mobile-phone-number {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        font-size: 18px;
        font-weight: bold;
        color: #ffffff;
        text-decoration: none;
    }

    .mobile-phone-number i {
        color: var(--menu-hover-color);
        font-size: 16px;
    }

    .mobile-phone-desc {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        margin-top: 5px;
        text-align: right;
    }

    /* 2カラムレイアウトのモバイル対応 */
    .header-right {
        display: none;
    }

    .header-left {
        width: 100%;
    }
}

/* ============================================
   Header Flicker Fix (ヘッダー震え防止)
   ============================================ */

/* GPU加速とバックフェイス非表示で震えを防止 */
.site-header,
.bilingual-header,
.header-top,
.header-top-inner,
.header-right,
.header-left,
.phone-blocks,
.phone-block,
.phone-number,
.bilingual-nav,
.nav-inner,
.bilingual-menu,
.nav-item,
.nav-link,
.nav-en,
.nav-ja,
.btn,
.cast-card,
.diary-card,
.page-top-button {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 電話番号のホバー効果を最適化 */
.phone-number {
    transition: opacity 0.3s ease, color 0.3s ease;
}

.phone-number:hover {
    opacity: 0.9;
}

/* メニュー項目のホバー効果を最適化 */
.bilingual-menu .nav-link {
    will-change: transform;
}

.bilingual-menu .nav-link:hover {
    transform: translateY(-2px) translateZ(0);
}

/* ボタンのホバー効果を最適化 */
.btn {
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px) translateZ(0);
}

/* キャストカードのホバー効果を最適化 */
.cast-card {
    will-change: transform;
}

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

/* 日記カードのホバー効果を最適化 */
.diary-card {
    will-change: transform;
}

.diary-card:hover {
    transform: translateY(-5px) translateZ(0);
}

/* ページトップボタンのホバー効果を最適化 */
.page-top-button {
    will-change: transform;
}

.page-top-button:hover {
    transform: translateY(-3px) translateZ(0);
}

/* スクロール時のヘッダー遷移を滑らかに */
.bilingual-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bilingual-header.scrolled {
    transform: translateZ(0);
}

/* サブタイトルバーの遷移を最適化 */
.header-subtitle-bar {
    will-change: max-height, padding, opacity;
    transform: translateZ(0);
}

/* ロゴの遷移を最適化 */
.logo-image,
.logo-subtitle {
    will-change: height, max-height, opacity;
    transform: translateZ(0);
}
