/*
 * page-profile.css
 * profile.php専用のスタイル
 * 作成日: 2026-01-29
 */

/* ========================================
   料金カード
   ======================================== */
.price-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}
.price-card-header {
    background: linear-gradient(90deg, #FF7B93 0%, #FF9190 50%, #FFA98B 100%);
    color: #fff;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: bold;
}
.price-card-header small {
    font-size: 11px;
    opacity: 0.9;
    margin-left: 6px;
}
.price-card-body {
    padding: 0;
}
.price-card-body .table {
    margin-bottom: 0;
}
.price-card-body .table td,
.price-card-body .table th {
    padding: 10px 14px;
    border-color: #f0f0f0;
    vertical-align: middle;
}
.price-card-body .table tr:last-child td {
    border-bottom: none;
}
.price-card-body .table thead tr {
    background: #f8f9fa;
}
.price-card-footer {
    padding: 10px 14px;
    font-size: 12px;
    color: #888;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}
.price-card-footer .trophy {
    color: #FFD700;
}
.course-desc {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}
@media (max-width: 767px) {
    .price-card-header {
        padding: 12px 14px;
        font-size: 14px;
    }
    .price-card-body .table td,
    .price-card-body .table th {
        padding: 8px 10px;
        font-size: 12px;
    }
    .course-desc {
        font-size: 10px;
    }
}
/* スマホ版のみ：ヘッダースペーサーを非表示にして上部からキャスト表示 */
@media (max-width: 767px) {
    .header-spacer {
        display: none !important;
    }
}

/* ========================================
   プロフィールヒーロー動画
   ======================================== */
.profile-hero-video {
    position: relative;
    width: 100%;
    background: #000;
}
.video-hero-container {
    position: relative;
    width: 100%;
}
.video-hero-container .loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.video-hero-container .loading-animation .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.video-hero-container .loading-animation p {
    color: #fff;
    margin-top: 15px;
    font-size: 16px;
}
.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   動画優先セクション
   ======================================== */
.video-priority-section {
    margin-bottom: 20px;
}
.video-priority-section .video-container,
.video-container {
    position: relative;
}
.video-priority-section .loading-animation,
.loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.video-priority-section .loading-animation .spinner,
.loading-animation .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.video-priority-section .loading-animation p,
.loading-animation p {
    color: #fff;
    margin-top: 10px;
    font-size: 14px;
}
.video-priority-section .video-content video,
.video-content video {
    position: relative;
    z-index: 1;
}

/* ========================================
   パネル写真セクション
   ======================================== */
.panel-photo-section {
    margin-bottom: 20px;
}
.swiper-container-panel {
    width: 100%;
}
.swiper-container-panel .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   写メ日記上部動画セクション
   ======================================== */
.video-above-diary-section {
    margin-bottom: 20px;
}
.video-above-diary-section .video-container {
    position: relative;
}
.video-above-diary-section .loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.video-above-diary-section .loading-animation .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.video-above-diary-section .loading-animation p {
    color: #fff;
    margin-top: 10px;
    font-size: 14px;
}
.video-above-diary-section .video-content video {
    position: relative;
    z-index: 1;
}

/* PC版 */
.video-above-diary-section-pc {
    margin-bottom: 20px;
}
.video-above-diary-section-pc .video-container {
    position: relative;
}
.video-above-diary-section-pc .loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.video-above-diary-section-pc .loading-animation .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.video-above-diary-section-pc .loading-animation p {
    color: #fff;
    margin-top: 10px;
    font-size: 12px;
}
.video-above-diary-section-pc .video-content video {
    position: relative;
    z-index: 1;
}

/* ========================================
   スマホ版予約スケジュール
   ======================================== */
.sp-schedule-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}
.sp-schedule-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.sp-schedule-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.sp-schedule-time-badge i {
    color: #666;
}
.sp-schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.sp-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 6px;
    text-decoration: none;
    min-height: 55px;
    border: 1px solid transparent;
}
.sp-slot-available {
    background: #fff8e6;
    border-color: #f0c040;
    color: #333;
}
.sp-slot-available:hover,
.sp-slot-available:active {
    background: #fff0c0;
    text-decoration: none;
    color: #333;
}
.sp-slot-reserved {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}
.sp-slot-myreserve {
    background: #ffe6ea;
    border-color: #ff8599;
    color: #c00;
}
.sp-slot-myreserve:hover,
.sp-slot-myreserve:active {
    text-decoration: none;
    color: #c00;
}
.sp-slot-time {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
}
.sp-slot-icon {
    font-size: 18px;
    margin-top: 2px;
    color: #e6a000;
}
.sp-slot-status {
    font-size: 10px;
    margin-top: 2px;
}
@media (max-width: 360px) {
    .sp-schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sp-slot {
        padding: 8px 4px;
        min-height: 50px;
    }
    .sp-slot-time {
        font-size: 12px;
    }
}

