/* 2026 カワイ出版 クリスマス楽譜特集 | CSS scoped mainly to .xmas-page */
:root{color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff9f4;color:#242324;font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Meiryo",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit}
.xmas-page{--red:#d7153a;--pink:#fce8ea;--evergreen:#005a4d;--gold:#c68b25;--ink:#252527;--soft:#fffaf5;margin:0 auto;max-width:960px;background:var(--soft);padding:0 0 28px;box-shadow:0 5px 70px rgba(98,53,52,.08);overflow:clip}
.xmas-page :focus-visible,.floating-top:focus-visible{outline:3px solid #e9a83f;outline-offset:3px}
.xmas-page p,.xmas-page h1,.xmas-page h2,.xmas-page h3{margin:0}
/* Festive hero: all typography is HTML, not baked into the image. */
.xmas-page .hero{isolation:isolate;position:relative;min-height:0;aspect-ratio:1440 / 680;background:#fff6e7 url("../images/hero.jpg") center center / 100% auto no-repeat;display:grid;place-items:center;text-align:center;overflow:hidden}
.xmas-page .hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(255,249,231,.12),rgba(255,251,242,.30) 40%,rgba(255,250,238,.10))}
.xmas-page .hero-content{position:relative;z-index:2;padding:24px 14px 28px;width:100%;max-width:780px}
.title-content{text-shadow:0 1px 0 rgba(255,255,255,.9);}
.xmas-page .hero-eyebrow{font-family:Georgia,serif;color:#ba8a42;font-size:14px;letter-spacing:.17em;margin:0 0 7px}
.xmas-page .hero-title{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif;color:#ffffde;font-weight:800;letter-spacing:.09em;line-height:1.42;font-size:clamp(29px,4vw,43px);filter:drop-shadow(0 2px 2px rgba(100,100,100,.8))}
.xmas-page .hero-title em{font-style:normal;font-size:1.24em}
.xmas-page .hero-year{font-family:Georgia,"Times New Roman",serif;color:#e1ffde;font-size:clamp(56px,7.5vw,88px);line-height:1.08;letter-spacing:.05em;margin:0 0 14px;filter:drop-shadow(0 2px 2px rgba(100,100,100,.8))}
.xmas-page .hero-description{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(14px,2.2vw,19px);font-weight:700;line-height:1.75;color:#ffffff;filter:drop-shadow(0 2px 2px rgba(100,100,100,.5))}
.xmas-page .hero-deco{position:absolute;z-index:1;color:#c58b32;pointer-events:none;animation:xmas-twinkle 6s ease-in-out infinite alternate}
.xmas-page .hero-deco--one{left:10%;top:13%;font-size:28px}
.xmas-page .hero-deco--two{right:18%;top:28%;font-size:22px;animation-delay:1.5s}
/* Delicate snowfall in the hero only. Generated in JS; non-interactive. */
/* Snowfall sits above the photograph and remains visible over the ivory center.
   It never receives pointer events, so it cannot block navigation. */
.xmas-page .hero-snow{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.xmas-page .snowflake{position:absolute;left:var(--snow-x);top:-24px;width:var(--snow-size);height:var(--snow-size);border-radius:50%;background:rgba(255,255,255,.98);border:0;box-shadow:0 0 2px rgba(83,98,109,.42),0 0 6px rgba(255,255,255,.88);opacity:0;will-change:transform;animation:xmas-snowfall var(--snow-time) linear var(--snow-delay) infinite}
.xmas-page .hero-snow.is-paused .snowflake{animation-play-state:paused}
@keyframes xmas-snowfall{
  0%{opacity:0;transform:translate3d(0,-18px,0) rotate(0deg)}
  9%{opacity:var(--snow-opacity)}
  30%{transform:translate3d(var(--snow-left),calc(var(--snow-fall) * .30),0) rotate(30deg)}
  63%{opacity:var(--snow-opacity);transform:translate3d(var(--snow-right),calc(var(--snow-fall) * .63),0) rotate(90deg)}
  92%{opacity:var(--snow-opacity)}
  100%{opacity:0;transform:translate3d(var(--snow-drift),var(--snow-fall),0) rotate(145deg)}
}
@keyframes xmas-twinkle{from{opacity:.4;transform:scale(.9)}to{opacity:1;transform:scale(1.13)}}
/* Sticky two-category navigation */
.xmas-page .jump-nav{position:sticky;top:0;z-index:35;background:rgba(255,250,245,.95);padding:10px 12px 4px;box-shadow:0 5px 18px rgba(57,46,46,.11);backdrop-filter:blur(12px)}
.xmas-page .jump-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.xmas-page .jump-link{color:white;border-radius:13px;min-height:70px;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-weight:800;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;border:2px solid transparent}
.xmas-page .jump-link:hover{filter:brightness(1.07);transform:translateY(-1px)}
.xmas-page .jump-link--piano{background:linear-gradient(135deg,#f04162,#bb1234);box-shadow:0 4px 10px rgba(180,25,51,.16)}
.xmas-page .jump-link--chorus{background:linear-gradient(135deg,#118771,#00564b);box-shadow:0 4px 10px rgba(0,87,73,.16)}
.xmas-page .jump-link.is-active{border-color:#e2b65f;box-shadow:0 0 0 2px #fff,0 0 0 4px #e5ad4d}
.xmas-page .jump-icon{font-size:26px;font-family:Georgia,serif;flex:0 0 auto}
.xmas-page .jump-label{font-size:17px;line-height:1.24;text-align:left}
.xmas-page .jump-label small{font-size:15px;display:block;font-weight:750}
.xmas-page .jump-chevron{font-size:21px;line-height:1;opacity:.82}
.xmas-page .reading-track{margin-top:9px;height:3px;background:#f9d9d9;border-radius:99px;overflow:hidden}
.xmas-page .reading-progress{height:100%;display:block;background:linear-gradient(90deg,#d61144,#e5b45a,#087b67);width:0;transition:width .08s linear}
/* Section image banners and product catalog */
.xmas-page .catalog-section{scroll-margin-top:96px;padding:16px 13px 6px}
.xmas-page .catalog-section--chorus{margin-top:20px}
.xmas-page .category-hero{border-radius:17px;position:relative;isolation:isolate;min-height:0;aspect-ratio:1440 / 400;background-position:center;background-size:100% auto;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;box-shadow:0 5px 17px rgba(80,40,42,.11)}
.xmas-page .category-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(40,0,0,.08),rgba(80,0,0,.08),rgba(40,0,0,.08))}
.xmas-page .piano-hero{background-color:#dd2850;background-image:url("../images/piano-banner.jpg")}
.xmas-page .chorus-hero{background-color:#006a5a;background-image:url("../images/chorus-banner.jpg")}
.xmas-page .category-hero-copy{padding:32px 15px;color:white;text-shadow:0 2px 10px rgba(25,17,17,.35);position:relative;z-index:1}
.xmas-page .category-kicker{display:block;font:italic 17px Georgia,serif;letter-spacing:.05em;color:#ffeac8;margin-bottom:7px}
.xmas-page .category-hero h2{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif;font-size:clamp(27px,4.2vw,44px);font-weight:800;line-height:1.35;letter-spacing:.065em}
.xmas-page .category-hero p{font-size:15px;font-weight:700;margin-top:13px}
.xmas-page .section-count{font-size:13px;color:#756359;margin:14px 8px 12px;font-weight:600}
.xmas-page .section-count strong{font-size:17px;color:var(--red)}
.xmas-page .product-list{display:grid;grid-template-columns:1fr;gap:11px}
.xmas-page .product-card{background:#fff;position:relative;border:1px solid #fff1e7;border-radius:16px;padding:13px 13px;display:grid;grid-template-columns:142px minmax(0,1fr);gap:17px;min-height:190px;box-shadow:0 5px 19px rgba(122,79,53,.07);transition:transform .22s ease,box-shadow .22s ease}
.xmas-page .product-card:hover{transform:translateY(-2px);box-shadow:0 7px 25px rgba(107,59,55,.12)}
.xmas-page .product-cover-link{display:block;align-self:start;border-radius:9px;overflow:hidden;background:#ffefe4;box-shadow:0 3px 10px rgba(75,42,34,.12)}
.xmas-page .product-cover{display:block;width:100%;aspect-ratio:360/500;object-fit:cover;height:auto}
/* Four original covers are closer to square: show full artwork, no cropping. */
.xmas-page .product-card--wide-cover .product-cover{aspect-ratio:auto;object-fit:contain}
.xmas-page .product-details{min-width:0;display:flex;flex-direction:column;padding-right:0}
.xmas-page .product-name{font-size:clamp(16px,2vw,20px);font-weight:800;line-height:1.5;color:#d40b31;max-height:3em;overflow:hidden;overflow-wrap:anywhere;letter-spacing:.005em}
.xmas-page .product-meta{font-size:13px;font-weight:750;margin-top:4px;color:#615557}
.xmas-page .product-description{font-size:14px;line-height:1.5;color:#555050;max-width:60ch;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.xmas-page .product-actions{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.xmas-page .product-price{display:flex;align-items:baseline;gap:0;white-space:nowrap}
.xmas-page .product-price strong{font-size:22px;color:#221e1e;letter-spacing:-.02em;line-height:1.12}
.xmas-page .product-price .yen{font-size:.78em;margin-left:1px}
.xmas-page .product-price .tax{font-size:12px;color:#676363}
.xmas-page .product-button{display:inline-flex;gap:10px;align-items:center;justify-content:center;white-space:nowrap;background:linear-gradient(115deg,#087d67,#005447);color:#fff;padding:11px 18px;border-radius:99px;text-decoration:none;font-size:14px;font-weight:800;box-shadow:0 2px 8px rgba(0,90,75,.17);min-height:44px;transition:transform .18s ease,background .18s ease}
.xmas-page .product-button:hover{transform:translateY(-1px);background:#007a67}
.xmas-page .product-button span{font-size:22px;line-height:0}
.xmas-page .product--missing .product-name{color:#8d635e;font-size:15px}
.floating-top{position:fixed;z-index:80;right:max(15px,calc((100vw - 960px)/2 + 18px));bottom:calc(17px + env(safe-area-inset-bottom));width:55px;height:55px;border:2px solid white;border-radius:50%;color:white;background:linear-gradient(130deg,#f24a6b,#bb173a);font-size:31px;box-shadow:0 5px 18px rgba(111,44,50,.3);opacity:0;pointer-events:none;transform:translateY(15px);transition:opacity .25s ease,transform .25s ease;cursor:pointer}
.floating-top.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
/* Only reveal items with JS when observer is available, and don't animate excessively. */
@media (prefers-reduced-motion:no-preference){.xmas-page.js-motion .product-card.reveal{opacity:0;transform:translateY(13px)}.xmas-page.js-motion .product-card.reveal.is-shown{opacity:1;transform:translateY(0);transition:opacity .5s ease,transform .5s ease}}
@media (max-width:640px){
  .xmas-page .hero{aspect-ratio:auto;min-height:500px;background-image:url("../images/hero-mobile.jpg");background-position:center;background-size:cover}
  .xmas-page .hero-content{padding:45px 11px 51px}
  .xmas-page .hero-title{font-size:clamp(29px,7.7vw,40px)}
  .xmas-page .hero-year{font-size:71px}
  .xmas-page .hero-description{font-size:14px;line-height:1.65}
  .xmas-page .jump-nav{padding:8px 8px 4px}
  .xmas-page .jump-links{gap:6px}
  .xmas-page .jump-link{min-height:65px;border-radius:11px;gap:5px;padding:7px 6px}
  .xmas-page .jump-icon{font-size:21px}
  .xmas-page .jump-label{font-size:13px;line-height:1.3}
  .xmas-page .jump-label small{font-size:12px}
  .xmas-page .jump-chevron{font-size:14px}
  .xmas-page .catalog-section{padding:11px 10px 4px;scroll-margin-top:88px}
  .xmas-page .category-hero{aspect-ratio:auto;min-height:216px;border-radius:12px;background-size:cover;background-position:center}
  .xmas-page .piano-hero{background-image:url("../images/piano-banner-mobile.jpg")}
  .xmas-page .chorus-hero{background-image:url("../images/chorus-banner-mobile.jpg")}
  .xmas-page .category-hero::before{background:linear-gradient(90deg,rgba(26,0,0,.07),rgba(60,0,0,.32) 33%,rgba(40,0,0,.30) 65%,rgba(26,0,0,.05))}
  .xmas-page .category-hero h2{font-size:clamp(27px,6.3vw,35px);text-shadow:0 2px 12px rgba(35,13,20,.65)}
  .xmas-page .category-hero p{font-size:12px;margin-top:10px}
  .xmas-page .category-kicker{font-size:13px}
  .xmas-page .product-list{gap:9px}
  .xmas-page .product-card{grid-template-columns:105px minmax(0,1fr);padding:10px;gap:11px;min-height:171px;border-radius:13px}
  .xmas-page .product-cover-link{border-radius:7px}
  .xmas-page .product-name{font-size:16px;line-height:1.43;max-height:2.86em}
  .xmas-page .product-meta{font-size:11px;margin-top:4px}
  .xmas-page .product-description{font-size:12px;line-height:1.43;margin-top:5px;min-height:0}
  .xmas-page .product-details{padding-right:0}
  .xmas-page .product-actions{padding-top:8px;flex-direction:column;align-items:flex-start;gap:6px}
  .xmas-page .product-price strong{font-size:19px}
  .xmas-page .product-price .tax{font-size:10px}
  .xmas-page .product-button{font-size:12px;padding:9px 16px;min-height:37px;align-self:flex-end}
  }
@media (max-width:350px){
  .xmas-page .product-card{grid-template-columns:89px minmax(0,1fr);gap:8px;padding:8px}
  .xmas-page .product-name{font-size:14px}
  .xmas-page .product-description{font-size:11px}
  .xmas-page .jump-label{font-size:12px}
  .xmas-page .jump-label small{font-size:11px}
  .xmas-page .jump-icon{font-size:19px}
  .xmas-page .product-price strong{font-size:17px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.xmas-page .hero-deco{animation:none}.xmas-page .hero-snow{display:none}.xmas-page *, .floating-top{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Oct 21 updates: a visible red round mark on exactly two October releases. */
.xmas-page .product-cover-link{position:relative;overflow:visible}
.xmas-page .product-cover{border-radius:8px;overflow:hidden}
.xmas-page .new-round-badge{position:absolute;z-index:2;top:-7px;left:-7px;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#d7153a;color:#fff;font-size:14px;font-weight:800;letter-spacing:.01em;border:3px solid #fff;box-shadow:0 2px 9px rgba(143,23,52,.24);pointer-events:none}
.xmas-page .christmas-footer{padding:21px 0 0;overflow:hidden}
.xmas-page .christmas-footer picture,.xmas-page .christmas-footer img{display:block;width:100%}
.xmas-page .christmas-footer img{height:auto;object-fit:contain}
@media (max-width:640px){
  .xmas-page .new-round-badge{width:42px;height:42px;top:-5px;left:-5px;font-size:13px}
  .xmas-page .christmas-footer{padding-top:17px}
}
