/* ===== menu.css ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1f1008;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    background-color: #07142d;
}

.tarot-menu-page {
    min-height: 100vh;
    padding: 16px;
    background-color: #07142d;
    /* PC・タブレットは高品質WebPを使用して転送量を抑える */
    background-image: url("../images/menu/menu-stage1-space-bg-hq.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.tarot-menu-panel {
    position: relative;
    isolation: isolate;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 58px 28px 48px;
    text-align: center;
    background-color: #fffdf7;
    /* PC版は高品質WebPを使用して転送量を抑える */
    background-image:
        linear-gradient(rgba(255, 253, 247, 0.24), rgba(255, 250, 238, 0.24)),
        url("../images/menu/menu-stage1-parchment-pc-hq.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(20, 15, 8, 0.34);
}

/* 9スライス一体型フレーム */
.tarot-menu-panel::before {
    position: absolute;
    z-index: 0;
    inset: -16px;
    box-sizing: border-box;
    border: 39px solid transparent;
    border-image-source: url("../images/menu/menu-panel-frame-9slice-pc.png");
    border-image-source: -webkit-image-set(
        url("../images/menu/menu-panel-frame-9slice-pc.webp") 1x,
        url("../images/menu/menu-panel-frame-9slice-pc.png") 1x
    );
    border-image-source: image-set(
        url("../images/menu/menu-panel-frame-9slice-pc.webp") type("image/webp") 1x,
        url("../images/menu/menu-panel-frame-9slice-pc.png") type("image/png") 1x
    );
    border-image-slice: 155 155 155 155;
    border-image-width: 39px;
    border-image-repeat: stretch;
    border-radius: 18px;
    content: "";
    filter: saturate(1.08) contrast(1.06);
    pointer-events: none;
}

/* 上部中央の太陽紋章 */
.tarot-menu-panel::after {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 50%;
    width: 48px;
    height: 48px;
    background-image: url("../images/menu/menu-brand-sun-emblem.png");
    background-image: -webkit-image-set(
        url("../images/menu/menu-brand-sun-emblem-48.webp") 1x,
        url("../images/menu/menu-brand-sun-emblem-96.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/menu-brand-sun-emblem-48.webp") type("image/webp") 1x,
        url("../images/menu/menu-brand-sun-emblem-96.webp") type("image/webp") 2x
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
    filter: drop-shadow(0 1px 0 rgba(255, 244, 205, 0.18));
    pointer-events: none;
    transform: translateX(-50%);
}

.menu-kicker {
    position: relative;
    z-index: 1;
    display: flex;
    margin: 2px 0 10px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #804003;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.22em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.menu-kicker::before,
.menu-kicker::after {
    display: block;
    width: clamp(34px, 7vw, 62px);
    height: 9px;
    flex: 0 1 clamp(34px, 7vw, 62px);
    background:
        radial-gradient(circle, #9f5608 0 1.35px, transparent 1.55px) left center / 8px 8px no-repeat,
        radial-gradient(circle, #bf7818 0 1px, transparent 1.2px) 11px center / 7px 7px no-repeat,
        linear-gradient(90deg, #c58f2b 0%, #9f5608 48%, #c58f2b 100%) center / calc(100% - 28px) 1px no-repeat,
        radial-gradient(circle, #bf7818 0 1px, transparent 1.2px) calc(100% - 18px) center / 7px 7px no-repeat,
        radial-gradient(circle, #9f5608 0 1.35px, transparent 1.55px) right center / 8px 8px no-repeat;
    content: "";
}

/* タイトル画像 */
#page-title {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 720px);
    aspect-ratio: 2508 / 627;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    white-space: nowrap;
    user-select: none;
    background-image: url("../images/menu/menu-title-plate-gold.png");
    background-image: -webkit-image-set(
        url("../images/menu/menu-title-plate-gold-720.webp") 1x,
        url("../images/menu/menu-title-plate-gold-1280.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/menu-title-plate-gold-720.webp") type("image/webp") 1x,
        url("../images/menu/menu-title-plate-gold-1280.webp") type("image/webp") 2x
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

#page-title::before,
#page-title::after {
    display: none;
    content: none;
}

.menu-lead {
    position: relative;
    z-index: 1;
    margin: 20px 0 24px;
    color: #221108;
    font-weight: 500;
    line-height: 1.85;
}

.menu-lead-line--theme {
    display: block;
}

.menu-choice {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.menu-card {
    position: relative;
    display: flex;
    min-height: 0;
    padding: 16px 16px 14px;
    flex-direction: column;
    text-align: left;
    background-color: #fffaf0;
    border: 1px solid #dfb754;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(72, 48, 20, 0.05);
}

.menu-card::before {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(211, 166, 59, 0.32);
    border-radius: 10px;
    content: "";
    pointer-events: none;
}

.menu-card-heading {
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: none;
}

.menu-card-heading::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(225, 191, 98, 0.55) 0%,
        #d4a13f 18%,
        #e6c56d 50%,
        #d4a13f 82%,
        rgba(225, 191, 98, 0.55) 100%
    );
    content: "";
}

.menu-card-heading::after {
    position: absolute;
    z-index: 1;
    bottom: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #d9a442;
    border: 1px solid #fff8e8;
    box-shadow: 0 0 0 1px rgba(169, 111, 24, 0.38);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.menu-card-count {
    margin: 0 0 4px;
    color: #804003;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.18em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.menu-card h2 {
    margin: 0;
    color: #130903;
    font-size: clamp(1.15rem, 2.1vw, 1.42rem);
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.menu-card-description {
    min-height: 54px;
    margin: 11px 0 8px;
    color: #241107;
    font-weight: 500;
    line-height: 1.62;
}


.menu-card-label {
    margin: 2px 0 7px;
    color: #231006;
    font-size: 0.92rem;
    font-weight: bold;
    text-align: center;
}

/* テーマ一覧 */
.theme-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-list li {
    display: inline-flex;
    min-height: auto;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    color: #241107;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    transition: none;
}

.theme-list li::before {
    content: "◆";
    margin-right: 0.42em;
    color: #d4a13f;
    font-size: 0.78em;
    line-height: 1;
    transform: translateY(-0.02em);
}

.theme-list li:hover {
    border: none;
    box-shadow: none;
    transform: none;
}

/* スリーカード・ヘキサグラム */
.theme-list:not(.theme-list--four):not(.theme-list--two-choice) {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    justify-items: start;
    gap: 8px 18px;
    width: auto;
    margin: 0 auto;
}

.theme-list:not(.theme-list--four):not(.theme-list--two-choice) li {
    min-width: 0;
}

/* 二者択一：現在地と2つの選択肢を区別する表示 */
.theme-list.theme-list--two-choice {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    justify-items: start;
    align-items: center;
    gap: 7px 18px;
    width: auto;
    margin: 0 auto;
}

.theme-list--two-choice .two-choice-summary-item {
    gap: 0.42em;
}

.theme-list--two-choice .two-choice-summary-item::before {
    display: none;
    content: none;
}

.two-choice-badge {
    display: inline-flex;
    width: 1.28rem;
    height: 1.28rem;
    flex: 0 0 1.28rem;
    align-items: center;
    justify-content: center;
    color: #4b2508;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff1bd 0%, #e7b54b 58%, #ca8420 100%);
    border: 1px solid #9b5c14;
    border-radius: 50%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 1px 2px rgba(91, 48, 10, 0.18);
}

.two-choice-compass {
    position: relative;
    display: inline-block;
    width: 1.34rem;
    height: 1.34rem;
    flex: 0 0 1.34rem;
    background:
        radial-gradient(circle at center, #6f3709 0 0.11rem, transparent 0.12rem),
        radial-gradient(circle at center, #fff8dd 0 43%, #e6b34b 44% 55%, #9d5d15 56% 61%, transparent 62%);
    border-radius: 50%;
    filter: drop-shadow(0 1px 1px rgba(87, 47, 13, 0.18));
}

.two-choice-compass::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.28rem;
    height: 1rem;
    background: linear-gradient(180deg, #8d3f0a 0 48%, #f4cd70 49% 100%);
    clip-path: polygon(50% 0, 100% 48%, 50% 100%, 0 52%);
    content: "";
    transform: translate(-50%, -50%) rotate(35deg);
    transform-origin: center;
}

.two-choice-compass::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.19rem;
    height: 0.19rem;
    background: #fff4c8;
    border: 1px solid #7e3f0c;
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
}

/* ワンオラクル */
.theme-list--four {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: center;
    justify-items: start;
    align-items: start;
    gap: 10px 20px;
    width: auto;
    margin: 0 auto;
}

.theme-list--four li {
    width: auto;
}

/* 開始ボタン */
.menu-start-button,
.menu-start-button:visited {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    color: #241206;
    font-size: 1.12rem;
    font-weight: bold;
    text-decoration: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.36) 0%,
            rgba(255, 255, 255, 0.14) 18%,
            rgba(255, 255, 255, 0) 44%
        ),
        linear-gradient(
            180deg,
            #ffd98f 0%,
            #f6a63b 44%,
            #dd7d1a 100%
        );
    border: 2px solid #7a421b;
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        inset 0 -2px 0 rgba(128, 69, 29, 0.18),
        0 4px 0 #99552a;
    text-shadow: 0 1px 0 rgba(255, 248, 236, 0.55);
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-start-button:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -2px 0 rgba(128, 69, 29, 0.18),
        0 6px 0 #99552a;
    transform: translateY(-2px);
}

.menu-start-button:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -2px 0 rgba(128, 69, 29, 0.2),
        0 1px 0 #99552a;
    transform: translateY(2px);
}

.menu-start-button:focus-visible {
    outline: 3px solid #4b7d9e;
    outline-offset: 3px;
}

.menu-note {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    line-height: 1.75;
}

/*
PC版だけ：
テーマの位置は変えず、カード高さを24px増やす。
開始ボタン4つだけが同じ高さのまま下がる。
*/
@media (min-width: 961px) {
    #page-title {
        width: min(100%, 540px);
    }

    .menu-start-button {
        width: min(60%, 240px);
        min-height: 40px;
        align-self: center;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 0.96rem;
    }
}

@media (max-width: 960px) {
    .menu-choice {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: 0;
    }

    .menu-card-description {
        min-height: 0;
    }

    .menu-start-button {
        margin-top: 22px;
    }
}

@media (max-width: 600px) {
    .tarot-menu-panel {
        background-image:
            linear-gradient(rgba(255, 253, 247, 0.20), rgba(255, 250, 238, 0.20)),
            url("../images/menu/menu-stage1-parchment-sp.png");
        background-image:
            linear-gradient(rgba(255, 253, 247, 0.20), rgba(255, 250, 238, 0.20)),
            -webkit-image-set(
                url("../images/menu/menu-stage1-parchment-sp.webp") 1x,
                url("../images/menu/menu-stage1-parchment-sp.png") 1x
            );
        background-image:
            linear-gradient(rgba(255, 253, 247, 0.20), rgba(255, 250, 238, 0.20)),
            image-set(
                url("../images/menu/menu-stage1-parchment-sp.webp") type("image/webp") 1x,
                url("../images/menu/menu-stage1-parchment-sp.png") type("image/png") 1x
            );
        background-position: center top;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .tarot-menu-page {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        overflow-x: clip;
        background-image: none;
        background-color: #07142d;
        background-attachment: scroll;
    }

    .tarot-menu-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 52px 15px 60px;
    }

    .tarot-menu-panel::before {
        inset: -6px;
        border-width: 24px;
        border-image-source: url("../images/menu/menu-panel-frame-9slice-sp.png");
        border-image-source: -webkit-image-set(
            url("../images/menu/menu-panel-frame-9slice-sp.webp") 1x,
            url("../images/menu/menu-panel-frame-9slice-sp.png") 1x
        );
        border-image-source: image-set(
            url("../images/menu/menu-panel-frame-9slice-sp.webp") type("image/webp") 1x,
            url("../images/menu/menu-panel-frame-9slice-sp.png") type("image/png") 1x
        );
        border-image-slice: 110 110 110 110;
        border-image-width: 24px;
        border-image-repeat: stretch;
    }

    .tarot-menu-panel::after {
        top: 14px;
        width: 38px;
        height: 38px;
    }

    .menu-kicker {
        gap: 9px;
        font-size: 0.72rem;
    }

    .menu-kicker::before,
    .menu-kicker::after {
        width: clamp(25px, 8vw, 31px);
        flex-basis: clamp(25px, 8vw, 31px);
    }

    #page-title {
        width: calc(100% + 24px);
        max-width: none;
        margin-right: -12px;
        margin-left: -12px;
        background-image: url("../images/menu/menu-title-plate-gold.png");
        background-image: -webkit-image-set(
            url("../images/menu/menu-title-plate-gold-360.webp") 1x,
            url("../images/menu/menu-title-plate-gold-720.webp") 2x
        );
        background-image: image-set(
            url("../images/menu/menu-title-plate-gold-360.webp") type("image/webp") 1x,
            url("../images/menu/menu-title-plate-gold-720.webp") type("image/webp") 2x
        );
    }

    .menu-lead {
        width: min(100%, 31em);
        margin: 18px auto 22px;
        padding: 0 4px;
        color: #221108;
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1.9;
        text-align: left;
    }

    .menu-lead-line {
        display: block;
    }

    .menu-choice,
    .menu-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .menu-card {
        padding: 18px 14px 15px;
    }

    .menu-card-description {
        min-height: 0;
        margin-top: 14px;
        margin-bottom: 14px;
        color: #241107;
        font-size: 1rem;
        line-height: 1.74;
    }

    .menu-card-label {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .menu-card-label {
        color: #231006;
        font-size: 1rem;
    }

    .theme-list {
        gap: 10px 14px;
    }

    .theme-list li {
        color: #241107;
        font-size: 1rem;
    }

    .theme-list--four {
        gap: 10px 20px;
    }

    .theme-list:not(.theme-list--four):not(.theme-list--two-choice) {
        grid-template-columns: repeat(3, max-content);
        gap: 10px 14px;
    }

    .theme-list.theme-list--two-choice {
        grid-template-columns: repeat(2, max-content);
        grid-template-areas:
            "current current"
            "choice-a choice-b";
        gap: 10px 20px;
    }

    .two-choice-summary-item--current {
        grid-area: current;
        justify-self: center;
    }

    .two-choice-summary-item--a {
        grid-area: choice-a;
    }

    .two-choice-summary-item--b {
        grid-area: choice-b;
    }

    .menu-start-button {
        width: min(82%, 260px);
        min-height: 50px;
        align-self: center;
        font-size: 1.06rem;
    }

    .menu-note {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .tarot-menu-page {
        padding-right: 9px;
        padding-left: 9px;
    }

    .tarot-menu-panel {
        padding-right: 13px;
        padding-left: 13px;
    }

    #page-title {
        width: calc(100% + 16px);
        margin-right: -8px;
        margin-left: -8px;
    }

    .theme-list.theme-list--two-choice {
        column-gap: 15px;
    }
}


/* ========================================
   デスクトップ版のみ：文字サイズ調整
   スマホ版には影響しない
======================================== */
@media (min-width: 961px) {
    /* タイトル下の案内文 */
    .menu-lead {
        font-size: 1.08rem;
    }

    /* CARD数表記 */
    .menu-card-count {
        font-size: 0.84rem;
    }

    /* ワンオラクル／スリーカード／二者択一／ヘキサグラム */
    .menu-card h2 {
        font-size: 1.55rem;
    }

    /* 各カードの説明文 */
    .menu-card-description {
        font-size: 1.04rem;
        line-height: 1.62;
    }

    /* 選べるテーマ */
    .menu-card-label {
        font-size: 1rem;
    }

    /* 本日の運勢・総合運など */
    .theme-list {
        min-height: 46px;
        align-content: center;
        align-items: center;
    }

    .menu-card-heading {
        padding-bottom: 9px;
    }

    .menu-card-description {
        margin-top: 10px;
        margin-bottom: 7px;
    }

    .menu-start-button {
        margin-top: 10px;
    }

    .theme-list li {
        font-size: 1rem;
    }
}

/* ========================================
   トップページ：タロット入門への案内
======================================== */
.menu-guide-entry {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 920px);
    margin: 24px auto 0;
    padding: 17px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    background: rgba(255, 250, 238, 0.84);
    border: 1px solid rgba(191, 132, 38, 0.56);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(72, 48, 20, 0.06);
}

.menu-guide-copy h2 {
    margin: 0 0 5px;
    color: #3c1e0b;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.16rem;
    line-height: 1.5;
}

.menu-guide-copy p {
    margin: 0;
    color: #3d2518;
    font-size: 0.94rem;
    line-height: 1.75;
}

.menu-guide-entry > a,
.menu-guide-entry > a:visited {
    display: inline-flex;
    min-width: 158px;
    min-height: 40px;
    padding: 7px 13px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #2b1608;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, #ffe1a5 0%, #f6b957 52%, #e69a32 100%);
    border: 1px solid #9a5a17;
    border-radius: 20px;
    box-shadow: 0 2px 0 rgba(119, 67, 20, 0.28);
}

.menu-guide-entry > a:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.menu-guide-entry > a:focus-visible {
    outline: 3px solid #4b7d9e;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .menu-guide-entry {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .menu-guide-entry > a {
        width: auto;
        min-width: 158px;
        align-self: center;
    }
}

/* ========================================
   Webデザイン改善 第1工程：トップページ PC版
   2026-08-07
   現行の華やかさを残しつつ、カード・文字・CTAを現代化。
   スマホ版には適用しない。
======================================== */
@media (min-width: 961px) {
    .menu-choice {
        gap: 16px;
    }

    .menu-card {
        padding: 17px 17px 15px;
        background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 70%, #fff8eb 100%);
        border-color: rgba(198, 143, 43, 0.88);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.62),
            0 4px 12px rgba(72, 48, 20, 0.065);
    }

    .menu-card::before {
        inset: 5px;
        border-color: rgba(211, 166, 59, 0.30);
    }

    .menu-card-heading {
        padding-bottom: 10px;
    }

    .menu-card-heading::before {
        background: linear-gradient(
            90deg,
            rgba(225, 191, 98, 0.38) 0%,
            rgba(195, 139, 42, 0.76) 20%,
            #dfb65a 50%,
            rgba(195, 139, 42, 0.76) 80%,
            rgba(225, 191, 98, 0.38) 100%
        );
    }

    .menu-card-heading::after {
        bottom: -3px;
        width: 6px;
        height: 6px;
        background: #d7a142;
        border-color: #fff8e8;
        box-shadow: 0 0 0 1px rgba(169, 111, 24, 0.28);
    }

    .menu-card-count {
        margin-bottom: 5px;
        color: #884b12;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 0.84rem;
        font-weight: 700;
        letter-spacing: 0.17em;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.46);
    }

    .menu-card h2 {
        color: #1d0f06;
        font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
        font-size: 1.55rem;
        font-weight: 600;
        letter-spacing: 0.012em;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
    }

    .menu-card-description {
        margin-top: 11px;
        margin-bottom: 8px;
        color: #28150a;
        font-size: 1.04rem;
        font-weight: 500;
        line-height: 1.66;
    }

    .menu-card-label {
        margin-top: 2px;
        margin-bottom: 8px;
        color: #2d170b;
        font-size: 1rem;
        font-weight: 700;
    }

    .theme-list {
        min-height: 46px;
        gap: 8px 18px;
    }

    .theme-list li {
        color: #28160b;
        font-size: 1rem;
        font-weight: 500;
    }

    .menu-start-button,
    .menu-start-button:visited {
        width: min(62%, 250px);
        min-height: 48px;
        margin-top: 12px;
        padding: 9px 18px;
        align-self: center;
        font-size: 1rem;
    }

    .menu-guide-entry {
        margin-top: 26px;
        background: rgba(255, 250, 238, 0.80);
        border-color: rgba(185, 129, 38, 0.48);
        box-shadow: 0 3px 9px rgba(72, 48, 20, 0.05);
    }

    .menu-guide-entry > a,
    .menu-guide-entry > a:visited {
        min-height: 44px;
        padding: 8px 15px;
        color: #43250f;
        background: linear-gradient(180deg, rgba(255, 252, 243, 0.90) 0%, rgba(241, 221, 181, 0.70) 100%);
        border: 1px solid rgba(158, 105, 29, 0.72);
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(93, 54, 17, 0.10);
    }

    .menu-guide-entry > a:hover {
        background: linear-gradient(180deg, rgba(255, 253, 246, 0.96) 0%, rgba(238, 213, 162, 0.76) 100%);
        filter: none;
        box-shadow: 0 3px 7px rgba(93, 54, 17, 0.12);
        transform: translateY(-1px);
    }
}

/* ========================================
   Webデザイン改善 第2工程：トップページ スマホ版
   2026-08-07
   390pxを重点基準に、PC第1工程の方向性をスマホへ最適化。
   世界観は維持し、文字・CTA・余白を現代化する。
======================================== */
@media (max-width: 600px) {
    .menu-lead {
        margin-top: 20px;
        margin-bottom: 24px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 1rem;
        line-height: 1.82;
    }

    .menu-choice {
        gap: 16px;
    }

    .menu-card {
        padding: 18px 14px 16px;
        background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 72%, #fff8eb 100%);
        border-color: rgba(198, 143, 43, 0.88);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.60),
            0 4px 11px rgba(72, 48, 20, 0.06);
    }

    .menu-card::before {
        border-color: rgba(211, 166, 59, 0.30);
    }

    .menu-card-heading {
        padding-bottom: 10px;
    }

    .menu-card-heading::before {
        background: linear-gradient(
            90deg,
            rgba(225, 191, 98, 0.38) 0%,
            rgba(195, 139, 42, 0.76) 20%,
            #dfb65a 50%,
            rgba(195, 139, 42, 0.76) 80%,
            rgba(225, 191, 98, 0.38) 100%
        );
    }

    .menu-card-heading::after {
        background: #d7a142;
        box-shadow: 0 0 0 1px rgba(169, 111, 24, 0.28);
    }

    .menu-card-count {
        margin-bottom: 5px;
        color: #884b12;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.17em;
    }

    .menu-card h2 {
        color: #1d0f06;
        font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
        font-size: 1.34rem;
        font-weight: 600;
        line-height: 1.45;
        letter-spacing: 0.012em;
    }

    .menu-card-description {
        margin-top: 14px;
        margin-bottom: 14px;
        color: #28150a;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.76;
    }

    .menu-card-label {
        margin-bottom: 11px;
        color: #2d170b;
        font-size: 1rem;
        font-weight: 700;
    }

    .theme-list li {
        color: #28160b;
        font-size: 1rem;
        font-weight: 500;
    }

    .menu-start-button,
    .menu-start-button:visited {
        width: calc(100% - 20px);
        max-width: 285px;
        min-height: 52px;
        margin-top: 20px;
        padding: 10px 16px;
        align-self: center;
        font-size: 1.05rem;
    }

    .menu-guide-entry {
        margin-top: 24px;
        padding: 17px 15px;
        gap: 14px;
        background: rgba(255, 250, 238, 0.80);
        border-color: rgba(185, 129, 38, 0.48);
        box-shadow: 0 3px 9px rgba(72, 48, 20, 0.05);
    }

    .menu-guide-copy h2 {
        font-size: 1.18rem;
    }

    .menu-guide-copy p {
        font-size: 0.96rem;
        line-height: 1.78;
    }

    .menu-guide-entry > a,
    .menu-guide-entry > a:visited {
        width: min(100%, 260px);
        min-height: 44px;
        padding: 8px 14px;
        color: #43250f;
        font-size: 0.95rem;
        background: linear-gradient(180deg, rgba(255, 252, 243, 0.92) 0%, rgba(241, 221, 181, 0.72) 100%);
        border: 1px solid rgba(158, 105, 29, 0.72);
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(93, 54, 17, 0.10);
    }
}

/* ===== site-footer.css ===== */
/* ========================================
   全ページ共通フッター
======================================== */
.site-footer {
    width: 100%;
    margin: 0;
    padding: 20px 16px 22px;
    color: #f7e8c2;
    text-align: center;
    background: #07142d;
    border-top: 1px solid rgba(218, 170, 68, 0.72);
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 22px;
    width: min(100%, 900px);
    margin: 0 auto;
}

.site-footer-nav a,
.site-footer-nav a:visited {
    color: #f7e8c2;
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: underline;
    text-decoration-color: rgba(218, 170, 68, 0.7);
    text-underline-offset: 0.24em;
}

.site-footer-nav a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.site-footer-nav a:focus-visible {
    outline: 3px solid #f0c967;
    outline-offset: 4px;
    border-radius: 3px;
}

.site-footer-copyright {
    margin: 13px 0 0;
    color: rgba(247, 232, 194, 0.82);
    font-size: 0.8rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 18px 12px 20px;
    }

    .site-footer-nav {
        gap: 7px 16px;
    }

    .site-footer-nav a,
    .site-footer-nav a:visited {
        font-size: 0.82rem;
    }
}

