/* ギャラリー：アトリエ（彫刻の工房）の写真を背景に。画面に固定し、上にうすい光の幕をかけて文字を読みやすく */
body.studio-bg { background: #e9e2d6; }
body.studio-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("studio-bg.jpg?v=2") center 30% / cover no-repeat;
}
body.studio-bg::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250, 246, 238, .55) 0%, rgba(250, 246, 238, .78) 22%, rgba(250, 246, 238, .78) 78%, rgba(250, 246, 238, .55) 100%);
}
body.studio-bg .gallery-page { position: relative; }
body.studio-bg .page-head h1 { text-shadow: 0 1px 12px rgba(255, 252, 245, .9); }
body.studio-bg .site-footer { position: relative; }
@media (max-width: 700px) { body.studio-bg::after { background: rgba(250, 246, 238, .74); } }
body.studio-bg .ev-hero { margin-top: 0; box-shadow: 0 14px 36px rgba(40, 25, 10, .25); }

/* ===== ギャラリーの帯：イタリアの展示室。スポットライトが絵に当たり、額がきらめく ===== */
.gv-hero { --ov: 248, 238, 222; }
.gv-hero .ev-hero-text h1 { color: #6b2f18; }
.gv-hero .ev-hero-text .ev-en { color: #b8492e; }
.gv-hero .gv-sheen { opacity: 0; }
.gv-hero .gv-glints circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.gv-hero .gv-beams { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .gv-hero .gv-beam { animation: gvBreath 6s ease-in-out infinite; }
  .gv-hero .gv-beam.b2 { animation-delay: -2s; } .gv-hero .gv-beam.b3 { animation-delay: -4s; }
  .gv-hero .gv-sheen { animation: gvSheen 7s ease-in-out infinite; }
  .gv-hero .gv-art:nth-of-type(2) .gv-sheen { animation-delay: -2.3s; }
  .gv-hero .gv-art:nth-of-type(3) .gv-sheen { animation-delay: -4.6s; }
  .gv-hero .gv-glints circle { animation: gvGlint 4s ease-in-out infinite; }
  .gv-hero .gv-glints .g2 { animation-delay: -1.1s; } .gv-hero .gv-glints .g3 { animation-delay: -2.4s; }
  .gv-hero .gv-glints .g4 { animation-delay: -3.1s; } .gv-hero .gv-glints .g5 { animation-delay: -.6s; }
  .gv-hero .gv-dust circle { animation: gvDust 9s linear infinite; }
  .gv-hero .gv-dust circle:nth-child(2n) { animation-duration: 12s; animation-delay: -4s; }
  .gv-hero .gv-dust circle:nth-child(3n) { animation-duration: 15s; animation-delay: -7s; }
  .gv-hero .gv-p { animation: gvSway 7s ease-in-out infinite; }
  .gv-hero .gv-p:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
}
@keyframes gvBreath { 50% { opacity: .78; } }
@keyframes gvSheen { 0%, 60%, 100% { opacity: 0; transform: translateX(-30px); } 75% { opacity: 1; transform: translateX(0); } 90% { opacity: 0; transform: translateX(30px); } }
@keyframes gvGlint { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1.4); } 88% { opacity: .5; transform: scale(.9); } }
@keyframes gvDust { from { transform: translate(0, 0); opacity: 0; } 20% { opacity: .9; } to { transform: translate(14px, -60px); opacity: 0; } }
@keyframes gvSway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-1.2deg); } 65% { transform: rotate(.9deg); } }
/* ===== イベント：レモンの木の下、アマルフィのテラスで囲む食卓の写真を背景に ===== */
body.studio-bg.event-bg::before { background-image: url("event-bg.jpg?v=1"); background-position: center 55%; }
body.event-bg .ev-page { position: relative; }
body.event-bg .ev-planning { background: rgba(255, 250, 242, .92); }
body.event-bg .ev-soon-card { background: rgba(255, 255, 255, .85); opacity: .9; }body.event-bg .ev-hero { margin-top: 28px; }

