/* ================ LOTTO DESIGN STUDIO — index home ================ */
/* :root トークンは 2026-04-29 Phase B で /css/lotto-design-tokens.css に分離 */
@import url('/css/lotto-design-tokens.css');

* { box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Helvetica, Arial, Meiryo, system-ui, sans-serif;
  color: var(--lotto-text-dark);
  background: #fff;
  line-height: 1.5;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* =========================================================
   1. ヘッダー（黒、上部固定）
========================================================= */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--lotto-bg-dark);
  color: var(--lotto-text-light);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.lp-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.lp-header__logo-img {
  height: 32px;
  width: auto;
  display: block;
}
/* 旧 .lp-header__logo-text は 2026-05-14 で画像ロゴに置換。
   未参照だが後方互換のため CSS は残置（PDF v8 1ページ目左ロゴに準拠した PNG を採用） */
.lp-header__logo-text {
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.04em;
}

.lp-header__help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.lp-header__help:hover,
.lp-header__help:focus {
  background: #2a2a2a;
  color: #fff;
}
.lp-header__help-icon {
  width: 22px;
  height: 22px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

/* =========================================================
   2. ヒーローコラージュ（黒背景 + 5 写真グリッド）
========================================================= */
.hero-collage {
  position: relative;
  background: var(--lotto-bg-dark);
  padding: 12px;
}
.hero-collage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 240px 220px 240px;
  grid-template-areas:
    "kicker fence  jumper"
    "kicker brand  jumper"
    "kicker front  keeper";
  gap: 6px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-collage__cell {
  position: relative;
  overflow: hidden;
  background: #111;
}
.hero-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-collage__cell--kicker  { grid-area: kicker; }
.hero-collage__cell--fence   { grid-area: fence; }
.hero-collage__cell--jumper  { grid-area: jumper; }
.hero-collage__cell--front   { grid-area: front; }
.hero-collage__cell--keeper  { grid-area: keeper; }

.hero-collage__cell--kicker img { object-position: center 28%; }
.hero-collage__cell--fence  img { object-position: center 38%; }
.hero-collage__cell--jumper img { object-position: center 38%; }
.hero-collage__cell--front  img { object-position: center 35%; }
.hero-collage__cell--keeper img { object-position: center 30%; }

.hero-collage__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 16px 12px;
  background: transparent;
}
.hero-collage__brand-logo {
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 88px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
}
.hero-collage__brand-studio {
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(16px, 2.4vw, 32px);
  letter-spacing: 0.18em;
  margin-top: 8px;
  color: #c4c4c4;
}
.hero-collage__brand-badge {
  display: inline-block;
  border: 1px solid #fff;
  padding: 4px 12px;
  font-size: clamp(10px, 0.95vw, 12px);
  letter-spacing: 0.25em;
  margin-top: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.hero-collage__brand-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-collage { padding: 8px; }
  .hero-collage__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "brand  brand"
      "kicker jumper"
      "fence  keeper"
      "front  front";
    gap: 4px;
  }
  .hero-collage__cell--kicker,
  .hero-collage__cell--jumper { aspect-ratio: 3 / 4; }
  .hero-collage__cell--fence,
  .hero-collage__cell--keeper { aspect-ratio: 1 / 1; }
  .hero-collage__cell--front  { aspect-ratio: 16 / 7; }
  .hero-collage__brand        { padding: 28px 16px 20px; }
}

/* =========================================================
   3. NEWS セクション
========================================================= */
.news {
  background: #fff;
  padding: 32px 24px 100px;
  flex-shrink: 0;
}
.news__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.news__title {
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  line-height: 1;
}
.news__view-all {
  display: inline-block;
  margin-top: 4px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid transparent;
}
.news__view-all::before {
  content: "›";
  margin-right: 6px;
  font-size: 16px;
  vertical-align: -1px;
}
.news__view-all:hover,
.news__view-all:focus {
  border-bottom-color: #1a1a1a;
  color: #1a1a1a;
}
.news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--lotto-border);
}
.news__item:first-child { border-top: 1px solid var(--lotto-border); }
.news__date {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.news__body {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .news { padding: 24px 16px 80px; }
  .news__inner { grid-template-columns: 1fr; gap: 16px; }
  .news__item { grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; }
}

/* =========================================================
   4. シミュレーション開始バー（下部固定）
========================================================= */
.cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--lotto-border);
  padding: 12px 16px 14px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.cta-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.cta-bar__inner--centered {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}
