@layer base, theme, layouts, components, subpages, utilities;

/* ===== BASE LAYER (reset) ===== */
@layer base {
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
} /* end @layer base */

/* ===== THEME LAYER (CSS variables) ===== */
@layer theme {
:root {
  --color-primary:      #3d2b1f;
  --color-secondary:    #7a5a45;
  --color-accent:       #f9a272;
  --color-accent-shadow:#dbafaf;
  --color-nav-text:     #8f4b1e;
  --color-bg-white:     #fdfaf7;
  --color-bg-beige:     #f8f1e9;
  --color-bg-header:    #f5dec8;
  --color-footer-bg:    #6b4c3b;
  --color-footer-text:  #fff8f0;
  --font-en: 'Cormorant Garamond', serif;
  --font-ja: 'Zen Maru Gothic', sans-serif;
  --space-xs: clamp(0.5rem, 0.25rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.5rem + 0.75vw, 1.25rem);
  --space-md: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  --space-lg: clamp(2rem, 1rem + 3vw, 4rem);
  --space-xl: clamp(3rem, 1.5rem + 5vw, 7rem);
  color-scheme: light;
}
} /* end @layer theme */

@layer base {
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  color: var(--color-primary);
  background: var(--color-bg-white);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

address { font-style: normal; }
} /* end @layer base */

/* ===== UTILITIES LAYER (animations) ===== */
@layer utilities {

/* ===== FADE-IN ANIMATION ===== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 非対応ブラウザ：即座に表示 */
.fade-in { opacity: 1; }

/* CSS Scroll-driven Animations 対応ブラウザ */
@supports (animation-timeline: view()) {
  .fade-in {
    animation: fade-in-up 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

} /* end @layer utilities (animations) */

/* ===== LAYOUTS LAYER ===== */
@layer layouts {

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(8px, -0.667vw + 17.6px, 15px) clamp(20px, 4.57vw + 2.2px, 68px);
  background: linear-gradient(135deg, #F28C38 0%, #A95510 100%);
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 0 #7a3a0a;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(0.875rem, 1.71vw + 0.456rem, 2rem);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.40);
  letter-spacing: 1.6px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn:hover  { transform: translateY(-3px); box-shadow: 0 7px 0 #7a3a0a; filter: brightness(1.08); }
.btn:active { transform: translateY(2px);  box-shadow: 0 2px 0 #7a3a0a; filter: none; }

.btn__icon {
  width: clamp(22px, 1.14vw + 17.55px, 34px);
  height: clamp(22px, 1.14vw + 17.55px, 34px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.btn__icon--mail {
  width: clamp(24px, 1.52vw + 18.1px, 40px);
  height: clamp(24px, 1.52vw + 18.1px, 40px);
  filter: brightness(0) invert(1);
}

/* ===== SECTION HEADING (shared) ===== */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-heading__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -25px;
}

.section-heading__label {
  font-size: clamp(0.5625rem, 0.46vw + 0.45rem, 0.75rem);
  letter-spacing: 0.6px;
  color: var(--color-primary);
  text-align: center;
  line-height: normal;
  padding: 10px;
  margin-bottom: -25px;
}

.section-heading__title {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 1.9vw + 1.2875rem, 3rem);
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  line-height: normal;
  padding: 10px;
}

.section-heading__line {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.section-heading__line img {
  width: clamp(140px, 9.2vw + 110px, 250px);
  height: auto;
  object-fit: contain;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px clamp(12px, 6.48vw - 13.3px, 80px);
  height: 70px;
  width: 100%;
}

.header__logo {
  width: clamp(220px, 8.76vw + 185.8px, 312px);
  height: auto;
  flex-shrink: 0;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

.nav__item a {
  font-family: var(--font-en);
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.875rem);
  font-weight: 400;
  color: var(--color-nav-text);
  line-height: 1.7;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav__item a:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-decoration-color: var(--color-nav-text);
  text-underline-offset: 5px;
}

/* ===== HAMBURGER ===== */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.header__hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-nav-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; }
.header__hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: clamp(240px, 22.86vw + 150.9px, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  position: absolute;
  top: -75%;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 225%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 4.19vw, 60px);
}

.hero__title {
  font-family: var(--font-en);
  font-size: clamp(1.375rem, 4vw + 0.4rem, 4rem);
  font-weight: 400;
  color: #fff;
  -webkit-text-stroke: 2.5px var(--color-secondary);
  paint-order: stroke fill;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
  line-height: normal;
}

.hero__text {
  font-family: var(--font-ja);
  font-size: clamp(0.75rem, 0.76vw + 0.5625rem, 1.25rem);
  font-weight: 500;
  color: #fff;
  -webkit-text-stroke: 2px var(--color-secondary);
  paint-order: stroke fill;
  text-align: center;
  letter-spacing: 2px;
  line-height: 1.7;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== CONCEPT ===== */
.concept {
  padding: clamp(48px, 3.05vw + 36.1px, 80px) clamp(16px, 9.9vw - 22.6px, 120px);
  background: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.concept__text {
  font-size: clamp(0.75rem, 0.76vw + 0.5625rem, 1.25rem);
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.14vw + 11.55px, 28px);
  max-width: 700px;
  width: 100%;
}

.concept__text p {
  text-wrap: balance;
}

/* ===== INFORMATION ===== */
.information {
  background: var(--color-bg-beige);
  padding: clamp(48px, 3.05vw + 36.1px, 80px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.86vw + 8.85px, 50px);
  overflow: hidden;
}

.information__articles {
  container-type: inline-size;
  container-name: info-list;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.33vw + 10.8px, 30px);
  width: 100%;
  max-width: 875px;
  padding: 0 clamp(16px, 4.19vw, 60px);
}

.info-article {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.info-article__image {
  width: 262px;
  aspect-ratio: 4/3;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.info-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-article__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.14vw + 3.5px, 20px);
}

.info-article__title {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 1.5px;
}

.info-article__text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 1px;
  line-height: 1.85;
}

.info-article__date {
  font-size: 0.9375rem;
  color: var(--color-accent);
  letter-spacing: 1px;
}

/* ===== LESSON ===== */
.lesson {
  background: var(--color-bg-white);
  padding: clamp(48px, 3.05vw + 36.1px, 80px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.86vw + 8.85px, 50px);
  overflow: hidden;
}

.lesson__articles {
  container-type: inline-size;
  container-name: lesson-list;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 3.24vw + 17.4px, 64px);
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(16px, 4.19vw, 60px);
}

.lesson-article {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: auto;
}

.lesson-article__image {
  flex: 0 0 50%;
  aspect-ratio: 4/3;
  height: auto;
  align-self: flex-start;
  border-radius: 16px;
  overflow: hidden;
}

.lesson-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-article__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.33vw + 10.8px, 30px);
  /* top | right(outer) | bottom | left(inner→image側) */
  padding: clamp(30px, 3.62vw + 15.9px, 68px) clamp(16px, 11.5vw - 28.6px, 137px) clamp(30px, 3.62vw + 15.9px, 68px) clamp(8px, 1.52vw + 2.1px, 24px);
}

.lesson-article--reverse .lesson-article__body {
  /* top | right(inner→image側) | bottom | left(outer) */
  padding: clamp(30px, 3.62vw + 15.9px, 68px) clamp(8px, 1.52vw + 2.1px, 24px) clamp(30px, 3.62vw + 15.9px, 68px) clamp(16px, 11.5vw - 28.6px, 137px);
}

.lesson-article__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 2.4px;
}

