

:root{
  --yellow:#ffd84d;--orange:#ff7a00;--green:#188b5b;--ink:#111;
  --cream:#fff7df;--pink:#ff799d;--white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  background:#111;color:#111;overflow-x:hidden;
}
body.lock{overflow:hidden}
a{text-decoration:none;color:inherit}
button{font:inherit}
img{max-width:100%;display:block}

/* opening */
#opening{
  position:fixed;inset:0;z-index:9999;background:
  radial-gradient(circle at 50% 38%,rgba(50,50,50,.15),transparent 25%),
  linear-gradient(#050505,#111);
  display:grid;place-items:center;overflow:hidden;
  transition:opacity 1.2s ease,visibility 1.2s ease;
}
#opening.hide{opacity:0;visibility:hidden;pointer-events:none}
.opening-glow{
  position:absolute;width:60vmin;height:60vmin;border-radius:50%;
  background:radial-gradient(circle,rgba(255,191,0,.20),transparent 68%);
  filter:blur(18px);opacity:0;animation:glowIn 8s ease forwards;
}
@keyframes glowIn{0%,45%{opacity:0;transform:scale(.6)}75%{opacity:.65}100%{opacity:.9;transform:scale(1.2)}}
.brush-title{
  position:relative;z-index:3;writing-mode:vertical-rl;text-orientation:upright;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(56px,10vw,110px);font-weight:900;letter-spacing:.12em;
  color:#f9f4e6;text-shadow:0 0 18px rgba(255,255,255,.12);
}
.brush-char{
  display:inline-block;opacity:0;filter:blur(9px);
  transform:scale(1.8) translateX(-18px);
  animation:inkWrite .55s cubic-bezier(.2,.75,.2,1) forwards;
}
@keyframes inkWrite{
  0%{opacity:0;filter:blur(10px);transform:scale(1.8) translateX(-18px)}
  55%{opacity:1;filter:blur(2px)}
  100%{opacity:1;filter:blur(0);transform:none}
}
.ink-splash{
  position:absolute;width:130px;height:130px;border-radius:50%;z-index:2;pointer-events:none;
  background:radial-gradient(circle,rgba(0,0,0,.75) 0 12%,rgba(0,0,0,.34) 18%,rgba(0,0,0,0) 65%);
  transform:scale(.05);opacity:0;animation:splash .9s ease-out forwards;
}
@keyframes splash{20%{opacity:.85}100%{opacity:0;transform:scale(2.3)}}
.opening-logo{
  position:absolute;bottom:10%;left:50%;transform:translate(-50%,30px);
  color:#fff;text-align:center;opacity:0;animation:logoRise 1.1s ease 6.4s forwards;
}
.opening-logo strong{display:block;font-size:clamp(28px,5vw,54px);letter-spacing:.08em}
.opening-logo small{letter-spacing:.34em;color:var(--yellow);font-weight:900}
@keyframes logoRise{to{opacity:1;transform:translate(-50%,0)}}
.skip{
  position:absolute;right:22px;top:22px;z-index:5;border:1px solid rgba(255,255,255,.35);
  color:white;background:rgba(255,255,255,.08);border-radius:999px;padding:10px 16px;
  cursor:pointer;font-size:12px;letter-spacing:.12em;
}
.petal{
  position:fixed;top:-12vh;z-index:10000;pointer-events:none;
  animation:petalFall linear infinite;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.18));
}
@keyframes petalFall{
  0%{transform:translate3d(0,-12vh,0) rotate(0deg)}
  35%{transform:translate3d(45px,35vh,0) rotate(150deg)}
  70%{transform:translate3d(-30px,75vh,0) rotate(290deg)}
  100%{transform:translate3d(60px,115vh,0) rotate(430deg)}
}


.enter-site{
  position:absolute;left:50%;bottom:4.5%;z-index:6;
  transform:translate(-50%,20px);opacity:0;
  border:0;border-radius:999px;padding:13px 25px;
  font-weight:1000;letter-spacing:.16em;cursor:pointer;
  color:#111;background:linear-gradient(90deg,var(--yellow),var(--orange));
  box-shadow:0 12px 35px rgba(255,122,0,.3);
  animation:enterIn .8s ease 6.6s forwards;
}
@keyframes enterIn{to{opacity:1;transform:translate(-50%,0)}}

/* page */
.site{background:#fff}
header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.08)
}
.nav{width:min(1180px,calc(100% - 32px));height:74px;margin:auto;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-weight:1000}
.mark{
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:white;
  background:conic-gradient(from 210deg,var(--yellow),var(--orange),var(--pink),var(--green),var(--yellow));
  box-shadow:0 10px 25px rgba(255,122,0,.25);font-weight:1000
}
.brand span small{display:block;font-size:10px;letter-spacing:.2em;color:var(--green)}
.links{display:flex;gap:22px;align-items:center;font-size:13px;font-weight:900}
.links a:hover{color:var(--orange)}
.cta{background:linear-gradient(90deg,var(--yellow),var(--orange));padding:11px 18px;border-radius:999px}
.menu{display:none;border:0;background:none;font-size:28px}