.cta-bar__pick {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 0 14px;
  min-height: 56px;
}
.cta-bar__pick-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  border-right: 1px solid #d0d0d0;
  padding-right: 12px;
  flex-shrink: 0;
}
.cta-bar__pick-value {
  flex: 1;
  font-size: 13px;
  color: var(--lotto-text-muted);
  padding-left: 14px;
}
.cta-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--lotto-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0 32px;
  min-height: 56px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.cta-bar__cta:hover,
.cta-bar__cta:focus {
  background: var(--lotto-red-dark);
  color: #fff;
}
.cta-bar__cta-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  flex-shrink: 0;
}
.cta-bar__notice {
  max-width: 1280px;
  margin: 8px auto 0;
  font-size: 11px;
  color: var(--lotto-text-muted);
  text-align: left;
}

@media (max-width: 768px) {
  .cta-bar { padding: 10px 12px 12px; }
  .cta-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cta-bar__inner--centered {
    grid-template-columns: minmax(0, 100%);
  }
  .cta-bar__cta {
    grid-column: 1 / -1;
    min-height: 48px;
    padding: 0 24px;
  }
  .cta-bar__pick {
    min-height: 48px;
    padding: 0 8px;
  }
  .cta-bar__pick-label {
    width: 56px;
    font-size: 14px;
    padding-right: 8px;
  }
  .cta-bar__pick-value {
    font-size: 12px;
    padding-left: 8px;
  }
}

/* =========================================================
   5. FLOW セクション（使い方案内）
========================================================= */
.section-flow {
  background: #f3f4f6;
  padding: 56px 24px;
  flex-shrink: 0;
}
.flow__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.flow__header {
  text-align: center;
  margin-bottom: 40px;
}
.flow__title {
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  line-height: 1;
}
.flow__subtitle {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.step-card--reverse .step-card__image { order: 2; }
.step-card--reverse .step-card__body  { order: 1; }

.step-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #f3f4f6;
}
.step-card__image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step-card__image--placeholder {
  background: #d7dce1;
  color: #5e6a75;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 16px;
  border: 1px dashed #a9b3bd;
}

.step-card__body { padding: 8px 0; }
.step-number {
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  border-bottom: 2px solid #1a1a1a;
  display: inline-block;
  padding-bottom: 4px;
  line-height: 1;
}
.step-number span {
  font-size: 32px;
  margin-left: 6px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 12px;
  line-height: 1.45;
}
.step-text {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.7;
  margin: 0;
}
.step-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
  font-size: 14px;
}

@media (max-width: 768px) {
  .section-flow { padding: 36px 16px; }
  .flow__header { margin-bottom: 28px; }
  .step-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    margin-bottom: 16px;
  }
  .step-card--reverse .step-card__image,
  .step-card--reverse .step-card__body {
    order: initial;
  }
  .step-title { font-size: 16px; }
  .step-text,
  .step-list { font-size: 13px; }
}

/* =========================================================
   6. FOOTER
========================================================= */
.site-footer {
  background: #0a0a0a;
  color: #d4d4d4;
  padding: 32px 24px 0;
  flex-shrink: 0;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 28px;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  background: var(--lotto-red);
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1;
}
.site-footer__logo-text {
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.04em;
}
.site-footer__brand-block {
  font-size: 13px;
  line-height: 1.7;
}
.site-footer__brand {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}
.site-footer__address,
.site-footer__phone {
  color: #b0b0b0;
  font-size: 12px;
}
.site-footer__copyright {
  background: #000;
  color: #888;
  text-align: center;
  font-size: 11px;
  padding: 14px 16px calc(14px + 90px);
  margin: 0 -24px;
}

@media (max-width: 768px) {
  .site-footer { padding: 24px 16px 0; }
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding-bottom: 20px;
    justify-items: center;
  }
  .site-footer__copyright {
    margin: 0 -16px;
    padding: 14px 16px calc(14px + 110px);
  }
}

