@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --cream: #f7f3ef;
  --ink: #111215;
  --navy: #0c1f3a;
  --sky: #e6f0ff;
  --red: #c2262e;
  --sand: #efe3d6;
  --mint: #d9f2ee;
  --shadow: 0 20px 45px rgba(12, 18, 26, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, var(--mint) 0%, var(--cream) 55%, #ffffff 100%);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: 'Barlow', 'Noto Sans JP', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e2d8;
  z-index: 10;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.crest {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4d5562;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.hero {
  padding: 72px 0 0;
  background: linear-gradient(135deg, #112a4d 0%, #15345d 55%, #1e4a74 100%);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-photo {
  margin-top: 34px;
  padding: 0 0 26px;
}

.hero-photo img {
  width: min(1120px, 92%);
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(10, 16, 24, 0.28);
}

.hero-tag {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.hero h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero p {
  max-width: 520px;
}

.hero-lead {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero-actions {
  margin-top: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (min-width: 901px) {
  .hero-lead {
    grid-template-columns: minmax(0, 520px) auto;
    gap: 30px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn.light {
  background: #fff;
  color: var(--navy);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px;
  border-radius: 22px;
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.hero-card li::before {
  content: '• ';
  color: var(--red);
  font-weight: 700;
}

.section {
  padding: 64px 0 84px;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-head h3 {
  font-size: 28px;
}

.about h3,
.join h3,
.contact h3 {
  font-size: 28px;
}

.about-photo {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(12, 18, 26, 0.12);
}

.about-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.news {
  background: #ffffff;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.news-list article {
  background: var(--sand);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(24, 24, 36, 0.08);
  display: grid;
  gap: 12px;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(12, 18, 26, 0.12);
  background: #fff;
}

.news-thumb-btn {
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  cursor: pointer;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 22, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  width: min(960px, 92vw);
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 16px;
  position: relative;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 18, 26, 0.08);
  font-size: 20px;
  cursor: pointer;
}

.lightbox-main {
  display: grid;
  place-items: center;
  background: #f5f4f2;
  border-radius: 16px;
  padding: 12px;
  min-height: 240px;
}

.lightbox-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.lightbox-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
  width: 140px;
  height: 90px;
}

.lightbox-thumbs button.active {
  border-color: var(--red);
}

.lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-date {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a5b4d;
  margin-bottom: 10px;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.news-tags span {
  min-width: 74px;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(12, 31, 58, 0.15);
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.about {
  background: linear-gradient(120deg, #ffffff 0%, var(--sky) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.course-grid {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.course-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(12, 18, 26, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
}

.course-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.course-body {
  padding: 22px 24px;
  display: grid;
  gap: 12px;
}

.course-tag {
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, rgba(12, 31, 58, 0.9), rgba(194, 38, 46, 0.9));
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 36px;
  width: fit-content;
}

.course-card h4 {
  font-size: 20px;
  color: var(--navy);
}

.highlight {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(24, 24, 36, 0.1);
}

.highlight .label {
  font-weight: 600;
  margin-bottom: 10px;
}

.highlight ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.highlight li::before {
  content: '✓ ';
  color: var(--red);
  font-weight: 700;
}

.stats {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.stats-title {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 14px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid #e8e2d8;
  font-size: 14px;
  vertical-align: top;
}

.stats-table th {
  width: 42%;
  color: #5b6370;
  font-weight: 600;
}

.stats-table td {
  color: var(--navy);
  font-weight: 700;
}

.stats-table tr:last-child th,
.stats-table tr:last-child td {
  border-bottom: 0;
}

.program {
  background: var(--cream);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.program-grid article {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(12, 18, 26, 0.08);
}

.faq {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: var(--cream);
  border: 1px solid rgba(12, 31, 58, 0.1);
  border-radius: 16px;
  padding: 18px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq-list p {
  margin-top: 12px;
}

.recent-activities {
  margin-top: 42px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.compact h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.social-embeds {
  display: grid;
  gap: 20px;
}

.facebook-embed {
  background: #fff;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(12, 18, 26, 0.08);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.facebook-embed iframe {
  width: 100%;
  max-width: 500px;
}

.facebook-frame-mobile {
  display: none;
}

.instagram-link {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(12, 18, 26, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.instagram-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, #fff 0 3px, transparent 4px),
    radial-gradient(circle, transparent 0 7px, #fff 8px 10px, transparent 11px),
    radial-gradient(circle at 30% 110%, #feda75 0 22%, #fa7e1e 36%, #d62976 58%, #962fbf 78%, #4f5bd5 100%);
  position: relative;
  flex: 0 0 auto;
}

.instagram-icon::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 8px;
}

.schedule {
  background: linear-gradient(120deg, #ffffff 0%, #f2f6ff 100%);
}

.schedule-embed {
  background: #fff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-embed iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
}

.schedule-note {
  margin-top: 16px;
  color: #5b6370;
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.join {
  background: linear-gradient(140deg, #ffffff 0%, #fdf7f0 100%);
}

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.join-card {
  background: var(--navy);
  color: #fff;
  padding: 28px;
  border-radius: 22px;
  display: grid;
  gap: 14px;
}

.join-card h4 {
  font-size: 22px;
  line-height: 1.3;
}

.join-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.join-card .btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
}

.join ol {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.note {
  margin-top: 16px;
  color: #4d5562;
}

.contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contact-grid > div {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-info {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.contact-info span {
  display: inline-block;
  width: 80px;
  color: #6a6f78;
}

.contact-form {
  background: var(--sand);
  padding: 24px;
  border-radius: 18px;
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d9c7b6;
  font-family: inherit;
}

.form-note {
  font-size: 12px;
  color: #7a5b4d;
}

.contact-links {
  align-content: start;
}

.contact-links .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.contact-links .btn.ghost {
  border-color: rgba(12, 31, 58, 0.3);
  color: var(--navy);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(12, 18, 26, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 50;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-2px);
}

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 32px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 10px 0;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .crest {
    width: 48px;
    height: 48px;
  }

  .brand-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .brand-title {
    font-size: 13px;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 4%;
    background: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 14px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner,
  .about-grid,
  .join-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 8px 0;
  }

  .crest {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: 60px 0 0;
  }

  .hero-photo {
    margin-top: 28px;
    padding-bottom: 20px;
  }

  .hero-photo img {
    border-radius: 16px;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .hero-card {
    padding: 22px;
  }

  .section {
    padding: 36px 0 48px;
  }

  .about.section {
    padding-top: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .facebook-embed {
    padding: 7px;
  }

  .instagram-link {
    align-items: flex-start;
    padding: 16px;
  }

  .facebook-frame-desktop {
    display: none;
  }

  .facebook-frame-mobile {
    display: block;
  }
}
