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

:root {
  --blue: #0879ce;
  --pink: #ff5c91;
  --green: #58bd68;
  --yellow: #ffb71b;
  --ink: #253244;
  --muted: #657287;
  --line: #dfe9f1;
  --sky: #eef9ff
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  background: #fff
}

.wrap {
  width: min(1160px, 92%);
  margin: auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #edf1f4
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue)
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px
}

.brand-mark svg {
  width: 48px;
  height: 48px;
  display: block
}

.brand b {
  display: block;
  font-size: 29px;
  letter-spacing: .04em
}

.brand small {
  display: block;
  color: #49ad61;
  font-weight: 800;
  font-size: 14px
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700
}

.nav a:hover {
  color: var(--blue)
}

.nav-contact {
  background: var(--pink);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 18px
}

.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 26px
}

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: linear-gradient(110deg, #eefaff, #fff 55%, #fff4f7)
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, #dff4ff 0 13%, transparent 14%), radial-gradient(circle at 15% 80%, #fff0c5 0 9%, transparent 10%);
  opacity: .7
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 480px;
  align-items: center
}

.hero-copy {
  padding: 45px 0
}

.hero-kicker {
  font-size: 16px;
  color: var(--blue);
  font-weight: 800
}

.hero h1 {
  font-family: "Kosugi Maru", sans-serif;
  font-size: clamp(42px, 5vw, 67px);
  line-height: 1.2;
  margin: 12px 0 18px;
  letter-spacing: .03em
}

.hero h1 em {
  font-style: normal;
  color: var(--pink)
}

.hero h1 strong {
  color: var(--blue)
}

.hero-copy>p:not(.hero-kicker) {
  font-size: 16px;
  font-weight: 600
}

.cta {
  display: inline-block;
  color: #fff;
  font-weight: 800;
  padding: 13px 25px;
  border-radius: 999px;
  margin-top: 8px;
  box-shadow: 0 10px 25px #ff5c9140
}

.pink {
  background: var(--pink)
}

.hero-photo {
  height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.photo-main {
  width: 95%;
  height: 350px;
  border-radius: 25px 0 0 25px;
  background: linear-gradient(135deg, #d7eefb, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5c87a2;
  border: 1px dashed #9fcce5;
  box-shadow: 0 20px 50px #23506b18
}

.photo-placeholder span {
  font-size: 26px;
  font-weight: 800
}

.photo-placeholder small {
  font-size: 12px
}

.bubble {
  position: absolute;
  right: 0;
  top: 45px;
  color: var(--blue);
  font-weight: 900;
  transform: rotate(5deg);
  font-size: 17px
}

.reasons {
  background: linear-gradient(#eefaff, #e5f7ff);
  padding: 38px 0 50px
}

.section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 25px
}

.section-title strong {
  font-size: 38px;
  color: var(--pink)
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px
}

.reason-grid article {
  position: relative;
  background: #fff;
  border-radius: 32px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 5px 20px #1a8bc015
}

.reason-grid i {
  position: absolute;
  left: 10px;
  top: -8px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800
}

.reason-grid article:nth-child(2) i {
  background: var(--yellow)
}

.reason-grid article:nth-child(3) i {
  background: var(--green)
}

.reason-grid article:nth-child(4) i {
  background: #00a5e5
}

.reason-grid article:nth-child(5) i {
  background: #8a57d6
}

.reason-grid article>div {
  font-size: 38px;
  margin: 4px
}

.reason-grid h3 {
  font-size: 15px;
  margin: 4px;
  color: var(--blue)
}

.reason-grid article:nth-child(1) h3 {
  color: var(--pink)
}

.reason-grid article:nth-child(2) h3 {
  color: #f0a000
}

.reason-grid article:nth-child(3) h3 {
  color: #47a94d
}

.reason-grid article:nth-child(5) h3 {
  color: #8150c5
}

.reason-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0
}

.courses {
  padding: 60px 0
}

.section-head {
  display: flex;
  gap: 35px;
  align-items: end;
  margin-bottom: 25px
}

.section-head span {
  font: 800 12px Nunito, sans-serif;
  color: var(--blue);
  letter-spacing: 2px
}

.section-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 29px
}

