:root{
  --blue:#0b5bd3;
  --blue2:#0a4db8;
  --ink:#0b1320;
  --muted:#5b667a;
  --bg:#f6f9ff;
  --card:#ffffff;
  --border:rgba(10,40,80,.12);
  --shadow:0 18px 50px rgba(11,19,32,.10);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#ffffff 0%, var(--bg) 100%);
  line-height:1.7;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(1120px, 92vw); margin:0 auto}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:12px; top:12px; width:auto; height:auto;
  background:var(--card); padding:10px 12px; border-radius:12px; box-shadow:var(--shadow);
  z-index:9999;
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255,255,255,.86);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{display:flex; align-items:baseline; gap:10px; font-weight:700}
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:14px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  letter-spacing:.08em;
}
.brand-sub{font-size:0.92rem;white-space:nowrap;}
.brand.foot .brand-mark{width:40px;height:40px;border-radius:14px}

.site-nav{
  display:flex; align-items:center; gap:12px; font-weight:600;
  font-size:0.88rem;
}
.site-nav a{
  color:var(--ink);
  padding:6px 8px;
  border-radius:12px;
  white-space:nowrap;
  flex-shrink:0;
}
.site-nav a:hover{background:rgba(11,91,211,.08)}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:14px;
  padding:10px 10px;
  box-shadow:none;
}
.nav-toggle-bar{
  width:20px; height:2px; background:var(--ink);
  display:block; margin:4px 0; border-radius:2px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:14px;
  border:1px solid transparent;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  box-shadow:0 12px 30px rgba(11,91,211,.25);
}
.btn-primary:hover{filter:saturate(1.05) brightness(1.02)}
.btn-ghost{
  background:rgba(255,255,255,.8);
  border-color:var(--border);
}
.btn-ghost:hover{background:#fff}

/* Hero */
.hero{
  padding:42px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:center;
}
.pill{
  display:inline-flex;
  background:rgba(11,91,211,.10);
  color:var(--blue2);
  font-weight:700;
  border:1px solid rgba(11,91,211,.18);
  padding:8px 12px;
  border-radius:999px;
  margin:0 0 14px;
}
.hero h1{
  font-size:clamp(28px, 3.2vw, 44px);
  line-height:1.18;
  margin:0 0 12px;
  letter-spacing:-.02em;
}
.accent{color:var(--blue)}
.lead{color:var(--muted); font-size:1.05rem; margin:0 0 18px}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0}
.hero-points{
  margin:14px 0 0; padding-left:18px;
  color:var(--muted);
}
.hero-media{
  position:relative;
}
.hero-photo{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  background:#fff;
}
.hero-photo img{aspect-ratio: 4/3; object-fit:cover}
.hero-mini-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top:10px;
}
.hero-mini-grid img{
  border-radius:14px;
  border:1px solid var(--border);
  box-shadow:0 10px 22px rgba(11,19,32,.08);
  aspect-ratio: 1/1;
  object-fit:cover;
}

