/* プロフィール詳細ページのスタイル */
.profile-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.profile-id {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.profile-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-online {
    background-color: #4CAF50;
    color: white;
}

.status-offline {
    background-color: #f44336;
    color: white;
}

.status-away {
    background-color: #FFC107;
    color: #333;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-tabs {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 14px;
    color: #333;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto 20px;
    }

    .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-buttons {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 全体のコンテナ */
.container {
    margin: 0 auto;
    font-family: "Helvetica", "Arial", sans-serif;
    color: #333;
    /* float要素を含む親要素の高さ崩れ防止用（clearfix） */
    overflow: auto;
}

.clear{
    clear: both;
}


/* プロフィール画像エリア */
.receiver_name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    padding: 10px;
    color: #fff;
}


.image_area {
    float: left;             /* 左寄せ */
    width: 320px;            /* 横幅を20px拡大（ボーダーとシャドウのためのスペース確保） */
    margin-right: 20px;      /* 右側に余白 */
    text-align: center;      /* 中央寄せ */
    /* background-image moved to css.php */
    padding: 0;
    box-sizing: border-box;  /* padding込みでwidthを計算 */
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;      /* 追加：ビデオ可バッジのための相対位置 */
}

@media screen and (max-width: 768px) {
    .image_area {
        width: 100%;
    }
}

/* プロフィール画像 */
.image_area img {
    max-width: 90%;          /* ボーダーとシャドウのスペースを考慮して90%に調整 */
    height: auto;
    border-radius: 50%;      /* 丸く切り抜き */
    border: 1px solid transparent; /* デフォルトは透明ボーダー、性別ごとに上書き */
}

/* 性別による背景色の変更 */
.receiver_name.gender_1 {  /* 男性 */
    background: linear-gradient(135deg, rgba(0, 84, 147, 0.8), rgba(0, 48, 99, 0.8));
}

.receiver_name.gender_2 {  /* 女性 */
    background: linear-gradient(135deg, rgba(219, 112, 147, 0.8), rgba(188, 71, 123, 0.8));
}

.receiver_name.gender_0 {  /* 中立 */
    background: linear-gradient(135deg, rgba(105, 105, 105, 0.8), rgba(70, 70, 70, 0.8));
}

img.gender_1 {  /* 男性 */
    border: 9px solid transparent; /* 太い透明ボーダー */
    background: 
        radial-gradient(circle, rgba(30, 144, 255, 0.6) 0%, rgba(30, 144, 255, 0.4) 70%, rgba(30, 144, 255, 0.2) 100%), /* 内側のマット */
        linear-gradient(45deg, 
            rgba(30, 144, 255, 0.4) 0%, 
            rgba(135, 206, 255, 1) 25%,    /* 明るい水色 */
            rgba(255, 255, 255, 1) 50%,    /* 中央で白く輝く */
            rgba(135, 206, 255, 1) 75%,    /* 明るい水色 */
            rgba(30, 144, 255, 0.4) 100%); /* 輝くグラデーションボーダー */
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.8), 
                0 0 25px rgba(30, 144, 255, 0.4); /* ぼかしのある水色シャドウ */
}

img.gender_2 {  /* 女性 */
    border: 9px solid transparent; /* 太い透明ボーダー */
    background: 
        radial-gradient(circle, rgba(255, 105, 180, 0.6) 0%, rgba(255, 105, 180, 0.4) 70%, rgba(255, 105, 180, 0.2) 100%), /* 内側のマット */
        linear-gradient(45deg, 
            rgba(255, 105, 180, 0.4) 0%, 
            rgba(255, 182, 193, 1) 25%,    /* 明るいピンク */
            rgba(255, 255, 255, 1) 50%,    /* 中央で白く輝く */
            rgba(255, 182, 193, 1) 75%,    /* 明るいピンク */
            rgba(255, 105, 180, 0.4) 100%); /* 輝くグラデーションボーダー */
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8), 
                0 0 25px rgba(255, 105, 180, 0.4); /* ぼかしのあるピンクシャドウ */
}

