@font-face {
  font-family: 'Griun MIGA';
  src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2609271756@2026/2026/Griun_MIGA-Handwriting-Rg.woff2') format('woff2'), url('fonts/GriunMIGA-Handwriting.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #FFFAF5;
  --bg: #FBEEE4;
  --bg-2: #F5E2D4;
  --ink: #3E4A35;
  --ink-2: #4E5A44;
  --ink-3: #66735B;
  --accent: #B5C6A6;
  --accent-soft: #D9E3CF;
  --accent-deep: #8FA382;
  --point: #D9825B;
  --point-soft: #F2D7C6;
  --line: color-mix(in srgb, var(--accent-deep) 32%, transparent);
  --naver: #03C75A;
  --font-hand: 'Gaegu', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-body: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-en: 'Quicksand', 'Gowun Dodum', sans-serif;
  --title-weight: 400;
  --top-h: 80px;
  --bottom-h: 64px;
  --shadow-paper: 0 8px 24px -6px color-mix(in srgb, var(--ink) 14%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 6%, transparent);
  --shadow-frame: 0 18px 40px -12px color-mix(in srgb, var(--ink) 18%, transparent), 0 4px 12px color-mix(in srgb, var(--ink) 6%, transparent);
  --die: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 4px 5px color-mix(in srgb, var(--ink) 22%, transparent));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hand-r: 999px 960px 999px 940px / 999px 900px 999px 920px;
  --hand-r2: 940px 999px 920px 999px / 900px 999px 940px 999px;
  --marker: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'><path d='M3 10 C30 5 62 7 98 5 C130 3 165 4 197 8 L195 17 C170 20 140 16 104 19 C70 21 38 18 5 19 C2 15 2 13 3 10 Z'/></svg>");
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'><path d='M1 5 Q8 1 15 4 T30 4 T45 4 T59 3' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>");
  --ts: 0.88;
  --c-butter: #FFDF86;
  --c-pink: #FBB8C4;
  --c-coral: #F4927C;
  --c-mint: #AEDCC2;
  --c-lav: #D4C2F2;
  --c-leaf: #A8D08A;
  --c-sky: #B6DAF4;
  --c-cream: #FFF6E8;
  --c-tan: #E9BE8E;
}

:root {
  --wrap: max(1280px, 66.7vw);
  --font-title: 'Griun MIGA', 'Gaegu', 'Gowun Dodum', sans-serif;
  --font-nav: 'Griun MIGA', 'Gaegu', sans-serif;
  --font-lead: 'Griun MIGA', 'Gowun Dodum', sans-serif;
  --title-weight: 400;
  --ts: 1.06;
}

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

html {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  word-break: keep-all;
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--accent-deep) 10%, transparent) 1px, transparent 0), radial-gradient(color-mix(in srgb, var(--point) 8%, transparent) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--point-soft);
  color: var(--ink);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.chev {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.chev path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.ico-fill {
  fill: currentColor;
}

.ico-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.naver-mark {
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  border-radius: 3px;
  background: var(--naver);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.75em;
  font-weight: 900;
  line-height: 1;
}

.tape {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent);
  pointer-events: none;
}

.tape--sage {
  background-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in srgb, var(--paper) 35%, transparent) 6px 8px);
}

.bottom__strip {
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='216' height='80'><g transform='translate(14 14)' stroke='%238FA382' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='%23F1F4EA'><circle cx='5' cy='5' r='4'/><circle cx='23' cy='5' r='4'/><path d='M3 16c0-7 5-11 11-11s11 4 11 11-5 10-11 10S3 23 3 16z'/><path d='M11 18q3 2.5 6 0' fill='none'/><circle cx='10' cy='14' r='.9' fill='%238FA382' stroke='none'/><circle cx='18' cy='14' r='.9' fill='%238FA382' stroke='none'/></g><g transform='translate(74 38) scale(1.35)' stroke='%238FA382' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='%23FBEFE6'><path d='M10 2c3 0 4 3 2.5 5.5C15 6 18 7.5 17.5 10.5S14 14 12 12.5c1 3-1 5.5-3 5S5.5 14.5 7 12c-2.5 1.5-5.5.5-5.5-2S4 6 7 7.5C5.5 5 7 2 10 2z'/><circle cx='9.6' cy='10' r='2.2' fill='%23F3E2B8'/></g><g transform='translate(132 12)' stroke='%238FA382' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='%23FBE8EA'><path d='M10 18S2 13 2 7.5C2 4.5 4.2 2.5 6.6 2.5 8.3 2.5 9.4 3.6 10 5c.6-1.4 1.7-2.5 3.4-2.5C15.8 2.5 18 4.5 18 7.5 18 13 10 18 10 18z'/></g><g transform='translate(170 46)' stroke='%238FA382' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='%23E7EEDD'><path d='M2 18C2 8 9 2 20 2c0 11-7 17-18 16z'/><path d='M4 16C9 11 13 7 17 5' fill='none'/></g><g fill='%23C8D3BE'><circle cx='56' cy='18' r='1.6'/><circle cx='118' cy='58' r='1.6'/><circle cx='196' cy='22' r='1.4'/><circle cx='40' cy='62' r='1.4'/></g><g stroke='%238FA382' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'><path d='M104 14l2 4M108 12l-1 5'/><path d='M150 54q4-4 8 0'/></g></svg>") 0 0 / 216px 80px;
}