/* Sections */
.section{padding:52px 0}
.section-alt{background:linear-gradient(180deg, rgba(11,91,211,.04), rgba(11,91,211,.02))}
.section-cta{
  background:linear-gradient(135deg, rgba(11,91,211,.92), rgba(10,77,184,.92));
  color:#fff;
}
.section-head{margin-bottom:22px}
.section-head h2{
  font-size:clamp(22px, 2.4vw, 32px);
  margin:0 0 6px;
}
.section-head p{margin:0; color:var(--muted)}
.section-head.light p{color:rgba(255,255,255,.88)}
.section-head.light h2{color:#fff}

/* Cards & grids */
.cards{display:grid; gap:16px}
.grid-3{grid-template-columns:repeat(3, 1fr)}
.grid-2{grid-template-columns:repeat(2, 1fr)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px 18px;
  box-shadow:0 12px 30px rgba(11,19,32,.06);
}
.card h3{margin:0 0 8px; font-size:1.1rem}
.card p{margin:0; color:var(--muted)}
.list{margin:12px 0 0; padding-left:18px; color:var(--muted)}
.list li{margin:4px 0}
.note{
  margin-top:18px;
  border:1px dashed rgba(11,91,211,.32);
  border-radius:var(--radius);
  padding:14px 16px;
  background:rgba(255,255,255,.7);
}
.note p{margin:0; color:var(--muted)}
.banner{
  margin-top:18px;
  background:linear-gradient(135deg, rgba(11,91,211,.08), rgba(10,77,184,.06));
  border:1px solid rgba(11,91,211,.18);
  border-radius:var(--radius);
  padding:16px 16px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
}
.banner h3{margin:0 0 6px}
.banner p{margin:0; color:var(--muted); max-width:72ch}

/* Checks */
.checks{display:grid; gap:14px}
.check{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 16px;
}
.check h3{margin:0 0 6px}
.check p{margin:0; color:var(--muted)}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:12px;
}
.gallery figure{
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 14px 34px rgba(11,19,32,.08);
  background:#fff;
}
.gallery img{width:100%; height:100%; object-fit:cover}
.gallery figure:nth-child(1){grid-column:span 7; aspect-ratio: 16/9}
.gallery figure:nth-child(2){grid-column:span 5; aspect-ratio: 16/9}
.gallery figure:nth-child(3){grid-column:span 4; aspect-ratio: 1/1}
.gallery figure:nth-child(4){grid-column:span 4; aspect-ratio: 1/1}
.gallery figure:nth-child(5){grid-column:span 4; aspect-ratio: 1/1}

/* Two column */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}
.dl{
  display:grid;
  gap:10px;
  margin:12px 0 0;
}
.dl > div{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(10,40,80,.08);
}
.dl dt{font-weight:800}
.dl dd{margin:0; color:var(--muted)}
.small{font-size:.92rem; color:var(--muted)}
.callout{border-color:rgba(11,91,211,.20)}
.stack{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.address{margin:10px 0; color:var(--muted)}
.link{color:var(--blue2); font-weight:800}
.link:hover{text-decoration:underline}
.mini-photos{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:12px;
}
.mini-photos img{
  border-radius:14px;
  border:1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit:cover;
}

/* FAQ */
.faq{display:grid; gap:10px}
.faq-item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:0;
  overflow:hidden;
}
.faq-item summary{
  cursor:pointer;
  padding:16px 16px;
  font-weight:800;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-body{
  padding:0 16px 16px;
  color:var(--muted);
}
.faq-item[open] summary{
  background:rgba(11,91,211,.06);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  align-items:start;
}
.section-cta .card{
  background:rgba(255,255,255,.98);
  /* セクション全体は白文字（section-cta）だが、カード上は白背景のため文字色を明示的に黒系へ */
  color:var(--ink);
}
.section-cta .small{color:rgba(255,255,255,.85)}
.section-cta .card .small{color:var(--muted)}
.form label{display:block; font-weight:800; color:var(--ink)}
.form input, .form textarea, .form select{
  width:100%;
  margin-top:8px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(10,40,80,.18);
  outline:none;
  font:inherit;
}
.form input:focus, .form textarea:focus, .form select:focus{
  border-color:rgba(11,91,211,.55);
  box-shadow:0 0 0 4px rgba(11,91,211,.12);
}
.form-row{margin-bottom:12px}
.req{color:var(--blue2); margin-left:6px}
.contact-info a{color:var(--blue2); font-weight:800}
.divider{height:1px; background:rgba(10,40,80,.12); margin:14px 0}

/* Footer */
.site-footer{
  background:#fff;
  border-top:1px solid var(--border);
  padding:26px 0;
}
.footer-inner{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{color:var(--muted); font-weight:700}
.footer-links a:hover{color:var(--ink)}

/* Trainer / Fees */
.trainer-grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:22px;
  align-items:start;
}
.trainer-photo{
  margin:0;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  background:#fff;
}
.trainer-photo img{width:100%; height:auto; display:block}
.trainer-body{padding:18px}
.trainer-name{margin:0 0 8px}
.trainer-lead{
  margin:0 0 14px;
  font-weight:800;
  color:var(--ink);
}
.trainer-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

.fees-grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap:18px;
}
.fee-campaign{font-size:1.04rem; line-height:1.7}
.price-cols{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px}
.price-box{
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  background:#fff;
}
.price-box h4{margin:0 0 10px; font-size:1.05rem}
.price-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.price-list li{
  display:flex; align-items:baseline; justify-content:space-between;
  border-bottom:1px dashed var(--border);
  padding-bottom:8px;
}
.price-list li:last-child{border-bottom:0; padding-bottom:0}
.price-list span{color:var(--muted); font-weight:700}
.price-list strong{font-size:1.06rem}
@media (max-width: 980px){
  .trainer-grid{grid-template-columns:1fr}
  .fees-grid{grid-template-columns:1fr}
  .price-cols{grid-template-columns:1fr}
}

