:root {
  --ink: #173246;
  --muted: #607789;
  --blue: #1597cf;
  --blue-dark: #087aa8;
  --sky: #eaf8fd;
  --sky-2: #f5fbfe;
  --line: #d8e8f1;
  --green: #78bd2a;
  --yellow: #f6b91b;
  --white: #fff;
  --shadow: 0 14px 36px rgba(18, 82, 118, 0.12);
  --radius: 8px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 31px;
  line-height: 1.24;
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.42;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.45;
}

p {
  color: var(--muted);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 12px 16px 6px;
  background: rgba(255, 255, 255, 0.94);
}

.logo {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
}

.logo img {
  width: min(100%, 335px);
}

.hero {
  padding: 10px 20px 34px;
  background: linear-gradient(180deg, #ffffff 0%, #edf9fe 100%);
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.hero__copy {
  order: 1;
}

.hero__visual {
  position: relative;
  order: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 82, 118, 0.08);
}

.hero__visual img {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.hero__badge {
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero__badge strong,
.hero__badge span {
  display: block;
  line-height: 1.45;
}

.hero__badge span {
  color: var(--muted);
  font-size: 12px;
}

.label,
.eyebrow {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 13px 0 0 var(--yellow);
}

.hero__lead {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.75;
}

.hero__actions {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 8px;
  margin-top: 16px;
}

.reservation-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.25;
}

.button svg,
.feature-card__icon svg,
.flow-item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(21, 151, 207, 0.24);
}

.button--sub {
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
}

.hero__stats {
  max-width: var(--max);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero__stats div {
  min-height: 68px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.hero__stats strong {
  display: block;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.35;
}

.hero__stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.photo-strip {
  max-width: var(--max);
  margin: -18px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-strip img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 58px 20px;
}

.section--blue {
  background: var(--sky-2);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 24px;
}

.section__head p {
  margin-bottom: 0;
}

.intro .section__inner {
  display: grid;
  gap: 22px;
}

.image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 83, 117, 0.06);
}

.feature-card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--sky);
}

.feature-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.split-section {
  display: grid;
  background: #fff;
}

.split-section__image img {
  height: 330px;
  object-fit: cover;
  object-position: 58% center;
}

.split-section__body {
  padding: 34px 20px 54px;
  max-width: 560px;
}

.course-groups {
  display: grid;
  gap: 14px;
}

.course-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 92, 128, 0.08);
}

.course-group > summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 50px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f1fbfe 100%);
}

.course-group > summary::-webkit-details-marker {
  display: none;
}

.course-group > summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 18px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  line-height: 1;
}

.course-group[open] > summary::after {
  content: "-";
  background: var(--green);
}

.course-group strong,
.course-group small {
  display: block;
}

.course-group small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.course-list {
  display: grid;
  gap: 12px;
  padding: 0 14px 16px;
}

.course-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.course-card--recommend {
  border-color: #b7dfec;
  box-shadow: inset 4px 0 0 var(--blue);
}

.course-card__tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--sky);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #755600;
  background: #fff7df;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.price span {
  font-size: 12px;
}

.course-card > p:last-of-type {
  margin-bottom: 0;
  font-size: 15px;
}

.course-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.course-detail summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}

.course-detail ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #755d16;
  background: #fffdf3;
  font-size: 13px;
  line-height: 1.7;
}

.official-link-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #bfe5f2;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);
  box-shadow: 0 10px 26px rgba(18, 92, 128, 0.08);
}

.official-link-card p {
  margin-bottom: 14px;
}

.official-link-card .button {
  width: 100%;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 800;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doctor {
  display: grid;
  gap: 18px;
}

.doctor__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doctor__photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 58% center;
}

.doctor__body {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.doctor__body h2 span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.profile {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.profile li {
  position: relative;
  padding-left: 16px;
}

.profile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.history {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.history summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 800;
}

.history dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 12px;
  margin: 12px 0 0;
}

.history dt {
  color: var(--blue-dark);
  font-weight: 800;
}

.history dd {
  margin: 0;
}

.message {
  padding: 56px 20px;
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%);
}