.hero{
  min-height:calc(100vh - 74px);position:relative;overflow:hidden;display:flex;align-items:center;
  background:
    radial-gradient(circle at 12% 20%,rgba(255,216,77,.7),transparent 25%),
    radial-gradient(circle at 85% 20%,rgba(24,139,91,.22),transparent 24%),
    linear-gradient(135deg,#fff7d5,#fff 52%,#ffe4cc);
}
.hero:before{
  content:"";position:absolute;width:56vw;height:56vw;right:-10vw;bottom:-24vw;border-radius:50%;
  background:conic-gradient(var(--yellow),var(--orange),var(--pink),var(--green),var(--yellow));
  filter:saturate(1.1);opacity:.9;
}
.hero-inner{width:min(1180px,calc(100% - 32px));margin:auto;display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;position:relative;z-index:2}
.kicker{font-size:12px;letter-spacing:.28em;font-weight:1000;color:var(--green)}
.hero h1{
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(58px,8vw,110px);
  line-height:1.02;margin:14px 0 22px;font-weight:900;
}
.hero h1 span{background:linear-gradient(90deg,var(--orange),var(--pink));-webkit-background-clip:text;color:transparent}
.hero p{font-size:18px;font-weight:700;max-width:640px;line-height:1.9}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{padding:15px 24px;border-radius:999px;font-weight:1000;display:inline-flex;align-items:center;justify-content:center}
.btn-main{background:linear-gradient(90deg,var(--yellow),var(--orange));box-shadow:0 14px 34px rgba(255,122,0,.24)}
.btn-sub{background:#fff;border:2px solid var(--green);color:var(--green)}
.hero-visual{height:540px;position:relative}
.sun{
  position:absolute;right:5%;top:8%;width:360px;height:360px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#fff6a0 24%,var(--yellow) 50%,var(--orange) 78%,var(--pink));
  box-shadow:0 30px 80px rgba(255,122,0,.28);animation:pulseSun 5s ease-in-out infinite
}
@keyframes pulseSun{50%{transform:scale(1.05)}}
.runner{
  position:absolute;right:0;bottom:10%;font-size:clamp(70px,10vw,140px);font-weight:1000;
  font-style:italic;color:#161616;transform:rotate(-8deg);text-shadow:9px 9px 0 rgba(255,255,255,.85)
}
.speed-line{position:absolute;height:8px;border-radius:99px;background:linear-gradient(90deg,transparent,var(--orange));right:12%;animation:speed 2.2s ease-in-out infinite}
.s1{width:320px;top:45%}.s2{width:220px;top:54%;animation-delay:.8s}.s3{width:270px;top:63%;animation-delay:.6s}
@keyframes speed{50%{transform:translateX(45px);opacity:.35}}
.section{padding:100px 0;position:relative}
.wrap{width:min(1180px,calc(100% - 32px));margin:auto}
.section h2{font-size:clamp(38px,6vw,68px);line-height:1.18;margin:8px 0 20px;font-weight:1000}
.lead{max-width:760px;color:#666;font-weight:600;line-height:1.9}
.reveal{opacity:1;transform:none}


.story{background:linear-gradient(180deg,#fff,#fff8e6)}
.story-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:center}
.emblem{
  min-height:440px;border-radius:34px;display:grid;place-items:center;position:relative;overflow:hidden;
  background:linear-gradient(145deg,var(--yellow),var(--orange));box-shadow:0 28px 70px rgba(255,122,0,.22)
}
.emblem:before{
  content:"念ずれば\A花開く";white-space:pre;text-align:center;font-family:"Yu Mincho",serif;
  font-size:58px;line-height:1.45;font-weight:900;transform:rotate(-4deg)
}
.emblem:after{content:"INAMI TRACK & FIELD";position:absolute;bottom:28px;color:white;letter-spacing:.22em;font-size:12px;font-weight:1000}
.values{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px}
.value{background:#fff;border-radius:22px;padding:22px;box-shadow:0 14px 34px rgba(0,0,0,.08);border-top:7px solid var(--yellow)}
.value:nth-child(2){border-color:var(--orange)}.value:nth-child(3){border-color:var(--green)}.value:nth-child(4){border-color:var(--pink)}

.program{background:linear-gradient(135deg,#fff0f5,#f4eeff 48%,#e9f8ff)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:38px}
.card{background:white;border-radius:26px;padding:26px;box-shadow:0 16px 38px rgba(80,60,140,.13);transition:.25s}
.card:hover{transform:translateY(-9px) rotate(-1deg)}
.icon{width:56px;height:56px;border-radius:17px;display:grid;place-items:center;color:white;font-size:28px}
.card:nth-child(1) .icon{background:linear-gradient(135deg,var(--yellow),var(--orange))}
.card:nth-child(2) .icon{background:linear-gradient(135deg,#42b5ff,#3266d7)}
.card:nth-child(3) .icon{background:linear-gradient(135deg,var(--green),#075c3d)}
.card:nth-child(4) .icon{background:linear-gradient(135deg,var(--pink),#a83c64)}

.results{background:#151515;color:white;overflow:hidden}
.results:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 20%,rgba(255,216,77,.18),transparent 25%),radial-gradient(circle at 80% 70%,rgba(24,139,91,.24),transparent 26%)}
.results .wrap{position:relative}
.scoreboard{display:grid;grid-template-columns:.85fr 1.15fr;border-radius:34px;overflow:hidden;margin-top:36px;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.score-main{padding:42px;background:linear-gradient(145deg,var(--yellow),var(--orange),var(--pink));color:#111;text-align:center}
.score-main b{font-size:108px;line-height:1;display:block}
.score-list{padding:30px 42px;background:linear-gradient(145deg,#262626,#171717)}
.score-row{display:grid;grid-template-columns:1fr auto;gap:20px;padding:20px 0;border-bottom:1px solid #444}
.score-row b{font-size:28px;color:var(--yellow)}

.gallery-grid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:220px;gap:14px;margin-top:36px}
.photo{border-radius:24px;overflow:hidden;position:relative;display:flex;align-items:end;padding:20px;color:#fff;font-weight:1000;box-shadow:0 15px 35px rgba(0,0,0,.12)}
.photo:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.62))}
.photo span,.photo b{position:relative;z-index:2}
.photo b{position:absolute;inset:0;display:grid;place-items:center;font-size:82px;opacity:.88}
.p1{grid-row:span 2;background:linear-gradient(135deg,#ffcf3e,#ff6f00)}
.p2{background:linear-gradient(135deg,#28c985,#08784e)}
.p3{background:linear-gradient(135deg,#41b4ff,#5260d8)}
.p4{background:linear-gradient(135deg,#ff89ad,#b94476)}
.p5{background:linear-gradient(135deg,#9070ff,#4e37a8)}

.schedule{background:linear-gradient(135deg,#fff4bf,#ffe8d2)}
.days{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:36px}
.day{background:white;border-radius:24px;padding:24px;box-shadow:0 14px 34px rgba(255,122,0,.12);border-bottom:7px solid #aaa}
.day:nth-child(2){border-color:var(--orange)}.day:nth-child(3){border-color:var(--green)}.day:nth-child(4){border-color:var(--pink)}
.day b{display:block;font-size:22px;margin:14px 0 4px}

.goods{background:linear-gradient(135deg,#1a1830,#30275e);color:white}
.goods-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:36px}
.goods-card{min-height:310px;border-radius:30px;padding:34px;position:relative;overflow:hidden}
.shirt{background:linear-gradient(145deg,#101010,#333)}.banner{background:linear-gradient(145deg,var(--yellow),var(--orange))}
.goods-card h3{font-size:30px;margin:0}.mock{position:absolute;right:22px;bottom:6px;font-size:110px;opacity:.78}

.quote{
  padding:96px 0;text-align:center;color:white;
  background:linear-gradient(110deg,var(--yellow),var(--orange),var(--pink),var(--green));
  background-size:260% 260%;animation:bgMove 10s ease infinite
}
@keyframes bgMove{50%{background-position:100% 50%}}
.quote p{font-family:"Yu Mincho",serif;font-size:clamp(40px,6vw,80px);line-height:1.35;font-weight:900;margin:0}

.contact{background:#fff}
.contact-box{border-radius:34px;padding:48px;background:linear-gradient(135deg,#fff4b9,#ffe7f1,#e1f4ff);display:grid;grid-template-columns:1fr 1fr;gap:42px;box-shadow:0 22px 60px rgba(80,60,150,.15)}
.form{display:grid;gap:14px}.form input,.form textarea{width:100%;border:1px solid #ddd;border-radius:14px;padding:14px;font:inherit;margin-top:7px}
.form label{font-size:13px;font-weight:900}.form button{border:0}
footer{background:#111;color:#ccc;padding:34px 0}.footer{display:flex;justify-content:space-between;align-items:center;gap:20px}

@media(max-width:900px){
  .links{display:none;position:absolute;top:74px;left:16px;right:16px;background:white;padding:20px;border-radius:20px;box-shadow:0 20px 50px rgba(0,0,0,.16);flex-direction:column;align-items:stretch}
  .links.open{display:flex}.menu{display:block}
  .hero-inner,.story-grid,.contact-box{grid-template-columns:1fr}
  .hero-visual{height:380px}.sun{width:300px;height:300px}
  .cards,.days{grid-template-columns:repeat(2,1fr)}
  .scoreboard,.goods-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}.p1{grid-column:span 2;grid-row:auto}
}

.opening-wind{
  position:absolute;inset:0;pointer-events:none;overflow:hidden;
}
.opening-wind::before,
.opening-wind::after{
  content:"";position:absolute;left:-35%;width:170%;height:2px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
  opacity:0;filter:blur(.4px);
  animation:windLine 2.8s ease-in-out infinite;
}
.opening-wind::before{top:28%;animation-delay:1.2s}
.opening-wind::after{top:61%;animation-delay:3.2s}
@keyframes windLine{
  0%,100%{opacity:0;transform:translateX(-12%)}
  45%{opacity:.45}
  60%{opacity:.15;transform:translateX(18%)}
}

.ink-transition{
  position:absolute;left:50%;top:50%;width:18vmin;height:18vmin;border-radius:50%;
  transform:translate(-50%,-50%) scale(.1);
  background:
    radial-gradient(circle at 45% 45%,rgba(0,0,0,.98) 0 30%,rgba(0,0,0,.75) 45%,rgba(0,0,0,.3) 64%,transparent 72%);
  opacity:0;pointer-events:none;z-index:7;
  animation:inkExpand 3.3s ease 10.7s forwards;
}
@keyframes inkExpand{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}
  15%{opacity:.95}
  58%{opacity:1;transform:translate(-50%,-50%) scale(8)}
  78%{opacity:.9}
  100%{opacity:0;transform:translate(-50%,-50%) scale(12)}
}

.sunrise-transition{
  position:absolute;inset:0;z-index:8;pointer-events:none;opacity:0;
  background:
    radial-gradient(circle at 50% 68%,rgba(255,255,255,1) 0 5%,rgba(255,230,120,.95) 16%,rgba(255,142,33,.75) 34%,rgba(255,104,80,.28) 53%,transparent 70%);
  transform:scale(.7);
  animation:sunriseReveal 3.1s ease 12.0s forwards;
}
@keyframes sunriseReveal{
  0%{opacity:0;transform:scale(.7)}
  35%{opacity:.92}
  70%{opacity:.72;transform:scale(1.18)}
  100%{opacity:0;transform:scale(1.45)}
}

.opening-title-css{
  animation:titleFadeOut 1.2s ease 10.6s forwards;
}
@keyframes titleFadeOut{
  to{opacity:0;filter:blur(4px);transform:translateY(-7vh) scale(.96)}
}
.opening-logo-css{
  animation:logoCss 1s ease 8.8s forwards, logoHold 2.2s ease 11.5s forwards;
}
@keyframes logoHold{
  0%{opacity:1}
  100%{opacity:0;transform:translate(-50%,-18px)}
}
.css-enter{
  animation:enterCss .8s ease 9.4s forwards, enterFade 1s ease 11.6s forwards;
}
@keyframes enterFade{to{opacity:0}}
.css-skip{animation:skipFade .3s ease 11.75s forwards}
@keyframes skipFade{to{opacity:0;visibility:hidden;pointer-events:none}}

@media(max-width:560px){
  .section{padding:74px 0}.hero{min-height:auto;padding:60px 0 30px}
  .hero h1{font-size:58px}.hero p{font-size:15px}.hero-visual{height:310px}.runner{font-size:66px}
  .values,.cards,.days,.gallery-grid{grid-template-columns:1fr}.p1{grid-column:auto}
  .score-main b{font-size:82px}.score-list{padding:22px}.contact-box{padding:28px}.footer{flex-direction:column;align-items:flex-start}
  .brush-title{font-size:52px}
  .opening-logo{bottom:13%}
  .enter-site{bottom:4%}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* CSS-only opening: no JavaScript and no page navigation */
body{background:#fff}
#main{display:block}
#opening-css{
  position:fixed;inset:0;z-index:9999;overflow:hidden;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 50% 38%,rgba(255,184,0,.18),transparent 30%),
    linear-gradient(145deg,#050505,#161616);
  opacity:1;visibility:visible;pointer-events:auto;
  animation:openingAway .01s linear 15.1s forwards;
}
@keyframes openingAway{
  from{opacity:1;visibility:visible;pointer-events:auto}
  to{opacity:0;visibility:hidden;pointer-events:none}
}
#main:target ~ #opening-css,
#main:target + #opening-css{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
.opening-glow-css{
  position:absolute;width:65vmin;height:65vmin;border-radius:50%;
  background:radial-gradient(circle,rgba(255,187,0,.22),transparent 68%);
  filter:blur(20px);animation:pulseCss 5s ease-in-out infinite;
}
@keyframes pulseCss{50%{transform:scale(1.18);opacity:.65}}
.opening-title-css{
  position:relative;z-index:3;writing-mode:vertical-rl;text-orientation:upright;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(54px,10vw,108px);font-weight:900;letter-spacing:.12em;
  color:#fff8e9;
  transform:translateY(-7vh);
}
.opening-title-css span{
  display:inline-block;opacity:0;filter:blur(8px);transform:scale(1.5);
  animation:writeCss .55s ease forwards;
}
@keyframes writeCss{to{opacity:1;filter:blur(0);transform:none}}
.opening-title-css span:nth-child(1){animation-delay:.3s}
.opening-title-css span:nth-child(2){animation-delay:1.4s}
.opening-title-css span:nth-child(3){animation-delay:2.0s}
.opening-title-css span:nth-child(4){animation-delay:2.6s}
.opening-title-css span:nth-child(5){animation-delay:2.3s}
.opening-title-css span:nth-child(6){animation-delay:3.9s}
.opening-title-css span:nth-child(7){animation-delay:4.6s}
.opening-title-css span:nth-child(8){animation-delay:5.3s}
.opening-logo-css{
  position:absolute;left:50%;bottom:8%;transform:translateX(-50%);
  text-align:center;color:white;opacity:0;white-space:nowrap;
  animation:logoCss 1s ease 8.8s forwards;
}
.opening-logo-css strong{display:block;font-size:clamp(24px,5vw,48px);letter-spacing:.06em}
.opening-logo-css small{color:var(--yellow);letter-spacing:.28em;font-weight:900}
@keyframes logoCss{to{opacity:1;transform:translate(-50%,-8px)}}
.css-skip,.css-enter{
  position:absolute;z-index:20;text-decoration:none;font-weight:900;
}
.css-skip{
  right:20px;top:20px;color:white;border:1px solid rgba(255,255,255,.4);
  padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.08);
}
.css-enter{
  left:50%;bottom:1.5%;transform:translateX(-50%);
  color:#111;padding:13px 26px;border-radius:999px;
  background:linear-gradient(90deg,var(--yellow),var(--orange));
  box-shadow:0 12px 35px rgba(255,122,0,.34);
  opacity:0;animation:enterCss .8s ease 9.4s forwards;
}
@keyframes enterCss{to{opacity:1;transform:translate(-50%,-6px)}}
.css-petal{position:absolute;top:-12vh;pointer-events:none;animation:fallCss linear infinite}
@keyframes fallCss{
  0%{transform:translateY(-12vh) rotate(0)}
  50%{transform:translate(50px,55vh) rotate(220deg)}
  100%{transform:translate(-20px,115vh) rotate(430deg)}
}
@media(max-width:560px){
  .opening-title-css{
    font-size:48px;
    transform:translateY(-11vh);
  }
  .opening-logo-css{
    bottom:10%;
    white-space:normal;
    width:88%;
  }
  .opening-logo-css strong{
    font-size:24px;
    line-height:1.3;
  }
  .opening-logo-css small{
    display:block;
    margin-top:5px;
    font-size:10px;
    letter-spacing:.18em;
  }
  .css-enter{
    bottom:2%;
  }
}


/* TEAM STAFF */
.staff{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 18%,rgba(255,216,77,.18),transparent 24%),
    radial-gradient(circle at 88% 78%,rgba(24,139,91,.16),transparent 25%),
    linear-gradient(145deg,#171717,#252525);
  color:#fff;
}
.staff::before{
  content:"TEAM STAFF";
  position:absolute;
  right:-18px;
  top:18px;
  color:rgba(255,255,255,.035);
  font-size:clamp(70px,14vw,190px);
  line-height:1;
  font-weight:1000;
  letter-spacing:-.06em;
  white-space:nowrap;
}
.staff .wrap{position:relative;z-index:2}
.staff-heading{margin-bottom:38px}
.staff-heading .kicker{color:var(--yellow)}
.staff-heading .lead{color:#c8c8c8}
.director-card{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  min-height:590px;
  overflow:hidden;
  border-radius:34px;
  background:#0f0f0f;
  box-shadow:0 30px 80px rgba(0,0,0,.38);
  border:1px solid rgba(255,255,255,.08);
}
.director-photo{
  position:relative;
  min-height:590px;
  overflow:hidden;
}
.director-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:54% center;
  filter:none;
  transform:none;
}
.director-photo::after{display:none}
.director-label{
  position:absolute;
  left:28px;
  bottom:25px;
  z-index:2;
  padding:9px 15px;
  border-radius:999px;
  color:#171717;
  background:linear-gradient(90deg,var(--yellow),var(--orange));
  font-size:12px;
  font-weight:1000;
  letter-spacing:.13em;
}
.director-info{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:55px 48px;
  background:
    radial-gradient(circle at 80% 20%,rgba(255,122,0,.16),transparent 28%),
    linear-gradient(145deg,#151515,#232323);
}
.director-info::before{
  content:"監督";
  position:absolute;
  right:23px;
  top:18px;
  color:rgba(255,216,77,.08);
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:96px;
  font-weight:900;
}
.staff-role{
  margin:0 0 12px;
  color:var(--yellow);
  font-size:13px;
  font-weight:1000;
  letter-spacing:.22em;
}
.director-info h3{
  position:relative;
  margin:0;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(38px,5vw,64px);
  line-height:1.2;
  letter-spacing:.06em;
}
.director-info h3 small{
  display:block;
  margin-top:10px;
  color:#a9a9a9;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  letter-spacing:.18em;
}
.staff-line{
  width:90px;
  height:5px;
  margin:25px 0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--yellow),var(--orange),var(--green));
}
.director-copy{
  margin:0;
  color:#d2d2d2;
  font-size:15px;
  line-height:2;
}
.staff-note{
  margin-top:24px;
  color:#909090;
  font-size:12px;
}
@media(max-width:900px){
  .director-card{grid-template-columns:1fr}
  .director-photo{min-height:480px}
  .director-photo::after{
    background:linear-gradient(180deg,transparent 58%,rgba(15,15,15,.93) 100%);
  }
  .director-info{padding:42px 32px}
}
@media(max-width:560px){
  .staff::before{top:35px}
  .director-card{border-radius:26px}
  .director-photo{min-height:390px}
  .director-photo img{object-position:55% center}
  .director-label{left:18px;bottom:18px}
  .director-info{padding:38px 24px}
  .director-info::before{font-size:68px}
}


.staff-members{
  margin-top:42px;
  padding:34px;
  border-radius:30px;
  color:#171717;
  background:#fffaf0;
  box-shadow:0 24px 60px rgba(0,0,0,.22);
}
.staff-members-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0 0 28px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(27px,4vw,42px);
  letter-spacing:.12em;
}
.staff-members-title::before,
.staff-members-title::after{
  content:"";
  width:min(16vw,170px);
  height:1px;
  background:#777;
}
.staff-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.staff-card{
  overflow:hidden;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
  border:1px solid #e8e2d7;
}
.staff-card-photo{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#ececec;
}
.staff-card-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transform:none;
}
.staff-card-body{
  padding:18px 18px 20px;
}
.staff-card-role{
  display:inline-block;
  margin-bottom:10px;
  padding:5px 10px;
  border-radius:999px;
  color:#171717;
  background:linear-gradient(90deg,var(--yellow),var(--orange));
  font-size:11px;
  font-weight:1000;
}
.staff-card.external .staff-card-role{
  color:white;
  background:var(--green);
}
.staff-card h4{
  margin:0;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:24px;
  letter-spacing:.06em;
}
.staff-card-note{
  margin:9px 0 0;
  color:#777;
  font-size:12px;
  line-height:1.7;
}
.staff-placeholder{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(145deg,#f5f5f5,#dfdfdf);
}
.staff-placeholder::before{
  content:"";
  width:82px;
  height:82px;
  border-radius:50%;
  background:#aaa;
  transform:translateY(-20px);
}
.staff-placeholder::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:20px;
  width:142px;
  height:82px;
  border-radius:72px 72px 22px 22px;
  background:#aaa;
  transform:translateX(-50%);
}
.staff-support-message{
  margin-top:24px;
  padding:24px;
  text-align:center;
  border-radius:20px;
  color:white;
  background:#111;
}
.staff-support-message strong{
  display:block;
  color:var(--yellow);
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(22px,3vw,34px);
  letter-spacing:.08em;
}
.staff-support-message span{
  display:block;
  margin-top:8px;
  color:#d6d6d6;
  line-height:1.8;
}
@media(max-width:1050px){
  .staff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .staff-members{padding:22px}
  .staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:500px){
  .staff-grid{grid-template-columns:1fr}
}


/* Top visitor counter */
.tf-visitor-bar{position:relative;z-index:40;display:flex;align-items:center;justify-content:center;gap:12px;min-height:37px;padding:7px 16px;background:#10120e;color:#ddd;border-bottom:1px solid rgba(255,216,77,.28);font-family:Arial,sans-serif;letter-spacing:.12em}
.tf-visitor-label{font-size:10px;font-weight:800;color:#ddd}
.tf-visitor-count{font-size:16px;font-weight:900;color:#ffd84d;letter-spacing:.13em;font-variant-numeric:tabular-nums}
.tf-visitor-mode{font-size:9px;color:#aaa;letter-spacing:.04em}
@media(max-width:560px){.tf-visitor-bar{gap:8px;padding:7px 8px;min-height:34px}.tf-visitor-label{font-size:9px}.tf-visitor-count{font-size:14px}.tf-visitor-mode{font-size:8px}}

/* Visitor count within the white navigation ribbon, immediately before team introduction */
header .nav .tf-visitor-bar{position:static;z-index:auto;flex:0 0 auto;min-height:0;padding:6px 10px;margin-left:auto;margin-right:13px;border:1px solid rgba(24,139,91,.18);border-radius:999px;background:rgba(255,216,77,.12);color:#333;gap:6px;letter-spacing:.02em;white-space:nowrap}
header .nav .tf-visitor-label{color:#526047;font-size:9px;letter-spacing:.02em}
header .nav .tf-visitor-count{color:#b46b00;font-size:13px;letter-spacing:.03em}
header .nav .tf-visitor-mode{display:none}
@media(max-width:1100px){header .nav .tf-visitor-bar{margin-right:8px;padding:5px 7px}header .nav .tf-visitor-label{font-size:8px}header .nav .tf-visitor-count{font-size:12px}}
@media(max-width:800px){header .nav .tf-visitor-bar{margin-left:auto;margin-right:12px}header .nav .tf-visitor-label{font-size:8px}}
@media(max-width:390px){header .nav .tf-visitor-bar{gap:4px;padding:5px 6px;margin-right:6px}header .nav .tf-visitor-label{font-size:7px}header .nav .tf-visitor-count{font-size:11px}}

/* Animated staff runner portraits: Yagita & Yonetani */
.staff-runner-scene{position:relative;isolation:isolate;width:100%;aspect-ratio:4/3;overflow:hidden;background:linear-gradient(165deg,#fff9eb 0%,#fff3d6 60%,#ffe8bb 100%);display:flex;align-items:center;justify-content:center}
.staff-runner-scene.yagita{background:linear-gradient(165deg,#fff7ed,#ffebd6 70%,#ffe0bb)}
.staff-runner-scene.yonetani{background:linear-gradient(165deg,#fffce8,#fff3ca 70%,#ffe6a2)}
.staff-runner-scene::before{content:'';position:absolute;width:140%;height:55%;left:-20%;bottom:-30%;border:3px solid rgba(190,107,45,.23);border-radius:50%;transform:rotate(-9deg);box-shadow:0 -13px 0 -10px rgba(190,107,45,.23),0 -28px 0 -25px rgba(190,107,45,.23)}
.staff-runner-scene::after{content:'';position:absolute;inset:auto 0 0;height:22%;background:linear-gradient(transparent,rgba(255,255,255,.45));pointer-events:none}
.staff-runner-icon{position:relative;z-index:2;width:35%;max-width:110px;filter:drop-shadow(0 7px 3px rgba(82,47,18,.14));animation:staff-runner-bob .52s ease-in-out infinite alternate}
.staff-runner-icon .runner-arm-front{transform-origin:57px 53px;animation:staff-runner-arm .5s ease-in-out infinite alternate}
.staff-runner-icon .runner-arm-back{transform-origin:42px 53px;animation:staff-runner-arm .5s ease-in-out infinite alternate-reverse}
.staff-runner-icon .runner-leg-front{transform-origin:48px 77px;animation:staff-runner-leg .5s ease-in-out infinite alternate}
.staff-runner-icon .runner-leg-back{transform-origin:48px 77px;animation:staff-runner-leg .5s ease-in-out infinite alternate-reverse}
.staff-runner-scene .speed-lines{position:absolute;z-index:1;left:8%;top:39%;width:23%;display:grid;gap:11px;animation:staff-speed .9s linear infinite}
.staff-runner-scene .speed-lines i{height:3px;border-radius:10px;background:rgba(181,106,32,.28)}
.staff-runner-scene .speed-lines i:nth-child(2){width:65%;margin-left:18%}
.staff-runner-scene .speed-lines i:nth-child(3){width:80%;margin-left:7%}
.staff-runner-label{position:absolute;z-index:3;bottom:10%;left:0;right:0;text-align:center;color:#7a502b;font-weight:800;font-size:clamp(10px,1.1vw,13px);letter-spacing:.18em}
@keyframes staff-runner-bob{from{transform:translate(5px,3px) rotate(-2deg)}to{transform:translate(12px,-4px) rotate(2deg)}}
@keyframes staff-runner-arm{from{transform:rotate(-24deg)}to{transform:rotate(28deg)}}
@keyframes staff-runner-leg{from{transform:rotate(-22deg)}to{transform:rotate(28deg)}}
@keyframes staff-speed{from{transform:translateX(7px);opacity:.4}to{transform:translateX(-8px);opacity:1}}
@media(prefers-reduced-motion:reduce){.staff-runner-scene *{animation:none!important}}


/* Ekiden: roadside course, relay sash and motion */
.staff-runner-scene{background:linear-gradient(#dceef5 0 44%,#d4e4cc 44% 67%,#b8c8a2 67% 70%,#777b7b 70% 100%)!important}
.staff-runner-scene::before{content:'';position:absolute;inset:auto -10% 9% -10%;height:2px;background:repeating-linear-gradient(90deg,#fff 0 42px,transparent 42px 72px);border:0;border-radius:0;box-shadow:none;transform:none;opacity:.85}
.staff-runner-scene::after{content:'';position:absolute;left:-5%;right:-5%;top:42%;height:20%;background:repeating-linear-gradient(90deg,#52764d 0 12px,#6b8d59 12px 26px,#496f46 26px 40px);clip-path:polygon(0 65%,4% 22%,8% 70%,13% 10%,18% 70%,24% 17%,29% 70%,35% 7%,40% 70%,47% 20%,53% 70%,59% 6%,64% 70%,70% 12%,76% 70%,82% 20%,88% 70%,94% 10%,100% 70%,100% 100%,0 100%);opacity:.8;z-index:0}
.staff-runner-scene .staff-runner-icon{z-index:2}
.staff-runner-scene .speed-lines{z-index:2}
.staff-runner-label{color:#fff;background:rgba(25,39,39,.72);border-radius:999px;width:max-content;max-width:90%;padding:5px 13px;margin:auto;bottom:5%;letter-spacing:.1em}
.staff-runner-scene .ekiden-sash{filter:drop-shadow(1px 1px 1px #5555)}


/* オープニングの白い横線を非表示（他の演出は維持） */
#opening-css .opening-wind, #opening-css .opening-wind::before, #opening-css .opening-wind::after{display:none!important;animation:none!important;}



/* 石井 洋之・尾田 雅俊の「スペシャルアドバイザー」タグだけを銀色にする */
.staff-card.special-adviser-gold .staff-card-role {
  background: linear-gradient(135deg, #7f858b 0%, #c8ccd0 38%, #f2f3f4 58%, #9ca1a6 100%) !important;
  color: #111 !important;
  border: 1px solid #bfc3c7 !important;
}

/* 玉田初彦の DIRECTOR タグを金色にする */
.director-label {
  background: linear-gradient(135deg, #8a6500 0%, #d4af37 45%, #f3d36a 70%, #a67c00 100%) !important;
  color: #111 !important;
  border: 1px solid #d4af37 !important;
}



/* Opening title fit adjustment: keep two vertical lines and clear the logo */
.opening-title-css{
  display:flex !important;
  flex-direction:row-reverse !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:0.28em !important;
  writing-mode:horizontal-tb !important;
  font-size:clamp(44px,7.2vmin,78px) !important;
  letter-spacing:.08em !important;
  transform:translateY(-5vh) !important;
  max-height:68vh !important;
}
.opening-title-col{
  writing-mode:vertical-rl;
  text-orientation:upright;
  white-space:nowrap;
}
.opening-title-css .opening-title-col span{display:inline-block;}
@media(max-width:560px){
  .opening-title-css{
    font-size:clamp(38px,11vw,48px) !important;
    gap:.22em !important;
    transform:translateY(-7vh) !important;
    max-height:64vh !important;
  }
}



/* =========================================================
   Opening refinement
   - Keep two vertical columns: 念ずれば / 花開く
   - Reveal strictly: 念→ず→れ→ば→花→開→く
   - Keep title as large as possible
   - Shrink logo and separate it from ENTER
========================================================= */

/* Keep the existing two-column vertical layout */
.opening-title-css{
  display:flex !important;
  flex-direction:row-reverse !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:.28em !important;
  writing-mode:horizontal-tb !important;

  /* Larger title while still fitting safely in the screen */
  font-size:clamp(52px,10.2vmin,96px) !important;
  letter-spacing:.055em !important;
  transform:translateY(-7vh) !important;
  max-height:66vh !important;
}

.opening-title-col{
  writing-mode:vertical-rl !important;
  text-orientation:upright !important;
  white-space:nowrap !important;
}

.opening-title-css .opening-title-col span{
  display:inline-block !important;
  opacity:0;
  filter:blur(8px);
  transform:scale(1.5);
  animation:writeCss .55s ease forwards !important;
}

/* Exact character order:
   念 → ず → れ → ば → 花 → 開 → く */
.opening-title-col.first span:nth-child(1){animation-delay:.30s !important}
.opening-title-col.first span:nth-child(2){animation-delay:1.05s !important}
.opening-title-col.first span:nth-child(3){animation-delay:1.80s !important}
.opening-title-col.first span:nth-child(4){animation-delay:2.55s !important}
.opening-title-col.second span:nth-child(1){animation-delay:3.30s !important}
.opening-title-col.second span:nth-child(2){animation-delay:4.05s !important}
.opening-title-col.second span:nth-child(3){animation-delay:4.80s !important}

/* Make INAMI Track & Field more compact and reserve clear space above ENTER */
.opening-logo-css{
  bottom:9.3% !important;
  width:min(86vw,520px) !important;
  white-space:normal !important;
  line-height:1.05 !important;
}

.opening-logo-css strong{
  display:block !important;
  font-size:clamp(17px,2.4vw,27px) !important;
  line-height:1.1 !important;
  letter-spacing:.055em !important;
}

.opening-logo-css small{
  display:block !important;
  margin-top:4px !important;
  font-size:clamp(7px,.8vw,10px) !important;
  line-height:1 !important;
  letter-spacing:.16em !important;
}

/* ENTER gets its own lower zone */
.css-enter{
  bottom:1.4% !important;
  padding:11px 24px !important;
  font-size:13px !important;
}

/* Short screens: preserve the title first, then keep clear logo/ENTER separation */
@media(max-height:700px){
  .opening-title-css{
    font-size:clamp(46px,9.4vmin,78px) !important;
    transform:translateY(-8vh) !important;
    max-height:62vh !important;
  }
  .opening-logo-css{
    bottom:10.2% !important;
  }
  .opening-logo-css strong{
    font-size:clamp(15px,2.1vw,23px) !important;
  }
  .css-enter{
    bottom:1.2% !important;
    padding:9px 21px !important;
  }
}

@media(max-width:560px){
  .opening-title-css{
    font-size:clamp(46px,12.5vw,58px) !important;
    gap:.22em !important;
    transform:translateY(-8vh) !important;
    max-height:62vh !important;
  }

  .opening-logo-css{
    bottom:10.5% !important;
    width:82% !important;
  }

  .opening-logo-css strong{
    font-size:17px !important;
  }

  .opening-logo-css small{
    font-size:8px !important;
    margin-top:3px !important;
  }

  .css-enter{
    bottom:1.8% !important;
    padding:10px 22px !important;
    font-size:12px !important;
  }
}



/* Final opening sizing / vertical offset adjustment */
.opening-title-css{
  /* Use more of the available screen without clipping */
  font-size:clamp(64px,12.2vmin,116px) !important;
  gap:.22em !important;
  letter-spacing:.035em !important;
  transform:translateY(-8vh) !important;
  max-height:72vh !important;
  overflow:visible !important;
}

/* Start 花開く one full character lower than 念ずれば */
.opening-title-col.second{
  transform:translateY(1.035em) !important;
}

@media(max-height:760px){
  .opening-title-css{
    font-size:clamp(56px,10.8vmin,94px) !important;
    transform:translateY(-9vh) !important;
    max-height:68vh !important;
  }
}

@media(max-width:560px){
  .opening-title-css{
    font-size:clamp(52px,14vw,66px) !important;
    gap:.18em !important;
    letter-spacing:.025em !important;
    transform:translateY(-9vh) !important;
    max-height:68vh !important;
  }
  .opening-title-col.second{
    transform:translateY(1.025em) !important;
  }
}



/* MAX opening title — push size close to the screen limit */
.opening-title-css{
  font-size:clamp(78px,15.2vmin,142px) !important;
  gap:.12em !important;
  letter-spacing:0 !important;
  transform:translateY(-10vh) !important;
  max-height:80vh !important;
  overflow:visible !important;
}
.opening-title-col.second{
  transform:translateY(1em) !important;
}
@media(max-height:760px){
  .opening-title-css{
    font-size:clamp(66px,13.2vmin,112px) !important;
    transform:translateY(-11vh) !important;
    max-height:76vh !important;
  }
}
@media(max-width:560px){
  .opening-title-css{
    font-size:clamp(60px,17vw,78px) !important;
    gap:.10em !important;
    letter-spacing:0 !important;
    transform:translateY(-10vh) !important;
    max-height:75vh !important;
  }
  .opening-title-col.second{
    transform:translateY(1em) !important;
  }
}



/* 有川ひなの：外部指導員タグを緑色のグラデーションに */
.staff-card.external .staff-card-role{
  color:#fff !important;
  background:linear-gradient(135deg,#075c3d 0%,#188b5b 38%,#28c985 68%,#0b744c 100%) !important;
  border:1px solid rgba(40,201,133,.75) !important;
  box-shadow:0 4px 12px rgba(24,139,91,.22);
}



/* TEAM SHIRT - back-only white T-shirt mockup */
.goods-card.shirt{
  min-height:430px !important;
  background:
    radial-gradient(circle at 77% 45%,rgba(255,184,0,.20),transparent 28%),
    linear-gradient(145deg,#0b0b0b,#1b1b1b) !important;
}
.shirt-back-visual{
  position:absolute;
  right:3%;
  top:50%;
  width:min(62%,410px);
  transform:translateY(-48%);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 22px 46px rgba(0,0,0,.42);
}
.shirt-back-visual img{
  display:block;
  width:100%;
  height:auto;
}
.goods-card.shirt h3,
.goods-card.shirt p{
  position:relative;
  z-index:2;
  max-width:34%;
}
.goods-card.shirt p{
  color:#ddd;
  line-height:1.8;
}
@media(max-width:760px){
  .goods-card.shirt{
    min-height:610px !important;
  }
  .goods-card.shirt h3,
  .goods-card.shirt p{
    max-width:100%;
  }
  .shirt-back-visual{
    width:88%;
    right:6%;
    top:auto;
    bottom:20px;
    transform:none;
  }
}



/* TEAM SHIRT: display the T-shirt mockup only */
.shirt-back-visual{
  position:absolute !important;
  right:2% !important;
  top:50% !important;
  width:min(64%,430px) !important;
  transform:translateY(-50%) !important;
  border-radius:0 !important;
  overflow:visible !important;
  background:transparent !important;
  box-shadow:none !important;
}
.shirt-back-visual img{
  width:100% !important;
  height:auto !important;
  display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 24px 28px rgba(0,0,0,.45));
}
@media(max-width:760px){
  .shirt-back-visual{
    width:82% !important;
    right:9% !important;
    top:auto !important;
    bottom:10px !important;
    transform:none !important;
  }
}



/* TEAM UNIFORM */
.goods-card.uniform-card{
  min-height:430px;
  background:
    radial-gradient(circle at 78% 42%,rgba(255,255,255,.38),transparent 27%),
    linear-gradient(145deg,#f7b500 0%,#ff7a00 100%) !important;
}
.uniform-card h3,
.uniform-card p{
  position:relative;
  z-index:2;
  max-width:39%;
}
.uniform-card p{
  line-height:1.8;
}
.uniform-visual{
  position:absolute;
  right:3%;
  top:50%;
  width:min(57%,330px);
  transform:translateY(-50%);
  z-index:1;
}
.uniform-visual img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 20px 24px rgba(0,0,0,.28));
}
@media(max-width:760px){
  .goods-card.uniform-card{min-height:620px;}
  .uniform-card h3,.uniform-card p{max-width:100%;}
  .uniform-visual{
    width:72%;
    right:14%;
    top:auto;
    bottom:12px;
    transform:none;
  }
}



/* TEAM UNIFORM image-fit fix */
.goods-card.uniform-card{
  min-height:460px !important;
  overflow:hidden !important;
}

.uniform-visual{
  position:absolute !important;
  right:4% !important;
  top:50% !important;
  width:52% !important;
  height:86% !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.uniform-visual img{
  width:auto !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  filter:drop-shadow(0 18px 22px rgba(0,0,0,.26)) !important;
}

@media(max-width:760px){
  .goods-card.uniform-card{
    min-height:700px !important;
  }

  .uniform-visual{
    width:86% !important;
    height:66% !important;
    right:7% !important;
    top:auto !important;
    bottom:18px !important;
    transform:none !important;
  }

  .uniform-visual img{
    width:auto !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
  }
}



/* TEAM UNIFORM transparent cutout treatment */
.uniform-visual{
  overflow:visible !important;
}
.uniform-visual::before{
  content:"";
  position:absolute;
  inset:10% 6%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.30),rgba(255,255,255,.10) 42%,transparent 72%);
  filter:blur(14px);
  z-index:-1;
}
.uniform-visual img{
  background:transparent !important;
  border-radius:0 !important;
  filter:
    drop-shadow(0 18px 22px rgba(0,0,0,.24))
    drop-shadow(0 0 10px rgba(255,216,77,.18)) !important;
}



.contact-result{
  margin-top:14px;
  min-height:24px;
  font-size:14px;
  font-weight:900;
  line-height:1.6;
}
.contact-result.success{color:#0b744c;}
.contact-result.error{color:#b42318;}
#contactSubmit:disabled{
  opacity:.65;
  cursor:wait;
}



/* 問い合わせ送信完了メッセージを見やすく */
.contact-result.success{
  font-size:20px !important;
  line-height:1.7 !important;
  font-weight:900 !important;
  margin-top:18px !important;
}
@media(max-width:560px){
  .contact-result.success{
    font-size:18px !important;
  }
}



.team-banner-extra{
  margin-top:28px;
  padding:22px;
  border-radius:26px;
  background:linear-gradient(145deg,#fff8d5 0%,#ffffff 45%,#fff0b7 100%);
  border:1px solid rgba(255,216,77,.38);
  box-shadow:0 18px 42px rgba(0,0,0,.16);
  overflow:hidden;
}
.team-banner-label{
  font-family:Oswald, sans-serif;
  font-size:28px;
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:16px;
  color:#111;
}
.team-banner-extra img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
  border-radius:14px;
}
@media(max-width:760px){
  .team-banner-extra{padding:12px;margin-top:20px;border-radius:18px}
  .team-banner-label{font-size:22px;margin:4px 4px 12px}
}



/* チームシンボル：横断幕の背面をTEAM ITEMSの背景になじませる */
.team-banner-extra{
  background:
    radial-gradient(circle at 50% 45%, rgba(255,216,77,.13), transparent 52%),
    linear-gradient(145deg,#17152b 0%,#29224e 100%) !important;
  border:1px solid rgba(255,216,77,.22) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.28) !important;
}
.team-banner-label{
  color:#fff !important;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif !important;
  letter-spacing:.08em !important;
}
.team-banner-extra img{
  background:transparent !important;
  box-shadow:0 16px 34px rgba(0,0,0,.22);
}



/* TEAM IDENTITY — banner edge cleanup */
.team-banner-extra{
  padding:22px !important;
  background:
    radial-gradient(circle at 50% 45%,rgba(255,216,77,.10),transparent 54%),
    linear-gradient(145deg,#17152b 0%,#29224e 100%) !important;
  border:1px solid rgba(255,216,77,.18) !important;
}
.team-banner-label{
  font-family:Oswald,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  color:#fff !important;
}
.team-banner-extra img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  border:0 !important;
  outline:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  clip-path:inset(2px 2px 2px 2px);
}
@media(max-width:760px){
  .team-banner-extra{padding:12px !important;}
}



/* Final TEAM IDENTITY typography + banner crop */
.team-banner-label{
  font-family:inherit !important;
  font-size:30px !important;
  font-weight:bold !important;
  letter-spacing:normal !important;
  margin:0 0 16px !important;
}
.team-banner-extra img{
  clip-path:none !important;
}
@media(max-width:760px){
  .team-banner-label{font-size:30px !important;margin:0 0 16px !important;}
}



/* TEAM IDENTITY lead: keep on one line on desktop */
.team-identity-lead{max-width:none !important;white-space:nowrap !important;font-size:clamp(13px,1.22vw,18px) !important;}
@media(max-width:760px){.team-identity-lead{white-space:normal !important;font-size:15px !important;}}



/* HISTORY */
.history{
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 15%,rgba(255,216,77,.22),transparent 23%),
    radial-gradient(circle at 86% 80%,rgba(24,139,91,.12),transparent 26%),
    linear-gradient(180deg,#fffdf5 0%,#fff 55%,#fff8e8 100%);
}
.history-heading{
  max-width:820px;
}
.history-timeline{
  position:relative;
  margin-top:52px;
  display:grid;
  gap:22px;
}
.history-timeline::before{
  content:"";
  position:absolute;
  left:92px;
  top:18px;
  bottom:18px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(var(--yellow),var(--orange),var(--green));
}
.history-item{
  position:relative;
  display:grid;
  grid-template-columns:150px 1fr;
  gap:28px;
  align-items:center;
}
.history-year{
  position:relative;
  z-index:2;
  justify-self:start;
  min-width:112px;
  padding:11px 14px;
  border-radius:999px;
  text-align:center;
  color:#111;
  font-size:14px;
  font-weight:1000;
  letter-spacing:.12em;
  background:linear-gradient(90deg,var(--yellow),var(--orange));
  box-shadow:0 10px 24px rgba(255,122,0,.20);
}
.history-card{
  position:relative;
  padding:28px 30px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 16px 36px rgba(0,0,0,.08);
}
.history-card::before{
  content:"";
  position:absolute;
  left:-12px;
  top:50%;
  width:22px;
  height:22px;
  transform:translateY(-50%) rotate(45deg);
  background:#fff;
  border-left:1px solid rgba(0,0,0,.05);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.history-card h3{
  margin:0 0 8px;
  font-size:25px;
}
.history-card p{
  margin:0;
  color:#666;
  line-height:1.9;
  font-weight:600;
}
.history-item:nth-child(3) .history-year{
  background:linear-gradient(90deg,#7be0ae,var(--green));
  color:#fff;
}
.history-item:nth-child(4) .history-year{
  background:linear-gradient(90deg,var(--orange),#ff9e3f);
}
@media(max-width:700px){
  .history-timeline::before{
    left:20px;
  }
  .history-item{
    grid-template-columns:1fr;
    gap:12px;
    padding-left:48px;
  }
  .history-year{
    justify-self:start;
    min-width:96px;
    font-size:12px;
  }
  .history-card::before{
    display:none;
  }
}



/* HISTORY championship highlights */
.history-round{
  display:inline-block;
  margin-bottom:9px;
  color:var(--green);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.12em;
}
.history-highlight strong{
  color:#e76600;
  font-weight:1000;
}
.history-champion{
  border:2px solid rgba(255,184,0,.42);
  background:
    radial-gradient(circle at 92% 15%,rgba(255,216,77,.18),transparent 24%),
    #fff;
}
.history-badge{
  display:inline-block;
  margin-top:16px;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--yellow),var(--orange));
  color:#111;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.12em;
}



.history-2025{
  border:2px solid rgba(24,139,91,.34);
  background:
    radial-gradient(circle at 92% 15%,rgba(40,201,133,.14),transparent 25%),
    #fff;
}
.history-2025 .history-badge{
  color:#fff;
  background:linear-gradient(90deg,#075c3d,#28c985);
}



.history-2008{
  border:2px solid rgba(255,122,0,.30);
  background:
    radial-gradient(circle at 92% 15%,rgba(255,216,77,.16),transparent 25%),
    #fff;
}
.history-2008 .history-badge{
  background:linear-gradient(90deg,#d8d8d8,#f5f5f5,#aaa);
  color:#111;
  border:1px solid #c7c7c7;
}



.history-2009{
  border:2px solid rgba(255,184,0,.46);
  background:
    radial-gradient(circle at 92% 15%,rgba(255,216,77,.22),transparent 25%),
    #fff;
}
.history-2009 .history-badge{
  background:linear-gradient(90deg,#b8860b,#f3d36a,#d4af37);
  color:#111;
  border:1px solid rgba(180,130,0,.28);
}



/* 2021 第29回全国中学校駅伝大会：全国優勝を華やかに強調 */
.history-2021-champion{
  position:relative;
  overflow:hidden;
  border:2px solid rgba(212,175,55,.68) !important;
  background:
    radial-gradient(circle at 88% 18%,rgba(255,238,145,.52),transparent 25%),
    radial-gradient(circle at 8% 90%,rgba(255,122,0,.10),transparent 30%),
    linear-gradient(135deg,#fffdf1 0%,#fff 48%,#fff5c7 100%) !important;
  box-shadow:
    0 20px 46px rgba(184,134,11,.18),
    inset 0 0 0 1px rgba(255,255,255,.9) !important;
}
.history-2021-champion::after{
  content:"CHAMPION";
  position:absolute;
  right:-14px;
  top:8px;
  font-size:clamp(42px,7vw,88px);
  line-height:1;
  font-weight:1000;
  letter-spacing:-.05em;
  color:rgba(212,175,55,.075);
  pointer-events:none;
}
.history-2021-champion .history-round{
  position:relative;
  z-index:1;
  display:inline-block;
  padding:7px 13px;
  border-radius:999px;
  color:#4c3500 !important;
  background:linear-gradient(90deg,#f4d56a,#fff2ad,#d4af37);
  border:1px solid rgba(166,124,0,.28);
  box-shadow:0 6px 16px rgba(184,134,11,.16);
}
.history-2021-champion h3,
.history-2021-champion p,
.history-2021-champion .history-badge{
  position:relative;
  z-index:1;
}
.history-2021-champion h3{
  color:#17120a;
  font-size:29px;
}
.history-badge-champion{
  background:linear-gradient(90deg,#8a6500,#d4af37,#f5dc78,#b8860b) !important;
  color:#111 !important;
  border:1px solid #d4af37 !important;
  box-shadow:0 7px 18px rgba(184,134,11,.20);
}



/* 2021 全国優勝：他のHISTORYカード／タグと同じデザインへ統一 */
.history-card.history-highlight:not(.history-champion):not(.history-2008):not(.history-2009):not(.history-2025):not(.history-2025-track){
  border:1px solid rgba(0,0,0,.07) !important;
  background:#fff !important;
  box-shadow:0 16px 36px rgba(0,0,0,.08) !important;
}
.history-card.history-highlight:not(.history-champion):not(.history-2008):not(.history-2009):not(.history-2025):not(.history-2025-track) .history-round{
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
  color:var(--green) !important;
}



.school-inami{
  color:#e6b800;
  font-weight:900;
}
.school-inamikita{
  color:#188b5b;
  font-weight:900;
}



/* HISTORY内の「稲美 Track & Field」をチームカラーで強調 */
.history-team-name{
  display:inline-block;
  font-weight:1000;
  background:linear-gradient(90deg,#e6b800 0%,#ff7a00 48%,#188b5b 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:#ff7a00;
  text-shadow:0 2px 10px rgba(255,122,0,.10);
}



.history-2025-track{
  border:2px solid rgba(255,184,0,.36);
  background:
    radial-gradient(circle at 92% 15%,rgba(255,216,77,.15),transparent 25%),
    #fff;
}
.history-2025-track .history-badge{
  background:linear-gradient(90deg,#d4af37,#f5dc78,#ff9e3f);
  color:#111;
  border:1px solid rgba(184,134,11,.25);
}



/* 個人全国優勝タグ：団体優勝とは少し違う特別カラー */
.history-2025-track .history-badge{
  background:linear-gradient(90deg,#0b6f72 0%,#38bfa5 48%,#b9f0d8 100%) !important;
  color:#062f30 !important;
  border:1px solid rgba(11,111,114,.35) !important;
  box-shadow:0 7px 18px rgba(11,111,114,.18) !important;
}



/* 個人全国優勝：タグはゴールドに戻し、カード全体で個人記録を区別 */
.history-2025-track{
  border:2px solid rgba(34,139,117,.42) !important;
  background:
    radial-gradient(circle at 90% 16%,rgba(82,207,177,.20),transparent 27%),
    radial-gradient(circle at 8% 88%,rgba(255,216,77,.10),transparent 30%),
    linear-gradient(135deg,#f3fffb 0%,#ffffff 52%,#e8f8f1 100%) !important;
  box-shadow:0 18px 40px rgba(20,120,100,.11) !important;
}
.history-2025-track .history-badge{
  background:linear-gradient(90deg,#d4af37,#f5dc78,#ff9e3f) !important;
  color:#111 !important;
  border:1px solid rgba(184,134,11,.25) !important;
  box-shadow:none !important;
}



/* 個人全国優勝カードをはっきり区別 */
.history-2025-track{
  background:
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.22),transparent 25%),
    linear-gradient(135deg,#0f7f68 0%,#22a987 52%,#66cdb1 100%) !important;
  border:2px solid rgba(5,91,74,.55) !important;
  box-shadow:0 20px 44px rgba(15,127,104,.24) !important;
}
.history-2025-track .history-round{
  color:#fff7bf !important;
}
.history-2025-track h3{
  color:#fff !important;
}
.history-2025-track p{
  color:rgba(255,255,255,.94) !important;
}
.history-2025-track p strong{
  color:#fff7a8 !important;
}
.history-2025-track .school-inamikita{
  color:#d9ff91 !important;
  -webkit-text-fill-color:#d9ff91 !important;
}
.history-2025-track .history-badge{
  background:linear-gradient(90deg,#f4d56a,#fff0a1,#d4af37) !important;
  color:#172018 !important;
  border:1px solid rgba(255,255,255,.45) !important;
  box-shadow:0 7px 18px rgba(0,0,0,.14) !important;
}



/* 中川悠聖選手の個人全国優勝カードだけを変更 */
.history-2025-track{
  background:linear-gradient(135deg,#dff7ef 0%,#c7eee1 52%,#eafaf4 100%) !important;
  border:2px solid #38a889 !important;
  box-shadow:0 18px 38px rgba(25,130,105,.16) !important;
}
.history-2025-track .history-round{
  color:#126d59 !important;
  -webkit-text-fill-color:#126d59 !important;
}
.history-2025-track h3{
  color:#171717 !important;
  -webkit-text-fill-color:#171717 !important;
}
.history-2025-track p{
  color:#3f4a46 !important;
  -webkit-text-fill-color:#3f4a46 !important;
}
.history-2025-track p strong{
  color:#b85b00 !important;
  -webkit-text-fill-color:#b85b00 !important;
}
.history-2025-track .school-inamikita{
  color:#08794f !important;
  -webkit-text-fill-color:#08794f !important;
  font-weight:1000 !important;
}
.history-2025-track .history-badge{
  background:linear-gradient(90deg,#d4af37,#f5dc78,#ff9e3f) !important;
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
  border:1px solid rgba(184,134,11,.25) !important;
}



/* 2025.08 中川悠聖選手・男子1500m全国優勝カード ONLY */
.history-item:has(.history-year:nth-child(1)) .history-2025-track,
.history-card.history-2025-track{
  background:
    radial-gradient(circle at 88% 14%,rgba(255,216,77,.14),transparent 28%),
    linear-gradient(135deg,#176b59 0%,#23866f 50%,#2e9b7e 100%) !important;
  border:2px solid #0d5a49 !important;
  box-shadow:0 20px 44px rgba(10,80,65,.24) !important;
}
.history-card.history-2025-track .history-round{
  color:#ffe77a !important;
  -webkit-text-fill-color:#ffe77a !important;
}
.history-card.history-2025-track h3{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
.history-card.history-2025-track p{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}
.history-card.history-2025-track p strong{
  color:#fff0a6 !important;
  -webkit-text-fill-color:#fff0a6 !important;
}
.history-card.history-2025-track .school-inamikita{
  color:#bdf5b4 !important;
  -webkit-text-fill-color:#bdf5b4 !important;
}
.history-card.history-2025-track .history-badge{
  background:linear-gradient(90deg,#d4af37,#f5dc78,#ffcf55) !important;
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
  border:1px solid rgba(255,255,255,.38) !important;
}



/* 中川悠聖選手カード：色より可読性を優先 */
.history-card.history-2025-track{
  background:#ffffff !important;
  border:1px solid rgba(0,0,0,.08) !important;
  box-shadow:0 16px 36px rgba(0,0,0,.08) !important;
}
.history-card.history-2025-track .history-round{
  color:#188b5b !important;
  -webkit-text-fill-color:#188b5b !important;
}
.history-card.history-2025-track h3{
  color:#171717 !important;
  -webkit-text-fill-color:#171717 !important;
}
.history-card.history-2025-track p{
  color:#555 !important;
  -webkit-text-fill-color:#555 !important;
  opacity:1 !important;
}
.history-card.history-2025-track p strong{
  color:#d76500 !important;
  -webkit-text-fill-color:#d76500 !important;
}
.history-card.history-2025-track .school-inamikita{
  color:#188b5b !important;
  -webkit-text-fill-color:#188b5b !important;
}
.history-card.history-2025-track .history-badge{
  background:linear-gradient(90deg,#d4af37,#f5dc78,#ffcf55) !important;
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
  border:1px solid rgba(184,134,11,.25) !important;
}



/* 中川悠聖選手カードだけ黄色に。文字の可読性を最優先 */
.history-card.history-2025-track{
  background:linear-gradient(135deg,#fff8c9 0%,#ffe88a 52%,#fff3b2 100%) !important;
  border:2px solid #e0b400 !important;
  box-shadow:0 18px 38px rgba(190,145,0,.16) !important;
}
.history-card.history-2025-track .history-round{
  color:#756000 !important;
  -webkit-text-fill-color:#756000 !important;
}
.history-card.history-2025-track h3{
  color:#171717 !important;
  -webkit-text-fill-color:#171717 !important;
}
.history-card.history-2025-track p{
  color:#333333 !important;
  -webkit-text-fill-color:#333333 !important;
  opacity:1 !important;
}
.history-card.history-2025-track p strong{
  color:#b64b00 !important;
  -webkit-text-fill-color:#b64b00 !important;
}
.history-card.history-2025-track .school-inamikita{
  color:#08734d !important;
  -webkit-text-fill-color:#08734d !important;
  font-weight:1000 !important;
}
.history-card.history-2025-track .history-badge{
  background:#fff !important;
  color:#765700 !important;
  -webkit-text-fill-color:#765700 !important;
  border:1px solid rgba(130,95,0,.28) !important;
  box-shadow:none !important;
}



/* 中川悠聖選手カード：かなり濃い黄色。文字は黒系で固定 */
.history-card.history-2025-track{
  background:#F2C500 !important;
  background-image:none !important;
  border:3px solid #B88900 !important;
  box-shadow:0 20px 42px rgba(150,105,0,.28) !important;
}
.history-card.history-2025-track::before{
  background:#F2C500 !important;
}
.history-card.history-2025-track .history-round{
  color:#493900 !important;
  -webkit-text-fill-color:#493900 !important;
}
.history-card.history-2025-track h3{
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
}
.history-card.history-2025-track p{
  color:#202020 !important;
  -webkit-text-fill-color:#202020 !important;
  opacity:1 !important;
}
.history-card.history-2025-track p strong{
  color:#7A2600 !important;
  -webkit-text-fill-color:#7A2600 !important;
}
.history-card.history-2025-track .school-inamikita{
  color:#075C3D !important;
  -webkit-text-fill-color:#075C3D !important;
}
.history-card.history-2025-track .history-badge{
  background:#fff7c2 !important;
  background-image:none !important;
  color:#3f3100 !important;
  -webkit-text-fill-color:#3f3100 !important;
  border:1px solid #8e6c00 !important;
}



.history-card.history-2025-track{
position:relative!important;isolation:isolate!important;overflow:hidden!important;
background:#e0ad00!important;background-image:none!important;opacity:1!important;
border:3px solid #8f6b00!important}
.history-card.history-2025-track::after{content:none!important;display:none!important}
.history-card.history-2025-track::before{background:#e0ad00!important;opacity:1!important}
.history-card.history-2025-track>*{position:relative!important;z-index:2!important;opacity:1!important}
.history-card.history-2025-track .history-round{color:#443300!important;-webkit-text-fill-color:#443300!important}
.history-card.history-2025-track h3{color:#111!important;-webkit-text-fill-color:#111!important}
.history-card.history-2025-track p{color:#202020!important;-webkit-text-fill-color:#202020!important;opacity:1!important}
.history-card.history-2025-track p strong{color:#6f2100!important;-webkit-text-fill-color:#6f2100!important}
.history-card.history-2025-track .school-inamikita{color:#075c3d!important;-webkit-text-fill-color:#075c3d!important}



/* FIXED: 中川悠聖選手カードだけ、競合を避けて明確な黄色に */
#history .history-card.history-highlight.history-2025-track{
  background:#e3b400 !important;
  background-image:none !important;
  border:3px solid #9c7600 !important;
  box-shadow:0 20px 42px rgba(135,95,0,.25) !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track::before{
  background:#e3b400 !important;
}
#history .history-card.history-highlight.history-2025-track .history-round{
  color:#4a3700 !important;
  -webkit-text-fill-color:#4a3700 !important;
}
#history .history-card.history-highlight.history-2025-track h3{
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
}
#history .history-card.history-highlight.history-2025-track p{
  color:#222 !important;
  -webkit-text-fill-color:#222 !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track p strong{
  color:#6f2100 !important;
  -webkit-text-fill-color:#6f2100 !important;
}
#history .history-card.history-highlight.history-2025-track .school-inamikita{
  color:#075c3d !important;
  -webkit-text-fill-color:#075c3d !important;
}



/* 中川悠聖選手カード：競合解消済みのまま、薄い緑へ */
#history .history-card.history-highlight.history-2025-track{
  background:#d9f2e5 !important;
  background-image:none !important;
  border:2px solid #79b99a !important;
  box-shadow:0 18px 38px rgba(45,120,85,.14) !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track::before{
  background:#d9f2e5 !important;
}
#history .history-card.history-highlight.history-2025-track .history-round{
  color:#176b4b !important;
  -webkit-text-fill-color:#176b4b !important;
}
#history .history-card.history-highlight.history-2025-track h3{
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
}
#history .history-card.history-highlight.history-2025-track p{
  color:#303a35 !important;
  -webkit-text-fill-color:#303a35 !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track p strong{
  color:#b65300 !important;
  -webkit-text-fill-color:#b65300 !important;
}
#history .history-card.history-highlight.history-2025-track .school-inamikita{
  color:#08734d !important;
  -webkit-text-fill-color:#08734d !important;
}



/* 中川悠聖選手・男子1500m全国優勝カード ONLY */
#history .history-card.history-highlight.history-2025-track{
  background:#58c9a5 !important;
  background-image:linear-gradient(135deg,#47bd98 0%,#63d1ad 52%,#82ddbf 100%) !important;
  border:2px solid #238b6c !important;
  box-shadow:0 18px 38px rgba(20,115,86,.18) !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track::before{
  background:#58c9a5 !important;
}

/* 大会名を金文字に */
#history .history-card.history-highlight.history-2025-track .history-round{
  color:#b27a00 !important;
  -webkit-text-fill-color:#b27a00 !important;
  font-weight:1000 !important;
  text-shadow:0 1px 0 rgba(255,245,190,.35) !important;
}

/* 可読性を維持 */
#history .history-card.history-highlight.history-2025-track h3{
  color:#10251f !important;
  -webkit-text-fill-color:#10251f !important;
}
#history .history-card.history-highlight.history-2025-track p{
  color:#17342b !important;
  -webkit-text-fill-color:#17342b !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track p strong{
  color:#7b3200 !important;
  -webkit-text-fill-color:#7b3200 !important;
}
#history .history-card.history-highlight.history-2025-track .school-inamikita{
  color:#075c3d !important;
  -webkit-text-fill-color:#075c3d !important;
  font-weight:1000 !important;
}



/* 中川悠聖選手カード：薄いエメラルドグリーン＋大会名は金文字 */
#history .history-card.history-highlight.history-2025-track{
  background:#bfe9d9 !important;
  background-image:linear-gradient(135deg,#b2e3d1 0%,#c9eee1 52%,#dcf5ec 100%) !important;
  border:2px solid #5eaf91 !important;
  box-shadow:0 18px 38px rgba(25,115,85,.14) !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track::before{
  background:#bfe9d9 !important;
}
#history .history-card.history-highlight.history-2025-track .history-round{
  color:#b07a00 !important;
  -webkit-text-fill-color:#b07a00 !important;
  font-weight:1000 !important;
  text-shadow:0 1px 0 rgba(255,248,210,.55) !important;
}
#history .history-card.history-highlight.history-2025-track h3{
  color:#13231d !important;
  -webkit-text-fill-color:#13231d !important;
}
#history .history-card.history-highlight.history-2025-track p{
  color:#263b33 !important;
  -webkit-text-fill-color:#263b33 !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track .school-inamikita{
  color:#08734d !important;
  -webkit-text-fill-color:#08734d !important;
  font-weight:1000 !important;
}



/* 中川悠聖選手カード：薄い黄色＋少し透明感 */
#history .history-card.history-highlight.history-2025-track{
  background:rgba(255, 249, 211, .52) !important;
  background-image:linear-gradient(
    135deg,
    rgba(255, 244, 188, .56) 0%,
    rgba(255, 250, 220, .48) 52%,
    rgba(255, 253, 238, .44) 100%
  ) !important;
  border:2px solid rgba(213, 184, 83, .32) !important;
  box-shadow:0 18px 38px rgba(150,110,0,.13) !important;
  opacity:1 !important;
  backdrop-filter:blur(2px) !important;
  -webkit-backdrop-filter:blur(2px) !important;
}
#history .history-card.history-highlight.history-2025-track::before{
  background:rgba(255,249,211,.14) !important;
}
/* 大会名は金文字を維持 */
#history .history-card.history-highlight.history-2025-track .history-round{
  color:#ad7900 !important;
  -webkit-text-fill-color:#ad7900 !important;
  font-weight:1000 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.55) !important;
}
/* 本文の読みやすさは維持 */
#history .history-card.history-highlight.history-2025-track h3{
  color:#17130a !important;
  -webkit-text-fill-color:#17130a !important;
}
#history .history-card.history-highlight.history-2025-track p{
  color:#342f22 !important;
  -webkit-text-fill-color:#342f22 !important;
  opacity:1 !important;
}
#history .history-card.history-highlight.history-2025-track .school-inamikita{
  color:#08734d !important;
  -webkit-text-fill-color:#08734d !important;
  font-weight:1000 !important;
}



/* HISTORY：各大会名タイトルを少し大きく */
#history .history-card .history-round{
  font-size:15px !important;
  line-height:1.55 !important;
  font-weight:1000 !important;
}
@media(max-width:560px){
  #history .history-card .history-round{font-size:14px !important;}
}



/* =========================================================
   OUR STORY / CLUB PHILOSOPHY redesign
========================================================= */
.story-philosophy{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 15%,rgba(255,216,77,.24),transparent 24%),
    radial-gradient(circle at 91% 82%,rgba(24,139,91,.13),transparent 26%),
    linear-gradient(180deg,#fffdf7 0%,#fff8e7 100%) !important;
}
.story-philosophy::before{
  content:"PHILOSOPHY";
  position:absolute;
  right:-.03em;
  top:.12em;
  font-size:clamp(90px,17vw,230px);
  line-height:1;
  font-weight:1000;
  letter-spacing:-.06em;
  color:rgba(17,17,17,.025);
  pointer-events:none;
}
.story-philosophy .wrap{position:relative;z-index:2;}

.story-philosophy-grid{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:58px;
  align-items:stretch;
}
.story-vision{
  min-height:540px;
  border-radius:34px;
  padding:2px;
  background:linear-gradient(145deg,#ffd84d,#ff7a00 46%,#188b5b);
  box-shadow:0 28px 70px rgba(170,105,0,.20);
}
.story-vision-inner{
  height:100%;
  min-height:536px;
  border-radius:32px;
  padding:48px 42px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(circle at 78% 18%,rgba(255,216,77,.20),transparent 25%),
    radial-gradient(circle at 12% 82%,rgba(24,139,91,.17),transparent 28%),
    linear-gradient(145deg,#111 0%,#1c1c1c 100%);
  color:#fff;
}
.story-vision-en{
  color:#ffd84d;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.30em;
}
.story-vision-main{
  margin-top:24px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(40px,4.4vw,62px);
  line-height:1.35;
  font-weight:900;
  letter-spacing:.04em;
}
.story-vision-line{
  width:96px;
  height:5px;
  margin:30px 0 20px;
  border-radius:999px;
  background:linear-gradient(90deg,#ffd84d,#ff7a00,#188b5b);
}
.story-vision-sub{
  color:#d5d5d5;
  font-size:12px;
  font-weight:900;
  letter-spacing:.20em;
}
.story-vision-motto{
  margin-top:auto;
  padding-top:38px;
  color:#ffd84d;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:20px;
  font-weight:900;
  letter-spacing:.08em;
}

.story-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px 0;
}
.story-copy .kicker{color:#188b5b;}
.story-copy h2{
  margin:12px 0 22px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
}
.story-intro{
  margin:0 0 14px;
  font-size:18px;
  line-height:1.9;
}
.story-intro strong{
  background:linear-gradient(transparent 68%,rgba(255,216,77,.55) 68%);
}
.story-lead{
  max-width:none !important;
  margin:0;
  color:#535353 !important;
  line-height:2.05 !important;
}
.story-core-message{
  margin:27px 0 20px;
  padding:20px 22px;
  border-left:6px solid #ff7a00;
  border-radius:0 18px 18px 0;
  background:rgba(255,255,255,.76);
  box-shadow:0 12px 28px rgba(0,0,0,.06);
}
.story-core-message span{
  display:block;
  color:#555;
  font-size:14px;
  font-weight:800;
}
.story-core-message strong{
  display:block;
  margin-top:3px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(28px,3vw,40px);
  color:#111;
}
.story-closing{
  margin:0;
  color:#333;
  font-weight:800;
  line-height:1.9;
}

.philosophy-cards{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin-top:38px;
}
.philosophy-card{
  position:relative;
  min-height:188px;
  padding:25px 20px 22px;
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 14px 32px rgba(0,0,0,.07);
  transition:transform .25s ease,box-shadow .25s ease;
}
.philosophy-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.11);
}
.philosophy-card::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:6px;
  background:linear-gradient(90deg,#ffd84d,#ff7a00,#188b5b);
}
.philosophy-no{
  display:block;
  margin-bottom:15px;
  color:#c8a100;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.14em;
}
.philosophy-card b{
  display:block;
  min-height:48px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:20px;
  line-height:1.35;
}
.philosophy-card p{
  margin:12px 0 0;
  color:#666;
  font-size:13px;
  line-height:1.75;
  font-weight:700;
}

@media(max-width:1050px){
  .story-philosophy-grid{grid-template-columns:1fr 1fr;gap:34px;}
  .philosophy-cards{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:760px){
  .story-philosophy-grid{grid-template-columns:1fr;}
  .story-vision{min-height:440px;}
  .story-vision-inner{min-height:436px;padding:38px 30px;}
  .philosophy-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:500px){
  .philosophy-cards{grid-template-columns:1fr;}
  .philosophy-card{min-height:auto;}
}



/* OUR STORY 左側：5つのクラブ理念を主役に */
.story-vision-values{
  justify-content:flex-start !important;
  padding:34px 30px !important;
}
.vision-values-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:20px;
}
.vision-value-card{
  position:relative;
  padding:15px 17px 15px 58px;
  border-radius:16px;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.vision-value-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:5px;
  border-radius:16px 0 0 16px;
  background:linear-gradient(180deg,#ffd84d,#ff7a00,#188b5b);
}
.vision-value-card span{
  position:absolute;
  left:17px;
  top:16px;
  color:#ffd84d;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.08em;
}
.vision-value-card b{
  display:block;
  color:#fff;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:18px;
  line-height:1.3;
  letter-spacing:.04em;
}
.vision-value-card p{
  margin:5px 0 0;
  color:#d9d9d9;
  font-size:12.5px;
  line-height:1.6;
  font-weight:700;
}
.vision-value-last{
  background:linear-gradient(135deg,rgba(255,216,77,.13),rgba(24,139,91,.13));
}
@media(max-width:760px){
  .story-vision-values{padding:30px 22px !important;}
  .vision-value-card{padding-left:54px;}
}



/* =========================================================
   OUR STORY - 5 PHILOSOPHY BLOCKS / DESIGN ENHANCEMENT
   2列＋最後を横長にして、5項目それぞれに個性をつける
========================================================= */
.story-vision-values{
  padding:34px 30px !important;
  justify-content:flex-start !important;
  overflow:hidden !important;
}
.story-vision-values .story-vision-en{
  margin-bottom:18px !important;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.13);
}

.vision-values-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:13px !important;
  margin-top:0 !important;
}

.vision-value-card{
  position:relative !important;
  min-height:150px !important;
  padding:22px 18px 18px !important;
  border-radius:20px !important;
  overflow:hidden !important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.105),rgba(255,255,255,.045)) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 24px rgba(0,0,0,.16) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.vision-value-card::before{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:auto !important;
  top:0 !important;
  bottom:auto !important;
  width:100% !important;
  height:5px !important;
  border-radius:20px 20px 0 0 !important;
  background:var(--ph-accent,#ffd84d) !important;
}

.vision-value-card::after{
  content:"" !important;
  position:absolute;
  width:105px;
  height:105px;
  right:-38px;
  bottom:-40px;
  border-radius:50%;
  background:var(--ph-glow,rgba(255,216,77,.11));
  pointer-events:none;
}

.vision-value-card span{
  position:static !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:38px;
  height:28px;
  margin-bottom:14px;
  border-radius:999px;
  color:#111 !important;
  background:var(--ph-accent,#ffd84d) !important;
  font-size:11px !important;
  font-weight:1000 !important;
  letter-spacing:.08em !important;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}

.vision-value-card b{
  display:block !important;
  color:#fff !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-size:20px !important;
  line-height:1.35 !important;
  letter-spacing:.05em !important;
  margin-bottom:9px;
}

.vision-value-card p{
  margin:0 !important;
  color:#dcdcdc !important;
  font-size:12.5px !important;
  line-height:1.75 !important;
  font-weight:700 !important;
}

/* それぞれにチームカラー系の個性 */
.vision-value-card:nth-child(1){
  --ph-accent:#ffd84d;
  --ph-glow:rgba(255,216,77,.16);
}
.vision-value-card:nth-child(2){
  --ph-accent:#ff9a3d;
  --ph-glow:rgba(255,122,0,.16);
}
.vision-value-card:nth-child(3){
  --ph-accent:#49c58c;
  --ph-glow:rgba(24,139,91,.18);
}
.vision-value-card:nth-child(4){
  --ph-accent:#f2c94c;
  --ph-glow:rgba(242,201,76,.15);
}
.vision-value-card:nth-child(5){
  --ph-accent:#7bd7b0;
  --ph-glow:rgba(123,215,176,.18);
  grid-column:1 / -1 !important;
  min-height:126px !important;
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  column-gap:16px !important;
  align-items:start !important;
}
.vision-value-card:nth-child(5) span{
  grid-row:1 / span 2;
  align-self:start;
  margin-bottom:0 !important;
}
.vision-value-card:nth-child(5) b{
  margin:1px 0 7px !important;
}
.vision-value-card:nth-child(5) p{
  grid-column:2;
}

/* ほんの少し立体感 */
.vision-value-card:nth-child(1),
.vision-value-card:nth-child(4){
  transform:translateY(3px);
}
.vision-value-card:nth-child(2),
.vision-value-card:nth-child(3){
  transform:translateY(-2px);
}

@media(max-width:900px){
  .vision-values-grid{
    grid-template-columns:1fr !important;
  }
  .vision-value-card:nth-child(5){
    grid-column:auto !important;
    display:block !important;
    min-height:150px !important;
  }
  .vision-value-card:nth-child(5) span{
    margin-bottom:14px !important;
  }
  .vision-value-card:nth-child(5) p{
    grid-column:auto;
  }
  .vision-value-card{
    transform:none !important;
  }
}



/* =========================================================
   OUR STORY / 5つの理念を「理念サークル」に
========================================================= */
.story-vision-values{
  padding:28px 24px 30px !important;
  justify-content:flex-start !important;
}
.story-vision-values .story-vision-en{
  margin-bottom:12px !important;
  padding-bottom:10px !important;
  border-bottom:1px solid rgba(255,255,255,.13) !important;
}

.philosophy-wheel-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1;
  width:100%;
  min-height:500px;
}

.philosophy-wheel{
  position:relative;
  width:min(100%,520px);
  aspect-ratio:1;
  border-radius:50%;
  background:
    conic-gradient(
      from -36deg,
      #f6d33f 0deg 72deg,
      #f28a2b 72deg 144deg,
      #61b84b 144deg 216deg,
      #e9a92f 216deg 288deg,
      #8fbd3a 288deg 360deg
    );
  box-shadow:
    0 24px 55px rgba(0,0,0,.34),
    inset 0 0 0 8px rgba(255,255,255,.10);
}

/* 各理念の境界線 */
.philosophy-wheel::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:
    repeating-conic-gradient(
      from -36deg,
      transparent 0deg 70.8deg,
      rgba(15,15,15,.80) 70.8deg 72deg
    );
  pointer-events:none;
  z-index:1;
}

/* 中心の黒い核 */
.wheel-core{
  position:absolute;
  left:50%;
  top:50%;
  z-index:5;
  width:38%;
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  background:
    radial-gradient(circle at 50% 35%,#222 0%,#111 58%,#090909 100%);
  border:3px solid rgba(255,216,77,.72);
  box-shadow:0 12px 28px rgba(0,0,0,.40);
}
.wheel-core strong{
  color:#ffd84d;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(30px,4vw,46px);
  line-height:1;
  letter-spacing:.08em;
}
.wheel-core span{
  margin-top:8px;
  color:#fff;
  font-size:13px;
  font-weight:1000;
  letter-spacing:.04em;
}
.wheel-core small{
  margin-top:11px;
  color:#ffd84d;
  font-size:8px;
  font-weight:1000;
  letter-spacing:.12em;
}

/* 円周上の5つの理念 */
.wheel-label{
  position:absolute;
  z-index:4;
  width:32%;
  text-align:center;
  color:#111;
  line-height:1.25;
  text-shadow:0 1px 0 rgba(255,255,255,.28);
}
.wheel-label span{
  display:inline-block;
  margin-bottom:4px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(17,17,17,.88);
  color:#fff;
  font-size:10px;
  font-weight:1000;
}
.wheel-label b{
  display:block;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(15px,1.7vw,20px);
  font-weight:1000;
  white-space:nowrap;
}
.wheel-label p{
  margin:5px 0 0;
  font-size:clamp(9px,.92vw,11.5px);
  line-height:1.5;
  font-weight:900;
}

/* 72°ずつに配置 */
.wheel-label-1{left:34%;top:5%;}
.wheel-label-2{right:2%;top:31%;}
.wheel-label-3{right:10%;bottom:8%;}
.wheel-label-4{left:8%;bottom:8%;}
.wheel-label-5{left:1%;top:31%;}

/* 明るい黄色部分は黒、緑・オレンジ部分も可読性重視 */
.wheel-label-2,
.wheel-label-3,
.wheel-label-4,
.wheel-label-5{
  color:#111;
}

/* サークルの外側に筆のような輪郭 */
.philosophy-wheel-wrap::before{
  content:"";
  position:absolute;
  width:min(92%,555px);
  aspect-ratio:1;
  border-radius:50%;
  border:2px solid rgba(255,216,77,.20);
  box-shadow:
    0 0 0 8px rgba(255,122,0,.045),
    0 0 0 15px rgba(24,139,91,.025);
  pointer-events:none;
}

@media(max-width:1050px){
  .philosophy-wheel-wrap{min-height:460px;}
  .philosophy-wheel{width:min(100%,470px);}
  .wheel-label b{font-size:15px;}
  .wheel-label p{font-size:9px;}
}
@media(max-width:760px){
  .story-vision-values{padding:24px 18px 26px !important;}
  .philosophy-wheel-wrap{min-height:520px;}
  .philosophy-wheel{width:min(94vw,500px);}
  .wheel-label b{font-size:clamp(13px,3.4vw,18px);}
  .wheel-label p{font-size:clamp(8px,2.1vw,11px);}
}
@media(max-width:500px){
  .philosophy-wheel-wrap{min-height:430px;}
  .wheel-label{width:35%;}
  .wheel-label-1{left:33%;top:5%;}
  .wheel-label-2{right:0;top:30%;}
  .wheel-label-3{right:6%;bottom:7%;}
  .wheel-label-4{left:6%;bottom:7%;}
  .wheel-label-5{left:0;top:30%;}
  .wheel-core{width:40%;}
  .wheel-core span{font-size:10px;}
  .wheel-core small{font-size:6px;}
}



/* =========================================================
   OUR STORY / 理念サークル：ホームページ全体に合わせた明るい配色へ
========================================================= */
.story-vision{
  background:linear-gradient(145deg,#ffd84d,#ff9a3d 46%,#58c98f) !important;
  box-shadow:0 24px 58px rgba(180,120,0,.16) !important;
}
.story-vision-inner{
  background:
    radial-gradient(circle at 82% 18%,rgba(255,216,77,.28),transparent 26%),
    radial-gradient(circle at 15% 82%,rgba(24,139,91,.15),transparent 28%),
    linear-gradient(145deg,#fffdf5 0%,#fff7df 55%,#f4fbf7 100%) !important;
  color:#111 !important;
}
.story-vision-values .story-vision-en{
  color:#b46f00 !important;
  border-bottom:1px solid rgba(0,0,0,.09) !important;
}

.philosophy-wheel{
  background:
    conic-gradient(
      from -18deg,
      #ffe36f 0deg 72deg,
      #ffad63 72deg 144deg,
      #95d9a8 144deg 216deg,
      #ffd07a 216deg 288deg,
      #b7e36f 288deg 360deg
    ) !important;
  box-shadow:
    0 22px 48px rgba(120,90,0,.16),
    inset 0 0 0 8px rgba(255,255,255,.34) !important;
}

.philosophy-wheel::before{
  background:
    repeating-conic-gradient(
      from -18deg,
      transparent 0deg 70.8deg,
      rgba(255,255,255,.78) 70.8deg 72deg
    ) !important;
}

.wheel-core{
  background:
    radial-gradient(circle at 50% 35%,#ffffff 0%,#fff9e8 62%,#fff4cf 100%) !important;
  border:3px solid #e6b800 !important;
  box-shadow:0 10px 24px rgba(120,90,0,.16) !important;
}
.wheel-core strong{
  color:#b97800 !important;
}
.wheel-core span{
  color:#222 !important;
}
.wheel-core small{
  color:#188b5b !important;
}

.wheel-label{
  color:#222 !important;
  text-shadow:none !important;
}
.wheel-label span{
  background:rgba(255,255,255,.88) !important;
  color:#6d5500 !important;
  border:1px solid rgba(0,0,0,.08) !important;
  box-shadow:0 3px 10px rgba(0,0,0,.08) !important;
}
.wheel-label b{
  color:#181818 !important;
}
.wheel-label p{
  color:#3e3e3e !important;
}

.philosophy-wheel-wrap::before{
  border:2px solid rgba(255,184,0,.20) !important;
  box-shadow:
    0 0 0 8px rgba(255,122,0,.035),
    0 0 0 15px rgba(24,139,91,.025) !important;
}



/* =========================================================
   OUR STORY / 理念サークル
   文字を各72°セグメントの中心に正確に合わせる最終調整
========================================================= */

/* サークル自体を基準座標に固定 */
.philosophy-wheel{
  position:relative !important;
}

/* 各ラベルをセグメント中心付近に配置し直す */
.wheel-label{
  width:29% !important;
  transform:translate(-50%,-50%) !important;
  text-align:center !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1.25 !important;
}

/* 01 = 上 */
.wheel-label-1{
  left:50% !important;
  top:18% !important;
  right:auto !important;
  bottom:auto !important;
}

/* 02 = 右上 */
.wheel-label-2{
  left:79% !important;
  top:39% !important;
  right:auto !important;
  bottom:auto !important;
}

/* 03 = 右下 */
.wheel-label-3{
  left:68% !important;
  top:75% !important;
  right:auto !important;
  bottom:auto !important;
}

/* 04 = 左下 */
.wheel-label-4{
  left:32% !important;
  top:75% !important;
  right:auto !important;
  bottom:auto !important;
}

/* 05 = 左上 */
.wheel-label-5{
  left:21% !important;
  top:39% !important;
  right:auto !important;
  bottom:auto !important;
}

/* セグメント内に収まりやすいサイズへ微調整 */
.wheel-label span{
  margin-bottom:4px !important;
  padding:2px 7px !important;
}
.wheel-label b{
  font-size:clamp(14px,1.55vw,19px) !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
}
.wheel-label p{
  margin:5px 0 0 !important;
  font-size:clamp(8.5px,.82vw,10.8px) !important;
  line-height:1.45 !important;
}

/* 中央円をわずかに小さくして、各文字との干渉を避ける */
.wheel-core{
  width:36% !important;
}

/* 小さめ画面でも同じ角度関係を維持 */
@media(max-width:760px){
  .wheel-label{
    width:31% !important;
  }
  .wheel-label-1{left:50% !important;top:18% !important;}
  .wheel-label-2{left:79% !important;top:39% !important;}
  .wheel-label-3{left:68% !important;top:75% !important;}
  .wheel-label-4{left:32% !important;top:75% !important;}
  .wheel-label-5{left:21% !important;top:39% !important;}
  .wheel-label b{
    font-size:clamp(12px,3.1vw,17px) !important;
  }
  .wheel-label p{
    font-size:clamp(7.5px,1.9vw,10px) !important;
  }
}

@media(max-width:500px){
  .wheel-label{
    width:32% !important;
  }
  .wheel-label-1{left:50% !important;top:18.5% !important;}
  .wheel-label-2{left:78.5% !important;top:39.5% !important;}
  .wheel-label-3{left:68% !important;top:74.5% !important;}
  .wheel-label-4{left:32% !important;top:74.5% !important;}
  .wheel-label-5{left:21.5% !important;top:39.5% !important;}
  .wheel-core{width:35% !important;}
}



/* =========================================================
   理念サークル最終位置調整
   5つの扇形の中心角：0°,72°,144°,216°,288°
========================================================= */
.philosophy-wheel{
  background:
    conic-gradient(
      from -36deg,
      #ffe36f 0deg 72deg,
      #ffad63 72deg 144deg,
      #95d9a8 144deg 216deg,
      #ffd07a 216deg 288deg,
      #b7e36f 288deg 360deg
    ) !important;
}
.philosophy-wheel::before{
  background:
    repeating-conic-gradient(
      from -36deg,
      transparent 0deg 70.8deg,
      rgba(255,255,255,.82) 70.8deg 72deg
    ) !important;
}

/* 各扇形の重心寄りに配置 */
.wheel-label{
  width:30% !important;
  transform:translate(-50%,-50%) !important;
  text-align:center !important;
  pointer-events:none;
}
.wheel-label-1{left:50% !important;top:19.5% !important;}
.wheel-label-2{left:79% !important;top:40.5% !important;}
.wheel-label-3{left:68% !important;top:74.7% !important;}
.wheel-label-4{left:32% !important;top:74.7% !important;}
.wheel-label-5{left:21% !important;top:40.5% !important;}

/* 扇形から文字がはみ出しにくいように少し締める */
.wheel-label b{
  font-size:clamp(13px,1.45vw,18px) !important;
  line-height:1.22 !important;
  white-space:nowrap !important;
}
.wheel-label p{
  margin-top:5px !important;
  font-size:clamp(8px,.76vw,10.2px) !important;
  line-height:1.42 !important;
}
.wheel-label span{
  margin-bottom:4px !important;
  padding:2px 7px !important;
}

/* 中央円との干渉を少し減らす */
.wheel-core{width:35% !important;}

@media(max-width:760px){
  .wheel-label{width:31% !important;}
  .wheel-label-1{left:50% !important;top:19.5% !important;}
  .wheel-label-2{left:79% !important;top:40.5% !important;}
  .wheel-label-3{left:68% !important;top:74.7% !important;}
  .wheel-label-4{left:32% !important;top:74.7% !important;}
  .wheel-label-5{left:21% !important;top:40.5% !important;}
}



.staff-one-line{
  white-space:nowrap;
  display:inline-block;
  font-size:clamp(12px,1.05vw,16px);
}
@media(max-width:760px){
  .staff-one-line{
    white-space:normal;
    display:inline;
  }
}



.updated-schedule{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}
.updated-schedule .schedule-item{
  min-height:132px;
  padding:20px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.updated-schedule .schedule-day{
  color:#b77a00;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.12em;
  margin-bottom:9px;
}
.updated-schedule strong{
  font-size:16px;
  line-height:1.55;
}
.updated-schedule .schedule-time{
  margin-top:7px;
  color:#555;
  font-size:14px;
  font-weight:800;
}
.updated-schedule .rest-day{
  background:linear-gradient(145deg,#fffaf0,#f5fbf7);
}
.schedule-note{
  margin:16px 0 0;
  font-size:13px;
  color:#666;
  font-weight:700;
}
@media(max-width:760px){
  .updated-schedule{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:480px){
  .updated-schedule{grid-template-columns:1fr;}
}



/* 活動スケジュール：重複する平日をまとめて見やすく */
.grouped-schedule{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.grouped-schedule .weekday-group{
  grid-column:1 / -1;
  min-height:150px;
  background:
    linear-gradient(135deg,rgba(255,216,77,.20),rgba(255,255,255,.96));
  border-left:6px solid #f0b400;
}
.grouped-schedule .saturday-group{
  background:
    linear-gradient(135deg,rgba(24,139,91,.10),rgba(255,255,255,.96));
  border-left:6px solid #188b5b;
}
.grouped-schedule .schedule-place{
  margin-top:7px;
  color:#555;
  font-size:13px;
  font-weight:800;
}
@media(max-width:760px){
  .grouped-schedule{
    grid-template-columns:1fr !important;
  }
  .grouped-schedule .weekday-group{
    grid-column:auto;
  }
}



/* =========================================================
   活動スケジュール：左＝週間 / 右＝月間
========================================================= */
.weekly-monthly-schedule{
  background:
    radial-gradient(circle at 8% 15%,rgba(255,216,77,.22),transparent 23%),
    radial-gradient(circle at 90% 82%,rgba(24,139,91,.12),transparent 24%),
    linear-gradient(135deg,#fff9e7,#fffdf7 55%,#f4fbf7) !important;
}
.schedule-heading{margin-bottom:32px;}
.schedule-two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:stretch;
}
.weekly-panel,
.monthly-panel{
  border-radius:28px;
  padding:28px;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 18px 44px rgba(0,0,0,.08);
}
.weekly-panel{
  border-top:6px solid #f0b400;
}
.monthly-panel{
  border-top:6px solid #188b5b;
}
.schedule-panel-head span{
  display:block;
  margin-bottom:7px;
  color:#b87b00;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.16em;
}
.monthly-head span{color:#188b5b;}
.schedule-panel-head h3{
  margin:0 0 22px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(24px,2.6vw,34px);
}
.weekly-compact-list{
  display:grid;
  gap:11px;
}
.weekly-compact-row{
  display:grid;
  grid-template-columns:155px 1fr;
  gap:16px;
  align-items:center;
  padding:16px 17px;
  border-radius:16px;
  background:#fffaf0;
  border:1px solid rgba(0,0,0,.055);
}
.weekly-compact-row.main{
  background:linear-gradient(135deg,#fff5c7,#fffdf6);
}
.weekly-compact-row.saturday{
  background:linear-gradient(135deg,#eef9f3,#ffffff);
}
.weekly-compact-row.rest{
  background:#f7f7f7;
}
.weekly-days{
  color:#a86f00;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.08em;
}
.weekly-compact-row.saturday .weekly-days{color:#188b5b;}
.weekly-compact-row strong{
  display:block;
  font-size:14px;
  line-height:1.55;
}
.weekly-compact-row small{
  display:block;
  margin-top:4px;
  color:#666;
  font-size:12px;
  font-weight:800;
  line-height:1.55;
}
.schedule-note{
  margin:15px 2px 0;
  color:#666;
  font-size:12px;
  font-weight:700;
}
.monthly-calendar-placeholder{
  min-height:330px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:34px 26px;
  border-radius:22px;
  border:2px dashed rgba(24,139,91,.28);
  background:
    linear-gradient(135deg,rgba(24,139,91,.055),rgba(255,216,77,.06));
}
.monthly-calendar-icon{
  width:88px;
  height:88px;
  margin-bottom:20px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#dff4e8,#fff6c8);
  color:#188b5b;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.08em;
  box-shadow:0 10px 24px rgba(24,139,91,.12);
}
.monthly-calendar-placeholder strong{
  font-size:18px;
  line-height:1.6;
}
.monthly-calendar-placeholder p{
  margin:10px 0 0;
  max-width:360px;
  color:#666;
  font-size:13px;
  line-height:1.8;
}
@media(max-width:900px){
  .schedule-two-column{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .weekly-panel,.monthly-panel{padding:20px;}
  .weekly-compact-row{grid-template-columns:1fr;gap:6px;}
  .monthly-calendar-placeholder{min-height:260px;}
}



/* =========================================================
   月間スケジュール：2か月分PDF表示
========================================================= */
.monthly-pdf-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.monthly-pdf-card{
  padding:14px;
  border-radius:18px;
  background:linear-gradient(145deg,#f8fcfa,#fffdf4);
  border:1px solid rgba(24,139,91,.14);
}
.monthly-pdf-label{
  margin-bottom:10px;
  color:#188b5b;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.12em;
}
.monthly-pdf-frame{
  height:330px;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
}
.monthly-pdf-embed{
  display:block;
  width:100%;
  height:100%;
  border:0;
}
.monthly-pdf-link{
  display:inline-flex;
  margin-top:10px;
  padding:8px 12px;
  border-radius:999px;
  background:#188b5b;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.monthly-pdf-note{
  margin:12px 2px 0;
  color:#777;
  font-size:11px;
  line-height:1.7;
}
@media(max-width:1100px){
  .monthly-pdf-grid{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .monthly-pdf-frame{height:260px;}
}



/* =========================================================
   月間スケジュール：2校 × 2か月（合計4枠）
========================================================= */
.school-monthly-panel{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.school-schedule-section{
  padding:20px;
  border-radius:22px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.07);
}
.school-inami{
  box-shadow:inset 5px 0 0 #f0b400;
}
.school-inamikita{
  box-shadow:inset 5px 0 0 #188b5b;
}
.school-schedule-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.school-schedule-title .school-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  flex:0 0 auto;
}
.school-inami .school-dot{background:#f0b400;}
.school-inamikita .school-dot{background:#188b5b;}
.school-schedule-title small{
  display:block;
  margin-bottom:2px;
  color:#888;
  font-size:9px;
  font-weight:1000;
  letter-spacing:.10em;
}
.school-schedule-title strong{
  display:block;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:20px;
  line-height:1.25;
}
.school-inami .school-schedule-title strong{color:#a96f00;}
.school-inamikita .school-schedule-title strong{color:#126f4d;}

.school-month-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.school-month-grid .monthly-pdf-card{
  min-width:0;
}
.monthly-empty-box{
  min-height:330px;
  border-radius:14px;
  border:2px dashed rgba(0,0,0,.13);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:22px;
  background:linear-gradient(145deg,#fffef9,#f8fbfa);
}
.monthly-empty-box strong{
  color:#333;
  font-size:15px;
}
.monthly-empty-box span{
  margin-top:7px;
  color:#888;
  font-size:11px;
  line-height:1.7;
}
.school-inami .monthly-pdf-label{color:#b67a00 !important;}
.school-inamikita .monthly-pdf-label{color:#188b5b !important;}

@media(max-width:1200px){
  .school-month-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:900px){
  .schedule-two-column{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:560px){
  .school-schedule-section{
    padding:15px;
  }
  .monthly-empty-box{
    min-height:250px;
  }
}



/* 月間予定を左の週間予定と同程度の横幅・密度に */
.schedule-two-column{
  grid-template-columns:1fr 1fr !important;
  align-items:start !important;
}
.school-monthly-panel{
  gap:14px !important;
}
.school-schedule-section{
  padding:16px !important;
  border-radius:18px !important;
}
.school-schedule-title{
  margin-bottom:11px !important;
}
.school-month-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
.school-month-grid .monthly-pdf-card{
  padding:10px !important;
  border-radius:14px !important;
}
.monthly-pdf-frame{
  height:145px !important;
  min-height:145px !important;
}
.monthly-pdf-embed{
  height:145px !important;
}
.monthly-empty-box{
  min-height:145px !important;
  padding:12px !important;
}
.monthly-pdf-label{
  margin-bottom:7px !important;
  font-size:10px !important;
}
.monthly-pdf-link{
  margin-top:7px !important;
  padding:6px 10px !important;
  font-size:10px !important;
}
.school-schedule-title strong{
  font-size:18px !important;
}
.school-schedule-title small{
  font-size:8px !important;
}
@media(max-width:900px){
  .schedule-two-column{grid-template-columns:1fr !important;}
}
@media(max-width:560px){
  .school-month-grid{grid-template-columns:1fr 1fr !important;}
  .monthly-pdf-frame,
  .monthly-pdf-embed,
  .monthly-empty-box{
    height:125px !important;
    min-height:125px !important;
  }
}



/* 月間予定をさらに小さくし、左右の高さ・密度を揃える */
.schedule-two-column{
  grid-template-columns:1fr 1fr !important;
  gap:24px !important;
  align-items:start !important;
}
.weekly-panel,
.monthly-panel{
  min-height:0 !important;
}
.school-monthly-panel{
  gap:10px !important;
}
.school-schedule-section{
  padding:12px 14px !important;
  border-radius:16px !important;
}
.school-schedule-title{
  gap:8px !important;
  margin-bottom:8px !important;
}
.school-schedule-title .school-dot{
  width:10px !important;
  height:10px !important;
}
.school-schedule-title strong{
  font-size:16px !important;
}
.school-schedule-title small{
  font-size:7px !important;
}
.school-month-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
}
.school-month-grid .monthly-pdf-card{
  padding:8px !important;
  border-radius:12px !important;
}
.monthly-pdf-label{
  margin-bottom:5px !important;
  font-size:9px !important;
}
.monthly-pdf-frame{
  height:92px !important;
  min-height:92px !important;
  border-radius:9px !important;
}
.monthly-pdf-embed{
  height:92px !important;
}
.monthly-empty-box{
  height:92px !important;
  min-height:92px !important;
  padding:8px !important;
  border-radius:9px !important;
}
.monthly-empty-box strong{
  font-size:11px !important;
}
.monthly-empty-box span{
  margin-top:3px !important;
  font-size:8px !important;
  line-height:1.4 !important;
}
.monthly-pdf-link{
  margin-top:5px !important;
  padding:5px 8px !important;
  font-size:9px !important;
}
@media(max-width:900px){
  .schedule-two-column{grid-template-columns:1fr !important;}
}



/* 季節ごとの最終下校時刻 */
.final-leave-time{
  margin-top:18px;
  padding:16px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff7cf,#fffdf5);
  border:1px solid rgba(240,180,0,.22);
  border-left:5px solid #f0b400;
}
.final-leave-title{
  margin-bottom:10px;
  color:#222;
  font-size:14px;
  font-weight:1000;
}
.final-leave-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:7px 2px;
  border-top:1px solid rgba(0,0,0,.06);
}
.final-leave-row span{
  color:#555;
  font-size:13px;
  font-weight:800;
}
.final-leave-row strong{
  color:#a86f00;
  font-size:15px;
  letter-spacing:.04em;
}



/* =========================================================
   SCHEDULE FINAL BALANCE
   左右のスケジュールカードの縦幅を揃える
========================================================= */
.schedule-two-column{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:24px !important;
  align-items:stretch !important;
}

/* 左右の大枠を同じ高さに */
.schedule-two-column > .weekly-panel,
.schedule-two-column > .monthly-panel{
  height:100% !important;
  min-height:100% !important;
  align-self:stretch !important;
}

/* 左側は内容を自然に配置し、下校時刻表を下部に安定配置 */
.weekly-panel{
  display:flex !important;
  flex-direction:column !important;
}
.weekly-panel .final-leave-time{
  margin-top:auto !important;
}

/* 右側は2校を均等に縦へ配分 */
.monthly-panel.school-monthly-panel{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
}
.monthly-panel .schedule-panel-head{
  flex:0 0 auto !important;
}
.monthly-panel .school-schedule-section{
  flex:1 1 0 !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  padding:13px 14px !important;
}

/* 2か月分は横並びのまま、高さを抑えて左右の総高を一致させる */
.school-month-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
}
.school-month-grid .monthly-pdf-card{
  padding:8px !important;
}
.monthly-pdf-frame,
.monthly-pdf-embed{
  height:105px !important;
  min-height:105px !important;
}
.monthly-empty-box{
  height:105px !important;
  min-height:105px !important;
  padding:9px !important;
}
.school-schedule-title{
  margin-bottom:8px !important;
}
.monthly-pdf-link{
  margin-top:6px !important;
  padding:5px 9px !important;
  font-size:9px !important;
}

/* 画面が狭い場合は1列に戻し、高さ固定を解除 */
@media(max-width:900px){
  .schedule-two-column{
    grid-template-columns:1fr !important;
  }
  .schedule-two-column > .weekly-panel,
  .schedule-two-column > .monthly-panel{
    height:auto !important;
    min-height:0 !important;
  }
  .weekly-panel .final-leave-time{
    margin-top:18px !important;
  }
}



/* =========================================================
   MOBILE-ONLY UI
   PC版（561px以上）は一切変更しない
========================================================= */
.mobile-only{display:none !important;}

@media(max-width:560px){
  /* ---------- 基本 ---------- */
  html{scroll-padding-top:72px;}
  body{-webkit-text-size-adjust:100%;}
  .mobile-only{display:block !important;}
  .section{padding:54px 0 !important;}
  .wrap{width:calc(100% - 24px) !important;}
  section[id]{scroll-margin-top:74px;}

  /* ---------- ヘッダー ---------- */
  .nav{height:64px !important;width:calc(100% - 20px) !important;}
  .mark{width:40px !important;height:40px !important;}
  .brand{gap:8px !important;font-size:14px !important;}
  .menu{
    display:block !important;
    width:42px !important;height:42px !important;
    border:0 !important;border-radius:12px !important;
    background:#fff5cc !important;color:#111 !important;
    font-size:25px !important;line-height:1 !important;
    z-index:70 !important;
  }
  .links{
    display:none !important;
    position:absolute !important;
    top:67px !important;left:10px !important;right:10px !important;
    padding:10px !important;
    border-radius:18px !important;
    background:rgba(255,255,255,.98) !important;
    box-shadow:0 18px 45px rgba(0,0,0,.18) !important;
    flex-direction:column !important;
    gap:2px !important;
    z-index:69 !important;
  }
  .links.open{display:flex !important;}
  .links a{padding:11px 13px !important;border-radius:10px !important;}
  .links .cta{text-align:center !important;}

  /* ---------- HERO：スマホでは高さを圧縮 ---------- */
  .hero{
    min-height:auto !important;
    padding:38px 0 12px !important;
  }
  .hero-inner{grid-template-columns:1fr !important;gap:4px !important;}
  .hero h1{
    font-size:clamp(44px,14vw,60px) !important;
    margin:8px 0 14px !important;
  }
  .hero p{font-size:14px !important;line-height:1.75 !important;}
  .actions{gap:8px !important;margin-top:18px !important;}
  .btn{padding:12px 17px !important;font-size:13px !important;}
  .hero-visual{height:185px !important;}
  .sun{width:170px !important;height:170px !important;right:4% !important;}
  .runner{font-size:58px !important;bottom:6% !important;}

  /* ---------- 理念 ---------- */
  .story-philosophy-grid{grid-template-columns:1fr !important;gap:20px !important;}
  .story-vision{min-height:0 !important;}
  .story-vision-inner{min-height:0 !important;padding:18px 10px 20px !important;}
  .philosophy-wheel-wrap{min-height:0 !important;padding:6px 0 !important;}
  .philosophy-wheel{width:min(92vw,410px) !important;margin:auto !important;}
  .wheel-label{width:31% !important;}
  .wheel-label p{display:none !important;}
  .wheel-label b{
    font-size:clamp(10px,3vw,13px) !important;
    white-space:normal !important;
    line-height:1.2 !important;
  }
  .wheel-label span{font-size:8px !important;padding:1px 5px !important;}
  .wheel-core{width:36% !important;padding:8px !important;}
  .wheel-core strong{font-size:clamp(22px,7vw,32px) !important;}
  .wheel-core span{font-size:8px !important;}
  .wheel-core small{font-size:5px !important;}

  /* ---------- 種目カード ---------- */
  .cards{
    display:flex !important;
    overflow-x:auto !important;
    scroll-snap-type:x mandatory !important;
    gap:12px !important;
    padding:4px 2px 14px !important;
    -webkit-overflow-scrolling:touch;
  }
  .cards::-webkit-scrollbar{display:none;}
  .cards .card{
    flex:0 0 82% !important;
    scroll-snap-align:center !important;
    min-width:0 !important;
    padding:20px !important;
  }

  /* ---------- HISTORY：最初の3件だけ、残りは「もっと見る」 ---------- */
  .history-item.mobile-history-hidden{display:none !important;}
  .history-item{
    grid-template-columns:1fr !important;
    gap:8px !important;
    margin-bottom:18px !important;
  }
  .history-year{text-align:left !important;}
  .history-card{padding:18px !important;border-radius:18px !important;}
  .history-card h3{font-size:21px !important;}
  .history-card p{font-size:13px !important;line-height:1.8 !important;}
  .mobile-history-toggle{
    width:100%;
    margin-top:8px;
    padding:13px 16px;
    border:0;
    border-radius:999px;
    background:linear-gradient(90deg,#ffd84d,#ff9a3d);
    color:#111;
    font-weight:1000;
    font-size:13px;
    box-shadow:0 10px 24px rgba(255,122,0,.16);
  }

  /* ---------- スタッフ：横スワイプ ---------- */
  .staff-grid{
    display:flex !important;
    overflow-x:auto !important;
    scroll-snap-type:x mandatory !important;
    gap:12px !important;
    padding:4px 2px 14px !important;
    -webkit-overflow-scrolling:touch;
  }
  .staff-grid::-webkit-scrollbar{display:none;}
  .staff-grid .staff-card{
    flex:0 0 78% !important;
    scroll-snap-align:center !important;
  }
  .staff-members{padding:16px !important;}
  .director-card{grid-template-columns:1fr !important;}
  .director-photo{min-height:320px !important;}
  .director-info{padding:28px 20px !important;}
  .staff-one-line{white-space:normal !important;display:inline !important;}

  /* ---------- ギャラリー：横スワイプ ---------- */
  .gallery-grid{
    display:flex !important;
    overflow-x:auto !important;
    scroll-snap-type:x mandatory !important;
    gap:12px !important;
    padding:4px 2px 14px !important;
    -webkit-overflow-scrolling:touch;
  }
  .gallery-grid::-webkit-scrollbar{display:none;}
  .gallery-grid .photo{
    flex:0 0 82% !important;
    min-height:210px !important;
    scroll-snap-align:center !important;
  }

  /* ---------- スケジュール：週間/月間タブ ---------- */
  .schedule-two-column{
    display:block !important;
  }
  .schedule-two-column > .weekly-panel,
  .schedule-two-column > .monthly-panel{
    height:auto !important;
    min-height:0 !important;
  }
  .schedule-two-column.mobile-show-weekly > .monthly-panel{display:none !important;}
  .schedule-two-column.mobile-show-monthly > .weekly-panel{display:none !important;}

  .mobile-schedule-tabs{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:0 0 14px;
    padding:5px;
    border-radius:999px;
    background:rgba(255,255,255,.72);
    box-shadow:0 8px 22px rgba(0,0,0,.07);
  }
  .mobile-schedule-tabs button{
    border:0;
    border-radius:999px;
    padding:11px 8px;
    background:transparent;
    color:#555;
    font-weight:1000;
    font-size:12px;
  }
  .mobile-schedule-tabs button.active{
    background:linear-gradient(90deg,#ffd84d,#ff9a3d);
    color:#111;
  }

  .weekly-panel,.monthly-panel{padding:18px !important;border-radius:22px !important;}
  .weekly-compact-row{
    grid-template-columns:1fr !important;
    gap:4px !important;
    padding:13px !important;
  }

  /* 月間PDF：プレビューを消して学校→月ボタンだけに */
  .monthly-pdf-frame,
  .monthly-pdf-embed{display:none !important;}
  .school-month-grid{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .monthly-pdf-card{
    min-height:94px !important;
    padding:9px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
  }
  .monthly-pdf-link{
    display:flex !important;
    justify-content:center !important;
    width:100% !important;
    padding:9px 6px !important;
    margin-top:5px !important;
    font-size:10px !important;
    text-align:center !important;
  }
  .monthly-empty-box{
    min-height:72px !important;
    height:72px !important;
    padding:6px !important;
  }
  .monthly-empty-box span{display:none !important;}

  /* ---------- TEAM ITEMS：横スワイプ ---------- */
  .goods-grid{
    display:flex !important;
    overflow-x:auto !important;
    scroll-snap-type:x mandatory !important;
    gap:12px !important;
    padding:4px 2px 14px !important;
    -webkit-overflow-scrolling:touch;
  }
  .goods-grid::-webkit-scrollbar{display:none;}
  .goods-grid > *{
    flex:0 0 86% !important;
    scroll-snap-align:center !important;
  }

  /* ---------- 問い合わせ ---------- */
  .contact-box{grid-template-columns:1fr !important;padding:20px !important;}
  .form input,.form textarea{font-size:16px !important;}

  /* ---------- フッター ---------- */
  .footer{flex-direction:column !important;align-items:flex-start !important;}

  /* ---------- オープニングはスマホで短縮 ---------- */
  #opening-css{animation:openingAway .01s linear 6.8s forwards !important;}
  .opening-wind,.ink-transition,.sunrise-transition{display:none !important;}
}

@media(max-width:390px){
  .school-month-grid{grid-template-columns:1fr !important;}
  .cards .card,.gallery-grid .photo{flex-basis:88% !important;}
  .staff-grid .staff-card{flex-basis:84% !important;}
}



/* =========================================================
   MOBILE TEXT FLOW FIX
   PC版の改行はそのまま、スマホだけ自然な折り返しへ
========================================================= */
@media(max-width:560px){

  /* 基本：固定幅・nowrap・切り抜きを解除 */
  .story-copy p,
  .story-copy strong,
  .story-copy span,
  .card p,
  .card h3,
  .history-card p,
  .history-card h3,
  .director-copy,
  .staff-card-note,
  .staff-support-message span,
  .weekly-compact-row strong,
  .weekly-compact-row small,
  .final-leave-title,
  .final-leave-row span,
  .school-schedule-title strong,
  .monthly-empty-box strong,
  .monthly-empty-box span,
  .goods-card p,
  .contact-box p,
  .contact-box label,
  .quote p{
    white-space:normal !important;
    max-width:100% !important;
    overflow:visible !important;
    text-overflow:clip !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
  }

  /* PC用の強制改行をスマホでは外して自然に流す */
  .story-lead br,
  .story-closing br,
  .story-core-message br,
  .card p br,
  .history-card p br,
  .director-copy br,
  .staff-card-note br,
  .staff-support-message span br,
  .weekly-compact-row strong br,
  .weekly-compact-row small br,
  .final-leave-time br,
  .school-schedule-title br,
  .monthly-empty-box br,
  .goods-card p br,
  .contact-box p br{
    display:none !important;
  }

  /* 見出し・タグのはみ出し防止 */
  .history-badge,
  .staff-card-role,
  .director-label,
  .team-banner-label,
  .schedule-panel-head span,
  .monthly-pdf-label,
  .weekly-days{
    white-space:normal !important;
    max-width:100% !important;
    line-height:1.4 !important;
    overflow:visible !important;
  }

  /* ボタン内テキストも2行まで自然に */
  .btn,
  .monthly-pdf-link,
  .mobile-history-toggle,
  .mobile-schedule-tabs button{
    white-space:normal !important;
    line-height:1.35 !important;
    min-height:0 !important;
  }

  /* 円グラフの理念名は文字欠けを防ぐ */
  .wheel-label{
    overflow:visible !important;
  }
  .wheel-label b{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    word-break:keep-all !important;
    line-height:1.15 !important;
  }

  /* 長いタイトルは画面幅に応じて自動縮小 */
  .section h2,
  .schedule-panel-head h3,
  .staff-members-title,
  .director-info h3,
  .goods-card h3{
    max-width:100% !important;
    overflow:visible !important;
    white-space:normal !important;
    word-break:keep-all !important;
  }

  /* 横スワイプカード内も文字切れしない */
  .cards .card,
  .staff-grid .staff-card,
  .gallery-grid .photo,
  .goods-grid > *{
    overflow:visible;
  }
  .cards .card{
    overflow:hidden !important;
  }
}



/* =========================================================
   MOBILE PHILOSOPHY CIRCLE — STATIC COMPLETE VERSION
   PC版は変更せず、スマホでは最初の円グラフをそのまま使い、
   5つの理念名＋説明文を最初からすべて表示
========================================================= */
@media(max-width:560px){

  .story-vision-values{
    padding:18px 8px 22px !important;
  }

  .philosophy-wheel-wrap{
    min-height:0 !important;
    padding:8px 0 !important;
  }

  .philosophy-wheel{
    width:min(96vw,440px) !important;
    margin:0 auto !important;
  }

  /* 各パーツ内に説明まで常時表示 */
  .wheel-label{
    width:31.5% !important;
    overflow:visible !important;
    pointer-events:none !important;
    text-align:center !important;
  }

  .wheel-label span{
    display:inline-block !important;
    margin-bottom:2px !important;
    padding:1px 5px !important;
    font-size:7.5px !important;
    line-height:1.25 !important;
  }

  .wheel-label b{
    display:block !important;
    margin:0 !important;
    font-size:clamp(9.5px,2.8vw,12.5px) !important;
    line-height:1.18 !important;
    white-space:normal !important;
    word-break:keep-all !important;
    overflow:visible !important;
  }

  .wheel-label p{
    display:block !important;
    margin:3px auto 0 !important;
    max-width:100% !important;
    color:#333 !important;
    font-size:clamp(6.6px,1.85vw,8.5px) !important;
    line-height:1.32 !important;
    font-weight:800 !important;
    white-space:normal !important;
    word-break:keep-all !important;
    overflow:visible !important;
  }

  /* 説明文が中央円にかぶらないよう各位置を微調整 */
  .wheel-label-1{
    left:50% !important;
    top:18.5% !important;
  }
  .wheel-label-2{
    left:79.2% !important;
    top:39.5% !important;
  }
  .wheel-label-3{
    left:68.2% !important;
    top:75% !important;
  }
  .wheel-label-4{
    left:31.8% !important;
    top:75% !important;
  }
  .wheel-label-5{
    left:20.8% !important;
    top:39.5% !important;
  }

  /* 中央は少し小さくして説明文の余白を確保 */
  .wheel-core{
    width:33.5% !important;
    padding:8px !important;
  }

  .wheel-core strong{
    font-size:clamp(21px,6.5vw,30px) !important;
  }

  .wheel-core span{
    margin-top:5px !important;
    font-size:7.5px !important;
  }

  .wheel-core small{
    margin-top:6px !important;
    font-size:4.8px !important;
    letter-spacing:.05em !important;
  }
}

/* 小さいiPhoneは円を画面いっぱい近くまで使う */
@media(max-width:390px){
  .philosophy-wheel{
    width:97vw !important;
  }
  .wheel-label{
    width:32% !important;
  }
  .wheel-label b{
    font-size:9px !important;
  }
  .wheel-label p{
    font-size:6.2px !important;
    line-height:1.28 !important;
  }
}



/* =========================================================
   MOBILE PHILOSOPHY FINAL FIX
   ・右端が切れない
   ・コーナー全体も画面内に収める
   ・円内の文字を少し大きく
   PC版は変更しない
========================================================= */
@media(max-width:560px){

  /* OUR STORY 全体をスマホ幅の中へ安全に収める */
  .story-philosophy{
    overflow:hidden !important;
  }

  .story-philosophy .wrap{
    width:calc(100% - 20px) !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .story-philosophy-grid{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    grid-template-columns:minmax(0,1fr) !important;
    overflow:visible !important;
  }

  .story-vision{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
    border-radius:26px !important;
  }

  .story-vision-inner{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:18px 8px 20px !important;
    overflow:hidden !important;
  }

  .philosophy-wheel-wrap{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    padding:8px 0 10px !important;
    overflow:visible !important;
  }

  /* 画面幅ではなく「親要素の幅」に合わせるのがポイント */
  .philosophy-wheel{
    width:min(100%,400px) !important;
    max-width:400px !important;
    margin:0 auto !important;
    flex:0 1 auto !important;
  }

  /* 文字を少し大きくしつつ、各扇形内に収める */
  .wheel-label{
    width:32% !important;
    max-width:32% !important;
    overflow:visible !important;
  }

  .wheel-label span{
    font-size:8px !important;
    padding:1px 5px !important;
    margin-bottom:2px !important;
  }

  .wheel-label b{
    font-size:clamp(10.5px,3vw,13.5px) !important;
    line-height:1.16 !important;
    font-weight:1000 !important;
    white-space:normal !important;
    word-break:keep-all !important;
  }

  .wheel-label p{
    display:block !important;
    margin:3px auto 0 !important;
    max-width:100% !important;
    font-size:clamp(7.2px,2vw,9px) !important;
    line-height:1.30 !important;
    font-weight:850 !important;
    white-space:normal !important;
    word-break:keep-all !important;
    color:#333 !important;
  }

  /* 位置をわずかに内側へ寄せて、右端・左端の欠けを防止 */
  .wheel-label-1{
    left:50% !important;
    top:18.5% !important;
  }
  .wheel-label-2{
    left:77.5% !important;
    top:40% !important;
  }
  .wheel-label-3{
    left:67% !important;
    top:74% !important;
  }
  .wheel-label-4{
    left:33% !important;
    top:74% !important;
  }
  .wheel-label-5{
    left:22.5% !important;
    top:40% !important;
  }

  /* 中央円を少しだけ小さくし、説明文の余白を広げる */
  .wheel-core{
    width:32.5% !important;
    padding:7px !important;
  }

  .wheel-core strong{
    font-size:clamp(22px,6.8vw,31px) !important;
  }

  .wheel-core span{
    font-size:8px !important;
    margin-top:5px !important;
  }

  .wheel-core small{
    font-size:5px !important;
    margin-top:5px !important;
  }
}

/* 小さいスマホも右切れ防止を優先 */
@media(max-width:390px){
  .story-philosophy .wrap{
    width:calc(100% - 16px) !important;
  }

  .philosophy-wheel{
    width:min(100%,370px) !important;
  }

  .wheel-label b{
    font-size:10px !important;
  }

  .wheel-label p{
    font-size:6.8px !important;
    line-height:1.25 !important;
  }
}



/* スマホ版：理念サークルの文字を可能な限り大きく */
@media (max-width:560px){

  .philosophy-wheel{
    width:min(100%,410px)!important;
  }

  .wheel-label{
    width:33.5%!important;
  }

  .wheel-label span{
    font-size:8.5px!important;
    padding:2px 6px!important;
  }

  .wheel-label b{
    font-size:clamp(12px,3.5vw,15px)!important;
    line-height:1.15!important;
    font-weight:1000!important;
  }

  .wheel-label p{
    font-size:clamp(8px,2.35vw,10px)!important;
    line-height:1.28!important;
    font-weight:900!important;
    margin-top:4px!important;
  }

  /* 少し内側へ寄せて文字サイズを確保 */
  .wheel-label-2{left:76.8%!important;top:40%!important;}
  .wheel-label-3{left:66.2%!important;top:73.5%!important;}
  .wheel-label-4{left:33.8%!important;top:73.5%!important;}
  .wheel-label-5{left:23.2%!important;top:40%!important;}

  .wheel-core{
    width:31%!important;
  }

  .wheel-core strong{
    font-size:clamp(23px,7vw,33px)!important;
  }
}

@media (max-width:390px){
  .wheel-label b{font-size:11px!important;}
  .wheel-label p{font-size:7.5px!important;}
}



/* スマホ版：円内は理念名を大きく、説明は円の下に整理 */
.mobile-philosophy-cards{display:none;}

@media(max-width:560px){
  .wheel-label p{display:none !important;}
  .wheel-label{width:34% !important;}
  .wheel-label span{
    font-size:9.5px !important;
    padding:2px 6px !important;
    margin-bottom:4px !important;
  }
  .wheel-label b{
    font-size:clamp(14px,4vw,17px) !important;
    line-height:1.15 !important;
    font-weight:1000 !important;
    white-space:normal !important;
    word-break:keep-all !important;
  }

  .wheel-label-1{left:50% !important;top:17.5% !important;}
  .wheel-label-2{left:79% !important;top:39.5% !important;}
  .wheel-label-3{left:68% !important;top:75% !important;}
  .wheel-label-4{left:32% !important;top:75% !important;}
  .wheel-label-5{left:21% !important;top:39.5% !important;}

  .wheel-core{width:34% !important;}

  .mobile-philosophy-cards{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:16px;
    width:100%;
  }
  .mobile-philosophy-card{
    display:grid;
    grid-template-columns:34px 1fr;
    gap:9px;
    align-items:start;
    padding:12px;
    border-radius:14px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(0,0,0,.07);
    box-shadow:0 8px 18px rgba(0,0,0,.055);
  }
  .mobile-philosophy-card span{
    width:32px;height:32px;
    display:grid;place-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,#ffd84d,#ff9a3d);
    color:#111;
    font-size:10px;
    font-weight:1000;
  }
  .mobile-philosophy-card strong{
    display:block;
    color:#171717;
    font-size:13px;
    line-height:1.25;
    font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  }
  .mobile-philosophy-card p{
    margin:4px 0 0;
    color:#555;
    font-size:10.5px;
    line-height:1.55;
    font-weight:700;
  }
  .mobile-philosophy-card:nth-child(5){grid-column:1 / -1;}
}

@media(max-width:390px){
  .mobile-philosophy-cards{grid-template-columns:1fr;}
  .mobile-philosophy-card:nth-child(5){grid-column:auto;}
  .wheel-label b{font-size:13px !important;}
}



/* =========================================================
   MOBILE PHILOSOPHY REFINEMENT
   PC版は変更しない
========================================================= */
@media(max-width:560px){

  /* 円内の理念名：2語は2行、3語は3行 */
  .wheel-label b{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:1px !important;
    font-size:clamp(15px,4.4vw,19px) !important;
    line-height:1.05 !important;
    letter-spacing:.01em !important;
    font-weight:1000 !important;
    white-space:normal !important;
  }

  .wheel-label-1 b{
    font-size:clamp(17px,5vw,21px) !important;
  }

  .wheel-label-2 b{
    font-size:clamp(12.5px,3.7vw,16px) !important;
  }

  .wheel-label-3 b,
  .wheel-label-4 b,
  .wheel-label-5 b{
    font-size:clamp(14px,4.1vw,18px) !important;
  }

  .wheel-label span{
    font-size:10px !important;
    padding:2px 6px !important;
    margin-bottom:5px !important;
  }

  /* 理念名の中の語は番号タグ用CSSの影響を受けない */
  .wheel-label b .ph-word{
    display:block !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:inherit !important;
    box-shadow:none !important;
    font-size:inherit !important;
    line-height:inherit !important;
    letter-spacing:inherit !important;
    font-weight:inherit !important;
  }

  /* 下の5カード番号を円グラフの色と連動 */
  .mobile-philosophy-card:nth-child(1) span{
    background:#ffe36f !important;
  }
  .mobile-philosophy-card:nth-child(2) span{
    background:#ffad63 !important;
  }
  .mobile-philosophy-card:nth-child(3) span{
    background:#95d9a8 !important;
  }
  .mobile-philosophy-card:nth-child(4) span{
    background:#ffd07a !important;
  }
  .mobile-philosophy-card:nth-child(5) span{
    background:#b7e36f !important;
  }

  .mobile-philosophy-card span{
    color:#111 !important;
    border:1px solid rgba(0,0,0,.08) !important;
    box-shadow:0 4px 10px rgba(0,0,0,.08) !important;
  }

  .mobile-philosophy-card strong{
    font-size:14px !important;
  }
  .mobile-philosophy-card p{
    font-size:11px !important;
    line-height:1.55 !important;
  }
}



.staff-card.special-adviser-gold .staff-card-photo{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#eee;
}
.staff-card.special-adviser-gold .staff-card-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 32%;
  display:block;
}



/* 石井洋之さんの写真を少し引いて表示 */
.staff-card.special-adviser-gold .staff-card-photo img{
  object-fit:cover !important;
  object-position:center 30% !important;
  transform:scale(.90) !important;
  transform-origin:center center !important;
}
.staff-card.special-adviser-gold .staff-card-photo{
  background:#eef2f5 !important;
}



/* HISTORY：稲美中学校・稲美北中学校の学校名横の縦筋を消す */
.history-card h3{
  border-left:none !important;
  padding-left:0 !important;
}
.history-card h3::before,
.history-card h3::after{
  content:none !important;
  display:none !important;
}
@media(max-width:560px){
  .history-card h3{
    border-left:none !important;
    padding-left:0 !important;
  }
}



.history-yokoe .history-card{background:linear-gradient(135deg,rgba(255,248,210,.98),rgba(255,255,255,.98))!important;border:1px solid rgba(214,164,35,.28)!important}
.history-yokoe .history-badge{background:linear-gradient(90deg,#d7a62b,#f2cf63)!important;color:#fff!important}
.history-yokoe h3 small{display:inline-block;margin-left:8px;font-size:.55em;color:#777}
.history-record{margin:8px 0 10px!important}.history-record strong{font-size:24px;color:#b78313}
.history-career{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(0,0,0,.07);font-size:11px;font-weight:800;color:#555}
.history-career b{color:#d3a22a}
@media(max-width:560px){.history-yokoe h3 small{display:block;margin:5px 0 0;font-size:12px}.history-record strong{font-size:22px}.history-career{gap:5px;font-size:10px;line-height:1.6}}



/* OUR PHILOSOPHY：他セクションの英字見出しと統一し、緑色に */
.story-vision-values .story-vision-en{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif !important;
  font-size:12px !important;
  font-weight:1000 !important;
  letter-spacing:.28em !important;
  color:var(--green) !important;
  border-bottom:1px solid rgba(24,139,91,.22) !important;
}



/* =========================================================
   HISTORY 学校名の前に出る縦線を完全に削除
   稲美中学校／稲美北中学校の見出し部分
========================================================= */
#history .history-card h3,
#history .history-card h3 *,
#history .history-school,
#history .history-school *,
#history .history-card-title,
#history .history-card-title *{
  border-left:none !important;
  box-shadow:none !important;
}

/* 疑似要素で作られている縦線も削除 */
#history .history-card h3::before,
#history .history-card h3::after,
#history .history-school::before,
#history .history-school::after,
#history .history-card-title::before,
#history .history-card-title::after{
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  border:0 !important;
  background:transparent !important;
}

/* 見出し左側に線用の余白が残らないよう調整 */
#history .history-card h3{
  padding-left:0 !important;
  margin-left:0 !important;
}

/* PC・スマホ共通 */
@media(max-width:560px){
  #history .history-card h3{
    border-left:0 !important;
    padding-left:0 !important;
    margin-left:0 !important;
  }
}



/* HISTORY 左側のカード装飾が縦筋に見えていたため削除 */
#history .history-card::before{
  content:none !important;
  display:none !important;
  border:0 !important;
  background:none !important;
}

/* 学校名そのものには装飾線を一切付けない */
#history span.school-inami,
#history span.school-inamikita{
  display:inline !important;
  position:static !important;
  border:0 !important;
  border-left:0 !important;
  padding-left:0 !important;
  margin-left:0 !important;
  box-shadow:none !important;
  background-image:none !important;
}
#history span.school-inami::before,
#history span.school-inami::after,
#history span.school-inamikita::before,
#history span.school-inamikita::after{
  content:none !important;
  display:none !important;
}



/* 2009年エリア内：横江里沙選手の全中1500m優勝実績 */
#history .history-2009 .history-yokoe-subcard{
  margin-top:20px;
  padding:18px 18px 16px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(255,248,210,.96),rgba(255,255,255,.96));
  border:1px solid rgba(214,164,35,.28);
}
#history .history-2009 .history-yokoe-subcard .history-badge{
  display:inline-block;
  background:linear-gradient(90deg,#d7a62b,#f2cf63)!important;
  color:#fff!important;
}
#history .history-2009 .history-yokoe-subcard h3{
  margin-top:10px!important;
}
#history .history-2009 .history-yokoe-subcard h3 small{
  display:inline-block;
  margin-left:8px;
  font-size:.55em;
  color:#777;
}
@media(max-width:560px){
  #history .history-2009 .history-yokoe-subcard{
    margin-top:16px;
    padding:15px;
  }
  #history .history-2009 .history-yokoe-subcard h3 small{
    display:block;
    margin:5px 0 0;
    font-size:12px;
  }
}



/* オープニング「念ずれば、花開く。」を最後まで表示 */
@media(max-width:560px){
  #opening-css{
    animation:openingAway .01s linear 6.8s forwards !important;
  }

  .opening-title-col.first span:nth-child(1){animation-delay:.30s !important;}
  .opening-title-col.first span:nth-child(2){animation-delay:1.05s !important;}
  .opening-title-col.first span:nth-child(3){animation-delay:1.80s !important;}
  .opening-title-col.first span:nth-child(4){animation-delay:2.55s !important;}
  .opening-title-col.second span:nth-child(1){animation-delay:3.30s !important;}
  .opening-title-col.second span:nth-child(2){animation-delay:4.05s !important;}
  .opening-title-col.second span:nth-child(3){animation-delay:4.80s !important;}

  /* 最後の「く」が出たあと少し余韻を残す */
  .opening-title-css{
    animation:none !important;
    opacity:1 !important;
  }
}



/* =========================================================
   OPENING COMPLETE SEQUENCE
   念ずれば、花開く。→ INAMI Track & Field → ENTER
========================================================= */
@media(max-width:560px){

  /* 前回の強制固定を解除し、後半演出まで十分な時間を確保 */
  #opening-css{
    animation:openingAway .45s ease 9.8s forwards !important;
  }

  /* 最初の言葉は最後まで表示してからフェード */
  .opening-title-css{
    opacity:1 !important;
    animation:openingTitleFinish .65s ease 6.15s forwards !important;
  }

  /* ロゴ・チーム名・ENTERを後半に表示 */
  .opening-brand,
  .opening-logo,
  .opening-team,
  .opening-enter,
  .opening-enter-btn{
    animation-duration:.65s !important;
    animation-fill-mode:forwards !important;
  }

  .opening-brand,
  .opening-logo,
  .opening-team{
    animation-name:openingLateReveal !important;
    animation-delay:6.45s !important;
  }

  .opening-enter,
  .opening-enter-btn{
    animation-name:openingLateReveal !important;
    animation-delay:7.05s !important;
    pointer-events:auto !important;
  }
}

@keyframes openingTitleFinish{
  from{opacity:1;}
  to{opacity:0;}
}
@keyframes openingLateReveal{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}



/* スマホ版：オープニング後半のテンポを速く */
@media(max-width:560px){
  /* 「念ずれば、花開く。」を見せた後、すぐ次へ */
  .opening-title-css{
    animation:openingTitleFinish .45s ease 5.15s forwards !important;
  }

  /* 稲美 Track & Field を早めに表示 */
  .opening-brand,
  .opening-logo,
  .opening-team{
    animation-name:openingLateReveal !important;
    animation-duration:.45s !important;
    animation-delay:5.35s !important;
    animation-fill-mode:forwards !important;
  }

  /* ENTERもほぼ続けて表示 */
  .opening-enter,
  .opening-enter-btn{
    animation-name:openingLateReveal !important;
    animation-duration:.45s !important;
    animation-delay:5.70s !important;
    animation-fill-mode:forwards !important;
    pointer-events:auto !important;
  }

  /* ENTERを押さなくても残りすぎない */
  #opening-css{
    animation:openingAway .4s ease 8.4s forwards !important;
  }
}



/* スマホ版：稲美 Track & Field と ENTER 表示後の余韻を長く */
@media(max-width:560px){
  /* 表示タイミングは今のテンポのまま */
  .opening-brand,
  .opening-logo,
  .opening-team{
    animation-delay:5.35s !important;
  }
  .opening-enter,
  .opening-enter-btn{
    animation-delay:5.70s !important;
  }

  /* ENTER表示後、約3秒ほど見せてから本編へ */
  #opening-css{
    animation:openingAway .45s ease 9.2s forwards !important;
  }
}



/* スマホ版：
   念ずれば花開く完成 → すぐ Track & Field + ENTER → 余韻 → 本編 */
@media(max-width:560px){

  /* 最後の「く」まで見せたら、すぐ切り替え */
  .opening-title-css{
    animation:openingTitleFinish .28s ease 4.95s forwards !important;
  }

  /* チーム名をほぼ同時に表示 */
  .opening-brand,
  .opening-logo,
  .opening-team{
    animation-name:openingLateReveal !important;
    animation-duration:.32s !important;
    animation-delay:5.05s !important;
    animation-fill-mode:forwards !important;
  }

  /* ENTERもチーム名とほぼ同時に */
  .opening-enter,
  .opening-enter-btn{
    animation-name:openingLateReveal !important;
    animation-duration:.32s !important;
    animation-delay:5.12s !important;
    animation-fill-mode:forwards !important;
    pointer-events:auto !important;
  }

  /* 2つが出てから約3.5秒しっかり見せる */
  #opening-css{
    animation:openingAway .45s ease 8.75s forwards !important;
  }
}



@media(max-width:560px){
  /* 「念ずれば花開く」が完成した直後に消す */
  .opening-title-css{
    animation:openingTitleFinish .28s ease 5.05s forwards !important;
  }

  /* 実際のチーム名要素 */
  .opening-logo-css{
    opacity:0 !important;
    animation:openingRealReveal .35s ease 5.18s forwards !important;
  }

  /* 実際のENTERボタン要素 */
  .css-enter{
    opacity:0 !important;
    visibility:visible !important;
    display:block !important;
    pointer-events:auto !important;
    animation:openingEnterRealReveal .35s ease 5.25s forwards !important;
  }

  /* チーム名とENTERが出てから約3.5秒残す */
  #opening-css{
    animation:openingAway .45s ease 8.95s forwards !important;
  }
}

@keyframes openingRealReveal{
  from{opacity:0;transform:translate(-50%,10px);}
  to{opacity:1;transform:translate(-50%,0);}
}
@keyframes openingEnterRealReveal{
  from{opacity:0;transform:translate(-50%,8px);}
  to{opacity:1;transform:translate(-50%,-6px);}
}



/* =========================================================
   MOBILE OPENING — guaranteed finish screen
   既存の複雑な opacity!important 競合を避けるため、
   スマホだけ専用要素を別レイヤーで表示
========================================================= */
.mobile-opening-finish{display:none;}

@media(max-width:560px){
  /* 既存のロゴ/ENTERはスマホでは使わない */
  .opening-logo-css,
  .css-enter{
    display:none !important;
  }

  .mobile-opening-finish{
    display:block !important;
    position:absolute;
    inset:0;
    z-index:30;
    pointer-events:none;
  }

  .mobile-opening-team{
    position:absolute;
    left:50%;
    bottom:10.5%;
    width:86%;
    transform:translate(-50%,12px);
    text-align:center;
    color:#fff;
    opacity:0;
    animation:mobileTeamReveal .32s ease 5.18s forwards;
  }

  .mobile-opening-team strong{
    display:block;
    font-size:18px;
    line-height:1.15;
    letter-spacing:.055em;
  }

  .mobile-opening-team small{
    display:block;
    margin-top:4px;
    color:var(--yellow);
    font-size:8px;
    line-height:1;
    letter-spacing:.16em;
    font-weight:900;
  }

  .mobile-opening-enter{
    position:absolute;
    left:50%;
    bottom:2.2%;
    transform:translate(-50%,10px);
    opacity:0;
    pointer-events:none;
    color:#111;
    padding:10px 23px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--yellow),var(--orange));
    box-shadow:0 12px 35px rgba(255,122,0,.34);
    font-size:12px;
    font-weight:1000;
    letter-spacing:.14em;
    text-decoration:none;
    animation:mobileEnterReveal .32s ease 5.25s forwards;
  }

  /* 「念ずれば花開く」後すぐに出す */
  .opening-title-css{
    animation:openingTitleFinish .28s ease 5.05s forwards !important;
  }

  /* その後しばらく見せて本編へ */
  #opening-css{
    animation:openingAway .45s ease 9.0s forwards !important;
  }
}

@keyframes mobileTeamReveal{
  to{
    opacity:1;
    transform:translate(-50%,0);
  }
}
@keyframes mobileEnterReveal{
  to{
    opacity:1;
    transform:translate(-50%,0);
    pointer-events:auto;
  }
}



/* =========================================================
   MOBILE OPENING — ゆっくり登場
   「念ずれば、花開く。」完成後、
   稲美 Track & Field と ENTER がゆっくり浮かび上がる
========================================================= */
@media(max-width:560px){

  .mobile-opening-team{
    opacity:0;
    filter:blur(6px);
    transform:translate(-50%,18px) scale(.97);
    animation:mobileTeamSlowReveal 1.35s cubic-bezier(.22,.7,.2,1) 5.05s forwards !important;
  }

  .mobile-opening-enter{
    opacity:0;
    filter:blur(5px);
    transform:translate(-50%,16px) scale(.96);
    animation:mobileEnterSlowReveal 1.25s cubic-bezier(.22,.7,.2,1) 5.35s forwards !important;
  }

  /* ゆっくり出たあと、しばらく見せてから本編へ */
  #opening-css{
    animation:openingAway .55s ease 10.2s forwards !important;
  }
}

@keyframes mobileTeamSlowReveal{
  0%{
    opacity:0;
    filter:blur(6px);
    transform:translate(-50%,18px) scale(.97);
  }
  55%{
    opacity:.72;
    filter:blur(2px);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:translate(-50%,0) scale(1);
  }
}

@keyframes mobileEnterSlowReveal{
  0%{
    opacity:0;
    filter:blur(5px);
    transform:translate(-50%,16px) scale(.96);
  }
  55%{
    opacity:.7;
    filter:blur(2px);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:translate(-50%,0) scale(1);
    pointer-events:auto;
  }
}



@media(max-width:560px){
  .opening-title-css{
    animation:openingTitleFinish .28s ease 5.00s forwards !important;
  }

  .mobile-opening-team{
    opacity:0;
    filter:blur(6px);
    transform:translate(-50%,18px) scale(.97);
    animation:mobileTeamSlowReveal 1.20s cubic-bezier(.22,.7,.2,1) 5.08s forwards !important;
  }

  .mobile-opening-enter{
    opacity:0;
    filter:blur(5px);
    transform:translate(-50%,16px) scale(.96);
    animation:mobileEnterSlowReveal 1.10s cubic-bezier(.22,.7,.2,1) 5.22s forwards !important;
  }

  #opening-css{
    animation:openingAway .55s ease 10.35s forwards !important;
  }
}



/* =========================================================
   MOBILE ENTER MOTION — 自然な出方に調整
   チーム名のあと、ENTERが「ふわっ」と遅れて現れる
========================================================= */
@media(max-width:560px){

  /* チーム名は今のゆっくり登場を維持 */
  .mobile-opening-team{
    opacity:0;
    filter:blur(5px);
    transform:translate(-50%,14px) scale(.98);
    animation:mobileTeamNatural 1.05s cubic-bezier(.22,.7,.2,1) 5.08s forwards !important;
  }

  /* ENTERは「下から飛び出す」感じをやめて、軽いフェード＋微小スケール */
  .mobile-opening-enter{
    opacity:0;
    filter:none !important;
    transform:translate(-50%,4px) scale(.985);
    animation:mobileEnterNatural .85s cubic-bezier(.22,.7,.2,1) 5.62s forwards !important;
    will-change:opacity,transform;
  }

  /* 表示後は少し長めに見せる */
  #opening-css{
    animation:openingAway .55s ease 10.45s forwards !important;
  }
}

@keyframes mobileTeamNatural{
  0%{
    opacity:0;
    filter:blur(5px);
    transform:translate(-50%,14px) scale(.98);
  }
  60%{
    opacity:.86;
    filter:blur(1.5px);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:translate(-50%,0) scale(1);
  }
}

@keyframes mobileEnterNatural{
  0%{
    opacity:0;
    transform:translate(-50%,4px) scale(.985);
  }
  45%{
    opacity:.55;
  }
  100%{
    opacity:1;
    transform:translate(-50%,0) scale(1);
    pointer-events:auto;
  }
}



/* =========================================================
   MOBILE OPENING — 以前の「黄色い光に包まれて移行」を復元
   念ずれば花開く → Track & Field + ENTER → 余韻 → 黄色い光 → 本編
========================================================= */
@media(max-width:560px){

  /* 初期レスポンシブ設定で非表示になっていた光レイヤーを復活 */
  .sunrise-transition{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    z-index:80 !important;
    pointer-events:none !important;
    opacity:0;
    transform:scale(.68);
    background:
      radial-gradient(circle at 50% 58%,
        rgba(255,255,255,1) 0 5%,
        rgba(255,245,170,.98) 13%,
        rgba(255,216,77,.96) 27%,
        rgba(255,166,38,.78) 43%,
        rgba(255,122,0,.38) 58%,
        rgba(255,216,77,0) 74%) !important;
    filter:blur(1px);
    animation:mobileGoldenTransition 1.55s cubic-bezier(.22,.7,.2,1) 9.05s forwards !important;
  }

  /* 黒いインク演出はスマホでは使わず、黄色い光だけで自然につなぐ */
  .ink-transition{
    display:none !important;
  }

  /* 光が画面を包み切ったところで本編へ */
  #opening-css{
    animation:openingAway .28s ease 10.48s forwards !important;
  }
}

@keyframes mobileGoldenTransition{
  0%{
    opacity:0;
    transform:scale(.68);
    filter:blur(5px);
  }
  28%{
    opacity:.45;
    transform:scale(.88);
    filter:blur(3px);
  }
  68%{
    opacity:.96;
    transform:scale(1.32);
    filter:blur(1px);
  }
  88%{
    opacity:1;
    transform:scale(1.72);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:scale(2.05);
    filter:blur(0);
  }
}



/* =========================================================
   MOBILE OPENING — 黄色い光の広がりをなめらかに
========================================================= */
@media(max-width:560px){
  .sunrise-transition{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    z-index:80 !important;
    pointer-events:none !important;
    opacity:0;
    transform:scale(.82);
    will-change:opacity,transform,filter;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    background:
      radial-gradient(circle at 50% 58%,
        rgba(255,255,255,.98) 0 7%,
        rgba(255,246,184,.96) 16%,
        rgba(255,220,92,.90) 30%,
        rgba(255,178,55,.68) 46%,
        rgba(255,128,25,.30) 61%,
        rgba(255,216,77,0) 78%) !important;
    filter:blur(7px);
    animation:mobileGoldenTransitionSmooth 1.85s cubic-bezier(.16,.72,.22,1) 9.0s forwards !important;
  }

  /* 光が広がり終わってから、少しだけ余韻を置いて本編へ */
  #opening-css{
    animation:openingAway .34s ease 10.72s forwards !important;
  }
}

@keyframes mobileGoldenTransitionSmooth{
  0%{
    opacity:0;
    transform:scale(.82);
    filter:blur(8px);
  }
  18%{
    opacity:.16;
    transform:scale(.90);
    filter:blur(7px);
  }
  38%{
    opacity:.38;
    transform:scale(1.02);
    filter:blur(5.5px);
  }
  58%{
    opacity:.66;
    transform:scale(1.18);
    filter:blur(4px);
  }
  76%{
    opacity:.86;
    transform:scale(1.40);
    filter:blur(2.5px);
  }
  90%{
    opacity:.97;
    transform:scale(1.68);
    filter:blur(1.2px);
  }
  100%{
    opacity:1;
    transform:scale(1.95);
    filter:blur(0);
  }
}



/* =========================================================
   MOBILE OPENING — 黄色い光をさらに滑らかに
   ・拡大速度をゆるやかに
   ・透明度/ぼかしの変化を細かく
   ・最後の切替をほぼ白飛びの中で行う
========================================================= */
@media(max-width:560px){
  .sunrise-transition{
    display:block !important;
    position:absolute !important;
    inset:-8% !important;
    z-index:80 !important;
    pointer-events:none !important;
    opacity:0;
    transform:scale(.88) translateZ(0);
    transform-origin:50% 58%;
    will-change:opacity,transform,filter;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    background:
      radial-gradient(circle at 50% 58%,
        rgba(255,255,255,1) 0 8%,
        rgba(255,250,210,.98) 17%,
        rgba(255,232,126,.94) 31%,
        rgba(255,196,72,.76) 47%,
        rgba(255,151,38,.42) 61%,
        rgba(255,216,77,.12) 72%,
        rgba(255,216,77,0) 84%) !important;
    filter:blur(10px);
    animation:mobileGoldenTransitionUltra 2.35s cubic-bezier(.12,.64,.18,1) 8.95s forwards !important;
  }

  /* 光がほぼ画面を覆った状態で自然に本編へ */
  #opening-css{
    animation:openingAway .42s cubic-bezier(.2,.7,.2,1) 11.12s forwards !important;
  }
}

@keyframes mobileGoldenTransitionUltra{
  0%{
    opacity:0;
    transform:scale(.88) translateZ(0);
    filter:blur(10px);
  }
  10%{
    opacity:.06;
    transform:scale(.92) translateZ(0);
    filter:blur(9.5px);
  }
  20%{
    opacity:.14;
    transform:scale(.97) translateZ(0);
    filter:blur(8.8px);
  }
  30%{
    opacity:.25;
    transform:scale(1.03) translateZ(0);
    filter:blur(8px);
  }
  40%{
    opacity:.38;
    transform:scale(1.10) translateZ(0);
    filter:blur(7px);
  }
  50%{
    opacity:.52;
    transform:scale(1.18) translateZ(0);
    filter:blur(6px);
  }
  60%{
    opacity:.66;
    transform:scale(1.28) translateZ(0);
    filter:blur(4.8px);
  }
  70%{
    opacity:.79;
    transform:scale(1.40) translateZ(0);
    filter:blur(3.6px);
  }
  80%{
    opacity:.90;
    transform:scale(1.54) translateZ(0);
    filter:blur(2.4px);
  }
  90%{
    opacity:.97;
    transform:scale(1.70) translateZ(0);
    filter:blur(1.2px);
  }
  96%{
    opacity:1;
    transform:scale(1.82) translateZ(0);
    filter:blur(.4px);
  }
  100%{
    opacity:1;
    transform:scale(1.92) translateZ(0);
    filter:blur(0);
  }
}



/* OLD OPENING TRANSITION RESTORE
   過去版で実際に使っていた黄色い光の動きをそのまま移植 */
@media(max-width:560px){
  .sunrise-transition{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    z-index:80 !important;
    pointer-events:none !important;
    background:
      radial-gradient(circle at 50% 58%,
        rgba(255,255,255,1) 0 7%,
        rgba(255,245,170,.98) 13%,
        rgba(255,216,77,.96) 27%,
        rgba(255,166,38,.78) 43%,
        rgba(255,122,0,.38) 58%,
        rgba(255,216,77,0) 74%) !important;
    filter:none !important;
    will-change:transform,opacity;
    opacity:0;
    animation:oldVerifiedYellowLight 3.08s cubic-bezier(.18,.7,.18,1) 8.95s forwards !important;
  }

  /* 光の演出が終わるところで本編へ */
  #opening-css{
    animation:openingAway .01s linear 12.03s forwards !important;
  }
}

@keyframes oldVerifiedYellowLight{
  0%{opacity:0;transform:scale(.7);}
  22%{opacity:.94;transform:scale(.9);}
  55%{opacity:1;transform:scale(1.18);}
  78%{opacity:.88;transform:scale(1.38);}
  100%{opacity:0;transform:scale(1.55);}
}



/* =========================================================
   TEAM ITEMS / T-SHIRT
   文字とTシャツの空きを詰め、商品写真をひと回り大きく
========================================================= */

/* Tシャツ画像の余白を抑えて存在感を出す */
#goods .goods-card img,
#goods .item-card img,
#goods .product-card img{
  transform:scale(1.12);
  transform-origin:center center;
}

/* 画像エリアと文字エリアの間隔を詰める */
#goods .goods-card,
#goods .item-card,
#goods .product-card{
  row-gap:8px !important;
}

#goods .goods-card h3,
#goods .item-card h3,
#goods .product-card h3{
  margin-top:6px !important;
}

/* スマホではさらに少し大きく見せる */
@media(max-width:560px){
  #goods .goods-card img,
  #goods .item-card img,
  #goods .product-card img{
    transform:scale(1.18);
  }

  #goods .goods-card,
  #goods .item-card,
  #goods .product-card{
    row-gap:4px !important;
  }

  #goods .goods-card h3,
  #goods .item-card h3,
  #goods .product-card h3{
    margin-top:2px !important;
  }
}



/* =========================================================
   TEAM ITEMS：Tシャツと商品名の隙間をしっかり詰める
========================================================= */
#goods .goods-grid,
#goods .items-grid{
  align-items:start !important;
}

/* 画像を大きくするだけでなく、画像を囲う「枠」の余白を縮める */
#goods .goods-card .goods-image,
#goods .goods-card .item-image,
#goods .item-card .goods-image,
#goods .item-card .item-image,
#goods .product-card .product-image,
#goods figure{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

/* 画像直後の文字を上へ寄せる */
#goods img + h3,
#goods img + .goods-info,
#goods img + .item-info,
#goods figure + h3,
#goods figure + .goods-info,
#goods figure + .item-info{
  margin-top:-12px !important;
}

/* 商品名・説明側の上余白も除去 */
#goods .goods-info,
#goods .item-info,
#goods .product-info{
  padding-top:0 !important;
  margin-top:0 !important;
}

#goods .goods-card h3,
#goods .item-card h3,
#goods .product-card h3{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* スマホは特に間延びしないよう強めに詰める */
@media(max-width:560px){
  #goods img + h3,
  #goods img + .goods-info,
  #goods img + .item-info,
  #goods figure + h3,
  #goods figure + .goods-info,
  #goods figure + .item-info{
    margin-top:-22px !important;
  }

  #goods .goods-card img,
  #goods .item-card img,
  #goods .product-card img{
    transform:scale(1.22) !important;
    transform-origin:center bottom !important;
  }
}



/* TEAM ITEMS 最終バランス調整
   ・ユニフォームは小さく
   ・文字との重なりを解消
   ・Tシャツとユニフォームのカードサイズを統一
*/
#goods .goods-card,
#goods .item-card,
#goods .product-card{
  height:100% !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
}

/* 商品画像を置く領域は全カードで同じ高さにする */
#goods .goods-image,
#goods .item-image,
#goods .product-image,
#goods figure{
  height:250px !important;
  min-height:250px !important;
  margin:0 !important;
  padding:8px 10px 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

/* 前回の強いマイナスマージンを解除 */
#goods img + h3,
#goods img + .goods-info,
#goods img + .item-info,
#goods figure + h3,
#goods figure + .goods-info,
#goods figure + .item-info{
  margin-top:0 !important;
}

/* 基本の商品画像 */
#goods .goods-card img,
#goods .item-card img,
#goods .product-card img{
  max-width:100% !important;
  max-height:225px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  transform:none !important;
}

/* ユニフォーム画像だけ少し小さく */
#goods img[alt*="ユニフォーム"],
#goods img[src*="uniform"],
#goods .uniform img,
#goods .uniform-card img{
  max-width:82% !important;
  max-height:195px !important;
  transform:none !important;
}

/* 文字は画像枠の直下に自然に配置 */
#goods .goods-info,
#goods .item-info,
#goods .product-info{
  margin-top:0 !important;
  padding-top:8px !important;
}

@media(max-width:560px){
  #goods .goods-image,
  #goods .item-image,
  #goods .product-image,
  #goods figure{
    height:210px !important;
    min-height:210px !important;
    padding:6px 8px 0 !important;
  }

  #goods .goods-card img,
  #goods .item-card img,
  #goods .product-card img{
    max-height:190px !important;
    transform:none !important;
  }

  #goods img[alt*="ユニフォーム"],
  #goods img[src*="uniform"],
  #goods .uniform img,
  #goods .uniform-card img{
    max-width:78% !important;
    max-height:165px !important;
  }

  #goods .goods-info,
  #goods .item-info,
  #goods .product-info{
    padding-top:6px !important;
  }
}



/* =========================================================
   TEAM ITEMS：画像と文字を完全に分離
   ・イラストは上段
   ・文字は下段
   ・重なりは一切なし
   ・Tシャツとユニフォームのカードサイズを統一
========================================================= */
#goods .goods-grid,
#goods .items-grid{
  align-items:stretch !important;
}

/* カード全体 */
#goods .goods-card,
#goods .item-card,
#goods .product-card{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  min-height:480px !important;
  overflow:hidden !important;
  position:relative !important;
}

/* 画像エリアを完全固定 */
#goods .goods-image,
#goods .item-image,
#goods .product-image,
#goods figure{
  position:relative !important;
  flex:0 0 270px !important;
  height:270px !important;
  min-height:270px !important;
  max-height:270px !important;
  margin:0 !important;
  padding:14px 16px 8px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

/* 画像はこの枠の中だけに収める */
#goods .goods-card img,
#goods .item-card img,
#goods .product-card img{
  position:static !important;
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:92% !important;
  max-height:235px !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:none !important;
  margin:0 auto !important;
}

/* ユニフォームだけ少し小さく */
#goods img[alt*="ユニフォーム"],
#goods img[src*="uniform"],
#goods .uniform img,
#goods .uniform-card img{
  max-width:78% !important;
  max-height:205px !important;
}

/* 文字エリアは画像の下に独立 */
#goods .goods-info,
#goods .item-info,
#goods .product-info,
#goods .goods-card-body,
#goods .item-card-body{
  position:static !important;
  flex:1 1 auto !important;
  margin:0 !important;
  padding:18px 20px 22px !important;
  transform:none !important;
  background:transparent !important;
  z-index:2 !important;
}

/* 見出し・説明に負の余白を使わない */
#goods h3,
#goods p,
#goods .goods-card h3,
#goods .item-card h3,
#goods .product-card h3{
  position:static !important;
  transform:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

#goods .goods-card h3,
#goods .item-card h3,
#goods .product-card h3{
  margin-top:0 !important;
  margin-bottom:8px !important;
}

/* 前の調整で入った重なり用マイナスマージンを完全解除 */
#goods img + h3,
#goods img + .goods-info,
#goods img + .item-info,
#goods figure + h3,
#goods figure + .goods-info,
#goods figure + .item-info{
  margin-top:0 !important;
}

/* スマホ版も同じ思想で分離 */
@media(max-width:560px){
  #goods .goods-card,
  #goods .item-card,
  #goods .product-card{
    min-height:430px !important;
  }

  #goods .goods-image,
  #goods .item-image,
  #goods .product-image,
  #goods figure{
    flex-basis:230px !important;
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
    padding:12px 12px 6px !important;
  }

  #goods .goods-card img,
  #goods .item-card img,
  #goods .product-card img{
    max-width:90% !important;
    max-height:205px !important;
  }

  #goods img[alt*="ユニフォーム"],
  #goods img[src*="uniform"],
  #goods .uniform img,
  #goods .uniform-card img{
    max-width:74% !important;
    max-height:178px !important;
  }

  #goods .goods-info,
  #goods .item-info,
  #goods .product-info,
  #goods .goods-card-body,
  #goods .item-card-body{
    padding:14px 16px 18px !important;
  }
}



@media(max-width:560px){
  #schedule .monthly-panel,
  #schedule .school-monthly-panel{
    overflow:visible !important;
    min-width:0 !important;
    width:100% !important;
  }

  #schedule .school-schedule-section{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    padding:14px !important;
    margin-bottom:14px !important;
    border-radius:18px !important;
  }

  #schedule .school-schedule-title{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    margin-bottom:10px !important;
  }

  #schedule .school-schedule-title strong{
    font-size:17px !important;
    line-height:1.3 !important;
  }

  #schedule .school-schedule-title small{
    font-size:8px !important;
    line-height:1.25 !important;
  }

  #schedule .school-month-grid,
  #schedule .monthly-pdf-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
  }

  #schedule .monthly-pdf-card{
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:12px !important;
    border-radius:14px !important;
    overflow:hidden !important;
  }

  #schedule .monthly-pdf-label{
    display:block !important;
    margin-bottom:8px !important;
    font-size:11px !important;
    line-height:1.3 !important;
    white-space:normal !important;
  }

  #schedule .monthly-pdf-frame,
  #schedule .monthly-pdf-embed,
  #schedule embed{
    display:none !important;
  }

  #schedule .monthly-pdf-link{
    display:flex !important;
    width:100% !important;
    min-height:44px !important;
    align-items:center !important;
    justify-content:center !important;
    padding:11px 12px !important;
    margin-top:0 !important;
    border-radius:12px !important;
    font-size:12px !important;
    line-height:1.35 !important;
    text-align:center !important;
    white-space:normal !important;
  }

  #schedule .monthly-empty-box{
    min-height:88px !important;
    height:auto !important;
    padding:12px !important;
    border-radius:12px !important;
  }

  #schedule .monthly-empty-box strong{
    font-size:12px !important;
    line-height:1.4 !important;
  }

  #schedule .monthly-empty-box span{
    display:block !important;
    margin-top:4px !important;
    font-size:9px !important;
    line-height:1.45 !important;
  }

  #schedule .monthly-head h3,
  #schedule .schedule-panel-head h3{
    font-size:24px !important;
    line-height:1.25 !important;
    margin-bottom:14px !important;
  }

  #schedule,
  #schedule *{
    max-width:100% !important;
    box-sizing:border-box !important;
  }
}



@media(max-width:560px){
  #schedule .monthly-pdf-link{
    position:relative !important;
    z-index:10 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:rgba(0,0,0,.08) !important;
    touch-action:manipulation !important;
  }
  #schedule .monthly-pdf-link::after{
    content:" ↗";
    font-size:.9em;
  }
}



.mobile-schedule-modal{display:none;}

@media(max-width:560px){
  #schedule .monthly-pdf-link{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-height:46px !important;
    padding:11px 12px !important;
    border-radius:12px !important;
    font-size:12px !important;
    font-weight:900 !important;
    text-decoration:none !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    position:relative !important;
    z-index:20 !important;
  }

  #schedule .monthly-pdf-link::after{
    content:"" !important;
  }

  .mobile-schedule-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
  }
  .mobile-schedule-modal.open{
    display:flex !important;
  }
  .mobile-schedule-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.72);
  }
  .mobile-schedule-modal-panel{
    position:relative;
    z-index:1;
    width:calc(100% - 20px);
    max-height:92vh;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
  }
  .mobile-schedule-modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:12px 14px;
    border-bottom:1px solid rgba(0,0,0,.08);
    background:#fff;
  }
  .mobile-schedule-modal-head strong{
    font-size:15px;
  }
  .mobile-schedule-modal-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#f2f2f2;
    color:#111;
    font-size:24px;
    line-height:1;
  }
  .mobile-schedule-modal-body{
    max-height:calc(92vh - 63px);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    background:#f6f6f6;
  }
  .mobile-schedule-modal-body img{
    display:block;
    width:100%;
    height:auto;
    max-width:none !important;
  }
}



/* =========================================================
   MONTHLY SCHEDULE — スマホは予定表画像をそのまま表示
   PC版は従来どおりPDF表示
========================================================= */
.mobile-monthly-schedule-image{
  display:none;
}

@media(max-width:560px){
  /* スマホではPDFプレビュー・PDFボタンを使わない */
  #schedule .monthly-pdf-frame,
  #schedule .monthly-pdf-embed,
  #schedule .monthly-pdf-link,
  #schedule embed{
    display:none !important;
  }

  /* 予定表画像をカード内に常時表示 */
  #schedule .mobile-monthly-schedule-image{
    display:block !important;
    width:100% !important;
    margin:6px 0 0 !important;
    padding:0 !important;
    border-radius:12px !important;
    overflow:hidden !important;
    background:#fff !important;
    border:1px solid rgba(0,0,0,.08) !important;
  }

  #schedule .mobile-monthly-schedule-image img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-width:100% !important;
    margin:0 !important;
    transform:none !important;
    object-fit:contain !important;
  }

  /* 8月のカードは画像を読みやすくするため少し広めに */
  #schedule .monthly-pdf-card{
    padding:12px !important;
    overflow:visible !important;
  }

  /* 学校ごとの月間予定は縦1列 */
  #schedule .school-month-grid,
  #schedule .monthly-pdf-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  /* モーダルは不要 */
  #mobileScheduleModal{
    display:none !important;
  }
}