/* Responsive */
@media (max-width: 980px){
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .hero-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(2),
  .gallery figure:nth-child(3),
  .gallery figure:nth-child(4),
  .gallery figure:nth-child(5){grid-column:span 12}
  .hero-mini-grid{grid-template-columns:repeat(5, 1fr)}
}

@media (max-width: 860px){
  .nav-toggle{display:inline-block}
  .site-nav{
    position:absolute;
    right:4vw;
    top:66px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--border);
    border-radius:18px;
    padding:10px;
    box-shadow:var(--shadow);
    display:none;
    flex-direction:column;
    align-items:stretch;
    min-width:min(320px, 92vw);
  }
  .site-nav.is-open{display:flex}
  .site-nav a{padding:12px 12px}
}

/* Lightbox (image zoom) */
img.lightbox-trigger{cursor:zoom-in}

.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.lightbox.is-open{display:block}
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,18,35,.72);
}
.lightbox__dialog{
  position:relative;
  max-width:min(1100px, 94vw);
  max-height:92vh;
  margin:4vh auto;
  background:rgba(255,255,255,.98);
  border-radius:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  padding:14px;
  padding-top:64px; /* reserve space for the close (X) button */
  display:flex;
  flex-direction:column;
  gap:8px;
}
.lightbox__close{
  /* Fixed positioning so the close button reliably appears on mobile
     (iOS Safari can fail to paint absolutely positioned elements in
     scroll-locked containers until history navigation). */
  position:fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index:2001;
  border:1px solid var(--border);
  background:rgba(255,255,255,.95);
  border-radius:999px;
  width:44px;
  height:44px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__img{
  width:100%;
  height:auto;
  max-height:78vh;
  object-fit:contain;
  border-radius:14px;
  background:#f6f8ff;
}
.lightbox__caption{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

body.lightbox-open{overflow:hidden}

/* prevent header nav wrapping */
.nav a, .nav li, .menu a { white-space: nowrap; font-size: 0.92rem; }

/* Ensure CTA button never wraps */
.site-nav .btn{white-space:nowrap; flex-shrink:0;}

/* Women facilities section */

.section-soft{background:linear-gradient(180deg, rgba(11,91,211,.06), rgba(255,255,255,0));}
.photo-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin-top:12px;}
@media (max-width: 520px){.photo-grid{grid-template-columns:1fr;}}
.photo img{width:100%; height:auto; display:block; border-radius:16px; box-shadow:var(--shadow);}

/* Check list */
.list-check{list-style:none; padding-left:0; margin:10px 0 0;}
.list-check li{position:relative; padding-left:26px; margin:8px 0; color:var(--ink);}
.list-check li:before{content:'✓'; position:absolute; left:0; top:0; color:var(--primary);} 

/* Unified photo sizing for women section */
.photo-fixed{overflow:hidden; border-radius:16px;}
.photo-fixed img{width:100%; height:220px; object-fit:cover; display:block;}
@media (max-width: 520px){.photo-fixed img{height:200px;}}

/* Women facilities unified gallery */
.women-photo-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.women-photo-grid .photo-fixed{
  background:#fff;
}
.women-photo-grid figcaption{
  padding:10px 2px 0;
  font-size:14px;
}
@media (max-width: 720px){
  .women-photo-grid{ grid-template-columns:1fr; }
  .photo-fixed img{ height:220px; }
}

/* Smaller thumbnails for Photo & Women sections */
#photos .photo-fixed img,
#features .photo-fixed img,
#women .photo-fixed img{
  height:180px;
}

