*, *::before, *::after {
  box-sizing: border-box;
}

html {
    /* ブラウザの標準文字サイズを基準(100%)とする */
    font-size: 100%; 
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem; /* htmlのサイズ(100%)と同じサイズ、つまり標準の16pxになる */
    letter-spacing: 0.1em;
    background-color: #fcfcfc;
    color: #333;
    margin: 0;
    padding: 0;
}

.logo {
    width: 100%;
    text-align: center;
    padding: 0 20px 30px;
    /* 通常は左右20pxマージン */
    box-sizing: border-box;
    background-color: #e9c9a3;
}

/* 画像の基本設定 */
.logo img {
    max-width: 480px;
    /* 最大幅480px */
    width: 100%;
    /* 親幅に合わせて縮小 */
    height: auto;
    /* アスペクト比維持 */
    display: block;
    margin: 0 auto;
    /* 中央寄せ */
}

header {
    text-align: center;
    padding: 0 0 5px 0;
    margin: 0;
    background-color: #e9c9a3;
}

header nav ul {
    list-style: none;
    padding: 15px 0 5px 0;
    margin: 0 0 28px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #e9c9a3;
    color: #333;
}

header nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 15px;
    /* ← 好みに応じて調整 */
    padding: 15px 10px;
    /* ← 押しやすさも兼ねる */
}

header nav a:hover {
    opacity: 0.6;
    /* ← 60%の濃さに */
    transition: opacity 0.3s;
    /* ← ふわっと変化 */
}

.mobile-only-nav {
    display: none;
    /* 最初は非表示にしておく */
}

header nav li:not(:first-child) {
    border-left: 1px solid #fcfcfc;
    /* ← 縦線 */
    padding-left: 15px;
    /* ← 縦線と文字の間隔 */
    margin-left: 0;
}

/* 共通 */
.heading-img {
    text-align: center;
    margin: 20px 0;
    line-height: 1;
}

.heading-img img {
    display: inline-block;
    height: auto;
    max-width: 100%;
}

/* h1用 */
.h1-img img {
    max-width: 550px;
    width: 80%;
}

/* h2用 */
.h2-img img {
    height: 75px;
    /* 高さを固定 */
    width: auto;
    /* 横幅は比率に応じる */
    max-width: 100%;
    /* はみ出さないように保険 */
    display: block;
    /* 隙間対策 */
    margin: 0 auto;
    /* 中央寄せ */
}

.news {
    background-color: #f9dfbe;
    padding: 15px 20px;
    margin: 0 auto;
    width: 100%;
    font-size: 0.95em;
    box-sizing: border-box;
}

/* PCでは横並び */
.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-date {
    color: #777;
    font-size: 0.9em;
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
}

.news-item a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
    line-height: 1.2;
    vertical-align: middle;
}

.news-item a:hover {
    opacity: 0.6;
}

.new-label {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    animation: blink 3s infinite;
    line-height: 1.2;
    vertical-align: middle;
}

/* 点滅アニメ */
@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.menu-toggle {
    display: none;
}

/* ハンバーガーアイコン */
.menu-icon {
    position: fixed;
    /* 画面上に固定位置 */
    top: 25px;
    /* 上から25pxの余白 */
    left: 25px;
    /* 左から25pxの余白 */
    width: 40px;
    /* アイコン自体の幅 */
    height: 40px;
    /* アイコン自体の高さ */
    cursor: pointer;
    /* ホバーで指カーソル */
    z-index: 1001;
    /* 画像より前面 */
    display: none;
    flex-direction: column;
    /* バーを縦並びに */
    justify-content: space-between;
    /* 上下の余白を自動調整 */
    padding: 5px 0;
    /* 内側のちょっとした余白 */
    overflow: visible;
    /* はみ出しても切れないように */
}

