:root {
  --paper: #f3e9dc;
  --paper-deep: #eadfce;
  --ink: #1c1916;
  --ink-soft: #4a433c;
  --navy: #24344f;
  --line: rgba(36, 52, 79, 0.16);
  --cinnabar: #9d3b34;
  --white: #fbf7f1;
  --shell: #f4ead4;
  --focus: #8a6a2f;
  --header: 4.6rem;
  color-scheme: light;
}

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

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

html.lang-ko .ja {
  display: none !important;
}

html.lang-ja .ko {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans KR", "Noto Sans JP", "Malgun Gothic", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 40;
  background: var(--navy);
  color: #f6f1e8;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(1080px, calc(100% - 2.25rem));
  margin-inline: auto;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #eadfce;
  box-shadow: inset 0 -1px 0 var(--line);
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #9ec4cc 12%,
    #e7c2c4 34%,
    #c9d7c2 56%,
    #e3d2a4 76%,
    #b9c6e4 90%,
    transparent
  );
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-height: 4rem;
  padding-block: 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}

.brand svg,
.step-stone svg {
  display: block;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
}

.nav a:hover {
  background: rgba(36, 52, 79, 0.06);
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.7);
}

.lang button {
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  color: var(--ink-soft);
}

html.lang-ko .lang [data-set-lang="ko"],
html.lang-ja .lang [data-set-lang="ja"] {
  background: var(--navy);
  color: #f6f1e8;
}

