/* Audible ストーリーハウス(仕様書/special/audible/仕様.md)
   デザインはスマホ幅402pt(新デザイン design/new/、仕様書3.6)。PCでは中央に同じ幅で出す */

/* フォント: 使う文字だけに絞ったWOFF2(作り直しは仕様書/special/audible/tools/make_fonts.py) */
@font-face {
    font-family: "UD Shin Go NT";
    src: url(../../../fonts/sp/audible/UDShinGoNT-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "UD Shin Go NT";
    src: url(../../../fonts/sp/audible/UDShinGoNT-DeBold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Audible Sans";
    src: url(../../../fonts/sp/audible/AudibleSans-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Audible Sans";
    src: url(../../../fonts/sp/audible/AudibleSans-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 「Q.1」「BEST 3」・A〜Dのバッジ(2026-11-10受領、欧文のみ) */
@font-face {
    font-family: "Grvtrn";
    src: url(../../../fonts/sp/audible/Grvtrn.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 色: 素材から取った値=地のオレンジ・黄・紺・ピン。カードのオレンジ・クリーム・結果の濃紺・帯はスクショからの推定(仕様書3.6) */
:root {
    --c-bg-orange: #DA4E11;
    --c-card-orange: #E8781C;
    --c-yellow: #F5A500;
    --c-band: #E99D0C;
    --c-navy: #0A1F32;
    --c-dark: #07121B;
    --c-cream: #FBEBC8;
    --c-pin: #D04D17;
    --page-w: 450px;
    --gutter: 20px;
    --f-ja: "UD Shin Go NT", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --f-en: "Audible Sans", "UD Shin Go NT", "Helvetica Neue", "Arial", sans-serif;
    --f-display: "Grvtrn", "Audible Sans", "Arial Black", sans-serif;
}

body {
    margin: 0;
    font-family: var(--f-ja);
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-navy);
    background-color: var(--c-dark);
    -webkit-text-size-adjust: 100%;
}

/* 入口・質問: オレンジに「STORY HOUSE」の柄(素材6。2280pxの素材を幅804pxで並べるとデザインの文字の大きさ) */
body.is-index,
body.is-question {
    background: var(--c-bg-orange) url(../../../images/sp/audible/storyhouse/bg_pattern.webp) center top / 804px auto repeat;
}

img {
    max-width: 100%;
    height: auto;
}

.l-page {
    width: 100%;
    position: relative;
    max-width: var(--page-w);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ヘッダー(ロゴ) */
.c-header {
    padding-top: 20px;
}

.c-logo {
    display: block;
    width: 140px;
}

/* ボタン */
.c-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    border-radius: 29px;
    background-color: var(--c-card-orange);
    color: var(--c-navy);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .06em;
    text-decoration: none;
    transition: opacity .2s;
}

.c-btn:hover {
    opacity: .85;
}

/* 犬の写真(素材1〜4)。ページの下に置き、フッターを重ねる */
.c-dog {
    position: absolute;
    bottom: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
}

.c-dog--index,
.c-dog--q3 {
    left: 0;
    width: 100%;
}

.c-dog--q1 {
    right: 0;
    width: 231px;
}

.c-dog--q2 {
    left: 0;
    width: 181px;
}


/* フッター。入口・質問は犬の上に重ねる */
.c-footer {
    margin-top: auto;
    padding: 40px 0 16px;
    color: #fff;
    text-align: center;
    font-family: var(--f-en);
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1.5;
}

.c-footer p {
    margin: 0;
}

.c-footer__powered {
    white-space: nowrap;
}

.c-footer a {
    color: inherit;
    text-decoration: none;
}

.is-index .c-footer,
.is-question .c-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 0 var(--gutter) 14px;
    text-shadow: 0 0 6px rgba(0, 0, 0, .45);
}

/* ===== 入口(index) ===== */
.is-index .l-page {
    /* 犬(高さ約113px)の分をあける */
    padding-bottom: 140px;
}

.indexMain {
    padding-top: 44px;
    text-align: center;
}

.indexTitle {
    margin: 0;
}

.indexTitle img {
    display: block;
    width: 325px;
    margin: 0 auto;
}

.indexLead {
    margin: 30px 0 0;
}

.indexLead img {
    display: block;
    width: 320px;
    margin: 0 auto;
}

.indexText {
    margin: 22px 0 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
}

/* 渋谷の会場の案内。左右の斜めの線は疑似要素 */
.indexEvent {
    position: relative;
    margin: 32px 0 0;
    padding: 0 26px;
    color: var(--c-navy);
    font-weight: 700;
    line-height: 1.6;
}

.indexEvent::before,
.indexEvent::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 1px;
    background-color: var(--c-cream);
}

.indexEvent::before {
    left: 8px;
    transform: rotate(-13deg);
}

.indexEvent::after {
    right: 8px;
    transform: rotate(13deg);
}

.indexEvent p {
    margin: 0;
}

.indexEvent__date {
    color: var(--c-cream);
    font-size: 13px;
}

.indexEvent__date b {
    font-family: var(--f-en);
    font-size: 17px;
}

.indexEvent__date span,
.indexEvent__name span {
    color: var(--c-cream);
    font-size: 13px;
}

.indexEvent__name {
    color: var(--c-cream);
    font-size: 17px;
}

.indexEvent__name b {
    font-family: var(--f-en);
    letter-spacing: .02em;
}

.indexEvent__text {
    margin-top: 4px;
    color: var(--c-cream);
    font-size: clamp(8px, calc((13/ 450)*100vw), 13px);
}



.indexCta {
    margin-top: auto;
    padding-top: 30px;
}

/* ===== 質問(questions) ===== */
.is-question .l-page {
    /* 犬(高さ約241〜273px)がカードの下の余白に少しかかる程度にあける */
    padding-bottom: 215px;
}

.qMain {
    padding-top: 26px;
}

.qProgress {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qProgress__item {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: var(--c-cream);
}

.qProgress__item.is-active {
    background-color: var(--c-yellow);
}

.qCard {
    margin-top: 24px;
    padding: 30px 20px 56px;
    border-radius: 16px;
    background-color: var(--c-card-orange);
    text-align: center;
}

.qCard__num {
    margin: 0;
    color: var(--c-navy);
    font-family: var(--f-display);
    font-size: 52px;
    line-height: 1;
}

.qCard__title {
    margin: 18px 0 0;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.4;
}

.qChoices {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.qChoices li+li {
    margin-top: 16px;
}

.qChoice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 8px 14px 8px 10px;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
    color: var(--c-navy);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s;
}

/* スマホではタップ後に色が残るので、マウスの時だけ */
@media (hover: hover) {
    .qChoice:hover {
        background-color: var(--c-cream);
    }
}

.qChoice__mark {
    transform: translateY(2px);
}

.qChoice__mark--outer {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--c-yellow);
    color: var(--c-navy);
    font-family: var(--f-display);
    font-size: 19px;
    display: grid;
    place-items: center;
}

.qChoice__label {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}

/* ===== 結果(result) ===== */
body.is-result {
    color: var(--c-cream);
}

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

.rMain {
    padding-top: 40px;
}

.rHead {
    margin: 0;
    text-align: center;
}

.rHead__lead {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}

.rHead__best {
    display: block;
    margin-top: 10px;
    color: var(--c-yellow);
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.1;
}

/* 理由の文言(デザインに無いのでBEST 3の下に足した。ユーザー指示) */
.rReason {
    margin: 10px 0 0;
    color: var(--c-yellow);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.rList {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.rCard {
    overflow: hidden;
    /* カバー画像の角丸(800pxで約40px=表示362pxで約18px)と同じにして、角に地を出さない */
    border-radius: 27px;
    background-color: var(--c-cream);
    color: var(--c-navy);
}

.rCard+.rCard {
    margin-top: 30px;
}

.rCard__cover {
    position: relative;
}

.rCard__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* 順位(新デザインのスクショには見えないが、BEST 3の順位が分かるように残す。仕様書3.6) */
.rCard__rank {
    position: absolute;
    top: 0;
    left: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 47px;
    height: 54px;
    border-radius: 0 0 4px 4px;
    background-color: var(--c-yellow);
    color: var(--c-navy);
    font-family: var(--f-display);
    font-size: 22px;
    line-height: 1;
}

.rCard__crown path {
    fill: currentColor;
}

/* 試し聴き(Audibleの作品ページへ) */
.rCard__listen {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px 0 10px;
    border-radius: 13px;
    background-color: var(--c-navy);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    transition: opacity .2s;
}

.rCard__listen:hover {
    opacity: .85;
}

.rCard__body {
    padding: 16px 16px 18px;
}

.rCard__head {
    padding-left: 12px;
    border-left: 8px solid var(--c-yellow);
}

.rCard__title {
    margin: 0;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.4;
    word-break: break-word;
}

.rCard__author {
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

.rCard__label {
    margin-right: 1em;
}

/* 紹介文。JSが長いと判定した時だけ3行で切る(.is-clamp)。タップで開閉 */
.rCard__desc {
    margin: 14px 0 0;
    padding: 12px 14px 4px;
    border-radius: 8px;
    background-color: #fff;
}

.rCard__desc.is-toggle {
    cursor: pointer;
}

.rCard__descText {
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.75;
    white-space: pre-line;
    word-break: break-word;
}

.rCard__desc.is-clamp .rCard__descText {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.rCard__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 22px;
    margin-top: -4px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.rCard__more[hidden] {
    display: none;
}

/* 「▽」: 細い山形。開いている時は上向き */
.rCard__more::before {
    content: "";
    width: 11px;
    height: 11px;
    margin-top: -6px;
    border-right: 1.5px solid #9AA4AE;
    border-bottom: 1.5px solid #9AA4AE;
    transform: rotate(45deg);
    transition: transform .2s;
}

.rCard__more[aria-expanded="true"]::before {
    margin-top: 6px;
    transform: rotate(-135deg);
}

.rCard__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 18px 22px;
    background-color: var(--c-band);
    color: var(--c-navy);
    font-family: var(--f-en);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
}

.rCard__pin {
    flex-shrink: 0;
}

.rCard__shelf {
    color: var(--c-pin);
    font-style: normal;
}

/* area無し(Audibleのリンク)。デザインが無いので棚の案内の帯に合わせた */
.rCard__foot--link {
    justify-content: center;
    text-decoration: none;
    transition: opacity .2s;
}

.rCard__foot--link::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: -6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.rCard__foot--link:hover {
    opacity: .85;
}

/* もう一度診断する(デザインに無いので最後のカードの下に足した。ユーザー指示) */
.rRetry {
    margin-top: 30px;
}

/* 結果のシェア(1位の作品。仕様書3.5)。デザインに無いので、BEST 3の下に小さく置く */
.rShare {
    margin-top: 32px;
    text-align: center;
}

.rShare__title {
    margin: 0;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .04em;
}

.rShare__text {
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #fff;
    color: var(--c-navy);
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.rShare__textCopy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 40px;
    margin-top: 12px;
    padding: 0 24px;
    border: 1.5px solid var(--c-cream);
    border-radius: 20px;
    background: none;
    color: var(--c-cream);
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.rShare__textCopy:hover {
    opacity: .85;
}

.rShare__list {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.rShare__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-cream);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.rShare__btn:hover .rShare__icon {
    opacity: .85;
}

.rShare__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* 濃紺の地で黒い丸は見えないので白に */
.rShare__icon--x {
    background-color: #fff;
    color: #000;
}

.rShare__icon--copy {
    border: 1.5px solid var(--c-cream);
    color: var(--c-cream);
}

.rShare__label {
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

/* dev(debug=True)だけ出す「選ばれた理由」。本番では出ない */
.rDebug__card {
    margin: 10px 0 0;
    padding: 4px 8px;
    border: 1px dashed #c00;
    color: #c00;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
}

.rDebug {
    margin-top: 30px;
    padding: 12px;
    border: 2px dashed #c00;
    background-color: #fff;
    color: #222;
    font-family: sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.rDebug p,
.rDebug ul {
    margin: 6px 0;
}

.rDebug ul {
    padding-left: 1.2em;
}

.rDebug__title {
    margin: 0;
    color: #c00;
    font-size: 15px;
}

.rDebug__round {
    margin: 14px 0 0;
    font-size: 13px;
}

.rDebug__table {
    width: 100%;
    border-collapse: collapse;
}

.rDebug__table th,
.rDebug__table td {
    padding: 3px 4px;
    border: 1px solid #ccc;
    vertical-align: top;
    text-align: left;
}

.rDebug__table small {
    color: #666;
    white-space: nowrap;
}

.rDebug__table .is-picked {
    background-color: #fff3d6;
    font-weight: 700;
}

.rDebug__table .rDebug__out {
    color: #c00;
    white-space: normal;
}

.rDebug__table td:last-child {
    white-space: nowrap;
}

/* ===== 結果を出す前のローディング(案B「犬が耳をすます」、2026-11-10ユーザー決定) =====
   入口の2匹(素材1)が下から出てきて、耳のあたりから音の輪が広がる。約2秒で結果へ(JSのLOADING_MS) */
.qLoading {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--c-bg-orange) url(../../../images/sp/audible/storyhouse/bg_pattern.webp) center top / 804px auto repeat;
    color: var(--c-navy);
    animation: qLoadingIn .25s ease-out;
}

.qLoading[hidden] {
    display: none;
}

@keyframes qLoadingIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* PCでもスマホ幅の列に収める */
.qLoading__stage {
    position: relative;
    max-width: var(--page-w);
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.qLoading__logo {
    position: relative;
    z-index: 3;
    display: block;
    width: 140px;
    margin: 20px 0 0 var(--gutter);
}

.qLoading__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--gutter);
    /* ロゴの下、犬と音の輪より上 */
    margin-top: max(40px, calc(50vh - 230px));
    margin-top: max(40px, calc(50svh - 230px));
    text-align: center;
}

.qLoading__note {
    display: block;
}

.qLoading__msg {
    margin: 22px 0 0;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.6;
}

.qLoading__dots span {
    display: inline-block;
    animation: qLoadingDot 1s ease-in-out infinite;
}

.qLoading__dots span:nth-child(2) {
    animation-delay: .15s;
}

.qLoading__dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes qLoadingDot {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: translateY(-5px);
    }
}

.qLoading__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.qLoading__chip {
    padding: 5px 12px;
    border-radius: 14px;
    background-color: var(--c-cream);
    color: var(--c-navy);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    animation: qLoadingChip .4s ease-out forwards;
}

.qLoading__chip:nth-child(1) {
    animation-delay: .3s;
}

.qLoading__chip:nth-child(2) {
    animation-delay: .8s;
}

.qLoading__chip:nth-child(3) {
    animation-delay: 1.3s;
}

@keyframes qLoadingChip {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 犬(高さ約113px)。下から出てくる */
.qLoading__dogs {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 100%;
    transform: translateY(100%);
    animation: qLoadingPeek .5s cubic-bezier(.2, .9, .3, 1.2) forwards;
}

@keyframes qLoadingPeek {
    to {
        transform: none;
    }
}

/* 音の輪。左右の犬の頭の上(左26%・右74%)から広がる */
.qLoading__rings span {
    position: absolute;
    bottom: 145px;
    z-index: 1;
    width: 80px;
    height: 80px;
    border: 3px solid var(--c-cream);
    border-radius: 50%;
    opacity: 0;
    animation: qLoadingRing 1.2s ease-out infinite;
}

.qLoading__rings .is-l {
    left: 26%;
}

.qLoading__rings .is-r {
    left: 74%;
}

.qLoading__rings .is-d2 {
    animation-delay: .4s;
}

.qLoading__rings .is-d3 {
    animation-delay: .8s;
}

@keyframes qLoadingRing {
    0% {
        opacity: .9;
        transform: translate(-50%, 50%) scale(.3);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 50%) scale(2.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qLoading__dogs {
        animation: none;
        transform: none;
    }

    .qLoading__rings span {
        animation-duration: 3s;
    }

    .qLoading__dots span {
        animation: none;
    }

    .qLoading__chip {
        animation: none;
        opacity: 1;
    }
}




/* ===== */
/* body {
    margin: 0;
    font-family: var(--f-ja);
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-navy);
    background-color: var(--c-dark);
    -webkit-text-size-adjust: 100%;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    background: #ffffff00;
}

.l-page {
    width: 100%;
    position: relative;
    max-width: var(--page-w);
    min-height: initial;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--c-bg-orange) url(../../../images/sp/audible/storyhouse/bg_pattern.webp) center top / 804px auto repeat;
    border-radius: 20px;
    border: 2px solid #000;
    box-shadow: 10px 10px 0 0 #000;
} */

/* ===== 動き(2026-11-10、ユーザー決定。モック https://claude.ai/artifact/PQHEmWsVVEfc6eZNYwwKsn ) =====
   派手にしない。ページを開いた時は上から順にふわっと、犬は下からひょこっと出て小さく動き続ける。
   既存のtransformを壊さないよう、translate・scale・rotateの個別プロパティで動かす(対応していないブラウザは動かないだけ)。
   「動きを減らす」設定の端末では出さない。JSで付けるクラス(is-in等)はdev_js/sp/audible/storyhouse.js */
@media (prefers-reduced-motion: no-preference) {

    @keyframes shFadeUp {
        from {
            opacity: 0;
            translate: 0 14px;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }

    @keyframes shTitleIn {
        from {
            opacity: 0;
            scale: .94;
        }

        to {
            opacity: 1;
            scale: 1;
        }
    }

    /* 犬: 下からひょこっと(少しだけ行き過ぎて戻る) */
    @keyframes shDogUp {
        0% {
            opacity: 0;
            translate: 0 48px;
        }

        65% {
            opacity: 1;
            translate: 0 -5px;
        }

        100% {
            opacity: 1;
            translate: 0 0;
        }
    }

    /* 犬(入口): ゆっくり3pxだけ上下 */
    @keyframes shBob {

        0%,
        100% {
            translate: 0 0;
        }

        50% {
            translate: 0 -3px;
        }
    }

    /* 犬(質問): ときどき首をかしげる */
    @keyframes shTilt {

        0%,
        70%,
        100% {
            rotate: 0deg;
        }

        78% {
            rotate: -2.5deg;
        }

        88% {
            rotate: 1deg;
        }
    }

    @keyframes shPop {
        0% {
            opacity: 0;
            scale: .5;
        }

        70% {
            opacity: 1;
            scale: 1.12;
        }

        100% {
            opacity: 1;
            scale: 1;
        }
    }

    @keyframes shPulse {

        0%,
        100% {
            scale: 1;
        }

        50% {
            scale: 1.04;
        }
    }

    @keyframes shCardOut {
        to {
            opacity: 0;
            translate: -24px 0;
        }
    }

    @keyframes shCardIn {
        from {
            opacity: 0;
            translate: 24px 0;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }

    @keyframes shPageOut {
        to {
            opacity: 0;
            translate: 0 -8px;
        }
    }

    /* --- 全ページ: ロゴ --- */
    .c-header {
        animation: shFadeUp .45s ease-out both;
    }

    /* --- 入口: タイトル→キャッチ→説明→会場の案内→ボタン、の順 --- */
    .indexTitle {
        animation: shTitleIn .6s .1s cubic-bezier(.2, .8, .3, 1) both;
    }

    .indexLead {
        animation: shFadeUp .5s .3s ease-out both;
    }

    .indexText {
        animation: shFadeUp .5s .4s ease-out both;
    }

    .indexEvent {
        animation: shFadeUp .5s .5s ease-out both;
    }

    .indexCta {
        animation: shFadeUp .5s .6s ease-out both;
    }

    /* ボタン: 押せることが分かるよう、2回だけ軽くふくらむ */
    .indexCta .c-btn {
        animation: shPulse 2.4s 1.4s ease-in-out 2;
    }

    .c-dog--index {
        animation:
            shDogUp .7s .75s cubic-bezier(.2, .8, .3, 1.1) both,
            shBob 3.6s 1.6s ease-in-out infinite;
    }

    /* --- 質問 --- */
    .qProgress__item {
        transition: background-color .35s ease;
    }

    /* 問題が表示された時: 問題番号→質問文→選択肢A〜Dを時間差で。
       hiddenが外れるたびにCSSだけで最初から動く(JSで印を付けるとページを開いた直後にちらつくため) */
    .qCard .qCard__num {
        animation: shFadeUp .4s ease-out both;
    }

    .qCard .qCard__title {
        animation: shFadeUp .4s .05s ease-out both;
    }

    .qCard .qChoices li {
        animation: shFadeUp .4s ease-out both;
    }

    .qCard .qChoices li:nth-child(1) {
        animation-delay: .12s;
    }

    .qCard .qChoices li:nth-child(2) {
        animation-delay: .18s;
    }

    .qCard .qChoices li:nth-child(3) {
        animation-delay: .24s;
    }

    .qCard .qChoices li:nth-child(4) {
        animation-delay: .3s;
    }

    /* 次の問題へ進んだ時: 右からすべり込む */
    .qCard.is-next .qCard__num,
    .qCard.is-next .qCard__title,
    .qCard.is-next .qChoices {
        animation: shCardIn .35s ease-out both;
    }

    .qCard.is-next .qChoices li {
        animation: none;
    }

    /* 問題ごとの犬: 下からひょこっと出て、ときどき首をかしげる */
    .qCard .c-dog {
        transform-origin: 50% 100%;
        animation:
            shDogUp .65s .3s cubic-bezier(.2, .8, .3, 1.1) both,
            shTilt 4.5s 1.5s ease-in-out infinite;
    }

    /* 選んだ時: ボタンが少し沈み、A〜Dの丸がぽんと弾む(JSのPICK_MS) */
    .qChoice.is-picked {
        scale: .97;
        transition: scale .12s ease-out;
    }

    .qChoice.is-picked .qChoice__mark--outer {
        animation: shPop .3s ease-out;
    }

    /* 次へ進む時: 今の問題が左へ消える(JSのOUT_MS) */
    .qCard.is-out .qCard__num,
    .qCard.is-out .qCard__title,
    .qCard.is-out .qChoices {
        animation: shCardOut .22s ease-in forwards;
    }

    .qCard.is-out .c-dog {
        animation: shPageOut .22s ease-in forwards;
    }

    /* --- 結果: 見出し→BEST 3→理由→1位のカード。2位・3位は見えた時に --- */
    .rHead__lead {
        animation: shFadeUp .45s .1s ease-out both;
    }

    .rHead__best {
        animation: shTitleIn .55s .25s cubic-bezier(.2, .8, .3, 1) both;
    }

    .rReason {
        animation: shFadeUp .45s .4s ease-out both;
    }

    /* カード: html.js-anim(result.htmlの<head>で付ける)の時だけ、最初は透明。見えたらJSがis-inを付ける */
    .js-anim .rCard {
        transition: opacity .55s ease-out, translate .55s ease-out;
    }

    .js-anim .rCard:not(.is-in) {
        opacity: 0;
        translate: 0 24px;
    }

    .js-anim .rCard:not(.is-in) .rCard__rank {
        opacity: 0;
    }

    .js-anim .rCard.is-in .rCard__rank {
        animation: shPop .45s .35s ease-out both;
    }

    /* カバー画像: 読み込み中は枠に光がゆっくり流れる仮の表示、読み込めたらふわっと(JSがis-loadedを付ける) */
    @keyframes shShimmer {
        from {
            background-position: 100% 0;
        }

        to {
            background-position: 0 0;
        }
    }

    .js-anim .rCard__cover:not(.is-loaded) {
        border-radius: 14px;
        background: linear-gradient(100deg, #e6dccd 35%, #f6f0e6 50%, #e6dccd 65%) 0 0 / 300% 100%;
        animation: shShimmer 1.4s linear infinite;
    }

    .js-anim .rCard__cover img {
        transition: opacity .45s ease-out;
    }

    .js-anim .rCard__cover:not(.is-loaded) img {
        opacity: 0;
    }

    /* --- ページを移る時(JSのLEAVE_MS): 今のページが少し上へ消える --- */
    .is-leaving .l-page {
        animation: shPageOut .25s ease-in forwards;
    }
}