/* ==========================================================
   旅の役割診断 スタイル
   レイアウトとベース(フォント・l-app)は本体の style.css を利用し、
   ここには診断固有のパーツのみを定義する。
   配色・角丸・ボタン形状は旅のしおり(p-plan-* / c-plan-btn-*)に合わせる。
   ========================================================== */

:root {
    --sd-primary: #46adb8;
    --sd-primary-dark: #3b919a;
    --sd-pale: #e1f2f3;
    --sd-pale-border: #addbe0;
    --sd-border: #e0f5f8;
    --sd-input-bg: #f2f5f8;
    --sd-text: #0b0b0b;
    --sd-muted: #8a9ab0;
    --sd-sub: #5a7080;
    --sd-pink: #f785b6;
    --sd-yellow: #fcd512;
    --sd-radius: 12px;
    --sd-shadow: 0 4px 24px rgba(70, 173, 184, 0.1);
}

.p-shindan-alert {
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff7df;
    border: 1px solid #f3e3a1;
    color: #8a6d1a;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── パネル内フッター ── */
.p-shindan-foot {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--sd-border);
    text-align: center;
}

.p-shindan-foot__note {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--sd-muted);
}

.p-shindan-foot__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 11px;
}

.p-shindan-foot__links a {
    color: var(--sd-muted);
    text-decoration: none;
}

.p-shindan-foot__links a:hover {
    color: var(--sd-primary);
}

/* ==========================================================
   トップ(MBTI選択)
   ========================================================== */

.p-shindan-hero {
    text-align: center;
    margin-bottom: 24px;
}

