/* ============================================================
   home-v2.css — v2 トップページ用スタイル（2026-08-31 v2c）
   参照デザイン実測値に準拠。ライトテーマ。
   コンテナ幅 1104px、セクション padding 64px 24px。
   ============================================================ */

/* ---------- 共通ユーティリティ ---------- */
.v2-section-inner {
  max-width: 1152px; /* 1104px(参照コンテナ) + 左右padding 24px */
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow (小ラベル) */
.v2-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #61727a;
  margin-bottom: 8px;
}
.v2-eyebrow--accent {
  color: #076bc9;
}

/* Section title H2 */
.v2-section-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  text-align: left;
  margin: 0 0 32px;
  color: #1a2a30;
  letter-spacing: 0;
}
.v2-section-title--story {
  font-size: 36px;
  font-weight: 900;
  line-height: 45px;
}

/* ---------- ボタン ---------- */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}
.v2-btn--primary {
  background: #076bc9;
  color: #fff;
  border-color: #076bc9;
}
.v2-btn--primary:hover {
  background: #0558a6;
  box-shadow: 0 4px 12px rgba(7, 107, 201, 0.3);
  transform: translateY(-1px);
}
.v2-btn--outline {
  background: #fff;
  color: #076bc9;
  border-color: #076bc9;
}
.v2-btn--outline:hover {
  background: #f0f7ff;
}
.v2-btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}
/* CTA白ボタン（最終CTA帯用） */
.v2-btn--cta-white {
  background: #fff;
  color: #076bc9;
  border-color: #fff;
  font-weight: 700;
}
.v2-btn--cta-white:hover {
  background: #f0f7ff;
}

/* ========== 1. ヒーロー ========== */
.v2-hero {
  position: relative;
  min-height: 792px; /* 参照実測: ヒーロー高さ 792px */
  display: flex;
  align-items: center;
  overflow: hidden;
}
.v2-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  z-index: 0;
}
/* 画像を全面に見せたまま、左側だけ文字が読める程度に薄い白幕をかける */
.v2-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.55) 40%,
      rgba(255, 255, 255, 0.22) 70%,
      rgba(255, 255, 255, 0.08) 100%
    ),
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0) 100%
    );
}
.v2-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1152px; /* 参照実測: max-w-6xl */
  margin: 0 auto;
  padding: 80px 24px; /* 参照実測 */
}
.v2-hero__content { max-width: 768px; } /* 参照実測: max-w-3xl */
.v2-hero__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #076bc9;
  margin: 0 0 24px;
}
.v2-hero__heading {
  font-size: 72px; /* 参照実測 */
  font-weight: 900;
  color: #10222c;
  margin: 0 0 24px;
  line-height: 0.95; /* 参照実測: 68.4/72 */
  letter-spacing: -0.02em;
}
.v2-hero__lead {
  font-size: 18px; /* 参照実測 */
  color: #40525a;
  line-height: 1.625; /* 参照実測: 29.25/18 */
  margin: 0 0 40px;
  max-width: 576px;
}
.v2-hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.v2-hero .v2-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 4px;
}

/* ---------- 実績数字（ヒーロー内・上罫線付き） ---------- */
.v2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 42, 48, 0.18);
}
.v2-stats__item { text-align: left; }
.v2-stats__number {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  color: #076bc9;
}
.v2-stats__label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: #4d5f67;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .v2-hero { min-height: 620px; }
  .v2-hero__heading { font-size: 54px; }
}

@media (max-width: 767px) {
  .v2-hero { min-height: 520px; }
  .v2-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.6) 55%,
      rgba(255, 255, 255, 0.35) 100%
    );
  }
  .v2-hero__inner { padding: 48px 20px; }
  .v2-hero__eyebrow { margin-bottom: 16px; }
  .v2-hero__heading { font-size: 34px; margin-bottom: 16px; }
  .v2-hero__lead { font-size: 15px; margin-bottom: 28px; }
  .v2-hero__buttons { flex-direction: column; }
  .v2-hero__buttons .v2-btn { width: 100%; text-align: center; }
  .v2-stats { gap: 20px; margin-top: 36px; padding-top: 24px; }
  .v2-stats__number { font-size: 20px; line-height: 26px; }
  .v2-stats__label { font-size: 11px; }
}

