:root {
  --ame-bg: #ffffff;
  --ame-soft: #f7fbf2;
  --ame-band: #f2f0ed;
  --ame-pink: #ffd8df;
  --ame-accent: #f28da1;
  --ame-primary: #4d7445;
  --ame-ink: #303530;
  --ame-muted: #70766f;
  --ame-line: #dedfda;
  --ame-band-line: #d2d0cc;
  --ame-dark: #2f332f;
  --ame-white: #ffffff;
  --ame-dark-accent: #b5d7ad;
  --ame-dark-copy: #cbd0ca;
  --ame-dark-strong: #e2e5e1;
  --ame-dark-icon: #a8df8e;
  --ame-dark-line: #4a504a;
  --ame-footer-copy: #bfc4bf;
  --ame-footer-muted: #858b85;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ame-ink);
  background: var(--ame-bg);
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ame-dark);
  color: var(--ame-white);
  transform: translateY(-180%);
}

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

.ame-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.ame-section { padding-block: 104px; }

.ame-header {
  position: relative;
  z-index: 50;
  background: var(--ame-white);
  border-bottom: 1px solid var(--ame-line);
}

.ame-header__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}

.ame-wordmark {
  font-family: "Gowun Batang", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.ame-desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 12px;
  font-weight: 650;
}

.ame-inquiry-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ame-ink);
  font-size: 12px;
  font-weight: 700;
}

.ame-inquiry-link svg { width: 16px; height: 16px; }

.ame-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ame-menu-button svg { width: 22px; height: 22px; }

.ame-mobile-menu {
  position: absolute;
  inset: 100% 0 auto;
  padding: 24px 28px 30px;
  display: grid;
  gap: 18px;
  background: var(--ame-white);
  border-bottom: 1px solid var(--ame-line);
  font-size: 14px;
  font-weight: 650;
}

.ame-mobile-menu[hidden] { display: none; }

.ame-hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--ame-white);
}

.ame-hero > img,
.ame-hero__overlay {
  position: absolute;
  inset: 0;
  height: 100%;
}

.ame-hero > img { object-fit: cover; object-position: center 46%; }
.ame-hero__overlay { background: rgba(22, 28, 23, .48); }

.ame-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 80px;
  align-items: end;
}

.ame-hero__inner > div > p {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 650;
}

.ame-hero h1 {
  margin: 0;
  font-family: "Gowun Batang", serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.35;
}

.ame-hero__aside { max-width: 360px; justify-self: end; }
.ame-hero__aside p { margin: 0 0 24px; color: rgba(255,255,255,.84); }

.ame-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.ame-button svg { width: 17px; height: 17px; }
.ame-button--light { color: var(--ame-ink); background: var(--ame-white); }
.ame-button--light:hover { background: var(--ame-pink); }
.ame-button--pink { color: var(--ame-dark); background: var(--ame-pink); }
.ame-button--pink:hover { background: var(--ame-accent); color: var(--ame-white); }
.ame-button--dark { color: var(--ame-white); background: var(--ame-dark); }
.ame-button--dark:hover { background: var(--ame-primary); }

.ame-intro__grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 132px;
  gap: 62px;
  align-items: start;
}

.ame-side-label {
  margin: 6px 0 0;
  color: var(--ame-primary);
  font-size: 11px;
  font-weight: 700;
}

.ame-intro h2,
.ame-qna h2 {
  margin: 0 0 28px;
  font-family: "Gowun Batang", serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.45;
}

.ame-intro__grid > div > p {
  max-width: 720px;
  margin: 0;
  color: var(--ame-muted);
  font-size: 18px;
}