/* =========================================================
   7. HERO DARK（ブランド訴求、黒背景、hero-collage の直下）
========================================================= */
.section-hero-dark {
  background: #0f0f0f;
  color: #fff;
  padding: 56px 24px;
  flex-shrink: 0;
}
.hero-dark__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.hero-dark__title {
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  line-height: 1.2;
}
.hero-dark__title img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
.hero-dark__badge {
  display: inline-block;
  background: var(--lotto-red);
  color: #fff;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-dark__lead {
  font-size: 14px;
  line-height: 1.9;
  color: #d4d4d4;
  margin: 0;
}

@media (max-width: 768px) {
  .section-hero-dark { padding: 36px 16px; }
  .hero-dark__lead { font-size: 13px; line-height: 1.8; }
}

/* =========================================================
   8. UNIFORM（campionato 商品紹介、白 + 青バンド）
========================================================= */
.section-uniform {
  background: #fff;
  flex-shrink: 0;
}
.uniform__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 36px;
}
.uniform__header {
  text-align: center;
  margin-bottom: 24px;
}
.uniform__title {
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  line-height: 1;
}
.uniform__subtitle {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.uniform__brand {
  text-align: center;
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  color: #1464c8;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 24px 0 16px;
}
.uniform__heading {
  text-align: center;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  margin: 16px 0;
  line-height: 1.55;
}
.uniform__lead {
  max-width: 720px;
  margin: 16px auto 32px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #1a1a1a;
}
.uniform__grid {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2;
  min-height: 240px;
  border-radius: 4px;
  background: #f3f4f6;
}
.uniform__grid > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uniform__grid--placeholder {
  background: #d7dce1;
  color: #5e6a75;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 16px;
  border: 1px dashed #a9b3bd;
}

@media (max-width: 768px) {
  .uniform__inner { padding: 36px 16px 24px; }
  .uniform__lead { font-size: 13px; }
  .uniform__grid { aspect-ratio: 4 / 3; min-height: 180px; }
}

/* =========================================================
   9. DETAIL（共通: 詳細セクション + 青バンド）
========================================================= */
.section-detail {
  background: #fff;
  flex-shrink: 0;
}
.detail__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 16px;
}
.detail__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f4f6;
}
.detail__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail__media.swatches {
  aspect-ratio: 4 / 1;
  min-height: 140px;
}
.detail__media.color-grid {
  aspect-ratio: 5 / 2;
  min-height: 220px;
}
.detail__media--placeholder {
  background: #d7dce1;
  color: #5e6a75;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 16px;
  border: 1px dashed #a9b3bd;
}

.blue-band {
  background: #1464c8;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 16px;
}
.feature-box {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.feature-box__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  min-height: 160px;
  background: #f3f4f6;
}
.feature-box__image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f4f6;
}
.feature-box__image--placeholder {
  background: #d7dce1;
  color: #5e6a75;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 16px;
  border: 1px dashed #a9b3bd;
}
.feature-box__band {
  margin: 14px 0 0;
  font-size: 13px;
  padding: 12px 14px;
}
.feature-box__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .detail__inner { padding: 24px 16px 12px; }
  .detail__placeholder.swatches { aspect-ratio: 3 / 1; min-height: 120px; }
  .detail__placeholder.color-grid { aspect-ratio: 4 / 3; min-height: 200px; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature-box { padding: 16px; }
  .feature-box__image { aspect-ratio: 4 / 3; min-height: 140px; }
}

/* =========================================================
   10. FINAL CTA（最終訴求、黒背景）
========================================================= */
.section-final-cta {
  background: #0f0f0f;
  color: #fff;
  padding: 56px 24px;
  text-align: center;
  flex-shrink: 0;
}
.final-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.final-cta__title {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 16px;
  line-height: 1.5;
}
.final-cta__lead {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0 0 28px;
  line-height: 1.8;
}
.final-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--lotto-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.final-cta__btn:hover,
.final-cta__btn:focus {
  background: var(--lotto-red-dark);
  color: #fff;
}
.final-cta__btn-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .section-final-cta { padding: 40px 16px; }
  .final-cta__lead { font-size: 13px; margin-bottom: 22px; }
}
