:root {
  --v3-bg-primary: #f5f4f0;
  --v3-bg-secondary: #ebe8e2;
  --v3-text: #2c2c2c;
  --v3-primary: #7a8271;
  --v3-secondary: #8c7662;
  --bg: #fbf9f6;
  --surface: #fffdf9;
  --sand: #f3ede4;
  --text: #2c2a29;
  --muted: #6f6861;
  --moss: #8f9382;
  --moss-dark: #767b6c;
  --hojicha: #c2a68c;
  --accent: #c2a68c;
  --line: rgba(44, 42, 41, 0.1);
  --shadow: 0 18px 54px rgba(44, 42, 41, 0.08);
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.75;
  overflow-x: hidden;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

p,
li,
a,
span,
button {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.22;
}

h1 {
  max-width: 9.5em;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.2vw, 5.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

section {
  max-width: 100%;
  overflow-x: clip;
}

[id] {
  scroll-margin-top: 96px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(122, 130, 113, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(44, 44, 44, 0.08);
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: var(--text);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--text);
  background: rgba(250, 246, 239, 0.9);
  box-shadow: 0 12px 30px rgba(67, 52, 40, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(42, 36, 31, 0.08);
  border-radius: 8px;
  background: var(--hojicha);
  box-shadow: 0 12px 26px rgba(67, 52, 40, 0.12);
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #bfa58d;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.site-nav a:not(.nav-cta) {
  border-bottom: 1px solid transparent;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta).is-active {
  border-color: currentColor;
}

.nav-cta {
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(255, 250, 242, 0.86);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(67, 52, 40, 0.1);
}

.site-header.is-scrolled .nav-cta,
.site-header.is-open .nav-cta {
  background: var(--moss);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(24px, 6vw, 96px) clamp(74px, 8vw, 118px);
  color: var(--text);
  background: var(--bg);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.9) contrast(0.94) brightness(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(250, 246, 239, 0.94), rgba(250, 246, 239, 0.68) 42%, rgba(250, 246, 239, 0.18) 72%),
    linear-gradient(0deg, rgba(250, 246, 239, 0.68), rgba(250, 246, 239, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--hojicha);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--hojicha);
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--moss);
  color: #fff;
  box-shadow: 0 16px 32px rgba(111, 118, 101, 0.2);
}

.button.primary:hover {
  background: var(--moss-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button.secondary.dark {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.section {
  padding: clamp(82px, 10vw, 136px) clamp(20px, 6vw, 96px);
}

.band {
  background: rgba(238, 229, 218, 0.52);
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.studio-intro {
  background: var(--bg);
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1160px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.studio-grid article {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 36px);
  background: rgba(255, 250, 242, 0.78);
}

.studio-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--moss);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.studio-grid h3 {
  margin-bottom: 12px;
}

.studio-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.brand-experience {
  background:
    linear-gradient(180deg, rgba(251, 249, 246, 0), rgba(243, 237, 228, 0.72) 18%, rgba(243, 237, 228, 0.72) 82%, rgba(251, 249, 246, 0));
}

.brand-experience-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding: clamp(42px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-experience-copy {
  position: sticky;
  top: 112px;
  max-width: 520px;
}

.brand-experience-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand-experience-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.brand-experience-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.brand-experience-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: baseline;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255, 253, 249, 0.82);
}

.brand-experience-list span {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.brand-experience-list h3 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand-experience-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.course-grid article {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(67, 52, 40, 0.06);
  flex-direction: column;
}

.course-grid img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.course-grid article div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.course-grid span {
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(122, 130, 113, 0.12);
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 900;
}

.course-grid h3 {
  font-size: 1.35rem;
}

.course-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: min(980px, 100%);
  margin: 28px auto 0;
}

.course-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.photo-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(67, 52, 40, 0.08);
}

.photo-grid figure.is-hidden {
  display: none;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  transition: transform 240ms ease;
}

.photo-grid figure:nth-child(1) {
  grid-column: span 2;
}

.photo-grid figure:nth-child(1) img {
  aspect-ratio: 16 / 9;
}

.photo-grid figure:hover img {
  transform: scale(1.025);
}

.photo-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--text);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.gallery-card-course {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
  align-items: stretch;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.booking-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 22px;
  min-width: 0;
}

.booking-copy,
.booking-card,
.qr-card,
.info-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(44, 44, 44, 0.06);
}

.booking-copy,
.booking-card,
.info-card {
  padding: clamp(24px, 3.5vw, 36px);
}

.booking-copy p:not(.eyebrow),
.booking-card li,
.info-card li {
  color: var(--muted);
}

.booking-card ul,
.info-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 1.2em;
}

.booking-card .button {
  width: 100%;
}

.qr-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-content: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  text-align: center;
}