.ame-circle-link {
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid var(--ame-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.ame-circle-link:hover { background: var(--ame-dark); color: var(--ame-white); }
.ame-circle-link svg { width: 18px; height: 18px; }

.ame-archive { padding-top: 64px; background: var(--ame-band); }

.ame-section-head {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ame-line);
}

.ame-section-head > div > p {
  margin: 0 0 4px;
  color: var(--ame-primary);
  font-size: 12px;
  font-weight: 700;
}

.ame-section-head h2 {
  margin: 0;
  font-family: "Gowun Batang", serif;
  font-size: 36px;
  font-weight: 700;
}

.ame-section-head > p {
  max-width: 470px;
  margin: 0;
  justify-self: end;
  color: var(--ame-muted);
  font-size: 14px;
}

.ame-archive__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.ame-work { margin: 0; min-width: 0; }
.ame-work--wide { grid-column: 1 / span 7; }
.ame-work--tall { grid-column: 8 / -1; }
.ame-work--small:nth-of-type(3) { grid-column: 1 / span 5; }
.ame-work--small:nth-of-type(4) { grid-column: 6 / -1; }
.ame-work--panorama { grid-column: 1 / -1; }
.ame-work img { width: 100%; object-fit: cover; }
.ame-work--wide img { aspect-ratio: 7 / 5; }
.ame-work--tall img { aspect-ratio: 5 / 6.7; }
.ame-work--small img { aspect-ratio: 16 / 10; }
.ame-work--panorama img { aspect-ratio: 16 / 7; }

.ame-work figcaption {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0 22px;
  border-bottom: 1px solid var(--ame-band-line);
}

.ame-work figcaption span { color: var(--ame-accent); font-family: "Gowun Batang", serif; }
.ame-work figcaption strong { font-size: 12px; }
.ame-work figcaption small { color: var(--ame-muted); font-size: 11px; }

.ame-services { padding-top: 70px; }
.ame-services__list { border-top: 1px solid var(--ame-ink); }

.ame-services__list a {
  min-height: 106px;
  display: grid;
  grid-template-columns: 70px minmax(220px, 1.1fr) minmax(260px, 1fr) 44px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--ame-line);
  transition: background 180ms ease;
}

.ame-services__list a:hover { background: var(--ame-soft); }
.ame-services__list span { color: var(--ame-accent); font-family: "Gowun Batang", serif; }
.ame-services__list h3 { margin: 0; font-family: "Gowun Batang", serif; font-size: 27px; }
.ame-services__list p { margin: 0; color: var(--ame-muted); }
.ame-services__list svg { width: 22px; height: 22px; justify-self: end; }

.ame-class { padding-block: 110px; background: var(--ame-dark); color: var(--ame-white); }

.ame-class__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 82px;
  align-items: center;
}

.ame-class__copy > p:first-child {
  margin: 0 0 15px;
  color: var(--ame-dark-accent);
  font-size: 12px;
  font-weight: 700;
}

.ame-class h2 {
  margin: 0 0 24px;
  font-family: "Gowun Batang", serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.45;
}

.ame-class__copy > p:not(:first-child) { margin: 0 0 24px; color: var(--ame-dark-copy); }
.ame-class ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.ame-class li { display: flex; align-items: center; gap: 10px; color: var(--ame-dark-strong); }
.ame-class li svg { width: 17px; height: 17px; color: var(--ame-dark-icon); }
.ame-class__visual { position: relative; }
.ame-class__visual img { aspect-ratio: 16 / 11; object-fit: cover; }

.ame-class__visual button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ame-white);
  color: var(--ame-dark);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.ame-class__visual button svg { width: 24px; height: 24px; }
.ame-class__visual > div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; background: var(--ame-white); color: var(--ame-ink); font-size: 12px; }

.ame-access { background: var(--ame-soft); }
.ame-access__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ame-line); border-left: 1px solid var(--ame-line); }
.ame-access__steps li { min-height: 210px; padding: 26px 24px; border-right: 1px solid var(--ame-line); border-bottom: 1px solid var(--ame-line); }
.ame-access__steps span { display: block; margin-bottom: 38px; color: var(--ame-accent); font-family: "Gowun Batang", serif; font-size: 20px; }
.ame-access__steps h3 { margin: 0 0 8px; font-family: "Gowun Batang", serif; font-size: 22px; }
.ame-access__steps p { margin: 0; color: var(--ame-muted); font-size: 14px; }

.ame-shop__list { border-top: 1px solid var(--ame-ink); }

.ame-shop__list article {
  min-height: 158px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--ame-line);
}

.ame-shop__list img { width: 140px; aspect-ratio: 1 / 1; object-fit: cover; }
.ame-shop__list span { color: var(--ame-primary); font-size: 11px; font-weight: 700; }
.ame-shop__list h3 { margin: 3px 0; font-family: "Gowun Batang", serif; font-size: 24px; }
.ame-shop__list p { margin: 0; color: var(--ame-muted); font-size: 14px; }
.ame-shop__list article > strong { color: var(--ame-muted); font-size: 12px; font-weight: 500; }

