/*
 * GOOD WALKING 公式サイト
 * Claude Design「公式サイト トップ（SP 393 / PC 1440）」をもとにする。
 * SP を基本にし、1024px 以上で PC のレイアウトに切り替える。
 */

:root {
  --color-background: #FFFFFF;
  --color-text: #222222;
  --color-text-secondary: #6B6B6B;
  --color-border: #E5E5E5;
  --color-accent: #17773F;
  --color-on-accent: #FFFFFF;
  --color-store: #222222;

  --color-morning-background: #E8F4FD;
  --color-morning-text: #1E2F3D;
  --color-morning-text-secondary: #4F6475;
  --color-morning-border: #C5E0F5;

  --color-evening-background: #FFEBD6;
  --color-evening-text: #3D2A1E;

  --color-night-background: #141B26;
  --color-night-text: #E6EAF0;
  --color-night-text-secondary: #9AA5B4;

  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-wordmark: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- 基本 ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

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

img {
  display: block;
}

a {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.pc-only {
  display: none;
}

.wordmark {
  font-family: var(--font-wordmark);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  line-height: 1;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
}

/* ---------- ヘッダー ---------- */

.header {
  position: relative;
  z-index: 10;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: 56px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .brand {
  color: var(--color-text);
}

.header__menu-button {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 16px 16px;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
}

.header.is-open .header__nav {
  display: flex;
}

.header__link {
  height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
}

.header__download {
  height: 44px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 22px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- ストアのボタン ---------- */

.store-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-button {
  height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  background: var(--color-store);
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- ファーストビュー ---------- */

.hero {
  padding-top: 48px;
  background: var(--color-morning-background);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-accent);
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-morning-text);
}

.hero__lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-morning-text-secondary);
}

.hero__download {
  margin-top: 8px;
}

.hero__note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-morning-text-secondary);
}

/* ---------- スマートフォンのモックアップ（M01 タイムライン 朝テーマ） ---------- */

.phone {
  --phone-scale: 0.59;
  flex: none;
  width: 248px;
  height: 420px;
  margin-top: 24px;
  border: 8px solid #222222;
  border-bottom: none;
  border-radius: 36px 36px 0 0;
  overflow: hidden;
  background: var(--color-morning-background);
}

.app {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  background: var(--color-morning-background);
  color: var(--color-morning-text);
  font-family: var(--font-body);
  text-align: left;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
}

.app__status {
  position: relative;
  height: 59px;
}

.app__status-time {
  position: absolute;
  left: 0;
  top: 18px;
  width: 132px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.app__status-island {
  position: absolute;
  left: 134px;
  top: 11px;
  width: 125px;
  height: 37px;
  border-radius: 19px;
  background: #000000;
}

.app__status-icons {
  position: absolute;
  right: 24px;
  top: 18px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app__header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app__header .wordmark {
  font-size: 22px;
  letter-spacing: 1.5px;
}

.app__timeline {
  padding-top: 8px;
}

.post {
  padding-bottom: 16px;
}

.post__head {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-morning-border);
  object-fit: cover;
}

.post__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.post__period {
  flex: none;
  width: 20px;
  height: 20px;
}

.post__time {
  flex: none;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-morning-text-secondary);
}