/* ========== 3. Browse (統合: 何を楽にしたいですか？) ========== */
.v2-browse {
  padding: 64px 0;
}

/* タブ */
.v2-browse__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.v2-browse__tabs::-webkit-scrollbar { display: none; }

/* タブボタン — home.jsが .sm-cat-ranking__tab を生成するので、
   v2-browse__tabs 内でのスタイルをここで上書き */
.v2-browse__tabs .sm-cat-ranking__tab {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid var(--sm-line, #dfe6e9);
  border-radius: 4px;
  background: transparent;
  color: #1a2a30;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  height: auto;
}
.v2-browse__tabs .sm-cat-ranking__tab:hover {
  border-color: #076bc9;
  color: #076bc9;
}
.v2-browse__tabs .sm-cat-ranking__tab.is-active {
  background: #076bc9;
  border-color: #076bc9;
  color: #fff;
}

/* カードグリッド: 3col x 2row, gap 1px, 罫線手法 */
.v2-browse__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sm-line, #dfe6e9);
  margin-bottom: 24px;
}

/* グリッド内のプロダクトカード上書き */
.v2-browse__grid .sm-product-card {
  flex: none;
  width: auto;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 0;
}
.v2-browse__grid .sm-product-card:hover {
  box-shadow: none;
  border: none;
}
/* カード内レイアウト（参照準拠） */
.v2-browse__grid .sm-product-card__screen {
  position: relative;
  height: 0;
  /* 参照デザインは画像なしでカード高さ228px。画像は残す方針のため、
     帯状(約3:1)に抑えてカード全体の高さを参照に近づける */
  padding-bottom: 33.3%;
  overflow: hidden;
  background: #edf2f4;
}
.v2-browse__grid .sm-product-card__screen img,
.v2-browse__grid .sm-product-card__screen svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-browse__grid .sm-product-card__body {
  padding: 24px;
}
.v2-browse__grid .sm-product-card__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1a2a30;
}
.v2-browse__grid .sm-product-card__tagline {
  font-size: 14px;
  line-height: 22.75px;
  color: #61727a;
  min-height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}
.v2-browse__grid .sm-product-card__type {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  position: static;
  top: auto;
  right: auto;
  max-width: none;
  display: inline-block;
}
.v2-browse__grid .sm-product-card__info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.v2-browse__grid .sm-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
/* 順位バッジを画像左上に重ねる */
.v2-browse__grid .sm-cat-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}

/* 「もっと見る」ボタン */
.v2-more-btn {
  display: block;
  margin: 0 auto;
  width: 136px;
  height: 46px;
  padding: 12px 32px;
  background: transparent;
  color: #1a2a30;
  border: 1px solid var(--sm-line, #dfe6e9);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.v2-more-btn:hover {
  background: #f5f8f9;
  border-color: #076bc9;
}

/* ========== 4. 3つの特徴 ========== */
.v2-features {
  padding: 64px 0;
  background: #f5f8f9;
}
.v2-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sm-line, #dfe6e9);
}
.v2-feature-card {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 32px;
  text-align: left;
  transition: none;
}
.v2-feature-card:hover {
  box-shadow: none;
  transform: none;
}
.v2-feature-card__num {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 48px;
  color: #e6ecee;
  margin-bottom: 24px;
  opacity: 1;
}
.v2-feature-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: #1a2a30;
  margin: 0 0 12px;
  text-align: left;
}
.v2-feature-card p {
  font-size: 14px;
  color: #61727a;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

@media (max-width: 1024px) {
  .v2-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .v2-features__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 5. ストーリー ========== */
.v2-story {
  padding: 64px 0;
  background: #f5f8f9;
}
.v2-story__grid {
  display: grid;
  grid-template-columns: 520px 520px;
  gap: 64px;
  align-items: start;
}
.v2-story__left {
  text-align: left;
}
.v2-story__text {
  font-size: 14px;
  color: #61727a;
  line-height: 1.65;
  margin: 0 0 16px;
}
.v2-story__left .v2-btn {
  margin-top: 8px;
}
/* 引用カード */
.v2-story__quote {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--sm-line, #dfe6e9);
}
.v2-story__quote-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.v2-story__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe6e9;
  flex-shrink: 0;
}
.v2-story__quote-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a2a30;
}
.v2-story__quote-sub {
  font-size: 12px;
  color: #61727a;
}
.v2-story__quote-body {
  font-size: 14px;
  line-height: 1.65;
  color: #61727a;
  margin: 0;
  padding: 0;
  border: 0;
}

