:root {
  --paper: #faf6ef;
  --paper-deep: #f3ebdf;
  --ink: #241e1a;
  --ink-muted: #786a5c;
  --shu: #b8391f;
  --shu-ink: #8f2c17;
  --line: #e7ddcf;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
}

/* スクショは端末の枠を付けず、角丸と影だけで画面らしく見せる */
.screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(36, 30, 26, 0.16), 0 2px 6px rgba(36, 30, 26, 0.08);
  container-type: inline-size;
  --pt: calc(100cqw / 402);
}

.screen > img {
  width: 100%;
}

/* 撮影時は空白になるステータスバーに、時計・電波・Wi-Fi・電池を描き足す（寸法は iPhone のポイント） */
.status-bar {
  position: absolute;
  top: calc(19 * var(--pt));
  left: 0;
  right: 0;
  height: calc(22 * var(--pt));
}

.status-bar .time {
  position: absolute;
  left: calc(18 * var(--pt));
  width: calc(96 * var(--pt));
  line-height: calc(22 * var(--pt));
  text-align: center;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: calc(17 * var(--pt));
  font-weight: 600;
  color: #000;
}

.status-bar .icons {
  position: absolute;
  right: calc(24 * var(--pt));
  top: calc(4.5 * var(--pt));
  width: calc(78 * var(--pt));
  height: calc(13 * var(--pt));
}

/* Apple のバッジ規定: 無加工・高さ40px以上・周囲に高さの1/4以上の余白 */
.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.closing .store {
  justify-content: center;
}

.store a {
  display: block;
  line-height: 0;
}

.store img {
  width: auto;
  height: 54px;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 16px 72px;
  align-items: center;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name {
  margin: 28px 0 0;
  color: var(--shu);
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.catch {
  margin: 20px 0 0;
  font-size: clamp(22px, 4.4vw, 32px);
  font-weight: 700;
  line-height: 1.6;
}

.catch span,
.closing-copy span {
  display: inline-block;
}

/* ストア画像の1枚目と同じく、1行目を大きく、要の語に朱の下線を引く */
.catch .catch-lead {
  font-size: 1.3em;
  font-weight: 900;
}

.catch em {
  font-style: normal;
  background: linear-gradient(transparent 70%, rgba(184, 57, 31, 0.5) 70%, rgba(184, 57, 31, 0.5) 94%, transparent 94%);
  padding: 0 0.04em;
}

.sub {
  margin: 12px 0 32px;
  color: var(--shu-ink);
  font-size: 17px;
}

.hero-shot {
  margin: 0;
  justify-self: center;
  width: min(280px, 66vw);
}

/* marks */
.marks {
  background: var(--paper-deep);
  padding: 80px 16px;
}

.marks h2,
.closing-copy {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(22px, 4.4vw, 30px);
  font-weight: 700;
  line-height: 1.6;
}

.mark-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.mark-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark-list .screen {
  width: min(240px, 64vw);
}

.mark-list h3 {
  margin: 28px 0 4px;
  color: var(--shu);
  font-size: 22px;
  font-weight: 700;
}

.mark-list p {
  margin: 0;
  max-width: 18em;
  color: var(--ink-muted);
  font-size: 15px;
}

/* promise */
.promise {
  padding: 72px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.promise p {
  margin: 0;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
}

.promise small {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* closing */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 16px 88px;
}

.closing .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

/* support */
.support {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 72px 16px;
  text-align: center;
}

.support-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--shu);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.support-brand .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.support h1 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
}

.support p {
  margin: 0;
}

.support-mail {
  margin-top: 24px !important;
  font-size: clamp(20px, 4.4vw, 26px);
  font-weight: 700;
}

.support-mail a {
  color: var(--shu);
}

.support-note {
  margin-top: 28px !important;
  color: var(--ink-muted);
  font-size: 14px;
}

.support-owner {
  margin-top: 16px !important;
  color: var(--ink-muted);
  font-size: 13px;
}

.support-owner a {
  color: var(--ink-muted);
}

/* legal（利用規約・プライバシーポリシー） */
.legal-header {
  padding: 40px 16px 0;
}

.legal-header .support-brand {
  flex-direction: row;
  justify-content: center;
  font-size: 18px;
}

.legal-header .app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  font-size: 15px;
}

.legal h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
}

.legal .dates {
  margin: 8px 0 40px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
}

.legal h2 {
  margin: 40px 0 8px;
  padding-left: 12px;
  border-left: 4px solid var(--shu);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.legal ul,
.legal ol {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--shu);
}

/* footer */
.footer {
  padding: 32px 16px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.footer a {
  color: var(--ink-muted);
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 96px 32px 112px;
  }

  .hero-shot {
    width: 280px;
    justify-self: end;
  }

  .mark-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* 日本語を使わないブラウザにだけ英語版への導線を出す（表示判定は各ページのインラインスクリプト） */
.lang-guide {
  display: block;
  padding: 8px 16px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  color: var(--shu-ink);
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.lang-guide:hover {
  text-decoration: underline;
}

.lang-guide[hidden] {
  display: none;
}
