/* ==========================================================================
   K-ストーリー 韓国語教室 — Design Tokens & Base
   ========================================================================== */

:root {
  --color-primary: #FF6B9B;
  --color-primary-dark: #E85A88;
  --color-primary-light: #FFF0F5;
  --color-primary-pale: #FDEFF4;
  --color-text: #2C2C2C;
  --color-text-muted: #221D26;
  --color-text-light: #221D26;
  --color-white: #FFFFFF;
  --color-border: #F0E4EA;
  --color-faq-bg: #FAF7F8;

  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-script: "Caveat", cursive;

  --fs-body: 16px;
  --lh-body: 1.7;
  --fw-heading: 700;
  --fw-medium: 500;

  --section-pad: 80px;
  --container-max: 1120px;
  --container-narrow: 720px;
  --container-pad: 24px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 6px 28px rgba(44, 44, 44, 0.07);
  --shadow-soft: 0 2px 12px rgba(255, 107, 155, 0.12);

  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;

  --content-inset: max(var(--container-pad), calc((100vw - var(--container-max) - var(--container-pad) * 2) / 2));
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: clip;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.l-container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.l-container--narrow {
  max-width: calc(var(--container-narrow) + var(--container-pad) * 2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.br-sp {
  display: none;
}

.text-accent {
  color: var(--color-primary);
}

/* Fade-in-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(255, 107, 155, 0.35);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 14px 36px;
  font-size: 15px;
}

.btn--outline:hover {
  background: var(--color-primary-light);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn--white:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 13px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--transition),
              backdrop-filter var(--transition),
              -webkit-backdrop-filter var(--transition);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-self: flex-start;
  flex-shrink: 0;
  padding-top: 12px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.header__logo:hover {
  opacity: 0.85;
}

.header__logo-img {
  display: block;
  height: 96px;
  width: auto;
  object-fit: contain;
}

/* logo swap on scroll */
.header__logo-img--scrolled {
  display: none;
  height: 44px;
}

.header.is-scrolled .header__logo-img--default {
  display: none;
}

.header.is-scrolled .header__logo-img--scrolled {
  display: block;
}

.header.is-scrolled .header__logo {
  align-self: center;
  padding-top: 0;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1002;
}

.header__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  transform-origin: center;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.header__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  align-self: flex-start;
  padding-top: 30px;
}

.header.is-scrolled .header__nav {
  align-self: center;
  padding-top: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
  text-align: center;
  line-height: 1.3;
}

.header__nav-ko {
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.header__nav-ja {
  font-size: 15px;
  white-space: nowrap;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link:hover .header__nav-ko {
  color: var(--color-primary-dark);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link.is-current {
  color: var(--color-primary);
}

.header__nav-link.is-current .header__nav-ko {
  color: var(--color-primary-dark);
}

.header__nav-link.is-current::after {
  width: 100%;
}

/* ==========================================================================
   Page layout (index top page)
   ========================================================================== */

.page-main {
  position: relative;
}

.page-main .l-container,
.page-main .cta__inner {
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: var(--section-pad);
  overflow: visible;
  background: var(--color-white);
}

.hero__bg-shape {
  display: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  align-items: center;
}

.hero__script {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.hero__script-text {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 60px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  transform: translate(-30px, 30px) rotate(-14deg);
  transform-origin: left bottom;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__bubble {
  display: block;
  flex-shrink: 0;
  height: 46px;
  width: auto;
  margin-bottom: 6px;
  transform: translate(15px, 35px);
}

.hero__title {
  font-size: clamp(36px, 5vw, 50px);
  font-weight: var(--fw-heading);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero__title-line--nowrap {
  white-space: nowrap;
}

.hero__title-em {
  font-size: 1.2em;
  letter-spacing: 0.06em;
}

.hero__title .text-accent {
  font-size: 1.32em;
  letter-spacing: 0.06em;
}

.hero__lead {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

.hero__features {
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
  justify-content: flex-start;
}

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: center;
  flex: 0 0 auto;
  max-width: 150px;
}

.hero__feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: 50%;
  color: var(--color-primary);
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero__cta-note {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  padding-left: 4px;
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: none;
}

.hero__visual {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: flex-start;
  margin-left: -200px;
  overflow: visible;
}

.hero__image-wrap {
  position: relative;
  width: 100%;
}

.hero__image {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
}

.hero__accent-text {
  position: absolute;
  bottom: 48px;
  right: -12px;
  font-family: var(--font-script);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.4;
  width: 180px;
}

.hero__accent-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
}

/* ==========================================================================
   Section Common
   ========================================================================== */

.section {
  padding-block: var(--section-pad);
}

#top,
#course,
#course-fee-heading,
#instructor,
#flow,
#access,
#faq,
#cta {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section__header {
  text-align: center;
  margin-bottom: 52px;
}

.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
}

.section__label {
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: var(--fw-heading);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   News
   ========================================================================== */

.news__list {
  display: flex;
  flex-direction: column;
}

.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-item:first-child {
  border-top: 1px solid var(--color-border);
}

.news-item__link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 10px;
  transition: background var(--transition);
}

.news-item__link:hover {
  background: var(--color-primary-pale);
}

.news-item__date {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.news-item__tag {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 14px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.news-item__text {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.news-page__articles {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
  margin-top: clamp(40px, 6vw, 64px);
}

.news-article {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--color-border);
}

.news-article__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.news-article__title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: var(--fw-heading);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--color-text);
}

.news-article__body {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Wavy section dividers (pale pink sections)
   ========================================================================== */

.section--wavy {
  position: relative;
  background: var(--color-primary-pale);
  padding-block: calc(var(--section-pad) + 64px);
}

.section--wavy::before,
.section--wavy::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 140px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* white dipping into the section from the top edge */
.section--wavy::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C150,112 260,28 430,60 C560,86 660,22 830,54 C980,84 1090,38 1230,78 C1320,102 1390,50 1440,68 L1440,0 L0,0 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* white rising into the section from the bottom edge */
.section--wavy::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C130,26 280,106 450,70 C590,40 700,110 870,76 C1010,48 1130,104 1280,58 C1350,36 1400,82 1440,62 L1440,140 L0,140 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Subpage
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: clamp(36px, 4.5vw, 52px);
  background: #FEF6F9;
  overflow: hidden;
}

.page-hero .l-container {
  position: relative;
  z-index: 1;
}

.page-hero__petal {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.page-hero__petal--left {
  left: 0;
  top: 52%;
  width: clamp(240px, 28vw, 420px);
  transform: translate(-50%, -45%) rotate(-12deg);
}

.page-hero__petal--right {
  right: 0;
  top: -8px;
  width: clamp(200px, 18vw, 360px);
  transform: translate(25%, -5%) rotate(18deg);
}

.page-breadcrumb {
  background: var(--color-white);
  padding-block: clamp(20px, 3vw, 32px);
}

.page-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

.page-breadcrumb__item + .page-breadcrumb__item::before {
  content: ">";
  margin-inline: 10px;
  color: var(--color-text-light);
  opacity: 0.6;
}

.page-breadcrumb__item a {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.page-breadcrumb__item a:hover {
  color: var(--color-primary);
}

.page-breadcrumb__item[aria-current="page"] {
  color: var(--color-text-muted);
}

.page-hero__body {
  text-align: center;
}

.page-hero__label {
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.page-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--fw-heading);
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--color-text);
}

.page-hero__desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.page-course .course.section,
.page-instructor .instructor-page.section,
.page-flow .flow.section,
.page-access .access-page.section,
.page-faq .faq-page.section,
.page-news .news-page.section {
  padding-top: clamp(16px, 2.5vw, 24px);
}

.page-haninhe .haninhe-page.section,
.page-contact .contact-page.section {
  padding-top: clamp(32px, 5vw, 48px);
}

.page-news .news-page__articles {
  margin-top: 0;
}

.page-news .news-article:first-child {
  padding-top: 0;
  border-top: none;
}

.page-course .course,
.page-instructor .instructor-page,
.page-flow .flow,
.page-access .access-page,
.page-faq .faq-page,
.page-news .news-page,
.page-haninhe .haninhe-page,
.page-contact .contact-page {
  background: var(--color-white);
}

.page-course .cta__wave path,
.page-instructor .cta__wave path,
.page-flow .cta__wave path,
.page-access .cta__wave path,
.page-faq .cta__wave path,
.page-news .cta__wave path,
.page-haninhe .cta__wave path,
.page-contact .cta__wave path {
  fill: var(--color-white);
}

.page-course .header,
.page-instructor .header,
.page-flow .header,
.page-access .header,
.page-faq .header,
.page-news .header,
.page-haninhe .header,
.page-contact .header {
  background: var(--color-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-course .header.is-scrolled,
.page-instructor .header.is-scrolled,
.page-flow .header.is-scrolled,
.page-access .header.is-scrolled,
.page-faq .header.is-scrolled,
.page-news .header.is-scrolled,
.page-haninhe .header.is-scrolled,
.page-contact .header.is-scrolled {
  background: var(--color-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-course .header__logo,
.page-instructor .header__logo,
.page-flow .header__logo,
.page-access .header__logo,
.page-faq .header__logo,
.page-news .header__logo,
.page-haninhe .header__logo,
.page-contact .header__logo {
  align-self: center;
  padding-top: 0;
}

.page-course .header__logo-img--default,
.page-instructor .header__logo-img--default,
.page-flow .header__logo-img--default,
.page-access .header__logo-img--default,
.page-faq .header__logo-img--default,
.page-news .header__logo-img--default,
.page-haninhe .header__logo-img--default,
.page-contact .header__logo-img--default {
  display: none;
}

.page-course .header__logo-img--scrolled,
.page-instructor .header__logo-img--scrolled,
.page-flow .header__logo-img--scrolled,
.page-access .header__logo-img--scrolled,
.page-faq .header__logo-img--scrolled,
.page-news .header__logo-img--scrolled,
.page-haninhe .header__logo-img--scrolled,
.page-contact .header__logo-img--scrolled {
  display: block;
}

.page-course .header__nav,
.page-instructor .header__nav,
.page-flow .header__nav,
.page-access .header__nav,
.page-faq .header__nav,
.page-news .header__nav,
.page-haninhe .header__nav,
.page-contact .header__nav {
  align-self: center;
  padding-top: 0;
}

.access-story {
  padding-top: clamp(24px, 3.5vw, 40px);
  padding-bottom: clamp(18px, 3vw, 30px);
}

.access-story__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(14px, 2.6vw, 34px);
  align-items: center;
}

.access-story__text {
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-text);
  padding-left: clamp(14px, 2.2vw, 36px);
}

.access-story__lead {
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--color-text);
  font-weight: var(--fw-heading);
}

.access-story__accent {
  color: var(--color-primary);
  font-size: 1.25em;
}

.access-story__text p + p {
  margin-top: 1em;
}

.access-story__images {
  position: relative;
  min-height: clamp(320px, 38vw, 430px);
}

.access-story__img {
  position: absolute;
  display: block;
  width: clamp(170px, 20vw, 270px);
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.access-story__img--doll {
  top: 0;
  left: 0;
  transform: rotate(-7deg);
}

.access-story__img--book {
  top: 18%;
  right: 4%;
  transform: rotate(5deg);
}

.access-story__img--board {
  bottom: 0;
  left: 20%;
  transform: rotate(-2deg);
}

.access-greeting {
  padding-top: clamp(20px, 3.2vw, 36px);
  padding-bottom: clamp(24px, 3.6vw, 44px);
}

.access-greeting__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 320px);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  padding: clamp(18px, 2.8vw, 30px);
}

.access-greeting__content {
  min-width: 0;
}

.access-greeting__photo-wrap {
  align-self: end;
  position: relative;
  padding: 10px;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: none;
}

.access-greeting__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-sm) - 4px);
}

.access-greeting__heading {
  margin-bottom: 12px;
}

.access-greeting__message {
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: var(--fw-heading);
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  margin-bottom: 16px;
}


.access-greeting__profile {
  font-size: clamp(14px, 1.55vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.access-greeting__profile p + p {
  margin-top: 0.8em;
}

.page-flow .flow__steps {
  padding-block: clamp(8px, 2vw, 24px);
}

/* Instructor detail page */
.instructor-intro {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.instructor-intro__inner {
  max-width: min(920px, 100%);
  margin: 0 auto;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.instructor-intro__lead {
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: var(--fw-heading);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 0.8em;
}

.instructor-intro__accent {
  color: var(--color-primary);
  font-size: 1.25em;
}

.instructor-intro__inner p + p {
  margin-top: 1em;
}

.course-intro {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.course-intro__inner {
  max-width: min(920px, 100%);
  margin: 0 auto;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.course-intro__lead {
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: var(--fw-heading);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 0.8em;
}

.course-intro__accent {
  color: var(--color-primary);
  font-size: 1.25em;
}

.course-intro__inner p + p {
  margin-top: 1em;
}

.instructor-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}

.instructor-profile {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
}

.instructor-profile__photo-wrap {
  flex-shrink: 0;
  width: clamp(200px, 26vw, 320px);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.instructor-profile__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.instructor-profile__body {
  flex: 1;
  min-width: 0;
  padding-top: clamp(14px, 2.8vw, 24px);
}

.instructor-profile__name {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: var(--fw-heading);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.instructor-profile__name-main {
  letter-spacing: 0.04em;
}

.instructor-profile__name-suffix {
  font-size: 0.55em;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

.instructor-profile__tags {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.instructor-profile__bio {
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--color-text-muted);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.instructor-profile__bio p + p {
  margin-top: 1.1em;
}

@media (min-width: 1280px) {
  .instructor-profile__body {
    padding-top: clamp(36px, 5.5vw, 56px);
  }
}

/* ==========================================================================
   Course
   ========================================================================== */

.course {
  background: var(--color-primary-pale);
  overflow: visible;
}

.course__petal {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: clamp(255px, 27vw, 420px);
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -48%) rotate(58deg);
}

.course__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: min(960px, 100%);
  margin-inline: auto;
  margin-bottom: 28px;
}

.course-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(44, 44, 44, 0.1);
}

.course-card--link {
  text-decoration: none;
  color: inherit;
}

.course-card--link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.course-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: 50%;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.course-card__title {
  font-size: 17px;
  font-weight: var(--fw-heading);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.course-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-card__price {
  font-size: 26px;
  font-weight: var(--fw-heading);
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.course-card__price-label {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-right: 0.75em;
}

.course-card__price-unit {
  font-size: 16px;
}

.course-card__price-suffix {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

.course-card__prices {
  margin-bottom: 12px;
}

.course-card__price--tier {
  font-size: 22px;
  margin-top: 4px;
  margin-bottom: 0;
}

.course-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.course-card__badge + .course-card__badge {
  margin-top: 8px;
}

.course__note {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
}

.course__note-highlight {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: var(--fw-heading);
  font-size: 1.16em;
  line-height: 1.5;
}

.course__note-highlight--index {
  padding: 9px 16px;
  background: var(--color-primary);
  color: var(--color-white);
}

.course__note-highlight--course {
  padding: 8px 14px;
}

.course__note-br {
  display: none;
}

.page-course .course-pricing {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  max-width: min(920px, 100%);
  margin-inline: auto;
  margin-bottom: 28px;
}

.page-course .course-pricing__heading {
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: var(--fw-heading);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.page-course .course-pricing__table-wrap {
  overflow-x: auto;
}

.page-course .course-pricing__table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.page-course .course-pricing__table th,
.page-course .course-pricing__table td {
  padding: 18px 16px;
  border: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
  color: var(--color-text-muted);
}

.page-course .course-pricing__table thead th {
  font-size: 14px;
  font-weight: var(--fw-heading);
  letter-spacing: 0.06em;
  padding-top: 18px;
  background: var(--color-primary-pale);
  color: var(--color-text-muted);
}

.page-course .course-pricing__table tbody th[scope="row"] {
  font-weight: var(--fw-heading);
  white-space: normal;
}

.page-course .course-pricing__course-name {
  display: block;
}

.page-course .course-pricing__lesson-time {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.page-course .course-pricing__table .course-card__price {
  margin-bottom: 0;
}

.course-pricing__enrollment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.course-pricing__price-regular {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.course-pricing__price-regular .course-card__price-unit {
  font-size: 12px;
}

.course-pricing__price-campaign {
  font-size: 15px;
  font-weight: var(--fw-heading);
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.course-pricing__price-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.course-pricing__price-tier {
  display: block;
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Instructor
   ========================================================================== */

.instructor {
  position: relative;
  overflow: visible;
}

.instructor__petal {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: clamp(290px, 31vw, 490px);
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 4;
  transform: translate(50%, -58%) rotate(198deg);
}

.instructor__more {
  text-align: center;
  margin-top: 36px;
}

.instructor__link {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}

.instructor__link:hover {
  opacity: 0.75;
}

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

.instructor-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.instructor-card__photo-wrap {
  flex-shrink: 0;
  width: 168px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.instructor-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.instructor-card__body {
  flex: 1;
  min-width: 0;
  max-width: 158px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 60px;
  padding-bottom: 4px;
}

.instructor-card__name {
  font-size: 17px;
  font-weight: var(--fw-heading);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.instructor-card__name-main {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.instructor-card__name-suffix {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

.instructor-card__tags {
  font-size: 11px;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.instructor-card__bio {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   Flow
   ========================================================================== */

.flow {
  background: var(--color-primary-pale);
}

.flow__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-inline-start: 0;
  margin-block: 0;
}

.flow-step {
  flex: 0 0 auto;
  width: 148px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: 50%;
  color: var(--color-primary);
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.flow-step__title {
  font-size: 14px;
  font-weight: var(--fw-heading);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.flow-step__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.flow-step__arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 28px;
  color: var(--color-primary);
  padding-top: 36px;
  line-height: 1;
  opacity: 0.6;
}

/* ==========================================================================
   Access
   ========================================================================== */

.access {
  position: relative;
  overflow: visible;
}

.access__petal {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: clamp(250px, 27vw, 410px);
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 4;
  transform: translate(-58%, -48%) rotate(-48deg);
}

.access__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

.access__info {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100%;
}

.access__item {
  padding: 24px 26px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.access__item .access__label:not(:first-of-type) {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.access__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--fw-heading);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.access__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border-radius: 50%;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.access__value {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

.access__address {
  font-style: normal;
  letter-spacing: 0.04em;
}

.access__map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}

.access__map-link:hover {
  opacity: 0.75;
}

.access__note {
  margin-top: 8px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.access__note--inline {
  display: inline;
  margin-top: 0;
  margin-left: 1.5em;
}

.access__map {
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.access__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-access .access-page__blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
}

.page-access .access-page__heading {
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: var(--fw-heading);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.page-access .access__info {
  height: auto;
}

.page-access .access-page__overview {
  gap: 0;
}

.page-access .access-page__row {
  display: grid;
  grid-template-columns: minmax(140px, 11em) 1fr;
  gap: 12px clamp(16px, 3vw, 32px);
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-access .access-page__row .access__label {
  margin-bottom: 0;
  padding-left: 12px;
}

.page-access .access-page__row .access__icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.page-access .access-page__overview .access__note {
  display: inline;
  margin-top: 0;
}

.page-access .access__map {
  height: auto;
  min-height: clamp(320px, 45vw, 500px);
}

.page-access .access__map-frame {
  height: clamp(320px, 45vw, 500px);
}

.page-access .access__stations {
  margin-top: 16px;
  font-size: clamp(14px, 1.6vw, 15px);
  color: var(--color-text-muted);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.page-access .access__stations li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-access .access__stations-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.page-access .access__stations li + li {
  margin-top: 4px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  position: relative;
  overflow: visible;
}

.faq__petal {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: clamp(240px, 27vw, 400px);
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 4;
  transform: translate(50%, -58%) rotate(-18deg);
}

.faq .section__header {
  margin-bottom: 52px;
}

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.faq__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__image {
  display: block;
  width: 100%;
  max-width: min(100%, 340px);
  height: auto;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-faq-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

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

.faq-item__question::marker {
  content: "";
}

.faq-item__question:hover {
  background: var(--color-primary-light);
}

.faq-item__q-mark {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: var(--fw-heading);
  color: var(--color-primary);
}

.faq-item__q-text {
  flex: 1;
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

.faq-item__toggle {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.faq-item__toggle::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  padding: 0 24px 20px 56px;
  animation: faqOpen 0.35s ease;
}

.faq-item__answer p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  position: relative;
  background: var(--color-primary);
  padding-bottom: 0;
  overflow: visible;
}

.cta__wave {
  position: relative;
  top: -1px;
  line-height: 0;
}

.cta__wave svg {
  display: block;
  width: 100%;
  height: 70px;
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) auto;
  gap: clamp(8px, 2vw, 24px);
  align-items: end;
  padding-top: 20px;
  padding-bottom: 0;
  overflow: visible;
}

.cta__content {
  color: var(--color-white);
  align-self: center;
  padding-bottom: 20px;
  padding-left: clamp(48px, 12vw, 180px);
  text-align: left;
}

.cta__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: var(--fw-heading);
  line-height: 1.55;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.cta__title-line {
  display: inline-block;
}

.cta__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-self: end;
  overflow: visible;
  line-height: 0;
}

.cta__image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: min(100%, 340px);
  overflow: visible;
}

.cta__image {
  display: block;
  width: min(340px, 38vw);
  height: auto;
  object-fit: contain;
  margin-top: -108px;
  position: relative;
  z-index: 1;
}

.cta__bubble {
  position: absolute;
  top: 8%;
  right: calc(100% - 24px);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  white-space: nowrap;
}

.cta__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--color-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-white);
  color: var(--color-text-muted);
  padding: 36px 0;
  text-align: center;
}

.footer__logo {
  margin: 0 auto 32px;
}

.footer__logo-img {
  display: block;
  height: 96px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer__nav a {
  font-size: 13px;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__banner {
  margin-bottom: 24px;
}

.footer__banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 440px);
  padding: 14px 28px;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  font-weight: var(--fw-heading);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.footer__banner-link:hover {
  background: var(--color-primary-pale);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.footer__banner-link[aria-current="page"] {
  background: var(--color-primary-pale);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.haninhe-page__intro {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.haninhe-page__heading {
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: var(--fw-heading);
  letter-spacing: 0.06em;
  margin-bottom: clamp(24px, 4vw, 36px);
  color: var(--color-text);
}

.haninhe-reports__list {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

.haninhe-report__figure {
  margin: 0;
}

.haninhe-report__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid #d8d8d8;
}

.footer__copy {
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Responsive — 768px breakpoint
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --container-pad: 20px;
    --header-height: 64px;
  }

  .course__petal {
    left: 0;
    width: clamp(155px, 42vw, 240px);
    transform: translate(-48%, -48%) rotate(58deg);
  }

  .instructor__petal {
    right: 0;
    width: clamp(188px, 50vw, 288px);
    transform: translate(48%, -58%) rotate(10deg);
  }

  .access__petal {
    left: 0;
    width: clamp(140px, 38vw, 220px);
    transform: translate(-52%, -58%) rotate(-48deg);
  }

  .faq__petal {
    right: 0;
    width: clamp(160px, 40vw, 240px);
    transform: translate(48%, -58%) rotate(-18deg);
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 32px;
  }

  .page-hero__petal--left {
    width: clamp(160px, 42vw, 260px);
    top: 48%;
    transform: translate(-48%, -42%) rotate(-12deg);
  }

  .page-hero__petal--right {
    width: clamp(100px, 28vw, 160px);
    top: -6px;
    transform: translate(26%, -32%) rotate(18deg);
  }

  .page-breadcrumb {
    padding-block: 16px;
  }

  .page-breadcrumb__list {
    font-size: 11px;
  }

  .page-hero__title {
    font-size: clamp(24px, 6.4vw, 30px);
    margin-bottom: 14px;
  }

  .page-hero__desc {
    font-size: 14px;
    line-height: 1.75;
  }

  .instructor-list {
    gap: 40px;
  }

  .instructor-profile {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .instructor-profile__photo-wrap {
    width: min(100%, 280px);
  }

  .instructor-profile__body {
    padding-top: 12px;
    width: 100%;
  }

  .instructor-profile__name {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .instructor-profile__tags {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .instructor-profile__bio {
    font-size: 13px;
    line-height: 1.85;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-height) + 24px) 28px 40px;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(44, 44, 44, 0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 28px;
  }

  .header__nav {
    align-self: stretch;
    padding-top: 0;
  }

  .header__nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
  }

  .header__nav-ko {
    font-size: 11px;
  }

  .header__nav-ja {
    font-size: 16px;
  }

  .header__nav-link::after {
    display: none;
  }

  .header__cta {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  .header__logo-img {
    height: 52px;
  }

  .header__logo-img--scrolled {
    height: 24px;
  }

  .hero__script-text {
    font-size: 34px;
    transform: translate(-6px, 14px) rotate(-12deg);
  }

  .hero__bubble {
    height: 30px;
    transform: translate(8px, 30px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 52px);
  }

  .hero__title {
    font-size: clamp(25px, 6.4vw, 30px);
    margin-bottom: 4px;
    padding-left: 14px;
  }

  .hero__title-em {
    font-size: 1.15em;
  }

  .hero__title .text-accent {
    font-size: 1.22em;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero__content {
    display: contents;
    max-width: none;
  }

  .hero__head {
    order: 1;
  }

  .hero__title-line--nowrap {
    white-space: normal;
  }

  .hero__visual {
    order: 2;
    margin-left: 0;
    margin-top: -10px;
    justify-content: center;
  }

  .hero__image {
    max-width: 100%;
  }

  .hero__accent-text {
    right: 0;
    bottom: 24px;
    font-size: 18px;
    width: 150px;
  }

  .hero__detail {
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero__lead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero__features {
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  .hero__feature {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    font-size: 10px;
    line-height: 1.45;
    gap: 6px;
  }

  .hero__feature-icon {
    width: 32px;
    height: 32px;
  }

  .hero__feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .course__note {
    font-size: 14px;
    line-height: 1.7;
    padding-inline: 8px;
  }

  .course__note-highlight {
    margin-bottom: 10px;
    font-size: 1.1em;
  }

  .course__note-highlight--index {
    padding: 7px 12px;
  }

  .course__note-highlight--course {
    padding: 7px 12px;
  }

  .course__note-br {
    display: block;
  }

  .section__header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item__link {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 6px;
  }

  .news-item__text {
    width: 100%;
    font-size: 14px;
  }

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

  .course-intro__lead {
    font-size: clamp(18px, 4.5vw, 21px);
  }

  .br-sp {
    display: inline;
  }

  .instructor-intro__lead {
    font-size: clamp(18px, 4.5vw, 21px);
  }

  .access-story__lead {
    font-size: clamp(19px, 4.8vw, 22px);
  }

  .access-story__text > p:nth-of-type(2) {
    font-size: 0.82em;
    line-height: 1.85;
  }

  .access-greeting__layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .access-greeting__photo-wrap {
    max-width: 280px;
    width: 100%;
    margin-inline: auto;
  }

  .access-greeting__message {
    font-size: clamp(18px, 4.5vw, 21px);
  }


  .access-greeting__profile {
    font-size: 13px;
    line-height: 1.85;
  }

  .page-course .course-pricing__table-wrap {
    overflow-x: visible;
  }

  .page-course .course-pricing__table {
    border: none;
  }

  .page-course .course-pricing__table thead {
    display: none;
  }

  .page-course .course-pricing__table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .page-course .course-pricing__table tbody tr {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
  }

  .page-course .course-pricing__table tbody th[scope="row"] {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-primary-pale);
    border: none;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    white-space: normal;
  }

  .page-course .course-pricing__table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--color-border);
    text-align: right;
  }

  .page-course .course-pricing__table tbody td::before {
    content: attr(data-label);
    font-weight: var(--fw-heading);
    color: var(--color-text-muted);
    text-align: left;
    flex-shrink: 0;
  }

  .page-course .course-pricing__table tbody td:last-child {
    border-bottom: none;
  }

  .instructor__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 480px;
    margin-inline: auto;
  }

  .instructor-card {
    gap: 14px;
  }

  .instructor-card__photo-wrap {
    width: 136px;
  }

  .instructor-card__photo {
    min-height: 168px;
  }

  .instructor-card__body {
    max-width: none;
  }

  .section--wavy {
    padding-block: calc(var(--section-pad) + 36px);
  }

  .section--wavy::before,
  .section--wavy::after {
    height: 72px;
  }

  .access-story__layout {
    grid-template-columns: 1fr;
    gap: clamp(40px, 11vw, 56px);
  }

  .access-greeting__layout {
    grid-template-columns: 1fr;
  }

  .access-story__images {
    min-height: 300px;
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }

  .access__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .access__map {
    height: auto;
  }

  .page-access .access-page__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .faq__layout {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .faq__image {
    max-width: min(100%, 260px);
    margin-inline: auto;
  }

  .access__map-frame {
    height: 240px;
  }

  .flow .l-container {
    display: block;
  }

  .flow__steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 220px;
    margin-inline: auto;
    padding: 0;
    list-style: none;
    gap: 0;
    box-sizing: border-box;
  }

  .flow-step {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    text-align: left;
  }

  .flow-step__icon {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .flow-step__title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .flow-step__desc {
    grid-column: 2;
    grid-row: 2;
  }

  .flow-step__arrow {
    padding: 0;
    margin: 28px auto;
    transform-origin: center center;
    display: block;
    width: 100%;
    text-align: center;
  }

  .flow-step__arrow.fade-up {
    transform: translateY(28px) rotate(90deg);
  }

  .flow-step__arrow.fade-up.is-visible {
    transform: translateY(0) rotate(90deg);
  }

  .cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 0;
  }

  .cta__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .cta__content .btn {
    align-self: stretch;
    justify-content: center;
  }

  .cta__title {
    font-size: clamp(16px, 4.5vw, 19px);
  }

  .cta__visual {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
  }

  .cta__image-wrap {
    max-width: min(100%, 240px);
  }

  .cta__image {
    width: min(240px, 68vw);
    margin-top: 0;
  }

  .cta__bubble {
    top: 4%;
    right: auto;
    left: 0;
    white-space: normal;
  }

  .cta__bubble::after {
    top: auto;
    bottom: -8px;
    right: 24px;
    left: auto;
    transform: none;
    border-left-color: transparent;
    border-top-color: var(--color-white);
  }
}

/* ==========================================================================
   Responsive — tablet (769–1279px): PC layout, fit to viewport
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1279px) {
  :root {
    --section-pad: 64px;
    --container-pad: 20px;
  }

  .header__logo-img {
    height: 82px;
  }

  .header__logo-img--scrolled {
    height: 40px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-height) + 24px) 28px 40px;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(44, 44, 44, 0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    align-self: stretch;
    padding-top: 0;
  }

  .header__nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 28px;
  }

  .header__nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
  }

  .header__nav-ko {
    font-size: 10px;
  }

  .header__nav-ja {
    font-size: 14px;
  }

  .header__nav-link::after {
    display: none;
  }

  .header__cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 10px 18px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero__inner.l-container {
    padding-inline: 36px;
  }

  .hero__inner {
    gap: 0;
    grid-template-columns: 0.90fr 1.10fr;
    align-items: center;
  }

  .hero__content {
    min-width: 0;
    max-width: 520px;
  }

  .hero__script {
    margin-bottom: 10px;
  }

  .hero__script-text {
    font-size: 44px;
    transform: translate(-12px, 12px) rotate(-12deg);
  }

  .hero__bubble {
    height: 34px;
    transform: translate(8px, 16px);
  }

  .hero__title {
    font-size: clamp(28px, 3.8vw, 42px);
    margin-bottom: 12px;
  }

  .hero__title-line--nowrap {
    white-space: nowrap;
  }

  .hero__lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero__features {
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero__feature {
    max-width: 132px;
    font-size: 11px;
  }

  .hero__visual {
    margin-left: -20px;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: visible;
  }

  .hero__image-wrap {
    width: 100%;
    max-width: none;
    flex-shrink: 0;
  }

  .hero__image {
    display: block;
    width: 115%;
    max-width: none;
    margin-left: -8%;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
  }

  .instructor__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    justify-content: center;
    justify-items: center;
    gap: 12px;
  }

  .instructor-card {
    gap: 10px;
    width: 100%;
    max-width: 480px;
  }

  .instructor-card__photo-wrap {
    width: 148px;
  }

  .instructor-card__photo {
    min-height: 184px;
    object-position: top left;
  }

  .instructor-card__body {
    max-width: none;
    flex: 1;
    padding-top: 36px;
  }

  .instructor-card__name {
    font-size: 15px;
  }

  .instructor-card__tags {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .instructor-card__bio {
    font-size: 12px;
  }

  .flow-step {
    width: 118px;
  }

  .flow-step__title {
    font-size: 13px;
  }

  .flow-step__desc {
    font-size: 11px;
  }

  .flow-step__arrow {
    font-size: 20px;
    padding-top: 32px;
  }

  .access__inner {
    gap: 20px;
  }

  .access-story__images {
    min-height: 260px;
    max-width: 360px;
  }

  .access-story__img {
    width: clamp(130px, 34vw, 210px);
  }

  .faq__layout {
    gap: 20px;
  }

  .faq__image {
    max-width: min(100%, 260px);
  }

  .cta__inner {
    grid-template-columns: minmax(0, 1.28fr) auto;
    gap: 12px;
  }

  .cta__content {
    padding-left: 0;
    padding-bottom: 20px;
    text-align: left;
    max-width: none;
    min-width: 0;
    width: auto;
    margin-inline: auto;
    justify-self: center;
  }

  .cta__title {
    font-size: clamp(18px, 2.2vw, 24px);
  }

  .cta__title-line--nowrap {
    white-space: nowrap;
  }

  .cta__image-wrap {
    max-width: min(100%, 380px);
  }

  .cta__image {
    width: min(300px, 36vw);
    margin-top: -108px;
  }

  .cta__bubble {
    font-size: 11px;
    padding: 8px 12px;
  }
}

@media (min-width: 769px) and (max-width: 1279px) and (orientation: landscape) and (max-height: 560px) {
  :root {
    --section-pad: 48px;
  }

  .header__logo-img {
    height: 64px;
  }

  .header__logo-img--scrolled {
    height: 36px;
  }

  .header__nav {
    gap: 12px;
    padding-top: 16px;
  }

  .header__nav-list {
    gap: 10px;
  }

  .header__nav-ko {
    font-size: 9px;
  }

  .header__nav-ja {
    font-size: 12px;
  }

  .header__cta {
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 28px;
  }

  .hero__inner {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 0;
    align-items: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__script {
    margin-bottom: 4px;
  }

  .hero__script-text {
    font-size: 28px;
    transform: translate(-4px, 4px) rotate(-12deg);
  }

  .hero__bubble {
    height: 24px;
    transform: translate(4px, 8px);
  }

  .hero__title {
    font-size: clamp(20px, 2.8vw, 26px);
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .hero__title-line--nowrap {
    white-space: normal;
  }

  .hero__lead {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .hero__features {
    gap: 6px;
    margin-bottom: 10px;
  }

  .hero__feature {
    max-width: 92px;
    font-size: 9px;
    gap: 4px;
    line-height: 1.4;
  }

  .hero__feature-icon {
    width: 28px;
    height: 28px;
  }

  .hero__feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero__visual {
    margin-left: -56px;
    align-self: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero__image-wrap {
    width: 100%;
  }

  .hero__image {
    width: 112%;
    max-width: none;
    max-height: min(58vh, 280px);
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