.post__menu {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -2px -12px -2px 0;
  color: var(--color-morning-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post__text {
  margin-top: 12px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.6;
}

.post__photos {
  margin-top: 12px;
  width: 393px;
  height: 295px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.post__photos--two {
  grid-template-columns: 1fr 1fr;
}

.post__photos img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.app__tabbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 393px;
  height: 83px;
  border-top: 1px solid var(--color-morning-border);
  background: var(--color-morning-background);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 48px;
  align-items: center;
  justify-items: center;
}

.app__tab {
  width: 44px;
  height: 44px;
  color: var(--color-morning-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app__tab--selected {
  color: var(--color-morning-text);
}

.app__tab-post {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app__home-indicator {
  position: absolute;
  left: 129px;
  bottom: 8px;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-morning-text);
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 64px 0;
}

.section--faq {
  padding-top: 0;
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section--faq .section__inner {
  gap: 32px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.section-heading__eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-accent);
}

.section-heading__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- 特長 ---------- */

.features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature__icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-morning-background);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg,
.feature__icon img {
  width: 28px;
  height: 28px;
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.feature__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ---------- 写真 ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.gallery__photo {
  width: 100%;
  height: 148px;
  object-fit: cover;
}

/* ---------- 使い方 ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  padding: 24px;
  border-radius: 20px;
  background: var(--color-morning-background);
  display: flex;
  gap: 16px;
}

.step__number {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-morning-text);
}

.step__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-morning-text-secondary);
}

/* ---------- よくある質問 ---------- */

.faq {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq__item {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.faq__answer {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ---------- ダウンロードの案内 ---------- */

.cta {
  padding: 56px 0;
  background: var(--color-evening-background);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta__logo {
  width: 96px;
  height: 96px;
}

.cta__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-evening-text);
}

/* ---------- アプリで開くページの案内（register/ など。アプリが入っていない端末で表示される） ---------- */

.guide {
  padding: 64px 0;
  background: var(--color-morning-background);
  color: var(--color-morning-text);
}

.guide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.guide__logo {
  width: 96px;
  height: 96px;
}

.guide__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.guide__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-morning-text-secondary);
}

.guide__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-morning-text-secondary);
}

/* ---------- フッター ---------- */

.footer {
  padding: 40px 0 32px;
  background: var(--color-night-background);
  color: var(--color-night-text);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
}

.footer__link {
  height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-night-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
}

.footer__copyright {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-night-text-secondary);
}

/* ---------- PC（1024px 以上） ---------- */

@media (min-width: 1024px) {
  .container {
    padding: 0 80px;
  }

  .pc-only {
    display: revert;
  }

  .sp-only {
    display: none;
  }

  .wordmark {
    font-size: 22px;
    letter-spacing: 1.5px;
  }

  .brand {
    gap: 12px;
  }

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

  .header__inner {
    height: 80px;
    padding: 0 80px;
  }

  .header__menu-button {
    display: none;
  }

  .header__nav,
  .header.is-open .header__nav {
    position: static;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .header__link {
    height: auto;
  }

  .header__download {
    margin-top: 0;
  }

  .store-buttons {
    width: auto;
    flex-direction: row;
    gap: 16px;
  }

  .store-button {
    height: 56px;
    border-radius: 28px;
    font-size: 16px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 80px;
  }

  .hero__body {
    flex: 1 1 0;
    padding-bottom: 120px;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
  }

  .hero__eyebrow {
    font-size: 15px;
  }

  .hero__title {
    font-size: 56px;
    line-height: 1.3;
  }

  .hero__lead {
    max-width: 520px;
    font-size: 18px;
  }

  .hero__download {
    margin-top: 16px;
  }

  .hero__note {
    font-size: 13px;
  }

  .phone {
    --phone-scale: 0.789;
    width: 330px;
    height: 620px;
    margin-top: 0;
    border-width: 10px;
    border-radius: 48px 48px 0 0;
  }

  .section {
    padding: 120px 0;
  }

  .section--faq {
    padding-top: 0;
  }

  .section__inner {
    align-items: center;
    gap: 64px;
  }

  .section--faq .section__inner {
    gap: 48px;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading__eyebrow {
    font-size: 15px;
  }

  .section-heading__title {
    font-size: 36px;
  }

  .features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature {
    flex-direction: column;
  }

  .feature__icon {
    width: 64px;
    height: 64px;
  }

  .feature__icon svg,
  .feature__icon img {
    width: 32px;
    height: 32px;
  }

  .feature__body {
    gap: 16px;
  }

  .feature__title {
    font-size: 20px;
  }

  .feature__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .gallery__photo {
    height: 240px;
  }

  .steps {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .step {
    padding: 32px;
    border-radius: 24px;
    flex-direction: column;
  }

  .step__number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .step__body {
    gap: 16px;
  }

  .step__title {
    font-size: 20px;
  }

  .step__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .faq__item {
    padding: 24px 0;
  }

  .faq__question {
    font-size: 18px;
  }

  .faq__answer {
    font-size: 16px;
    line-height: 1.8;
  }

  .cta {
    padding: 96px 0;
  }

  .cta__inner {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
    text-align: left;
  }

  .cta__logo {
    width: 160px;
    height: 160px;
  }

  .cta__body {
    width: auto;
    align-items: flex-start;
  }

  .cta__title {
    font-size: 40px;
    line-height: 1.4;
  }

  .guide {
    padding: 120px 0;
  }

  .guide__title {
    font-size: 32px;
    line-height: 1.4;
  }

  .footer {
    padding: 64px 0 48px;
  }

  .footer__inner {
    gap: 40px;
  }

  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__nav {
    flex-direction: row;
    gap: 32px;
  }

  .footer__link {
    height: auto;
    font-size: 14px;
  }

  .footer__copyright {
    font-size: 13px;
  }
}