#photos .photo-fixed,
#features .photo-fixed,
#women .photo-fixed{
  max-width:260px;
}

/* Further reduce thumbnail sizes */
#photos .photo-fixed img,
#features .photo-fixed img,
#women .photo-fixed img{
  height:150px;
}

#photos .photo-fixed,
#features .photo-fixed,
#women .photo-fixed{
  max-width:220px;
}


/* Language switch */
.lang-switch{display:flex;gap:10px;align-items:center;margin-left:12px;}
.lang-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:8px 10px;border:1px solid #d7dde6;border-radius:999px;font-weight:800;font-size:.85rem;line-height:1;color:#0f172a;background:#ffffff;text-decoration:none;white-space:nowrap;}
.lang-btn:hover{background:#f8fafc;}
.lang-btn.is-active{border-color:#0b5cff;background:#0b5cff;color:#ffffff;}
@media (max-width:920px){.lang-switch{margin-left:0;}}
@media (max-width:820px){.lang-switch{order:3;width:100%;justify-content:flex-end;padding-top:10px;}}


/* Language switch (JP/EN/中文) */
.lang-switch{display:flex;gap:8px;align-items:center;margin-left:16px;}
.lang-btn{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:32px;padding:0 10px;border-radius:999px;border:1px solid #d0d7de;color:#0f172a;font-weight:700;font-size:0.85rem;line-height:1;text-decoration:none;background:#fff;}
.lang-btn:hover{background:#f1f5f9;}
.lang-btn.is-active{background:#0b5ed7;color:#fff;border-color:#0b5ed7;}
@media (max-width: 900px){.lang-switch{margin-left:auto;}}
@media (max-width: 720px){.lang-switch{gap:6px;} .lang-btn{height:30px;min-width:34px;padding:0 8px;font-size:0.8rem;}}


/* Language selector (dropdown) */
.lang-flag{
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #e5e7eb;
  flex: 0 0 auto;
}

.lang-switch select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 36px;
  padding: 6px 34px 6px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.lang-switch select:focus{
  outline: none;
  border-color: #0b5cff;
}
@media (max-width: 920px){
  .lang-switch{ margin-left: 8px; }
  .lang-switch select{
    height: 34px;
    padding: 6px 10px;
    font-size: 14px;
  }
}


/* === Language dropdown (mobile-friendly) === */
.lang-btn{display:none !important;} /* ensure only dropdown is used */
.lang-switch{display:flex;align-items:center;gap:8px;}
.lang-switch select{min-width:74px;max-width:110px;}
@media (max-width:768px){
  /* keep language switch on the top row (do not wrap/overflow off-screen) */
  .header-inner{flex-wrap:nowrap;}
  .lang-switch{order:0 !important; width:auto !important; padding-top:0 !important; margin-left:8px;}
  .lang-switch select{font-size:12px; padding:6px 28px 6px 10px; max-width:96px;}
}


/* ===== Language dropdown (mobile space optimization) ===== */
/* Hide legacy language buttons if they exist */
.lang-btn{display:none !important;}

@media (max-width: 820px){
  .site-header .header-inner{flex-wrap:nowrap;}
  .lang-switch{margin-left:auto;flex:0 0 auto;}
  .lang-switch select{min-width:74px;max-width:84px;}
}


/* --- Mobile/header overflow fix (JP title too long) --- */
.brand{min-width:0; flex:1;}
.brand-sub{min-width:0; overflow:hidden; text-overflow:ellipsis; display:block;}
.lang-switch, .nav-toggle{flex-shrink:0;}
@media (max-width: 520px){
  .header-inner{gap:10px;}
  .brand-sub{font-size:0.82rem;}
}


/* Mobile header: avoid truncation of gym name */
@media (max-width: 520px){
  .brand-sub{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.2;
  }
}