/* =========================================================
   SCHEDULE — スマホ版のエリアを十分に広げる
   PC版は変更しない
========================================================= */
@media(max-width:560px){

  /* セクション全体が途中で切れないよう高さ制限を解除 */
  #schedule{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    padding-bottom:72px !important;
  }

  #schedule .wrap,
  #schedule .schedule-two-column,
  #schedule .weekly-panel,
  #schedule .monthly-panel,
  #schedule .school-monthly-panel,
  #schedule .school-schedule-section,
  #schedule .school-month-grid,
  #schedule .monthly-pdf-card{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }

  /* 月間スケジュール画像の表示エリアを自然に伸ばす */
  #schedule .mobile-monthly-schedule-image{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }

  #schedule .mobile-monthly-schedule-image img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
  }

  /* 月間予定カードが画像の高さに合わせて伸びる */
  #schedule .monthly-pdf-card{
    display:block !important;
    padding:12px !important;
  }

  /* 学校ブロックの下にも余白を確保 */
  #schedule .school-schedule-section{
    margin-bottom:18px !important;
  }

  /* スケジュールの下端で次セクションと重ならないよう余白 */
  #schedule .schedule-two-column{
    padding-bottom:24px !important;
  }
}



/* =========================================================
   SCHEDULE — MOBILE FULL OPTIMIZATION
   PC版はそのまま。スマホでは「見えること」を最優先。
========================================================= */
@media(max-width:560px){

  /* 週間／月間タブによる非表示をやめ、両方を縦に表示 */
  #schedule .mobile-schedule-tabs{
    display:none !important;
  }
  #schedule .schedule-two-column.mobile-show-weekly > .monthly-panel,
  #schedule .schedule-two-column.mobile-show-monthly > .weekly-panel,
  #schedule .schedule-two-column > .weekly-panel,
  #schedule .schedule-two-column > .monthly-panel{
    display:block !important;
  }

  /* セクション全体は内容に合わせて無制限に伸ばす */
  #schedule{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    padding:54px 0 80px !important;
  }
  #schedule .wrap{
    width:calc(100% - 18px) !important;
    max-width:none !important;
    overflow:visible !important;
  }
  #schedule .schedule-two-column{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    padding:0 !important;
  }

  /* 週間予定はコンパクトに上段へ */
  #schedule .weekly-panel{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 0 20px !important;
    padding:17px !important;
    overflow:visible !important;
  }

  /* 月間予定はスマホでは別の大きなブロックとして表示 */
  #schedule .monthly-panel,
  #schedule .school-monthly-panel{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:16px 10px 20px !important;
    overflow:visible !important;
    border-radius:22px !important;
  }

  #schedule .monthly-head{
    padding:0 6px !important;
    margin-bottom:14px !important;
  }
  #schedule .monthly-head h3{
    font-size:27px !important;
    margin-bottom:8px !important;
  }

  /* 学校ブロックを大きく縦積み */
  #schedule .school-schedule-section{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 0 18px !important;
    padding:12px 8px 14px !important;
    overflow:visible !important;
    border-radius:18px !important;
  }

  #schedule .school-schedule-title{
    margin:0 4px 12px !important;
  }
  #schedule .school-schedule-title strong{
    font-size:19px !important;
  }
  #schedule .school-schedule-title small{
    font-size:9px !important;
  }

  /* 2か月分は完全に1列 */
  #schedule .school-month-grid,
  #schedule .monthly-pdf-grid{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }

  #schedule .monthly-pdf-card{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 0 12px !important;
    padding:9px !important;
    overflow:visible !important;
    border-radius:14px !important;
  }

  #schedule .monthly-pdf-label{
    font-size:12px !important;
    margin:0 0 8px !important;
    padding-left:2px !important;
  }

  /* PDFプレビュー／リンクはスマホでは完全に使わない */
  #schedule .monthly-pdf-frame,
  #schedule .monthly-pdf-embed,
  #schedule .monthly-pdf-link,
  #schedule embed{
    display:none !important;
  }

  /* 月間予定画像を最大限大きく表示 */
  #schedule .mobile-monthly-schedule-image{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    border-radius:10px !important;
    background:#fff !important;
    border:1px solid rgba(0,0,0,.08) !important;
  }

  #schedule .mobile-monthly-schedule-image img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    max-width:none !important;
    object-fit:contain !important;
    object-position:top center !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
  }

  /* 未登録月もカードを大きくしすぎない */
  #schedule .empty-month-card{
    min-height:0 !important;
  }
  #schedule .monthly-empty-box{
    height:auto !important;
    min-height:78px !important;
    max-height:none !important;
    padding:12px !important;
  }

  /* 以前の固定高さ・overflow指定を最終的に全解除 */
  #schedule .wrap,
  #schedule .schedule-heading,
  #schedule .schedule-two-column,
  #schedule .weekly-panel,
  #schedule .monthly-panel,
  #schedule .school-monthly-panel,
  #schedule .school-schedule-section,
  #schedule .school-month-grid,
  #schedule .monthly-pdf-card,
  #schedule .mobile-monthly-schedule-image{
    overflow:visible !important;
    max-height:none !important;
  }

  /* 次のセクションと絶対に重ならないよう余白 */
  #schedule::after{
    content:"";
    display:block;
    height:20px;
    clear:both;
  }
}



