.studioevent-wrap{
  --bg:#f3f7ff;
  --card:#ffffff;
  --accent:#0ea5e9;
  --accent-strong:#0369a1;
  --muted:#5b6472;
  max-width:min(1100px,94vw);
  margin:0 auto;
  padding:56px clamp(20px,4vw,40px) 88px;
  color:#0f172a;
  font-family:ui-sans-serif,system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic","Meiryo",sans-serif;
  background:linear-gradient(150deg, rgba(14,165,233,.16), rgba(14,165,233,0) 60%), var(--bg);
  box-sizing:border-box;
}

/* Prevent form controls from overflowing their container due to padding/border */
.studioevent-wrap *,
.studioevent-wrap *::before,
.studioevent-wrap *::after{
  box-sizing:border-box;
}
.studioevent-hero{
  text-align:center;
  margin-bottom:40px;
}
.studioevent-kicker{
  display:inline-block;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.82rem;
  background:rgba(3,105,161,.12);
  color:var(--accent-strong);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:14px;
}
.studioevent-hero h1{
  font-size:clamp(28px,5.5vw,44px);
  margin:0 0 12px;
}
.studioevent-hero p{
  margin:0 auto;
  max-width:720px;
  line-height:1.8;
  color:var(--muted);
}
.studioevent-spotlight{
  display:grid;
  gap:22px;
  margin-bottom:48px;
}
@media(min-width:900px){
  .studioevent-spotlight{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.studioevent-card{
  background:var(--card);
  border-radius:20px;
  padding:26px 28px;
  box-shadow:0 20px 40px rgba(15,23,42,.1);
  border:1px solid rgba(3,105,161,.14);
}
.studioevent-card h2{
  margin-top:0;
  margin-bottom:12px;
  font-size:clamp(22px,3.4vw,28px);
  color:var(--accent-strong);
}
.studioevent-card p{
  margin:0 0 14px;
  color:#1f2937;
  line-height:1.7;
}
.studioevent-card ul{
  margin:0;
  padding-left:1.1em;
  color:var(--muted);
}
.studioevent-card li{
  margin:.4em 0;
}
.studioevent-form{
  background:var(--card);
  border-radius:24px;
  padding:34px clamp(18px,4.4vw,46px);
  box-shadow:0 24px 48px rgba(15,23,42,.12);
  border:1px solid rgba(3,105,161,.12);
  display:grid;
  gap:28px;
}
.studioevent-form fieldset{
  border:none;
  margin:0;
  padding:0;
}
.studioevent-form legend{
  font-weight:700;
  font-size:1.1rem;
  margin-bottom:14px;
}
.studioevent-interest{
  display:grid;
  gap:16px;
}
.studioevent-option{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:rgba(14,165,233,.08);
  border:1px solid rgba(14,165,233,.18);
  border-radius:16px;
  padding:14px 16px;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.studioevent-option:hover{
  background:rgba(14,165,233,.12);
  border-color:rgba(14,165,233,.32);
  box-shadow:0 12px 26px rgba(14,165,233,.2);
}
.studioevent-option input{
  margin-top:6px;
  transform:scale(1.15);
  accent-color:var(--accent);
}
.studioevent-option strong{
  display:block;
  font-size:1.02rem;
}
.studioevent-option small{
  color:var(--muted);
}
.studioevent-plan-grid{
  display:grid;
  gap:18px;
}
@media(min-width:920px){
  .studioevent-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
.studioevent-plan{
  position:relative;
  display:block;
}
.studioevent-plan input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.studioevent-plan-card{
  background:rgba(14,165,233,.08);
  border:1px solid rgba(14,165,233,.16);
  border-radius:18px;
  padding:20px 22px;
  display:grid;
  gap:10px;
  min-height:170px;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
  cursor:pointer;
}
.studioevent-plan:hover .studioevent-plan-card{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(14,165,233,.2);
  border-color:rgba(14,165,233,.34);
}
.studioevent-plan input:checked + .studioevent-plan-card{
  background:linear-gradient(135deg, rgba(14,165,233,.24), rgba(3,105,161,.16));
  border:2px solid rgba(3,105,161,.55);
  box-shadow:0 24px 46px rgba(3,105,161,.28);
}
.plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(3,105,161,.12);
  color:var(--accent-strong);
  font-weight:700;
  font-size:1.1rem;
}
.studioevent-plan-card h3{
  margin:0;
  color:var(--accent-strong);
  font-size:clamp(18px,3vw,22px);
}
.studioevent-plan-card p{
  margin:0;
  color:#1f2937;
  line-height:1.6;
}
.studioevent-fields p{
  margin:0 0 12px;
}
.studioevent-form input[type="text"],
.studioevent-form input[type="email"],
.studioevent-form input[type="tel"],
.studioevent-form input[type="number"],
.studioevent-form input[type="date"],
.studioevent-form select,
.studioevent-form textarea{
  width:100%;
  max-width:100%;
  padding:12px;
  border:1px solid rgba(94,106,128,.28);
  border-radius:12px;
  font-size:1rem;
  background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.studioevent-form input:focus,
.studioevent-form select:focus,
.studioevent-form textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(14,165,233,.2);
}
.studioevent-form textarea{
  min-height:180px;
  resize:vertical;
}
.studioevent-submit{
  text-align:center;
  margin-top:12px;
}
.studioevent-form button{
  background:linear-gradient(135deg,var(--accent-strong),var(--accent));
  color:#fff;
  border:none;
  border-radius:16px;
  padding:16px 24px;
  font-size:1.05rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.studioevent-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 20px 42px rgba(14,165,233,.26);
}
.studioevent-form button:active{
  transform:translateY(0);
  box-shadow:0 14px 30px rgba(14,165,233,.22);
}
.studioevent-message{
  text-align:center;
  font-weight:600;
  margin-top:16px;
}
@media(max-width:620px){
  .studioevent-option{flex-direction:column;}
  .studioevent-plan-card{padding:18px;}
  .studioevent-plan-grid{grid-template-columns:1fr;}
}

/* --- Admin gallery (images/mito) --- */
.studioevent-admin{
  margin-top:34px;
  background:var(--card);
  border-radius:24px;
  padding:26px clamp(18px,4.4vw,46px);
  box-shadow:0 24px 48px rgba(15,23,42,.12);
  border:1px solid rgba(3,105,161,.12);
}
.studioevent-admin h2{
  margin:0 0 14px;
  font-size:1.1rem;
  color:var(--accent-strong);
}
.studioevent-admin-form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.studioevent-admin-form label{
  flex:1 1 240px;
  min-width:min(420px,100%);
  font-weight:600;
}
.studioevent-admin-form input[type="password"]{
  width:100%;
  max-width:100%;
  padding:12px;
  border:1px solid rgba(94,106,128,.28);
  border-radius:12px;
  font-size:1rem;
  background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.studioevent-admin-form input[type="password"]:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(14,165,233,.2);
}
.studioevent-admin-form button{
  background:linear-gradient(135deg,var(--accent-strong),var(--accent));
  color:#fff;
  border:none;
  border-radius:14px;
  padding:12px 18px;
  font-size:0.98rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.studioevent-admin-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 20px 42px rgba(14,165,233,.26);
}
.studioevent-admin-form button:active{
  transform:translateY(0);
  box-shadow:0 14px 30px rgba(14,165,233,.22);
}
.studioevent-admin-error{
  margin-top:12px;
  color:#b00020;
  font-weight:700;
}
.studioevent-gallery{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:12px;
}
.studioevent-gallery-item{
  display:block;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(3,105,161,.16);
  box-shadow:0 14px 28px rgba(15,23,42,.12);
}
.studioevent-gallery-item img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio:4/3;
  object-fit:cover;
  transform:scale(1);
  transition:transform .2s ease;
}
.studioevent-gallery-item:hover img{
  transform:scale(1.03);
}

/* --- Gallery modal --- */
.studioevent-gallery-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:24px;
}
.studioevent-gallery-modal[hidden]{
  display:none;
}
.studioevent-gallery-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.72);
  backdrop-filter:blur(2px);
}
.studioevent-gallery-modal__dialog{
  position:relative;
  width:min(920px, 94vw);
  max-height:min(86vh, 860px);
  overflow:auto;
  background:var(--card);
  border-radius:22px;
  border:1px solid rgba(3,105,161,.18);
  box-shadow:0 30px 70px rgba(15,23,42,.35);
  padding:18px clamp(16px,3.2vw,26px) 22px;
  z-index:1;
}
.studioevent-gallery-modal__close{
  position:sticky;
  top:12px;
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(94,106,128,.28);
  background:#fff;
  color:#0f172a;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.studioevent-gallery-modal__close:hover{
  box-shadow:0 12px 26px rgba(15,23,42,.14);
  border-color:rgba(14,165,233,.42);
}
.studioevent-gallery-modal__figure{
  margin:8px 0 0;
  display:grid;
  gap:14px;
  position:relative;
}
.studioevent-gallery-modal__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid rgba(94,106,128,.28);
  background:rgba(255,255,255,.92);
  color:var(--accent-strong);
  font-weight:900;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  box-shadow:0 14px 28px rgba(15,23,42,.18);
  user-select:none;
}
.studioevent-gallery-modal__nav[hidden]{
  display:none;
}
.studioevent-gallery-modal__nav:hover{
  border-color:rgba(14,165,233,.42);
  box-shadow:0 18px 34px rgba(15,23,42,.22);
}
.studioevent-gallery-modal__nav:active{
  transform:translateY(-50%) scale(0.98);
}
.studioevent-gallery-modal__nav--prev{
  left:12px;
}
.studioevent-gallery-modal__nav--next{
  right:12px;
}
.studioevent-gallery-modal__img{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
  border:1px solid rgba(3,105,161,.14);
  box-shadow:0 16px 34px rgba(15,23,42,.16);
}
.studioevent-gallery-modal__caption{
  color:#1f2937;
  font-weight:700;
  line-height:1.6;
}

@media(max-width:620px){
  .studioevent-gallery-modal{
    padding:16px;
  }
  .studioevent-gallery-modal__nav{
    width:44px;
    height:44px;
    font-size:14px;
  }
  .studioevent-gallery-modal__nav--prev{
    left:8px;
  }
  .studioevent-gallery-modal__nav--next{
    right:8px;
  }
}
