/* 放課後等デイサービス SOLANE ページ専用スタイル（page-afterschool.php でのみ読み込み） */
:root {
  --blue: #2f6f6a;
  --blue-dark: #24524e;
  --navy: #2f5f5b;
  --brown: #4a3a30;
  --sky: #e5efed;
  --sky-2: #d2e4e1;
  --pale: #f4f3ef;
  --yellow: #e3d3a8;
  --yellow-dark: #d2bd8a;
  --green: #efe9df;
  --purple: #e5efed;
  --text: #4a3a30;
  --muted: #77695e;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(47, 111, 106, .12);
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sp { display: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 2em;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(47, 111, 106, .3); }
.btn--blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 16px rgba(210, 189, 138, .45); }
.btn--yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 2px 16px rgba(47, 95, 91, .1); }

.header-inner {
  height: 100%;
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
  text-decoration: none; line-height: 1.1;
}
.logo-mark { grid-row: 1 / 3; width: 52px; height: 52px; object-fit: contain; }
.logo--footer { grid-template-columns: auto; }
.logo-sub { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .12em; }
.logo-main { font-family: "Quicksand", sans-serif; font-size: 28px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  position: relative;
  font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 3px; background: var(--blue);
  transform: scaleX(0); transition: transform .25s;
}
.main-nav a:not(.btn):hover::after,
.main-nav .is-current > a::after { transform: scaleX(1); }
.main-nav .btn { padding: .6em 1.6em; font-size: 15px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--blue);
  position: relative; cursor: pointer;
}
.hamburger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (first view) ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, #bcd7d2 0%, #d8e8e5 38%, #edf3f1 70%, #f7f6f2 100%);
  overflow: hidden;
}
.hero-stage {
  position: relative;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 820px);
}