/* =========================================================
   TEAM IDENTITY — スマホ版だけ見やすく最適化
   PC版はそのまま維持
========================================================= */
@media(max-width:560px){

  /* セクション全体の横はみ出しを防止 */
  #identity,
  .team-identity,
  .identity-section,
  .team-identity-section{
    overflow:hidden !important;
  }

  #identity .wrap,
  .team-identity .wrap,
  .identity-section .wrap,
  .team-identity-section .wrap{
    width:calc(100% - 20px) !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:visible !important;
  }

  /* 大きな題字：切れずに画面幅へ収める */
  #identity h2,
  #identity .identity-title,
  #identity .team-identity-title,
  .team-identity h2,
  .team-identity .identity-title,
  .team-identity .team-identity-title,
  .identity-section h2,
  .identity-section .identity-title,
  .team-identity-section h2,
  .team-identity-section .team-identity-title{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    white-space:normal !important;
    word-break:keep-all !important;
    overflow:visible !important;
    text-overflow:clip !important;
    transform:none !important;
    font-size:clamp(42px,12.5vw,64px) !important;
    line-height:.98 !important;
    letter-spacing:-.035em !important;
  }

  /* 英字の大見出しもスマホで収める */
  #identity .eyebrow,
  #identity .kicker,
  #identity .section-en,
  #identity .identity-en,
  .team-identity .eyebrow,
  .team-identity .kicker,
  .team-identity .section-en,
  .team-identity .identity-en{
    max-width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
  }

  /* 大見出しに絶対配置が使われている場合も解除 */
  #identity .identity-hero,
  #identity .identity-copy,
  #identity .identity-heading,
  .team-identity .identity-hero,
  .team-identity .identity-copy,
  .team-identity .identity-heading{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    width:100% !important;
    max-width:100% !important;
    transform:none !important;
    overflow:visible !important;
  }

  /* グリッドならスマホでは縦1列 */
  #identity .identity-grid,
  #identity .team-identity-grid,
  .team-identity .identity-grid,
  .team-identity .team-identity-grid,
  .identity-section .identity-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
    width:100% !important;
    min-width:0 !important;
  }

  /* カードや説明文も切れないように */
  #identity .card,
  #identity .identity-card,
  .team-identity .card,
  .team-identity .identity-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  #identity p,
  .team-identity p,
  .identity-section p,
  .team-identity-section p{
    max-width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
    line-height:1.75 !important;
  }
}