.paper {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 22%, transparent);
  box-shadow: var(--shadow-paper);
}

.photo-frame {
  position: relative;
  background: #fff;
  padding: 12px 12px 16px;
  border-radius: 3px;
  border: 1.5px solid color-mix(in srgb, var(--accent-deep) 28%, transparent);
  box-shadow: var(--shadow-frame);
  transition: transform 0.4s var(--ease);
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
}

.top::before {
  content: "";
  position: absolute;
  inset: 0 0 -44px;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, transparent) 50%, color-mix(in srgb, var(--bg) 65%, transparent) 72%, color-mix(in srgb, var(--bg) 25%, transparent) 88%, transparent 100%);
  pointer-events: none;
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  height: var(--top-h);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo__face {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 46% 52% 48%;
  background: var(--paper);
  overflow: hidden;
}

.logo__face img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 28%;
}

.logo__text {
  display: grid;
  justify-items: start;
}

.dd--logo {
  top: -2px;
  right: -22px;
  width: 22px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.dd--book {
  top: -12px;
  right: -10px;
  width: 24px;
  rotate: 14deg;
  animation: float 3.6s ease-in-out infinite;
}

@keyframes twinkle {
  50% {
    scale: 0.7;
  }
}

.bottom__ribbon path {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo:hover .logo__face {
  rotate: -8deg;
}

.logo__face {
  transition: rotate 0.25s ease;
}

.logo__name {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo__en {
  margin-top: 0.15rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-nav, var(--font-en));
  font-size: calc(1.02rem * var(--ts));
  font-weight: 600;
}

.nav__sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__item {
  position: relative;
  padding: 0.25rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav__item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 7px;
  background: var(--point);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
  mask: var(--wave) center / 100% 100% no-repeat;
  transform: translateX(-50%);
  transition: width 0.28s var(--ease);
}

.nav__item.is-on {
  color: var(--point);
}

.nav__item.is-on::after {
  width: 90%;
}

.top__side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.book {
  position: relative;
  font-family: var(--font-title);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--hand-r2);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: calc(1.1rem * var(--ts));
  font-weight: var(--title-weight);
  text-decoration: none;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-btn {
  display: none;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border-radius: var(--hand-r2);
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
}

.menu-btn path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.drawer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-top: 1px solid color-mix(in srgb, var(--accent-deep) 20%, transparent);
  box-shadow: 0 12px 20px -12px color-mix(in srgb, var(--ink) 25%, transparent);
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.drawer[hidden] {
  display: none;
}

.drawer__admin {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 0.2rem;
  padding: 0.3rem 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
}

.drawer__item {
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
}

.drawer__item.is-on {
  background: var(--bg-2);
  color: var(--point);
}

.stage {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

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

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
}

.page--wide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--top-h) + 2.5rem) max(2rem, calc((100% - var(--wrap)) / 2 + 2rem)) calc(var(--bottom-h) + 4rem);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--top-h) + 2rem) 0 calc(var(--bottom-h) + 3rem) clamp(1.5rem, 7vw, 7.5rem);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(70%, calc((100dvh - var(--bottom-h) * 0.5) * var(--ar, 1.6)));
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 8%, rgba(0, 0, 0, 0.55) 17%, rgba(0, 0, 0, 0.85) 26%, #000 34%), linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 4%, rgba(0, 0, 0, 0.75) 9%, #000 15%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 8%, rgba(0, 0, 0, 0.55) 17%, rgba(0, 0, 0, 0.85) 26%, #000 34%), linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 4%, rgba(0, 0, 0, 0.75) 9%, #000 15%);
  mask-composite: intersect;
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: var(--zoom, 1);
  transform-origin: var(--origin, 50% 50%);
  transition: transform 1.2s var(--ease);
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 6%, transparent 13%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 6%, transparent 13%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 30%, color-mix(in srgb, var(--bg) 35%, transparent) 40%, transparent 48%);
  pointer-events: none;
}

.hero__text {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: 8.5rem auto;
  align-content: start;
  justify-items: center;
  gap: 1.1rem;
  width: var(--tw, min(30rem, 32vw));
  height: min(34rem, calc(100dvh - var(--top-h) - var(--bottom-h) - 4rem));
  text-align: center;
}

.hero__text> :first-child {
  align-self: end;
}

.hero__text .actions {
  justify-content: center;
  margin-top: 0.6rem;
}