.qr-image-frame {
  display: grid;
  width: min(232px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(44, 44, 44, 0.12);
}

.qr-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-copy {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.qr-copy .button {
  width: 100%;
  margin-top: 4px;
}

.qr-card span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qr-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.72fr);
  gap: 22px;
  width: min(1080px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.map-card {
  overflow: hidden;
}

.map-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: var(--sand);
}

.link-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.link-stack .button {
  width: 100%;
}

.social-links {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.social-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
}

.social-links a::after {
  content: "↗";
  color: var(--moss);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(880px, 100%);
  margin: 0 auto;
}

.faq-list article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-list button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  padding: 18px 22px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-list strong {
  flex: 0 0 auto;
  color: var(--moss);
  font-family: var(--font-sans);
  font-size: 20px;
}

.faq-list p {
  display: none;
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-list article.is-open p {
  display: block;
}

.back-to-top {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 84px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(44, 44, 44, 0.86);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-action-bar {
  display: none;
}

.gallery-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 27, 24, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.7fr);
  width: min(980px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.gallery-modal-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #241f1b;
}

.gallery-modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.gallery-modal-copy p:not(.eyebrow) {
  color: var(--muted);
}

.gallery-modal-course {
  width: fit-content;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(122, 130, 113, 0.12);
  color: var(--moss-dark);
  font-size: 14px;
  font-weight: 900;
}

.gallery-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.gallery-modal-actions .button {
  width: 100%;
}

.gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 36px clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #f1e8dc;
  color: var(--muted);
}

.footer-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.footer-brand p,
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 800;
}

.footer-copy {
  text-align: right;
}

@media (max-width: 1040px) {
  .course-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .brand-experience-layout {
    grid-template-columns: 1fr;
  }

  .brand-experience-copy {
    position: static;
    max-width: 760px;
  }

  .brand-experience-list article {
    grid-template-columns: 54px minmax(0, 0.84fr) minmax(0, 1fr);
  }

  .photo-grid figure,
  .photo-grid figure:nth-child(1),
  .photo-grid figure:nth-child(5),
  .photo-grid figure:nth-child(7),
  .photo-grid figure:nth-child(10),
  .photo-grid figure:nth-child(14),
  .photo-grid figure:nth-child(20),
  .photo-grid figure:nth-child(21) {
    grid-column: auto;
  }

  .booking-section,
  .booking-main,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .qr-card {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .map-card img {
    height: auto;
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

}

@media (max-width: 680px) {
  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: 110px 18px 112px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(250, 246, 239, 0.96), rgba(250, 246, 239, 0.72) 58%, rgba(250, 246, 239, 0.18)),
      linear-gradient(90deg, rgba(250, 246, 239, 0.88), rgba(250, 246, 239, 0.36));
  }

  h1 {
    max-width: 9.2em;
    font-size: 2.28rem;
    line-height: 1.24;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .hero-actions .button,
  .booking-copy .button {
    width: 100%;
  }

  .hero-actions .button.secondary {
    display: none;
  }

  .section {
    padding: 72px 18px;
  }

  .section-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .course-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .studio-grid article {
    padding: 22px;
  }

  .brand-experience-layout {
    padding: 32px 0;
  }

  .brand-experience-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .brand-experience-list h3 {
    font-size: 1.22rem;
  }

  .course-grid article div,
  .booking-copy,
  .booking-card,
  .info-card {
    padding: 22px;
  }

  .qr-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 22px;
    text-align: center;
  }

  .qr-image-frame {
    width: min(236px, calc(100vw - 104px));
    padding: 12px;
  }

  .qr-copy .button {
    min-height: 46px;
  }

  .link-stack {
    grid-template-columns: 1fr;
  }

  .faq-list button {
    align-items: flex-start;
    padding: 18px;
  }

  .faq-list p {
    padding: 0 18px 18px;
  }

  .back-to-top {
    right: 18px;
    bottom: 96px;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 40;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 8px;
    background: rgba(44, 44, 44, 0.92);
    box-shadow: 0 18px 42px rgba(44, 44, 44, 0.28);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-action-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-action-bar a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    line-height: 1.18;
  }

  .mobile-action-bar a {
    background: var(--moss);
  }

  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal-card {
    grid-template-columns: 1fr;
    max-height: 88svh;
    overflow-y: auto;
  }

  .gallery-modal-card img {
    min-height: 0;
    max-height: 52svh;
  }

  .gallery-modal-copy {
    padding: 22px;
  }

  .site-footer {
    padding-bottom: 108px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
  }
}

/* Premium Japandi rebuild */
.brand-site-container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 48px;
}

.site-header {
  padding: 18px clamp(24px, 4vw, 64px);
  background: rgba(251, 249, 246, 0.78);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 249, 246, 0.92);
}

.brand-mark,
.footer-brand img {
  border-radius: 4px;
}

.nav-cta,
.button,
.faq-list article,
.booking-copy,
.booking-card,
.qr-card,
.info-card,
.map-card {
  border-radius: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.92fr);
  gap: clamp(36px, 6vw, 96px);
  min-height: 100svh;
  align-items: center;
  justify-items: stretch;
  padding: 132px clamp(48px, 7vw, 112px) 72px;
  text-align: left;
  isolation: isolate;
}

.hero-bg {
  opacity: 0.94;
  object-position: center center;
  filter: saturate(0.9) sepia(0.06) brightness(1.01) contrast(0.96);
}

.hero-shade {
  background:
    radial-gradient(circle at 82% 34%, rgba(243, 237, 228, 0.66), rgba(251, 249, 246, 0) 36%),
    linear-gradient(90deg, rgba(251, 249, 246, 0.98), rgba(251, 249, 246, 0.72) 58%, rgba(251, 249, 246, 0.34));
}

.hero-inner {
  display: grid;
  justify-items: start;
  width: min(620px, 100%);
  animation: koalaFadeUp 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  max-width: 8.4em;
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(3.5rem, 5.5vw, 6.1rem);
  line-height: 1.22;
  letter-spacing: 0.12em;
}