/* 小さいiPhoneではさらに少し縮める */
@media(max-width:390px){
  #identity h2,
  #identity .identity-title,
  #identity .team-identity-title,
  .team-identity h2,
  .team-identity .identity-title,
  .team-identity .team-identity-title,
  .identity-section h2,
  .identity-section .identity-title,
  .team-identity-section h2,
  .team-identity-section .team-identity-title{
    font-size:clamp(38px,12vw,54px) !important;
    line-height:1 !important;
  }
}



/* =========================================================
   TEAM IDENTITY — スマホ版コピー切れ修正
   「ロゴ・Tシャツ・横断幕まで、ひとつの世界観に。」
   を確実に全文表示
   PC版は変更しない
========================================================= */
@media(max-width:560px){

  /* 対象コピー周辺の固定高・切り抜きを解除 */
  #identity .identity-copy,
  #identity .team-identity-copy,
  #identity .identity-lead,
  .team-identity .identity-copy,
  .team-identity .team-identity-copy,
  .team-identity .identity-lead,
  .identity-section .identity-copy,
  .team-identity-section .identity-copy{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    white-space:normal !important;
  }

  /* 大きなコピー本文 */
  #identity .identity-copy p,
  #identity .team-identity-copy p,
  #identity .identity-lead,
  .team-identity .identity-copy p,
  .team-identity .team-identity-copy p,
  .team-identity .identity-lead,
  .identity-section .identity-copy p,
  .team-identity-section .identity-copy p{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:normal !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    font-size:clamp(24px,7vw,34px) !important;
    line-height:1.28 !important;
    letter-spacing:-.02em !important;
  }

  /* brがあればスマホでは自然な改行に */
  #identity .identity-copy p br,
  #identity .team-identity-copy p br,
  #identity .identity-lead br,
  .team-identity .identity-copy p br,
  .team-identity .team-identity-copy p br,
  .team-identity .identity-lead br{
    display:none !important;
  }

  /* コピーを含む親要素も切らない */
  #identity .identity-heading,
  #identity .identity-hero,
  #identity .identity-text,
  .team-identity .identity-heading,
  .team-identity .identity-hero,
  .team-identity .identity-text{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

/* 小さいスマホでは少しだけ縮小 */
@media(max-width:390px){
  #identity .identity-copy p,
  #identity .team-identity-copy p,
  #identity .identity-lead,
  .team-identity .identity-copy p,
  .team-identity .team-identity-copy p,
  .team-identity .identity-lead{
    font-size:clamp(22px,6.7vw,30px) !important;
    line-height:1.3 !important;
  }
}



/* =========================================================
   TEAM IDENTITY — MOBILE WIDTH FIX
   PC版は変更しない
   スマホではコピーを画面横幅内へ確実に収める
========================================================= */
@media(max-width:560px){

  /* セクションの実幅をスマホ画面内に固定 */
  #identity,
  .team-identity,
  .identity-section,
  .team-identity-section{
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
  }

  /* 左右に十分な余白を確保 */
  #identity .wrap,
  .team-identity .wrap,
  .identity-section .wrap,
  .team-identity-section .wrap{
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding-left:18px !important;
    padding-right:18px !important;
    box-sizing:border-box !important;
  }

  /* コピーを含む親要素も100%幅に */
  #identity .identity-heading,
  #identity .identity-hero,
  #identity .identity-text,
  #identity .identity-copy,
  #identity .team-identity-copy,
  #identity .identity-lead,
  .team-identity .identity-heading,
  .team-identity .identity-hero,
  .team-identity .identity-text,
  .team-identity .identity-copy,
  .team-identity .team-identity-copy,
  .team-identity .identity-lead{
    position:static !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    transform:none !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  /* 「ロゴ・Tシャツ・横断幕まで、ひとつの世界観に。」 */
  #identity .identity-copy p,
  #identity .team-identity-copy p,
  #identity .identity-lead,
  .team-identity .identity-copy p,
  .team-identity .team-identity-copy p,
  .team-identity .identity-lead,
  .identity-section .identity-copy p,
  .team-identity-section .identity-copy p{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;

    /* 横幅から絶対にはみ出さない */
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
    text-wrap:balance;
    overflow:visible !important;

    /* スマホで読みやすい大きさ */
    font-size:clamp(21px,6.2vw,29px) !important;
    line-height:1.34 !important;
    letter-spacing:-.035em !important;
  }

  /* PC用の固定改行はスマホでは解除 */
  #identity .identity-copy p br,
  #identity .team-identity-copy p br,
  #identity .identity-lead br,
  .team-identity .identity-copy p br,
  .team-identity .team-identity-copy p br,
  .team-identity .identity-lead br{
    display:none !important;
  }
}

/* 横幅の狭いiPhoneにも対応 */
@media(max-width:390px){
  #identity .wrap,
  .team-identity .wrap,
  .identity-section .wrap,
  .team-identity-section .wrap{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  #identity .identity-copy p,
  #identity .team-identity-copy p,
  #identity .identity-lead,
  .team-identity .identity-copy p,
  .team-identity .team-identity-copy p,
  .team-identity .identity-lead{
    font-size:clamp(20px,6vw,25px) !important;
    line-height:1.36 !important;
  }
}



/* =========================================================
   TEAM IDENTITY MAIN TITLE
   PC版は今まで通り。スマホだけ3行にして全文を確実に表示。
========================================================= */
.identity-title-mobile{
  display:none;
}

@media(max-width:560px){
  #goods{
    overflow-x:hidden !important;
  }

  #goods .wrap{
    width:calc(100% - 24px) !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  #goods .team-identity-main-title{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:18px 0 20px !important;
    padding:0 !important;
    overflow:visible !important;
    white-space:normal !important;
    transform:none !important;
    box-sizing:border-box !important;
  }

  #goods .identity-title-desktop{
    display:none !important;
  }

  #goods .identity-title-mobile{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    color:inherit !important;
    font:inherit !important;
    font-size:clamp(37px,10.6vw,48px) !important;
    line-height:1.16 !important;
    letter-spacing:-.045em !important;
    font-weight:1000 !important;
    white-space:normal !important;
    word-break:keep-all !important;
    overflow:visible !important;
  }
}