/* バナー（ストーリー直後） */
.v2-about-banner {
  padding: 32px 0;
}
.v2-about-banner__link {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}
.v2-about-banner__link img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .v2-story__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========== 6. 4段階の確認ステータス ========== */
.v2-status {
  padding: 64px 0;
}
.v2-status__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sm-line, #dfe6e9);
}
.v2-status-card {
  background: #fff;
  border: none;
  border-radius: 0;
  border-top: none;
  padding: 24px;
  text-align: left;
  min-height: 130px;
  display: flex;
  flex-direction: column;
}
.v2-status-card__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  align-self: flex-start;
}
.v2-status-card--green .v2-status-card__badge  { background: #00a38d; color: #fff; }
.v2-status-card--blue .v2-status-card__badge   { background: #076bc9; color: #fff; }
.v2-status-card--gray .v2-status-card__badge   { background: #8a9aa1; color: #fff; }
.v2-status-card--orange .v2-status-card__badge { background: #ff8a00; color: #fff; }

.v2-status-card p {
  font-size: 12px;
  line-height: 19.5px;
  color: #61727a;
  margin: 0;
}

@media (max-width: 767px) {
  .v2-status__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 7. よくある質問 ========== */
.v2-faq {
  padding: 64px 0;
  background: #f5f8f9;
}
.v2-faq__list {
  max-width: 720px;
  margin: 0 auto;
}
.v2-faq__item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sm-line, #dfe6e9);
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
}
.v2-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a2a30;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.v2-faq__item summary::-webkit-details-marker { display: none; }
.v2-faq__item summary::marker { display: none; content: ''; }

.v2-faq__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 12px;
}
.v2-faq__toggle::before,
.v2-faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #076bc9;
  border-radius: 2px;
  transition: transform 0.25s;
}
.v2-faq__toggle::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.v2-faq__toggle::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.v2-faq__item[open] .v2-faq__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.v2-faq__answer {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: #61727a;
  line-height: 1.7;
}
.v2-faq__answer a {
  color: #076bc9;
  text-decoration: underline;
}

/* ========== 8. 締めのCTA ========== */
.v2-cta {
  background: #076bc9;
  padding: 64px 24px;
  text-align: center;
}
.v2-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}
.v2-cta h2 {
  font-size: 36px;
  font-weight: 900;
  line-height: 40px;
  color: #fff;
  margin: 0 0 12px;
}
.v2-cta p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .v2-cta h2 { font-size: 24px; line-height: 32px; }
}

/* ========== レスポンシブ: Browse グリッド ========== */
@media (max-width: 1024px) {
  .v2-browse__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .v2-browse__grid {
    grid-template-columns: 1fr;
  }
  .v2-section-title--story {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ========== v2c カード内サブ要素 ========== */
/* バッジ行（左にバッジ群・右にいいね数） */
.v2-browse__grid .sm-product-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.v2-browse__grid .sm-product-card__badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.v2-browse__grid .sm-product-card__likes {
  font-size: 12px;
  color: #61727a;
  white-space: nowrap;
  flex-shrink: 0;
}
/* v2cバッジ（NEW, 確認済） */
.v2-card-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.v2-card-badge--new {
  background: #076bc9;
  color: #fff;
}
.v2-card-badge--verified {
  background: #00a38d;
  color: #fff;
}
/* カード下部（作者名 + 使うリンク） */
.v2-browse__grid .sm-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  min-height: auto;
  flex-wrap: nowrap;
  gap: 8px;
}
.v2-browse__grid .sm-product-card__developer {
  font-size: 12px;
  color: #61727a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sm-product-card__use-link {
  font-size: 12px;
  font-weight: 700;
  color: #076bc9;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========== 全体の横スクロール防止 ========== */
.market-home {
  overflow-x: hidden;
}
.v2-section-inner {
  overflow-x: hidden;
  box-sizing: border-box;
}