.slogan {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--font-title);
  font-size: calc(clamp(1.6rem, 2.2vw, 2.1rem) * var(--ts));
  line-height: 1.35;
  color: var(--ink);
  rotate: -6deg;
}

.slogan__line {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.9rem;
  width: 92%;
  height: 14px;
}

.slogan__line path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.title-en {
  padding: 0 0.5em 0.3rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-title);
  font-size: calc(clamp(1.5rem, 2vw, 2rem) * var(--ts));
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.hero .title__main {
  font-size: calc(clamp(2.6rem, 3.6vw, 4.4rem) * var(--ts));
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero .lead {
  font-family: var(--font-lead, var(--font-body));
  font-size: calc(1.28rem * var(--ts));
  line-height: 1.75;
  color: var(--ink);
}

.hero .btn {
  padding: 0.85rem 1.8rem;
  font-size: calc(1.3rem * var(--ts));
}

.dd--hero {
  z-index: 4;
  width: 52px;
}

@media (min-width: 1024px),
(min-width: 768px) and (orientation: landscape) {
  .hero {
    --tw: clamp(21rem, 24vw, 26rem);
    --gap: clamp(3rem, 5vw, 6.5rem);
    --ph: calc(100dvh - var(--top-h) - var(--bottom-h) - 6rem);
    --pref: min(52vw, calc(var(--ph) * 1.25), 60rem);
    --lx: max(1.5rem, calc((100vw - var(--tw) - var(--gap) - var(--pref)) / 2));
    --plx: calc(var(--lx) + var(--tw) + var(--gap));
    --bw: min(calc(100vw - var(--plx) - 3.5rem), var(--pref));
    --vl: calc(var(--lx) + 2rem);
    --vr: calc(var(--lx) + var(--tw) - 2rem);
    --av: min(var(--pref), calc(100vw - var(--vl) - var(--vr) - 3rem));
    padding-left: var(--lx);
  }

  .hero--fit {
    --pw: min(var(--zone), calc(var(--ph) * var(--ar)), var(--maxw, 1400px));
    --pl: calc(var(--vr) + var(--mid) + (var(--zone) - var(--pw)) / 2);
    --cy: calc(var(--top-h) + (100% - var(--top-h) - var(--bottom-h)) / 2);
  }

  .hero--fit::before {
    display: none;
  }

  .hero--fit .hero__photo {
    top: var(--cy);
    left: var(--pl);
    right: auto;
    bottom: auto;
    width: var(--pw);
    height: auto;
    aspect-ratio: var(--ar);
    translate: 0 -50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 6%, #000 16%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 6%, #000 16%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
  }

  .hero--fit .hero__photo::after {
    display: none;
  }

  .hero--fit .hero__dots {
    top: calc(var(--cy) + var(--pw) / var(--ar) / 2 + 0.3rem);
    left: calc(var(--pl) + var(--pw) / 2);
    right: auto;
    bottom: auto;
    translate: -50% 0;
  }
}

.hero__photo .hero__slide {
  opacity: 0;
  transition: opacity 0.9s ease, scale 1.2s var(--ease);
}

.hero__photo .hero__slide.is-on {
  opacity: 1;
}

.hero__dots {
  position: absolute;
  z-index: 4;
  right: 2.4rem;
  bottom: calc(var(--bottom-h) + 2.4rem);
  display: flex;
  gap: 0.1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}

.hero__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 46% 52% 48%;
  transition: background-color 0.2s ease, scale 0.2s ease;
}

.hero__dot.is-on::before {
  background: var(--ink);
  scale: 1.15;
}

.hero__text .actions {
  position: relative;
}

.buddy {
  position: absolute;
  left: calc(100% + 0.6rem);
  bottom: -1.2rem;
  width: min(124px, 15dvh);
  pointer-events: none;
}

.buddy__img {
  width: 100%;
  animation: sway 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes sway {

  0%,
  100% {
    rotate: -3deg;
  }

  50% {
    rotate: 3deg;
  }
}

.dd--sm {
  width: 36px;
}

.dd--fl {
  animation: float 4.2s ease-in-out infinite;
}

.dd--tw {
  width: 30px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.js .hero__text,
.js .page--wide>* {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

.js .page.is-on .hero__text,
.js .page.is-on.page--wide>* {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.12s;
}

.js .hero__photo img {
  scale: calc(var(--zoom, 1) * 1.04);
  transition: scale 1.2s var(--ease), opacity 0.9s ease;
}

.js .page.is-on .hero__photo img {
  scale: var(--zoom, 1);
}

.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 10px;
  translate: 0 -50%;
}

.dots a {
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 46% 52% 48%;
  background: transparent;
  transition: background-color 0.2s ease, scale 0.2s ease;
}

.dots a.is-on {
  background: var(--accent);
  scale: 1.3;
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.75rem;
  align-items: center;
}

.feature__text {
  grid-column: span 4;
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.feature__photo {
  grid-column: span 8;
  position: relative;
}

.feature--location .feature__photo {
  grid-column: 1 / span 7;
}

.feature--location .feature__text {
  grid-column: 8 / span 5;
}

.memo {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.6rem 0 0.3rem;
}

.label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem 0.7rem 0.9rem;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--ink) 28%, transparent), 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent);
  rotate: -2deg;
}