/* ===== イベントの背景：見る時間帯で光と空気が変わる ===== */
body.event-bg::before { transition: filter 1s; }
/* 朝焼け：やわらかい桃色の朝の光 */
html.bgt-dawn body.event-bg::before { filter: sepia(.18) saturate(1.05) hue-rotate(-12deg) brightness(1.03); }
html.bgt-dawn body.event-bg::after { background: linear-gradient(180deg, rgba(255, 214, 220, .35) 0%, rgba(0,0,0,0) 40%), linear-gradient(90deg, rgba(255, 244, 240, .55) 0%, rgba(255, 244, 240, .78) 22%, rgba(255, 244, 240, .78) 78%, rgba(255, 244, 240, .55) 100%); }
/* 夕焼け：オレンジの夕日に染まる */
html.bgt-dusk body.event-bg::before { filter: sepia(.45) saturate(1.45) hue-rotate(-14deg) brightness(.92) contrast(1.05); }
html.bgt-dusk body.event-bg::after { background: radial-gradient(ellipse 60% 50% at 8% 40%, rgba(255, 150, 70, .35), rgba(255, 150, 70, 0) 70%), linear-gradient(90deg, rgba(255, 236, 214, .5) 0%, rgba(255, 236, 214, .75) 22%, rgba(255, 236, 214, .75) 78%, rgba(255, 236, 214, .5) 100%); }
/* 夜：月明かりの青と、テラスの灯り */
html.bgt-night body.event-bg::before { filter: brightness(.42) saturate(.75) contrast(1.1) hue-rotate(-8deg); }
html.bgt-night body.event-bg::after {
  background:
    radial-gradient(ellipse 30% 22% at 50% 62%, rgba(255, 196, 110, .28), rgba(255, 196, 110, 0) 70%),
    radial-gradient(ellipse 18% 14% at 88% 30%, rgba(255, 196, 110, .22), rgba(255, 196, 110, 0) 70%),
    linear-gradient(180deg, rgba(20, 32, 80, .45) 0%, rgba(20, 32, 80, .15) 50%, rgba(20, 32, 80, .3) 100%),
    linear-gradient(90deg, rgba(222, 228, 245, .28) 0%, rgba(222, 228, 245, .55) 22%, rgba(222, 228, 245, .55) 78%, rgba(222, 228, 245, .28) 100%);
}
html.bgt-night body.event-bg .ev-head h2 { color: #fdf3e2; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
html.bgt-night body.event-bg .ev-head .ev-en { color: #ffc48a; }
@media (max-width: 700px) { html.bgt-night body.event-bg::after { background: rgba(30, 40, 80, .4); } }
/* 夜をもっと暗く */
html.bgt-night body.event-bg::before { filter: brightness(.26) saturate(.7) contrast(1.15) hue-rotate(-8deg); }
html.bgt-night body.event-bg::after {
  background:
    radial-gradient(ellipse 30% 22% at 50% 62%, rgba(255, 190, 100, .22), rgba(255, 190, 100, 0) 70%),
    radial-gradient(ellipse 18% 14% at 88% 30%, rgba(255, 190, 100, .16), rgba(255, 190, 100, 0) 70%),
    linear-gradient(180deg, rgba(8, 14, 40, .62) 0%, rgba(8, 14, 40, .38) 50%, rgba(8, 14, 40, .55) 100%);
}
html.bgt-night body.event-bg .ev-planning { background: rgba(255, 250, 242, .94); }
/* 夜：少し明るく、青みがかった月夜 */
html.bgt-night body.event-bg::before { filter: brightness(.48) saturate(.75) contrast(1.08) sepia(.15) hue-rotate(185deg); }
html.bgt-night body.event-bg::after {
  background:
    radial-gradient(ellipse 30% 22% at 50% 62%, rgba(255, 196, 110, .22), rgba(255, 196, 110, 0) 70%),
    radial-gradient(ellipse 18% 14% at 88% 30%, rgba(255, 196, 110, .16), rgba(255, 196, 110, 0) 70%),
    linear-gradient(180deg, rgba(40, 70, 140, .38) 0%, rgba(40, 70, 140, .22) 50%, rgba(30, 55, 120, .35) 100%);
}
/* ===== ギャラリーの背景：時間帯で照明が変わる ===== */
body.studio-bg:not(.event-bg)::before { transition: filter 1s; }
/* 朝：青みのある朝の自然光が窓から入る */
html.gt-morning body.studio-bg:not(.event-bg)::before { filter: brightness(1.04) saturate(.8) contrast(.98) hue-rotate(-6deg); }
html.gt-morning body.studio-bg:not(.event-bg)::after {
  background:
    linear-gradient(115deg, rgba(200, 225, 255, .45) 0%, rgba(200, 225, 255, 0) 45%),
    linear-gradient(90deg, rgba(236, 243, 252, .55) 0%, rgba(236, 243, 252, .78) 22%, rgba(236, 243, 252, .78) 78%, rgba(236, 243, 252, .55) 100%);
}
html.gt-morning .gv-hero { filter: saturate(.85) hue-rotate(-8deg) brightness(1.04); }
/* 昼：そのままの明るい昼の光（基本の設定） */
/* 午後：低くなった日差しが斜めに差し込む、金色がかった光 */
html.gt-afternoon body.studio-bg:not(.event-bg)::before { filter: sepia(.2) saturate(1.12) brightness(1.02); }
html.gt-afternoon body.studio-bg:not(.event-bg)::after {
  background:
    linear-gradient(118deg, rgba(255, 236, 190, 0) 10%, rgba(255, 236, 190, .35) 18%, rgba(255, 236, 190, 0) 28%),
    linear-gradient(118deg, rgba(255, 236, 190, 0) 40%, rgba(255, 236, 190, .28) 48%, rgba(255, 236, 190, 0) 58%),
    linear-gradient(90deg, rgba(252, 244, 228, .55) 0%, rgba(252, 244, 228, .76) 22%, rgba(252, 244, 228, .76) 78%, rgba(252, 244, 228, .55) 100%);
}
html.gt-afternoon .gv-hero { filter: sepia(.12) saturate(1.08); }
/* 夕方：窓の外はオレンジ。室内には白い蛍光灯がともる */
html.gt-evening body.studio-bg:not(.event-bg)::before { filter: sepia(.42) saturate(1.35) hue-rotate(-12deg) brightness(.82); }
html.gt-evening body.studio-bg:not(.event-bg)::after {
  background:
    linear-gradient(180deg, rgba(236, 248, 244, .5) 0%, rgba(236, 248, 244, 0) 30%),
    radial-gradient(ellipse 45% 55% at 50% 20%, rgba(255, 150, 70, .28), rgba(255, 150, 70, 0) 70%),
    linear-gradient(90deg, rgba(250, 238, 224, .5) 0%, rgba(250, 240, 230, .72) 22%, rgba(250, 240, 230, .72) 78%, rgba(250, 238, 224, .5) 100%);
}
html.gt-evening .gv-hero { filter: sepia(.25) saturate(1.2) hue-rotate(-8deg); }
/* 夜：ギャラリーの白熱灯の照明。暖かい光だまりと、落ち着いた暗がり */
html.gt-night body.studio-bg:not(.event-bg)::before { filter: brightness(.5) sepia(.55) saturate(1.35) hue-rotate(-10deg) contrast(1.08); }
html.gt-night body.studio-bg:not(.event-bg)::after {
  background:
    radial-gradient(ellipse 22% 30% at 10% 35%, rgba(255, 196, 110, .38), rgba(255, 196, 110, 0) 70%),
    radial-gradient(ellipse 22% 30% at 90% 40%, rgba(255, 196, 110, .34), rgba(255, 196, 110, 0) 70%),
    radial-gradient(ellipse 22% 26% at 50% 8%, rgba(255, 210, 140, .3), rgba(255, 210, 140, 0) 70%),
    linear-gradient(90deg, rgba(40, 24, 12, .25) 0%, rgba(255, 238, 210, .45) 25%, rgba(255, 238, 210, .45) 75%, rgba(40, 24, 12, .25) 100%);
}
html.gt-night .gv-hero { filter: sepia(.35) saturate(1.2) brightness(.92); }
html.gt-night .gv-hero .gv-beams { opacity: 1; }
/* 歩いている間は、体を小さく上下させる */
.gv-hero .gv-p.walking { animation: gvStep .5s ease-in-out infinite !important; }
@keyframes gvStep { 50% { transform: translateY(-1.5px); } }