/* ハンバーガーのバー共通設定 */
.menu-icon .bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px 0;
    background-color: #a88767;
    transition: 0.4s;
    position: absolute;
    left: 0;
    /* 左端を基準に */
    transform-origin: center;
    border-radius: 2px;
}

/* 各バーの初期位置 */
.menu-icon .bar:nth-child(1) {
    top: 0;
}

.menu-icon .bar:nth-child(2) {
    top: 12px;
}

.menu-icon .bar:nth-child(3) {
    top: 24px;
}

/* X型に変形 */
.menu-toggle:checked+.menu-icon .bar:nth-child(1) {
    top: 12px;
    /* 中央に移動 */
    transform: rotate(45deg);
    left: 5px;
    /* 横にずらす */
}

.menu-toggle:checked+.menu-icon .bar:nth-child(2) {
    opacity: 0;
    /* 中央バーを消す */
}

.menu-toggle:checked+.menu-icon .bar:nth-child(3) {
    top: 12px;
    /* 中央に移動 */
    transform: rotate(-45deg);
    left: 5px;
    /* 横にずらす */
}




.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 0 50px;
    background-color: #e9c9a3;
    flex-wrap: wrap;
    /* スマホで折り返しできるように保険 */
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f5f0e6;
    overflow: hidden;
    /* 画像が丸からはみ出さないように */
    transition: opacity 0.3s;
}

.menu-btn img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; を削除 */
    display: block;
}

.menu-btn:hover {
    opacity: 0.7;
    /* ホバーで少し透明に */
}


.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    line-height: 1.8;
    /* 1.8倍の行間に設定 */
}

/* PCではPC用改行だけ表示 */
.br-pc {
    display: inline;
}

.br-sp {
    display: none;
}

/* --- レイアウトの基本設定 --- */
.callout {
    background-color: #f3ece3;
    padding: 40px;
    margin: 50px auto;
    max-width: 700px;
}

/* 画像とテキストを囲むコンテナ */
.callout-container {
    display: flex;
    flex-direction: column; /* ★変更: row から column へ */
    gap: 35px;
    align-items: center; /* ★変更: 中央揃えにして見栄えを良くする */
    padding-bottom: 20px;
}

/* 画像コンテナ */
.callout-images {
    width: 100%; /* ★変更: 50% から 100% へ */
    max-width: 580px; /* ★追加: 横幅が広がりすぎないように最大幅を指定 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 画像の共通スタイル */
.callout-images .tonakai-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* テキストコンテナ */
.callout-text {
    width: 80%; /* ★変更: 50% から 100% へ */
}

.callout-text a {
    color: #caab8f;
    text-decoration: none;
}

.callout-text a:hover {
    color: #333;
    text-decoration: none;
}

.story-hajimari {
    margin-bottom: 20px;
    /* テキストとの間に余白を追加 */
}

.callout-text p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* 注釈コンテナ */
.notes-container {
    margin-top: 30px;
}

.notes-container .note {
    font-size: 0.7em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
}

/* --- 「もっと読む」機能のスタイル (スマホ用) --- */
.collapsible-text {
    transition: max-height 0.5s ease-out;
    overflow: hidden;
}

/* 「もっと読む」ボタンの基本スタイル */
.read-more-button {
    /* デフォルトのスタイルを上書き */
    margin: 20px auto;
    /* 上下に20pxの余白をつけ、左右を自動で中央揃え */
    display: block;
    /* 中央揃えのためにブロック要素にする */
    text-align: center;
    /* ボタン内のテキストを中央揃え */
    width: fit-content;
    /* ボタンの幅をコンテンツに合わせる */

    /* 以下のコードが新しいスタイルです */
    color: #333;
    /* 文字色 */
    cursor: pointer;
    font-size: 0.9em;
    padding: 8px 15px;
    /* 上下左右のパディング */
    border-radius: 5px;
    /* 角丸 */
    border: 1px solid #ccc;
    /* 枠線 */
    background-color: #301616;
    /* 背景色 */
    text-decoration: none;
    /* 下線をなくす */
}

/* 「もっと読む」ボタンの矢印のスタイル */
.read-more-button::after {
    content: " ▼";
    margin-left: 5px;
    /* 矢印と文字の間にスペース */
}

.read-more-button.expanded::after {
    content: " ▲";
}




/* alt-bg 用のラッパーをフル幅に */
.alt-bg {
    width: 100%;
    background-color: #e9c9a3;
    text-align: center;
    padding: 40px 0;
    /* header と同じパディングに合わせる */
    margin: 50px 0;
}

/* 中のコンテンツだけ幅制限 */
.alt-bg .content-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    /* 横の余白 */
    text-align: center;
}