.label__tape {
  top: -10px;
  left: 50%;
  width: 70px;
  height: 18px;
  translate: -50% 0;
  rotate: 3deg;
}

.label__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.label__ico svg {
  width: 30px;
}

.label__text {
  display: grid;
  line-height: 1.15;
}

.label__en {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.label__ko {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: calc(1.45rem * var(--ts, 1));
  color: var(--ink);
}

@keyframes float {
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.title {
  display: grid;
  gap: 0.5rem;
}

.title__main {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: calc(clamp(2.4rem, 4vw, 3.4rem) * var(--ts, 1));
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hl {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.1em;
}

.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.15em;
  right: -0.2em;
  bottom: 0.02em;
  height: 0.42em;
  background: var(--accent-soft);
  -webkit-mask: var(--marker) center / 100% 100% no-repeat;
  mask: var(--marker) center / 100% 100% no-repeat;
  rotate: -1deg;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.actions--center {
  justify-content: center;
  margin-top: 1.4rem;
}

.btn {
  font-family: var(--font-title);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: calc(1.02rem * var(--ts));
  font-weight: var(--title-weight);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, rotate 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn--main,
.book,
.quick__item {
  position: relative;
}

.btn--main::before,
.book::before,
.quick__item::before {
  content: "";
  position: absolute;
  inset: -3px -2px -2px -4px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent);
  border-radius: var(--hand-r2);
  rotate: -1.5deg;
  pointer-events: none;
}

.btn--main {
  border: 2px solid var(--ink);
  border-radius: var(--hand-r);
  background: var(--paper);
  color: var(--ink);
}

.btn--sub {
  border: 2px dashed var(--ink);
  border-radius: var(--hand-r2);
  background: transparent;
  color: var(--ink);
}

.show__tape-l {
  top: -14px;
  left: 2rem;
  width: 96px;
  height: 24px;
  rotate: -3deg;
}

.work__img:focus-visible,
.btn:focus-visible,
.book:focus-visible,
.nav__item:focus-visible {
  outline: 3px solid var(--point);
  outline-offset: 3px;
}

.map {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  background: #FFFEFB;
}

.info {
  width: 100%;
  padding: 0.4rem 1.2rem;
  border-radius: 3px;
}

.info__row {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.info__row+.info__row {
  border-top: 1px dashed color-mix(in srgb, var(--accent-deep) 30%, transparent);
}

.info__row dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--point);
}

.info__row strong,
.info__row a {
  color: var(--ink);
  font-weight: 700;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-underline-offset: 3px;
}

.hero--gallery {
  --gw: min(25rem, 26vw);
}

.hero--gallery .hero__text {
  width: var(--gw);
  margin-left: calc((var(--tw) - var(--gw)) / 2);
}

.hero__works {
  --wh: calc(100dvh - var(--top-h) - var(--bottom-h) - 7.5rem);
  position: absolute;
  z-index: 2;
  top: calc(var(--top-h) + (100% - var(--top-h) - var(--bottom-h)) / 2);
  left: calc(var(--vr) + var(--mid));
  width: var(--zone);
  height: var(--wh);
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  container-type: size;
}

.hero__works .hero__dots {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: auto;
  bottom: auto;
  left: 50%;
  translate: -50% 0;
}

.hero__works .hero__dots[hidden] {
  display: none;
}

.hero--gallery::before {
  display: none;
}

.hero--gallery .title__main {
  white-space: normal;
  line-height: 1.15;
}

.hero--gallery .works {
  gap: 1.1rem 1rem;
}

#location {
  padding-top: calc(var(--top-h) + 1rem);
  padding-bottom: calc(var(--bottom-h) + 2rem);
}

.feature--location .map svg {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--top-h) - var(--bottom-h) - 8rem);
  margin: 0 auto;
}

.works {
  --col: min(calc((100cqw - 3rem - 12px) / 4), calc((100cqh - 1.1rem - 24px) / 2 - 4.8rem));
  display: grid;
  grid-template-columns: repeat(4, var(--col));
  justify-content: safe center;
  gap: 1.3rem 1.25rem;
  padding: 14px 6px 10px;
}

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

.works>.works__empty {
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--ink-3);
}

@media (min-width: 1024px),
(min-width: 768px) and (orientation: landscape) {
  .works>li {
    grid-column: var(--c);
    grid-row: var(--r);
  }

  .works>li.is-off {
    display: none;
  }

  .works {
    grid-template-rows: repeat(2, minmax(calc(var(--col) + 4.6rem), auto));
    align-content: start;
  }

  .works>li.is-in {
    animation: stageIn 0.5s var(--ease) both;
  }
}