.section-head p {
  font-size: 16px;
  color: var(--muted);
  margin: 0
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px
}

.course-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 14px #26394a08
}

.course-photo {
  height: 110px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d8efff, #f8fcff);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  color: #5a88a6;
  font-size: 14px
}

.course-card h3 {
  font-size: 13px;
  margin: 8px 0 3px
}

.course-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px
}

.course-card>b {
  display: inline-block;
  border-radius: 99px;
  padding: 3px 9px;
  color: #fff;
  font-size: 9px
}

.orange h3 {
  color: #f28d00
}

.orange>b {
  background: #f5a515
}

.blue h3 {
  color: #0079d2
}

.blue>b {
  background: #1b91df
}

.green h3 {
  color: #46a64f
}

.green>b {
  background: #65b951
}

.purple h3 {
  color: #8650c5
}

.purple>b {
  background: #9658d6
}

.teal h3 {
  color: #009caa
}

.teal>b {
  background: #12aebc
}

.info {
  background: #f4fbff;
  padding: 30px 0 65px
}

.info-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr 1fr;
  gap: 12px
}

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 5px 18px #1e638010
}

.panel h2 {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 21px
}

.panel>p {
  font-size: 10px;
  color: var(--muted)
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
  margin-top: 13px
}

th,
td {
  padding: 8px 5px;
  border: 1px solid #d9e4eb;
  text-align: center
}

thead th {
  background: #bce8fa
}

tbody tr:nth-child(1) th {
  color: var(--pink);
  background: #fff0f5
}

tbody tr:nth-child(2) th {
  color: #d88b00;
  background: #fff8dd
}

tbody tr:nth-child(3) th {
  color: #4fa950;
  background: #effbea
}

tbody tr:nth-child(4) th {
  color: #4b76a8;
  background: #edf7ff
}

.flow ol {
  list-style: none;
  padding: 0;
  margin: 10px 0
}

.flow li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted #ccdce5
}

.flow li>b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #fff
}

.flow li strong,
.flow li small {
  display: block
}

.flow li strong {
  font-size: 18px
}

.flow li small {
  font-size: 14px;
  color: var(--muted)
}

.access-photo {
  height: 105px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e6f4e6, #f8fbff);
  display: grid;
  place-items: center;
  color: #5b8b70;
  font-size: 13px;
  font-weight: 700
}

.access h3 {
  font-size: 13px;
  color: var(--blue);
  margin: 7px 0 0
}

.access p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 10px
}

.map-btn {
  display: block;
  text-align: center;
  background: #1299df;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  font-weight: 800
}

.contact {
  padding: 55px 0;
  background: #fff;
  text-align: center
}

.contact>div>p {
  font: 800 20px Nunito, sans-serif;
  color: var(--pink);
  letter-spacing: 2px
}

.contact h2 {
  font-size: 20px;
  margin: 5px 0 25px
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.contact-grid a {
  border-radius: 13px;
  padding: 15px;
  background: #119ee4;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center
}

.contact-grid a:nth-child(2) {
  background: #19b94f
}

.contact-grid a:nth-child(3) {
  background: var(--pink)
}

.contact-grid span {
  font-weight: 900;
  font-size: 20px
}

.contact-grid small {
  font-size: 10px
}

.contact-grid strong {
  font-size: 16px
}

.contact-grid a:nth-child(2) strong {
  font-size: 11px
}

.contact-grid a:nth-child(3) strong {
  font-size: 11px
}

footer {
  background: #fff;
  border-top: 1px solid #edf2f5;
  padding: 25px 0;
  color: var(--blue)
}

footer .wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap
}