#game.alt-bg {
    margin-bottom: 10px;
    /* GOODSとの間だけ詰める */
}

#sns.alt-bg {
    padding-top: 40px;
    padding-bottom: 60px;
}

h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

#story img[alt="コーヒー豆ちゃんズ"] {
    max-width: 500px;  /* ← これを追加 */
    width: 100%;       /* ← これもセットで追加すると安心です */
    height: auto;      /* ← 念のため追加 */
    margin: 0 auto 9px;
}

#story p:last-of-type {
    margin-bottom: 0;
}

.characters {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    /* 上揃え */
    margin-top: 20px;
}

.character {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.character p {
    font-size: 0.85em;
    width: 130px;
    text-align: justify;
    line-height: 1.8em;
    /* Tightens line spacing */
}

/* キャラ画像専用 */
.character-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* キャラ名専用 */
.character-name {
    width: auto;
    /* 横幅は元画像に合わせる */
    max-width: 100%;
    /* 親幅を超えない */
    height: 30px;
    /* 縦横比維持 */
    display: block;
    margin: 5px auto -5px;
    /* 少し上マージン */
}

.story-hajimari {
    width: auto;
    /* 横幅は元画像に合わせる */
    max-width: 100%;
    /* 親幅を超えない */
    height: 60px;
    /* 縦横比維持 */
    display: block;
    margin: 5px auto 20px;
    /* 少し上マージン */
}

.game-item {
    margin-bottom: 20px;
}

.game-item a img {
    transition: opacity 0.3s ease;
    /* スムーズに変化 */
}

.game-item a:hover img {
    opacity: 0.6;
    /* ホバー時に透明度60% */
}

/* ゲームセクションの画像がはみ出さないようにする */
#game .game-item img {
    max-width: 100%;
    height: auto;
}

.store-link {
    display: inline-block;
    background-color: #301611;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 40px;
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
    /* スムーズに */
}

.store-link:hover {
    opacity: 0.6;
    /* ホバー時に60% */
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.goods-item img {
    width: 100%;
    display: block;
}

.sns-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sns-icons img {
    width: 70px;      /* ← max-width から変更！ */
    height: auto;     /* ← 念のため追加 */
    transition: opacity 0.3s ease;
}

.sns-icons img:hover {
    opacity: 0.6;
}



.follow-arch {
    width: 100%;
    height: 100px;
    margin: -40px auto -30px;
    /* アイコンとの距離を詰める */
}

.follow-arch text {
    font-family: "Arial", sans-serif;
    font-weight: bold;
    fill: #444;
    /* 文字色 */
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
}

.photo-box {
    position: relative;
    overflow: hidden;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-box:hover .mask {
    opacity: 1;
}

.caption {
    text-align: center;
    padding: 15px;
}

#sns-creator {
    margin-bottom: -30px;
    /* 好きな値に調整 */
}

/* contact画像だけ個別指定 */
#sns-creator .img-contact {
    width: 280px;
    /* 好きな横幅に調整 */
    height: auto;
    /* 縦横比を保持 */
    margin: -30px auto 0;
    /* 中央寄せ */
}

/* todomu画像も個別指定 */
#sns-creator .img-todomu {
    width: 150px;
    /* 好きな横幅に調整 */
    height: auto;
    margin: 8px auto 10px;
    /* 中央寄せ */
}




