/* =========================================================
   2027年 タロット編だけで使う見た目（ty- で始まるクラスだけ）
   土台は /2027/style.css と year-jewel.css。共通のクラスはここで上書きしない
   タロットのピンクは差し色だけ：#ec9a92（線・印）／#fce8e6（淡い地）／#f3cfca（枠線）
   ========================================================= */
.ty-draw,.ty-about,.ty-cards{--ty-pink:#ec9a92;--ty-pink-deep:#b9645b;--ty-pink-wash:#fce8e6;--ty-pink-line:#f3cfca;--ty-card-w:clamp(84px,24vw,128px)}

/* タイトル：「2027年」と「タロットの運勢」の2行。右の犬は左の犬と同じ絵なので、左右反転して向かい合わせにする */
.page--year-special .hero h1 .title-tail{white-space:nowrap}
.hero .hero-right{transform:scaleX(-1)}

/* 見出し */
.ty-head{max-width:850px;margin:0 auto 22px;text-align:center}
.ty-head .kicker{margin-bottom:2px}
.ty-head h2{font-size:28px;letter-spacing:.08em;color:#594021}
.ty-head .section-lead{margin-top:6px}
.ty-about,.ty-cards{margin-top:54px}

/* 流れ（1〜4） */
.ty-steps{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0;list-style:none}
.ty-steps li{padding:2px 13px;border:1px solid var(--line);border-radius:50px;background:#fff;font-size:14px;color:var(--muted);white-space:nowrap;transition:.3s}
.ty-steps li.is-on{border-color:var(--ty-pink);background:var(--ty-pink-wash);color:var(--ty-pink-deep)}

/* 注意書き */
.ty-notice{max-width:680px;margin:0 auto 22px;padding:16px 20px;border:1px solid var(--ty-pink-line);border-left:4px solid var(--ty-pink);border-radius:14px;background:#fffaf8;font-size:15px;line-height:1.85;color:var(--muted)}
.ty-notice p+p{margin-top:.5em}
.ty-notice .ty-notice-last{color:var(--ink);font-weight:700}

/* 山札 */
.ty-stage{position:relative;height:calc(var(--ty-card-w) * 1.5 + 60px);max-width:520px;margin:0 auto 6px;transition:height .6s ease,opacity .6s ease}
.ty-stage.is-gone{height:0;opacity:0;overflow:hidden}
.ty-deck{position:absolute;left:50%;top:30px;width:var(--ty-card-w);aspect-ratio:2/3;transform:translateX(-50%)}
.ty-deck .ty-b{position:absolute;inset:0;will-change:transform}
.ty-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px;background:#f6efe2;box-shadow:0 4px 12px #5b433933}
.ty-img.is-rev{transform:rotate(180deg)}
.ty-status{min-height:1.9em;margin:6px 0 12px;text-align:center;font-size:16px;color:var(--muted)}
.ty-ctrl{min-height:56px;text-align:center}
.ty-ctrl[hidden],.ty-ctrl [hidden]{display:none}
.ty-stop{animation:ty-pulse 1.4s ease-in-out infinite}
@keyframes ty-pulse{50%{box-shadow:0 0 0 10px #c99a4522}}
.ty-noscript{text-align:center;color:var(--ty-pink-deep)}

/* 並んだ7枚 */
.ty-spread{display:grid;grid-template-columns:repeat(3,var(--ty-card-w));justify-content:center;gap:22px clamp(10px,3vw,22px);margin:0 auto 10px;scroll-margin-top:12px}
.ty-spread:empty{display:none}
.ty-slot{display:flex;flex-direction:column;align-items:center;gap:6px}
.ty-slot.is-total{grid-column:1/-1;justify-self:center}
.ty-pos{font-size:14px;color:var(--muted);white-space:nowrap}
.ty-pos b{margin-right:3px;color:var(--ty-pink-deep)}
.ty-card{width:var(--ty-card-w);aspect-ratio:2/3;padding:0;border:0;background:none;perspective:900px;opacity:0;cursor:pointer}
.ty-card.is-dealt{opacity:1}
.ty-card .ty-in{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.4,.2,.2,1)}
.ty-card.is-open .ty-in{transform:rotateY(180deg)}
.ty-card .ty-s{display:block;position:absolute;inset:0;backface-visibility:hidden}
.ty-card .ty-s.is-face{transform:rotateY(180deg)}
.ty-card:focus-visible{outline:3px solid var(--deep);outline-offset:4px;border-radius:12px}
.ty-orient{max-width:calc(var(--ty-card-w) + 20px);min-height:1.6em;font-size:12px;line-height:1.5;text-align:center;color:var(--muted);opacity:0;transition:opacity .4s}
.ty-slot.is-shown .ty-orient{opacity:1}

/* 結果 */
.ty-results{margin-top:20px;opacity:0;transform:translateY(12px);transition:.7s ease}
.ty-results.is-show{opacity:1;transform:none}
.ty-results[hidden]{display:none}
.ty-box{margin-top:22px}
.ty-result-title{font-size:26px;letter-spacing:.08em;color:#594021}
.ty-result-lead{margin-top:4px;color:var(--muted);font-size:16px}
.ty-toc{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;margin:14px 0 0;padding:16px 20px;border-radius:14px;background:var(--ty-pink-wash);list-style:none;font-size:16px}
.ty-toc a{color:var(--ink);text-decoration:none}
.ty-toc a:hover{color:var(--ty-pink-deep);text-decoration:underline}
.ty-toc .ty-n{margin-right:6px;color:var(--ty-pink-deep);font-weight:700}
.ty-toc small{font-size:13px;color:var(--muted)}
.ty-r{scroll-margin-top:16px}
.ty-r+.ty-r{margin-top:28px;padding-top:28px;border-top:1px dashed var(--line)}
.ty-r-head{display:flex;align-items:center;gap:18px;margin-bottom:.9em;padding-bottom:.9em;border-bottom:1px solid var(--ty-pink-line)}
.ty-r-pic{flex:0 0 clamp(78px,20vw,104px);aspect-ratio:2/3}
.ty-r-lab{font-size:14px;letter-spacing:.06em;color:var(--ty-pink-deep)}
.ty-r h3{margin:.1em 0 .2em;font-size:22px;color:#594021}
.ty-r h3 small{margin-left:8px;font-size:14px;font-weight:400;color:var(--muted)}
.ty-more{font-size:15px}
.ty-r p{font-size:17px;line-height:1.95}
.ty-r p+p{margin-top:.9em}
.ty-r.is-hint{margin-top:30px;padding:22px;border:0;border-radius:18px;background:var(--ty-pink-wash)}
.ty-note{margin-top:18px;text-align:center;font-size:14px;color:var(--muted)}

/* 7つのテーマ */
.ty-themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;max-width:900px;margin:0 auto;padding:0;list-style:none;counter-reset:ty}
.ty-themes li{counter-increment:ty;padding:14px 18px;border:1px solid var(--ty-pink-line);border-left:4px solid var(--ty-pink);border-radius:16px;background:#fffdf8;font-size:15px;line-height:1.8}
.ty-themes li:last-child{grid-column:1/-1}
.ty-themes b{display:block;font-size:18px;color:#594021}
.ty-themes b::before{content:counter(ty) "．";color:var(--ty-pink-deep)}
.ty-about-note{max-width:760px;margin:18px auto 0;font-size:15px;line-height:1.85;color:var(--muted);text-align:center}

/* 22枚の一覧 */
.ty-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:18px 14px;max-width:900px;margin:0 auto;padding:0;list-style:none}
.ty-card-list a{display:block;text-align:center;font-size:14px;line-height:1.5;color:var(--ink);text-decoration:none}
.ty-card-list img{display:block;width:100%;height:auto;margin-bottom:6px;border-radius:8px;box-shadow:0 3px 10px #5b433926;transition:transform .2s}
.ty-card-list a:hover img{transform:translateY(-3px)}
.ty-card-list a:hover span{text-decoration:underline}
.ty-back{margin-top:40px;text-align:center}

@media (max-width:640px){
  .ty-head h2,.ty-result-title{font-size:23px}
  .ty-notice{font-size:14px;padding:14px 16px}
  .ty-toc,.ty-themes{grid-template-columns:1fr}
  .ty-themes li:last-child{grid-column:auto}
  .ty-r p{font-size:16px}
  .ty-r h3{font-size:20px}
  .ty-card-list{grid-template-columns:repeat(3,1fr);gap:14px 10px}
  .ty-card-list a{font-size:12px}
}
@media (prefers-reduced-motion:reduce){.ty-draw *{transition:none!important;animation:none!important}}
