/* ===== SOL 動きとワクワク（fx） ===== */
@keyframes fx-up{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes fx-pop{0%{opacity:0;transform:scale(.6) rotate(-6deg)}70%{opacity:1;transform:scale(1.06) rotate(2deg)}100%{transform:scale(1) rotate(0)}}
@keyframes fx-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes fx-spin{to{transform:rotate(360deg)}}
@keyframes fx-marquee{to{transform:translateX(-50%)}}
@keyframes fx-shine{0%{left:-60%}60%,100%{left:130%}}
@keyframes fx-pulse{0%{box-shadow:0 0 0 0 rgba(244,174,43,.6)}80%,100%{box-shadow:0 0 0 18px rgba(244,174,43,0)}}
@keyframes fx-wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
@keyframes fx-cycle{0%{opacity:0;transform:translateY(16px) scale(.96)}6%,30%{opacity:1;transform:none}36%,100%{opacity:0;transform:translateY(-10px) scale(.98)}}
@keyframes fx-rays{to{transform:rotate(360deg)}}

/* ヒーロー：文字が順に立ち上がる */
.fx-hero-txt>*{animation:fx-up .8s cubic-bezier(.2,.8,.2,1) both}
.fx-hero-txt>*:nth-child(1){animation-delay:.05s}.fx-hero-txt>*:nth-child(2){animation-delay:.15s}
.fx-hero-txt>*:nth-child(3){animation-delay:.25s}.fx-hero-txt>*:nth-child(4){animation-delay:.38s}
.fx-hero-txt>*:nth-child(5){animation-delay:.5s}.fx-hero-txt>*:nth-child(6){animation-delay:.62s}.fx-hero-txt>*:nth-child(7){animation-delay:.72s}
.fx-hero-img{animation:fx-pop 1s .2s cubic-bezier(.2,.8,.2,1) both}

/* ヒーロー：太陽の光線（SOL＝太陽）*/
.fx-rays{position:absolute;right:-12%;top:-14%;width:78%;aspect-ratio:1/1;pointer-events:none;opacity:.5;animation:fx-rays 40s linear infinite;
 background:repeating-conic-gradient(from 0deg,rgba(244,174,43,.22) 0 6deg,transparent 6deg 18deg);border-radius:50%;
 -webkit-mask:radial-gradient(circle,transparent 30%,#000 31%,#000 68%,transparent 70%);mask:radial-gradient(circle,transparent 30%,#000 31%,#000 68%,transparent 70%)}

/* ヒーロー：院長のポーズが入れ替わる */
.fx-poses{position:absolute;left:-6%;bottom:-8px;width:42%;max-width:240px;aspect-ratio:3/4.1;z-index:2}
.fx-poses img{position:absolute;inset:auto 0 0 0;width:100%;height:auto;opacity:0;animation:fx-cycle 9s infinite}
.fx-poses img:nth-child(2){animation-delay:3s}.fx-poses img:nth-child(3){animation-delay:6s}

/* 回る初回バッジ */
.fx-badge{position:absolute;right:-2%;top:2%;width:132px;height:132px;z-index:3;text-decoration:none}
.fx-badge svg{position:absolute;inset:0;width:100%;height:100%;animation:fx-spin 14s linear infinite}
.fx-badge span{position:absolute;inset:22px;border-radius:50%;background:#f4ae2b;color:#1d2129;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;line-height:1.1;text-align:center;animation:fx-pulse 2.4s infinite}
.fx-badge small{font-size:11px;font-weight:700}.fx-badge b{font-size:22px}
.fx-badge:hover span{transform:scale(1.06)}

/* 流れる帯 */
.fx-marquee{background:#1a47a3;color:#fff;overflow:hidden;white-space:nowrap;padding:12px 0;font-weight:700;letter-spacing:.06em}
.fx-marquee>div{display:inline-flex;gap:28px;animation:fx-marquee 32s linear infinite;padding-left:28px}
.fx-marquee span{display:inline-flex;align-items:center;gap:28px;font-size:15px}
.fx-marquee span::after{content:"";width:10px;height:10px;border-radius:50%;background:#f4ae2b;display:inline-block}
.fx-marquee:hover>div{animation-play-state:paused}

/* ボタンに光が走る */
.fx-shine{position:relative;overflow:hidden}
.fx-shine::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-18deg);animation:fx-shine 3.2s 1.2s infinite}

/* 浮かぶ・揺れるステッカー */
.fx-float{animation:fx-float 4s ease-in-out infinite}
.fx-wiggle:hover{animation:fx-wiggle .5s ease-in-out 2}

/* カード：持ち上がる */
.fx-lift{transition:transform .25s ease,box-shadow .25s ease}
.fx-lift:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(15,42,102,.14)}

/* スクロールで現れる */
.rv-hide{opacity:0;transform:translateY(34px)}
.rv-show{opacity:1;transform:none;transition:opacity .8s cubic-bezier(.2,.8,.2,1),transform .8s cubic-bezier(.2,.8,.2,1)}
.rv-pop.rv-hide{opacity:0;transform:scale(.7) rotate(-6deg)}
.rv-pop.rv-show{transition:opacity .6s,transform .7s cubic-bezier(.34,1.56,.64,1)}

/* 英字見出しの下線が伸びる */
.fx-en{position:relative;display:inline-block}
.fx-en::after{content:"";position:absolute;left:0;bottom:-2px;height:5px;width:0;border-radius:4px;background:#f4ae2b;transition:width .9s .2s cubic-bezier(.2,.8,.2,1)}
.fx-en.is-in::after{width:100%}

/* つらいところ診断 */
.fx-quiz{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px;align-items:center;background:#fff;border-radius:32px;padding:28px}
.fx-quiz-btns{display:flex;flex-wrap:wrap;gap:10px}
.fx-quiz-btns button{font:inherit;font-weight:700;font-size:16px;min-height:52px;padding:0 22px;border-radius:999px;border:2px solid #1a47a3;background:#fff;color:#1a47a3;cursor:pointer;transition:transform .15s,background .2s,color .2s}
.fx-quiz-btns button:hover{transform:translateY(-2px)}
.fx-quiz-btns button[aria-pressed="true"]{background:#1a47a3;color:#fff}
.fx-quiz-btns button:focus-visible{outline:3px solid #f4ae2b;outline-offset:2px}
.fx-quiz-out{display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;align-items:end;background:#e8eef8;border-radius:24px;padding:20px 22px 0;min-height:230px}
.fx-quiz-out img{width:140px;height:auto;display:block;animation:fx-pop .6s both}
.fx-quiz-out div{padding-bottom:22px}
.fx-quiz-out h3{margin:0 0 6px;font-size:20px;line-height:30px}
.fx-quiz-out p{margin:0 0 12px;font-size:15px;line-height:26px}
.fx-quiz-out a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;color:#1a47a3}
@media (max-width:760px){.fx-quiz{grid-template-columns:1fr;padding:20px}.fx-quiz-out{grid-template-columns:96px minmax(0,1fr)}.fx-quiz-out img{width:96px}.fx-badge{width:104px;height:104px;right:0}.fx-badge span{inset:16px}.fx-badge b{font-size:18px}}

/* PC用：浮かぶ予約ボタン */
.fx-fab{position:fixed;right:22px;bottom:22px;z-index:40;width:112px;height:112px;border-radius:50%;background:#1a47a3;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;line-height:1.15;text-align:center;box-shadow:0 10px 26px rgba(15,42,102,.3);transform:scale(0);transition:transform .35s cubic-bezier(.34,1.56,.64,1);animation:fx-pulse 2.4s infinite}
.fx-fab small{font-size:11px;font-weight:700}.fx-fab b{font-size:20px;color:#f4ae2b}
.fx-fab.is-on{transform:scale(1)}
.fx-fab:hover{color:#fff;transform:scale(1.07)}
@media (max-width:760px){.fx-fab{display:none}}

/* 動きを減らす設定の方には止める */
@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important}
 .rv-hide{opacity:1;transform:none}
 .fx-poses img{opacity:0}.fx-poses img:first-child{opacity:1}
 .fx-fab{transform:scale(1)}
 .fx-en::after{width:100%}
}

/* フッターのリンク集 */
.ft-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px 32px;width:100%;padding-bottom:20px;margin-bottom:4px;border-bottom:1px solid #e2dbd0;font-size:14px;line-height:24px}
.ft-nav b{display:block;color:#1a47a3;font-size:14px;margin-bottom:6px}
.ft-nav ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}
.ft-nav a{color:#1d2129;text-decoration:none;display:inline-block;padding:4px 0}
.ft-nav a:hover{color:#1a47a3;text-decoration:underline}

/* 院長のいろんな顔（流れるステッカー） */
.fx-faces{overflow:hidden;padding:10px 0 0;-webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.fx-faces>div{display:flex;gap:18px;width:max-content;animation:fx-marquee 46s linear infinite;align-items:flex-end}
.fx-faces img{height:180px;width:auto;display:block;transition:transform .25s}
.fx-faces img:hover{transform:translateY(-8px) rotate(-3deg) scale(1.05)}
.fx-faces:hover>div{animation-play-state:paused}
@media (max-width:760px){.fx-faces img{height:130px}}
