@font-face {
  font-family: "Pretendard";
  src: url("./assets/landing/pretendard_regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("./assets/landing/pretendard_bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --garden: #174d42;
  --garden-dark: #103e34;
  --cream: #fff9ef;
  --paper: #fffefa;
  --ochre: #f2ab4f;
  --ink: #273a30;
  --muted: #54665a;
  --line: #dedfcf;
  --mint: #e4ecdf;
  --on-garden: #d5e5d6;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("./assets/landing/noto_sans_jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.error-languages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
}

.error-languages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  scrollbar-color: #7c9783 var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

::selection {
  background: var(--ochre);
  color: var(--garden-dark);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
}
svg {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.1vw, 2.9rem);
}
h3 {
  font-size: 1.5rem;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 6px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}
.section-wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  padding: 16px max(32px, calc((100vw - 1264px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--garden);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
  min-height: 44px;
}

.hero :focus-visible,
.download :focus-visible {
  outline-color: var(--cream);
}

.language-picker {
  position: relative;
  border: 0;
}

.language-picker summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  min-height: 44px;
  font-size: 0.85rem;
}

.language-picker summary::after {
  display: none;
}

.language-picker summary svg {
  width: 19px;
  height: 19px;
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 5;
  min-width: 208px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgb(23 77 66 / 15%);
}

.site-header .language-options a {
  display: block;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 6px;
}

.language-options a[aria-current="page"],
.language-options a:hover {
  background: var(--mint);
}

html:not([lang="ko"]):not([lang="ja"]) body {
  word-break: normal;
}

html[lang="ja"] body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  word-break: normal;
  line-break: strict;
}

.brand img {
  margin-left: -8px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header nav a {
  padding-block: 10px;
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.site-header .nav-download {
  padding: 10px 22px;
  border: 1px solid var(--garden);
  border-radius: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 64px max(48px, calc((100vw - 1200px) / 2));
  background: var(--garden);
  color: var(--cream);
}

.hero h1 {
  font-size: clamp(2.75rem, 4.3vw, 4.4rem);
  line-height: 1.35;
}
.hero-description {
  max-width: 36em;
  margin-top: 28px;
  color: var(--on-garden);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}
.hero-note {
  margin-top: 24px;
  color: var(--on-garden);
  font-size: 0.88rem;
}
.hero-scene {
  min-width: 0;
}
.hero-scene img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 240px 240px 12px 12px;
}
.hero-scene figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--on-garden);
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 24px;
  border-radius: 32px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

.button-warm {
  color: var(--garden-dark);
  background: var(--ochre);
}
.button-warm:hover {
  background: #ffc477;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}
.memories {
  padding-block: 104px;
}
.section-intro {
  text-align: center;
}
.section-intro p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.memory-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  margin-top: 64px;
}

