/* ===== LP（ys-dc.jp 風：清潔×信頼×大CTA） ===== */

/* ベース */
.container{ width:min(1120px, calc(100% - 32px)); margin-inline:auto; }
.sp-only{ display:none; }
@media (max-width: 960px){ .sp-only{ display:inline; } }

/* ヘッダーを白ガラス風に（共通style.cssの上書き） */
.site-header.lp{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: saturate(130%) blur(10px);
  -webkit-backdrop-filter: saturate(130%) blur(10px);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 10px 0; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand .logo{ width:28px; height:28px; }
.brand-name{ font-weight:900; color:#2e2038; letter-spacing:.2px; }
.nav{ display:flex; gap:18px; }
.nav a{ color:#4b3a58; text-decoration:none; font-size:14px; opacity:.92 }
.nav a:hover{ opacity:1 }
.nav-toggle{ display:none; background:none; border:0; font-size:22px; color:#4b3a58; }
.site-header.open .nav{
  display:flex; position:absolute; right:16px; left:16px; top:54px;
  flex-direction:column; gap:10px; background:#fff; border:1px solid rgba(0,0,0,.06);
  padding:12px; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.12);
}
@media (max-width: 960px){ .nav{ display:none; } .nav-toggle{ display:inline-block; } }

/* 画面の縦をしっかり使う。写真の拡大はせずに“見せ幅”だけ増やす */
.hero{
  position: relative;
  padding: 96px 0 48px;   /* 上下の余白も少し増やす */
  min-height: 85vh;       /* ← ここで縦幅アップ（92vh → 115vh） */
}

/* 大画面はさらに余裕を持たせる */
@media (min-width: 1280px){
  .hero{
    min-height: 90vh;
    padding: 108px 0 56px;
  }
}

/* モバイルは画面内に収める程度に */
@media (max-width: 960px){
  .hero{
    min-height: 80vh;
    padding: 88px 0 40px;
  }
}

.hero-bg{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,128,213,.22) 0%, transparent 55%),
    var(--site-gradient);
  /* 背景写真を入れたい場合は下の1行のコメントアウトを外す */
  /* background-image: url("/assets/hero.jpg"), radial-gradient(...), var(--site-gradient); background-size:cover, auto, auto; background-position:center, center, center; background-blend-mode: soft-light, normal; */
}

/* ヒーローの中身が縦方向でも中央に寄るように最小高さを継承 */
.hero-inner{
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
  justify-items:start;
  gap:24px;
  min-height: inherit;   /* ← hero の min-height を継承して縦中央寄せ */
}
@media (max-width: 960px){
  .hero-inner{ justify-items:center; }
}

.hero-copy .eyebrow{
  display:inline-block; font-weight:800; letter-spacing:.3px; color:#2e2038;
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:999px;
  padding:6px 10px; box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.hero h1{
  margin:12px 0 8px; font-size:42px; line-height:1.15; font-weight:900;
  background: linear-gradient(90deg,#ff6fd8 0%, #8c7bff 50%, #ffb86c 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero .lead{ color:#5d4c6f; font-size:17px; }
.underline{ background: linear-gradient(transparent 65%, #ff6fd824 0); }

.cta{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.btn{ display:inline-block; text-decoration:none; border-radius:999px; }
.btn.primary, .btn.ghost { font-weight:800; letter-spacing:.3px; }
.btn.primary{ background:linear-gradient(135deg, #f1b7e4, #c8c0ff); color:#fff; padding:14px 22px; border:1px solid rgba(255,255,255,.35); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.btn.ghost{ background:#ffffffc4; color:#4b3a58; padding:14px 22px; border:1px solid rgba(0,0,0,.08); box-shadow:0 10px 20px rgba(0,0,0,.10); }
.btn.xl{ font-size:16px; }

.hero-stats{ display:flex; gap:12px; margin-top:16px; padding:0; list-style:none; }
.hero-stats li{
  flex:1 1 0; text-align:center; background:#fff; border:1px solid rgba(0,0,0,.06);
  border-radius:12px; padding:12px 10px; box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.hero-stats strong{ display:block; font-size:22px; font-weight:900; color:#2e2038; }
.hero-stats span{ font-size:12px; color:#6b5b7a; }

/* セクション */
.section{ padding:64px 0; }
.section.alt{ background:linear-gradient(180deg, #ffffffa6, #ffffff60); border-block:1px solid rgba(0,0,0,.06) }
.section-title{ font-size:24px; margin:0 0 18px; color:#3b2a3e; font-weight:900 }

/* 3つの特長 */
.grid{ display:grid; gap:16px; }
.features-grid{ grid-template-columns:repeat(3,1fr); }
.card{
  background:#fff; border:1px solid rgba(0,0,0,.06);
  border-radius:14px; padding:18px; box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.card h3{ margin:0 0 6px; color:#35253f; font-weight:900 }

/* お知らせ */
.news-list{ margin:0; padding-left:1.2rem; color:#4b3a58; }
.news-list li{ margin:.35rem 0; }
.news-list time{ font-weight:700; margin-right:.5rem; color:#2e2038; }

/* フッター */
.site-footer{ border-top:1px solid rgba(0,0,0,.06); padding:24px 0; background:rgba(255,255,255,.85); }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.footer-nav{ display:flex; gap:16px; }
.footer-nav a{ color:#6f5e77; text-decoration:none; }

@media (max-width: 780px){
  .features-grid, .steps{ grid-template-columns:1fr; }
  .hero-stats{ flex-direction:column; }
}

/* ヒーローコピーの横幅と余白を少し整える */
.hero-copy{ max-width: 720px; }
.cta{ margin-top: 16px; }

/* ===== 特徴セクション ===== */
.features{
  padding: 56px 0 64px;
}

.sec-ttl{
  text-align: center;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  margin-bottom: 28px;
}

.features-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px){
  .features-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .features-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 420px){
  .features-grid{ grid-template-columns: 1fr 1fr; }
}

.feature-card{
  display: grid;
  justify-items: center;
  text-decoration: none;
  color: #222;
  gap: 10px;
  transition: transform .18s ease, filter .18s ease;
}

.feature-card:hover{
  transform: translateY(-4px);
  filter: saturate(1.05);
}

.feature-card .icon{
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: #f6d6dd;                 /* ピンクの丸 */
  box-shadow: 0 6px 18px rgba(0,0,0,.08) inset,
              0 4px 10px rgba(0,0,0,.10);
  display: grid;
  place-items: center;
}

.feature-card .icon svg{
  width: 54px;
  height: 54px;
  display: block;
}

.feature-card .title{
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.feature-card .desc{
  font-size: 12px;
  color: #555;
  opacity: .9;
  text-align: center;
}

/* ダーク背景でも読みやすく（ヒーロー近辺の上に置く前提） */
.features .title{ color: #131313; }
.features .desc { color: #333; }

/* ===== How To（3ステップ） ===== */
.steps{
  padding: 56px 0 72px;
  position: relative;
}

/* 背景の流れライン（PC） */
@media (min-width: 900px){
  .steps-flow::before{
    content:"";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 92px;                 /* 丸の中心あたり */
    height: 6px;
    background: linear-gradient(90deg,#a0c4ff,#1f77ff);
    border-radius: 999px;
    opacity: .55;
    z-index: 0;
  }
}

/* バッジ */
.badge{
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6fa2;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255,111,162,.35);
}

/* タイトル・説明・ボタン */
.step-title{
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0 2px;
}
.step-desc{
  font-size: 13px;
  color: #333;
  opacity: .9;
  margin: 0 0 6px;
}

.step-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31,119,255,.38);
}
.step-cta.ghost{
  background: #fff;
  color: #1f77ff;
  border: 2px solid #1f77ff;
  box-shadow: none;
}

/* レスポンシブ：縦積み＋ライン非表示 */
@media (max-width: 900px){
  .steps-flow{
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 520px;
  }
  .steps-flow::before{ display: none; }
  .step{ text-align: center; }
  .step-ball{ width: 150px; height: 150px; }
  .step-ball svg{ width: 64px; height: 64px; }
}

/* 丸アイコンはカードの中で余白を確保 */
.step-ball{
  width: 164px;
  height: 164px;
  border-radius: 999px;
  background: #e9f1ff;
  box-shadow:
    0 10px 28px rgba(31,119,255,.18),
    0 0 0 8px #f4f8ff inset;
  display: grid;
  place-items: center;
  margin-top: 6px;
  margin-bottom: 6px;
}
.step-ball svg{ width: 72px; height: 72px; }

/* ボタンは “一番下” に固定配置されるように余白で押し下げる */
.step-cta{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg,#8bb7ff,#1f77ff);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(31,119,255,.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  margin-top: auto;             /* ← これで下に寄る */
}

/* ライン位置をわずかに下げてカードと干渉しにくく */
@media (min-width: 900px){
  .steps-flow::before{
    top: 115px;
  }
}

/* スマホは1列で縦積み（既存ルールはそのまま有効） */

/* PCは必ず3枚を横一列に固定（折り返さない） */
.steps-flow{
  list-style: none;
  margin: 0 auto;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr)); /* ← 3カラム固定 */
  gap: 28px;
  max-width: 1200px; /* 余裕を少し増やす */
  align-items: stretch;
  counter-reset: step;
  position: relative;
}

/* ボタンを最下部に寄せる仕様はそのまま */
.step{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 20px 18px 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  height: 100%;
}
.step-cta{ margin-top: auto; }

/* スマホは1列で縦積み（既存と同じ） */
@media (max-width: 900px){
  .steps-flow{
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 520px;
  }
  .steps-flow::before{ display: none; }
}

/* ===== パネル型CTA（2枚目の画像ライク） ===== */
.cta-grid{
  width:min(1100px, calc(100% - 32px));
  margin: 0 auto 28px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
@media (max-width:720px){
  .cta-grid{ grid-template-columns:1fr; }
}

.cta-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px 18px 20px;
  border-radius:16px;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  color:#14213d;
  isolation:isolate;
  overflow:hidden;
}

/* 角の「かぎ括弧」風アクセント */
.cta-card::before,
.cta-card::after{
  content:"";
  position:absolute;
  inset:10px auto auto 10px;
  width:14px; height:14px;
  border-top:2px solid rgba(255,255,255,.7);
  border-left:2px solid rgba(255,255,255,.7);
  border-radius:3px;
  pointer-events:none;
}
.cta-card::after{
  inset:auto 10px 10px auto;
  border-top:none; border-left:none;
  border-right:2px solid rgba(255,255,255,.7);
  border-bottom:2px solid rgba(255,255,255,.7);
}

.cta-text{
  display:flex; flex-direction:column; gap:6px;
}
.cta-kicker{
  display:inline-block;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.02em;
  opacity:.9;
}
.cta-title{
  font-size:1.35rem;
  font-weight:900;
  letter-spacing:.02em;
}

/* アイコン面（右） */
.cta-icon{
  flex:0 0 auto;
  width:64px; height:64px;
  border-radius:12px;
  background:rgba(255,255,255,.28);
  display:grid; place-items:center;
  mix-blend:normal;
}
.cta-icon svg{
  width:34px; height:34px;
  fill:#fff;
  opacity:.95;
}

/* 色バリエ（2枚目の淡パステル） */
.cta--blue{
  background:linear-gradient(135deg, #9ec5e7, #7ac5c0);
  color:#0f2438;
}
.cta--peach{
  background:linear-gradient(135deg, #ffd2b5, #f7b6a1);
  color:#3a1a10;
}

/* ホバー＆フォーカス */
.cta-card:hover{ 
  transform: translateY(-2px);
  box-shadow:0 14px 28px rgba(0,0,0,.12);
  filter:saturate(108%);
}
.cta-card:focus-visible{
  outline:3px solid #8ab4ff;
  outline-offset:3px;
}

/* タブ周りと余白が干渉しないよう微調整（任意） */
.tab-nav + .cta-grid{ margin-top:20px; }

/* --- Hero 説明文を白文字に --- */
.hero .lead{
  color:#fff;                 /* 白文字 */
  opacity:.96;                /* わずかにやわらげる（任意） */
  text-shadow:0 1px 2px rgba(0,0,0,.35); /* 背景写真上で読みやすく */
}

/* 「毎日ランキング更新」部分で使っている .underline を
   見出し用の横線スタイルから“文字下ハイライト”に上書き */
.hero .lead .underline{
  display:inline;             /* ブロック化されないように */
  width:auto; height:auto;
  padding:0 .08em;
  background:linear-gradient(transparent 70%, rgba(255,255,255,.32) 0);
  border-radius:2px;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

/* 背景写真をもう少し淡く見せる：白いベールを重ねる */
.hero { position: relative; }
.hero .hero-bg{ position:absolute; inset:0; }

/* 好みで opacity を 0.15〜0.35 の範囲で調整 */
.hero .hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    0deg,
    rgba(255,255,255,.26),
    rgba(255,255,255,.26)
  );
  /* さらに淡く＆落ち着かせたいときはコメント解除
  mix-blend-mode: lighten;
  */
}

/* 写真の主張を少し抑える（任意） */
.hero .hero-bg{
  filter: saturate(.9) brightness(1.03); /* 0.8〜1.1あたりで微調整 */
}

/* ===== /home スマホ最適化（～560px）========================= */
@media (max-width: 560px){

  /* ヒーロー：上下余白を詰め、文字サイズを最適化 */
  .hero { padding: 18px 0 14px; }
  .hero-inner { padding: 0 14px; }
  .hero-copy .eyebrow{
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: #333;
    display: inline-block;
  }
  .hero-copy h1{
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.2;
    margin: 10px 0 6px;
    color: #fff;            /* ヒーロー上のタイトルは白で読ませる */
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
  }
  .hero-copy .lead{
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
  }

  /* ヒーロー背景が明るい写真でも文字を読めるよう、モバイル時は
     追加のオーバーレイを重ねる（既存のJSの上に薄く足す） */
  .hero-bg{
    position: relative;
    isolation: isolate;
  }
  .hero-bg::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(10,8,16,.35), rgba(10,8,16,.5));
    z-index:-1;
  }

  /* CTA：2ボタンは横並び（幅が足りない端末は自動折返し） */
  .cta{
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-top: 14px;
  }
  .cta .unified-btn{
    flex: 1 1 46%;
    min-width: 140px;
    height: 48px;
    font-weight: 800;
    font-size: 15px;
    border-radius: 14px;
  }

  /* ヒーロー配下の統計：カードをタップしやすく・1行に収めやすく */
  .hero-stats{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0 0;
    padding: 0 6px;
  }
  .hero-stats li{
    background: rgba(255,255,255,.9);
    border-radius: 12px;
    padding: 10px 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
  }
  .hero-stats li strong{
    display: block;
    font-size: clamp(16px, 5.4vw, 22px);
    line-height: 1.2;
  }
  .hero-stats li span{
    display: block;
    font-size: 12px;
    color: #666;
  }
  /* 超狭幅（SE等）は2列へ */
  @media (max-width: 360px){
    .hero-stats{ grid-template-columns: repeat(2, 1fr); }
  }

  /* 見出し（共通） */
  .sec-ttl{
    font-size: clamp(18px, 6.2vw, 22px);
    margin: 18px 0 8px;
  }

  /* 特徴カード：2列グリッド（極端に狭い端末は1列） */
  .features-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
  }
  @media (max-width: 360px){
    .features-grid{ grid-template-columns: 1fr; }
  }
  .feature-card{
    padding: 12px;
    border-radius: 14px;
  }
  .feature-card .title{ font-size: 15px; }
  .feature-card .desc { font-size: 12px; color:#666; }

  /* 3ステップ：縦並び＋ボタンは幅広に */
  .steps-flow{
    display: grid; gap: 14px;
    grid-template-columns: 1fr;
  }
  .step{
    padding: 14px;
    border-radius: 14px;
  }
  .step-title{ font-size: 16px; }
  .step-desc { font-size: 13px; color:#555; }
  .step-cta{
    display: inline-flex;
    align-items: center; justify-content: center;
    min-height: 42px; padding: 0 14px;
    border-radius: 12px;
    font-weight: 800; font-size: 14px;
  }

  /* 下余白を少し詰めて全体をコンパクトに */
  .section.news .section-title{ font-size: 18px; }
  .news-list{ padding-left: 0; }
  .news-list li{ font-size: 14px; }
}
/* ===== /home スマホ最適化 ここまで ========================== */

/* === Home：KPIカード（掲載枚数/累計投票/今日の更新） =================== */
/* HTML: <div class="stats-grid"> 内の .stat-card を装飾 */

.stats-grid{
  width: min(1000px, calc(100% - 24px));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* ✅ スマホでも3枚横並び */
  gap: 10px;
  align-items: stretch;
}

.stat-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  padding: 10px 8px;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  row-gap: 4px;
  text-align: center;
}

/* アイコンは小さく固定（広がらない） */
.stat-icon{
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,0,0,.05);
  display: grid; place-items: center;
}
.stat-icon svg{ width: 22px; height: 22px; }

/* テキスト */
.stat-label{
  font-size: 12px;
  color: #666;
  line-height: 1.1;
}
.stat-value{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: .02em;
}
.stat-unit{
  margin-left: 2px;
  font-size: 12px;
  color: #666;
}

/* 超狭幅（SE等）は2列に落として詰み防止 */
@media (max-width: 360px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card{ padding: 8px 6px; }
  .stat-value{ font-size: 17px; }
}

/* タブレット〜PCでは少し拡大 */
@media (min-width: 720px){
  .stats-grid{ gap: 14px; }
  .stat-icon{ width: 44px; height: 44px; }
  .stat-icon svg{ width: 26px; height: 26px; }
  .stat-value{ font-size: 20px; }
}

/* ===== How-to（3ステップ）: モバイルでの重なり解消 ===== */
/* ステップカード同士にギャップを作る（HTMLはそのまま） */
.steps-flow{
  display: flex;               /* 縦積みでも gap が効くように */
  flex-direction: column;
  gap: 28px;                   /* ← ここが重なり解消のキモ */
}

/* カードの内側にも少し下余白を足して、STEPバッジがはみ出しても当たらないように */
.step{
  padding-bottom: 20px;
}

/* ボタンの直後にスペースを確保（下のSTEPバッジと干渉しにくく） */
.step-cta{
  margin-bottom: 14px;
}

/* 画面が広い時は少しだけ間隔を広げる */
@media (min-width: 768px){
  .steps-flow{ gap: 36px; }
  .step{ padding-bottom: 24px; }
}

/* === モバイルで「はじめ方」上の余白を圧縮 === */
@media (max-width: 560px){
  /* 特徴セクションの“下”を詰める（64px → 20px） */
  .features{ padding: 40px 0 20px; }

  /* はじめ方セクションの“上”を詰める（56px → 20px） */
  .steps{ padding: 20px 0 56px; }
}

/* さらに狭い端末（iPhone SE 等）はもう少し詰める */
@media (max-width: 360px){
  .features{ padding: 36px 0 16px; }
  .steps{ padding: 16px 0 52px; }
}

/* === モバイルのヒーロー背景の“拡大しすぎ”を強制で抑える（保険） === */
@media (max-width: 560px){
  .hero-bg{
    background-size: 100% auto !important;   /* 横100%に合わせる */
    background-position: center 18% !important;
  }
}
/* 超狭幅端末はわずかに拡大して隙間防止 */
@media (max-width: 360px){
  .hero-bg{ background-size: 110% auto !important; }
}