.hero-script {
  margin: 0 0 28px;
  color: rgba(194, 166, 140, 0.82);
  font-family: "Segoe Script", "Bradley Hand ITC", "Noto Serif TC", serif;
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
  line-height: 1;
  transform: rotate(-4deg);
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 32px;
  color: rgba(44, 42, 41, 0.74);
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 680px);
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 32px 90px rgba(44, 42, 41, 0.1);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 0.86;
  height: auto;
  object-fit: cover;
  filter: saturate(0.86) brightness(1.06) sepia(0.04);
}

.scroll-cue {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 58px;
  margin-top: clamp(34px, 5vw, 76px);
  place-items: center;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--accent), rgba(194, 166, 140, 0));
  animation: koalaScrollCue 1.7s ease-in-out infinite;
}

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

@keyframes koalaScrollCue {
  0%,
  100% {
    transform: translateY(-4px);
    opacity: 0.45;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.section {
  padding: clamp(96px, 10vw, 156px) 0;
}

.section > .section-heading,
.section > .booking-main,
.section > .qr-card,
.visit-section > .section-heading,
.visit-grid,
.faq-list,
.booking-section {
  width: min(1440px, calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
}

.editorial-heading {
  width: min(860px, 100%);
  margin-bottom: 56px;
}

.course-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.2vw, 32px);
  align-items: stretch;
}

.course-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(44, 42, 41, 0.045);
}

.course-card-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.course-card-image-wrapper img {
  width: 100%;
  height: clamp(260px, 24vw, 340px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) brightness(1.08) sepia(0.05);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-image-wrapper img {
  transform: scale(1.03);
}

.course-card-copy {
  display: grid;
  align-content: start;
  min-height: 212px;
  padding: clamp(24px, 2.2vw, 30px);
}

.course-card-copy span,
.handcraft-copy span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-card-copy h3,
.handcraft-copy h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  letter-spacing: 0.03em;
}

.course-card-copy p,
.handcraft-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.handcraft-special-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 32px;
  border-radius: 4px;
  padding: clamp(42px, 5vw, 64px);
  background: var(--sand);
}

.handcraft-copy .button {
  margin-top: 28px;
}

.handcraft-image {
  overflow: hidden;
  border-radius: 4px;
}

.handcraft-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(0.82) brightness(1.08) sepia(0.05);
}

.portfolio-section {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 52px);
  width: min(1320px, 100%);
  margin: 0 auto;
}

.portfolio-grid figure,
.portfolio-grid figure:nth-child(1) {
  display: grid;
  grid-column: auto;
  grid-template-rows: auto minmax(78px, auto);
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 42, 41, 0.08);
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 18px 48px rgba(44, 42, 41, 0.045);
}

.portfolio-grid img,
.portfolio-grid figure:nth-child(1) img {
  width: 100%;
  height: clamp(330px, 34vw, 470px);
  padding: clamp(18px, 2vw, 28px);
  aspect-ratio: 1 / 1.08;
  object-fit: contain;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.9), rgba(251, 249, 246, 0.9));
  filter: saturate(0.88) brightness(1.04) sepia(0.04);
  box-shadow: none;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid figure:hover img {
  transform: scale(1.018);
  filter: saturate(0.94) brightness(1.02) sepia(0.02);
}

.portfolio-grid figcaption {
  position: static;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 0 clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px);
  background: transparent;
  color: var(--text);
  opacity: 1;
  transform: none;
  backdrop-filter: none;
}

.portfolio-grid figcaption strong,
.portfolio-grid figcaption span {
  display: block;
  overflow-wrap: anywhere;
}

.portfolio-grid figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portfolio-grid figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.group-program-section {
  background: var(--bg);
}

.group-program-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.54fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.group-program-copy {
  max-width: 470px;
}

.group-program-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.group-program-copy p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
}

.group-program-image {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
}