footer b {
  font-size: 20px
}

footer span {
  font-size: 11px
}

footer small {
  margin-left: auto;
  color: #7d8997
}

@media(max-width:900px) {
  .nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 5%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid #ddd
  }

  .nav.open {
    display: flex
  }

  .nav a {
    padding: 11px
  }

  .menu {
    display: block
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding: 40px 0 10px
  }

  .hero-photo {
    height: 300px
  }

  .photo-main {
    height: 270px;
    width: 100%;
    border-radius: 20px
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .reason-grid article:last-child {
    grid-column: 1/-1
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .info-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .section-head {
    display: block
  }

  .section-head p {
    margin-top: 8px
  }

  .section-title {
    font-size: 18px
  }

  .section-title strong {
    font-size: 29px
  }
}

@media(max-width:560px) {
  .brand b {
    font-size: 20px
  }

  .brand small {
    font-size: 8px
  }

  .hero h1 {
    font-size: 42px
  }

  .reason-grid,
  .course-grid {
    grid-template-columns: 1fr
  }

  .reason-grid article:last-child {
    grid-column: auto
  }

  .hero-photo {
    height: 250px
  }

  .photo-main {
    height: 230px
  }

  .photo-placeholder span {
    font-size: 19px
  }
}

.reason-img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 auto 8px
}

.reason-grid article {
  overflow: hidden
}

.reason-grid article i {
  z-index: 2
}

.reason-grid article>div {
  display: none
}

@media(max-width:900px) {
  .reason-img {
    height: 170px
  }
}

/* Four course cards and two contact options */
@media(min-width:901px) {
  .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 850px;
    margin-left: auto;
    margin-right: auto
  }
}

/* Motion and photo gallery */
.photo-slider {
  display: block;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #e9f8ff
}

.photo-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none
}

.photo-slider .slide.active {
  opacity: 1
}

.slide-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 13px;
  align-items: center;
  background: #ffffffdd;
  border-radius: 30px;
  padding: 4px 9px;
  z-index: 2
}

.slide-controls button {
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0879ce;
  font-size: 22px;
  width: 32px;
  height: 32px;
  line-height: 1
}

.slide-dots {
  display: flex;
  gap: 6px
}

.slide-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: #b4c5d1
}

.slide-dots button[aria-current="true"] {
  background: #ff5c91;
  width: 20px;
  border-radius: 12px
}

.course-photo {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 9px
}

.access-photo {
  display: block;
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 10px
}

.gallery {
  background: #fffaf3;
  padding: 55px 0
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px #28496918
}

.image-disclaimer {
  font-size: 12px;
  color: #68798a;
  margin: 18px 0 0
}

.course-card,
.reason-grid article,
.gallery-grid img {
  transition: transform .3s ease, box-shadow .3s ease
}

.course-card:hover,
.reason-grid article:hover,
.gallery-grid img:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 30px #19557922
}

.cta,
.contact-grid a {
  transition: transform .3s ease, box-shadow .3s ease
}

.cta:hover,
.contact-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px #ff5c9140
}

.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none
}

.menu {
  cursor: pointer
}

.nav a:focus-visible,
.cta:focus-visible,
.slide-controls button:focus-visible {
  outline: 3px solid #ffb71b;
  outline-offset: 3px
}

@media(max-width:900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav {
    max-height: calc(100vh - 82px);
    overflow: auto
  }
}

@media(max-width:560px) {
  .gallery-grid {
    grid-template-columns: 1fr
  }

  .course-photo {
    height: 200px
  }

  .photo-slider {
    width: 100%
  }

  .bubble {
    right: 8px;
    top: 8px;
    font-size: 13px;
    background: #ffffffd9;
    border-radius: 10px;
    padding: 4px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
    transition: none
  }

  .photo-slider .slide,
  .course-card,
  .reason-grid article,
  .gallery-grid img,
  .cta,
  .contact-grid a {
    transition: none !important;
    animation: none !important
  }
}