.ame-qna { background: var(--ame-pink); }
.ame-qna__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 90px; }
.ame-qna__grid > div:first-child > p:last-child { max-width: 420px; margin: 0; }
.ame-faq { border-top: 1px solid var(--ame-ink); }
.ame-faq details { border-bottom: 1px solid rgba(48,53,48,.25); }
.ame-faq summary { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 18px; list-style: none; cursor: pointer; font-weight: 650; }
.ame-faq summary::-webkit-details-marker { display: none; }
.ame-faq summary svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 180ms ease; }
.ame-faq details[open] summary svg { transform: rotate(45deg); }
.ame-faq details p { margin: 0; padding: 0 40px 22px 0; font-size: 15px; }

.ame-contact { padding-block: 90px; background: var(--ame-white); }
.ame-contact__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 86px; align-items: end; }
.ame-contact__inner > div:first-child > p { margin: 0 0 8px; color: var(--ame-primary); font-size: 12px; font-weight: 700; }
.ame-contact h2 { margin: 0; font-family: "Gowun Batang", serif; font-size: 43px; line-height: 1.45; }
.ame-contact__inner > div:last-child > p { margin: 0 0 22px; color: var(--ame-muted); }

.ame-footer { padding-block: 50px 34px; background: var(--ame-dark); color: var(--ame-white); }
.ame-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--ame-dark-line); }
.ame-wordmark--footer { font-size: 27px; }
.ame-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; font-size: 11px; }
.ame-footer__bottom { display: grid; grid-template-columns: .8fr 1.4fr auto; gap: 30px; padding-top: 24px; color: var(--ame-footer-copy); font-size: 11px; }
.ame-footer__bottom small { color: var(--ame-footer-muted); }

.ame-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  background: var(--ame-dark);
  color: var(--ame-white);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  font-size: 14px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--ame-accent); outline-offset: 3px; }

@media (max-width: 980px) {
  .ame-header__inner { gap: 24px; }
  .ame-desktop-nav { gap: 18px; }
  .ame-intro__grid { grid-template-columns: 110px minmax(0,1fr); }
  .ame-circle-link { grid-column: 2; }
  .ame-class__grid,
  .ame-qna__grid { gap: 54px; }
}

@media (max-width: 820px) {
  .ame-section { padding-block: 78px; }
  .ame-header__inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .ame-desktop-nav,
  .ame-inquiry-link { display: none; }
  .ame-menu-button { display: inline-flex; }
  .ame-hero { min-height: 650px; }
  .ame-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ame-hero h1 { font-size: 46px; }
  .ame-hero__aside { justify-self: start; }
  .ame-section-head { grid-template-columns: 1fr; gap: 12px; }
  .ame-section-head > p { justify-self: start; }
  .ame-services__list a { grid-template-columns: 48px minmax(0,1fr) 44px; gap: 14px; }
  .ame-services__list p { grid-column: 2; }
  .ame-services__list svg { grid-column: 3; grid-row: 1 / span 2; }
  .ame-class__grid,
  .ame-qna__grid,
  .ame-contact__inner { grid-template-columns: 1fr; gap: 44px; }
  .ame-access__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ame-footer__bottom { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ame-section { padding-block: 64px; }
  .ame-hero { min-height: 590px; }
  .ame-hero__inner { padding-block: 70px; }
  .ame-hero h1 { font-size: 35px; line-height: 1.45; }
  .ame-button { width: 100%; }
  .ame-intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .ame-circle-link { grid-column: auto; width: 112px; }
  .ame-intro h2,
  .ame-qna h2,
  .ame-class h2,
  .ame-contact h2 { font-size: 34px; }
  .ame-intro__grid > div > p { font-size: 17px; }
  .ame-section-head h2 { font-size: 31px; }
  .ame-archive__grid { gap: 16px; }
  .ame-work--wide,
  .ame-work--tall,
  .ame-work--small:nth-of-type(3),
  .ame-work--small:nth-of-type(4),
  .ame-work--panorama { grid-column: 1 / -1; }
  .ame-work--tall img { aspect-ratio: 4 / 5; }
  .ame-work--panorama img { aspect-ratio: 4 / 3; }
  .ame-work figcaption { grid-template-columns: 30px 1fr; }
  .ame-work figcaption small { grid-column: 2; }
  .ame-services__list a { min-height: 118px; }
  .ame-services__list h3 { font-size: 23px; }
  .ame-access__steps { grid-template-columns: 1fr; }
  .ame-access__steps li { min-height: 170px; }
  .ame-access__steps span { margin-bottom: 20px; }
  .ame-shop__list article { grid-template-columns: 96px 1fr; gap: 18px; }
  .ame-shop__list img { width: 96px; }
  .ame-shop__list article > strong { grid-column: 2; }
  .ame-footer__top { align-items: flex-start; flex-direction: column; }
  .ame-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