/* ▼▼▼ ここからメールフォーム用のCSSを追加 ▼▼▼ */

/* 元サイトのフォーム用スタイル */
#contact .container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

#contact #caption4 img {
    display: block;
    width: 125px;
    /* 好きな横幅に調整 */
    height: auto;
    margin: 10px auto 25px;
    /* 中央寄せ */
}

#contact #caption5 {
    text-align: center;
    line-height: 2em;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #333;
}

#contact #caption5 a {
    color: #8B4513;
    /* リンク色を新しいサイトに合わせる */
}


/* フォーム部品のスタイル */
#contact .form-group {
    margin-bottom: 1rem;
}

#contact .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* 幅の計算を枠線内に収める */
    padding: .375rem .75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #495057;
    background-color: #e3dfdf;
    border: 1px solid #b3adac;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

#contact textarea.form-control {
    height: 120px;
}

#contact .btn {
    display: inline-block;
    font-weight: 300;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
}

#contact .btn-primary {
    display: block;
    /* ブロック要素にして中央寄せが効くように */
    width: 110px;
    /* 横幅は好きなサイズに調整 */
    margin: -10px auto -10px;
    /* 左右自動で中央寄せ */
    text-align: center;
    /* 文字も中央寄せ */
    letter-spacing: 0.12em;
    /* 文字間を少し広げる */
    color: #fff;
    background-color: #a88767;
    border-color: #a88767;
}

#contact .btn-primary:hover {
    opacity: 0.8;
}

#contact .form-message {
    text-align: center;
    font-size: 14px;
    line-height: 1.8em;
    margin: 15px 0;
}

#contact .form-message a,
#contact #caption5 a {
    color: rgba(51, 51, 40, 0.4);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#contact .form-message a:hover,
#contact #caption5 a:hover {
    color: rgba(51, 51, 40, 1);
    transition: color 0.3s ease;
}

#contact input#name.form-control {
    width: 90%;
    /* ← 横幅を90%に設定 */
    margin-left: auto;
    margin-right: auto;
    height: 45px;
    letter-spacing: 0.14em;
    /* 好みで調整 */
}

/* ②テキストエリアの中のmessageの字間を少しあける */
#contact textarea#body.form-control {
    width: 90%;
    /* ← 横幅を90%に設定 */
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.11em;
    /* 好みで調整 */
    margin-top: -8px;
}

/* ▲▲▲ ここまで ▲▲▲ */

/* --- おみくじボタンのスタイル --- */

/* ボタン全体のコンテナ */
#omikuji-button {
    position: fixed;
    /* 画面に固定 */
    bottom: 20px;
    /* 下から20pxの位置 */
    left: 25px;
    /* 左から20pxの位置 */
    z-index: 1000;
    /* 他の要素より手前に表示 */
    display: block;
    /* widthとheightを指定するため */
    width: 165px;
    /* ベース画像の幅に合わせる */
    height: 250px;
    /* ベース画像の高さに合わせる */
    cursor: pointer;
    /* カーソルを指の形に */
    transition: transform 0.2s ease;

}

/* ボタンにマウスが乗ったら少しだけ拡大 */
#omikuji-button:hover {
    transform: scale(1.05);
}

/* ボタン内の画像共通スタイル */
#omikuji-button img {
    position: absolute;
    /* 親要素(#omikuji-button)を基準に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 上に重ねるおみくじの箱 */
.omikuji-message {
    /* ふわふわ浮くアニメーションを適用 */
    animation: fluffy-float 3s ease-in-out infinite;
}

/* ふわふわ浮くアニメーションの定義 */
@keyframes fluffy-float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
        /* 上に10px移動 */
    }

    100% {
        transform: translateY(0);
    }
}

/* --- おみくじモーダルのスタイル --- */

