/* ✅ UTAGEの影響を受けないようにする */
#utage-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* ✅ 診断部分（中央揃えにする） */
.diagnosis-container {
    text-align: center;
    background-color: #fff8e1;
    padding: 20px 20px; /* ✅ 上下16px / 左右20px（バランスを取る） */
    border: 2px solid #e0a800;
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    max-width: 450px; /* ✅ PC時の最大幅 */
    margin-left: auto;
    margin-right: auto;
}

/* ✅ スマホ時の余白をさらに減らす */
@media screen and (max-width: 767px) {
    .diagnosis-container {
        width: 100%; /* ✅ 100% に変更（余白をさらに減らす） */
        max-width: 100%; /* ✅ 最大幅の制限を解除し、スマホ画面幅に適応 */
        padding: 18px; /* ✅ さらに余白を減らしてコンパクトに */
    }
}

/* ✅ 日付のスタイル（行間をさらに詰める） */
#date {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 1px; /* ✅ さらに詰める */
}

/* ✅ タイトル（本日の日干） */
.title {
    font-size: 24px;
    font-weight: bold;
    color: #d35400;
    margin-bottom: 15px; /* ✅ ここも少し詰める */
}

/* ✅ ルビ（ふりがな）のスタイル */
#furigana {
    font-size: 16px; /* ✅ スマホで大きく見えないように */
    color: #000; /* ✅ 影なしの黒文字 */
    font-family: "BIZ UDPMincho", "游明朝", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "serif"; /* ✅ 太明朝系フォント */
    font-weight: bold;
    text-shadow: none; /* ✅ 影を削除 */
    margin-bottom: 3px; /* ✅ ルビと日干支の間隔を調整 */
}

/* ✅ 日干支（大きな赤文字） */
#nikkanshi {
    font-size: 80px;
    font-family: "BIZ UDPMincho", "游明朝", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "serif";
    font-weight: 900;
    color: #d9534f;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px; /* ✅ ルビと日干支の間隔を適切に */
}

/* ✅ スマホ時の調整 */
@media screen and (max-width: 767px) {
    #furigana {
        font-size: 14px; /* ✅ スマホ時はさらに小さめに */
    }

    #nikkanshi {
        font-size: 60px; /* ✅ スマホで大きくなりすぎないように */
    }
}

/* ✅ ディスクリプション（説明文） */
#description {
    font-size: 18px;
    font-weight: normal;
    color: #333;
    line-height: 1.4;
    margin-top: 0; /* ✅ 余白が詰まりすぎないよう調整 */
}

/* ✅ マイクロキャッチ（ボタンに寄せる＆強調） */
#question {
    font-size: 14px;  /* ✅ 小さめに */
    font-weight: bold;  /* ✅ 太字にして視認性アップ */
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px; /* ✅ さらにボタンに寄せる */
    margin-bottom: 0px; /* ✅ ボタンとの余白を詰める */
}

/* ✅ 「続きを見る」ボタン */
#moreBtn {
    margin-top: 2px; /* ✅ よりマイクロキャッチに寄せる */
    padding: 16px 24px;
    font-size: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
    width: 80%;
    max-width: 320px;
    transition: background 0.3s ease, transform 0.1s ease;
}

#moreBtn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#moreBtn:active {
    transform: scale(0.98);
}

/* ✅ ボタンエリア（中央揃え＆最大幅を適切に） */
.button-container {
    display: flex;
    justify-content: center; /* ✅ 中央揃え */
    gap: 12px; /* ✅ ボタン間の余白を狭める */
    flex-wrap: nowrap; /* ✅ 折り返しを防止 */
    width: 100%;
    max-width: 1000px; /* ✅ ボタンエリアの最大幅を少し広げる */
    margin: 0 auto; /* ✅ 完全に中央に配置 */
}

/* ✅ ボタンデザイン（縦幅統一＆横幅広げる） */
.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: bold;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    flex: 1;
    min-width: 200px; /* ✅ 幅を少し広げる */
    max-width: 240px;
    height: 50px; /* ✅ ボタンの縦幅を統一 */
    white-space: nowrap; /* ✅ 文字の折り返しを防止 */
    text-align: center;
}

/* ✅ ボタンのホバー時のエフェクト（文字色を白に＆下線なし） */
.menu-button:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none; /* ✅ 下線を消す */
}

/* ✅ スマホ時は1カラムでボタンが縦並び */
@media screen and (max-width: 767px) {
    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .menu-button {
        width: 90%;
        max-width: 320px;
    }
}

/* ✅ 固定フッターメニュー */
#footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px; /* ✅ 高さを45pxに設定 */
    background-color: #000; /* ✅ 黒背景 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* ✅ フッター内の各メニューアイテム */
.footer-item {
    text-align: center;
    font-size: 14px;
    color: #fff; /* ✅ 白文字 */
    text-decoration: none;
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* ✅ アイコンサイズ調整 */
.footer-item i {
    font-size: 20px;
}

/* ✅ ホバー時のデザイン（下線なし・文字色は白のまま） */
.footer-item:hover {
    color: #fff;
    text-decoration: none;
}

/* ✅ スマホ向けデザイン調整 */
@media screen and (max-width: 767px) {
    #footer-menu {
        height: 50px;
    }

    .footer-item {
        font-size: 12px;
    }

    .footer-item i {
        font-size: 18px;
    }
}

/* ✅ PCではフッターを非表示にする */
@media screen and (min-width: 768px) {
    #footer-menu {
        display: none;
    }
}