/* ===== interaction-enhancements.css ===== */
/* =========================================================
   まほら UI改善（2026-07-22）
   ・タイトルの控えめなシマー
   ・テーマ別アイコン
   ・ボタンの角丸と弱いGlow
   ========================================================= */

/* ---------- タイトル：シマーエフェクト（TOPタイトルのみ） ---------- */
.tarot-menu-page #page-title::after {
    position: absolute;
    z-index: 2;
    top: -18%;
    bottom: -18%;
    left: -42%;
    display: block;
    width: 20%;
    content: "";
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 252, 225, 0.08) 28%,
        rgba(255, 255, 255, 0.58) 50%,
        rgba(255, 241, 181, 0.14) 68%,
        rgba(255, 255, 255, 0) 100%
    );
    filter: blur(0.6px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20%) skewX(-18deg);
    animation: mahora-title-shimmer 11s ease-in-out 3.8s infinite;
    mix-blend-mode: screen;
}

@keyframes mahora-title-shimmer {
    0%, 7% {
        opacity: 0;
        transform: translateX(-20%) skewX(-18deg);
    }

    9% {
        opacity: 0.68;
    }

    21% {
        opacity: 0.68;
        transform: translateX(610%) skewX(-18deg);
    }

    23%, 100% {
        opacity: 0;
        transform: translateX(610%) skewX(-18deg);
    }
}