/* 画面全体を覆う背景 */
#omikuji-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* 半透明の黒 */
    z-index: 2000;

    /* 中のコンテンツを中央揃えにするための設定 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 初期状態では非表示 */
    display: none;
}

/* ポップアップ本体 */
#omikuji-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    /* 閉じるボタンの基準位置にする */
    max-width: 90%;
    max-height: 90%;
}

/* 結果画像 */
#omikuji-result-image {
    max-width: 100%;
    max-height: 80vh;
    /* 画面の高さの80%を最大に */
    display: block;
}

/* 閉じるボタン */
#omikuji-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: #ffebc2;
    color: #e3aa55;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}


/* --- ローディング画面のスタイル --- */

/* 画面全体を覆う背景 */
#omikuji-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* 少し濃いめの背景 */
    z-index: 3000;
    /* モーダルよりさらに手前に */

    /* 中のスピナーを中央揃えにする */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 初期状態では非表示 */
    display: none;
}

/* くるくる回るスピナー本体 */
.loader {
    border: 8px solid #f3f3f3;
    /* 明るいグレーの円 */
    border-top: 8px solid #a88767;
    /* 上部だけテーマカラーに */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    /* spinアニメーションを適用 */
}

/* くるくる回るアニメーションの定義 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #322422;
    color: #fff;
    border-radius: 50%;
    /* 丸ボタン */
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(53, 50, 48, 0.2);
    transition: opacity 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    /* 下線消す */
    font-weight: bold;
}

#scrollTopBtn::before {
    content: "▲";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-47%, -50%);
    font-size: 24px;
}

#scrollTopBtn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* フッターのコピーライトマークを調整 */
.copyright-symbol {
    font-size: 1.8em;
    /* 文字サイズを少し大きくする（1.2倍） */
    vertical-align: -0.2em;
    /* 少しだけ下にずらして位置を微調整 */
}

.fixed-link {
    position: fixed;
    bottom: 10px;
    /* 画面下から20pxの位置 */
    right: 0;
    /* 画面右端から20pxの位置 */
    z-index: 1000;
    /* 他の要素より手前に表示 */
        transition: transform 0.2s ease;
}

.fixed-link img {
    width: 180px;
    /* 画像の幅を80pxに設定 */
    height: auto;
    /* 縦横比を維持 */
}

.fixed-link:hover {
    transform: scale(1.05);
}


/* --- フッター上のバナー --- */
.footer-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 25px 0; /* 上下の余白を少し調整 */
  background-color: #301611; /* サイト内で使われている一番濃い茶色に設定 */
}