.p-shindan-hero__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    background: var(--sd-pale);
    border: 1px solid var(--sd-pale-border);
    color: var(--sd-primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.p-shindan-hero__title {
    margin: 14px 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.p-shindan-hero__lead {
    margin: 0;
    color: var(--sd-sub);
    font-size: 13px;
}

.p-shindan-step {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 99px;
    background: var(--sd-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.p-shindan-select__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.6;
}

.p-shindan-select__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .p-shindan-select__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.p-shindan-select__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 10px;
    border-radius: var(--sd-radius);
    background: #ffffff;
    border: 1.5px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.p-shindan-select__card:active,
.p-shindan-select__card:hover {
    transform: translateY(-2px);
    border-color: var(--sd-pale-border);
    box-shadow: 0 4px 14px rgba(70, 173, 184, 0.22);
    opacity: 1;
}

.p-shindan-select__code {
    font-size: 17px;
    font-weight: 800;
    color: var(--sd-primary);
    letter-spacing: 0.04em;
}

.p-shindan-select__label {
    font-size: 11px;
    color: var(--sd-muted);
    line-height: 1.45;
}

.p-shindan-select__unknown {
    margin-top: 18px;
    font-size: 12px;
    color: var(--sd-sub);
    text-align: center;
}

.p-shindan-select__unknown a {
    color: var(--sd-primary);
    font-weight: 700;
}

/* ==========================================================
   質問画面
   ========================================================== */

@media (max-width: 480px) {
    .p-shindan-quiz {
        padding-top: 40px;
    }
}

.p-shindan-quiz__progress {
    height: 6px;
    border-radius: 99px;
    background: var(--sd-pale);
    overflow: hidden;
}

.p-shindan-quiz__progress-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(-30deg, var(--sd-primary) 0%, #e79163 100%);
    transition: width 0.25s ease;
}

.p-shindan-quiz__counter {
    display: flex;
    justify-content: space-between;
    margin: 10px 2px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sd-muted);
}

.p-shindan-quiz__mbti {
    color: var(--sd-primary-dark);
    letter-spacing: 0.05em;
}

.p-shindan-quiz__card {
    background: #ffffff;
    border-radius: var(--sd-radius);
    border: 1px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
    padding: 22px 18px;
}

.p-shindan-quiz__text {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.p-shindan-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-shindan-quiz__option {
    padding: 13px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--sd-border);
    background: var(--sd-input-bg);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.p-shindan-quiz__option:hover,
.p-shindan-quiz__option:active {
    border-color: var(--sd-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(70, 173, 184, 0.12);
}

.p-shindan-quiz__option.is-selected {
    border-color: var(--sd-primary);
    background: var(--sd-pale);
    font-weight: 700;
}

.p-shindan-quiz__back {
    margin-top: 16px;
    border: none;
    background: none;
    color: var(--sd-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.p-shindan-quiz__back:hover {
    color: var(--sd-primary);
}

/* ==========================================================
   結果ページ
   ========================================================== */

.p-shindan-result__hero {
    text-align: center;
    padding: 26px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--sd-pale) 0%, #eff8f9 100%);
    border: 1px solid var(--sd-pale-border);
    margin-bottom: 20px;
}

.p-shindan-result__group {
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.p-shindan-result__group-chip {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 99px;
    background: #ffffff;
    border: 1.5px solid var(--sd-primary);
    color: var(--sd-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.p-shindan-result__group-chip--role {
    border-color: var(--sd-role, var(--sd-primary));
    color: var(--sd-role, var(--sd-primary));
}

.p-shindan-result__type {
    margin: 8px 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .p-shindan-result__type>span {
        display: block;
        text-align: center;
    }
}

.p-shindan-result__mbti {
    color: var(--sd-primary-dark);
    letter-spacing: 0.04em;
}

.p-shindan-result__x {
    margin: 0 6px;
    color: var(--sd-muted);
    font-size: 18px;
}

.p-shindan-result__copy {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--sd-text);
}

.p-shindan-result__section {
    background: #ffffff;
    border-radius: var(--sd-radius);
    border: 1px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
    padding: 20px 18px;
    margin-bottom: 14px;
}

.p-shindan-result__heading {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    padding-left: 10px;
    border-left: 4px solid var(--sd-role, var(--sd-primary));
    line-height: 1.4;
}

.p-shindan-result__tagline {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sd-primary-dark);
}

.p-shindan-result__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

.p-shindan-result__text--placeholder {
    color: var(--sd-muted);
}

/* あるある・強み・口癖(64通りコンテンツ) */
.p-shindan-aruaru {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-shindan-aruaru__item {
    position: relative;
    padding: 10px 12px 10px 34px;
    border-radius: 8px;
    background: var(--sd-input-bg);
    border: 1px solid var(--sd-border);
    font-size: 13px;
    line-height: 1.6;
}

.p-shindan-aruaru__item::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    font-weight: 800;
    color: var(--sd-role, var(--sd-primary));
}

.p-shindan-traits {
    display: grid;
    gap: 8px;
}

@media (min-width: 480px) {
    .p-shindan-traits {
        grid-template-columns: 1fr 1fr;
    }
}

.p-shindan-traits__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--sd-input-bg);
    border: 1px solid var(--sd-border);
}

.p-shindan-traits__label {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--sd-role, var(--sd-primary));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.p-shindan-traits__text {
    font-size: 13px;
    font-weight: 700;
}

/* レーダーチャート */
.p-shindan-radar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 480px) {
    .p-shindan-radar {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

.p-shindan-radar svg {
    width: 240px;
    max-width: 100%;
    height: auto;
    /* 右端のラベル(にぎやか等)が viewBox からはみ出ても切らずに描画する */
    overflow: visible;
}

.p-shindan-radar__ring {
    fill: none;
    stroke: var(--sd-border);
    stroke-width: 1;
}

.p-shindan-radar__axis {
    stroke: var(--sd-border);
    stroke-width: 1;
}

.p-shindan-radar__value {
    fill: color-mix(in srgb, var(--sd-role, var(--sd-primary)) 30%, transparent);
    stroke: var(--sd-role, var(--sd-primary));
    stroke-width: 2;
    stroke-linejoin: round;
}

.p-shindan-radar__label {
    font-size: 10px;
    font-weight: 700;
    fill: var(--sd-muted);
}

/* 相性 */
.p-shindan-compat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-shindan-compat__item {
    padding: 12px 14px;
    border-radius: var(--sd-radius);
    border: 1.5px solid var(--sd-border);
    background: var(--sd-input-bg);
}

.p-shindan-compat__item--best {
    border-color: var(--sd-yellow);
    background: #fffbe8;
}

.p-shindan-compat__item--chemistry {
    border-color: var(--sd-pink);
    background: #fef1f7;
}

.p-shindan-compat__label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--sd-muted);
}

.p-shindan-compat__partner {
    margin: 2px 0;
    font-size: 15px;
    font-weight: 800;
}

.p-shindan-compat__comment {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--sd-text);
}

/* 旅行先 */
.p-shindan-result__destinations {
    display: grid;
    gap: 12px;
}

@media (min-width: 480px) {
    .p-shindan-result__destinations {
        grid-template-columns: 1fr 1fr;
    }
}

.p-shindan-dest {
    border: 1.5px solid var(--sd-pale-border);
    border-radius: var(--sd-radius);
    background: linear-gradient(135deg, var(--sd-pale) 0%, #eff8f9 100%);
    padding: 14px;
}

.p-shindan-dest__region {
    margin: 0;
    font-size: 11px;
    color: var(--sd-sub);
}

.p-shindan-dest__city {
    margin: 2px 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.p-shindan-dest__city-en {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sd-muted);
}

.p-shindan-dest__summary {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.7;
}

.p-shindan-dest__tags {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.p-shindan-dest__tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    background: #ffffff;
    border: 1px solid var(--sd-pale-border);
    color: var(--sd-primary-dark);
    font-weight: 700;
}

/* 動画 */
.p-shindan-video {
    text-align: center;
    padding: 10px 0 4px;
}

.p-shindan-video__player {
    display: block;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9 / 16;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.p-shindan-video__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 28px;
    border-radius: 99px;
    border: none;
    background: var(--sd-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.p-shindan-video__download:hover {
    opacity: 0.85;
    color: #fff;
}

.p-shindan-video__note {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--sd-muted);
}

/* シェア */
.p-shindan-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-shindan-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 99px;
    border: none;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.p-shindan-share__btn:hover {
    opacity: 0.85;
    color: #fff;
}

.p-shindan-share__btn--x {
    background: #0f1419;
}

.p-shindan-share__btn--line {
    background: #06c755;
}

.p-shindan-share__btn--copy {
    background: transparent;
    color: var(--sd-primary);
    border: 1.5px solid var(--sd-pale-border);
}

.p-shindan-share__btn--copy:hover {
    background: var(--sd-pale);
    color: var(--sd-primary-dark);
    opacity: 1;
}

/* CTA(しおりの「しおりを作成する」ボタンと同形状) */
.p-shindan-cta {
    text-align: center;
    margin-top: 24px;
}

.p-shindan-cta__lead {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.p-shindan-cta__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: var(--sd-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(70, 173, 184, 0.35);
    transition: all 0.15s;
}

.p-shindan-cta__button:hover {
    background: var(--sd-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    opacity: 1;
}

.p-shindan-cta__retry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sd-primary);
    border: 1.5px solid var(--sd-pale-border);
    border-radius: 99px;
    padding: 7px 18px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.p-shindan-cta__retry:hover {
    background: var(--sd-pale);
    color: var(--sd-primary-dark);
    opacity: 1;
}

/* ユーティリティ */
.u-pc-only {
    display: none;
}

@media (min-width: 480px) {
    .u-pc-only {
        display: inline;
    }
}