/* ---------- 「選べるテーマ」：内容別アイコン ---------- */
.theme-list .theme-item::before {
    width: 1.46em;
    height: 1.46em;
    margin-right: 0.42em;
    flex: 0 0 1.46em;
    content: "";
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 1px 0 rgba(104, 55, 9, 0.24));
    transform: translateY(-0.01em);
}

.theme-item--sun::before {
    background-image: url("../images/menu/theme-icons/icon-sun.png");
    background-image: -webkit-image-set(
        url("../images/menu/theme-icons/icon-sun-32.webp") 1x,
        url("../images/menu/theme-icons/icon-sun-64.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/theme-icons/icon-sun-32.webp") type("image/webp") 1x,
        url("../images/menu/theme-icons/icon-sun-64.webp") type("image/webp") 2x
    );
}

.theme-item--heart::before {
    background-image: url("../images/menu/theme-icons/icon-heart.png");
    background-image: -webkit-image-set(
        url("../images/menu/theme-icons/icon-heart-32.webp") 1x,
        url("../images/menu/theme-icons/icon-heart-64.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/theme-icons/icon-heart-32.webp") type("image/webp") 1x,
        url("../images/menu/theme-icons/icon-heart-64.webp") type("image/webp") 2x
    );
}

.theme-item--briefcase::before {
    background-image: url("../images/menu/theme-icons/icon-briefcase.png");
    background-image: -webkit-image-set(
        url("../images/menu/theme-icons/icon-briefcase-32.webp") 1x,
        url("../images/menu/theme-icons/icon-briefcase-64.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/theme-icons/icon-briefcase-32.webp") type("image/webp") 1x,
        url("../images/menu/theme-icons/icon-briefcase-64.webp") type("image/webp") 2x
    );
}