.footer-banners a img {
  height: 65px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

.footer-banners a:hover img {
  opacity: 0.7;
}


/* レスポンシブ対応（スマホはほぼフル幅） */
@media screen and (max-width: 768px) {
    .page-wrapper {
        width: 95%;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        /* NEW以外を左寄せ */
        gap: 5px;
        padding: 0 10% 10px;
    }

    .new-label {
        width: 100%;
        text-align: center;
        /* NEWだけ中央寄せ */
        margin-bottom: 5px;
    }

    .news-date,
    .news-item a {
        text-align: left;
        /* 日付とリンクは左寄せ */
    }

    .menu-icon {
        display: none;
        /* 画面上に固定位置 */
        top: 20px;
        /* 上から25pxの余白 */
        left: 20px;
    }

    /* h1用 */
    .h1-img img {
        width: 90%;
    }

    #story img[alt="コーヒー豆ちゃんズ"] {
        width: 90%;
        height: auto;
    }

    .br-pc {
        display: none;
    }

    .br-sp {
        display: inline;
    }

    .menu-buttons {
        flex-direction: column;
        align-items: center;
    }

    .characters {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        padding: 50px 10% 10px;
        /* 左右余白10% */
    }

    header nav ul.nav-menu li:not(:first-child) {
        border-left: none;
        padding-left: 0;
    }

    /* メニュー本体 */
    header nav ul.nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fcfcfc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 10px;
        border-radius: 0;
        z-index: 100;
        padding-left: 0;
        margin: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* li のデフォルト幅を解除して中央寄せ */
    .nav-menu li {
        width: 100%; /* リスト項目を全幅にする */
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* 各リンク */
    .nav-menu li a {
        font-size: 1.2rem;
        display: block; /* リンクをブロック要素にする */
        text-align: center;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        font-weight: 600;
        transition: background-color 0.3s ease; /* ホバー効果のためのtransitionを追加 */
    }

    /* 区切り線 */
    .nav-menu li+li a {
        position: relative;
        /* 擬似要素ではなく、ボーダーを直接適用 */
        border-top: 2.5px dotted #ede3d0;
        padding-top: 20px;
    }
    
    /* ホバー */
    .nav-menu li a:hover {
        color: #f08c00;
    }

    /* チェックボックスONで表示 */
    .menu-toggle:checked+.menu-icon+.nav-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* ハンバーガー表示ON */
    .menu-icon {
        display: flex;
    }

    .mobile-only-nav {
        display: list-item;
        /* スマホのときだけ表示する */
    }

    /* --- スマホ表示用のスタイルを追加 --- */
    #omikuji-button {
        width: 100px;
        /* 元の約半分のサイズ */
        height: 150px;
        /* 元の約半分のサイズ */
        bottom: 15px;
        /* 位置を少し調整 */
        left: 15px;
        /* 位置を少し調整 */
    }


    .story-hajimari {
        height: 50px;
    }

    .content-section callout {
        width: 90%;
    }

    .callout-container {
        flex-direction: column;
        /* スマホでは上下に並べる */
    }

    .callout-images {
        width: 100%;
    }

    .callout-text {
        width: 100%;
        margin-top: 20px;
    }

    .collapsible-text {
        margin: -40px auto 0;
        max-height: 12em;
        /* 5-6行分の高さ */
        transition: max-height 0.5s ease-out;
        overflow: hidden;
    }


    /* 「もっと読む」ボタンの基本スタイル */
    .read-more-button {
        /* デフォルトのスタイルを上書き */
        margin: 20px auto;
        /* 上下に20pxの余白をつけ、左右を自動で中央揃え */
        display: block;
        /* 中央揃えのためにブロック要素にする */
        text-align: center;
        /* ボタン内のテキストを中央揃え */
        width: fit-content;
        /* ボタンの幅をコンテンツに合わせる */

        /* 以下のコードが新しいスタイルです */
        color: #333;
        /* 文字色 */
        cursor: pointer;
        font-size: 0.9em;
        padding: 8px 15px;
        /* 上下左右のパディング */
        border-radius: 15px;
        /* 角丸 */
        border: none;
        background-color: #e3d9cc;
        /* 背景色 */
        text-decoration: none;
        /* 下線をなくす */
    }

    /* 「もっと読む」ボタンの矢印のスタイル */
    .read-more-button::after {
        content: "▼";
    }

    .read-more-button.expanded::after {
        content: "▲";
    }

    /* --- ここから追加 --- */
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3列のグリッドレイアウトに設定 */
        gap: 10px;
        /* 画像間の余白を少し狭く調整 */
    }

    /* --- ここまで追加 --- */

    .page-wrapper {
        width: 95%;
    }

    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
    }

    .character p {
        font-size: 0.85em;
        width: 220px;
        text-align: justify;
        line-height: 1.8em;
        /* Tightens line spacing */
    }


    .fixed-link {
        position: fixed;
        bottom: 10px;
        /* 画面下から20pxの位置 */
        right: 0;
        /* 画面右端から20pxの位置 */
        z-index: 1000;
        /* 他の要素より手前に表示 */
    }

    .fixed-link img {
        width: 130px;
        /* 画像の幅を80pxに設定 */
        height: auto;
        /* 縦横比を維持 */
    }

}