img.gender_0 {  /* 中立 */
    border: 9px solid transparent; /* 太い透明ボーダー */
    background: 
        radial-gradient(circle, rgba(169, 169, 169, 0.6) 0%, rgba(169, 169, 169, 0.4) 70%, rgba(169, 169, 169, 0.2) 100%), /* 内側のマット */
        linear-gradient(45deg, 
            rgba(169, 169, 169, 0.4) 0%, 
            rgba(211, 211, 211, 1) 25%,    /* 明るいグレー */
            rgba(255, 255, 255, 1) 50%,    /* 中央で白く輝く */
            rgba(211, 211, 211, 1) 75%,    /* 明るいグレー */
            rgba(169, 169, 169, 0.4) 100%); /* 輝くグラデーションボーダー */
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(169, 169, 169, 0.8), 
                0 0 25px rgba(169, 169, 169, 0.4); /* ぼかしのあるグレーシャドウ */
}


.receiver_img{
    padding: 15px 10px;      /* 上下パディングを追加してシャドウとボーダーのスペースを確保 */
    position: relative;
    display: inline-block; /* 画像のサイズに合わせる場合 */
}
.history {
    position: absolute;
    bottom: 5px;  /* 画像の下端から5pxの余白 */
    left: 50%;    /* 画像の中央に配置 */
    transform: translateX(-50%); /* 要素自体を中央に移動 */
    background: rgba(0, 0, 0, 0.5); /* 任意：背景を半透明にして視認性UP */
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: nowrap; /* 改行を防ぎ、1行で表示 */
}
.history span{
    font-size: 1.8em;
    padding-left: 0.5em;
}


/* 予約受付中などの表示 */
#receiver_status_area {
    margin: 0;
}

/* .available クラスを持つ要素を含む #receiver_status_area のスタイル */
#receiver_status_area:has(.available) {
    cursor: pointer;
}

/* ホバー効果も追加 */
#receiver_status_area:has(.available):hover {
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(0, 0, 255, 0.5);
}

/* クリック効果も追加するとより良い */
#receiver_status_area:has(.available):active {
    transform: scale(0.98);
}

#receiver_status_area em {
    font-style: normal; /* 斜体を解除 */
    font-weight: bold; /* 太字に設定 */
    font-size: 1.4em; /* 2回り大きく (1.4倍) */
    display: inline-block; /* インラインブロック要素として表示 */
    line-height: 1.2; /* 行間を少し詰める */
    color: inherit; /* 親要素の色を継承 */
}

.receiver_status {
    display: block;
    padding: 1em;
}

.available{
    color:#fff;
    background-color: #44f;
}
.working{
    color:#fff;
    background-color: #c00;
}
.away{
    color:#fff;
    background-color: #999;
}


/* タグ表示 */
.tag1_area, .tag2_area {
    margin-bottom: 40px;
}

/* m_tag1が空の場合の余白調整 */
.tag1_area.no-margin {
    margin-bottom: 0;
}

