:root {
  --bg: #0a0d13;
  --bg-panel: #12161f;
  --bg-panel-2: #171c27;
  --navy: #1b2a4a;
  --red: #d43b3b;
  --gold: #d8ac4e;
  --text: #f4f4f0;
  --text-muted: #9aa3b2;
  --border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,13,19,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.logo-img { height: 42px; width: auto; }
nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover, nav a.active { color: var(--gold); border-color: var(--gold); }

.btn-line-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #06c755;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.2s;
}
.btn-line-mini:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Hero (home page, full) */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(6,8,12,0.35) 0%, rgba(6,8,12,0.55) 55%, rgba(6,8,12,0.95) 100%),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 70px;
  width: 100%;
  position: relative;
}
.hero-logo {
  max-width: 260px;
  width: 46vw;
  margin-bottom: 26px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}
.hero-kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  line-height: 1.15;
}
.hero p.lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #e6e6e0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page banner (sub-pages: gallery / schedule / recruit / contact / about) */
.page-banner {
  position: relative;
  padding: 130px 24px 56px;
  background-image:
    linear-gradient(180deg, rgba(6,8,12,0.55) 0%, rgba(6,8,12,0.88) 100%),
    var(--banner-img, none);
  background-size: cover;
  background-position: center 35%;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-banner .section-inner { position: relative; z-index: 1; }
.page-banner .section-kicker { margin-bottom: 10px; }
.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}
.page-banner p {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #06c755, #05a648);
  color: #fff;
  box-shadow: 0 6px 20px rgba(6,199,85,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6,199,85,0.4); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8862f);
  color: #241a04;
  box-shadow: 0 6px 20px rgba(216,172,78,0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(216,172,78,0.35); }

/* Sections */
section { padding: 90px 24px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.section-kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 44px;
}
.alt-bg { background: var(--bg-panel); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.about-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--red));
}
.about-card .num {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.about-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.about-card p { color: var(--text-muted); font-size: 0.92rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(216,172,78,0.4);
  padding-bottom: 3px;
}
.card-link:hover { border-color: var(--gold); }

/* Parent reassurance list (about page) */
.parent-list {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 28px;
}
.parent-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.parent-item:last-child { border-bottom: none; }
.parent-item .check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8862f);
  color: #241a04;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.parent-item p { color: var(--text); font-size: 0.95rem; }
.parent-item p .sub { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* Topic tiles (home page -> links out to each page) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.topic-card {
  display: block;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216,172,78,0.4);
  background: #1b2130;
}
.topic-card .tag {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.topic-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.topic-card p { color: var(--text-muted); font-size: 0.88rem; }
.topic-card .arrow { margin-top: 16px; color: var(--gold); font-weight: 700; font-size: 0.85rem; }

/* Photo preview strip (home page teaser -> gallery.html) */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.preview-strip a { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; }
.preview-strip img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88); transition: transform 0.4s, filter 0.4s; }
.preview-strip a:hover img { transform: scale(1.06); filter: brightness(1.02); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}
.gallery-grid a.tile-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.88);
}
.gallery-grid a:hover img { transform: scale(1.08); filter: brightness(1.05); }
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-more-block { display: none; }
.gallery-more-block.shown { display: contents; }
.gallery-more-wrap {
  text-align: center;
  margin-top: 34px;
}
#gallery-more-btn {
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
#gallery-more-btn:hover { border-color: var(--gold); color: var(--gold); }
#gallery-more-btn.hidden { display: none; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(4,5,8,0.94);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Schedule */
.schedule-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}
.schedule-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  width: 34%;
}
tr:last-child td, tr:last-child th { border-bottom: none; }
.fee-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.fee-card h3 { font-size: 1.05rem; margin-bottom: 18px; color: var(--gold); }
.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.fee-row:last-child { border-bottom: none; }
.fee-row .amount { font-weight: 800; color: #fff; }
.note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* LINE callout box (used on schedule / other pages to funnel to official LINE) */
.line-callout {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(6,199,85,0.12), rgba(6,199,85,0.03));
  border: 1px solid rgba(6,199,85,0.3);
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.line-callout h3 { font-size: 1.05rem; margin-bottom: 8px; }
.line-callout p { color: var(--text-muted); font-size: 0.88rem; max-width: 480px; }

/* Recruit */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.recruit-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.recruit-card img { width: 100%; }
.recruit-card .cap {
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact */
.contact-box {
  background: linear-gradient(135deg, var(--navy), #0f1826);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}
.contact-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.contact-box p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.contact-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-sub {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-sub strong { color: var(--text); display: block; font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 6px; }

footer {
  text-align: center;
  padding: 34px 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .schedule-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a.tile-lg { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .preview-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  section { padding: 60px 18px; }
  .contact-box { padding: 40px 22px; }
  .page-banner { padding: 110px 18px 44px; }
}