.theme-item--talk-heart::before {
    background-image: url("../images/menu/theme-icons/icon-talk-heart.png");
    background-image: -webkit-image-set(
        url("../images/menu/theme-icons/icon-talk-heart-32.webp") 1x,
        url("../images/menu/theme-icons/icon-talk-heart-64.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/theme-icons/icon-talk-heart-32.webp") type("image/webp") 1x,
        url("../images/menu/theme-icons/icon-talk-heart-64.webp") type("image/webp") 2x
    );
}

.theme-item--crystal-ball::before {
    background-image: url("../images/menu/theme-icons/icon-crystal-ball.png");
    background-image: -webkit-image-set(
        url("../images/menu/theme-icons/icon-crystal-ball-32.webp") 1x,
        url("../images/menu/theme-icons/icon-crystal-ball-64.webp") 2x
    );
    background-image: image-set(
        url("../images/menu/theme-icons/icon-crystal-ball-32.webp") type("image/webp") 1x,
        url("../images/menu/theme-icons/icon-crystal-ball-64.webp") type("image/webp") 2x
    );
}

/* ---------- ボタン：視認性を維持したまま立体感とGlowを追加 ---------- */
.menu-start-button,
.top-menu-link,
.back-to-menu-button,
.top-menu-button,
.button-area button,
#repeat-button,
.replay-modal-buttons button,
.retry-button,
.retry-confirm-button,
.retry-cancel-button,
.retry-confirm-submit,
.retry-confirm-cancel,
.site-info-back a,
.contact-mail-button {
    color: #211008;
    border-radius: 13px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .menu-start-button:hover,
    .button-area button:not(:disabled):hover,
    #repeat-button:hover,
    .replay-modal-buttons button:hover,
    .retry-button:hover,
    .retry-confirm-button:hover,
    .retry-confirm-submit:hover,
    .contact-mail-button:hover {
        filter: brightness(1.035) saturate(1.04);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            0 5px 0 rgba(153, 85, 42, 0.96),
            0 0 13px rgba(224, 153, 43, 0.48);
    }

    .top-menu-link:hover,
    .back-to-menu-button:hover,
    .top-menu-button:hover,
    .site-info-back a:hover,
    .retry-cancel-button:hover,
    .retry-confirm-cancel:hover,
    .cancel-replay-button:hover {
        filter: brightness(1.025);
        box-shadow:
            0 4px 0 rgba(205, 163, 96, 0.86),
            0 0 11px rgba(218, 164, 66, 0.30);
    }
}

