/* ========================================
   タロット入門・解説ページ
   図解はHTML/CSSとサイト内の既存カード画像で構成
======================================== */
.guide-page .site-info-panel {
    width: min(100%, 1040px);
}

.guide-page .site-info-content {
    width: min(100%, 820px);
}

.guide-title-break {
    display: none;
}

.guide-top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}

.guide-top-nav a,
.guide-top-nav a:visited {
    min-width: 0;
    min-height: 0;
    padding: 5px 2px;
    color: #6f390a;
    text-decoration: underline;
    text-decoration-color: rgba(155, 94, 23, 0.65);
    text-underline-offset: 0.22em;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.guide-top-nav a:hover {
    color: #9a520c;
    background: transparent;
}

.guide-content strong {
    color: #3e1f0b;
}

.guide-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guide-hub-card {
    position: relative;
    display: flex;
    min-height: 290px;
    padding: 22px 18px 20px;
    flex-direction: column;
    background: rgba(255, 251, 240, 0.88);
    border: 1px solid rgba(190, 130, 34, 0.52);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(72, 48, 20, 0.06);
}

.guide-hub-card h3 {
    margin: 4px 0 12px;
    color: #3d1f0b;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.12rem;
    line-height: 1.55;
}

.guide-hub-card p {
    font-size: 0.94rem;
    line-height: 1.82;
}

.guide-hub-number {
    margin: 0 !important;
    color: #b9781e;
    font-family: Georgia, serif;
    font-size: 1.7rem !important;
    font-weight: 700;
    line-height: 1 !important;
}

.guide-action-link,
.guide-action-link:visited {
    display: inline-flex;
    min-height: 0;
    margin-top: auto;
    padding: 7px 0 4px;
    align-items: center;
    justify-content: flex-start;
    color: #6f390a !important;
    font-weight: 700;
    line-height: 1.55;
    text-align: left;
    text-decoration: underline !important;
    text-decoration-color: rgba(155, 94, 23, 0.65) !important;
    text-underline-offset: 0.22em;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.guide-action-link:hover {
    color: #9a520c !important;
    filter: none;
    transform: none;
}

.guide-action-link:focus-visible,
.guide-bottom-nav a:focus-visible {
    outline: 3px solid #4b7d9e;
    outline-offset: 3px;
}

.guide-terms {
    display: grid;
    gap: 12px;
    margin: 0;
}

.guide-terms > div {
    display: grid;
    grid-template-columns: minmax(170px, 0.42fr) 1fr;
    overflow: hidden;
    background: rgba(255, 253, 247, 0.7);
    border: 1px solid rgba(181, 127, 36, 0.36);
    border-radius: 8px;
}

.guide-terms dt,
.guide-terms dd {
    padding: 13px 15px;
    font-size: 0.96rem;
    line-height: 1.75;
}

.guide-terms dt {
    color: #4a260c;
    font-weight: 700;
    background: rgba(247, 227, 180, 0.42);
}

.guide-terms dd {
    margin: 0;
}

.guide-visual {
    margin: 24px 0 28px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(255, 252, 242, 0.94), rgba(248, 229, 186, 0.6));
    border: 1px solid rgba(177, 114, 25, 0.52);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66), 0 4px 12px rgba(77, 47, 16, 0.08);
}

/* 78枚構成図 */
.tarot-composition {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 18px;
}

.composition-total {
    display: flex;
    width: 118px;
    height: 118px;
    align-items: baseline;
    justify-content: center;
    color: #3b1d09;
    background: radial-gradient(circle at 35% 30%, #fff8de 0%, #f2c66e 58%, #c27b22 100%);
    border: 3px double #8f5116;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(83, 49, 12, 0.18);
}

.composition-total strong {
    color: #2d1507;
    font-family: Georgia, serif;
    font-size: 3.15rem;
    line-height: 112px;
}

.composition-total span {
    font-weight: 700;
}

.composition-equation,
.composition-plus {
    color: #905715;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
}

.composition-main {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) auto minmax(260px, 1.28fr);
    align-items: stretch;
    gap: 12px;
}

.composition-major,
.composition-minor {
    display: flex;
    min-height: 118px;
    padding: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 253, 247, 0.82);
    border: 1px solid rgba(169, 104, 24, 0.55);
    border-radius: 10px;
}

.composition-major strong,
.composition-minor > strong {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.08rem;
}

.composition-major > span,
.composition-minor > span {
    margin-top: 4px;
    color: #6a390d;
    font-weight: 700;
}

