body {
    margin: 0;
    padding: 0;
    background-color: rgb(242, 242, 242); /* 背景色をRGB(242,242,242)に設定 */
}
.header {
    position: relative;
    width: 100%; /* 横幅を常に画面全体にフィット */
    height: 50vh; /* 高さはビューポート高さの50% */
    background: url('../image/baseg.png') no-repeat center center;
    background-size: 100% 100%; /* 横方向フィット & 縦方向ストレッチ */
}
.header-text {
    position: absolute;
    top: 4vh; /* 開始位置を縦方向の10%に設定 */
    width: 100%; /* テキスト全体で調整 */
}
.header-text .line2 {
    text-align: center; /* 中央揃え */
    color: white;
    margin: 0;
    font-size: 7vh; /* line2の文字サイズ */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.header-text .line1,
.header-text .line3 {
    position: relative;
    text-align: left; /* 左揃え */
    margin: 0 auto; /* 左右の余白を自動調整 */
    width: fit-content; /* テキスト幅に自動調整 */
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.header-text .line1 {
    font-size: 4vh; /* line1の文字サイズ */
    margin-left: calc(32% - 4em); /* line2の開始位置と同じに設定 */
}
.larger-number {
    font-size: 6vh; /* 「6」だけ1サイズ大きく */
    color: white; /* 必要であれば色を統一 */
    font-weight: bold;
}
.header-text .line3 {
    font-size: 1.5vh; /* line3の文字サイズ */
    margin-left: calc(26% - 5em); /* line2の開始位置と同じに設定 */
    display: inline-block;
}
.start-button {
    position: absolute; /* 絶対配置 */
    top: 150%; /* 上方向の位置を指定 */
    left: calc(0% + 0vw); /* 横幅に基づいて位置を調整 */
    padding: 0.2em 4.0vw; /* 横幅に応じてパディングを調整 */
    font-size: 1.5vw; /* フォントサイズを横幅に連動 */
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 12px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-decoration: none;
    text-align: center; /* テキストを中央揃え */
    white-space: nowrap; /* 改行を防止 */
    max-width: 20%; /* ボタンの最大幅を制限 */

    /* 追加 */
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
}
.admin-button {
    position: absolute; /* 絶対配置 */
/*    top: 170%;*/ /* 上方向の位置を指定 */
    left: calc(50% + 20vw); /* 横幅に基づいて位置を調整 */
    padding: 0.2em 4.0vw; /* 横幅に応じてパディングを調整 */
    font-size: 1.5vw; /* フォントサイズを横幅に連動 */
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg,rgb(0,54,100), rgb(0,94,184));
    border: none;
    border-radius: 12px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-decoration: none;
    text-align: center; /* テキストを中央揃え */
    white-space: nowrap; /* 改行を防止 */
    max-width: 20%; /* ボタンの最大幅を制限 */
    margin-top: calc(0% + 4vh);
    /* 追加 */
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
}

.start-button:hover {
    opacity: 0.85;
}
.header-text .line4 {
    font-size: 2vh; /* line3の文字サイズ */
    color: RGB(19,55,141);
    margin-left: calc(70% - 4em); /* line2の開始位置と同じに設定 */
}
.header-text .contact-button {
    margin-top: 2vh; /* line3との間隔 */
}
.header-text .contact-button img {
    width: auto;
    height: 4vh; /* ボタン画像の高さを調整 */
    margin-left: calc(70% - 5em); /* line2の開始位置と同じに設定 */
    /* cursor: pointer; */ /* ボタンとしてクリック可能に */
}
.contact-info {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左揃え */
    margin-top: 2vh; /* line3との余白 */
    margin-left: calc(25% - 20vw); /* 位置調整 */
    font-size: 2vh;
    color: black;
}
.contact-info img {
    height: 3vh; /* アイコンの高さ調整 */
    margin-right: 1vw; /* アイコンとテキスト間のスペース */
}
  /* ボタン下の版数情報 */
  .version-info {
    margin-top: 30px;      /* ボタンとの隙間 */
    font-size: 1rem;    /* お好みで調整 */
    color: white;          /* お好みで淡い色に */
    text-align: right;  /* 中央寄せしたい場合 */
  }
  

/***********************************************************/
/*                                                         */
/* 以下緊急メンテナンス対応                                  */
/*                                                         */
/***********************************************************/
/* ---------------------- */
/* モーダル用オーバーレイ */
#modal-overlay {
    display: none ! important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
/* モーダル本体 */
#maintenance-modal {
    display: none ! important;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 4px solid #ccc;
    border-radius: 8px;
    max-width: 90%;
    width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    z-index: 1001;
    font-family: "メイリオ", sans-serif;
    line-height: 1.6;
    color: #333;
}
/* × ボタン */
#maintenance-modal .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
#maintenance-modal .close-btn:hover {
    color: #000;
}
/* 各セクション見出し */
#maintenance-modal h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #005caf;
    text-align: center;
}
#maintenance-modal h3 {
    margin: 1.2rem 0 0.4rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.2rem;
    color: #005caf;
}
#maintenance-modal strong {
    color: #c00;
}
/* 本体コンテンツを隠す */
body.modal-open {
    overflow: hidden;
}


