@charset "utf-8";

/* ==========================================
   団員募集ページ専用
========================================== */

/* ==========================================================================
   説明文のスタイル（中央寄せ・改行の最適化）
   ========================================================================== */
.schedule-description {
    text-align: center;
    margin: 20px auto;
    padding: 0 15px;
    color: #fff;
    font-size: 12px;
    line-height: 1.0;
}

.schedule-description p {
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.5;
}    

/* （閲覧にはパスワードが必要です）の文字に余白を追加 */
.schedule-description .note {
    margin-top: 25px;
    color: #ccc;
}


/* ==========================================================================
   パスワード認証エリア（外枠を消去＆縦並びに変更）
   ========================================================================== */
.password-wrapper {
    /* 元の横並び設定を、綺麗に中央に揃う縦並び（column）に変更 */
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 15px;              /* 入力ボックスとボタンの間の隙間 */
    
    margin: 40px auto;
    text-align: center;
    max-width: 200px;       /* スマホの横幅から溢れないサイズに制限 */
    border: none;
    background: none;
    padding: 0;
}

/* 入力枠のスタイル */
#pass-input {
    width: 100%;            /* wrapperの幅いっぱいに広げる */
    max-width: 300px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    font-size: 16px;        /* iPhoneでタップした時に画面がズームするのを防ぐ */
    box-sizing: border-box;
    text-align: center;
}

/* 認証ボタンのスタイル */
.password-wrapper button {
    width: 100%;
    max-width: 120px;       /* ボタンをコンパクトに */
    padding: 10px 0;
    background-color: #333; /* シックなダークグレー */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* ボタンのホバー（指が触れた時）の効果 */
.password-wrapper button:hover {
    background-color: #555;
}

/* エラーメッセージのスタイル */
#error-msg {
    color: #ff6b6b;
    display: none;          /* 初期状態は非表示 */
    margin-top: 5px;
    font-size: 0.9em;
    width: 100%;
}


/* ==========================================================================
   カレンダーのレスポンシブ対応（幅を広く拡張）
   ========================================================================== */
#calendar-section {
    text-align: center;
    margin: 40px auto;
    width: 95%;             /* 左右の余白を狭くし、画面の95%まで広げる */
    max-width: 1200px;      /* 【修正】最大幅を800pxから1200pxに拡張 */
}

#calendar-section iframe {
    width: 100%;
    height: 700px;          /* 【修正】横幅が広がった分、縦も少し高くして見やすく */
    border: none;
}

/* タブレット対応：画面が中くらいの時 */
@media (max-width: 900px) {
    #calendar-section iframe {
        height: 550px; 
    }
}

/* スマホ対応：画面が小さい時 */
@media (max-width: 600px) {
    #calendar-section {
        width: 100%;        /* スマホでは左右の余白を完全になくして全幅表示 */
    }
    #calendar-section iframe {
        height: 450px; 
    }
}

/* ==========================================================================
   スマホでの右側はみ出し・画面ズレを強制リセット
   ========================================================================== */

/* ページ全体が画面幅からはみ出さないようにガードする */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* メインビジュアル（オーケストラ写真）がはみ出すのを防ぐ */
.main-visual, .main-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

/* ヘッダーやナビゲーションの横幅をスマホサイズに強制適応 */
header, .header-container, .about-main, .about-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
