/* =====================================================================
   白梅屋 凛 — 季節のしつらえ（2026-11）
   js/season.js が html に data-season を付ける。sakura.css の後に読み込み、差し色と花びらだけを替える
   （文字の色・形は sakura.css のまま。桜の季節は sakura.css そのまま）。
   夜（data-tod="night"）は、地の色と灯りの花びらを sakura.css の夜のままにする
   ===================================================================== */

/* ---- 白梅（立春〜雨水）: 白い地に、梅の深い紅 ---- */
html[data-season="ume"]{
  --gold:#C99AAA; --gold-soft:#9C3D5C; --sakura:#F7E9EE; --sakura-soft:#F6EEF1; --plum-line:rgba(156,61,92,.22);
}
html[data-season="ume"]:not([data-tod="night"]){ --ink:#FCFBF7; --ink-soft:#F3EFE7; --wa-washi-bg:#FFFEFA; }
html[data-season="ume"]:not([data-tod="night"]) .petal:not(.paw){
  background-color:transparent;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='%23FFFFFF' stroke='%23D9B3C0' stroke-width='.6'%3E%3Ccircle cx='10' cy='4.6' r='3.6'/%3E%3Ccircle cx='15.2' cy='8.4' r='3.6'/%3E%3Ccircle cx='13.2' cy='14.6' r='3.6'/%3E%3Ccircle cx='6.8' cy='14.6' r='3.6'/%3E%3Ccircle cx='4.8' cy='8.4' r='3.6'/%3E%3C/g%3E%3Ccircle cx='10' cy='10.4' r='2' fill='%23D9BE81'/%3E%3C/svg%3E");
  border-radius:0;
}

/* ---- 若葉（穀雨〜小満）: 青葉の緑 ---- */
html[data-season="wakaba"]{
  --gold:#9DBB86; --gold-soft:#4C7A36; --sakura:#A9D18E; --sakura-soft:#E3F0D8; --plum-line:rgba(76,122,54,.22);
}
html[data-season="wakaba"]:not([data-tod="night"]){ --ink:#F7FAF3; --ink-soft:#E9F1E1; --wa-washi-bg:#FBFDF8; }
html[data-season="wakaba"]:not([data-tod="night"]) .petal:not(.ume):not(.paw){ background:#9CCB7C; border-radius:0 80% 0 80%; }

/* ---- 紫陽花（芒種・夏至）: 雨に映える青紫 ---- */
html[data-season="ajisai"]{
  --gold:#9AA0D0; --gold-soft:#4F59A3; --sakura:#B3B8EC; --sakura-soft:#E6E8F8; --plum-line:rgba(79,89,163,.22);
}
html[data-season="ajisai"]:not([data-tod="night"]){ --ink:#F6F6FC; --ink-soft:#E8E8F6; --wa-washi-bg:#FAFAFF; }
html[data-season="ajisai"]:not([data-tod="night"]) .petal:not(.ume):not(.paw){ background:#AEB4EA; border-radius:35%; }
html[data-season="ajisai"]:not([data-tod="night"]) .petal:nth-child(3n):not(.ume):not(.paw){ background:#D3B1E3; }

/* ---- 朝顔（小暑〜処暑）: 涼しい藍 ---- */
html[data-season="asagao"]{
  --gold:#8DB4D4; --gold-soft:#2C679C; --sakura:#9CC3E6; --sakura-soft:#E1EDF7; --plum-line:rgba(44,103,156,.22);
}
html[data-season="asagao"]:not([data-tod="night"]){ --ink:#F5F9FC; --ink-soft:#E4EEF6; --wa-washi-bg:#FAFCFE; }
html[data-season="asagao"]:not([data-tod="night"]) .petal:not(.ume):not(.paw){ background:#8FB8E8; border-radius:50%; }
html[data-season="asagao"]:not([data-tod="night"]) .petal:nth-child(4n):not(.ume):not(.paw){ background:#C7A6E0; }

/* ---- 紅葉（白露〜立冬）: もみじの朱 ---- */
html[data-season="momiji"]{
  --gold:#D29A7A; --gold-soft:#A9442A; --sakura:#E07B4F; --sakura-soft:#F8E2D4; --plum-line:rgba(169,68,42,.22);
}
html[data-season="momiji"]:not([data-tod="night"]){ --ink:#FCF7F2; --ink-soft:#F5E8DC; --wa-washi-bg:#FFFBF6; }
html[data-season="momiji"]:not([data-tod="night"]) .petal:not(.ume):not(.paw){ background:#DD6B3D; border-radius:50% 0 50% 0; }
html[data-season="momiji"]:not([data-tod="night"]) .petal:nth-child(3n):not(.ume):not(.paw){ background:#E9A23B; }

/* ---- 雪（小雪〜大寒）: 冬の青鼠 ---- */
html[data-season="yuki"]{
  --gold:#A3B3C8; --gold-soft:#4A6283; --sakura:#DCE5F0; --sakura-soft:#EDF2F8; --plum-line:rgba(74,98,131,.22);
}
html[data-season="yuki"]:not([data-tod="night"]){ --ink:#F6F8FB; --ink-soft:#E9EEF4; --wa-washi-bg:#FBFCFE; }
html[data-season="yuki"]:not([data-tod="night"]) .petal:not(.ume):not(.paw){ background:#FFFFFF; border-radius:50%; box-shadow:0 0 3px rgba(74,98,131,.45); }

/* ---- 正月（12/29〜1/7）: 紅白と金。花びらは金の粉と紅白の梅 ---- */
html[data-season="shogatsu"]{
  --gold:#D4AF5A; --gold-soft:#B8323C; --sakura:#F7D9D4; --sakura-soft:#FCEDEA; --plum-line:rgba(184,50,60,.22);
}
html[data-season="shogatsu"]:not([data-tod="night"]){ --ink:#FFFCF7; --ink-soft:#F8EFE4; --wa-washi-bg:#FFFEFA; }
html[data-season="shogatsu"]:not([data-tod="night"]) .petal:not(.ume):not(.paw){ background:#E2B74F; border-radius:50%; }
html[data-season="shogatsu"]:not([data-tod="night"]) .petal:nth-child(3n):not(.ume):not(.paw){ background:#D9444F; border-radius:50% 50% 50% 0; }
html[data-season="shogatsu"] .hero-bg{ filter:saturate(.8) brightness(1.06); }
/* 門松（掛け軸の左右の足もと。文字と重ならないように）と鏡餅（おみくじの見出しの横）。飾りなので押せない・読み上げない */
.shogatsu-deco{ position:absolute; left:50%; transform:translateX(-50%); bottom:calc(9vh - 14px); width:calc(min(380px, 100%) + 36px + 2 * var(--kado-w) + 24px); height:0; pointer-events:none; z-index:1; --kado-w:clamp(48px, 5vw, 68px); }
.shogatsu-deco .kadomatsu{ position:absolute; bottom:0; width:var(--kado-w); }
.shogatsu-deco .kadomatsu.left{ left:0; }
.shogatsu-deco .kadomatsu.right{ right:0; transform:scaleX(-1); }
html[data-season="shogatsu"] .visual-caption{ bottom:34%; }
.shogatsu-deco svg, .kagami svg{ display:block; width:100%; height:auto; }
.section-head .kagami{ display:inline-block; width:44px; margin-left:12px; vertical-align:middle; }
@media (max-width:860px){ .shogatsu-deco{ bottom:calc(4vh - 10px); width:calc(min(260px, 100%) + 26px + 2 * var(--kado-w) + 16px); --kado-w:44px; } }
/* スマホは掛け軸が小さいので、小さな門松を掛け軸の足もとの左右に（はみ出す分は題名に掛からない幅） */
@media (max-width:600px){
  .shogatsu-deco{ bottom:10px; width:calc(100% + 34px); --kado-w:26px; }
  .section-head .kagami{ width:34px; margin-left:6px; }
}

/* ---- どの季節も: 押せるボタンの色と、表紙の背景の色み（桜色の絵を季節の色に寄せる） ---- */
html[data-season]:not([data-season="sakura"]) .btn.solid{
  background:var(--gold-soft); border-color:var(--gold-soft);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.3), 0 2px 0 rgba(0,0,0,.18);
}
html[data-season]:not([data-season="sakura"]) .btn.solid:active{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.18); }
html[data-season]:not([data-season="sakura"]):not([data-tod="night"]) .hero-bg::after{
  background:linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 40%, var(--ink) 100%);
}
/* 桜色の霞（表紙・おみくじの箱・メニュー・絵巻）を、季節の色の霞に */
html[data-season]:not([data-season="sakura"]) .hero::before{
  background:
    radial-gradient(ellipse 60% 50% at 78% 30%, color-mix(in srgb, var(--sakura) 50%, transparent), transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 80%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%);
}
html[data-season]:not([data-season="sakura"]) .omikuji-box{
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--sakura) 40%, transparent), transparent 70%),
    linear-gradient(#FFFFFF, var(--sakura-soft));
}
html[data-season]:not([data-season="sakura"]) .emaki-panel + .emaki-panel::before{
  background:radial-gradient(ellipse at center, color-mix(in srgb, var(--sakura) 50%, transparent), transparent 70%);
}
@media (max-width:860px){
  html[data-season]:not([data-season="sakura"]):not([data-tod="night"]) nav ul#nav-list{
    background:radial-gradient(ellipse 90% 140px at 100% 0, color-mix(in srgb, var(--sakura) 50%, transparent), transparent 70%), var(--ink);
  }
}
html[data-season="ume"] .hero-bg{ filter:saturate(.6) brightness(1.08); }
html[data-season="yuki"] .hero-bg{ filter:saturate(.25) brightness(1.1); }