/* タップ時は発光ではなく、押し込まれる感触を優先 */
.menu-start-button:active,
.top-menu-link:active,
.back-to-menu-button:active,
.top-menu-button:active,
.button-area button:not(:disabled):active,
#repeat-button:active,
.replay-modal-buttons button:active,
.retry-button:active,
.retry-confirm-button:active,
.retry-cancel-button:active,
.retry-confirm-submit:active,
.retry-confirm-cancel:active,
.site-info-back a:active,
.contact-mail-button:active {
    filter: brightness(0.99);
}

@media (prefers-reduced-motion: reduce) {
    .tarot-menu-page #page-title::after {
        display: none;
        animation: none;
    }
}

/* ========================================
   トップページ PC版 CTA：第1工程 最終上書き
   汎用interaction指定より後に置き、トップCTAだけを整理する。
======================================== */
@media (min-width: 961px) {
    .menu-start-button,
    .menu-start-button:visited {
        color: #291507;
        letter-spacing: 0.005em;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.10) 32%, rgba(255, 255, 255, 0) 54%),
            linear-gradient(180deg, #f7d27a 0%, #e4a039 100%);
        border: 1px solid #8c551d;
        border-radius: 20px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.76),
            inset 0 -1px 0 rgba(119, 66, 17, 0.12),
            0 2px 0 rgba(133, 74, 24, 0.44),
            0 5px 11px rgba(90, 51, 15, 0.18);
        text-shadow: 0 1px 0 rgba(255, 247, 226, 0.40);
        transition:
            transform 180ms ease,
            box-shadow 180ms ease,
            filter 180ms ease;
    }

    .menu-start-button:hover {
        filter: brightness(1.035) saturate(1.015);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.82),
            inset 0 -1px 0 rgba(119, 66, 17, 0.10),
            0 3px 0 rgba(133, 74, 24, 0.40),
            0 6px 13px rgba(90, 51, 15, 0.21);
        transform: translateY(-1px);
    }

    .menu-start-button:active {
        filter: brightness(0.99);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.64),
            inset 0 -1px 0 rgba(119, 66, 17, 0.14),
            0 1px 0 rgba(133, 74, 24, 0.38),
            0 3px 7px rgba(90, 51, 15, 0.16);
        transform: translateY(1px);
    }
}