.group-program-image img {
  width: 100%;
  height: clamp(360px, 42vw, 620px);
  object-fit: cover;
  filter: saturate(0.82) brightness(1.08) sepia(0.05);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.group-program-image:hover img {
  transform: scale(1.025);
}

.group-program-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-program-features article {
  min-width: 0;
  padding: 28px 24px;
  text-align: center;
}

.group-program-features article + article {
  border-left: 1px solid var(--line);
}

.group-program-features span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.group-program-features h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.news-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.news-heading h2 {
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.news-heading > a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.news-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.news-row article {
  min-width: 0;
}

.news-row img {
  width: 100%;
  height: clamp(170px, 16vw, 240px);
  margin-bottom: 18px;
  border-radius: 4px;
  object-fit: cover;
  filter: saturate(0.84) brightness(1.07) sepia(0.05);
}

.news-row time {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.news-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.booking-section {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1040px) {
  .brand-site-container {
    padding: 0 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-inner {
    width: min(680px, 100%);
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 16 / 9;
  }

  .course-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .course-card-image-wrapper img {
    height: clamp(240px, 34vw, 320px);
  }

  .handcraft-special-block {
    grid-template-columns: 1fr;
  }

  .group-program-layout {
    grid-template-columns: 1fr;
  }

  .group-program-features,
  .news-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-program-features article:nth-child(3) {
    border-left: 0;
  }

  .group-program-features article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 56px, 980px);
  }

  .portfolio-grid img,
  .portfolio-grid figure:nth-child(1) img {
    height: clamp(300px, 48vw, 430px);
  }
}

@media (max-width: 680px) {
  .brand-site-container {
    padding: 0 18px;
  }

  .hero {
    min-height: auto;
    padding: 118px 18px 76px;
  }

  .hero-shade {
    background:
      radial-gradient(circle at 68% 28%, rgba(243, 237, 228, 0.74), rgba(251, 249, 246, 0) 40%),
      linear-gradient(180deg, rgba(251, 249, 246, 0.98), rgba(251, 249, 246, 0.78));
  }

  .hero h1 {
    width: min(100%, 340px);
    max-width: none;
    font-size: clamp(2.35rem, 10.2vw, 3.2rem);
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .hero-script {
    margin-bottom: 24px;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-lead {
    width: min(100%, 335px);
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.85;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-visual img {
    aspect-ratio: 1.16;
  }

  .section {
    padding: 78px 0;
  }

  .section > .section-heading,
  .section > .booking-main,
  .section > .qr-card,
  .visit-section > .section-heading,
  .visit-grid,
  .faq-list,
  .booking-section {
    width: calc(100% - 36px);
  }

  .course-bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-card-image-wrapper img {
    height: min(72vw, 300px);
  }

  .course-card-copy {
    min-height: 0;
  }

  .course-card-copy,
  .handcraft-special-block {
    padding: 24px;
  }

  .handcraft-image img {
    height: 280px;
  }

  .group-program-copy {
    max-width: none;
  }

  .group-program-image img {
    height: 300px;
  }

  .group-program-features,
  .news-row {
    grid-template-columns: 1fr;
  }

  .group-program-features article,
  .group-program-features article + article,
  .group-program-features article:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .group-program-features article:first-child {
    border-top: 0;
  }

  .news-heading {
    display: grid;
    align-items: start;
  }

  .news-row {
    gap: 30px;
  }

  .news-row img {
    height: auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .portfolio-grid img,
  .portfolio-grid figure:nth-child(1) img {
    height: min(92vw, 420px);
    padding: 16px;
  }

  .portfolio-grid figcaption {
    padding-bottom: 10px;
  }
}

@media (max-width: 360px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Drive gallery refinement: warm editorial layout, no forced image cropping for works */
.courses-section,
.portfolio-section {
  background: var(--bg);
}

.courses-section .editorial-heading,
.portfolio-section .editorial-heading {
  margin-bottom: clamp(42px, 6vw, 78px);
}

.course-bento-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.7vw, 38px);
  width: min(1280px, 100%);
  margin: 0 auto;
}

.course-card {
  overflow: hidden;
  border: 1px solid rgba(44, 42, 41, 0.1);
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: none;
}

.course-card-image-wrapper {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.course-card-image-wrapper img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  filter: saturate(0.88) brightness(1.05) sepia(0.035);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), filter 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-image-wrapper img {
  transform: scale(1.025);
  filter: saturate(0.92) brightness(1.06) sepia(0.025);
}

.course-card-copy {
  min-height: 218px;
  padding: clamp(24px, 2.4vw, 34px);
}

.course-card-copy span {
  color: var(--accent);
  letter-spacing: 0.18em;
}

.course-card-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 500;
}

.handcraft-special-block {
  width: min(1280px, 100%);
  margin: clamp(28px, 3vw, 42px) auto 0;
  border: 1px solid rgba(44, 42, 41, 0.08);
  border-radius: 4px;
  background: var(--sand);
  box-shadow: none;
}

.handcraft-image {
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}

.handcraft-image img {
  height: clamp(340px, 34vw, 520px);
  object-fit: cover;
  filter: saturate(0.88) brightness(1.05) sepia(0.035);
}

.portfolio-section {
  background:
    linear-gradient(180deg, rgba(243, 237, 228, 0.42), rgba(251, 249, 246, 0.95) 28%, rgba(251, 249, 246, 1));
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 3.4vw, 58px) clamp(28px, 3vw, 46px);
  width: min(1280px, 100%);
  align-items: start;
}

.portfolio-grid figure,
.portfolio-grid figure:nth-child(1) {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-grid img,
.portfolio-grid figure:nth-child(1) img {
  width: 100%;
  height: clamp(360px, 31vw, 470px);
  padding: clamp(18px, 1.8vw, 26px);
  border: 1px solid rgba(44, 42, 41, 0.1);
  border-radius: 4px;
  aspect-ratio: auto;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(246, 240, 232, 0.6)),
    var(--surface);
  box-shadow: 0 18px 46px rgba(44, 42, 41, 0.055);
  filter: saturate(0.9) brightness(1.04) sepia(0.025);
}

.portfolio-grid figure:hover img {
  transform: translateY(-4px);
  filter: saturate(0.92) brightness(1.05) sepia(0.02);
}

.portfolio-grid figcaption {
  padding: 0 6px;
}

.portfolio-grid figcaption strong {
  font-size: 1.02rem;
  font-weight: 500;
}

.portfolio-grid figcaption span {
  color: rgba(44, 42, 41, 0.62);
  font-size: 0.86rem;
}

@media (max-width: 1040px) {
  .course-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .course-card-image-wrapper img {
    height: 100%;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .portfolio-grid img,
  .portfolio-grid figure:nth-child(1) img {
    height: clamp(330px, 48vw, 460px);
  }
}

@media (max-width: 680px) {
  .course-bento-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .course-card-copy {
    min-height: 0;
  }

  .portfolio-grid {
    gap: 30px;
  }

  .portfolio-grid img,
  .portfolio-grid figure:nth-child(1) img {
    height: min(104vw, 500px);
    padding: 14px;
  }
}

/* 作品選集入口按鈕列 */
.works-entry-row {
  display: flex;
  justify-content: center;
  width: min(1280px, 100%);
  margin: clamp(34px, 4vw, 52px) auto 0;
}

/* ===== M7 視覺質感升級 ===== */

/* 自架字體：Cormorant Garamond（latin） */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }



/* 字體層級：Cormorant Garamond 作為拉丁展示字體 */
:root {
  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: rgba(194, 166, 140, 0.9);
  transform: rotate(-3deg);
  letter-spacing: 0.02em;
}

h1 { letter-spacing: 0.1em; }
h2 { letter-spacing: 0.06em; line-height: 1.32; }

.studio-grid span,
.brand-experience-list span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.course-card-copy span,
.handcraft-copy span,
.group-program-features span,
.news-row time,
.qr-card span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.footer-copy { font-family: var(--font-display); letter-spacing: 0.08em; }

/* 進場編排 */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.rv.rv-in {
  opacity: 1;
  transform: translateY(0);
}

/* 視差圖層防裁切 */
.hero-visual { will-change: transform; }

/* 按鈕微互動精修 */
.button {
  position: relative;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(111, 118, 101, 0.3);
}

.button.primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(111, 118, 101, 0.22);
}

/* 圖片浮現質感：載入完成前的底色 */
.course-card-image-wrapper,
.portfolio-grid figure,
.news-row img {
  background: var(--sand);
}

/* 導覽連結底線滑入 */
.site-nav a:not(.nav-cta) {
  position: relative;
  border-bottom: 0;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transition: left 300ms cubic-bezier(0.16, 1, 0.3, 1), right 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta).is-active::after {
  left: 10px;
  right: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-visual { transform: none !important; }
}

/* ===== M7-2 設計圖改版：奶油杏色調 × 宋體編排 ===== */
:root {
  --bg: #FBF9F6;
  --surface: #FDFCFA;
  --sand: #F4F0EA;
  --text: #3C3A36;
  --muted: #6E665C;
  --moss: #8A7E6F;
  --moss-dark: #6E665C;
  --hojicha: #AB9F91;
  --accent: #AB9F91;
  --beige: #D4C5B9;
  --line: rgba(60, 58, 54, 0.14);
}

body { background: var(--bg); }

/* 方角、扁平 */
.nav-cta, .button, .faq-list article, .booking-copy, .booking-card,
.qr-card, .info-card, .map-card, .course-card, .brand-mark,
.works-filter button { border-radius: 0 !important; }

/* Header：手寫 Logo lockup */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/caveat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/caveat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { display: inline-flex; flex: 0 0 auto; }
.brand-logo img {
  width: auto;
  height: 42px;
  display: block;
  transition: height 0.3s ease;
}
.site-header.is-scrolled .brand-logo img { height: 36px; }
.brand-v2 { display: grid; gap: 1px; }
.brand strong.brand-script {
  font-family: "Caveat", var(--font-display), cursive;
  font-style: normal;
  font-size: 36px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: #90704f;
}
.brand-v2 small {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0.66;
}
@media (max-width: 640px) {
  .brand-logo img { height: 34px; }
  .brand-script { font-size: 29px; }
  .brand-v2 small { font-size: 8.5px; letter-spacing: 0.22em; }
}
.visit-address { font-family: var(--font-serif); font-size: 1.02rem; letter-spacing: 0.02em; margin: 0 0 18px; color: var(--text, #2c2a29); }
.site-nav { font-weight: 600; letter-spacing: 0.08em; }
.nav-cta {
  border: 1px solid var(--line);
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  border-radius: 999px !important;
  padding: 10px 22px;
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease;
}
.nav-cta:hover { background: var(--text) !important; color: #fff !important; border-color: var(--text); }
.site-header.is-scrolled .nav-cta { background: transparent !important; color: var(--text) !important; }
.site-header.is-scrolled .nav-cta:hover { background: var(--text) !important; color: #fff !important; }

/* 全幅 Hero */
.hero-v2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 94svh;
  padding: 140px clamp(24px, 7vw, 120px) 90px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg-wrap { position: absolute; inset: 0; z-index: -1; }
.hero-bg-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
  filter: saturate(0.88) brightness(1.05);
}
.hero-shade-v2 {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 249, 246, 0.94) 0%, rgba(251, 249, 246, 0.72) 34%, rgba(251, 249, 246, 0.12) 62%, rgba(251, 249, 246, 0.05) 100%),
    linear-gradient(0deg, rgba(251, 249, 246, 0.55), rgba(251, 249, 246, 0) 36%);
}
.hero-inner-v2 { width: min(660px, 100%); animation: koalaFadeUp 1s cubic-bezier(0.16,1,0.3,1) both; }
.hero-inner-v2 .eyebrow { margin-bottom: 22px; color: var(--muted); }
.hero-v2 h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
}
.hero-v2 .hero-lead {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  letter-spacing: 0.14em;
}
.hero-brandline {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 34px;
  color: rgba(60,58,54,0.55);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.34em;
}
.hero-brandline::before { content: ""; width: 56px; height: 1px; background: rgba(60,58,54,0.35); }
.hero-cta {
  border: 1px solid rgba(60,58,54,0.55);
  background: rgba(251,249,246,0.6);
  color: var(--text);
  padding: 14px 30px;
  font-weight: 600;
  letter-spacing: 0.18em;
  box-shadow: none;
}
.hero-cta:hover { background: var(--text); color: #fff; border-color: var(--text); }
.arr { display: inline-block; margin-left: 12px; transition: transform 300ms cubic-bezier(0.16,1,0.3,1); }
.hero-cta:hover .arr, .more-link:hover .arr { transform: translateX(6px); }
.hero-vertical {
  position: absolute; right: clamp(14px, 2.4vw, 34px); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: rgba(60,58,54,0.5);
  font-size: 0.82rem;
  letter-spacing: 0.42em;
}
.scroll-cue-v2 {
  display: flex; align-items: center; gap: 12px;
  width: auto; height: auto; min-width: 0;
  margin-top: clamp(40px, 6vw, 84px);
  color: rgba(60,58,54,0.6);
}
.scroll-cue-v2 small { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.3em; }
.scroll-cue-v2 span { width: 52px; height: 1px; background: rgba(60,58,54,0.45); animation: none; }

/* 課程卡：扁平 + 了解更多 */
.course-card { border: 1px solid var(--line); background: var(--surface); box-shadow: none !important; }
.course-bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.course-card-image-wrapper { aspect-ratio: 1 / 1; }
.course-card-copy { min-height: 0; padding: 22px 22px 24px; }
.course-card-copy h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 8px; }
.course-card-copy p { font-size: 0.9rem; line-height: 1.8; }
.more-link {
  display: inline-flex; align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-bottom: 1px solid transparent;
  transition: color 240ms ease;
}
.more-link:hover { color: var(--text); }

/* 主要按鈕統一改外框式 */
.button.primary {
  background: var(--text);
  color: #fff;
  letter-spacing: 0.16em;
  font-weight: 600;
  box-shadow: none;
}
.button.primary:hover { background: #55524C; box-shadow: none; transform: translateY(-2px); }

/* 報課流程 */
.flow-section { background: var(--sand); }
.flow-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(18px, 2.4vw, 34px);
  width: min(1180px, 100%); margin: 0 auto; padding: 0;
  list-style: none; text-align: center;
}
.flow-steps li { padding: clamp(20px, 2vw, 30px) 12px; }
.flow-steps svg { width: 58px; height: 58px; margin: 0 auto 16px; color: var(--hojicha); display: block; }
.flow-steps strong {
  display: block; margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.06rem; font-weight: 600; letter-spacing: 0.14em;
}
.flow-steps p { margin: 0; color: var(--muted); font-size: 0.88rem; letter-spacing: 0.06em; }

/* LINE 浮動按鈕 */
.line-float {
  position: fixed; z-index: 60;
  right: clamp(14px, 2.5vw, 30px); bottom: clamp(14px, 2.5vw, 28px);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 12px;
  background: rgba(253, 252, 250, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(60, 58, 54, 0.16);
  backdrop-filter: blur(10px);
  transition: transform 260ms cubic-bezier(0.16,1,0.3,1), box-shadow 260ms ease;
}
.line-float:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(60,58,54,0.22); }
.line-float-dot {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: #06C755; color: #fff;
  border-radius: 50%;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
}
.line-float-text { display: grid; line-height: 1.35; }
.line-float-text strong { font-size: 0.88rem; letter-spacing: 0.08em; }
.line-float-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }
.back-to-top { bottom: 92px; right: clamp(14px, 2.5vw, 30px); border-radius: 50%; }

/* 響應式 */
@media (max-width: 1180px) {
  .course-bento-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 900px) {
  .hero-vertical { display: none; }
  .flow-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand-script { font-size: 25px; }
}
@media (max-width: 560px) {
  .hero-v2 { min-height: 86svh; padding-top: 120px; }
  .hero-v2 h1 { font-size: 1.72rem; letter-spacing: 0.12em; line-height: 1.7; }
  .course-bento-grid { grid-template-columns: 1fr !important; }
  .flow-steps { grid-template-columns: 1fr; }
  .line-float-text small { display: none; }
  .site-footer { padding-bottom: 96px; }
}

/* ===== 老師介紹 ===== */
.teacher-section { background: var(--bg); }
.teacher-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.teacher-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--sand);
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  filter: saturate(0.94) brightness(1.02);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.teacher-photo:hover img { transform: scale(1.03); }
.teacher-copy { max-width: 520px; }
.teacher-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.teacher-lead {
  margin-bottom: 20px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.04em;
}
.teacher-copy p:not(.eyebrow):not(.teacher-lead) {
  color: var(--muted);
  line-height: 1.95;
}
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}
.teacher-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ===== 手機跑版修正：強制單欄收合（覆蓋後段非 media 的雙欄規則） ===== */
@media (max-width: 960px) {
  .booking-section,
  .booking-main,
  .visit-grid,
  .teacher-layout,
  .group-program-layout,
  .brand-experience-layout {
    grid-template-columns: 1fr !important;
  }
  .booking-section { padding-left: 0; padding-right: 0; }
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .teacher-photo img { max-height: 460px; }
  .teacher-copy { max-width: none; }
}