@media(max-width:390px){
  #goods .identity-title-mobile{
    font-size:clamp(34px,10vw,42px) !important;
    line-height:1.18 !important;
  }
}



/* =========================================================
   HISTORY 中川悠聖選手
   横江里沙選手のカードと同じく「名前＋記録」を明確に表示
========================================================= */
#history .history-nakagawa .history-athlete-feature{
  margin:14px 0 14px;
  padding:16px 18px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(212,175,55,.30);
}

#history .history-nakagawa .history-athlete-name{
  margin:0 0 7px !important;
  padding:0 !important;
  color:#171717 !important;
  -webkit-text-fill-color:#171717 !important;
  font-size:26px !important;
  line-height:1.25 !important;
  font-weight:1000 !important;
}

#history .history-nakagawa .history-athlete-name small{
  display:inline-block;
  margin-left:8px;
  color:#666 !important;
  -webkit-text-fill-color:#666 !important;
  font-size:.52em !important;
  font-weight:800 !important;
}

#history .history-nakagawa .history-record{
  margin:0 !important;
  padding:0 !important;
}

#history .history-nakagawa .history-record strong{
  color:#b78313 !important;
  -webkit-text-fill-color:#b78313 !important;
  font-size:28px !important;
  line-height:1.1 !important;
  letter-spacing:.03em !important;
}

@media(max-width:560px){
  #history .history-nakagawa .history-athlete-feature{
    margin:12px 0 13px;
    padding:14px 15px 13px;
  }

  #history .history-nakagawa .history-athlete-name{
    font-size:21px !important;
  }

  #history .history-nakagawa .history-athlete-name small{
    display:block;
    margin:5px 0 0;
    font-size:12px !important;
  }

  #history .history-nakagawa .history-record strong{
    font-size:24px !important;
  }
}



/* 中川悠聖選手 経歴 */
#history .history-nakagawa .history-career-nakagawa{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid rgba(0,0,0,.10);
  color:#333;
  font-size:13px;
  line-height:1.55;
  font-weight:800;
}
#history .history-nakagawa .history-career-nakagawa .career-arrow{
  color:#b78313;
  font-size:16px;
  font-weight:1000;
}
@media(max-width:560px){
  #history .history-nakagawa .history-career-nakagawa{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    font-size:12px;
  }
  #history .history-nakagawa .history-career-nakagawa .career-arrow{
    line-height:1;
  }
}



#history .history-nakagawa .history-career-nakagawa{
  display:block !important;
  white-space:nowrap !important;
}
#history .history-nakagawa .history-career-nakagawa span{
  display:inline !important;
  white-space:nowrap !important;
}
@media(max-width:560px){
  #history .history-nakagawa .history-career-nakagawa{
    display:block !important;
    white-space:nowrap !important;
    font-size:11px !important;
    letter-spacing:-.02em !important;
  }
}



#history .history-nakagawa .career-gold-arrow{
  color:#c99a22 !important;
  -webkit-text-fill-color:#c99a22 !important;
  font-weight:1000 !important;
  padding:0 2px;
}



/* TEAM IDENTITY 大見出し：スマホ横切れ防止
   PC版には影響させない */
@media(max-width:560px){
  #goods .team-identity-main-title{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    white-space:normal !important;
    transform:none !important;
  }

  #goods .identity-title-mobile{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    white-space:normal !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;

    /* 「ロゴ・Tシャツ・横断幕に」が1行で画面内に収まるサイズ */
    font-size:clamp(28px,7.6vw,38px) !important;
    line-height:1.18 !important;
    letter-spacing:-.055em !important;
  }

  #goods .wrap{
    width:calc(100% - 28px) !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
}

