/*==========================================================================*/
/*                      準備中表示（TOPページ用）                            */
/*==========================================================================*/
/*
   【切替方法】index.html の <body> の class="is-maintenance" で切り替える
     ・付ける → 準備中表示（この CSS が TOP の通常コンテンツをすべて隠す）
     ・外す　→ 元のページ（準備中ブロックは index.html の hidden 属性で非表示のまま）
   色・枠・グラデーションは css/relocation-notice.css（移転のお知らせ）に合わせている
*/

/* 準備中表示のとき：#wrapper 直下の「準備中ブロック以外」をすべて隠す
   （ヘッダー・メイン画像・移転のお知らせ・本文・フッター・予約/TELバー など）
   JS が付けるインライン指定にも負けないよう !important を使う */
body.is-maintenance #wrapper > *:not(.maintenance-notice) {
    display: none !important;
}

/* PC 用の最小幅（1260px）を解除し、狭い画面で横スクロールさせない */
body.is-maintenance #wrapper {
    min-width: 0;
}

/* 準備中ブロック（表示するのは body.is-maintenance のときだけ） */
body.is-maintenance .maintenance-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 46px 20px;
    background: linear-gradient(115deg, #e6ddcc 0%, #f6f2ea 30%, #fdfcfa 48%, #ece4d6 62%, #faf8f4 80%, #e9e1d2 100%);
    color: #2a1d10;
    font-family: inherit;
}

.maintenance-notice__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 56px clamp(18px, 5vw, 56px);
    border: 1px solid #2a1d10;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

/* 「只今準備中です」（他の文字より大きくする）
   ※サイト共通の CSS（styles.css）に h1 { display: none; } があるため、display: block で表示する */
.maintenance-notice__title {
    display: block;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #c9b38a;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    line-height: 1.4;
}

/* 「【医院移転のお知らせ】」 */
.maintenance-notice__heading {
    margin: 32px 0 14px;
    color: #715729;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.maintenance-notice__text {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 2;
    /* 対応ブラウザのみ：文節で折り返し、行末に1〜2文字だけ残らないようにする */
    word-break: auto-phrase;
    text-wrap: balance;
}

/* 強調（12月19日（土）・2027年2月2日（火）・大泉学園三丁目歯科） */
.maintenance-notice__text strong {
    font-weight: 700;
    background: linear-gradient(transparent 62%, #f0dfb4 62%);
    white-space: nowrap;
}

@media screen and (max-width: 750px) {
    body.is-maintenance .maintenance-notice {
        padding: 20px 12px;
    }

    .maintenance-notice__inner {
        padding: 32px 14px;
    }

    .maintenance-notice__title {
        padding-bottom: 18px;
        font-size: 30px;
    }

    .maintenance-notice__heading {
        margin: 24px 0 10px;
        font-size: 20px;
    }

    .maintenance-notice__text {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.8;
    }
}