/* LINE QR card */
.line-contact {
  border-radius: 13px;
  padding: 16px;
  background: #19b94f;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px
}

.line-contact .line-label {
  font-weight: 900;
  font-size: 20px
}

.line-contact small {
  font-size: 11px
}

.line-contact strong {
  font-size: 13px
}

.line-qr {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin: 10px auto 4px
}

.line-help {
  font-size: 11px
}

.contact-grid a {
  justify-content: center
}

/* Wide, balanced contact panels */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
  text-align: left
}

.contact-grid .contact-phone,
.contact-grid .line-contact {
  min-height: 218px;
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: 0 12px 25px #20496812
}

.contact-grid .contact-phone {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 18px;
  align-items: center;
  background: linear-gradient(120deg, #008cdb, #19b7e7);
  color: white
}

.contact-phone .phone-icon {
  font-size: 48px;
  line-height: 1
}

.contact-phone .phone-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px
}

.contact-grid .contact-phone strong {
  font-size: clamp(21px, 2.5vw, 31px);
  letter-spacing: .02em
}

.contact-grid .contact-phone small,
.contact-grid .line-contact small {
  font-size: 20px;
  font-weight: 700
}

.phone-note {
  font-size: 14px !important;
  opacity: .92;
  font-weight: 500 !important
}

.contact-grid .line-contact {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, #12a54b, #22c55e)
}

.line-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0
}

.contact-grid .line-contact strong {
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.6
}

.line-contact .line-label {
  font-size: 20px
}

.line-contact .line-qr {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  padding: 8px;
  margin: 0;
  border-radius: 13px
}

.line-contact .line-help {
  font-size: 12px;
  text-align: left;
  line-height: 1.5
}

.embedded-map {
  display: block;
  width: 100%;
  height: 225px;
  border: 0;
  border-radius: 12px;
  margin: 12px 0 10px;
  background: #e7f4fc
}

.access .map-btn {
  margin-top: 8px
}

@media(max-width:700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .contact-grid .contact-phone,
  .contact-grid .line-contact {
    min-height: 160px;
    padding: 20px
  }

  .contact-grid .line-contact {
    gap: 12px
  }

  .line-contact .line-qr {
    width: 132px;
    height: 132px;
    flex-basis: 132px
  }

  .contact-grid .contact-phone strong {
    font-size: 18px
  }
}

@media(max-width:370px) {
  .line-contact .line-qr {
    width: 105px;
    height: 105px;
    flex-basis: 105px
  }

  .contact-grid .line-contact strong {
    font-size: 12px
  }
}

/* 新しい授業写真ギャラリー */
.gallery-grid-expanded {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.gallery-grid-expanded .gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(34, 52, 73, .08);
  transition: transform .25s ease, box-shadow .25s ease
}

.gallery-grid-expanded .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(34, 52, 73, .16)
}

.gallery-grid-expanded .gallery-item img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  transition: transform .35s ease
}

.gallery-grid-expanded .gallery-item:hover img {
  transform: scale(1.035)
}

.gallery-grid-expanded figcaption {
  padding: 12px 15px;
  font-weight: 700;
  color: #40516b;
  font-size: 14px
}

@media(max-width:720px) {
  .gallery-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  .gallery-grid-expanded .gallery-item img {
    height: 165px
  }

  .gallery-grid-expanded figcaption {
    font-size: 12px;
    padding: 10px
  }
}

@media(max-width:420px) {
  .gallery-grid-expanded {
    grid-template-columns: 1fr
  }

  .gallery-grid-expanded .gallery-item img {
    height: 220px
  }
}

@media(prefers-reduced-motion:reduce) {

  .gallery-grid-expanded .gallery-item,
  .gallery-grid-expanded .gallery-item img {
    transition: none
  }
}

