/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 画像は常にコンテナ幅に収める（はみ出し防止の保険） */
img { max-width: 100%; height: auto; }

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-sub: #666666;
  --color-accent: #2a7a2a;
  --color-gold: #c8a84b;
  --color-border: #e8e8e8;
  --color-tint: #eef5ee;   /* セクション交互配色用の淡いグリーン */
  --font: 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --max-w: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

/* 交互配色：一部セクションを淡いグリーン背景にして単調さを解消 */
.section--tint {
  background: var(--color-tint);
}

/* 淡色セクションの前後は色の切り替わりで区切るのでボーダー不要 */
.section--tint,
.section--tint + section {
  border-top: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 40px 0 34px;
  color: #fff;
  background: #103a25 url("assets/hero-golf-course.png") center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 20, 15, 0.78) 0%, rgba(7, 20, 15, 0.58) 42%, rgba(7, 20, 15, 0.16) 100%),
    linear-gradient(180deg, rgba(7, 20, 15, 0.28) 0%, rgba(7, 20, 15, 0.06) 48%, rgba(7, 20, 15, 0.62) 100%);
}

.hero::after {
  background: radial-gradient(circle at 72% 24%, rgba(255, 205, 108, 0.28), transparent 36%);
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.hero__copy {
  max-width: 620px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}

.hero__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.hero__role {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}

.hero__catch {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 20px;
  max-width: 640px;
}

.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.86);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero__points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(250px, 82vw);
  aspect-ratio: 1320 / 2868;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(145deg, #20242b, #050608);
  box-shadow: 0 34px 90px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.22) inset;
}

.phone__speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background: #020304;
  transform: translateX(-50%);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.hero__mini-stat {
  position: absolute;
  right: -4px;
  bottom: 30px;
  width: fit-content;
  max-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(6, 28, 19, 0.78);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

.hero__mini-stat span {
  display: block;
  color: #f4b12b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__mini-stat strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}

.badge {
  display: inline-block;
}

.badge img {
  height: 52px;
}

.badge--placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 32px rgba(0,0,0,0.26);
}

/* ===== Section heading ===== */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--color-sub);
  max-width: 560px;
}

/* ===== What ===== */
.what__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.what__text p {
  font-size: 15px;
  color: var(--color-sub);
  margin-top: 12px;
}

.what__score {
  background: #f7f7f5;
  border-radius: 16px;
  padding: 28px;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.score-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-sub);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  letter-spacing: 1px;
}

.score-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.score-table tr:last-child td { border-bottom: none; }

.medal { font-size: 18px; }
.pts { font-weight: 700; color: var(--color-gold); }

/* ===== Features ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #f7f7f5;
  border-radius: 16px;
  padding: 28px 24px;
}

.feature-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__body {
  font-size: 13px;
  color: var(--color-sub);
  line-height: 1.6;
}

/* ===== Screenshots ===== */
.screenshots__scroll {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots__scroll::-webkit-scrollbar { height: 4px; }
.screenshots__scroll::-webkit-scrollbar-track { background: var(--color-border); border-radius: 2px; }
.screenshots__scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.screenshot {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}

.screenshot img {
  width: 100%;
  border: 6px solid #1a1a1a;       /* スマホ風の黒フレーム */
  border-radius: 30px;
  background: #1a1a1a;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  display: block;
}

.screenshot__caption {
  font-size: 12px;
  color: var(--color-sub);
  text-align: center;
  margin-top: 10px;
}

/* ===== How to use ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step__img {
  width: 100%;
  max-width: 160px;
  border: 5px solid #1a1a1a;       /* スマホ風の黒フレーム */
  border-radius: 26px;
  background: #1a1a1a;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  display: block;
  margin: 0 auto 20px;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__body {
  font-size: 13px;
  color: var(--color-sub);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  background: #0e4f2a;
  background-image: linear-gradient(180deg, rgba(8,40,22,0.55) 0%, rgba(5,26,14,0.82) 100%),
    url('assets/hero-golf-course.png');
  background-size: cover;
  background-position: center;
  border-top: none !important;
}

.cta .section-title {
	margin-bottom: 8px;
	color: #fff;
}
.cta .section-body { margin: 0 auto 32px; color: rgba(255,255,255,0.85); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--color-sub);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  color: var(--color-sub);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover { color: var(--color-text); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  section { padding: 60px 0; }

  .hero {
    min-height: auto;
    padding: 26px 0 38px;
    background-position: 58% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 20, 15, 0.88) 0%, rgba(7, 20, 15, 0.7) 42%, rgba(7, 20, 15, 0.5) 100%),
      linear-gradient(90deg, rgba(7, 20, 15, 0.28), rgba(7, 20, 15, 0.08));
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 20px;
  }

  .hero__brand {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .hero__name {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .hero__role {
    font-size: 12px;
  }

  .hero__catch {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero__sub {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .hero__points {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero__points span {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .badge {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .phone {
    width: min(224px, 60vw);
    padding: 8px;
    border-radius: 30px;
  }

  .phone img {
    border-radius: 23px;
  }

  .phone__speaker {
    top: 13px;
    width: 58px;
    height: 17px;
  }

  .hero__mini-stat {
    display: none;
  }

  .what__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