.lesson-article__text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-secondary);
  text-align: center;
  letter-spacing: 1.6px;
  line-height: 1.7;
}

.lesson__btn-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(16px, 4.19vw, 60px) 5px;
}

@media (max-width: 786px) {
  .lesson__articles { padding: 0 clamp(16px, 16.14vw - 32.4px, 200px); }
  .lesson__btn-wrap { justify-content: center; }
}

/* ===== LICENSE ===== */
.license {
  background: var(--color-bg-beige);
  padding: clamp(48px, 3.05vw + 36.1px, 80px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.86vw + 8.85px, 50px);
  overflow: hidden;
}

.license__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 1.43vw + 14.4px, 35px);
  width: 100%;
  max-width: 1102px;
  padding: 0 clamp(16px, 16.14vw - 32.4px, 200px);
}

.license__image {
  width: 100%;
  max-width: 1046px;
  aspect-ratio: 4/3;
  height: auto;
  border-radius: 32px;
  overflow: hidden;
  flex-shrink: 0;
}

.license__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.license__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.33vw + 10.8px, 30px);
}

.license__title {
  font-size: clamp(1rem, 0.76vw + 0.8125rem, 1.5rem);
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 2.4px;
  text-wrap: balance;
}

.license__text {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 0.76vw + 9px, 20px);
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 1.6px;
  line-height: 1.7;
  max-width: 600px;
  width: 100%;
}

.license__text p {
  text-wrap: balance;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--color-bg-white);
  padding: clamp(48px, 3.05vw + 36.1px, 80px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 2.1vw + 19.8px, 50px);
}

.contact__cards {
  display: flex;
  gap: clamp(16px, 1.48vw + 2.7px, 24px);
  padding: 5px clamp(16px, 16.14vw - 32.4px, 200px) 24px;
  width: 100%;
  align-items: stretch;
}

.contact-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.43vw + 14.4px, 35px);
  padding: clamp(16px, 0.86vw + 12.7px, 25px);
  border: 1px solid var(--color-accent);
  border-radius: 24px;
  background: var(--color-bg-white);
}

