:root {
  color-scheme: light;
  --background: #fcfbf7;
  --surface: #ffffff;
  --text: #263035;
  --text-secondary: #44484b;
  --green: #497448;
  --green-soft: #e8eee2;
  --line: #d8ddd2;
  --page-width: 430px;
  --content-width: 374px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: #e8ede2;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: #e8ede2;
}

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

a {
  color: inherit;
}

.site-shell {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--background);
  box-shadow: 0 4px 18px rgba(38, 48, 53, 0.2);
}

.hero {
  display: flex;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-top: 48px;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.app-icon {
  width: 75px;
  height: 75px;
  border-radius: 16px;
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 10.7vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.hero-lead,
.hero-description {
  width: min(100% - 32px, 290px);
  margin-inline: auto;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--green);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-description {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.store-placeholder {
  display: grid;
  width: 113px;
  min-height: 37px;
  padding: 5px 8px;
  place-content: center;
  border-radius: 3px;
  color: #6d716f;
  background: #d9d9d9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.store-placeholder small {
  font-size: 9px;
  font-weight: 600;
}

.hero-visual {
  width: 100%;
  height: auto;
}

.gallery {
  padding: 97px 0 72px;
}

.gallery-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding-inline: 55px;
}

.gallery-slide {
  width: min(74vw, 292px);
  margin: 0;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(38, 48, 53, 0.1);
  scroll-snap-align: center;
}

.gallery-slide img {
  width: 100%;
  height: auto;
}

.gallery-controls {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gallery-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--surface);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.gallery-button:focus-visible,
.gallery-viewport:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(73, 116, 72, 0.35);
  outline-offset: 3px;
}

.gallery-count {
  min-width: 50px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.site-footer {
  padding: 36px 24px 40px;
  border-top: 1px solid var(--line);
  background: var(--green-soft);
  color: var(--text-secondary);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.site-footer a {
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.operator,
.copyright {
  margin-bottom: 0;
  font-size: 11px;
}

.operator {
  margin-top: 24px;
}

.copyright {
  margin-top: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-page {
  padding: 48px 28px 64px;
}

.legal-header {
  text-align: center;
}

.legal-header img {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 12px;
}

.legal-header h1 {
  margin: 18px 0 8px;
  font-size: 26px;
  line-height: 1.3;
}

.legal-date {
  margin: 0;
  color: #6b7468;
  font-size: 12px;
}

.legal-introduction {
  margin: 36px 0;
  line-height: 1.8;
}

.legal-section + .legal-section {
  margin-top: 30px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.5;
}

.legal-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.legal-back {
  display: inline-block;
  margin-top: 44px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 429px) {
  html,
  body {
    background: var(--background);
  }

  .site-shell {
    box-shadow: none;
  }

  .gallery-track {
    padding-inline: calc((100vw - min(74vw, 292px)) / 2);
  }
}

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

  .gallery-viewport {
    scroll-behavior: auto;
  }
}
