:root {
  --paper: #fffdf9;
  --cream: #fff6e4;
  --cream-deep: #fff3c0;
  --ink: #705d40;
  --muted: #928064;
  --line: #f5ede1;
  --gold: #f6cb89;
  --accent: #cf9d48;
  --shadow-soft: 0 8px 24px rgba(141, 110, 99, 0.12);
  --mobile-phone-width: clamp(320px, 100vw, 430px);
  --mobile-phone-top: 388px;
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans", "Microsoft YaHei", sans-serif;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: #f3f4f6;
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 65px;
  margin: 0 auto;
  padding: 12px;
  border-bottom: 1px solid rgba(245, 237, 225, 0.86);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 1.7px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1);
}

.language-option {
  width: 40px;
  min-height: 24px;
  padding: 2px 8px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.language-option.is-active {
  background: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 243, 192, 0.96) 0, rgba(255, 246, 228, 0.9) 82%, var(--paper) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  min-height: calc(var(--mobile-phone-top) + var(--mobile-phone-width) * 690 / 375 + 60px);
  margin: 0 auto;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(521px, 138.933vw);
  aspect-ratio: 1563 / 1044;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  position: absolute;
  top: 102px;
  left: max(30px, calc(50% - 157.5px));
  z-index: 2;
  width: 309px;
}

.hero-title {
  width: 241px;
  height: 120px;
  margin: 0;
}

.hero-title img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.hero-subtitle {
  position: absolute;
  top: 136px;
  left: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  white-space: nowrap;
}

.primary-download {
  position: absolute;
  top: 196px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 303px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 100px;
  background: var(--gold);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 22.5px;
}

.primary-download img {
  width: 18px;
  height: 18px;
}

.mobile-phone-scene {
  position: absolute;
  z-index: 1;
  top: var(--mobile-phone-top);
  left: 50%;
  width: var(--mobile-phone-width);
  aspect-ratio: 375 / 690;
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-block {
  padding: 0 20px;
}

.features {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
  background: var(--paper);
}

.section-heading {
  width: min(100%, 660px);
  margin: 0 auto 19px;
  padding-left: 4px;
  text-align: left;
}

.section-heading h2,
.healing h2,
.download-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.section-heading p,
.download-section p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 20px 0;
}

.feature-card {
  display: flex;
  min-height: 181px;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.feature-card img {
  width: 24px;
  height: 24px;
  margin: 12px 0 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 17.875px;
}

.healing {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-top: 60px;
  padding-bottom: 88px;
  background: var(--paper);
}

.healing-panel {
  width: min(100%, 660px);
  margin: 0 auto;
  text-align: left;
}

.healing-list {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding-bottom: 0;
  text-align: left;
}

.healing-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.healing-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.healing-item h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.healing-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 19.5px;
}

.mobile-border {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1125 / 240;
  pointer-events: none;
}

.mobile-border img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-section {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 60px 20px 35px;
  background: var(--paper);
  text-align: center;
}

.store-links {
  display: grid;
  gap: 16px;
  width: min(303px, 100%);
  margin: 32px auto 0;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 2px solid #444;
  border-radius: 16px;
  background: #fff;
  color: #444;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.store-link-dark {
  border-color: #444;
  background: #444;
  color: #fff;
}

.store-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.store-icon-apple {
  padding: 6px 8px 8px;
}

.store-icon-google {
  padding: 8px;
}

.site-footer {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px 48px;
  background: var(--paper);
  text-align: center;
}

.mail-link {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b4ae9c;
  font-size: 13px;
  line-height: 19.5px;
}

.mail-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 10px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
}

.mail-icon::before,
.mail-icon::after {
  position: absolute;
  top: 1px;
  width: 7px;
  height: 1.3px;
  background: currentColor;
  content: "";
}

.mail-icon::before {
  left: 0;
  transform: rotate(35deg);
  transform-origin: left center;
}

.mail-icon::after {
  right: 0;
  transform: rotate(-35deg);
  transform-origin: right center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #f5ede1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-links img {
  width: auto;
  height: auto;
  max-width: 17px;
  max-height: 17px;
}

.footer-line,
.copyright {
  margin: 0;
  color: #b4ae9c;
  font-size: 11px;
  line-height: 17.875px;
  white-space: pre-line;
}

.footer-brand-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 32px;
}

.footer-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

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

@media (min-width: 1024px) {
  body {
    background: linear-gradient(180deg, var(--cream) 0 36%, var(--paper) 36% 100%);
  }

  .site-header {
    width: 100%;
    margin: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    width: 100%;
  }

  .hero-inner {
    width: min(100%, 1280px);
    min-height: min(892px, 69.6875vw);
  }

  .hero-background {
    top: min(65px, 5.078125vw);
    left: 0;
    width: 100%;
    aspect-ratio: 3840 / 2301;
    transform: none;
  }

  .hero-background img {
    object-fit: contain;
  }

  .hero-copy {
    width: min(382px, 29.84375vw);
    top: min(245px, 19.140625vw);
    left: min(200px, 15.625vw);
    padding-top: 0;
    margin-left: 0;
  }

  .hero-title {
    width: min(381px, 29.765625vw);
    height: min(160px, 12.5vw);
    margin: 0;
  }

  .hero-title img {
    object-position: left center;
  }

  .hero-subtitle {
    top: min(177px, 13.828125vw);
    left: min(8px, 0.625vw);
    margin: 0;
    font-size: min(14px, 1.09375vw);
    text-align: left;
  }

  .primary-download {
    top: min(251px, 19.609375vw);
    left: min(8px, 0.625vw);
    width: min(302px, 23.59375vw);
    height: min(50px, 3.90625vw);
    font-size: min(15px, 1.171875vw);
  }

  .primary-download img {
    width: min(18px, 1.40625vw);
    height: min(18px, 1.40625vw);
  }

  .mobile-phone-scene {
    display: none;
  }

  .mobile-border {
    display: none;
  }

  .features {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
  }

  .section-heading {
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: min(700px, 100%);
  }

  .feature-card {
    min-height: 195px;
  }

  .feature-card h3 {
    font-size: 16px;
    line-height: normal;
  }

  .feature-card p {
    font-size: 14px;
    line-height: 20px;
  }

  .healing {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 88px;
  }

  .healing-panel {
    max-width: 660px;
  }

  .healing h2 {
    text-align: center;
  }

  .download-section {
    width: 100%;
    padding-top: 60px;
  }

  .site-footer {
    width: 100%;
  }
}

@media (max-width: 374px) {
  :root {
    --mobile-phone-width: 320px;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-copy {
    left: 24px;
    width: calc(100% - 48px);
  }

  .primary-download {
    width: calc(100% - 12px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 14px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links img {
    width: auto;
    height: auto;
    max-width: 17px;
    max-height: 17px;
  }
}