.contact-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 0.86vw + 12.7px, 25px);
  flex: 1;
}

.contact-card__title {
  font-size: clamp(1rem, 0.76vw + 0.8125rem, 1.5rem);
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 2.4px;
}

.contact-card__text {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 1.6px;
  line-height: 1.7;
  flex: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0 14px;
  width: 100%;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.footer__logo {
  width: clamp(220px, 8.76vw + 185.8px, 312px);
  height: auto;
}

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

.footer__address {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  color: var(--color-footer-text);
  text-align: center;
  letter-spacing: 1.6px;
  line-height: 1.7;
}

.footer__sns {
  display: flex;
  gap: clamp(20px, 1.9vw + 12.6px, 40px);
  align-items: flex-start;
}

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

.footer__sns-label {
  font-size: 0.6875rem;
  color: var(--color-footer-text);
  letter-spacing: 0.5px;
}

.footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 3vw + 28px, 50px);
  height: clamp(40px, 3vw + 28px, 50px);
  transition: opacity 0.2s;
}

.footer__sns-link:hover { opacity: 0.7; }

.footer__sns-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__sns-link img[src*="threads"] {
  width: 84%;
  height: 84%;
}

.footer__nav { margin-bottom: 4px; }

.footer__nav-list {
  display: flex;
  gap: clamp(12px, 1.9vw + 4.6px, 32px);
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 clamp(16px, 4.19vw, 60px);
}

.footer__nav-list a {
  font-family: var(--font-en);
  font-size: clamp(0.875rem, 0.57vw + 0.7375rem, 1.25rem);
  color: var(--color-footer-text);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer__nav-list a:hover { opacity: 1; }

.footer__copyright {
  font-size: 0.75rem;
  color: var(--color-footer-text);
  text-align: center;
  letter-spacing: 1.2px;
  line-height: 1.7;
}

/* ===================================================
   RESPONSIVE
   900px = hamburger menu trigger
=================================================== */

/* ----- 900px (hamburger + contact 1列) ----- */
@media (max-width: 900px) {
  /* Header */
  .header__hamburger { display: flex; }
  .header__nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--color-bg-header);
    padding: 24px 20px;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 99;
  }
  .header__nav.open { display: block; }
  .nav__list { flex-direction: column; gap: 12px; align-items: center; padding-top: 0; }
  .nav__item a { font-size: 26px; }

  /* Contact cards */
  .contact__cards { flex-direction: column; gap: 24px; }
}

/* =====================================================
   CONTAINER QUERIES
   コンポーネントがコンテナサイズに応答する
===================================================== */

/* ===== lesson-list コンテナ → .lesson-article ===== */

@container lesson-list (max-width: 900px) {
  .lesson-article { height: auto; min-height: unset; gap: 0; }
  .lesson-article__body { padding: 16px 8.33cqi 16px 3cqi; }
  .lesson-article--reverse .lesson-article__body { padding: 16px 3cqi 16px 8.33cqi; }
  .lesson-article__title { font-size: clamp(18px, 2.2cqi, 20px); }
  .lesson-article__text { font-size: clamp(12px, 1.6cqi, 14px); }
}

@container lesson-list (max-width: 720px) {
  .lesson-article { flex-direction: column !important; height: auto; gap: 16px; }
  .lesson-article__image { flex: none; width: 100%; aspect-ratio: 4/3; height: auto; order: -1; }
  .lesson-article__body { padding: 0 !important; gap: 14px; }
  .lesson-article__title { font-size: clamp(18px, 3.1cqi, 22px); }
  .lesson-article__text { font-size: clamp(12px, 2cqi, 14px); max-width: 50ch; }
}

@container lesson-list (max-width: 400px) {
  .lesson-article { flex-direction: column !important; height: auto; gap: 12px; }
  .lesson-article__image { flex: none; width: 100%; aspect-ratio: 4/3; height: auto; order: -1; }
  .lesson-article__body { padding: 0 !important; gap: 8px; }
  .lesson-article__title { font-size: clamp(16px, 4cqi, 18px); }
  .lesson-article__text { font-size: 12px; max-width: 50ch; }
}

/* ===== info-list コンテナ → .info-article ===== */

@container info-list (max-width: 760px) {
  .info-article { gap: 30px; }
  .info-article__image { width: 200px; height: auto; }
  .info-article__title { font-size: clamp(16px, 2.4cqi, 18px); letter-spacing: 1px; }
  .info-article__text { font-size: clamp(12px, 1.7cqi, 13px); letter-spacing: 0.7px; }
}

@container info-list (max-width: 400px) {
  .info-article { flex-direction: row; gap: 10px; align-items: center; }
  .info-article__image { flex: none; width: 110px; height: auto; }
  .info-article__title { font-size: 13px; letter-spacing: 0.3px; }
  .info-article__text { font-size: 12px; letter-spacing: 0; }
  .info-article__date { font-size: 12px; }
}

} /* end @layer layouts */