.zoom__dots {
  position: static;
  justify-self: center;
  translate: none;
}

.zoom__dots[hidden] {
  display: none;
}

.work {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 14px;
  rotate: -1deg;
  container-type: inline-size;
}

.work:nth-child(even) {
  translate: 0 0.5rem;
  rotate: 1.2deg;
}

.work:nth-child(3n) {
  rotate: 0.4deg;
}

.work__tape {
  top: -9px;
  left: 50%;
  width: 64px;
  height: 18px;
  translate: -50% 0;
  rotate: -4deg;
}

.work__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease);
  will-change: scale;
}

.work__kind {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.05rem 0.6rem;
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--font-title);
  font-size: 0.95rem;
  rotate: -3deg;
}

.work__title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: clamp(1rem, 11.5cqi, 1.6rem);
  line-height: 1.2;
}

.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  pointer-events: none;
}

.bottom__edge {
  width: 100%;
  height: 16px;
  margin-bottom: -1px;
  filter: drop-shadow(0 -2px 3px color-mix(in srgb, var(--ink) 6%, transparent));
}

.bottom__edge path {
  fill: var(--paper);
}

.bottom__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--bottom-h);
  padding: 0 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--accent-deep) 30%, transparent);
  pointer-events: auto;
}

.bottom__left,
.bottom__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.sticker {
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 10%, transparent);
}

.sticker--flower {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  rotate: -6deg;
}

.sticker--flower svg {
  width: 24px;
}

.sticker--flower path {
  fill: none;
  stroke: var(--point);
  stroke-width: 1.8;
}

.fl-c {
  fill: var(--point-soft);
  stroke: var(--point);
  stroke-width: 1.8;
}

.sticker--bear {
  width: 42px;
  height: 36px;
  border-radius: 12px;
  background: var(--bg-2);
  rotate: 3deg;
}

.sticker--bear svg {
  width: 28px;
}

.bear-f {
  fill: var(--paper);
  stroke: var(--ink-3);
  stroke-width: 1.8;
}

.bear-eye {
  fill: var(--ink-3);
}

.bear-nose {
  fill: var(--point);
}

.note {
  position: relative;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 10%, transparent);
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: calc(1.1rem * var(--ts));
  letter-spacing: 0.02em;
  rotate: -2deg;
}

.note__tape {
  top: -8px;
  left: 50%;
  width: 32px;
  height: 10px;
  translate: -50% 0;
}

.note__heart {
  color: var(--point);
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.bottom__ribbon {
  width: 32px;
  height: 24px;
}

.copy {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 10%, transparent);
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  rotate: 1deg;
}

.quick {
  display: none;
}

.zoom {
  width: min(92vw, 760px);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.zoom::backdrop {
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.zoom[open] {
  animation: stageIn 0.4s var(--ease) both;
}

.zoom__fig {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 14px 14px 18px;
  border-radius: 4px;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--accent-deep) 40%, transparent);
  box-shadow: 0 24px 50px -16px color-mix(in srgb, var(--ink) 45%, transparent);
}

.zoom__tape {
  top: -12px;
  left: 50%;
  width: 96px;
  height: 24px;
  translate: -50% 0;
}

.zoom__fig img {
  width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  border-radius: 2px;
  background: var(--bg-2);
}

.zoom__desc {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-3);
}

.zoom__desc:empty {
  display: none;
}

.work__ask {
  align-self: flex-start;
  margin-top: 0.3rem;
  font-family: var(--font-title);
  font-size: clamp(0.75rem, 8.2cqi, 1.1rem);
  white-space: nowrap;
  color: var(--point);
  text-decoration: none;
}

.zoom__fig figcaption {
  text-align: center;
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: 1.4rem;
}

.zoom__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 46% 52% 48%;
  background: var(--paper);
  cursor: pointer;
}

.zoom__close svg {
  width: 20px;
}

.zoom__close path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.ask {
  width: min(92vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.ask::backdrop {
  background: color-mix(in srgb, var(--ink) 40%, transparent);
}

.ask[open] {
  animation: stageIn 0.35s var(--ease) both;
}

.ask__paper {
  position: relative;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--ink) 45%, transparent);
  text-align: center;
  rotate: -1deg;
}

.ask__tape {
  top: -11px;
  left: 50%;
  width: 86px;
  height: 22px;
  translate: -50% 0;
  rotate: 3deg;
}

.ask__title {
  font-family: var(--font-title);
  font-size: calc(1.6rem * var(--ts));
  line-height: 1.3;
}

.ask__desc {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.ask__copied {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px dashed var(--line);
  border-radius: 3px;
  background: var(--bg);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}

.ask__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.toast {
  position: fixed;
  top: calc(var(--top-h) + 16px);
  left: 50%;
  z-index: 50;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--ink) 50%, transparent);
  translate: -50% -10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