/* Certifications and contests */
.challenges {
  padding: 76px 0 82px;
  background: linear-gradient(180deg, #fff9ed 0%, #fff 100%)
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px
}

.challenge-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px 30px;
  box-shadow: 0 10px 30px rgba(27, 69, 107, .09);
  border: 1px solid #f2ecdf;
  transition: transform .25s ease, box-shadow .25s ease
}

.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(27, 69, 107, .14)
}

.challenge-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  margin-bottom: 17px
}

.pink-icon {
  background: #ffe6f0
}

.blue-icon {
  background: #dff3ff
}

.green-icon {
  background: #dff9ed
}

.challenge-card h3 {
  font-size: 1.18rem;
  color: #153c69;
  margin: 0 0 12px;
  line-height: 1.5
}

.challenge-card p {
  line-height: 1.85;
  margin: 0;
  color: #42566a
}

.challenge-note {
  font-size: .85rem;
  color: #68798a;
  margin: 22px 0 0
}

@media(max-width:760px) {
  .challenges {
    padding: 52px 0
  }

  .challenge-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .challenge-card {
    padding: 22px
  }
}

@media(prefers-reduced-motion:reduce) {
  .challenge-card {
    transition: none
  }

  .challenge-card:hover {
    transform: none
  }
}

/* 変化のあるチャレンジ特集：帯・吹き出し・写真フレーム・ずらし配置 */
.challenges {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 85px 0 90px;
  background: linear-gradient(145deg, #fff9e9 0%, #fffefb 42%, #fff1f7 100%)
}

.challenge-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .65
}

.blob-a {
  width: 400px;
  height: 400px;
  background: #ffedaf;
  left: -210px;
  top: -150px
}

.blob-b {
  width: 440px;
  height: 440px;
  background: #d9f7ef;
  right: -230px;
  bottom: -180px
}

.challenge-heading {
  display: grid;
  grid-template-columns: 105px 1fr 175px;
  gap: 24px;
  align-items: center;
  margin-bottom: 45px
}

.challenge-trophy {
  font-size: 76px;
  transform: rotate(-13deg);
  filter: drop-shadow(0 10px 12px #d79d3050)
}

.challenge-eyebrow {
  color: #eb6d91;
  font-weight: 900;
  letter-spacing: .15em;
  font-size: 13px
}

.challenge-heading h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(25px, 3.5vw, 41px);
  color: #123b6b;
  margin: 3px 0 9px;
  line-height: 1.35
}

.challenge-heading h2:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: #ffe27b;
  z-index: -1;
  transform: rotate(-1deg)
}

.challenge-heading p {
  max-width: 690px;
  margin: 0;
  color: #536476;
  font-weight: 600
}

.challenge-speech {
  background: #ff6195;
  color: #fff;
  font-weight: 900;
  text-align: center;
  line-height: 1.5;
  padding: 18px 12px;
  border-radius: 55% 45% 53% 47%;
  transform: rotate(8deg);
  box-shadow: 8px 9px 0 #ffd5e2
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start
}

.challenge-card {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 38px 38px 18px 18px;
  padding: 22px 20px 17px;
  box-shadow: 0 16px 34px #24426013;
  transition: transform .25s ease, box-shadow .25s ease
}

.challenge-card.junior {
  background: #ffe8f0;
  transform: rotate(-1.3deg)
}

.challenge-card.proken {
  background: #e0f4ff;
  transform: translateY(17px) rotate(.7deg)
}

.challenge-card.contest {
  background: #ddf9e9;
  transform: rotate(1.3deg)
}

.challenge-card:hover {
  box-shadow: 0 23px 38px #24426024
}

.challenge-card.junior:hover {
  transform: translateY(-7px) rotate(-1.3deg)
}

.challenge-card.proken:hover {
  transform: translateY(10px) rotate(.7deg)
}

.challenge-card.contest:hover {
  transform: translateY(-7px) rotate(1.3deg)
}

.challenge-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px
}