/* ========================================
   トップページ スマホ版 CTA：第2工程 最終上書き
   2026-08-07
   PC版の上質な金属感を、タッチ操作向けに最適化する。
======================================== */
@media (max-width: 600px) {
    .menu-start-button,
    .menu-start-button:visited {
        color: #291507;
        letter-spacing: 0.005em;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.11) 32%, rgba(255, 255, 255, 0) 54%),
            linear-gradient(180deg, #f8d47f 0%, #e5a13b 100%);
        border: 1px solid #8c551d;
        border-radius: 20px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.78),
            inset 0 -1px 0 rgba(119, 66, 17, 0.12),
            0 2px 0 rgba(133, 74, 24, 0.42),
            0 5px 11px rgba(90, 51, 15, 0.17);
        text-shadow: 0 1px 0 rgba(255, 247, 226, 0.42);
        transition:
            transform 180ms ease,
            box-shadow 180ms ease,
            filter 180ms ease;
    }

    .menu-start-button:active {
        filter: brightness(0.99);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.64),
            inset 0 -1px 0 rgba(119, 66, 17, 0.14),
            0 1px 0 rgba(133, 74, 24, 0.36),
            0 3px 7px rgba(90, 51, 15, 0.15);
        transform: translateY(1px);
    }
}


/* 2026-08-07 final visual correction: top CTA */
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
    .menu-start-button:hover {
        filter: brightness(1.10) saturate(1.06);
        border-color: #a5661f;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            inset 0 -1px 0 rgba(119, 66, 17, 0.08),
            0 3px 0 rgba(133, 74, 24, 0.42),
            0 9px 18px rgba(90, 51, 15, 0.25);
        transform: translateY(-2px);
    }
}