/* Photo on the right, its left edge melting into the sky */
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 62%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
          mask-image: linear-gradient(to right, transparent 0%, #000 26%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; filter: saturate(.78); }

/* Soft clouds behind the copy */
.hero-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 14% at 18% 22%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(ellipse 26% 12% at 36% 58%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(ellipse 22% 10% at 8% 74%, rgba(255, 255, 255, .6), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
  padding: clamp(28px, 3.4vw, 56px) 0 clamp(170px, 14vw, 210px);
}
.hero-copy { width: min(700px, 58%); }

.hero-title {
  position: relative;
  font-family: "Klee One", "Zen Maru Gothic", cursive;
  font-weight: 600;
  font-size: clamp(30px, 3.7vw, 56px);
  line-height: 1.38;
  letter-spacing: .04em;
  color: #2f6f6a;
  transform: rotate(-5deg);
  transform-origin: left bottom;
  margin: 0 0 clamp(20px, 2.4vw, 36px);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .7);
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line:nth-child(3) { padding-left: .4em; }
.hero-title .big { font-size: 1.12em; }
.hero-title .mark {
  background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 88%, transparent 88%);
  border-radius: 4px;
}
/* Little accent strokes on the left of the title */
.hero-title::before {
  content: ""; position: absolute; left: -.9em; top: 1.3em;
  width: .6em; height: .9em;
  background:
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 0 50% / 100% 3px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 0 100% / 100% 3px no-repeat;
  transform: rotate(-20deg);
  opacity: .9;
}

.hero-plane {
  position: absolute; z-index: 2;
  left: 33%; top: 5%;
  width: clamp(150px, 16vw, 240px);
  color: var(--blue);
}

.hero-lead {
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  color: var(--navy);
  line-height: 2.1;
  margin-bottom: clamp(22px, 2.4vw, 34px);
  text-shadow: 0 0 12px rgba(255, 255, 255, .9), 0 0 2px #fff;
}
.hero-cta { padding: 1em 2.6em; font-size: clamp(14px, 1.1vw, 16px); }

/* Decorative shapes */
.hero-deco { position: absolute; z-index: 2; pointer-events: none; }
.hero-deco--blob-l { left: -70px; top: 7%; width: 170px; height: 110px; border-radius: 40% 60% 55% 45% / 50% 55% 45% 50%; background: #a8ccc6; opacity: .55; }
.hero-deco--blob-l2 { left: -120px; top: 40%; width: 180px; height: 260px; border-radius: 50%; background: #8dbab3; opacity: .55; }
.hero-deco--leaf { right: 3%; bottom: 70px; width: clamp(40px, 4vw, 64px); }
.hero-deco--rays { right: 30%; top: 24%; width: clamp(50px, 5vw, 80px); }

/* White wave with the four points */
.hero-points {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: clamp(50px, 5vw, 80px) 0 clamp(18px, 2vw, 30px);
}
.hero-points::before {
  content: ""; position: absolute; inset: 0;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 120C140 150 260 60 470 40 700 18 900 70 1100 64 1260 60 1360 20 1440 0V200H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 120C140 150 260 60 470 40 700 18 900 70 1100 64 1260 60 1360 20 1440 0V200H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero-points ul {
  position: relative;
  list-style: none; margin: 0 auto; padding: 0;
  width: min(980px, 100% - 40px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.hero-points a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; text-align: center;
  font-size: clamp(13px, 1.05vw, 15px); font-weight: 700; line-height: 1.6;
  color: var(--blue);
  transition: transform .25s;
}
.hero-points a:hover { transform: translateY(-4px); }
.hero-points .service-icon { width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); margin: 0; }
.hero-points .service-icon svg { width: 52%; height: 52%; }

/* Entrance animation */
.hero-anim { opacity: 0; animation: heroUp .9s cubic-bezier(.2, .7, .3, 1) forwards; }
.hero-photo.hero-anim { animation-name: heroFade; animation-duration: 1.4s; }
.hero-anim.d1 { animation-delay: .15s; }
.hero-anim.d2 { animation-delay: .35s; }
.hero-anim.d3 { animation-delay: .55s; }
.hero-anim.d4 { animation-delay: .75s; }
.hero-title.hero-anim { animation-name: heroTitle; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroTitle { from { opacity: 0; transform: rotate(-5deg) translateY(18px); } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes heroFade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.hero-plane path.trail { stroke-dasharray: 6 7; }

@media (max-width: 900px) {
  .hero-stage { min-height: 0; display: flex; flex-direction: column; }
  .hero-inner { padding: 36px 0 0; order: 1; }
  .hero-copy { width: 100%; }
  .hero-title { font-size: clamp(26px, 7.4vw, 44px); }
  .hero-title .line { white-space: normal; }
  .hero-title .big { display: inline-block; }
  .hero-title::before { display: none; }
  .hero-plane { left: auto; right: 4%; top: 2%; width: 120px; }
  .hero-photo {
    position: relative; order: 2;
    width: 100%; height: clamp(300px, 78vw, 560px);
    margin-top: -40px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }
  .hero-deco--rays, .hero-deco--blob-l2 { display: none; }
    .hero-points { position: relative; order: 3; margin-top: -90px; }
  .hero-points ul { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section--sky { background: var(--sky); padding: 150px 0; }
.section--pale { background: var(--pale); }

.eyebrow {
  font-family: "Quicksand", sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: .2em;
  color: var(--blue); text-transform: uppercase;
  margin-bottom: .4em;
  display: flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--yellow); }
.eyebrow--light { color: var(--white); }

.heading { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); margin-bottom: 24px; }
.heading--light { color: var(--white); }
.lead { color: var(--muted); margin-bottom: 48px; }
.lead--light { color: rgba(255, 255, 255, .92); }

/* waves */
.wave { position: absolute; left: 0; right: 0; height: 70px; background: var(--white); pointer-events: none; }
.wave--top {
  top: -1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v28c-180 30-360 42-560 20S440 0 260 18 60 52 0 40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v28c-180 30-360 42-560 20S440 0 260 18 60 52 0 40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.wave--bottom {
  bottom: -1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70h1440V30c-160-24-340-34-540-8S520 66 320 50 80 18 0 34z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70h1440V30c-160-24-340-34-540-8S520 66 320 50 80 18 0 34z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.wave--white { background: var(--white); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text .heading { font-size: clamp(28px, 3.8vw, 42px); }
.about-text p:not(.eyebrow) { color: var(--muted); }

.about-values { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.about-values li {
  position: relative;
  padding: 26px 28px 22px 92px;
  background: var(--pale);
  border-radius: var(--radius);
  border: 2px solid var(--sky-2);
}
.value-num {
  position: absolute; left: 24px; top: 24px;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Quicksand", sans-serif; font-weight: 700;
  background: var(--yellow); color: var(--navy);
}
.about-values h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.about-values p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); }
.service-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.service-card p { font-size: 14px; color: var(--muted); text-align: left; margin: 0; }

.service-icon {
  width: 92px; height: 92px; margin: 0 auto 20px;
  border-radius: 50%; display: grid; place-items: center;
}
.service-icon svg { width: 48px; height: 48px; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.service-icon .fill { fill: var(--blue); stroke: none; }
.c-blue { background: var(--sky-2); }
.c-green { background: var(--green); }
.c-purple { background: var(--purple); }
.c-sky { background: var(--sky); border: 2px solid var(--sky-2); }

.schedule {
  margin-top: 64px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 48px 36px;
  box-shadow: var(--shadow);
}
.schedule-title { font-size: 22px; color: var(--navy); margin-bottom: 28px; }
.schedule-title span { font-size: 14px; color: var(--muted); font-weight: 500; }
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 13px;
  border-top: 3px dashed var(--sky-2);
}
.timeline li { position: relative; text-align: center; padding-top: 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 50%; top: 4px; translate: -50% 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--blue);
}
.timeline .time { display: block; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 20px; color: var(--blue); }
.timeline .what { display: block; font-size: 14px; line-height: 1.6; }
.note { font-size: 13px; color: var(--muted); margin: 28px 0 0; }

/* ---------- Info ---------- */
.info-card {
  border-radius: var(--radius);
  border: 2px solid var(--sky-2);
  padding: 12px 44px;
}
.info-list { margin: 0; }
.info-list > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 22px 0;
  border-bottom: 2px dotted var(--sky-2);
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { font-weight: 700; color: var(--blue); }
.info-list dd { margin: 0; }

/* ---------- Flow ---------- */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.flow li {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 50%; translate: 0 -50%;
  border: 8px solid transparent; border-left: 10px solid var(--blue);
  z-index: 1;
}
.flow-step {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 13px;
  color: var(--blue); letter-spacing: .1em;
}
.flow-step b { font-size: 30px; }
.flow h3 { font-size: 17px; color: var(--navy); margin: 6px 0 10px; }
.flow p { font-size: 14px; color: var(--muted); text-align: left; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 16px; }
.faq details {
  background: var(--pale);
  border-radius: 18px;
  border: 2px solid var(--sky-2);
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  position: relative;
  padding: 20px 60px 20px 64px;
  font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 22px; top: 50%; translate: 0 -50%;
  font-family: "Quicksand", sans-serif; font-size: 22px; color: var(--blue);
}
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  background: var(--blue); color: var(--white); font-size: 20px;
  transition: rotate .3s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  position: relative;
  margin: 0; padding: 0 28px 22px 64px; color: var(--muted);
}
.faq details p::before {
  content: "A"; position: absolute; left: 24px; top: -2px;
  font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 22px; color: var(--yellow-dark);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: 150px 0 110px;
  background: linear-gradient(160deg, #3d9a92 0%, var(--blue) 50%, var(--blue-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.contact::before,
.contact::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.contact::before { width: 420px; height: 420px; right: -120px; top: 80px; }
.contact::after { width: 260px; height: 260px; left: -80px; bottom: -60px; }
.contact .container { position: relative; z-index: 1; }
.contact .eyebrow::before { background: var(--yellow); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: stretch; }
.contact-tel,
.contact-map {
  background: var(--white); color: var(--text);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 16px 40px rgba(36, 60, 56, .2);
}
.contact-label { font-weight: 700; color: var(--navy); font-size: 17px; }
.tel-num {
  display: block;
  font-family: "Quicksand", sans-serif; font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px); color: var(--blue);
  text-decoration: none; letter-spacing: .04em;
}
.contact-note { font-size: 13px; color: var(--muted); }
.contact-addr { font-size: 14px; margin: 24px 0 0; padding-top: 20px; border-top: 2px dotted var(--sky-2); }
.contact-links { display: grid; gap: 12px; margin-top: 28px; }
.contact-links .btn { width: 100%; }

.contact-map { display: flex; flex-direction: column; gap: 16px; }
.contact-map .contact-label { margin: 0; }
.map-frame { flex: 1; min-height: 280px; border-radius: 16px; overflow: hidden; border: 2px solid var(--sky-2); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
.map-btn { align-self: flex-start; }

.btn--outline { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn--outline:hover { background: var(--sky); transform: translateY(-2px); }
.btn--insta { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); color: var(--white); box-shadow: 0 6px 16px rgba(225, 48, 108, .3); }
.btn--insta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--white); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo--footer .logo-sub,
.logo--footer .logo-main { color: var(--white); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-nav a { text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-insta { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); transition: background .2s; }
.footer-insta:hover { background: rgba(255, 255, 255, .25); }
.footer-insta svg { width: 22px; height: 22px; }
.copyright { text-align: center; font-size: 12px; opacity: .6; margin: 36px 0 0; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy);
  font-weight: 700; font-size: 20px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal,
.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in,
.reveal-group.is-in > * { opacity: 1; transform: none; }
.reveal-group.is-in > *:nth-child(2) { transition-delay: .1s; }
.reveal-group.is-in > *:nth-child(3) { transition-delay: .2s; }
.reveal-group.is-in > *:nth-child(4) { transition-delay: .3s; }
.reveal-group.is-in > *:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-group > *, .hero-anim { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .main-nav ul { gap: 18px; }
  .main-nav a:not(.btn) { font-size: 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .flow li { display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; text-align: left; column-gap: 16px; padding: 22px 24px; }
  .flow-step { grid-row: 1 / 3; flex-direction: column; align-items: center; justify-content: center; border-right: 2px dotted var(--sky-2); }
  .flow h3 { margin: 0 0 4px; }
  .flow li:not(:last-child)::after { right: auto; left: 60px; top: auto; bottom: -18px; translate: 0 0; border: 8px solid transparent; border-top: 10px solid var(--blue); }
}

/* On tablet/mobile the nav drawn in the image is too small to tap,
   so the real header is always shown and sits above the image. */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .hamburger { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(47, 95, 91, .12);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; }
  .main-nav li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--sky); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .nav-cta .btn { width: 100%; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 6px; }
  .timeline::before { left: 10px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 3px dashed var(--sky-2); }
  .timeline li { display: flex; align-items: baseline; gap: 16px; text-align: left; padding: 6px 0 6px 40px; }
  .timeline li::before { left: 11px; top: 12px; }
  .timeline .time { min-width: 64px; font-size: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sp { display: inline; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .header-inner { width: calc(100% - 32px); }
  .logo-main { font-size: 24px; }
  .section { padding: 80px 0; }
  .section--sky, .contact { padding: 110px 0 90px; }
  .wave { height: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .schedule { padding: 32px 22px 26px; }
  .info-card { padding: 4px 22px; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .contact-tel, .contact-map { padding: 28px 22px; }
  .map-btn { align-self: stretch; }
  .faq summary { padding: 18px 52px 18px 52px; font-size: 15px; }
  .faq summary::before { left: 18px; }
  .faq summary::after { right: 14px; }
  .faq details p { padding: 0 20px 20px 52px; font-size: 14px; }
  .faq details p::before { left: 19px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Fixed side buttons ---------- */
.side-cta {
  position: fixed; right: 0; top: 50%; translate: 0 -50%;
  z-index: 95;
  display: flex; flex-direction: column; gap: 8px;
}
.side-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
  padding: 22px 14px;
  border-radius: 16px 0 0 16px;
  font-weight: 700; font-size: 15px; letter-spacing: .18em;
  text-decoration: none;
  box-shadow: -4px 6px 16px rgba(47, 95, 91, .18);
  transition: padding .2s, background .2s;
}
.side-btn:hover { padding-right: 20px; }
.side-btn--contact { background: var(--blue); color: var(--white); }
.side-btn--contact:hover { background: var(--blue-dark); }
.side-btn--stay { background: var(--yellow); color: var(--navy); }
.side-btn--stay:hover { background: var(--yellow-dark); }
.side-icon { writing-mode: horizontal-tb; font-size: 18px; line-height: 1; }
.side-icon svg { width: 18px; height: 18px; display: block; }
.side-btn--insta { background: linear-gradient(200deg, #f9a03f, #e1306c 50%, #833ab4); color: var(--white); letter-spacing: .1em; }
.side-btn--insta:hover { filter: brightness(1.06); }

@media (max-width: 600px) {
  .side-btn { padding: 14px 8px; font-size: 12px; gap: 6px; letter-spacing: .1em; }
  .side-btn:hover { padding-right: 8px; }
  .side-icon { font-size: 14px; }
}

/* ==========================================================
   WordPress additions
   ========================================================== */
.timeline { grid-template-columns: repeat(var(--cols, 6), 1fr); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }

/* Admin bar offset for the fixed header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 900px) { .admin-bar .main-nav { top: calc(var(--header-h) + 46px); } }
@media (min-width: 783px) and (max-width: 900px) { .admin-bar .main-nav { top: calc(var(--header-h) + 32px); } }

/* Current item in a menu assigned under 外観 → メニュー */
.main-nav .current-menu-item > a::after { transform: scaleX(1); }