.challenge-medal {
  font-size: 43px;
  line-height: 1
}

.challenge-tag {
  display: inline-block;
  background: #fff9;
  padding: 2px 10px;
  border-radius: 99px;
  color: #6d6471;
  font-weight: 800;
  font-size: 11px
}

.challenge-card h3 {
  font-size: clamp(16px, 1.5vw, 21px);
  margin: 5px 0 0;
  color: #e94680;
  line-height: 1.45
}

.challenge-card.proken h3 {
  color: #0879ce
}

.challenge-card.contest h3 {
  color: #149968
}

.challenge-card p {
  font-size: 13px;
  color: #46586d;
  min-height: 100px;
  line-height: 1.85;
  margin: 9px 0 14px
}

.challenge-image-frame {
  position: relative;
  border: 7px solid #fff;
  border-radius: 17px;
  box-shadow: 0 8px 20px #1c47601e;
  overflow: hidden;
  aspect-ratio: 1.3
}

.challenge-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.challenge-sticker {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: block;
  border: 2px solid #fff;
  background: #ff5d91;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  padding: 10px 14px;
  border-radius: 60px;
  transform: rotate(-7deg);
  box-shadow: 0 3px 10px #0002
}

.proken .challenge-sticker {
  background: #168de0
}

.contest .challenge-sticker {
  background: #12a575
}

.challenge-note {
  margin: 42px 0 0;
  color: #68788a;
  font-size: 12px;
  line-height: 1.7
}

/* コースはカードの形・位置を少し変えて単調さを抑える */
@media(min-width:901px) {
  .course-card:nth-child(2) {
    transform: translateY(12px)
  }

  .course-card:nth-child(4) {
    transform: translateY(12px)
  }
}

.course-card {
  border-radius: 28px 28px 12px 12px;
  overflow: hidden
}

.course-card:nth-child(2) {
  border-radius: 12px 30px 12px 30px
}

.course-card:nth-child(3) {
  border-radius: 30px 12px 30px 12px
}

.course-photo {
  border-radius: 20px 20px 8px 8px
}

@media(max-width:900px) {
  .challenge-heading {
    grid-template-columns: 75px 1fr;
    gap: 12px
  }

  .challenge-trophy {
    font-size: 57px
  }

  .challenge-speech {
    display: none
  }

  .challenge-grid {
    gap: 12px
  }

  .challenge-card {
    padding: 15px 12px
  }

  .challenge-card p {
    min-height: 135px;
    font-size: 12px
  }

  .challenge-card-top {
    display: block;
    min-height: 115px
  }

  .challenge-medal {
    font-size: 32px
  }

  .challenge-tag {
    font-size: 10px
  }
}

@media(max-width:720px) {
  .challenges {
    padding: 55px 0 62px
  }

  .challenge-grid {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .challenge-card.junior,
  .challenge-card.proken,
  .challenge-card.contest {
    transform: none
  }

  .challenge-card.junior:hover,
  .challenge-card.proken:hover,
  .challenge-card.contest:hover {
    transform: translateY(-4px)
  }

  .challenge-card {
    padding: 20px;
    border-radius: 30px 30px 16px 16px
  }

  .challenge-card-top {
    display: flex;
    min-height: unset
  }

  .challenge-card p {
    min-height: unset;
    font-size: 14px
  }

  .challenge-image-frame {
    aspect-ratio: 1.6
  }

  .challenge-heading {
    margin-bottom: 25px
  }

  .challenge-heading h2 {
    font-size: 25px
  }

  .challenge-heading p {
    font-size: 13px
  }

  .challenge-note {
    margin-top: 24px
  }
}

@media(prefers-reduced-motion:reduce) {

  .challenge-card,
  .course-card {
    transition: none !important
  }

  .challenge-card:hover {
    transform: none !important
  }
}

/* 検定・コンテストのコメントが写真枠から切れないように修正 */
.challenge-image-frame {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  overflow: visible;
  background: #fff;
  padding: 0 0 10px;
  align-items: center
}

.challenge-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 10px 10px 3px 3px;
  flex: none
}