.message__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--sky);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.message__inner p:last-child {
  margin-bottom: 0;
}

.flow-list {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.flow-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 13px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-item > span {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--sky);
}

.flow-item > span::after {
  content: counter(step);
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.flow-item h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.flow-item p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  gap: 12px;
}

.guide-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.guide-card p {
  margin-bottom: 0;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 83, 117, 0.06);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 48px 16px 18px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  line-height: 1;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--sky);
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
  color: #fff;
  background: var(--green);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px 50px;
  font-size: 15px;
}

.access__inner {
  display: grid;
  gap: 20px;
  align-items: center;
}

.access img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-panel {
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
  box-shadow: var(--shadow);
}

.map-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.map-panel__head h3 {
  margin: 0;
  font-size: 17px;
}

.map-panel__head a {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.site-footer {
  padding: 30px 20px 42px;
  color: rgba(255, 255, 255, 0.82);
  background: #143244;
  font-size: 13px;
}

.site-footer img {
  max-width: 320px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
}

.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.floating-cta {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -10px 28px rgba(24, 81, 112, 0.12);
  backdrop-filter: blur(12px);
}

.floating-cta .button {
  min-height: 52px;
  padding: 10px 8px;
}

main {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 780ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms),
    transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms),
    filter 780ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (min-width: 760px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .site-header {
    padding: 18px 32px 10px;
  }

  .hero {
    padding: 36px 32px 66px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 26px;
  }

  .hero__copy,
  .hero__visual {
    order: initial;
  }

  .hero__visual {
    width: min(100%, 360px);
    display: block;
    margin: 0 auto;
    padding: 10px;
    border: 0;
    border-radius: 30px 30px 8px 8px;
    box-shadow: var(--shadow);
  }

  .hero__visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 22px 22px 8px 8px;
  }

  .hero__badge {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
  }

  .hero__actions {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 32px;
  }

  .section {
    padding: 78px 32px;
  }

  .intro .section__inner,
  .doctor,
  .access__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .feature-list,
  .flow-list,
  .guide-grid,
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
  }

  .split-section__image img {
    height: 100%;
    min-height: 460px;
  }

  .split-section__body {
    padding: 76px 48px;
    align-self: center;
  }

  .course-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .course-group:nth-child(3) .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message {
    padding: 78px 32px;
  }

  .map-panel {
    grid-column: 1 / -1;
  }

  .map-panel iframe {
    height: 380px;
  }

  .floating-cta {
    left: 50%;
    right: auto;
    width: 560px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }
}

/* 2026-10-30 広告用の修正 */
.hero-price { margin: 18px 0 4px; padding: 14px 18px; background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); max-width: 420px; }
.hero-price p { margin: 0; }
.hero-price__tag { display: inline-block; padding: 2px 10px; background: var(--yellow); color: var(--ink); font-size: 0.8rem; font-weight: 700; border-radius: 99px; }
.hero-price__name { margin-top: 6px !important; font-weight: 700; }
.hero-price__value { font-size: 2rem; font-weight: 800; color: var(--blue-dark); line-height: 1.2; }
.hero-price__value span, .hero-price__note { font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.course-featured { margin-bottom: 24px; border-width: 2px; }
.course-featured__list { margin: 8px 0 16px; padding-left: 1.2em; color: var(--muted); font-size: 0.9rem; }
.reserve-form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.reserve-form label { display: block; font-weight: 700; }
.reserve-form label input, .reserve-form label select, .reserve-form label textarea { margin-top: 6px; }
.reserve-form input, .reserve-form select, .reserve-form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid var(--line); border-radius: 6px; width: 100%; box-sizing: border-box; }
.reserve-form .req, .reserve-form .opt { display: inline-block; margin-left: 8px; font-size: 0.75rem; padding: 1px 8px; border-radius: 4px; color: var(--white); background: #d9534f; font-weight: 700; }
.reserve-form .opt { background: var(--muted); }
.reserve-form__notes { margin: 0; font-size: 0.85rem; color: var(--muted); }
.reserve-form button { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hidden-field { position: absolute; left: -9999px; }
.reserve-alt { justify-content: center; margin-top: 18px; }
.hero__stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