@media(max-width:390px){
  #goods .identity-title-mobile{
    font-size:clamp(27px,7.35vw,32px) !important;
    letter-spacing:-.06em !important;
  }
}



/* =========================================================
   TEAM SHIRT：タイトルだけ残し、Tシャツ画像を可能な限り大きく表示
========================================================= */

/* PC */
#goods .item-card:first-child .item-image,
#goods .goods-card:first-child .goods-image,
#goods .identity-card:first-child .identity-image,
#goods .team-item:first-child .team-item-image{
  height:360px !important;
  min-height:360px !important;
  padding:4px !important;
  box-sizing:border-box !important;
}

#goods .item-card:first-child img,
#goods .goods-card:first-child img,
#goods .identity-card:first-child img,
#goods .team-item:first-child img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  transform:scale(1.16) !important;
  transform-origin:center center !important;
}

/* スマホ */
@media(max-width:560px){
  #goods .item-card:first-child .item-image,
  #goods .goods-card:first-child .goods-image,
  #goods .identity-card:first-child .identity-image,
  #goods .team-item:first-child .team-item-image{
    height:310px !important;
    min-height:310px !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  #goods .item-card:first-child img,
  #goods .goods-card:first-child img,
  #goods .identity-card:first-child img,
  #goods .team-item:first-child img{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:contain !important;
    transform:scale(1.22) !important;
    transform-origin:center center !important;
  }
}



/* =========================================================
   TEAM UNIFORM：説明文をなくし、画像をカード内で最大化
   TEAM SHIRTと同じ見せ方
========================================================= */

/* PC：2枚目＝TEAM UNIFORM */
#goods .item-card:nth-child(2) .item-image,
#goods .goods-card:nth-child(2) .goods-image,
#goods .identity-card:nth-child(2) .identity-image,
#goods .team-item:nth-child(2) .team-item-image{
  height:360px !important;
  min-height:360px !important;
  padding:4px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

#goods .item-card:nth-child(2) img,
#goods .goods-card:nth-child(2) img,
#goods .identity-card:nth-child(2) img,
#goods .team-item:nth-child(2) img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  transform:scale(1.16) !important;
  transform-origin:center center !important;
}

/* スマホ */
@media(max-width:560px){
  #goods .item-card:nth-child(2) .item-image,
  #goods .goods-card:nth-child(2) .goods-image,
  #goods .identity-card:nth-child(2) .identity-image,
  #goods .team-item:nth-child(2) .team-item-image{
    height:310px !important;
    min-height:310px !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  #goods .item-card:nth-child(2) img,
  #goods .goods-card:nth-child(2) img,
  #goods .identity-card:nth-child(2) img,
  #goods .team-item:nth-child(2) img{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:contain !important;
    transform:scale(1.22) !important;
    transform-origin:center center !important;
  }
}



/* =========================================================
   横方向スクロール防止
   縦スクロール時にページが左右へズレないよう固定
========================================================= */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
  overscroll-behavior-x:none;
}

body{
  position:relative;
}

/* スマホではページ全体をビューポート幅からはみ出させない */
@media(max-width:560px){
  html,
  body{
    width:100% !important;
    max-width:100vw !important;
    overflow-x:hidden !important;
    overscroll-behavior-x:none !important;
    touch-action:pan-y !important;
  }

  main,
  section,
  header,
  footer{
    max-width:100vw;
    box-sizing:border-box;
  }
}



/* =========================================================
   HISTORY — 福田有以選手（2010）
========================================================= */
#history .history-fukuda .history-athlete-feature{
  margin:14px 0;
  padding:16px 18px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(212,175,55,.30);
}
#history .history-fukuda .history-athlete-name{
  margin:0 0 7px !important;
  color:#171717 !important;
  -webkit-text-fill-color:#171717 !important;
  font-size:26px !important;
  line-height:1.25 !important;
  font-weight:1000 !important;
}
#history .history-fukuda .history-athlete-name small{
  display:inline-block;
  margin-left:8px;
  color:#666 !important;
  -webkit-text-fill-color:#666 !important;
  font-size:.52em !important;
  font-weight:800 !important;
}
#history .history-fukuda .history-record{
  margin:0 !important;
}
#history .history-fukuda .history-record strong{
  color:#b78313 !important;
  -webkit-text-fill-color:#b78313 !important;
  font-size:28px !important;
  line-height:1.1 !important;
}
#history .history-fukuda .history-career-fukuda{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid rgba(0,0,0,.09);
  color:#333;
  font-size:12px;
  line-height:1.55;
  font-weight:800;
}
#history .history-fukuda .career-gold-arrow{
  color:#c99a22 !important;
  -webkit-text-fill-color:#c99a22 !important;
  font-weight:1000 !important;
}

@media(max-width:560px){
  #history .history-fukuda .history-athlete-feature{
    padding:14px 15px 13px;
  }
  #history .history-fukuda .history-athlete-name{
    font-size:21px !important;
  }
  #history .history-fukuda .history-athlete-name small{
    display:block;
    margin:5px 0 0;
    font-size:12px !important;
  }
  #history .history-fukuda .history-record strong{
    font-size:24px !important;
  }
  #history .history-fukuda .history-career-fukuda{
    font-size:11px !important;
    gap:3px;
  }
}



/* =========================================================
   HISTORY 2010 福田有以 — 横江里沙カードに合わせた金色デザイン
========================================================= */
#history .history-fukuda{
  position:relative !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,215,90,.22), transparent 34%),
    linear-gradient(145deg,#fffdf6 0%,#fff8dc 52%,#f5df9a 100%) !important;
  border:1px solid rgba(190,140,25,.46) !important;
  box-shadow:
    0 18px 42px rgba(95,67,0,.13),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

#history .history-fukuda::after{
  content:"";
  position:absolute;
  right:-55px;
  top:-55px;
  width:165px;
  height:165px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,213,79,.28),rgba(255,213,79,0) 68%);
  pointer-events:none;
}

#history .history-fukuda .history-round{
  color:#9b6d08 !important;
  -webkit-text-fill-color:#9b6d08 !important;
  font-weight:900 !important;
}

#history .history-fukuda .history-event-title{
  color:#171717 !important;
  -webkit-text-fill-color:#171717 !important;
}

#history .history-fukuda .history-athlete-feature{
  background:rgba(255,255,255,.64) !important;
  border:1px solid rgba(190,140,25,.34) !important;
  box-shadow:inset 0 0 24px rgba(221,174,54,.08) !important;
}

#history .history-fukuda .history-record strong{
  color:#b78313 !important;
  -webkit-text-fill-color:#b78313 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}

#history .history-fukuda .history-badge{
  background:linear-gradient(90deg,#9a6908,#d2a52d,#a87309) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:rgba(255,220,120,.45) !important;
  box-shadow:0 8px 18px rgba(150,105,5,.18) !important;
}

/* 2010の年タブも金色の印象に */
#history .history-item:has(.history-fukuda) .history-year{
  background:linear-gradient(135deg,#9d6b08,#d7aa31) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#d9ad37 !important;
  box-shadow:0 8px 20px rgba(158,108,8,.20) !important;
}



/* =========================================================
   中川悠聖選手：横江里沙選手と同系統の金色デザイン
   一つ前のホームページデザインをベースに変更
========================================================= */
#history .history-nakagawa{
  position:relative !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,215,90,.22), transparent 34%),
    linear-gradient(145deg,#fffdf6 0%,#fff8dc 52%,#f5df9a 100%) !important;
  border:1px solid rgba(190,140,25,.46) !important;
  box-shadow:
    0 18px 42px rgba(95,67,0,.13),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

#history .history-nakagawa::after{
  content:"";
  position:absolute;
  right:-55px;
  top:-55px;
  width:165px;
  height:165px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,213,79,.28),rgba(255,213,79,0) 68%);
  pointer-events:none;
}

#history .history-nakagawa .history-round{
  color:#9b6d08 !important;
  -webkit-text-fill-color:#9b6d08 !important;
  font-weight:900 !important;
}

#history .history-nakagawa .history-athlete-feature{
  background:rgba(255,255,255,.64) !important;
  border:1px solid rgba(190,140,25,.34) !important;
  box-shadow:inset 0 0 24px rgba(221,174,54,.08) !important;
}

#history .history-nakagawa .history-record strong{
  color:#b78313 !important;
  -webkit-text-fill-color:#b78313 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}

/* 経歴の矢印は金色を維持 */
#history .history-nakagawa .career-gold-arrow{
  color:#c99a22 !important;
  -webkit-text-fill-color:#c99a22 !important;
  font-weight:1000 !important;
}

/* 全国優勝バッジも金色 */
#history .history-nakagawa .history-badge{
  background:linear-gradient(90deg,#9a6908,#d2a52d,#a87309) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:rgba(255,220,120,.45) !important;
  box-shadow:0 8px 18px rgba(150,105,5,.18) !important;
}

/* 中川選手の年タブも金色 */
#history .history-item:has(.history-nakagawa) .history-year{
  background:linear-gradient(135deg,#9d6b08,#d7aa31) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#d9ad37 !important;
  box-shadow:0 8px 20px rgba(158,108,8,.20) !important;
}



/* 横江里沙・中川悠聖：記録タイムの色と見え方を完全統一 */
#history .history-2009 .history-yokoe-subcard .history-record strong,
#history .history-nakagawa .history-record strong{
  color:#b78313 !important;
  -webkit-text-fill-color:#b78313 !important;
  text-shadow:none !important;
  opacity:1 !important;
}

/* 2022年カード内に「敬意」が紛れ込んだ場合は非表示 */
#history .history-item.history-2022-clean .remove-2022-keii{
  display:none !important;
}



/* 横江里沙・中川悠聖の記録タイムは完全に同一色 */
#history strong.shared-record-gold {
  color:#b78313 !important;
  -webkit-text-fill-color:#b78313 !important;
  text-shadow:none !important;
  opacity:1 !important;
}



#history .history-item.history-2022-fixed .philosophy-number,
#history .history-item.history-2022-fixed .philosophy-label,
#history .history-item.history-2022-fixed [data-label="敬意"],
#history .history-item.history-2022-fixed [data-title="敬意"]{
  display:none !important;
}



.staff-card .ishii-photo-profile,
.member-card .ishii-photo-profile,
.ishii-photo-profile{
  margin:14px 0 0;
  line-height:1.9;
  font-size:14px;
  color:inherit;
  text-align:left;
}
@media(max-width:560px){
  .ishii-photo-profile{
    margin-top:12px;
    font-size:13px;
    line-height:1.85;
  }
}



.staff-card .ishii-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .oda-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .fujiwara-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .yamakawa-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .minato-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .arikawa-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .yagita-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.staff-card .yonetani-profile{
  display:block !important;
  margin:12px 0 0 !important;
  color:#555 !important;
  font-size:12.5px !important;
  line-height:1.85 !important;
  text-align:left !important;
  visibility:visible !important;
  opacity:1 !important;
}



.season-results-section{padding:110px 0;background:linear-gradient(180deg,#fff 0%,#fffaf0 48%,#fff 100%);position:relative;overflow:hidden}
.season-results-section .season-kicker{font-size:12px;font-weight:800;letter-spacing:.24em;color:#d59b18;margin-bottom:12px}
.season-results-section h2{font-size:clamp(32px,5vw,58px);line-height:1.12;margin:0 0 18px;color:#1d1d1d;letter-spacing:.02em}
.season-lead{max-width:760px;font-size:15px;line-height:1.9;color:#4c4c4c;margin:0}
.season-note{max-width:900px;margin:16px 0 0;padding:12px 15px;border-left:3px solid #e4ad2f;background:rgba(255,255,255,.72);font-size:12px;line-height:1.8;color:#6b6b6b}
.season-school{margin-top:64px}
.season-school-title{display:flex;align-items:flex-end;gap:18px;margin-bottom:22px;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:14px}
.season-school-title span{font-size:11px;font-weight:900;letter-spacing:.18em;color:#d59b18}
.season-school-title h3{font-size:28px;margin:0;color:#202020}
.season-athlete-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.season-athlete{background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:20px;box-shadow:0 10px 28px rgba(0,0,0,.055)}
.season-athlete-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.season-athlete-head h4{font-size:18px;margin:0;color:#222}
.season-athlete-head span{font-size:11px;font-weight:800;color:#777;background:#f3f3f3;border-radius:999px;padding:5px 9px;white-space:nowrap}
.season-best{margin:14px 0 0;font-size:13px;font-weight:750;line-height:1.7;color:#333}
.season-achievement{margin:10px 0 0;font-size:11.5px;line-height:1.65;color:#9b6b00;font-weight:800}
@media(max-width:900px){.season-athlete-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
 .season-results-section{padding:72px 0}
 .season-results-section .wrap{width:calc(100% - 28px)!important;max-width:none!important;margin:0 auto!important}
 .season-results-section h2{font-size:34px}
 .season-school{margin-top:48px}
 .season-school-title{display:block}
 .season-school-title span{display:block;margin-bottom:6px}
 .season-school-title h3{font-size:24px}
 .season-athlete-grid{grid-template-columns:1fr;gap:10px}
 .season-athlete{padding:17px;border-radius:15px}
}



#results .result-feature span{line-height:1.25}
#results .result-feature em{display:inline-block;font-style:normal;font-size:10px;font-weight:800;letter-spacing:.05em;color:#ffd84d;margin-right:7px}
#results .result-feature small{font-size:10px;color:#8f8f8f;letter-spacing:.08em}
#results .results-highlights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
#results .results-highlights>div{border:1px solid rgba(255,216,77,.18);background:rgba(255,255,255,.045);padding:15px 14px}
#results .results-highlights span{display:block;color:#ffd84d;font-size:9px;font-weight:800;letter-spacing:.08em;margin-bottom:7px}
#results .results-highlights strong{display:block;color:#fff;font-size:14px;margin-bottom:4px}
#results .results-highlights small{color:#aaa;font-size:10px}
#results .results-source-note{display:block;color:#777;margin-top:15px;line-height:1.7}
@media(max-width:700px){
 #results .results-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:460px){
 #results .results-highlights{grid-template-columns:1fr}
}



/* ===== RESULTS 2026 / premium stadium board ===== */
#results.results{
  position:relative;
  overflow:hidden;
  padding-top:118px;
  padding-bottom:118px;
  background:
    radial-gradient(circle at 78% 15%,rgba(255,205,45,.13),transparent 25%),
    radial-gradient(circle at 14% 88%,rgba(242,123,31,.10),transparent 28%),
    linear-gradient(145deg,#090b0c 0%,#111416 50%,#080909 100%) !important;
}
#results.results:before{
  content:"2026";
  position:absolute;
  right:-.03em; top:-.22em;
  font-size:clamp(170px,31vw,470px);
  line-height:1;
  font-weight:950;
  letter-spacing:-.08em;
  color:rgba(255,255,255,.018);
  pointer-events:none;
}
#results.results:after{
  content:"";
  position:absolute;inset:0;
  background:repeating-linear-gradient(90deg,transparent 0,transparent 79px,rgba(255,255,255,.018) 80px);
  pointer-events:none;
}
#results .wrap{position:relative;z-index:2}
#results .kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-weight:900;letter-spacing:.28em!important;font-size:11px;
}
#results .kicker:before{content:"";width:34px;height:2px;background:#ffd84d;box-shadow:0 0 18px rgba(255,216,77,.65)}
#results h2{color:#fff;font-size:clamp(40px,6vw,72px);line-height:1.04;letter-spacing:-.035em;margin-top:13px}
#results .lead{max-width:680px;margin-top:18px!important;font-size:14px!important;line-height:1.9}

#results .results-live{
  display:grid!important;
  grid-template-columns:minmax(245px,.78fr) minmax(0,1.65fr);
  gap:0!important;
  margin-top:48px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:4px;
  background:rgba(0,0,0,.26);
  box-shadow:0 28px 80px rgba(0,0,0,.35);
  backdrop-filter:blur(7px);
}
#results .score-main{
  min-height:100%;
  display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start!important;
  padding:42px 36px!important;
  background:
    linear-gradient(160deg,rgba(255,216,77,.98),rgba(245,167,28,.97) 64%,rgba(235,117,25,.96));
  color:#111!important;
  position:relative;overflow:hidden;
}
#results .score-main:after{
  content:"TF";
  position:absolute;right:-16px;bottom:-35px;
  font-size:130px;font-weight:1000;letter-spacing:-.12em;color:rgba(255,255,255,.18);
}
#results .score-main>div{font-size:11px!important;font-weight:950;letter-spacing:.23em;color:#171717!important}
#results .score-main strong{font-size:16px!important;letter-spacing:.05em;margin-top:23px;color:#171717!important}
#results .score-main b{font-size:92px!important;line-height:.9;margin:12px 0 10px;color:#111!important;letter-spacing:-.07em}
#results .score-main small{font-size:9px!important;letter-spacing:.17em;font-weight:900;color:rgba(0,0,0,.58)!important}

#results .score-list{padding:0!important;background:rgba(11,13,14,.78)}
#results .result-feature{
  min-height:84px;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  padding:15px 25px!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
  transition:background .25s ease,transform .25s ease;
  position:relative;
}
#results .result-feature:last-child{border-bottom:0!important}
#results .result-feature:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:linear-gradient(#ffd84d,#ef7d20);opacity:.25;
}
#results .result-feature:hover{background:rgba(255,255,255,.045)}
#results .result-feature span{color:#f4f4f4!important;font-size:15px!important;font-weight:800}
#results .result-feature em{
  display:block!important;width:max-content;
  margin:0 0 5px!important;padding:3px 7px;
  border:1px solid rgba(255,216,77,.35);border-radius:999px;
  color:#ffd84d!important;font-size:8px!important;letter-spacing:.11em!important;
}
#results .result-feature small{display:inline-block;margin-top:5px;color:#777!important;font-size:9px!important;font-weight:700;letter-spacing:.12em!important}
#results .result-feature b{
  min-width:118px;text-align:right;
  color:#fff!important;font-size:clamp(25px,3vw,37px)!important;
  font-weight:950!important;letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}
#results .result-feature:nth-child(1) b,
#results .result-feature:nth-child(2) b{color:#ffd84d!important;text-shadow:0 0 24px rgba(255,216,77,.12)}

#results .results-highlights{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:1px!important;margin-top:1px!important;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
#results .results-highlights>div{
  min-height:116px;
  padding:20px 18px!important;
  border:0!important;
  background:#101315!important;
  position:relative;
}
#results .results-highlights>div:before{
  content:"01";display:block;margin-bottom:13px;
  color:rgba(255,216,77,.38);font-size:9px;font-weight:900;letter-spacing:.14em;
}
#results .results-highlights>div:nth-child(2):before{content:"02"}
#results .results-highlights>div:nth-child(3):before{content:"03"}
#results .results-highlights>div:nth-child(4):before{content:"04"}
#results .results-highlights span{font-size:8px!important;letter-spacing:.13em!important;margin-bottom:7px!important;color:#d9aa35!important}
#results .results-highlights strong{font-size:15px!important;letter-spacing:.03em}
#results .results-highlights small{font-size:10px!important;color:#8b8b8b!important}
#results .results-source-note{
  margin-top:17px!important;color:#666!important;font-size:9px!important;letter-spacing:.02em;
}

@media(max-width:760px){
 #results.results{padding-top:78px;padding-bottom:78px}
 #results.results:before{font-size:58vw;top:.02em}
 #results h2{font-size:40px}
 #results .results-live{grid-template-columns:1fr;margin-top:34px}
 #results .score-main{padding:28px 24px!important;min-height:205px}
 #results .score-main b{font-size:76px!important}
 #results .score-main:after{font-size:100px}
 #results .result-feature{min-height:76px;padding:13px 17px!important}
 #results .result-feature span{font-size:13px!important}
 #results .result-feature b{min-width:95px;font-size:26px!important}
 #results .results-highlights{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
 #results .results-highlights{grid-template-columns:1fr!important}
 #results .results-highlights>div{min-height:auto}
 #results .result-feature{grid-template-columns:minmax(0,1fr) auto}
 #results .result-feature b{font-size:23px!important;min-width:84px}
}



#results .club-result{background:linear-gradient(90deg,rgba(255,216,77,.065),rgba(255,255,255,.012))!important}
#results .club-result:before{width:3px!important;opacity:1!important;background:linear-gradient(#ffd84d,#ef7d20)!important}
#results .club-result em{background:rgba(255,216,77,.09)!important;border-color:rgba(255,216,77,.55)!important}
#results .club-highlight{background:linear-gradient(145deg,#15160f,#101315)!important}
#results .club-highlight strong{color:#ffd84d!important}



#results .result-feature span{display:flex!important;flex-direction:column;align-items:flex-start;gap:0}
#results .result-feature span>small{display:block!important;margin-top:7px!important;line-height:1.45!important;color:#929292!important}
#results .result-feature b{align-self:center}



#results .record-pick b{color:#ffd84d!important;text-shadow:0 0 24px rgba(255,216,77,.16)}
#results .record-pick small:after{content:"  •  PERFORMANCE";color:#d8ad3a;font-size:8px;font-weight:900;letter-spacing:.10em}



#results .result-feature b i{font-style:normal;font-size:10px;font-weight:800;color:#8d8d8d;margin-left:5px;letter-spacing:0}
@media(max-width:760px){#results .result-feature b i{display:block;margin:3px 0 0}}



#results .major-meet{background:linear-gradient(90deg,rgba(255,216,77,.075),rgba(255,255,255,.012))!important}
#results .major-meet:after{content:"MAJOR";position:absolute;right:22px;top:9px;color:rgba(255,216,77,.42);font-size:7px;font-weight:950;letter-spacing:.16em}
#results .major-meet b{color:#ffd84d!important}
@media(max-width:760px){#results .major-meet:after{right:15px;top:7px;font-size:6px}}



#results .event-grouped-results{display:block!important;padding:0!important}
#results .result-group{border-bottom:1px solid rgba(255,255,255,.10)}
#results .result-group:last-child{border-bottom:0}
#results .result-group-title{
  display:flex;align-items:baseline;gap:13px;
  padding:18px 25px 12px;
  background:rgba(255,255,255,.025);
  border-bottom:1px solid rgba(255,255,255,.06);
}
#results .result-group-title span{
  color:#d5aa36;font-size:8px;font-weight:950;letter-spacing:.18em;
}
#results .result-group-title strong{
  color:#fff;font-size:14px;font-weight:900;letter-spacing:.05em;
}
#results .national-group{
  background:linear-gradient(110deg,rgba(255,216,77,.075),rgba(255,255,255,.01));
  border-top:2px solid #ffd84d;
}
#results .national-group .result-group-title{
  background:linear-gradient(90deg,rgba(255,216,77,.12),transparent);
}
#results .national-group .result-group-title span,
#results .national-group .result-feature b{color:#ffd84d!important}
@media(max-width:760px){
 #results .result-group-title{padding:15px 17px 10px;gap:9px}
 #results .result-group-title strong{font-size:12px}
}