.challenge-sticker,
.challenge-card .challenge-sticker {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  top: auto;
  display: block;
  max-width: calc(100% - 20px);
  width: max-content;
  margin: -5px auto 0;
  padding: 9px 18px;
  transform: rotate(-3deg);
  white-space: normal;
  overflow-wrap: anywhere;
  z-index: 1
}

@media(max-width:720px) {
  .challenge-image-frame {
    aspect-ratio: auto
  }

  .challenge-image-frame img {
    aspect-ratio: 1.6
  }
}

/* 画像内に焼き込まれた切れた文字を使わず、コメントをHTMLで独立表示 */
.challenge-image-frame.fixed-comment {
  display: block;
  overflow: visible;
  aspect-ratio: auto;
  padding: 7px;
  background: #fff;
  border: 0;
  border-radius: 18px;
}

.fixed-comment .challenge-photo-viewport {
  height: 200px;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.fixed-comment .challenge-photo-viewport img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: auto;
}

.fixed-comment.junior-photo .challenge-photo-viewport img {
  object-position: center top;
  object-fit: cover;
  height: auto;
  min-height: 100%;
  width: 100%;
}

.fixed-comment .challenge-caption {
  position: static;
  min-height: 0;
  margin: 0;
  padding: 13px 8px 9px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #e94680;
}

.fixed-comment.contest-photo .challenge-caption {
  color: #12845c;
}

@media(max-width:720px) {
  .fixed-comment .challenge-photo-viewport {
    height: clamp(190px, 53vw, 300px)
  }
}

.fixed-comment.junior-photo .challenge-photo-viewport {
  height: auto;
  aspect-ratio: 1.65;
}

.fixed-comment.junior-photo .challenge-photo-viewport img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Refreshed five-values icons and compact, balanced information panels */
.reason-grid article {
  border-radius: 24px 24px 34px 18px;
  padding: 14px 13px 19px;
  border: 1px solid #e8f0f7
}

.reason-grid article:nth-child(even) {
  border-radius: 34px 18px 24px 24px
}

.reason-img {
  height: auto !important;
  aspect-ratio: 240/210;
  object-fit: contain !important;
  border-radius: 22px !important;
  max-height: 190px
}

.reason-grid h3 {
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 5px
}

.reason-grid p {
  font-size: 14px;
  line-height: 1.75
}

.info {
  padding: 38px 0 42px
}

.info-grid {
  align-items: start
}

.info-grid>.panel {
  height: auto;
  min-height: 0;
  align-self: start
}

#price,
#flow {
  padding-bottom: 19px
}

#price table {
  margin-bottom: 0
}

#flow ol {
  margin-bottom: 0
}

#flow li:last-child {
  border-bottom: 0;
  padding-bottom: 0
}

@media(max-width:900px) {
  .info-grid {
    align-items: stretch
  }

  .reason-img {
    max-height: 185px
  }
}

/* Header navigation: prevent the final links from wrapping or escaping the header */
.site-header .header-inner {
  gap: 18px;
  min-width: 0
}

.site-header .brand {
  flex: 0 0 auto
}

.site-header .nav {
  min-width: 0;
  gap: clamp(9px, 1.3vw, 19px);
  flex-wrap: nowrap;
  justify-content: flex-end
}

.site-header .nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4
}

.site-header .nav-contact {
  padding: 10px 14px
}

@media (max-width:1180px) {
  .site-header .header-inner {
    position: relative
  }

  .site-header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    box-shadow: 0 12px 20px #1234561c;
    border: 1px solid #e5edf3;
    border-radius: 0 0 16px 16px
  }

  .site-header .nav.open {
    display: flex
  }

  .site-header .nav a {
    display: block;
    padding: 12px 14px;
    text-align: left;
    white-space: normal
  }

  .site-header .nav-contact {
    text-align: center !important;
    margin-top: 6px
  }

  .site-header .menu {
    display: block;
    flex: 0 0 auto
  }
}