.hero {
  background: linear-gradient(180deg, #eadfce 0%, #f2e6d8 46%, var(--paper) 100%);
  padding-block: 1.35rem 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "art"
    "actions";
  gap: 0.35rem 1.5rem;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.hero-figure {
  grid-area: art;
  margin: 0;
}

.actions {
  grid-area: actions;
}

.kicker {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(2.5rem, 10vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.reading {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.lead {
  margin: 0.9rem 0 0;
  max-width: 16em;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.support {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.hero-figure img {
  display: block;
  width: min(78vw, 340px);
  height: auto;
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(72, 52, 34, 0.1);
}

.hero-figure figcaption {
  margin: 0.15rem 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-primary {
  background: var(--navy);
  color: #f6f1e8;
}

.btn-primary:hover {
  background: #1a2740;
}

.btn-ghost {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(36, 52, 79, 0.06);
}

.section {
  padding-block: 3.1rem 3.3rem;
  scroll-margin-top: 8rem;
}

.hero {
  scroll-margin-top: 8rem;
}

.eyebrow {
  margin: 0;
  color: var(--cinnabar);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0.3rem 0 0.85rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.prose {
  max-width: 38rem;
}

.prose p,
.intro {
  margin: 0 0 0.85rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.specs {
  display: grid;
  gap: 0.8rem;
}

.spec {
  background: rgba(251, 247, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.05rem 0.35rem;
}

.spec h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.spec ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec li {
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
}

.path {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  position: relative;
  display: grid;
}

.path::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  bottom: 18px;
  border-left: 2px dashed rgba(36, 52, 79, 0.28);
}

.path li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  position: relative;
}

.step-stone {
  width: 32px;
  height: 32px;
  display: block;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.step-stone svg {
  width: 32px;
  height: 32px;
}

.path h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.path p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.frame-note {
  margin: 0.4rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  background: rgba(251, 247, 241, 0.65);
  max-width: 40rem;
}

.product-list,
.gallery-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.frame {
  background: #fbf7f1;
  overflow: hidden;
}

.product .frame {
  aspect-ratio: 4 / 3;
}

.frame-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(36, 52, 79, 0.04), transparent 42%),
    #fbf7f1;
  box-shadow: inset 0 0 0 1px rgba(36, 52, 79, 0.1);
}

.frame-empty p {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product .frame.frame-photo {
  aspect-ratio: 1;
}

.line-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.85rem;
  margin: 1.35rem 0 0;
}

.line-head h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.line-head p {
  margin: 0;
  color: var(--ink-soft);
}

.photo-open {
  display: block;
  width: 100%;
  position: relative;
  text-align: left;
  cursor: pointer;
}

.more {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(28, 25, 22, 0.78);
  color: #f6f1e8;
  font-size: 0.82rem;
  font-weight: 700;
}

#lightbox {
  width: min(920px, calc(100% - 1.25rem));
  max-width: calc(100% - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  padding: 0.7rem 0.7rem 0.9rem;
  border: 0;
  border-radius: 16px;
  background: #1c1916;
  color: #f6f1e8;
}

#lightbox::backdrop {
  background: rgba(18, 14, 10, 0.78);
}

.lightbox-bar,
.lightbox-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.55rem;
}

.lightbox-count {
  justify-content: center;
  margin: 0.55rem 0 0;
}

.lightbox-close,
.lightbox-nav {
  min-width: 48px;
  min-height: 48px;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: rgba(246, 241, 232, 0.12);
  color: #f6f1e8;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}

#lightbox img {
  width: 100%;
  max-height: min(70dvh, 720px);
  object-fit: contain;
  background: #111;
}

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

.product .text {
  padding: 0.9rem 1rem 1.1rem;
}

.product h4 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.product p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  margin: 0.7rem 0 0;
  color: var(--cinnabar);
  font-size: 0.84rem;
  font-weight: 700;
}

.gallery-list {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.65rem;
}

.gallery-list figure {
  margin: 0;
}

.gallery-list .frame {
  aspect-ratio: 1;
  border-radius: 14px;
}

.gallery-list .frame img.fit-wide {
  object-fit: contain;
  background: #f4efe8;
}

.gallery-list figcaption {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.78);
}

.tablist button {
  flex: 1 1 calc(50% - 0.45rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tablist .count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(36, 52, 79, 0.1);
  font-size: 0.78rem;
}

.gallery-tabs.is-ready .tablist button[aria-selected="true"],
.product-tabs.is-ready .tablist button[aria-selected="true"] {
  background: var(--navy);
  color: #f6f1e8;
}

.gallery-tabs.is-ready .tablist button[aria-selected="true"] .count,
.product-tabs.is-ready .tablist button[aria-selected="true"] .count {
  background: rgba(246, 241, 232, 0.2);
}

.product[hidden] {
  display: none;
}

.price {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-weight: 700;
}

.store-link,
.store-all a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.7rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  background: var(--navy);
  color: #f6f1e8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.store-link {
  width: 100%;
}

.store-all {
  margin: 1.2rem 0 0;
}

.store-all a {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.gallery-board section[hidden],
#gallery-board section[hidden] {
  display: none;
}

.gallery-sub {
  margin: 1.15rem 0 0.15rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}


#contact {
  background: #e7dccb;
  border-top: 1px solid var(--line);
}

.sns-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.sns {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 76px;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  color: inherit;
}

.sns:hover {
  border-color: var(--navy);
}

.sns-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #f6f1e8;
}

.sns-mark svg {
  display: block;
}

.sns strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sns small,
.sns .soon {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

footer {
  background: #e7dccb;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-block: 1.2rem 2rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-row p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-brand svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 720px) {
  .gallery-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .sns-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .nav {
    order: 0;
    flex: 0 1 auto;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero,
  .section {
    scroll-margin-top: 5rem;
  }

  .hero {
    padding-block: 1.5rem 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    grid-template-areas:
      "copy art"
      "actions art";
    min-height: calc(100svh - 5rem);
    align-items: center;
  }

  .hero-figure img {
    width: min(100%, 480px);
  }

  .actions {
    align-self: start;
  }

  .about-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 2.5rem;
    align-items: start;
  }

  .path {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .path::before {
    left: 8%;
    right: 8%;
    top: 15px;
    bottom: auto;
    height: 0;
    border-left: 0;
    border-top: 2px dashed rgba(36, 52, 79, 0.28);
  }

  .path li {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-bottom: 0;
  }

  .product-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
  }

  .tablist button {
    flex: 1 1 0;
  }
}



/* Richer #classes section */
.class-subhead {
  margin: 2rem 0 0.55rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.intro + .class-subhead {
  margin-top: 1.55rem;
}

.class-cards {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.class-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.05rem 1.05rem;
  overflow-wrap: break-word;
}

.class-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.class-card p {
  margin: 0;
  color: var(--ink-soft);
}

.class-media {
  margin: 0.7rem 0 0;
}

.class-media video,
.gallery-list .frame video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.class-media video {
  border-radius: 12px;
  background: #f4efe8;
}

.class-media figcaption {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gallery-list .frame.frame-video {
  aspect-ratio: 16 / 9;
  background: #f4efe8;
}

.gallery-list .frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4efe8;
}


.class-thought {
  margin: 0.25rem 0 0;
}

.class-thought .prose p:last-child {
  margin-bottom: 0;
}

#classes .frame-note {
  margin-top: 1.35rem;
  max-width: 42rem;
}

#classes .path,
#classes .class-cards {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 720px) {
  .class-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  header::after,
  .lang,
  .skip,
  .actions {
    display: none !important;
  }

  header {
    position: static;
  }

  body {
    background: white;
  }
}