@media (max-width: 600px) {
    .menu-start-button,
    .menu-start-button:visited {
        width: 210px;
        max-width: calc(100% - 32px);
        padding-left: 12px;
        padding-right: 12px;
        white-space: nowrap;
    }
}

/* ========================================
   2026-08-07 top controls final correction
   - mobile primary/guide CTA width consistency
   - clearer desktop hover feedback
======================================== */
@media (max-width: 600px) {
    .menu-start-button,
    .menu-start-button:visited,
    .menu-guide-entry > a,
    .menu-guide-entry > a:visited {
        width: 210px;
        max-width: calc(100% - 32px);
        white-space: nowrap;
    }
}

@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
    .menu-start-button:hover {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0) 54%),
            linear-gradient(180deg, #fbe096 0%, #edae48 100%);
        filter: brightness(1.08) saturate(1.07);
        border-color: #b37122;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.94),
            inset 0 -1px 0 rgba(119, 66, 17, 0.07),
            0 3px 0 rgba(133, 74, 24, 0.40),
            0 10px 20px rgba(90, 51, 15, 0.28);
        transform: translateY(-2px);
    }

    .menu-guide-entry > a:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 224, 181, 0.90) 100%);
        filter: brightness(1.06) saturate(1.04);
        border-color: rgba(169, 108, 29, 0.92);
        box-shadow:
            0 2px 0 rgba(135, 81, 22, 0.18),
            0 7px 14px rgba(93, 54, 17, 0.18);
        transform: translateY(-2px);
    }
}