/* タグ共通スタイル */
.tag1_area span, .tag2_area span {
    display: inline-block;
    margin: 4px 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* タグ1 */
.tag1_area span {
    color: #fff;
}

/* タグ2 */
.tag2_area span {
    position: relative;
    color: #000;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.7); /* 白70%の透過マット */
    border: 1px solid rgba(255, 255, 255, 0.6); /* 白のボーダー */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tag2_area span:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.color_0 {background-color: #2c3e50;}
.color_1 {background-color: #8e44ad;}
.color_2 {background-color: #27ae60;}
.color_3 {background-color: #c0392b;}
.color_4 {background-color: #d35400;}
.color_5 {background-color: #16a085;}
.color_6 {background-color: #34495e;}


/* キャッチコピーエリア */
.catch_copy_area {
    border-radius: 12px;
    margin: 15px 0 20px 0;
    padding: 12px 20px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

/* image_area内でのキャッチコピー特別調整 */
.image_area .catch_copy_area {
    margin: 5px auto 20px auto;
    width: calc(100% - 20px); /* receiver_imgのpadding分（左右10pxずつ）を除いた幅に調整 */
    max-width: 280px; /* デスクトップでの最大幅をreceiver_imgエリアと同じに */
}

.catch_copy_text {
    /* グラデーション効果を削除して、シンプルで見やすい白文字に変更 */
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    position: relative;
    /* 強力なテキストシャドウで可読性と視覚的インパクトを向上 */
    text-shadow: 
        /* 複数の黒いシャドウで強力なアウトライン効果 */
        -2px -2px 0 rgba(0, 0, 0, 1),
        2px -2px 0 rgba(0, 0, 0, 1),
        -2px 2px 0 rgba(0, 0, 0, 1),
        2px 2px 0 rgba(0, 0, 0, 1),
        -3px -3px 0 rgba(0, 0, 0, 0.8),
        3px -3px 0 rgba(0, 0, 0, 0.8),
        -3px 3px 0 rgba(0, 0, 0, 0.8),
        3px 3px 0 rgba(0, 0, 0, 0.8),
        /* 大きなぼかしシャドウで深度と存在感を演出 */
        0 0 15px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.6); /* 下方向への大きなドロップシャドウ */
}

/* 削除：グラデーション効果を使わないため不要 */

/* ホバー効果とトランジションを削除（表示専用のため） */

/* プロフィール本文エリア */
.profile_text_area {
    background-color: rgba(255, 255, 255, 0.7); /* 白70% */
    border: 1px solid #ddd;
    margin: 40px 0;
    padding: 20px;
    box-sizing: border-box;
    line-height: 1.7;
    border-radius: 4px;
}

/* SNSエリア */
.sns_area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.sns_area p {
    margin: 0;
    flex: 0 0 auto;
}

.sns_area a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #4a5fd9 0%, #6f2da8 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 12px;
    transition: 0.3s;
    width: auto;
    min-width: 80px;
    height: 50px;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
}

.sns_area a:hover {
    background: linear-gradient(135deg, #3a4fc9 0%, #5f1d98 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* アイコン画像を使用する場合のスタイル */
.sns_area a.sns-with-icon {
    background: transparent;
    padding: 0;
    min-width: 70px;
    min-height: 70px;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none;
}

.sns_area a.sns-with-icon:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: none;
    opacity: 0.8;
    border: none;
}

.sns_area .sns-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 0;
}

.mobile_clear{
    display: none;
    visibility: hidden;
}

h4 {
    background: linear-gradient(135deg, 
                rgba(106, 10, 173, 0.9) 0%, 
                rgba(106, 10, 173, 0.7) 50%, 
                rgba(106, 10, 173, 0.3) 100%);
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    margin: 0 0 15px 0;
    border-radius: 6px;
    text-align: left;
    box-sizing: border-box;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ヘッダーに光沢効果を追加 */
h4::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                       rgba(255, 255, 255, 0) 0%, 
                       rgba(255, 255, 255, 0.3) 50%, 
                       rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

h4:hover::after {
    left: 100%;
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
    .mobile_clear{
        display: block;
    }
    
    .tag1_area, .tag2_area {
        float: none;
        clear: none;
        width: auto;
        margin-left: 0;
    }
    
    h4 {
        margin: 0 0 15px 0;
        font-size: 1.1em;
        padding: 10px 15px;
    }

    .sns_area {
        flex-direction: row;
        justify-content: center;
    }

    .sns_area a {
        width: auto;
        min-width: 70px;
        height: 45px;
        padding: 6px 12px;
        font-size: 0.8em;
        line-height: 1.2;
        border-radius: 10px;
        white-space: nowrap;
    }
    
    /* スマートフォン表示でのアイコンサイズ調整 */
    .sns_area a.sns-with-icon {
        background: transparent;
        min-width: 55px;
        min-height: 55px;
        width: 55px;
        height: 55px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: none;
    }
    
    .sns_area .sns-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
    }
    
    /* キャッチコピーエリアのモバイル調整 */
    .catch_copy_area {
        margin: 10px 0 15px 0;
        padding: 10px 15px;
        border-radius: 10px;
    }
    
    /* image_area内でのキャッチコピーモバイル調整 */
    .image_area .catch_copy_area {
        margin: 0px auto 15px auto;
        width: calc(100% - 20px); /* receiver_imgのpadding分を除いた幅 */
        max-width: none; /* モバイルでは最大幅制限を解除 */
    }
    
    .catch_copy_text {
        font-size: 16px;
        line-height: 1.3;
        font-weight: 800;
        /* モバイルでも強力なテキストシャドウ効果 */
        text-shadow: 
            -1px -1px 0 rgba(0, 0, 0, 1),
            1px -1px 0 rgba(0, 0, 0, 1),
            -1px 1px 0 rgba(0, 0, 0, 1),
            1px 1px 0 rgba(0, 0, 0, 1),
            -2px -2px 0 rgba(0, 0, 0, 0.8),
            2px -2px 0 rgba(0, 0, 0, 0.8),
            -2px 2px 0 rgba(0, 0, 0, 0.8),
            2px 2px 0 rgba(0, 0, 0, 0.8),
            /* モバイル版でも大きなシャドウで存在感を演出 */
            0 0 12px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(0, 0, 0, 0.7),
            0 0 28px rgba(0, 0, 0, 0.5),
            0 6px 15px rgba(0, 0, 0, 0.6); /* 下方向への大きなドロップシャドウ */
    }
}

/* スケジュールテーブルのスタイル */
.schedule_area {
    margin: 20px 0 30px 0;
    clear: both;
}

/* スケジュール見出しのマージン調整 */
.schedule_area h4 {
    margin: 60px 0 20px;
    margin-bottom: 10px; /* 見出しとテーブルの間のマージン調整 */
}

/* 追加: スケジュール注釈コンテナ（中央寄せ用） */
.schedule-notice-container {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* スケジュール注釈スタイル */
.schedule-notice {
    display: inline-block; /* 背景をテキスト幅に合わせる */
    background-color: rgba(0, 0, 0, 0.6); /* 半透明の黒 */
    padding: 6px 10px; /* パディングを少し調整 */
    border-radius: 4px;
}

.schedule-notice small {
    color: #cccccc; /* 明るめのグレー */
    font-size: 0.85em;
}

.schedule_table_container {
    overflow-x: auto;
    overflow-y: auto;
    margin-bottom: 20px;
    max-height: 500px; /* スクロール可能な高さを設定 */
    width: 100%;
}

.schedule_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.7);
}

.schedule_table th, .schedule_table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* テーブルヘッダー全体を固定 */
.schedule_table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.schedule_table th {
    background-color: #666;
    color: white;
    position: sticky;
    top: 0;
    z-index: 5; /* 基本的なthのz-index */
}

.schedule_table th.sun {
    background-color: #f44336;
}

.schedule_table th.sat {
    background-color: #2196f3;
}

.schedule_table td.sun {
    background-color: #ffebee;
}

.schedule_table td.sat {
    background-color: #e3f2fd;
}

/* 左上の角のセルを固定（最前面に表示） */
.schedule_table thead tr th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 100; /* 最前面に表示 */
    background-color: #666;
}

/* 時刻列を固定（角のセルより下に表示） */
.schedule_table tbody .time-cell {
    background-color: #666;
    color: white;
    font-weight: bold;
    position: sticky;
    left: 0;
}

/* スマホ表示時の左上セル（時刻＼日付）を空にする */
@media screen and (max-width: 768px) {
    .schedule_table .corner-cell {
        font-size: 0;
        z-index: 100; /* 最前面に表示 */
    }
    .schedule_table .corner-cell::before {
        content: "";
        font-size: 0;
    }
}

.status-on {
    display: inline-block;
    padding: 3px 8px;
    /* background-color: #90ee90; 明るい緑 (LightGreen) */
    background-color: #006400; /* 暗く濃い緑 (DarkGreen) - 背景入れ替え */
    /* color: #333; 文字色を暗くして視認性向上 */
    color: white; /* 文字色を白に */
    border-radius: 4px;
    font-weight: bold;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.3); */ /* box-shadow削除 */
}

/* Add specific base color for clickable status-on */
.status-on.clickable {
    /* background-color: #90ee90; 明るい緑 (LightGreen) - 背景入れ替え */
    background: linear-gradient(to bottom, #a9f0a9, #7fdd7f); /* Light green gradient */
    /* color: #006400; 文字色を緑に */
    color: #005000; /* Dark green text for readability */
    /* text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7); 文字の影を白に */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); /* Subtle light top shadow for depth */
    border: 1px solid #6fcc6f; /* Slightly darker border */
    border-bottom: 2px solid #5aaa5a; /* Darker bottom border for 3D */
    border-right: 2px solid #5aaa5a; /* Darker right border for 3D */
    border-radius: 4px;
    padding: 4px 9px; /* Adjust padding slightly */
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    transition: all 0.15s ease; /* Adjusted transition */
}

.status-on.clickable,
.status-off.clickable {
    cursor: pointer;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; */ /* Transition moved to specific elements */
}

/* Common hover animation - REMOVED as it conflicts */
/* .status-on.clickable:hover,\n.status-off.clickable:hover {\\n    transform: translateY(-2px);\\n    box-shadow: 0 3px 5px rgba(0,0,0,0.4); \\n} */

/* Specific hover background for status-on */
.status-on.clickable:hover {
    /* background-color: #7fdd7f; ホバー時に少し濃い明るい緑 */
    background: linear-gradient(to bottom, #b3f3b3, #89e189); /* Slightly lighter gradient on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px); /* Lift slightly */
}

/* Active state for clickable status-on */
.status-on.clickable:active {
    background: linear-gradient(to top, #a9f0a9, #7fdd7f); /* Reverse gradient for pressed effect */
    border-bottom: 1px solid #5aaa5a;
    border-right: 1px solid #5aaa5a;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); /* Inset shadow for pressed effect */
    transform: translateY(1px); /* Press down */
    text-shadow: none; /* Remove text shadow when pressed */
}

.status-off {
    display: inline-block;
    padding: 3px 8px;
    background-color:rgb(237, 84, 184); /* ピング */
    color: white;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 0.8em; /* Reduce font size */
}

/* Specific hover background for status-off */
.status-off.clickable:hover {
    background-color: rgb(210, 60, 160); /* Darker pink */
}

.status-busy {
    display: inline-block;
    padding: 3px 8px;
    background-color: #c0392b; /* 深い赤色 */
    color: white;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.status-ended {
    display: inline-block;
    padding: 3px 8px;
    background-color: #7f8c8d; /* グレー */
    color: white;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.status-unavailable {
    display: inline-block;
    padding: 3px 8px;
    background-color: #95a5a6; /* 薄いグレー */
    color: white;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* NEW: 予約済みステータス */
.status-reserved {
    display: inline-block;
    padding: 3px 8px;
    background-color: #8e44ad; /* 紫系 */
    color: white;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 0.8em; /* Reduce font size */
}

/* NEW: 返信待ちステータス */
.status-pending {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f39c12; /* オレンジ系 */
    color: white;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 0.8em; /* Reduce font size */
}

/* ビデオ可バッジ */
.video-available-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 150, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;              /* 確実に前面に表示 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 性別による「ビデオ可」バッジの色変更 */
.video-available-badge.gender_1 {  /* 男性 */
    background: linear-gradient(135deg, rgba(0, 84, 147, 0.8), rgba(0, 48, 99, 0.8));
    box-shadow: 0 0 5px 2px rgba(30, 144, 255, 0.6);
}

.video-available-badge.gender_2 {  /* 女性 */
    background: linear-gradient(135deg, rgba(219, 112, 147, 0.8), rgba(188, 71, 123, 0.8));
    box-shadow: 0 0 5px 2px rgba(255, 105, 180, 0.6);
}

.video-available-badge.gender_0 {  /* 中立 */
    background: linear-gradient(135deg, rgba(105, 105, 105, 0.8), rgba(70, 70, 70, 0.8));
    box-shadow: 0 0 5px 2px rgba(169, 169, 169, 0.6);
}

/* 予約ボタンのスタイル */
.reservation-button {
    display: inline-block;
    width: 90%;
    margin: 10px auto;
    padding: 12px 0;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.reservation-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.reservation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.reservation-button:hover:before {
    left: 100%;
}

.reservation-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 性別によるボタンのカラー変更 */
.reservation-button.gender_1 {  /* 男性 */
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.reservation-button.gender_2 {  /* 女性 */
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.reservation-button.gender_0 {  /* 中立 */
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* 口コミを見るボタン */
.review-button {
    display: inline-block;
    width: 90%;
    margin: 10px auto;
    padding: 12px 0;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.review-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.review-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.review-button:hover:before {
    left: 100%;
}

.review-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 性別によるボタンのカラー変更 - ダークモード・ミステリアス（ティール系） */
.review-button.gender_1 {  /* 男性 */
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
}

.review-button.gender_2 {  /* 女性 */
    background: linear-gradient(135deg, #134e4a, #0d9488);
}

.review-button.gender_0 {  /* 中立 */
    background: linear-gradient(135deg, #1f2937, #4b5563);
}

/* カレンダーのスタイル */
.calendar-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #8B57D9; /* 紫色の背景に変更 */
    border-bottom: 1px solid #eaeaea;
}

.calendar-btn {
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: white; /* ボタンの色も白に変更 */
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* テキストに影を追加 */
}

.calendar-btn:hover {
    background-color: rgba(255, 255, 255, 0.2); /* ホバー時の背景色を半透明白に */
}

.current-month {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: white; /* 白色に変更 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* テキストに影を追加 */
}

.calendar {
    padding: 10px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.weekday.sun {
    color: #e74c3c;
}

.weekday.sat {
    color: #3498db;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    text-align: center;
}

.day:hover:not(.prev-month):not(.next-month) {
    background-color: #f1f1f1;
}

.day.prev-month, .day.next-month {
    color: #aaa;
    cursor: default;
}

.day.selected {
    background-color: #8B57D9;
    color: #FFFFFF !important;
    border-radius: 8px;
    font-weight: bold;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

.day.current {
    /* 本日のスタイルは通常のスタイルに戻す */
    border: 2px solid #e74c3c; /* 赤い枠線だけ追加して目立たせる */
    border-radius: 8px;
}

.day.sat {
    color: #3498db;
}

.day.sun {
    color: #e74c3c;
}
/* 時間選択のスタイル */
.time-selection {
    padding: 15px;
    border-top: 1px solid #eaeaea;
    background-color: #8B57D9; /* 紫色の背景に変更 */
}

.time-selection h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: white; /* 白色に変更 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* テキストに影を追加 */
    font-weight: bold;
}

/* 時間選択用のプルダウンスタイル */
.time-select-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 80%;
    max-width: 400px;
}

.select-group label {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-size: 1.1em;
}

.time-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: 500;
}

.time-select:hover {
    background-color: white;
    border-color: white;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.time-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
    .select-group {
        width: 90%;
    }
    
    .time-select {
        padding: 10px;
        font-size: 0.95em;
    }
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.time-slot.available {
    border-color: #2ecc71;
    color: #2ecc71;
}

.time-slot.available:hover {
    background-color: #2ecc71;
    color: white;
}

.time-slot:not(.available) {
    color: #aaa;
    cursor: not-allowed;
}

/* 予約アクションのスタイル */
.reservation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 15px 30px;
}

.reservation-disclaimer {
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
    padding: 0 10px;
    color: #ff6b6b;
    font-size: 0.9em;
}

/* 予約モーダル内の予約ボタンスタイル改善 */
#reservationsModal .reserve-btn {
    background-color: #ff6600 !important; /* オレンジ色に変更 */
    color: white !important;
    border: none !important;
    padding: 15px 40px !important; /* 大きめのパディングでボタンを大きく */
    font-size: 1.2rem !important; /* フォントサイズを大きく */
    font-weight: bold !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4) !important; /* オレンジ色の影 */
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    width: 80% !important; /* 幅を広げる */
    max-width: 400px !important;
}

#reservationsModal .reserve-btn:hover {
    background-color: #ff8533 !important; /* ホバー時は少し明るく */
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.5) !important;
    transform: translateY(-3px) !important;
}

#reservationsModal .reserve-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(255, 102, 0, 0.3) !important;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    #reservationsModal .reserve-btn {
        padding: 12px 30px !important; /* サイズを少し小さく調整するが、十分な大きさを維持 */
        font-size: 1.1rem !important; /* フォントサイズも少し小さく調整するが、十分な大きさを維持 */
        width: 90% !important; /* モバイルでは幅を広げる */
    }
}

/* モーダルのスタイル調整 */
.modal-content {
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
}

/* 優先予約モーダル用のスタイル */
#reservationsModal .modal-content {
    max-width: 450px;
    width: calc(100% - 40px);
    margin: 20px auto;
    position: relative;
}

@media (max-width: 576px) {
    .days {
        gap: 2px;
    }
    
    .day {
        height: 35px;
        font-size: 0.9em;
    }
    
    .time-slots {
        gap: 5px;
    }
    
    .time-slot {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

/* カレンダーのCSS部分 */
/* ... existing code ... */
.day.current {
    /* 本日のスタイルは通常のスタイルに戻す */
    border: 2px solid #e74c3c; /* 赤い枠線だけ追加して目立たせる */
}

/* 平日・土曜・日曜ごとの今日の日付のスタイル - クラスは残すが効果は取り消す */
.day.current.weekday, .day.current.sat, .day.current.sun {
    /* 特別なスタイルは削除し、通常表示に戻す */
    background-color: inherit;
    color: inherit;
}

/* 表示月の平日と日曜のテキスト色 */
.day:not(.prev-month):not(.next-month).weekday {
    color: black;
}

.day:not(.prev-month):not(.next-month).sun {
    color: red;
}

.day:not(.prev-month):not(.next-month).sat {
    color: #3498db;
}
/* ... existing code ... */

/* 選択された日付のスタイル */
.day.selected.weekday {
    background-color: #e0e0e0;
    color: black;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.day.selected.sat {
    background-color: #d4f1f9;
    color: #3498db;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.day.selected.sun {
    background-color: #ffd6e0;
    color: red;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

/* 表示月の平日と日曜のテキスト色 */
.day:not(.prev-month):not(.next-month).weekday {
    color: black;
}

.day:not(.prev-month):not(.next-month).sun {
    color: red;
}

.day:not(.prev-month):not(.next-month).sat {
    color: #3498db;
}

/* 時間選択用のプルダウンスタイル */
.time-select-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

/* 選択された日付表示エリア */
.selected-date-display {
    text-align: center;
    margin: 10px 0 15px 0;
    padding: 5px;
}

#selected-date-text {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    display: inline-block;
    min-width: 200px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* 過去の日付のスタイル */
.day.past {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
    color: #999;
}

/* 過去の時間枠のスタイル */
.time-select option:disabled {
    color: #999;
    background-color: #f0f0f0;
}

/* カレンダーの年月表示と時間選択のスタイル統一 */
#reservationsModal .current-month,
#reservationsModal .time-selection h4 {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 8px 12px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: inline-block;
    min-width: 120px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    #reservationsModal .current-month,
    #reservationsModal .time-selection h4 {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .days {
        gap: 2px;
    }
}

/* カレンダーヘッダーのレイアウト改善 */
#reservationsModal .calendar-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
    padding: 15px 10px;
}

#reservationsModal .calendar-header .prev-month {
    justify-self: start;
}

#reservationsModal .calendar-header .next-month {
    justify-self: end;
}

/* 予約モーダルのタイトルスタイル */
#reservationsModal h3 {
    color: #8B57D9;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* 完了通知モーダル用のスタイル */
#completionModal .modal-content {
    width: 80%;
    max-width: 500px;
}

/* タブレット対応 */
@media screen and (min-width: 577px) and (max-width: 768px) {
    #completionModal .modal-content {
        width: 85%;
    }
}

.completion-message {
    margin: 15px 0;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1rem;
}

/* モーダルOKボタンのスタイル改善 */
#completionOkBtn {
    width: 85%;
    max-width: 300px;
    padding: 15px 30px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 15px auto;
    display: block;
    text-transform: uppercase;
}

#completionOkBtn:hover {
    background-color: #ff8533;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

#completionOkBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* モーダルのボタンコンテナ */
.button-container {
    text-align: center; 
    margin: 25px 0 15px 0;
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    #completionOkBtn {
        width: 90%;
        padding: 16px 30px;
        font-size: 1.3rem;
        margin: 20px auto;
    }
    
    /* モーダル自体もスマホで見やすく - 固定px余白で統一 */
    #completionModal .modal-content {
        margin: 30% 20px;
        width: calc(100% - 40px);
        padding: 20px;
        border-radius: 15px;
    }
    
    /* メッセージテキストも少し大きく */
    .completion-message {
        font-size: 1.15rem;
        margin: 20px 0;
    }
} 