.toast.is-on {
  opacity: 1;
  translate: -50% 0;
}

.dd {
  position: absolute;
  display: block;
  pointer-events: none;
}

.dd svg path,
.dd svg circle,
.dd svg ellipse,
.dd svg rect,
.label__ico path,
.label__ico circle,
.label__ico ellipse,
.label__ico rect {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label__ico path,
.label__ico circle,
.label__ico ellipse,
.label__ico rect {
  stroke-width: 2.6;
}

svg .ns {
  stroke: none;
}

svg .ln {
  fill: none;
}

svg .ln--coral {
  stroke: var(--c-coral);
  stroke-width: 3.4;
}

svg .ln--leaf {
  stroke: #7DB36A;
  stroke-width: 3.4;
}

svg .ln--white {
  stroke: #fff;
  stroke-width: 2.6;
}

.f-white {
  fill: #fff;
}

.f-butter {
  fill: var(--c-butter);
}

.f-pink {
  fill: var(--c-pink);
}

.f-coral {
  fill: var(--c-coral);
}

.f-mint {
  fill: var(--c-mint);
}

.f-lav {
  fill: var(--c-lav);
}

.f-leaf {
  fill: var(--c-leaf);
}

.f-sky {
  fill: var(--c-sky);
}

.f-cream {
  fill: var(--c-cream);
}

.f-tan {
  fill: var(--c-tan);
}

.f-ink {
  fill: var(--ink);
}

.dd--memo {
  top: -8px;
  right: -10px;
  width: 42px;
  rotate: 12deg;
  animation: float 4s ease-in-out infinite;
}

@media (hover: hover) {
  .nav__item:hover::after {
    width: 75%;
  }

  .book:hover {
    background: var(--accent-soft);
    rotate: 1deg;
  }

  .book:hover .chev,
  .btn--main:hover .chev {
    transform: translateX(2px);
  }

  .btn--main:hover,
  .btn--sub:hover {
    background: var(--accent-soft);
    rotate: -1deg;
  }

  .btn--sub:hover {
    border-color: var(--ink);
  }

  .photo-frame:hover {
    transform: translateY(-4px);
  }

  .work__img:hover img {
    scale: 1.05;
  }

  .drawer__item:hover {
    background: var(--bg-2);
  }

  .work__ask:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 1180px) {
  .nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .nav__item {
    white-space: nowrap;
  }
}

@media (max-width: 1023px) and (orientation: landscape) {
  .nav {
    gap: 0.55rem;
    font-size: 0.8rem;
  }

  .hero .btn {
    white-space: nowrap;
  }
}

@media (max-width: 767px),
(max-width: 1023px) and (orientation: portrait) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .feature__text,
  .feature__photo,
  .feature--location .feature__photo,
  .feature--location .feature__text {
    grid-column: 1 / -1;
  }

  .feature__text {
    order: 2;
  }

  .feature__photo {
    order: 1;
  }

  .works {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 10px 0;
  }
}