/* 2026-08-07: PC「初めての方へ」説明文の不自然な孤立改行を解消 */
.menu-guide-pc-line {
    display: inline;
}

@media (min-width: 961px) {
    .menu-guide-pc-line {
        display: block;
    }
}


/* ========================================
   2026-08-07 トップ「初めての方へ」PCリファイン
   Secondary Contentとして、コピーと導線を一体化して見せる。
   スマホ版の縦並びには影響させない。
======================================== */
@media (min-width: 961px) {
    .menu-guide-entry {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 210px;
        column-gap: 32px;
        align-items: center;
        width: min(100%, 920px);
        margin-top: 28px;
        padding: 18px 22px;
        text-align: left;
        background: linear-gradient(180deg, rgba(255, 253, 247, 0.91) 0%, rgba(255, 248, 234, 0.82) 100%);
        border-color: rgba(185, 129, 38, 0.50);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.54),
            0 4px 12px rgba(72, 48, 20, 0.055);
    }

    .menu-guide-entry::after {
        content: "";
        position: absolute;
        top: 19px;
        right: 248px;
        bottom: 19px;
        width: 1px;
        background: linear-gradient(
            180deg,
            rgba(185, 129, 38, 0) 0%,
            rgba(185, 129, 38, 0.28) 24%,
            rgba(185, 129, 38, 0.34) 50%,
            rgba(185, 129, 38, 0.28) 76%,
            rgba(185, 129, 38, 0) 100%
        );
        pointer-events: none;
    }

    .menu-guide-copy {
        min-width: 0;
        padding-left: 1px;
    }

    .menu-guide-copy h2 {
        margin: 0 0 6px;
        font-size: 1.18rem;
        font-weight: 600;
        line-height: 1.45;
        letter-spacing: 0.025em;
    }

    .menu-guide-copy p {
        max-width: none;
        margin: 0;
        font-size: 0.96rem;
        line-height: 1.82;
        text-wrap: pretty;
    }

    .menu-guide-entry > a,
    .menu-guide-entry > a:visited {
        width: 210px;
        min-width: 210px;
        min-height: 44px;
        justify-self: end;
        align-self: center;
    }
}

/* 旧PC専用の強制改行は廃止 */
.menu-guide-pc-line {
    display: inline !important;
}

/* 2026-08-07: PC「初めての方へ」説明文を意味のまとまりで2行に整える */
.menu-guide-pc-line {
    display: inline !important;
}
@media (min-width: 961px) {
    .menu-guide-pc-line {
        display: block !important;
    }
}

/* ========================================
   2026-08-20 tablet / small desktop CTA correction
   - 601px〜960pxで開始ボタンが横幅いっぱいに膨らみすぎないよう調整
======================================== */
@media (min-width: 601px) and (max-width: 960px) {
    .menu-start-button,
    .menu-start-button:visited {
        width: min(100%, 320px);
        min-height: 48px;
        margin-top: 16px;
        align-self: center;
        font-size: 1rem;
    }

    .menu-guide-entry > a,
    .menu-guide-entry > a:visited {
        width: min(100%, 240px);
        min-width: 0;
        min-height: 42px;
        align-self: center;
    }
}


/* YES/NO追加後も、横並びのメニューカードの開始ボタンを下端に揃える。 */
@media (min-width: 961px) {
    .menu-card > .theme-list {
        margin-bottom: 12px;
    }

    .menu-card > .menu-start-button {
        margin-top: auto;
    }
}