/* =====================================================
   SUBPAGES LAYER
   対象: profile.html / lesson.html / license.html / contact.html
===================================================== */
@layer subpages {

/* ===== SUB-HERO ===== */
.subhero {
  position: relative;
  height: clamp(220px, 24.76vw + 123.46px, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.subhero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subhero--plain {
  background: #f8f1e9;
}

.subhero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.subhero__en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.125rem, 3.62vw + 1.243rem, 4.5rem);
  font-weight: 400;
  color: #8c6e5a;
  line-height: 1;
}

.subhero__ja {
  font-size: clamp(0.75rem, 0.381vw + 0.657rem, 1rem);
  color: #8c6e5a;
  letter-spacing: 0.8px;
  text-align: center;
}

/* ===== SUBPAGE SECTIONS ===== */
.subpage-section {
  container-type: inline-size;
  container-name: subpage;
  padding: clamp(48px, 3.05vw + 36.1px, 80px) clamp(16px, 16.14vw - 32.4px, 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 1.9vw + 20.6px, 48px);
}

.subpage-section--beige {
  background: #f8f1e9;
}

/* ===== PRIVACY POLICY ===== */
.privacy-content {
  width: 100%;
  max-width: 44em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 1.9vw + 16.6px, 40px);
}

.privacy-lead {
  font-size: clamp(0.8125rem, 0.38vw + 0.6563rem, 1rem);
  color: #3d2b1f;
  line-height: 1.9;
  text-wrap: balance;
}

.privacy-article {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.57vw + 5.9px, 16px);
  width: 100%;
}

.privacy-article__title {
  font-size: clamp(1rem, 0.38vw + 0.8438rem, 1.25rem);
  color: #3d2b1f;
  font-weight: 500;
  border-bottom: 1px solid #f5dec8;
  padding-bottom: clamp(6px, 0.38vw + 4.4px, 10px);
  width: 100%;
}

.privacy-article__text {
  font-size: clamp(0.8125rem, 0.38vw + 0.6563rem, 1rem);
  color: #8c6e5a;
  line-height: 1.9;
}

.privacy-article__text a {
  color: #f9a272;
  text-decoration: underline;
}

.privacy-meta {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  align-self: flex-end;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding-block: clamp(48px, 3.05vw + 36.1px, 80px);
  padding-inline: clamp(16px, 4.19vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 0.76vw + 13px, 24px);
}

.cta-section--beige {
  background: #f8f1e9;
}