.app-frame {
  width: min(100%, 280px);
}
.app-frame img {
  width: 100%;
  border: 7px solid var(--paper);
  border-radius: 32px;
}
.app-frame img {
  box-shadow: 0 20px 52px rgb(23 77 66 / 12%);
}
.app-frame figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.memorial-frame {
  justify-self: center;
}
.memory-copy {
  max-width: 420px;
}
.memory-copy article + article {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.memory-copy article p {
  margin-top: 12px;
  color: var(--muted);
}
.visibility-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}
.walk {
  background: var(--mint);
}
.walk-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
  padding-block: 88px;
}
.walk-copy {
  max-width: 455px;
}
.walk-copy p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}
.walk-copy .text-link {
  margin-top: 28px;
  color: var(--garden);
  font-weight: 800;
}
.walk-frame {
  justify-self: center;
}
.questions {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 72px;
  padding-block: 104px;
}
.questions-intro p {
  margin-top: 24px;
  color: var(--muted);
}
.questions-intro .text-link {
  margin-top: 24px;
  color: var(--garden);
}
.question-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  position: relative;
  padding: 22px 40px 22px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 31px;
  width: 8px;
  height: 8px;
}
summary::after {
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
}
details[open] summary::after {
  transform: rotate(225deg);
  top: 35px;
}
summary:hover {
  color: var(--garden);
  text-decoration: underline;
  text-underline-offset: 5px;
}
details p {
  padding: 0 20px 24px 0;
  color: var(--muted);
}
.download {
  padding: 72px 24px 80px;
  background: var(--garden);
  color: var(--cream);
  text-align: center;
}
.download-mark {
  margin: 0 auto 24px;
  background: var(--cream);
  border-radius: 30px;
}
.download > p {
  margin-top: 22px;
  color: var(--on-garden);
}
.store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.store-link,
.store-pending {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 228px;
}
.store-link,
.store-pending {
  padding: 17px 22px;
  border-radius: 14px;
  text-align: left;
}
.store-link {
  background: var(--cream);
  color: var(--garden-dark);
  text-decoration: none;
}
.store-link:hover {
  background: #f6e7cb;
}
.store-pending {
  border: 1px solid #83a091;
  color: var(--on-garden);
}
.store-links small,
.store-links strong {
  display: block;
}
.store-links small {
  font-size: 0.76rem;
  line-height: 1.5;
}
.store-links strong {
  font-size: 1.1rem;
}
.store-arrow {
  width: 18px;
  margin-left: 8px;
}
.download .download-note {
  margin-top: 22px;
  font-size: 0.85rem;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
}
.footer-identity p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
}
.copyright {
  width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .hero {
    gap: 32px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-actions {
    gap: 14px;
  }
  .wide-only {
    display: none;
  }
  .memory-layout,
  .walk-inner {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .section-wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    min-height: 76px;
    padding: 10px 24px;
    gap: 12px;
  }
  .brand {
    font-size: 1.4rem;
  }
  .brand img {
    width: 44px;
  }
  .site-header nav {
    gap: 18px;
    font-size: 0.85rem;
  }
  .site-header .nav-story {
    display: none;
  }

  .site-header nav > a:not(.nav-download) {
    display: none;
  }

  .site-header nav {
    margin-left: auto;
    gap: 12px;
  }

  .site-header {
    flex-wrap: wrap;
  }
  .site-header .nav-download {
    padding: 8px 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 32px;
    gap: 38px;
  }
  .hero-copy {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(1.8rem, 8.1vw, 2.65rem);
  }
  .hero-description {
    margin-top: 22px;
    font-size: 1rem;
  }
  .hero-actions {
    margin-top: 26px;
    gap: 20px;
  }
  .hero-note {
    margin-top: 18px;
    font-size: 0.8rem;
  }
  .hero-scene {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-scene img {
    max-height: 450px;
    object-position: center 65%;
  }
  .hero-scene figcaption {
    font-size: 0.75rem;
  }
  .memories {
    padding-block: 64px;
  }
  .memory-layout {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 40px;
  }
  .memory-copy {
    max-width: 520px;
    justify-self: center;
  }
  .app-frame {
    max-width: 250px;
  }
  .walk-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 60px;
  }
  .walk-copy {
    max-width: 520px;
    justify-self: center;
    width: 100%;
  }
  .questions {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 64px;
  }
  .questions-intro p {
    margin-top: 16px;
  }
  .questions-intro .text-link {
    margin-top: 12px;
  }
  .download {
    padding-block: 56px;
  }
  .download-mark {
    width: 88px;
    border-radius: 26px;
  }
  .site-footer {
    padding: 36px 24px;
    gap: 24px;
  }
  .site-footer nav {
    margin-left: 0;
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 16px;
  }
  .site-header nav {
    gap: 10px;
  }
  .site-header .nav-download {
    padding-inline: 10px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .brand img {
    width: 36px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero-actions {
    gap: 12px;
  }
  .button {
    padding-inline: 20px;
  }
}

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