/* 2026-10-17: header alignment - a single, stable flex row */
.site-header .header-inner {
  width: min(1500px, calc(100% - 56px));
  min-height: 96px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 30px;
  padding: 0;
}

.site-header .brand {
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
}

.site-header .nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.5vw, 25px);
  position: static;
  width: auto;
  padding: 0;
  margin: 0 0 0 auto;
  border: 0;
  box-shadow: none;
  overflow: visible;
  max-height: none;
}

.site-header .nav a:not(.nav-contact) {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  color: #163653;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.5;
}

.site-header .nav a:not(.nav-contact):hover {
  color: #0879ce;
}

.site-header .nav a.nav-contact {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 20px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  color: white;
}

.site-header .menu {
  display: none;
}

@media (max-width: 1240px) {
  .site-header .header-inner {
    width: min(100% - 36px, 1160px);
    min-height: 82px;
    position: relative;
  }

  .site-header .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(360px, 100%);
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid #e5edf3;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 14px 26px #16365322;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  .site-header .nav.open {
    display: flex;
  }

  .site-header .nav a:not(.nav-contact) {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
  }

  .site-header .nav a.nav-contact {
    margin-top: 8px;
    padding: 12px 16px;
  }

  .site-header .menu {
    display: block;
    flex: 0 0 auto;
  }
}

/* Anchor destination fix: each section has a different vertical position. */
html {
  scroll-padding-top: 105px;
}

.info .info-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.info .info-grid>.panel {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 105px;
}

#price table {
  font-size: clamp(12px, 1.3vw, 15px);
}

#price th,
#price td {
  padding: 12px 8px;
}

@media (min-width: 800px) {
  #flow ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  #flow li {
    border-bottom: 0;
    padding: 14px;
    border-radius: 14px;
    background: #f4faff;
    align-items: flex-start;
  }

  #flow li span {
    min-width: 0;
  }

  #access .embedded-map {
    min-height: 380px;
  }
}

@media (max-width: 799px) {
  html {
    scroll-padding-top: 94px;
  }

  .info .info-grid>.panel {
    scroll-margin-top: 94px;
  }

  #price th,
  #price td {
    padding: 8px 4px;
  }
}

/* Visible keyboard focus when arriving via section navigation */
.info .panel:target {
  outline: 3px solid #a8dbfa;
  outline-offset: 3px;
}
p.price-notice {
  font-size: 16px !important;
  color: #ff4081 !important;
  font-weight: 500 !important;
  text-align: center;
  background-color: #fff0f5; /* 薄いピンクの背景 */
  padding: 15px;             /* 内側の余白 */
  border: 2px solid #ff4081; /* ピンクの枠線 */
  border-radius: 12px;       /* 角丸 */
  margin-top: 20px;          /* 上の余白 */
}
a[href^="tel:"] {
  text-decoration: none;
}
.instagram-link {
  display: inline-block;
  background: #E4405F;
  color: white;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.instagram-link:hover {
  background: #C13584;
  color: white;
}
.instagram-container {
  text-align: center;
  margin: 20px 0;
}
.instagram-container {
  text-align: center;
  margin: 20px 0;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: #E4405F;
  color: white;
  font-size: 24px;       /* ① 文字の大きさ */
  font-weight: 500;
  padding: 18px 36px;    /* ② ボタンの縦・横の余白 */
  border-radius: 12px;   /* ③ 角の丸み */
  text-decoration: none;
  transition: 0.3s;
}

.instagram-link:hover {
  background: #C13584;
  color: white;
}

.instagram-link svg {
  width: 32px;          /* ④ アイコンの横幅 */
  height: 32px;         /* ④ アイコンの高さ */
  flex-shrink: 0;
}