@media (max-width: 767px),
(max-width: 1023px) and (orientation: portrait) {
  :root {
    --top-h: 68px;
    --bottom-h: 68px;
  }

  .top__in {
    padding: 0 1rem;
  }

  .logo__name {
    font-size: 1.6rem;
  }

  .logo__en {
    font-size: 0.68rem;
  }

  .logo__face {
    width: 40px;
    height: 40px;
  }

  .logo__face img {
    width: 38px;
    height: 38px;
  }

  .dd--logo {
    width: 18px;
    right: -18px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .book {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  .stage {
    scroll-snap-type: y proximity;
  }

  .dots {
    display: none;
  }

  .page--wide,
  #location {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--top-h) + 1.75rem) 1.1rem calc(var(--bottom-h) + 3rem);
  }

  .feature--location .map svg {
    max-height: none;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 100svh;
    padding: 0 0 calc(var(--bottom-h) + 3rem);
  }

  .hero__photo {
    position: relative;
    width: 100%;
    height: calc(min(56vh, 100vw / var(--ar, 1.6) * 1.12) + var(--top-h));
    height: calc(min(56svh, 100vw / var(--ar, 1.6) * 1.12) + var(--top-h));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 9%, #000 18%, #000 62%, rgba(0, 0, 0, 0.7) 76%, rgba(0, 0, 0, 0.3) 88%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 9%, #000 18%, #000 62%, rgba(0, 0, 0, 0.7) 76%, rgba(0, 0, 0, 0.3) 88%, transparent 100%);
    mask-composite: add;
  }

  .hero::before {
    display: none;
  }

  .hero__text {
    width: auto;
    height: auto;
    grid-template-rows: none;
  }

  .slogan {
    font-size: calc(1.45rem * var(--ts));
  }

  .title-en {
    font-size: calc(1.35rem * var(--ts));
  }

  .hero__photo {
    inset: auto;
    width: 100%;
  }

  .hero__photo::after {
    -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.5) 14%, transparent 30%);
    mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.5) 14%, transparent 30%);
  }

  .hero__text {
    margin-top: -2.5rem;
    padding: 0 1.25rem;
    gap: 1.1rem;
  }

  .hero .title__main {
    font-size: calc(min(3.2rem, 10.5vw) * var(--ts));
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .dd--hero {
    width: 40px;
  }

  .hero__works {
    position: relative;
    inset: auto;
    order: 2;
    width: auto;
    height: auto;
    margin-top: 1.6rem;
    padding: 0 1.1rem;
    translate: none;
    container-type: inline-size;
  }

  .hero--gallery {
    padding-top: calc(var(--top-h) + 1.5rem);
  }

  .hero--gallery .hero__text {
    width: auto;
    margin: 0;
  }

  .hero__works .hero__dots {
    display: none;
  }

  .hero__dots {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: center;
    margin: -2.6rem 0 0.4rem;
  }

  .hero__dots+.dd--hero~.hero__text,
  .hero__dots~.hero__text {
    margin-top: 0.4rem;
  }

  .buddy {
    left: calc(100% + 0.15rem);
    bottom: -0.7rem;
    width: 62px;
  }

  .dd--hero:nth-of-type(3) {
    display: none;
  }

  .feature {
    gap: 2rem;
  }

  .photo-frame {
    padding: 10px 10px 16px;
    border-radius: 22px;
  }

  .show__tape-l {
    left: 3.5rem;
  }

  .label__ko {
    font-size: calc(1.25rem * var(--ts));
  }

  .label__ico {
    width: 38px;
    height: 38px;
  }

  .label__ico svg {
    width: 26px;
  }

  .title__main {
    font-size: 2.4rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .works {
    gap: 0.9rem 0.7rem;
  }

  .work {
    padding: 8px 8px 10px;
    border-radius: 18px;
  }

  .work:nth-child(even) {
    translate: 0 0;
  }

  .work__img {
    margin-bottom: 0.55rem;
    border-radius: 12px;
  }

  .work__title {
    font-size: 1.2rem;
  }

  .info__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .bottom__edge {
    height: 12px;
  }

  .bottom__strip {
    height: auto;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .bottom__left,
  .bottom__right {
    display: none;
  }

  .quick {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .quick__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 46px;
    border-radius: var(--hand-r2);
    border: 2px solid var(--ink);
    background: var(--paper);
    font-family: var(--font-title);
    font-size: calc(1.05rem * var(--ts));
    text-decoration: none;
  }

  .quick__item--book {
    background: var(--accent-soft);
    border-radius: var(--hand-r);
  }

  .zoom__close {
    top: -12px;
    right: -6px;
  }
}

@media (max-width: 767px),
(max-width: 1023px) and (orientation: portrait) {
  .hero {
    padding-bottom: calc(var(--bottom-h) + 1.4rem);
  }

  .hero__photo {
    flex: 1 1 0;
    height: auto;
    min-height: calc(20svh + var(--top-h));
    max-height: calc(min(56svh, 100vw / var(--ar, 1.6) * 1.12) + var(--top-h));
    touch-action: pan-y;
  }

  .hero__text {
    gap: 0.8rem;
  }

  .hero__text .actions {
    margin-top: 0.3rem;
  }

  .hero--gallery {
    padding-bottom: calc(var(--bottom-h) + 2rem);
  }

  .hero--center {
    padding-bottom: calc(var(--bottom-h) + 2.6rem);
  }

  .hero__dots {
    gap: 0;
    padding: 0.1rem 0.35rem;
    margin: -2rem 0 0.3rem;
  }

  .hero__dot {
    width: 20px;
    height: 20px;
  }

  .hero__dot::before {
    width: 7px;
    height: 7px;
    border-width: 1.2px;
  }

  .hero__works {
    touch-action: pan-y;
  }

  .hero__works .hero__dots {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    align-self: center;
    margin: 0.4rem 0 0;
  }

  .hero__works .hero__dots[hidden] {
    display: none;
  }

  .works>li.is-off {
    display: none;
  }

  .works>li.is-in {
    animation: stageIn 0.5s var(--ease) both;
  }
}

@media (max-width: 767px),
(max-width: 1023px) and (orientation: portrait) {
  .stage {
    scroll-snap-type: y proximity;
  }

  #gallery {
    scroll-snap-align: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #FFFAF5;
    --bg: #FBEEE4;
    --ink: #3E4A35;
  }

  html,
  body {
    background-color: var(--bg);
    color: var(--ink);
  }

  dialog,
  input,
  textarea,
  select {
    background-color: var(--paper);
    color: var(--ink);
  }
}

@media (min-width: 1024px),
(min-width: 768px) and (orientation: landscape) {
  .hero {
    --mid: clamp(3rem, 5vw, 6rem);
    --zone: calc(100vw - var(--vl) - var(--vr) - var(--mid));
    --cl: max(2rem, calc((100vw - var(--wrap)) / 2 + 2rem));
    --cw: calc(min(100vw, var(--wrap)) - 4rem);
    --mpl: calc(var(--cl) + var(--cw) * 0.16);
    padding-left: var(--cl);
  }

  .hero__text,
  .hero--gallery .hero__text {
    width: max-content;
    margin-left: 0;
  }

  .hero--center .hero__photo {
    left: var(--mpl);
    width: auto;
  }

  .hero--center::before {
    background: linear-gradient(90deg, var(--bg) 0, color-mix(in srgb, var(--bg) 85%, transparent) var(--mpl), color-mix(in srgb, var(--bg) 35%, transparent) calc(var(--mpl) + var(--cw) * 0.12), transparent calc(var(--mpl) + var(--cw) * 0.22));
  }

  .hero {
    padding-top: calc(var(--top-h) + 2.5rem);
    padding-bottom: calc(var(--bottom-h) + 2.5rem);
  }

  .hero__text {
    grid-template-rows: none;
    align-content: center;
    height: min(34rem, calc(100dvh - var(--top-h) - var(--bottom-h) - 5rem));
  }

  .hero__text> :first-child {
    align-self: auto;
  }
}

@media (min-width: 768px) and (orientation: landscape) and (max-height: 760px) {
  .hero {
    --ts: 0.92;
  }

  .hero__text {
    gap: 0.65rem;
  }

  .hero__text .actions {
    margin-top: 0.3rem;
  }

  .slogan {
    margin-bottom: 0.5rem;
  }

  .hero .lead {
    line-height: 1.55;
  }

  .hero--gallery {
    --pref: min(50vw, 62rem);
  }

  .hero__works {
    --wh: calc(100dvh - var(--top-h) - var(--bottom-h) - 4rem);
  }

  .works {
    --col: min(calc((100cqw - 3rem - 12px) / 4), calc(100cqh - 1.1rem - 24px - 4.8rem - 2.8rem));
    grid-template-rows: minmax(calc(var(--col) + 4.6rem), auto);
  }

  .hero__works .hero__dots {
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    align-self: center;
    margin-top: 0.2rem;
  }

  .works>li {
    grid-row: 1;
  }
}

@media (min-width: 600px) and (max-width: 1023px) and (orientation: portrait) {
  .hero {
    --ts: 1.15;
  }

  .works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .work__title {
    font-size: 1.05rem;
  }
}

@media (min-width: 768px) and (max-width: 1439px) and (orientation: landscape) {

  .dd--hero[style^="left:4%"],
  .dd--hero[style^="left:5%"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .js .hero__text,
  .js .page--wide>* {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .js .hero__photo img {
    scale: var(--zoom, 1);
    transition: none;
  }

  .stage {
    scroll-behavior: auto;
  }

  .zoom[open],
  .ask[open] {
    animation: none;
  }

  .dd,
  .buddy__img,
  .photo-frame,
  .work__img img {
    transition: none;
  }
}

.mini-map {
  display: block;
  width: 100%;
  height: auto;
}

.mm-bg {
  fill: #FFFEFB;
}

.mm-line,
.mm-line * {
  fill: none;
  stroke: #4A3226;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mm-dash {
  fill: none;
  stroke: #4A3226;
  stroke-width: 1.4;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
}

.mm-text text,
.mm-shop-name,
.mm-shop-sign-text {
  font-family: 'SchoolSafetyPictureDiary', var(--font-body);
  fill: #4A3226;
}

.mm-text text {
  font-size: 16px;
}

.mm-text .mm-text--s {
  font-size: 13.5px;
}

.mm-icon rect,
.mm-icon circle {
  fill: none;
  stroke: #4A3226;
  stroke-width: 1.4;
}

.mm-icon text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  fill: #4A3226;
}

.mm-icon .mm-pink {
  fill: #E8A0A8;
  stroke: none;
}

.mm-icon .mm-p-pick {
  fill: #F3E2B8;
}

.mm-tree path {
  fill: #CFE0C3;
  stroke: #4A3226;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.mm-tree-fill {
  fill: #CFE0C3;
  stroke: #4A3226;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.mm-shop-wall,
.mm-shop-door,
.mm-shop-win {
  fill: #FFFEFB;
  stroke: #4A3226;
  stroke-width: 1.5;
}

.mm-shop-win {
  fill: #E4EEF2;
}

.mm-shop-sign {
  fill: #F2C4CA;
  stroke: #4A3226;
  stroke-width: 1.5;
}

.mm-shop-sign-text {
  font-size: 9px;
}

.mm-shop-awning {
  fill: #E8A0A8;
  stroke: #4A3226;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.mm-shop-name {
  font-size: 20px;
}