/* 預約區雙 CTA（線上報名 + LINE） */
.booking-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.booking-cta-row .button { flex: 0 1 auto; }
@media (max-width: 560px) {
  .booking-cta-row { flex-direction: column; }
  .booking-cta-row .button { width: 100%; }
}

/* ===== 生活風格 Lifestyle Mood ===== */
.mood-section { background: var(--sand); padding-left: 0; padding-right: 0; }
.mood-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
}
.mood-visual { margin: 0; overflow: hidden; }
.mood-visual img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mood-visual:hover img { transform: scale(1.03); }
.mood-copy { max-width: 460px; }
.mood-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.mood-copy p { color: var(--muted); line-height: 1.95; }

/* Google 地圖卡 */
.map-card { overflow: hidden; padding: 0; }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

@media (max-width: 960px) {
  .mood-layout { grid-template-columns: 1fr; width: calc(100% - 36px); }
  .mood-copy { max-width: none; }
  .mood-visual img { max-height: 380px; }
}

/* ===== 課程表 Class Schedule (M8) ===== */
.schedule-section { background: var(--sand, #f3ede4); }
.schedule-wrap { width: min(1080px, 100%); margin: 8px auto 0; }
.schedule-empty { text-align: center; color: var(--muted, #6f6861); padding: 24px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.schedule-day { background: var(--surface, #fffdf9); border: 1px solid var(--line, rgba(44,42,41,.1)); padding: 16px 14px; }
.schedule-day-name { margin: 0 0 12px; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; color: #90704f; border-bottom: 1px solid var(--line, rgba(44,42,41,.1)); padding-bottom: 8px; }
.schedule-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.schedule-slot { display: grid; gap: 3px; padding: 10px 12px; background: var(--bg, #fbf9f6); border-left: 3px solid var(--moss, #8f9382); }
.schedule-slot .slot-time { font-weight: 700; font-size: .96rem; letter-spacing: .02em; }
.schedule-slot .slot-course { font-size: .9rem; color: var(--text, #2c2a29); }
.schedule-slot .slot-status { justify-self: start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; margin-top: 3px; }
.schedule-slot .slot-note { font-size: .78rem; color: var(--muted, #6f6861); }
.schedule-slot.is-open { border-left-color: #5d7a4e; } .schedule-slot.is-open .slot-status { background: rgba(93,122,78,.14); color: #4c6640; }
.schedule-slot.is-few { border-left-color: #b07f3a; } .schedule-slot.is-few .slot-status { background: rgba(176,127,58,.16); color: #8f6526; }
.schedule-slot.is-full { border-left-color: #b9b2aa; opacity: .72; } .schedule-slot.is-full .slot-status { background: rgba(120,112,104,.16); color: #6f6861; } .schedule-slot.is-full .slot-time { text-decoration: line-through; }
.schedule-slot.is-reserve { border-left-color: #8a6f57; } .schedule-slot.is-reserve .slot-status { background: rgba(138,111,87,.16); color: #7a5f45; }
.schedule-updated { text-align: right; width: min(1080px, 100%); margin: 12px auto 0; font-size: .78rem; color: var(--muted, #6f6861); }
.schedule-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.schedule-cta .button.ghost { background: transparent; border: 1px solid #90704f; color: #90704f; }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 18px; font-size: .78rem; color: var(--muted, #6f6861); }
.schedule-legend .lg { position: relative; padding-left: 16px; }
.schedule-legend .lg::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; }
.schedule-legend .lg.is-open::before { background: #5d7a4e; }
.schedule-legend .lg.is-few::before { background: #b07f3a; }
.schedule-legend .lg.is-full::before { background: #b9b2aa; }
.schedule-legend .lg.is-reserve::before { background: #8a6f57; }
@media (max-width: 640px) { .schedule-grid { grid-template-columns: 1fr 1fr; } }

/* ===== 課程表：檢視切換 + 月曆 (M8) ===== */
.schedule-tabs { display: flex; justify-content: center; gap: 6px; margin: 6px auto 22px; background: var(--surface, #fffdf9); border: 1px solid var(--line, rgba(44,42,41,.1)); border-radius: 999px; padding: 5px; width: fit-content; }
.schedule-tab { font: inherit; font-weight: 700; letter-spacing: .04em; border: 0; background: transparent; color: var(--muted, #6f6861); padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: .2s; }
.schedule-tab.is-active { background: #90704f; color: #fff; }
.schedule-updated { text-align: right; width: min(1080px, 100%); margin: 12px auto 0; font-size: .78rem; color: var(--muted, #6f6861); }

.cal-head { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.cal-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; letter-spacing: .06em; }
.cal-nav { font: inherit; font-size: 1.4rem; line-height: 1; width: 40px; height: 40px; border: 1px solid var(--line, rgba(44,42,41,.15)); background: var(--surface, #fffdf9); border-radius: 50%; cursor: pointer; color: #90704f; }
.cal-nav:hover { background: #f3ede4; }
.cal-grid { width: min(1080px, 100%); margin: 0 auto; }
.cal-weekrow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-wk { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted, #6f6861); letter-spacing: .1em; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 92px; background: var(--surface, #fffdf9); border: 1px solid var(--line, rgba(44,42,41,.08)); border-radius: 6px; padding: 6px 6px 4px; display: flex; flex-direction: column; gap: 3px; }
.cal-cell.is-empty { background: transparent; border: 0; }
.cal-cell.is-past { opacity: .45; }
.cal-cell.is-today { border-color: #90704f; box-shadow: 0 0 0 1px #90704f inset; }
.cal-cell.has-slots { background: #fbf7f1; }
.cal-date { font-weight: 700; font-size: .9rem; color: var(--text, #2c2a29); }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; }
.cal-items { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.cal-item { font-size: .72rem; line-height: 1.35; color: var(--muted, #6f6861); padding-left: 8px; border-left: 3px solid var(--moss, #8f9382); }
.cal-item b { color: var(--text, #2c2a29); font-weight: 700; }
.cal-dot.is-open, .cal-item.is-open { border-left-color: #5d7a4e; background: rgba(93,122,78,.14); }
.cal-dot.is-open { background: #5d7a4e; }
.cal-dot.is-few, .cal-item.is-few { border-left-color: #b07f3a; background: rgba(176,127,58,.14); }
.cal-dot.is-few { background: #b07f3a; }
.cal-dot.is-full, .cal-item.is-full { border-left-color: #b9b2aa; background: rgba(120,112,104,.12); }
.cal-dot.is-full { background: #b9b2aa; }
.cal-dot.is-reserve, .cal-item.is-reserve { border-left-color: #8a6f57; background: rgba(138,111,87,.14); }
.cal-dot.is-reserve { background: #8a6f57; }
.cal-hint { text-align: center; color: var(--muted, #6f6861); font-size: .8rem; margin-top: 16px; }
@media (max-width: 640px) {
  .cal-cell { min-height: 52px; padding: 4px 3px; }
  .cal-items { display: none; }
  .cal-dots { display: flex; }
  .cal-date { font-size: .8rem; }
}

/* ---------- 課程表：可點選 + 詳情面板 ---------- */
.view-hint { text-align: center; color: var(--muted, #6f6861); font-size: .82rem; margin: 0 auto 14px; letter-spacing: .02em; }
.schedule-day-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.schedule-day-name .day-count { font-family: var(--font-sans, inherit); font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #90704f; background: rgba(144,112,79,.1); border-radius: 999px; padding: 2px 8px; }
.schedule-day { cursor: pointer; transition: box-shadow .18s, transform .18s, border-color .18s; }
.schedule-day:hover { border-color: #cdb9a1; box-shadow: 0 6px 18px rgba(44,42,41,.08); }
.schedule-day:focus-visible { outline: 2px solid #90704f; outline-offset: 2px; }
.schedule-day.is-selected { border-color: #90704f; box-shadow: 0 0 0 1px #90704f inset; }
.schedule-day .schedule-slot { cursor: pointer; }

/* 月曆格：可點選 */
.cal-cell.has-slots { cursor: pointer; transition: box-shadow .18s, border-color .18s; }
.cal-cell.has-slots:hover { border-color: #cdb9a1; box-shadow: 0 4px 14px rgba(44,42,41,.08); }
.cal-cell.has-slots:focus-visible { outline: 2px solid #90704f; outline-offset: 1px; }
.cal-cell.is-selected { border-color: #90704f; box-shadow: 0 0 0 2px #90704f inset; background: #f6efe5; }

/* 詳情面板 */
.schedule-detail { width: min(1080px, 100%); margin: 22px auto 0; background: var(--surface, #fffdf9); border: 1px solid var(--line, rgba(44,42,41,.12)); border-radius: 12px; padding: 20px 22px 22px; }
.schedule-detail.is-empty { text-align: center; color: var(--muted, #6f6861); }
.schedule-detail.is-empty p { margin: 6px 0; }
.detail-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line, rgba(44,42,41,.1)); }
.detail-head b { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: #2c2a29; }
.detail-head span { font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: #90704f; }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.detail-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--bg, #fbf9f6); border-left: 4px solid var(--moss, #8f9382); border-radius: 6px; }
.detail-item .di-time { font-weight: 800; font-size: 1rem; letter-spacing: .02em; white-space: nowrap; }
.detail-item .di-course { font-size: .95rem; color: var(--text, #2c2a29); }
.detail-item .di-status { justify-self: end; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.detail-item .di-note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted, #6f6861); }
.detail-item.is-open { border-left-color: #5d7a4e; } .detail-item.is-open .di-status { background: rgba(93,122,78,.14); color: #4c6640; }
.detail-item.is-few { border-left-color: #b07f3a; } .detail-item.is-few .di-status { background: rgba(176,127,58,.16); color: #8f6526; }
.detail-item.is-full { border-left-color: #b9b2aa; opacity: .8; } .detail-item.is-full .di-status { background: rgba(120,112,104,.16); color: #6f6861; } .detail-item.is-full .di-time { text-decoration: line-through; }
.detail-item.is-reserve { border-left-color: #8a6f57; } .detail-item.is-reserve .di-status { background: rgba(138,111,87,.16); color: #7a5f45; }
.detail-book { margin-top: 16px; display: inline-block; }
@media (max-width: 640px) {
  .detail-item { grid-template-columns: auto 1fr; }
  .detail-item .di-status { grid-column: 2; justify-self: start; }
  .schedule-detail { padding: 16px 16px 18px; }
}