/* 予約スケジュール 予約中・予約済の時間表示調整 */
.sp-slot-reserved .sp-slot-time,
.sp-slot-myreserve .sp-slot-time {
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
}
.sp-slot-reserved,
.sp-slot-myreserve {
    padding: 8px 2px;
}

/* ========================================
   週間出勤表 スマホ版スタイル
   ======================================== */
@media (max-width: 767px) {
    .week_table {
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
    }
    .week_table thead tr {
        background: #f8f8f8;
    }
    .week_table thead th {
        padding: 10px 4px;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #eee;
        color: #333;
    }
    .week_table thead th:last-child {
        border-right: none;
    }
    .week_table thead th.sat {
        color: #0066cc;
        background: #f0f8ff;
    }
    .week_table thead th.sun {
        color: #cc0000;
        background: #fff5f5;
    }
    .week_table tbody td {
        padding: 8px 4px;
        text-align: center;
        vertical-align: middle;
        border-bottom: 1px solid #eee;
        border-right: 1px solid #eee;
        font-size: 11px;
        background: #fff;
    }
    .week_table tbody td:last-child {
        border-right: none;
    }
    .week_table tbody tr:last-child td {
        border-bottom: none;
    }
    .week_table tbody td small {
        font-size: 11px;
        line-height: 1.3;
        display: block;
    }
    .week_table tbody td a.btn,
    .week_table tbody td button.btn {
        font-size: 10px;
        padding: 4px 6px;
        border-radius: 4px;
    }
    .week_table thead {
        width: 28%;
    }
    .week_table tbody {
        width: 72%;
    }
    .week_table tbody tr {
        width: 50%;
    }
    .week_table tbody tr:last-child {
        border-right: none;
    }

    /* 拡張出勤表のスタイル */
    #fullSchedule .table {
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    #fullSchedule .table thead th {
        background: #f8f8f8;
        padding: 10px 8px;
        font-size: 12px;
        border-bottom: 1px solid #ddd;
    }
    #fullSchedule .table tbody td {
        padding: 10px 8px;
        font-size: 12px;
        vertical-align: middle;
    }
    #fullSchedule .table tbody td.sat,
    #fullSchedule .table tbody tr td:first-child.sat {
        color: #0066cc;
    }
    #fullSchedule .table tbody td.sun,
    #fullSchedule .table tbody tr td:first-child.sun {
        color: #cc0000;
    }
    #fullSchedule h4 {
        font-size: 14px;
        padding: 12px;
        margin: 0;
        background: #f8f8f8;
        border: 1px solid #ddd;
        border-bottom: none;
        border-radius: 8px 8px 0 0;
    }

    /* 続きを見るボタン */
    #showFullSchedule {
        border: 1px solid #ddd;
        background: #fff;
        color: #333;
        padding: 10px 20px;
        font-size: 13px;
    }
    #showFullSchedule:hover,
    #showFullSchedule:active {
        background: #f5f5f5;
    }

    /* 予約OKボタン スマホ版スタイル */
    .week_table .btn-success.action-xs,
    #fullSchedule .btn-success {
        background: linear-gradient(to bottom, #fff8e6 0%, #fff0c0 100%);
        border: 1px solid #e6a000;
        color: #b37400;
        font-weight: bold;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 4px;
        text-shadow: none;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    .week_table .btn-success.action-xs:hover,
    .week_table .btn-success.action-xs:active,
    #fullSchedule .btn-success:hover,
    #fullSchedule .btn-success:active {
        background: linear-gradient(to bottom, #fff0c0 0%, #ffe699 100%);
        border-color: #cc8800;
        color: #995c00;
    }

    /* 受付終了ボタン */
    .week_table .btn-danger.action-xs,
    #fullSchedule .btn-danger {
        background: #f5f5f5;
        border: 1px solid #ccc;
        color: #999;
        font-weight: normal;
        padding: 6px 10px;
        font-size: 10px;
        border-radius: 4px;
        text-shadow: none;
        box-shadow: none;
    }

    /* プロフィール吹き出し スマホ版スタイル */
    .question_Box {
        margin-bottom: 12px;
    }
    .question_image figure img,
    .answer_image figure img {
        width: 45px;
        height: 45px;
        border: 2px solid #eee;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .arrow_question {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.5;
        color: #555;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .arrow_question:after {
        border-right-color: #fff;
    }
    .arrow_question:before {
        border-right-color: #ddd;
    }
}