.cta-section__title {
  font-size: clamp(1rem, 0.76vw + 0.8125rem, 1.5rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 2.4px;
  text-align: center;
  text-wrap: balance;
}

.cta-section__text {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  color: #8c6e5a;
  text-align: center;
  letter-spacing: 1.6px;
  line-height: 1.7;
  width: 100%;
  max-width: 600px;
  text-wrap: balance;
}

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

/* ===== BTN SMALL ===== */
.btn--sm {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  padding: clamp(10px, 0.298vw + 7.71px, 12px) clamp(28px, 1.786vw + 14.29px, 40px);
}

.btn--sm .btn__icon {
  width: 22px;
  height: 22px;
}

/* ===== NAV CARDS（lesson / contact 共通） ===== */
main {
  container-type: inline-size;
  container-name: nav-cards;
}

.nav-cards {
  display: flex;
  gap: clamp(20px, 3.9vw - 10px, 40px);
  justify-content: center;
  background: #f8f1e9;
  padding: 30px clamp(60px, calc(33.7vw - 285px), 200px);
}

.nav-card {
  background: white;
  border-radius: 12px;
  padding: clamp(16px, 1.57vw + 4px, 24px) clamp(14px, 0.78vw + 8px, 20px);
  width: clamp(260px, 2.222cqi + 253.33px, 280px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.nav-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.nav-card__en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.875rem, 0.44vw + 0.766rem, 1.125rem);
  color: #8c6e5a;
}

.nav-card__ja {
  font-size: 16px;
  font-weight: 500;
  color: #3d2b1f;
}

.nav-card__sub {
  font-size: 12px;
  color: #8c6e5a;
  text-align: center;
}

/* ===== FEATURE BOXES（profile / license 共通） ===== */
.feature-boxes {
  display: flex;
  gap: clamp(20px, 1.9vw + 12.6px, 40px);
  justify-content: center;
  width: 100%;
}

.feature-box {
  background: #f5dec8;
  border-radius: 16px;
  padding: clamp(16px, 0.76vw + 13px, 24px);
  font-size: clamp(1rem, 0.381vw + 0.907rem, 1.25rem);
  flex: 1;
  max-width: 17em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 0.76vw + 13px, 24px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.feature-box__icon {
  width: 81px;
  height: 81px;
}

.feature-box__icon-wrap {
  background: #f9a272;
  border-radius: 50%;
  width: clamp(40px, 3.81vw + 25.14px, 80px);
  height: clamp(40px, 3.81vw + 25.14px, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-box__icon-wrap img {
  width: clamp(24px, 2.29vw + 15.07px, 48px);
  height: clamp(24px, 2.29vw + 15.07px, 48px);
  filter: brightness(0) invert(1);
}

.subpage-section--beige .feature-box {
  background: white;
}

.feature-box__title {
  font-size: clamp(1rem, 0.381vw + 0.907rem, 1.25rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 1px;
  text-align: center;
  width: 100%;
  text-wrap: balance;
}

.feature-box__text {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  letter-spacing: 0.65px;
  line-height: 1.7;
  text-align: center;
  width: 100%;
  text-wrap: balance;
}

/* =====================================================
   PROFILE PAGE
===================================================== */
.profile-content {
  display: flex;
  gap: clamp(28px, 4.95vw + 8.69px, 80px);
  align-items: flex-start;
}

.profile-image {
  width: clamp(300px, 17.14vw + 233px, 480px);
  aspect-ratio: 4/5;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-name {
  font-size: clamp(1rem, 0.702vw + 0.868rem, 1.5rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 2.4px;
  margin-bottom: clamp(3px, 0.263vw + 2.211px, 6px);
}

.profile-sub {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  color: #8c6e5a;
  letter-spacing: 1.6px;
  margin-top: 0;
}

.profile-divider {
  height: 2px;
  background: #f5dec8;
  margin: clamp(8px, 0.702vw + 5.895px, 16px) 0;
}

.profile-section-title {
  font-size: clamp(0.875rem, 0.526vw + 0.776rem, 1.25rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 2px;
}

.concept-section-text {
  font-size: clamp(0.75rem, 0.76vw + 0.5625rem, 1.25rem);
  color: #3d2b1f;
  letter-spacing: 1.6px;
  line-height: 1.9;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.14vw + 11.55px, 28px);
  width: 100%;
}

.concept-section-text p {
  max-width: 40em;
  text-wrap: balance;
}

.concept-section-text strong {
  word-break: keep-all;
}

.concept-section-text strong .nowrap {
  white-space: nowrap;
}

.profile-section-text {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #3d2b1f;
  letter-spacing: 1.4px;
  line-height: 1.7;
  text-align: left;
}

.profile-dl {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.351vw + 2.947px, 8px);
}

.profile-dl dd {
  margin-left: 0;
}

.profile-dl dd::before {
  content: "・";
}

.feature-boxes .feature-box:nth-child(1) .feature-box__icon {
  transform: rotate(-9deg);
}

.feature-boxes .feature-box:nth-child(3) .feature-box__icon {
  transform: rotate(9deg);
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}

.info-row {
  display: flex;
  gap: 20px;
  border-top: 1px solid #f5dec8;
  padding-top: 16px;
}

.info-row:last-child {
  border-bottom: 1px solid #f5dec8;
  padding-bottom: 16px;
}

.info-row__label {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  font-weight: 500;
  color: #3d2b1f;
  width: 160px;
  flex-shrink: 0;
}

.info-row__value {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  letter-spacing: 0.65px;
  margin: 0;
}

.info-note {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  letter-spacing: 0.65px;
  line-height: 1.7;
  margin-top: clamp(24px, 1.14vw + 20.6px, 32px);
}

/* =====================================================
   LESSON PAGE
===================================================== */
.lesson-article-detail {
  display: flex;
  gap: clamp(20px, 2.86vw + 8.86px, 50px);
  align-items: flex-start;
  justify-content: center;
}

.lesson-article-detail--reverse {
  flex-direction: row-reverse;
}

.lesson-img {
  width: clamp(280px, 19.05vw + 205.7px, 480px);
  aspect-ratio: 4/3;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.lesson-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-text-area {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 0.95vw + 16.3px, 30px);
}

.lesson-text-area .btn {
  align-self: center;
}

.lesson-h4 {
  font-size: clamp(1rem, 0.9vw + 0.781rem, 1.5rem);
  font-weight: 500;
  color: #3d2b1f;
  text-align: center;
  letter-spacing: 2.4px;
  text-wrap: balance;
}

.lesson-desc {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  color: #8c6e5a;
  letter-spacing: 1.6px;
  line-height: 1.7;
  width: 100%;
  max-width: 480px;
  text-wrap: balance;
}

.point-box {
  background: #f8f1e9;
  border-radius: 12px;
  padding: clamp(16px, 0.76vw + 13px, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.point-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.point-row__key {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  font-weight: 500;
  color: #3d2b1f;
}

.point-row__val {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  letter-spacing: 0.65px;
  margin: 0;
}

.subpage-section--beige .point-box,
.subpage-section--beige .course-box {
  background: white;
}

.course-box {
  background: #f8f1e9;
  border-radius: 12px;
  padding: clamp(16px, 0.76vw + 13px, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-box__title {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  font-weight: 500;
  color: #3d2b1f;
}

.menu-item {
  border-top: 1px solid rgba(61,43,31,0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 0;
}

.menu-item:last-child {
  border-bottom: 1px solid rgba(61,43,31,0.5);
  padding-bottom: 10px;
}

.menu-item__desc p {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #3d2b1f;
  letter-spacing: 0.65px;
  line-height: normal;
  margin: 0;
}

.menu-item__price {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #3d2b1f;
  letter-spacing: 0.65px;
  text-align: right;
  width: 100%;
}

/* =====================================================
   LICENSE PAGE
===================================================== */
.license-hero {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.license-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
}

.license-hero__inner {
  position: relative;
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: inherit;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.license-hero__left {
  flex: 1;
  padding: 3rem 5rem clamp(32px, 2.38vw + 13.66px, 48px) clamp(32px, 2.38vw + 13.66px, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.4s;
}

.license-hero__catch {
  font-size: clamp(1rem, 0.571vw + 0.861rem, 1.375rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 2.2px;
  line-height: 1.6;
}

.license-hero__desc {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  letter-spacing: 1.3px;
  line-height: 1.7;
  max-width: 20em;
}

.license-hero__right {
  position: absolute;
  left: 50%;
  top: clamp(100px, 7.45vw + 42.71px, 150px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.license-hero__en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.875rem, 4vw + 0.9rem, 4.5rem);
  font-weight: 400;
  color: #8c6e5a;
  line-height: 1;
  text-align: center;
}

.license-hero__ja {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  color: #8c6e5a;
  letter-spacing: 0.8px;
  text-align: center;
}

.worries-section {
  display: flex;
  gap: clamp(28px, 3.05vw + 16.1px, 60px);
  align-items: center;
  justify-content: center;
  width: 100%;
}

.worries-img {
  width: clamp(260px, 18vw + 190px, 449px);
  aspect-ratio: 4/3;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.worries-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.worries-title {
  font-size: clamp(1rem, 0.9vw + 0.781rem, 1.5rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 2.4px;
  margin-bottom: 8px;
}

.worries-accent {
  height: 2px;
  background: #f9a272;
  width: 100px;
  margin-bottom: 32px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.571vw + 7.77px, 16px);
}

.check-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.check-item img {
  width: clamp(12px, 0.449vw + 10.26px, 16px);
  height: clamp(12px, 0.449vw + 10.26px, 16px);
  flex-shrink: 0;
}

.check-item p {
  font-size: clamp(0.75rem, 0.449vw + 0.641rem, 1rem);
  color: #3d2b1f;
  letter-spacing: 2px;
}

.recommend-section {
  display: flex;
  gap: clamp(28px, 3.05vw + 16.1px, 60px);
  align-items: center;
  justify-content: center;
  width: 100%;
}

.recommend-img {
  width: clamp(260px, 18vw + 190px, 449px);
  aspect-ratio: 4/3;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.recommend-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.recommend-content {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.14vw + 15.54px, 32px);
}

.ok-badges {
  display: flex;
  gap: 25px;
}

.ok-badge {
  background: #f5dec8;
  border-radius: 8px;
  padding: 0.875em 0.25em;
  min-width: 7.5em;
  text-align: center;
  font-size: clamp(0.75rem, 0.449vw + 0.641rem, 1rem);
  font-weight: 500;
  color: #3d2b1f;
  line-height: 1.7;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.accordion-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  width: 100%;
  overflow: hidden;
}

.accordion-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-header__left {
  display: flex;
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.accordion-header__icon {
  background: #f5dec8;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.accordion-header__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.accordion-header__title {
  font-size: clamp(0.8125rem, 0.476vw + 0.821rem, 1.25rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 1px;
  line-height: normal;
  word-break: keep-all;
}

.accordion-header__sub {
  font-size: clamp(0.75rem, 0.175vw + 0.717rem, 0.875rem);
  color: #8c6e5a;
  letter-spacing: 0.65px;
  line-height: 1.7;
  text-wrap: balance;
}

.accordion-more {
  background: #f5dec8;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  color: #3d2b1f;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.accordion-more__icon {
  width: 1.23em;
  height: 1.23em;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.accordion-card.open .accordion-more__icon {
  transform: rotate(0deg);
}

.accordion-body {
  display: none;
}

.accordion-body.open {
  display: block;
}

.accordion-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px 32px;
  align-items: center;
}

.accordion-info-box {
  background: #fff8f0;
  border-radius: 12px;
  padding: clamp(16px, 0.76vw + 13px, 24px);
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-note-box {
  background: #fff8f0;
  border-radius: 12px;
  padding: clamp(16px, 0.76vw + 13px, 24px);
  width: 100%;
  max-width: 600px;
}

.accordion-info-section {
  display: flex;
  flex-direction: column;
}

.accordion-info-h {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.accordion-info-label {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  font-weight: 500;
  color: #3d2b1f;
  line-height: normal;
}

.accordion-info-line {
  background: #f9a272;
  height: 2px;
  width: 100px;
}

.accordion-info-text {
  font-size: 0.75rem;
  color: #3d2b1f;
  letter-spacing: 0.6px;
  line-height: normal;
  padding: 12px 0;
}

.accordion-note-text {
  font-size: 0.75rem;
  color: #3d2b1f;
  letter-spacing: 0.6px;
  line-height: 1.7;
}

.accordion-note-text strong {
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-q,
.faq-a {
  display: flex;
  gap: 14px;
  align-items: center;
}

.faq-badge {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
}

.faq-badge--q {
  background: #f9a272;
  color: white;
}

.faq-badge--a {
  background: #f5dec8;
  color: #3d2b1f;
}

.faq-divider {
  height: 1px;
  background: #f5dec8;
}

.faq-text {
  font-size: clamp(0.8125rem, 0.286vw + 0.743rem, 1rem);
  color: #3d2b1f;
  letter-spacing: 0.8px;
}

/* =====================================================
   CONTACT PAGE
===================================================== */
.line-card {
  background: #f5dec8;
  border: 1px solid #f9a272;
  border-radius: 24px;
  padding: clamp(20px, 0.702vw + 17.3px, 32px) clamp(24px, 3.509vw + 10.5px, 64px);
  display: flex;
  gap: 40px;
  align-items: center;
}

.line-card__qr {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #8c6e5a;
  text-align: center;
  padding: 12px;
}

.line-card__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.line-card__title {
  font-size: clamp(1rem, 0.702vw + 0.868rem, 1.5rem);
  font-weight: 500;
  color: #3d2b1f;
  letter-spacing: 2.4px;
  margin-bottom: 16px;
}

.line-card__text {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  color: #8c6e5a;
  letter-spacing: 1.6px;
  line-height: 1.7;
  margin-bottom: 16px;
  text-wrap: balance;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #21D17A 0%, #00934F 100%);
  border-radius: 50px;
  box-shadow: 0 4px 0 #075c34;
  padding: clamp(10px, 0.298vw + 7.71px, 12px) clamp(28px, 1.786vw + 14.29px, 40px);
  text-align: center;
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  font-weight: 500;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.40);
  letter-spacing: 0.75px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.line-btn:hover  { transform: translateY(-3px); box-shadow: 0 7px 0 #075c34; filter: brightness(1.08); }
.line-btn:active { transform: translateY(2px);  box-shadow: 0 2px 0 #075c34; filter: none; }

.form-section {
  padding: clamp(16px, 5.614vw - 0.84px, 80px) clamp(16px, 23.158vw - 53.47px, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 720px;
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__row {
  display: flex;
  gap: 24px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.form__label {
  font-size: clamp(0.875rem, 0.175vw + 0.842rem, 1rem);
  font-weight: 500;
  color: #3d2b1f;
}

.form__label span {
  font-size: 12px;
  color: #f9a272;
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0.6px;
}

.form__input {
  border: 1px solid #f9a272;
  border-radius: 8px;
  padding: clamp(12px, 0.286vw + 10.886px, 15px) 16px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(0.8125rem, -0.286vw + 1.0696rem, 1rem);
  color: #3d2b1f;
  background: white;
  width: 100%;
}

.form__input:focus {
  outline: 2px solid #f9a272;
  outline-offset: 1px;
}

.form__select {
  border: 1px solid #f9a272;
  border-radius: 8px;
  padding: clamp(12px, 0.286vw + 10.886px, 15px) 16px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(0.8125rem, -0.286vw + 1.0696rem, 1rem);
  color: #3d2b1f;
  background: white;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c6e5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form__select:focus {
  outline: 2px solid #f9a272;
  outline-offset: 1px;
}

.form__textarea {
  border: 1px solid #f9a272;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(0.8125rem, -0.286vw + 1.0696rem, 1rem);
  color: #3d2b1f;
  background: white;
  width: 100%;
  height: 160px;
  resize: vertical;
}

.form__textarea:focus {
  outline: 2px solid #f9a272;
  outline-offset: 1px;
}

.form__note {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  color: #8c6e5a;
  text-align: center;
  letter-spacing: 0.65px;
  line-height: 1.7;
}

.form__submit {
  display: flex;
  justify-content: center;
}

.form__message {
  font-size: clamp(0.75rem, 0.38vw + 0.6563rem, 1rem);
  color: #3d7a4f;
  text-align: center;
  letter-spacing: 0.65px;
}

.form__message--error {
  color: #b3413e;
}

/* ===== SUBPAGES RESPONSIVE ===== */

@media (max-width: 1024px) {
  .accordion-card { width: 100%; }
  .form { width: 100%; }
}

/* ----- SUBPAGES 900px (worries / recommend / feature-boxes column) ----- */
@media (max-width: 900px) {
  /* license-hero: 769px〜900pxでoverlapを回避 — 左下揃え・文字縮小 */
  .license-hero__desc { color: #3d2b1f; }
  .license-hero__en { font-size: 50px; }
}

@media (max-width: 768px) {
  .section-heading__title { font-size: 28px; }

  .info-table { width: 100%; }
  .license-hero { min-height: 0; }
  .license-hero__inner { flex-direction: column; align-items: flex-start; }
  .license-hero__left { padding: 0 24px 24px; }
  .license-hero__right { position: static; top: auto; left: auto; transform: none; width: 100%; padding: clamp(60px, 4.27vw + 47px, 80px) 24px; order: -1; }
  .license-hero__en { font-size: 40px; }

  .ok-badges { gap: 12px; }
  .accordion-card { width: 100%; }
  .accordion-detail { flex-direction: column; }
  .line-card { flex-direction: column; align-items: center; text-align: center; }
  .line-card__title { text-align: center; }
  .form { width: 100%; }
  .form__row { flex-direction: column; }
  .nav-cards { padding: 20px 24px; }
}

@media (max-width: 390px) {
  .section-heading__title { font-size: 22px; }

  .license-hero__en { font-size: 30px; }
  .worries-img { height: auto; }
}

/* ===== CONTAINER QUERIES - subpage ===== */

@container subpage (max-width: 780px) {
  .lesson-article-detail { flex-direction: column !important; gap: 20px; align-items: center; width: 100%; }
  .lesson-img { width: 100%; height: auto; }
  .lesson-desc { width: 100%; max-width: none; text-align: center; }
  .lesson-text-area { padding-top: 0; gap: 16px; align-items: center; width: 100%; }
  .point-box { width: 100%; }
  .course-box { width: 100%; }
  .feature-boxes { flex-direction: column; align-items: center; }
  .feature-box { width: 100%; }
}

@container subpage (max-width: 720px) {
  .profile-content { flex-direction: column; align-items: center; }
  .profile-image { width: 100%; height: auto; }
  .lesson-img { height: auto; }
}

@container subpage (max-width: 460px) {
  .info-row { flex-direction: column; gap: 4px; }
  .info-row__label { width: auto; }
}

/* ===== CONTAINER QUERIES - nav-cards ===== */

@container nav-cards (max-width: 900px) {
  .nav-cards { flex-wrap: wrap; gap: 16px; }
}

@container nav-cards (max-width: 720px) {
  .nav-cards { flex-direction: column; align-items: center; gap: 16px; }
}

@container subpage (max-width: 651px) {
  .worries-section { flex-direction: column; }
  .worries-img { width: 100%; }
  .recommend-section { flex-direction: column; }
  .recommend-img { width: 100%; order: -1; }
  .accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .accordion-header__icon { display: none; }
  .accordion-more {
    align-self: flex-end;
    padding: clamp(3px, 0.783cqi + 0.9px, 6px) clamp(6px, 1.567cqi + 1.8px, 12px);
    font-size: clamp(8px, 1.305cqi + 4.5px, 13px);
    border-radius: clamp(3px, 0.783cqi + 0.9px, 6px);
  }
  .accordion-header__sub { display: none; }
  .accordion-card.open .accordion-header__sub { display: block; }
  .accordion-header__title {
    font-size: clamp(13px, 0.9cqi + 10.6px, 16.5px);
  }
}

@container subpage (max-width: 360px) {
  .profile-image { height: auto; }
  .lesson-img { height: auto; }
}

} /* end @layer subpages */

/* ===== UTILITIES LAYER (a11y overrides) ===== */
@layer utilities {

/* ===== FOCUS VISIBLE (WCAG 2.4.7 AA) ===== */
.btn:focus-visible,
.nav__item a:focus-visible,
.nav-card:focus-visible,
.accordion-header:focus-visible,
.line-btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in,
  .fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .license-hero__left { animation: none; opacity: 1; }
}

/* 文中の<br>を390px以下で非表示（テキストが自然折り返しするため）*/
@media (max-width: 390px) { .sp-hidden { display: none; } }

/* 390px以下でのみ有効な改行（PCでは非表示）*/
.sp-only { display: none; }
@media (max-width: 390px) { .sp-only { display: block; } }

} /* end @layer utilities (a11y) */