.composition-plus {
    align-self: center;
}

.composition-suits {
    display: grid;
    width: 100%;
    margin-top: 10px;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.composition-suits span {
    padding: 7px 3px;
    color: #4a260c;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    background: rgba(247, 227, 180, 0.52);
    border-radius: 6px;
}

/* 正位置・逆位置図 */
.orientation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 6vw, 58px);
}

.orientation-item {
    display: flex;
    margin: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #4b270b;
}

.orientation-item figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.orientation-item figcaption strong {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.08rem;
}

.orientation-item figcaption span {
    font-size: 0.85rem;
}

.orientation-arrow {
    color: #9e6017;
    font-size: 2rem;
}

.orientation-card-image {
    display: block;
    width: clamp(96px, 13vw, 132px);
    height: auto;
    border: 1px solid rgba(72, 42, 14, 0.62);
    border-radius: 5px;
    box-shadow: 0 6px 14px rgba(26, 20, 20, 0.22);
}

.orientation-card-image-reversed {
    transform: rotate(180deg);
}

/* 1・3・7枚の簡潔な比較 */
.spread-summary {
    display: grid;
    margin: 24px 0 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.spread-summary p {
    display: flex;
    min-height: 92px;
    margin: 0 !important;
    padding: 14px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4b270b;
    text-align: center;
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(181, 127, 36, 0.36);
    border-radius: 10px;
}

.spread-summary strong {
    font-family: Georgia, serif;
    font-size: 1.46rem;
    line-height: 1.2;
}

.spread-summary span {
    margin-top: 5px;
    font-size: 0.92rem;
    font-weight: 700;
}

.guide-cta {
    margin-top: 20px !important;
    text-align: center;
}

.guide-cta .guide-action-link {
    min-width: 0;
}

.guide-choice-table th:first-child {
    width: 68%;
}

.guide-choice-table th:last-child {
    width: 32%;
}

.guide-references li {
    word-break: break-word;
}

.guide-bottom-nav {
    display: flex;
    margin-top: 38px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
}

.guide-bottom-nav a,
.guide-bottom-nav a:visited {
    display: inline-flex;
    min-height: 0;
    padding: 7px 0 4px;
    align-items: center;
    color: #6f390a;
    font-weight: 700;
    line-height: 1.55;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(155, 94, 23, 0.65);
    text-underline-offset: 0.22em;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.guide-bottom-nav a:last-child {
    margin-left: auto;
    text-align: right;
}

.guide-bottom-nav a:hover {
    color: #9a520c;
    background: transparent;
}

@media (max-width: 760px) {
    .guide-hub-grid {
        grid-template-columns: 1fr;
    }

    .guide-hub-card {
        min-height: 0;
    }

    .guide-action-link {
        margin-top: 8px;
    }

    .tarot-composition {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .composition-equation {
        transform: none;
    }

    .composition-main {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .composition-plus {
        justify-self: center;
    }

    .spread-summary {
        grid-template-columns: 1fr;
    }

    .spread-summary p {
        min-height: 76px;
    }
}

@media (max-width: 600px) {
    .guide-title-separator {
        display: none;
    }

    .guide-title-break {
        display: block;
    }

    .guide-top-nav {
        flex-direction: column;
        align-items: center;
    }

    .guide-top-nav a {
        width: auto;
    }

    .guide-terms > div {
        grid-template-columns: 1fr;
    }

    .guide-terms dt,
    .guide-terms dd {
        padding: 11px 13px;
    }

    .guide-visual {
        padding: 17px 12px;
    }

    .composition-suits {
        grid-template-columns: repeat(2, 1fr);
    }

    .orientation-visual {
        gap: 16px;
    }

        .orientation-arrow {
        font-size: 1.5rem;
    }

    .guide-choice-table,
    .guide-choice-table thead,
    .guide-choice-table tbody,
    .guide-choice-table tr,
    .guide-choice-table th,
    .guide-choice-table td {
        display: block;
        width: 100%;
    }

    .guide-choice-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .guide-choice-table tr + tr {
        margin-top: 12px;
    }

    .guide-choice-table td:first-child {
        font-weight: 600;
        background: rgba(247, 227, 180, 0.32);
    }

    .guide-bottom-nav {
        flex-direction: column;
    }

    .guide-bottom-nav a {
        width: auto;
        max-width: 100%;
    }

    .guide-bottom-nav a:last-child {
        align-self: flex-end;
    }
}