/* プロフィール吹き出し キャスト回答（PC・スマホ共通） */
.arrow_answer {
    background: #fff0f3;
    border: 1px solid #ffb3c1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.arrow_answer:after {
    border-left-color: #fff0f3;
}
.arrow_answer:before {
    border-left-color: #ffb3c1;
}

/* ========================================
   スマホ版専用スタイル
   ======================================== */
@media (max-width: 767px) {
    /* ヘッダースペーサーを非表示（ヒーロー画像を最上部に配置するため） */
    .header-spacer {
        display: none;
    }

    /* プロフィール写真セクションを画面最上部に配置 */
    .profile-hero-section {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
        z-index: 1;
    }

    .profile-hero-image {
        position: relative;
        width: 100%;
        height: 100vh;
        max-height: 600px;
        overflow: hidden;
    }

    .swiper-container-hero {
        width: 100%;
        height: 100%;
    }

    .swiper-container-hero .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* メインコンテンツを写真の直後に配置 */
    .main,
    .navbar-custom + .main {
        position: relative;
        margin-top: 0 !important;
        padding-top: 0 !important;
        z-index: 2;
        background: #fff;
    }

    /* スクロールインジケーター */
    .scroll-indicator {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        opacity: 0.8;
        animation: fadeInOut 2s ease-in-out infinite;
    }

    .scroll-arrow {
        text-align: center;
        color: #fff;
        font-size: 32px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        animation: bounce 2s ease-in-out infinite;
    }

    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(10px);
        }
    }

    @keyframes fadeInOut {
        0%, 100% {
            opacity: 0.5;
        }
        50% {
            opacity: 1;
        }
    }

    /* スクロール時にインジケーターを非表示 */
    .scroll-indicator.hidden {
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    /* navbarをスクロールで表示 */
    .navbar-custom {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: transparent !important;
        box-shadow: none;
        transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    }

    /* 初期状態：navbarのコンテンツを非表示 */
    .navbar-custom .navbar-header,
    .navbar-custom .navbar-collapse {
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    /* スクロール時：navbarを表示 */
    .navbar-custom.navbar-visible {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-custom.navbar-visible .navbar-header,
    .navbar-custom.navbar-visible .navbar-collapse {
        opacity: 1;
    }
}

/* ========================================
   PC版スタイル
   ======================================== */
@media (min-width: 768px) {
    /* スマホ版専用のヒーロー画像セクションを非表示 */
    .profile-hero-section {
        display: none;
    }

    /* PC版では.mainのスタイルをリセット */
    .main,
    .navbar-custom + .main {
        padding-top: 0 !important;
    }

    /* PC版では.navbar-customは通常通り */
    .navbar-custom {
        background: #fff !important;
    }

    .navbar-custom .navbar-header,
    .navbar-custom .navbar-collapse {
        opacity: 1 !important;
    }

    /* 写メ日記グリッドレイアウト - PC版 */
    .photo-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .photo-grid-item {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .photo-grid-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .photo-grid-link {
        display: block;
        position: relative;
        text-decoration: none;
    }

    .photo-grid-image {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        background: #f0f0f0;
        overflow: hidden;
    }

    .photo-grid-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .photo-grid-item:hover .photo-grid-image img {
        transform: scale(1.05);
    }
}

/* ========================================
   写メ日記グリッドレイアウト - スマホ版
   ======================================== */
@media (max-width: 767px) {
    .photo-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    .photo-grid-item {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .photo-grid-link {
        display: block;
        position: relative;
        text-decoration: none;
    }

    .photo-grid-image {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        background: #f0f0f0;
        overflow: hidden;
    }

    .photo-grid-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* ========================================
   会員限定写メグリッド
   ======================================== */
.photo-grid-locked .photo-grid-image {
    position: relative;
}

.photo-grid-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.photo-grid-lock-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.photo-grid-lock-overlay span {
    font-size: 12px;
    font-weight: bold;
}

/* ========================================
   カスタムモーダル（Bootstrap非依存）
   ======================================== */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal-overlay.is-active {
    display: flex;
    opacity: 1;
}

.photo-modal-container {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.photo-modal-overlay.is-active .photo-modal-container {
    transform: scale(1);
}

.photo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.photo-modal-header-member {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.photo-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.photo-modal-title i {
    margin-right: 8px;
}

.photo-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-modal-body {
    padding: 24px 20px;
}

.photo-modal-form-group {
    margin-bottom: 12px;
}

.photo-modal-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.photo-modal-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.photo-modal-input::placeholder {
    color: #aaa;
}

.photo-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-btn i {
    margin-right: 6px;
}

.photo-modal-btn-login {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    padding: 14px 24px;
}

.photo-modal-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.photo-modal-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.photo-modal-divider::before,
.photo-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.photo-modal-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

.photo-modal-btn-register {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff !important;
    padding: 14px 24px;
}

.photo-modal-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4);
    color: #fff;
    text-decoration: none;
}

.photo-modal-login-prompt {
    text-align: center;
}

.photo-modal-login-prompt p {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
}

.photo-modal-login-form {
    margin-bottom: 0;
}

/* ========================================
   戻るボタン（PWA用・スマホのみ）
   ======================================== */
.profile-back-btn {
    position: fixed;
    top: 55px;
    left: 15px;
    z-index: 1001;
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}
/* PWA standalone モード対応 */
@supports(padding-top: env(safe-area-inset-top)) {
    .profile-back-btn {
        top: calc(55px + env(safe-area-inset-top));
    }
}
@media all and (display-mode: standalone) {
    .profile-back-btn {
        top: calc(55px + env(safe-area-inset-top, 20px));
    }
}
.profile-back-btn:hover,
.profile-back-btn:active {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-decoration: none;
}
.profile-back-btn i {
    font-size: 14px;
}
.profile-back-btn.visible {
    display: flex;
    opacity: 1;
}
@media (min-width: 768px) {
    .profile-back-btn {
        display: none !important;
    }
}

/* ========================================
   クチコミ投稿モーダル（box_post.php用）
   ======================================== */
.profile-review-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.profile-review-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.profile-review-modal-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: profileReviewSlideIn 0.3s ease;
}
@keyframes profileReviewSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.profile-review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(90deg, #FF7B93 0%, #FF9190 50%, #FFA98B 100%);
    border-radius: 16px 16px 0 0;
}
.profile-review-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}
.profile-review-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-review-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.profile-review-selected-cast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 123, 147, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #FF7B93;
}
.profile-review-selected-cast img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-review-selected-cast span {
    font-weight: 600;
    color: #FF7B93;
    font-size: 15px;
}
.profile-review-form-group {
    margin-bottom: 20px;
}
.profile-review-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}
.profile-review-required {
    background: #FF7B93;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.profile-review-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}
.profile-review-input:focus {
    outline: none;
    border-color: #FF7B93;
}
.profile-star-rating-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border-radius: 10px;
    border: 1px solid #ffe066;
}
.profile-star-rating {
    display: flex;
    gap: 6px;
}
.profile-star-rating .profile-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-star-rating .profile-star:hover,
.profile-star-rating .profile-star.hover {
    color: #ffc107;
    transform: scale(1.1);
}
.profile-star-rating .profile-star.active {
    color: #ffc107;
}
.profile-star-rating .profile-star.active i:before {
    content: "\f005";
}
.profile-star-rating-text {
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}
.profile-review-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    font-family: inherit;
}
.profile-review-textarea:focus {
    outline: none;
    border-color: #FF7B93;
}
.profile-textarea-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.profile-review-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #eee;
}
.profile-btn-review-cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.profile-btn-review-submit {
    padding: 10px 24px;
    border: none;
    background: linear-gradient(90deg, #FF7B93 0%, #FF9190 50%, #FFA98B 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-btn-review-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   クチコミカード（box_post.php用）
   ======================================== */
.profile-review-list {
    margin-top: 10px;
}
.profile-review-card {
    background: #fff !important;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.profile-review-card .review-content {
    padding: 20px;
}
.profile-review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.profile-review-card .reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-review-card .reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.profile-review-card .reviewer-name::before {
    content: "\f007";
    font-family: "FontAwesome";
    color: var(--theme-color, #e91e63);
    margin-right: 8px;
}
.profile-review-card .review-date {
    font-size: 12px;
    color: #999;
}
.profile-review-card .review-stars {
    font-size: 18px;
}
.profile-review-card .review-stars .star {
    color: #ffc107;
}
.profile-review-card .review-stars .star-off {
    color: #ddd;
}
.profile-review-card .review-text p {
    margin: 0;
    color: #444;
    line-height: 1.8;
    font-size: 14px;
}
@media (max-width: 767px) {
    .profile-review-card {
        border-radius: 12px;
    }
    .profile-review-card .review-content {
        padding: 15px;
    }
    .profile-review-card .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .profile-review-card .reviewer-name {
        font-size: 14px;
    }
    .profile-review-card .review-stars {
        font-size: 16px;
    }
    .profile-review-card .review-text p {
        font-size: 13px;
    }
}