/* Gallery — actual team photographs */
#gallery .gallery-real-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:35px}
#gallery .gallery-real-item{position:relative;margin:0;overflow:hidden;min-height:0;aspect-ratio:4/3;background:#141414;border:1px solid rgba(255,255,255,.12)}
#gallery .gallery-real-item:nth-child(1),#gallery .gallery-real-item:nth-child(6){grid-column:span 2;aspect-ratio:16/9}
#gallery .gallery-real-item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s ease,filter .55s ease}
#gallery .gallery-real-item:hover img{transform:scale(1.045);filter:saturate(1.1)}
#gallery .gallery-real-item figcaption{position:absolute;bottom:0;left:0;right:0;padding:28px 17px 13px;color:white;font-size:12px;font-weight:700;letter-spacing:.07em;background:linear-gradient(transparent,rgba(0,0,0,.74));text-shadow:0 1px 4px rgba(0,0,0,.5)}
#gallery .gallery-real-item figcaption span{color:#ffd84d;font-size:10px;margin-right:11px}
@media(max-width:700px){#gallery .gallery-real-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:24px}#gallery .gallery-real-item:nth-child(1),#gallery .gallery-real-item:nth-child(6){grid-column:span 2;aspect-ratio:16/9}#gallery .gallery-real-item{aspect-ratio:4/3}#gallery .gallery-real-item figcaption{font-size:10px;padding:24px 9px 9px}}



/* Gallery: editorial photo mosaic, optimized independently for desktop/tablet/mobile */
#gallery .gallery-real-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-auto-flow:row dense;gap:clamp(9px,1.2vw,18px)!important;margin-top:clamp(22px,3vw,40px)!important;align-items:stretch;}
#gallery .gallery-real-item{grid-column:span 4!important;aspect-ratio:4/3!important;min-width:0;min-height:0;isolation:isolate;border-radius:10px;border:1px solid rgba(255,255,255,.13);box-shadow:0 10px 30px rgba(0,0,0,.16);}
#gallery .gallery-real-item:nth-child(1),#gallery .gallery-real-item:nth-child(6){grid-column:span 8!important;aspect-ratio:16/9!important;}
#gallery .gallery-real-item img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 42%;transition:transform .55s ease,filter .55s ease;}
#gallery .gallery-real-item:nth-child(1) img,#gallery .gallery-real-item:nth-child(5) img,#gallery .gallery-real-item:nth-child(8) img,#gallery .gallery-real-item:nth-child(9) img{object-position:center 38%;}
#gallery .gallery-real-item:nth-child(3) img,#gallery .gallery-real-item:nth-child(4) img{object-position:center center;}
#gallery .gallery-real-item figcaption{z-index:1;line-height:1.45;letter-spacing:.03em;}
@media(hover:hover){#gallery .gallery-real-item:hover img{transform:scale(1.045);filter:saturate(1.09);}}
@media(min-width:701px) and (max-width:1050px){
 #gallery .gallery-real-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
 #gallery .gallery-real-item{grid-column:span 3!important;aspect-ratio:4/3!important;}
 #gallery .gallery-real-item:nth-child(1),#gallery .gallery-real-item:nth-child(6){grid-column:span 6!important;aspect-ratio:16/9!important;}
}
@media(max-width:700px){
 #gallery .gallery-real-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;grid-auto-flow:row!important;}
 #gallery .gallery-real-item{grid-column:span 1!important;aspect-ratio:4/3!important;border-radius:7px;}
 #gallery .gallery-real-item:nth-child(1),#gallery .gallery-real-item:nth-child(6),#gallery .gallery-real-item:nth-child(15){grid-column:span 2!important;aspect-ratio:16/9!important;}
 #gallery .gallery-real-item figcaption{font-size:10px!important;padding:26px 10px 9px!important;}
}
@media(max-width:390px){
 #gallery .gallery-real-grid{gap:7px!important;}
 #gallery .gallery-real-item figcaption{font-size:9px!important;padding:19px 7px 7px!important;}
}
@media(prefers-reduced-motion:reduce){#gallery .gallery-real-item img{transition:none!important;}}



/* JOIN US: keep the invitation as one elegant line on desktop */
@media (min-width: 901px) {
  #contact .contact-box {grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(22px,3vw,42px);}
  #contact .contact-box > div:first-child {min-width:0;}
  #contact .contact-box h2 {font-size:clamp(28px,3vw,44px) !important;line-height:1.24 !important;letter-spacing:-.045em;white-space:nowrap !important;word-break:keep-all !important;overflow-wrap:normal !important;margin-bottom:18px;}
}
@media (min-width: 701px) and (max-width:900px) {
  #contact .contact-box h2 {font-size:clamp(27px,3.4vw,35px) !important;white-space:nowrap !important;word-break:keep-all !important;}
}
@media (max-width:700px) {
  #contact .contact-box h2 {font-size:clamp(30px,8vw,43px) !important;line-height:1.3 !important;word-break:keep-all !important;}
}



/* Running-themed visitor counter: stays inside the navigation ribbon */
header .nav .tf-visitor-bar{display:flex;align-items:center;gap:6px!important;background:linear-gradient(115deg,#fff9e8,#fff1ce)!important;border:1px solid rgba(219,148,30,.32)!important;box-shadow:0 2px 9px rgba(113,76,0,.08);padding:3px 10px 3px 6px!important;white-space:nowrap}
header .nav .tf-runner{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:32px;flex:none;color:#ef820e}
header .nav .tf-runner svg{position:relative;z-index:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.08));animation:tfRunnerBounce .58s ease-in-out infinite alternate}
header .nav .tf-runner-leg-a{transform-origin:25px 24px;animation:tfRunnerStride .58s ease-in-out infinite alternate}
header .nav .tf-runner-leg-b{transform-origin:26px 24px;animation:tfRunnerStride .58s ease-in-out infinite alternate-reverse}
header .nav .tf-runner-trail{position:absolute;left:-2px;top:21px;width:13px;height:2px;background:linear-gradient(90deg,transparent,#f9bf45);border-radius:3px;animation:tfTrail .7s ease-in-out infinite alternate}
header .nav .tf-visitor-label{font-size:9px!important;font-weight:900;letter-spacing:.055em!important;color:#456347!important}
header .nav .tf-visitor-count{font-size:15px!important;font-weight:900;color:#b46b00!important;font-variant-numeric:tabular-nums}
@keyframes tfRunnerBounce{from{transform:translateY(1px)}to{transform:translateY(-2px)}}
@keyframes tfRunnerStride{from{transform:rotate(-13deg)}to{transform:rotate(13deg)}}
@keyframes tfTrail{from{opacity:.3;transform:scaleX(.6)}to{opacity:.95;transform:scaleX(1)}}
@media(max-width:1100px){header .nav .tf-visitor-bar{gap:4px!important;padding:3px 7px 3px 3px!important}header .nav .tf-runner{width:27px;height:27px}header .nav .tf-runner svg{width:27px;height:27px}header .nav .tf-visitor-label{font-size:8px!important}header .nav .tf-visitor-count{font-size:12px!important}}
@media(max-width:430px){header .nav .tf-visitor-label{display:none}header .nav .tf-runner{width:25px;height:25px}header .nav .tf-runner svg{width:25px;height:25px}header .nav .tf-visitor-bar{margin-right:5px!important}}
@media(prefers-reduced-motion:reduce){header .nav .tf-runner svg,header .nav .tf-runner-leg-a,header .nav .tf-runner-leg-b,header .nav .tf-runner-trail{animation:none!important}}



/* Varied editorial rhythm from photo 8 onward; preserve photo content and order. */
@media (min-width:1051px){
 #gallery .gallery-real-item:nth-child(8),#gallery .gallery-real-item:nth-child(14){grid-column:span 8!important;aspect-ratio:16/9!important;}
 #gallery .gallery-real-item:nth-child(9),#gallery .gallery-real-item:nth-child(10),#gallery .gallery-real-item:nth-child(11),#gallery .gallery-real-item:nth-child(12),#gallery .gallery-real-item:nth-child(13),#gallery .gallery-real-item:nth-child(15),#gallery .gallery-real-item:nth-child(16),#gallery .gallery-real-item:nth-child(17){grid-column:span 4!important;aspect-ratio:4/3!important;}
}
@media (min-width:701px) and (max-width:1050px){
 #gallery .gallery-real-item:nth-child(8),#gallery .gallery-real-item:nth-child(14){grid-column:span 6!important;aspect-ratio:16/9!important;}
}
@media (max-width:700px){
 #gallery .gallery-real-item:nth-child(8),#gallery .gallery-real-item:nth-child(13),#gallery .gallery-real-item:nth-child(14){grid-column:span 2!important;aspect-ratio:16/9!important;}
 #gallery .gallery-real-item:nth-child(9),#gallery .gallery-real-item:nth-child(10),#gallery .gallery-real-item:nth-child(11),#gallery .gallery-real-item:nth-child(12),#gallery .gallery-real-item:nth-child(15),#gallery .gallery-real-item:nth-child(16),#gallery .gallery-real-item:nth-child(17){grid-column:span 1!important;aspect-ratio:4/3!important;}
}



/* Keep original side-by-side weekly/monthly cards and their visual styling. */
#schedule .wrap, #schedule .schedule-two-column,
#schedule .weekly-panel, #schedule .monthly-panel,
#schedule .school-schedule-section, #schedule .school-month-grid,
#schedule .monthly-pdf-card, #schedule .mobile-monthly-schedule-image {
  min-width:0 !important;
  box-sizing:border-box !important;
}
@media(min-width:901px){
  #schedule .schedule-two-column{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:24px !important;
    align-items:stretch !important;
  }
}
#schedule .school-month-grid{width:100% !important;max-width:100% !important;}
#schedule .monthly-pdf-card{max-width:100% !important;}
#schedule .mobile-monthly-schedule-image{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  overflow:hidden !important;
}
#schedule .mobile-monthly-schedule-image img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  transform:none !important;
}
#schedule .monthly-pdf-frame, #schedule .monthly-pdf-embed{
  max-width:100% !important;
}
@media(max-width:900px){
  #schedule .schedule-two-column{grid-template-columns:minmax(0,1fr) !important;}
}
@media(max-width:560px){
  #schedule .weekly-panel, #schedule .monthly-panel{max-width:100% !important;}
  #schedule .school-month-grid{grid-template-columns:minmax(0,1fr) !important;}
  #schedule .monthly-pdf-card{width:100% !important;}
}




/* 2026-11: 月間予定の重複表示を解消。PCはPDF、スマホは画像のみ。 */
@media (min-width: 561px) {
  #schedule .mobile-monthly-schedule-image { display:none !important; }
  #schedule .school-month-grid { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
  #schedule .school-month-grid > .monthly-pdf-card { min-width:0 !important; width:auto !important; overflow:hidden !important; }
  #schedule .monthly-pdf-frame { display:block !important; width:100% !important; max-width:100% !important; overflow:hidden !important; }
  #schedule .monthly-pdf-embed { display:block !important; width:100% !important; max-width:100% !important; }
}
@media (max-width: 560px) {
  #schedule .mobile-monthly-schedule-image { display:block !important; }
  #schedule .monthly-pdf-frame, #schedule .monthly-pdf-embed { display:none !important; }
  #schedule .school-month-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; }
}



/* Intro is the very first rendered element: prevent underlying site flash. */
/* Main content remains visible behind the full-screen opening; never hide it when the opening is dismissed. */ #main{visibility:visible!important}
#opening-css{isolation:isolate}



/* Give the invitation the full width of the contact panel, without clipping. */
#contact .contact-box{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"kicker kicker" "headline headline" "intro form"!important;column-gap:clamp(20px,3vw,42px)!important;row-gap:14px!important;align-items:start!important;}
#contact .contact-box>div:first-child{display:contents!important;}
#contact .contact-box .kicker{grid-area:kicker!important;}
#contact .contact-box h2{grid-area:headline!important;font-size:clamp(46px,7.3vw,112px)!important;line-height:1.08!important;letter-spacing:-.065em!important;white-space:nowrap!important;word-break:keep-all!important;max-width:100%!important;margin:0 0 10px!important;}
#contact .contact-box .lead{grid-area:intro!important;min-width:0!important;}
#contact .contact-box form{grid-area:form!important;min-width:0!important;}
@media(max-width:700px){
 #contact .contact-box{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"kicker" "headline" "intro" "form"!important;row-gap:12px!important;}
 #contact .contact-box h2{font-size:clamp(33px,8.2vw,65px)!important;letter-spacing:-.07em!important;}
}
@media(max-width:360px){#contact .contact-box h2{font-size:8vw!important;}}



#contact .join-invite-hook{display:inline-block;font-size:clamp(19px,2vw,28px);font-weight:900;line-height:1.45;color:#ad4b0a;margin-bottom:12px;letter-spacing:.01em}
#contact .contact-box .lead{line-height:2.05;font-weight:600;overflow-wrap:anywhere}
#contact .contact-box .lead strong:not(.join-invite-hook){color:#9c4207;font-weight:900}
@media(max-width:700px){#contact .join-invite-hook{font-size:clamp(18px,5vw,23px)}#contact .contact-box .lead{line-height:1.9}}



/* RESULTS: カード左端の黄色ラインを全選手で統一（配置・文字組みは元のまま） */
#results .score-row.result-feature::before,
#results .score-row.result-feature.club-result::before {
  width:3px !important;
  opacity:1 !important;
  background:linear-gradient(#ffd84d,#ef7d20) !important;
}



/* RESULT section headers: muted metallic gold from the left edge. */
#results .result-group-title,
#results .national-group .result-group-title {
  background:linear-gradient(115deg,#a77928 0%,#d6b66b 38%,#f0d993 55%,#b98c39 100%) !important;
  border-left:3px solid #a77928 !important;
  box-sizing:border-box !important;
  border-bottom-color:rgba(0,0,0,.12) !important;
}
#results .result-group-title strong,
#results .result-group-title span,
#results .national-group .result-group-title span {color:#222 !important;}



/* 濱田選手の風速表示をタイムの下に置き、記録の右端を他選手とそろえる */
#results .score-row.record-pick:has(b i) > b {text-align:right;justify-self:end;white-space:nowrap;line-height:1.15;}
#results .score-row.record-pick:has(b i) > b i {display:block;margin-top:4px;font-size:11px;line-height:1.2;}



/* Team identity first, then a bold, legible invitation. */
#contact .contact-box h2{white-space:normal!important;overflow:visible!important;word-break:keep-all!important;line-height:1.12!important;max-width:100%!important;}
#contact .join-team-name{display:block!important;font-size:clamp(25px,4.3vw,66px)!important;line-height:1.2!important;letter-spacing:-.045em!important;white-space:normal!important;overflow-wrap:normal!important;color:#b97516!important;margin-bottom:8px!important;font-weight:900!important;}
#contact .join-main-message{display:block!important;font-size:clamp(42px,7vw,108px)!important;line-height:1.12!important;letter-spacing:-.07em!important;white-space:nowrap!important;font-weight:900!important;}
@media(max-width:700px){#contact .join-team-name{font-size:clamp(22px,6.1vw,39px)!important;}#contact .join-main-message{font-size:clamp(34px,9vw,65px)!important;}}
@media(max-width:360px){#contact .join-main-message{font-size:8.7vw!important;}}



/* JOIN US: original design retained; photos placed only in available spaces */
#contact .contact-box{position:relative!important;grid-template-areas:"kicker kicker" "headline headline" "intro form" "people form"!important;row-gap:12px!important;}
#contact .join-stadium-photo{grid-area:headline!important;justify-self:end!important;align-self:start!important;position:relative!important;z-index:2!important;width:clamp(130px,18%,195px)!important;max-width:20%!important;margin:0!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 8px 24px rgba(40,60,70,.16)!important;aspect-ratio:4/3!important;}
#contact .join-stadium-photo img,#contact .join-people-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
#contact .contact-box h2{padding-right:clamp(140px,21%,215px)!important;position:relative!important;z-index:1!important;min-width:0!important;}
#contact .join-team-name{font-size:clamp(24px,3.7vw,51px)!important;white-space:nowrap!important;}
#contact .join-main-message{font-size:clamp(36px,5.5vw,77px)!important;}
#contact .join-people-photo{grid-area:people!important;justify-self:start!important;align-self:start!important;width:min(100%,310px)!important;aspect-ratio:4/3!important;margin:4px 0 0!important;border-radius:15px!important;overflow:hidden!important;box-shadow:0 9px 25px rgba(40,60,70,.14)!important;}
#contact .contact-box .lead{margin-bottom:0!important;}
@media(max-width:900px){
 #contact .contact-box{grid-template-areas:"kicker" "headline" "intro" "people" "form"!important;grid-template-columns:minmax(0,1fr)!important;}
 #contact .join-stadium-photo{width:clamp(100px,28%,160px)!important;max-width:28%!important;}
 #contact .contact-box h2{padding-right:30%!important;}
 #contact .join-team-name{font-size:clamp(18px,4.6vw,35px)!important;}
 #contact .join-main-message{font-size:clamp(26px,6.5vw,52px)!important;white-space:normal!important;}
 #contact .join-people-photo{width:min(72%,310px)!important;}
}
@media(max-width:500px){
 #contact .join-stadium-photo{width:27%!important;max-width:27%!important;aspect-ratio:4/3!important;}
 #contact .contact-box h2{padding-right:29%!important;}
 #contact .join-team-name{font-size:clamp(15px,4.1vw,21px)!important;}
 #contact .join-main-message{font-size:clamp(24px,6.4vw,36px)!important;}
 #contact .join-people-photo{width:min(86%,290px)!important;}
}



/* Only reposition the two existing JOIN US photos and lower the form. */
@media (min-width:901px){
 #contact .contact-box{position:relative!important;grid-template-columns:1fr 1fr!important;gap:42px!important;align-items:start!important;}
 #contact .contact-box > div:first-child{min-width:0!important;position:relative!important;}
 #contact .join-stadium-photo{position:absolute!important;top:0!important;left:calc(100% + 42px)!important;right:auto!important;width:calc(100% + 0px)!important;max-width:none!important;height:190px!important;aspect-ratio:auto!important;margin:0!important;z-index:3!important;}
 #contact .join-stadium-photo img{object-position:center 53%!important;}
 #contact .contact-box h2{padding-right:0!important;}
 #contact .contact-box > form.form{margin-top:218px!important;align-self:start!important;}
 #contact .join-people-photo{margin-top:20px!important;}
}
@media (min-width:901px) and (max-width:1120px){
 #contact .join-stadium-photo{height:165px!important;}
 #contact .contact-box > form.form{margin-top:190px!important;}
 #contact .join-team-name{font-size:clamp(24px,3.3vw,43px)!important;}
 #contact .join-main-message{font-size:clamp(36px,4.7vw,60px)!important;}
}
@media (max-width:900px){
 #contact .contact-box > form.form{margin-top:18px!important;}
 #contact .join-stadium-photo{width:min(45%,260px)!important;max-width:45%!important;}
 #contact .contact-box h2{padding-right:0!important;}
}
@media (max-width:500px){
 #contact .join-stadium-photo{width:min(60%,240px)!important;max-width:60%!important;margin:14px 0!important;}
 #contact .contact-box h2{padding-right:0!important;}
}



/* Enlarge only the two-person photograph to the width of the invitation text. */
#contact .join-people-photo{width:100%!important;max-width:100%!important;aspect-ratio:1.7!important;justify-self:stretch!important;margin-top:20px!important;}
#contact .join-people-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 46%!important;}
@media(max-width:900px){#contact .join-people-photo{width:100%!important;max-width:100%!important;aspect-ratio:1.7!important;}}
@media(max-width:500px){#contact .join-people-photo{aspect-ratio:1.45!important;margin-top:14px!important;}}



/* Stadium photo occupies the unused upper-right area, never beyond the card. */
@media (min-width:901px){
 #contact .contact-box{position:relative!important;}
 #contact .contact-box > div:first-child{position:static!important;}
 #contact .join-stadium-photo{
  position:absolute!important;
  left:auto!important;
  right:48px!important;
  top:48px!important;
  width:calc((100% - 138px)/2)!important;
  max-width:none!important;
  height:190px!important;
  margin:0!important;
  box-sizing:border-box!important;
 }
 #contact .contact-box > form.form{margin-top:218px!important;}
}
@media (min-width:901px) and (max-width:1120px){
 #contact .join-stadium-photo{height:165px!important;}
 #contact .contact-box > form.form{margin-top:190px!important;}
}



/* Preserve original stadium photograph proportions (1100 x 825, 4:3). */
#contact .join-stadium-photo{aspect-ratio:4/3!important;height:auto!important;}
#contact .join-stadium-photo img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;}
@media(min-width:901px){
 #contact .join-stadium-photo{width:calc((100% - 138px)/2)!important;right:48px!important;top:48px!important;}
 #contact .contact-box > form.form{margin-top:clamp(290px,34vw,430px)!important;}
}
@media(max-width:900px){
 #contact .join-stadium-photo{height:auto!important;aspect-ratio:4/3!important;}
 #contact .contact-box > form.form{margin-top:18px!important;}
}



/* Close the gaps without changing the existing two-column JOIN US design. */
#contact .contact-box > div:first-child .lead{margin-bottom:0!important;}
#contact .join-people-photo{margin-top:0!important;}
@media(min-width:901px){
  /* Stadium is 4:3; place the form directly beneath its true rendered height. */
  #contact .contact-box > form.form{
    margin-top:calc((min(1180px, 100vw - 32px) - 138px) * .375 + 8px)!important;
  }
}
@media(max-width:900px){
  #contact .join-people-photo{margin-top:0!important;}
  #contact .contact-box > form.form{margin-top:8px!important;}
}



/* Keep original contact card, colors and content; eliminate grid-created empty rows. */
@media (min-width:901px){
 #contact .contact-box{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:none!important;column-gap:42px!important;row-gap:0!important;align-items:start!important;position:relative!important;}
 #contact .contact-box > div:first-child{display:block!important;grid-area:auto!important;grid-column:1!important;grid-row:1!important;position:static!important;min-width:0!important;}
 #contact .contact-box .kicker,#contact .contact-box h2,#contact .contact-box .lead{grid-area:auto!important;}
 #contact .contact-box h2{padding:0!important;margin:8px 0 12px!important;}
 #contact .join-team-name{font-size:clamp(24px,3.3vw,45px)!important;white-space:normal!important;}
 #contact .join-main-message{font-size:clamp(36px,4.6vw,62px)!important;white-space:nowrap!important;}
 #contact .contact-box .lead{margin:0!important;line-height:1.9!important;}
 #contact .join-people-photo{display:block!important;position:static!important;grid-area:auto!important;width:100%!important;max-width:100%!important;aspect-ratio:1.7!important;margin:8px 0 0!important;}
 #contact .join-stadium-photo{position:absolute!important;grid-area:auto!important;left:auto!important;right:48px!important;top:48px!important;width:calc((100% - 138px)/2)!important;max-width:none!important;aspect-ratio:4/3!important;height:auto!important;margin:0!important;}
 #contact .join-stadium-photo img{width:100%!important;height:auto!important;object-fit:contain!important;}
 #contact .contact-box > form.form{grid-area:auto!important;grid-column:2!important;grid-row:1!important;align-self:start!important;margin:calc((min(1180px, 100vw - 32px) - 138px) * .375 + 8px) 0 0!important;}
}
@media(max-width:900px){
 #contact .contact-box{display:block!important;}
 #contact .contact-box > div:first-child{display:block!important;position:static!important;}
 #contact .contact-box .kicker,#contact .contact-box h2,#contact .contact-box .lead{grid-area:auto!important;}
 #contact .contact-box h2{padding:0!important;margin:8px 0 10px!important;}
 #contact .join-stadium-photo{position:static!important;display:block!important;width:min(100%,340px)!important;max-width:100%!important;aspect-ratio:4/3!important;height:auto!important;margin:8px 0!important;}
 #contact .join-stadium-photo img{height:auto!important;object-fit:contain!important;}
 #contact .contact-box .lead{margin:0!important;}
 #contact .join-people-photo{position:static!important;width:100%!important;max-width:100%!important;aspect-ratio:1.7!important;margin:8px 0!important;}
 #contact .contact-box > form.form{display:grid!important;grid-area:auto!important;margin:8px 0 0!important;}
}



/* Keep the full original 4:3 two-person photo, without stretching or cropping. */
#contact .join-people-photo{aspect-ratio:4/3!important;height:auto!important;overflow:hidden!important;}
#contact .join-people-photo img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:contain!important;object-position:center!important;}
@media(max-width:900px){#contact .join-people-photo{aspect-ratio:4/3!important;}#contact .join-people-photo img{height:auto!important;aspect-ratio:4/3!important;object-fit:contain!important;}}



/* スマホでオープニングの操作ボタンを確実にタップ可能にする */
#opening-css .css-skip{z-index:100!important;pointer-events:auto!important;touch-action:manipulation;}
#opening-css .mobile-opening-enter{z-index:101!important;pointer-events:auto!important;touch-action:manipulation;}
#opening-css .mobile-opening-finish{pointer-events:none!important;}
#opening-css .mobile-opening-team{pointer-events:none!important;}
@media(max-width:560px){#opening-css .css-skip{top:max(20px,env(safe-area-inset-top))!important;right:max(20px,env(safe-area-inset-right))!important;}}



/* Explicitly dismiss the opening, overriding its timed CSS animations. */
#opening-css.opening-dismissed{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;animation:none!important}
#opening-css .css-skip,#opening-css .css-enter,#opening-css .mobile-opening-enter{pointer-events:auto!important;touch-action:manipulation;cursor:pointer;z-index:100!important}



/* Independent touch controls: outside the non-interactive mobile finish layer. */
#opening-css .tf-open-control{display:none}
@media(max-width:560px){
 #opening-css .css-skip,#opening-css .css-enter,#opening-css .mobile-opening-enter{display:none!important}
 #opening-css .tf-open-control{display:flex!important;align-items:center;justify-content:center;position:fixed!important;z-index:2147483647!important;pointer-events:auto!important;touch-action:manipulation!important;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;text-decoration:none}
 #opening-css #tf-skip-reliable{top:calc(18px + env(safe-area-inset-top,0px));right:calc(18px + env(safe-area-inset-right,0px));padding:11px 19px;border:1px solid #ffffff80;border-radius:999px;color:white;background:#252525;font-size:13px;font-weight:900}
 #opening-css #tf-enter-reliable{bottom:calc(18px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);min-width:125px;min-height:44px;padding:12px 24px;border:0;border-radius:999px;color:#111;background:linear-gradient(90deg,#ffd84d,#ff7a00);font-size:13px;font-weight:900;letter-spacing:.12em;box-shadow:0 12px 35px #ff7a0055;opacity:0;animation:tfEnterAppear .3s ease 5.3s forwards}
 @keyframes tfEnterAppear{to{opacity:1}}
}
#opening-css.tf-dismiss-now{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;animation:none!important}



/* Native label/checkbox interaction: works even when scripts are blocked in a local HTML viewer. */
#tf-opening-dismiss-toggle{position:fixed;left:-100vw;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
#tf-opening-dismiss-toggle:checked ~ #opening-css{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;animation:none!important}
#opening-css .tf-open-control{display:flex!important;align-items:center;justify-content:center;position:fixed!important;z-index:2147483647!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-user-select:none;user-select:none;cursor:pointer;box-sizing:border-box;text-decoration:none}
#opening-css #tf-skip-reliable{top:calc(18px + env(safe-area-inset-top,0px));right:calc(18px + env(safe-area-inset-right,0px));padding:11px 19px;border:1px solid #ffffff80;border-radius:999px;color:#fff;background:#252525;font-size:13px;font-weight:900}
#opening-css #tf-enter-reliable{bottom:calc(18px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);min-width:125px;min-height:44px;padding:12px 24px;border:0;border-radius:999px;color:#111;background:linear-gradient(90deg,#ffd84d,#ff7a00);font-size:13px;font-weight:900;letter-spacing:.12em;box-shadow:0 12px 35px #ff7a0055;opacity:1;animation:none!important}
/* Hide the legacy controls to prevent duplicate clickable targets. */
#opening-css .css-skip,#opening-css .css-enter,#opening-css .mobile-opening-enter{display:none!important}
#tf-opening-dismiss-toggle:checked ~ #main{display:block!important;visibility:visible!important;opacity:1!important}
#tf-opening-dismiss-toggle:checked ~ #opening-css{display:none!important;animation:none!important}



/* Sunlight, not a yellow disk: broad diffused rays gradually fill the screen. */
#opening-css .sunrise-transition{
 display:block!important;position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;border-radius:0!important;
 z-index:80!important;pointer-events:none!important;overflow:hidden!important;
 opacity:0!important;transform:none!important;box-shadow:none!important;
 background:
  radial-gradient(ellipse 72% 85% at 50% 55%,rgba(255,255,244,.97) 0%,rgba(255,246,178,.76) 26%,rgba(255,209,85,.33) 57%,transparent 100%),
  repeating-conic-gradient(from 0deg at 50% 55%,rgba(255,230,130,.22) 0deg,rgba(255,240,180,.03) 11deg,transparent 22deg,rgba(255,230,130,.18) 32deg),
  radial-gradient(ellipse 130% 110% at 50% 55%,rgba(255,193,51,.48),transparent 82%)!important;
 animation:tfSunlightFill 8s ease-in-out 8.3s both!important;
}
#opening-css .sunrise-transition::before{
 content:"";position:absolute;inset:-50%;border-radius:50%;
 background:radial-gradient(ellipse at center,rgba(255,255,249,.98) 0%,rgba(255,250,200,.8) 20%,rgba(255,215,96,.38) 48%,transparent 75%);
 filter:blur(36px);opacity:0;transform:scale(.18);
 animation:tfSunCore 8s ease-in-out 8.3s both!important;
}
#opening-css .sunrise-transition::after{
 content:"";position:absolute;inset:0;
 background:linear-gradient(125deg,rgba(255,255,250,.96),rgba(255,244,195,.97) 48%,rgba(255,255,250,.98));
 opacity:0;animation:tfSunWhiteout 8s ease-in-out 8.3s both!important;
}
@keyframes tfSunlightFill{
 0%{opacity:0;filter:brightness(.7)}
 12%{opacity:.18;filter:brightness(.85)}
 38%{opacity:.5;filter:brightness(1)}
 68%{opacity:.85;filter:brightness(1.15)}
 100%{opacity:1;filter:brightness(1.25)}
}
@keyframes tfSunCore{
 0%{opacity:0;transform:scale(.18)}
 15%{opacity:.2;transform:scale(.3)}
 45%{opacity:.6;transform:scale(.65)}
 80%{opacity:.9;transform:scale(1.1)}
 100%{opacity:1;transform:scale(1.45)}
}
@keyframes tfSunWhiteout{
 0%,70%{opacity:0}
 90%{opacity:.65}
 100%{opacity:1}
}
/* Finish the light wash, then reveal the real site. */
#opening-css{animation:openingAway .65s ease 16.25s forwards!important}
@media(min-width:561px){
 #opening-css .sunrise-transition,
 #opening-css .sunrise-transition::before,
 #opening-css .sunrise-transition::after{animation-delay:11.4s!important}
 #opening-css{animation:openingAway .65s ease 19.35s forwards!important}
}
/* Skip and Enter remain above the rays and retain CSS-only dismissal. */
#opening-css .tf-open-control{z-index:2147483647!important}
#tf-opening-dismiss-toggle:checked ~ #opening-css{display:none!important;animation:none!important}



/* Black hold extended by 1.5 seconds. Yellow softly appears, then immediately
   crossfades into the homepage without a saturated-yellow hold. */
#opening-css{animation:openingAway 1.15s ease-in-out 13.25s forwards!important;}
#opening-css .sunrise-transition{display:none!important;}
#opening-css .tf-sunlight-stage{
 display:block!important;position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;z-index:110!important;
 pointer-events:none!important;overflow:hidden!important;
 border-radius:0!important;transform:none!important;filter:none!important;
 background:#ffdf53!important;
 opacity:0;
 animation:tfYellowWash 3.15s cubic-bezier(.42,0,.58,1) 10.5s both!important;
}
#opening-css .tf-sunlight-stage::before,
#opening-css .tf-sunlight-stage::after{content:none!important;display:none!important;animation:none!important;}
@keyframes tfYellowWash{
 0%{opacity:0}
 100%{opacity:.78}
}
#opening-css .tf-open-control{z-index:2147483647!important;}
#tf-opening-dismiss-toggle:checked ~ #opening-css{display:none!important;animation:none!important;}



/* Keep the existing entrance and black/yellow timing; fade the brand and
   both usable controls together at the later motto fade timing (10.6s), while retaining the existing yellow transition. */
@keyframes tfBrandAndControlsOut {
  0% { opacity:1; filter:blur(0); }
  100% { opacity:0; filter:blur(3px); }
}
#opening-css #tf-skip-reliable,
#opening-css #tf-enter-reliable {
  opacity:1;
  animation:tfBrandAndControlsOut 1.1s ease-in-out 10.60s forwards!important;
}
/* Team text: preserve its existing entrance, then match the controls' exit. */
@media (max-width:560px) {
  #opening-css .mobile-opening-team {
    animation:mobileTeamNatural 1.05s cubic-bezier(.22,.7,.2,1) 4.35s forwards,
              tfBrandAndControlsOut 1.1s ease-in-out 10.60s forwards!important;
  }
}
@media (min-width:561px) {
  #opening-css .opening-logo-css {
    animation:logoCss 1s ease 8.1s forwards,
              tfBrandAndControlsOut 1.1s ease-in-out 10.60s forwards!important;
  }
}



@media (max-width:800px){
  header .nav{position:relative!important;isolation:isolate;}
  header .nav .menu{position:relative!important;z-index:1003!important;cursor:pointer!important;touch-action:manipulation!important;pointer-events:auto!important;flex-shrink:0!important;}
  header .nav .tf-visitor-bar{position:relative!important;z-index:1!important;pointer-events:none!important;}
  header .nav .links{z-index:1002!important;max-height:calc(100dvh - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch;}
  header .nav .links.open{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
}

/* Monthly practice calendar */
.calendar-controls{display:flex;align-items:center;justify-content:center;gap:22px;margin:18px 0}.calendar-controls button{border:1px solid #e7c966;background:#fff9dc;color:#785500;border-radius:12px;width:40px;height:40px;font-size:27px;cursor:pointer}.calendar-controls strong{min-width:135px;text-align:center;font-size:1.25rem}.inami-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.inami-calendar .cal-weekday{text-align:center;padding:9px 0;background:#fff2c3;border-radius:7px;font-weight:700;font-size:.82rem}.inami-calendar .cal-day{min-width:0;min-height:83px;border:1px solid #e6dfc9;border-radius:9px;padding:7px 4px;background:#fff}.inami-calendar .cal-day.empty{background:transparent;border-color:transparent}.inami-calendar .cal-num{display:block;font-weight:700;font-size:.85rem;margin-bottom:6px}.inami-calendar .cal-time{display:block;text-align:center;background:#fff1ba;border-radius:5px;padding:5px 2px;font-size:.73rem;font-weight:700;overflow-wrap:anywhere;line-height:1.45}.inami-calendar .cal-rest{background:#f0f0f0;color:#666}.inami-calendar .cal-day:nth-child(7n+1) .cal-num{color:#c94b40}.inami-calendar .cal-day:nth-child(7n) .cal-num{color:#3575b8}.calendar-note{font-size:.82rem;line-height:1.7;color:#777;margin-top:14px}@media(max-width:600px){.inami-calendar{gap:3px}.inami-calendar .cal-day{min-height:65px;padding:4px 2px}.inami-calendar .cal-time{font-size:clamp(8px,2.1vw,11px);padding:3px 1px}.inami-calendar .cal-num{font-size:11px;margin-bottom:4px}.inami-calendar .cal-weekday{font-size:11px;padding:7px 0}}

/* 2026-11-23: Restore weekly schedule alongside the unified monthly calendar. */
#schedule.restored-practice-schedule .schedule-two-column{display:grid!important;grid-template-columns:minmax(0,0.85fr) minmax(0,1.35fr)!important;gap:22px!important;align-items:start!important;}
#schedule.restored-practice-schedule .weekly-panel,#schedule.restored-practice-schedule .monthly-panel{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;position:relative!important;}
#schedule.restored-practice-schedule .calendar-controls{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:16px 0 18px!important;gap:18px!important;}
#schedule.restored-practice-schedule .calendar-controls button{flex:0 0 40px;}
#schedule.restored-practice-schedule .inami-calendar{position:static!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;width:100%!important;gap:4px!important;}
#schedule.restored-practice-schedule .cal-day{min-width:0!important;min-height:76px!important;}
#schedule.restored-practice-schedule .cal-time{font-size:clamp(9px,.85vw,12px)!important;overflow-wrap:anywhere!important;}
#schedule.restored-practice-schedule .calendar-note{position:static!important;opacity:1!important;}
@media(max-width:1050px){#schedule.restored-practice-schedule .schedule-two-column{grid-template-columns:minmax(0,1fr)!important;}#schedule.restored-practice-schedule .cal-time{font-size:clamp(10px,1.5vw,13px)!important;}}
@media(max-width:600px){#schedule.restored-practice-schedule .cal-day{min-height:63px!important;padding:4px 2px!important;}#schedule.restored-practice-schedule .cal-time{font-size:clamp(8px,2vw,11px)!important;}}



/* Gallery: original asymmetric layout, modestly scaled down within page. */
#gallery .wrap{min-width:0;max-width:100%;box-sizing:border-box;}
#gallery .gallery-real-grid{
 width:92%!important;max-width:1080px!important;margin-left:auto!important;margin-right:auto!important;
 min-width:0!important;box-sizing:border-box!important;
 grid-template-columns:repeat(12,minmax(0,1fr))!important;
}
#gallery .gallery-real-item{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#gallery .gallery-real-item img{max-width:100%!important;}
@media(min-width:701px) and (max-width:1050px){
 #gallery .gallery-real-grid{width:94%!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;}
}
@media(max-width:700px){
 #gallery .gallery-real-grid{width:96%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
