:root {
  --bg: #f5efe6;
  --bg-strong: #eadfcf;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffaf3;
  --ink: #251c18;
  --muted: #665851;
  --line: rgba(82, 63, 53, 0.16);
  --accent: #b35c3b;
  --accent-deep: #8c4428;
  --accent-soft: #d8b59d;
  --sage: #b8c0a2;
  --shadow: 0 28px 80px -38px rgba(77, 53, 40, 0.36);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", "Noto Sans Thai", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 181, 157, 0.45), transparent 32%),
    radial-gradient(circle at right 20%, rgba(184, 192, 162, 0.28), transparent 28%),
    linear-gradient(180deg, #f9f4ec 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 93, 73, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 93, 73, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 85%);
}

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

button {
  font: inherit;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 32px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(250, 244, 235, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff5ea, #efd7c0);
  color: var(--accent-deep);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-mark-image {
  width: 62px;
  height: 58px;
  height: 62px;
  padding: 8px;
  overflow: hidden;
  background: #0f0f10;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px -16px rgba(0, 0, 0, 0.5);
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: #fffaf6 !important;
}

.lang-switch {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-trigger:hover,
.lang-trigger:focus-visible {
  transform: translateY(-1px);
}

.lang-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 138px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(252, 246, 238, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.lang-menu.is-open {
  display: grid;
  gap: 6px;
}

.lang-menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button:focus-visible,
.lang-menu button.is-active {
  background: rgba(255, 255, 255, 0.8);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100dvh - 96px);
  padding: 72px 0 42px;
}

.hero-copy h1,
.section-heading h2,
.footer h2,
.visit-card h2 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 600;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-deep);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text,
.intro-card p,
.service-text,
.course-list-card li,
.thai-highlight p,
.section-side-note,
.contact-list dd,
.footer-bar p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-text {
  max-width: 58ch;
  margin: 26px 0 0;
}

.language-ribbon {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.language-ribbon span,
.service-tag,
.card-kicker,
.course-feature-label,
.panel-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 90, 74, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button-primary {
  background: var(--accent);
  color: #fffaf6;
  box-shadow: 0 18px 36px -24px rgba(139, 68, 40, 0.9);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-stats div,
.intro-card,
.course-list-card,
.thai-highlight,
.visit-card,
.service-note,
.collage-panel {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stats dd {
  margin: 6px 0 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  min-height: 620px;
}

.collage-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.panel-main {
  grid-column: span 2;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(245, 233, 220, 0.92)),
    linear-gradient(135deg, rgba(216, 181, 157, 0.18), transparent 60%);
}

.panel-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-main h2 {
  margin: 24px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.panel-main p:last-child,
.panel-small p,
.panel-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-small {
  min-height: 160px;
}

.panel-small.accent {
  background:
    linear-gradient(180deg, rgba(246, 239, 231, 0.95), rgba(241, 229, 217, 0.95)),
    linear-gradient(135deg, rgba(184, 192, 162, 0.18), transparent 65%);
}

.panel-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
}

.section {
  padding: 42px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading h2,
.footer h2,
.visit-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.intro-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.intro-card-large {
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.94), rgba(245, 233, 220, 0.84)),
    radial-gradient(circle at top right, rgba(216, 181, 157, 0.24), transparent 30%);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  gap: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: calc(var(--radius-xl) + 2px);
  background: rgba(255, 251, 246, 0.82);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.gallery-card figcaption strong {
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.gallery-card figcaption span {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card-large img {
  height: 100%;
  min-height: 540px;
}

.gallery-card-note {
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0.96), rgba(243, 231, 218, 0.96));
}

.service-band,
.service-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.service-band {
  min-height: 220px;
  background: rgba(255, 252, 247, 0.72);
}

.service-band-primary {
  transform: translateY(14px);
}

.service-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.service-note {
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.94), rgba(242, 229, 216, 0.92));
}

.service-note ul,
.course-list-card ul {
  margin: 0;
  padding-left: 18px;
}

.service-note li,
.course-list-card li {
  margin-top: 9px;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: end;
}

.section-side-note {
  margin: 0;
}

.course-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.course-feature {
  padding: 34px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(180deg, #d65f37, #a95032);
  color: #fff6ef;
  box-shadow: 0 32px 72px -40px rgba(135, 66, 39, 0.95);
}

.course-feature ol {
  margin: 24px 0 0;
  padding-left: 24px;
}

.course-feature li {
  margin-top: 12px;
  font-size: 1.08rem;
}

.course-list-group {
  display: grid;
  gap: 18px;
}

.course-list-card,
.thai-highlight {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.course-list-card h3,
.thai-highlight h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.course-list-card.subtle {
  background: rgba(252, 248, 242, 0.82);
}

.thai-section {
  padding-top: 62px;
}

.thai-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.thai-highlight {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.94), rgba(238, 232, 220, 0.9)),
    radial-gradient(circle at bottom right, rgba(184, 192, 162, 0.24), transparent 32%);
}

.visit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 34px;
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.96), rgba(243, 232, 220, 0.96));
}

.footer {
  padding: 24px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(244, 235, 226, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.contact-list {
  display: grid;
  gap: 22px;
  margin: 0;
}

.contact-list dt {
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.contact-list dd {
  margin: 0;
}

.contact-list a {
  color: var(--ink);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 8px 0;
}

.footer-bar a {
  color: var(--accent-deep);
  font-weight: 500;
}

@media (max-width: 1080px) {
  .hero,
  .intro-layout,
  .gallery-grid,
  .services-grid,
  .course-layout,
  .thai-grid,
  .footer-grid,
  .split-heading,
  .visit-card {
    grid-template-columns: 1fr;
  }

  .visit-card,
  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-band-primary {
    transform: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .lang-switch {
    order: 4;
    width: 100%;
  }

  .lang-trigger {
    width: 100%;
    justify-content: center;
  }

  .lang-menu {
    left: 0;
    right: 0;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav-cta {
    width: 100%;
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .panel-main {
    grid-column: auto;
  }

  .gallery-card-large img {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 20px, 100%);
    --radius-xl: 28px;
    --radius-lg: 22px;
  }

  .topbar {
    top: 10px;
    padding: 12px 14px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    font-size: 0.8rem;
  }

  .brand-mark-image {
    width: 54px;
    height: 54px;
    padding: 7px;
  }

  .hero-copy h1,
  .section-heading h2,
  .footer h2,
  .visit-card h2 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .collage-panel,
  .intro-card,
  .service-band,
  .service-note,
  .course-list-card,
  .thai-highlight,
  .visit-card,
  .footer-grid {
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .footer-bar {
    padding-inline: 2px;
  }
}
