/* ==========================================================================
   フロントページ専用スタイル（株式会社カンゲン／エディトリアル）
   共通パーツ・見出しは components.css を参照。ここはトップ固有のレイアウトのみ。
   カードの連続を避け、左右非対称・引用主役・新聞型リストで構成する。
   ========================================================================== */

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.section-actions--left {
  justify-content: flex-start;
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   1. ヒーロー（背景画像＋グラデーション）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* 背景画像(1920×1080)と同じ 16:9。幅に応じて高さが自動で決まる。
     コピーが収まりきらない狭い画面では、内容に合わせて自動的に縦に伸びる
     （overflow:hidden を付けると min-height:auto が無効になりテキストが切れるため付けない）。 */
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #0e3a5f 0%, #0a2c49 60%, #082238 100%);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 文字の可読性を確保するオーバーレイ（シニア層向け＝しっかりめ）
   ・ドット（ハーフトーン）フィルターで背景を落ち着かせ、コピーを読みやすくする
   ・左側（コピーが乗る側）を濃いめにするグラデーションを重ねる */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(rgba(6, 20, 36, 0.32) 1px, transparent 1px) 0 0 / 5px 5px,
    linear-gradient(105deg, rgba(8, 26, 44, 0.68) 0%, rgba(8, 26, 44, 0.42) 55%, rgba(8, 26, 44, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 26, 44, 0.25) 0%, rgba(8, 26, 44, 0.22) 50%, rgba(8, 26, 44, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(3rem, 9vw, 5.5rem);
}

.hero__kicker {
  display: inline-block;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-primary-light);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero__sub {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.95;
  color: #fff;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.hero__tel svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--color-primary-light);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.hero__tel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.hero__tel-num {
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.hero__tel-hours {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. イントロ ＋ 信頼の証バンド
   -------------------------------------------------------------------------- */
.intro__lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

.intro__text {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text-mid);
}

/* 信頼の証：箱ではなく、ヘアラインで仕切った一枚の帯 */
.trust-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trust-band__item {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: clamp(1.4rem, 3vw, 2rem) 1rem;
  text-align: center;
}

.trust-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.trust-band__icon svg {
  width: 22px;
  height: 22px;
}

.trust-band__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.trust-band__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .trust-band {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   3. こんなお悩み（左：見出し＋相談員／右：チェックリスト）
   -------------------------------------------------------------------------- */
.trouble__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.trouble__lead {
  margin-top: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--color-text-mid);
}

.trouble__char {
  margin-top: 2rem;
}

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

.trouble__list li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2.75rem;
  border-bottom: 1px solid var(--color-border);
}

.trouble__list li:first-child {
  border-top: 1px solid var(--color-border);
}

.trouble__list li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}

.trouble__q {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.7;
}

.trouble__a {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--color-text-mid);
  line-height: 1.85;
}

@media (min-width: 900px) {
  .trouble__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   4. カンゲンの思い（ネイビー）
   -------------------------------------------------------------------------- */
.message__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.message__text {
  margin-block: 1.25rem 1.75rem;
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

.message__quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.5vw, 2.9rem);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 900px) {
  .message__grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   5. 主力製品（左右非対称）
   -------------------------------------------------------------------------- */
.product__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.product__visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-pale), #d6ebf7);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__placeholder {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.7;
}

/* 製品画像：水色グラデの枠を額装として、画像全体を中央に収める */
.product__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-sizing: border-box;
}

.product__lead {
  margin-block: 1.25rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.95;
}

.product__body .note-small {
  margin-top: 0.85rem;
}

@media (min-width: 900px) {
  .product__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   6. お客様の声（引用が主役）
   -------------------------------------------------------------------------- */
.voice-feature {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  padding-top: 2.5rem;
}

.voice-feature::before {
  content: '“';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--color-primary-light);
  opacity: 0.4;
}

.voice-feature__quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--color-primary);
}

.voice-feature__cite {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-mid);
}

.voice-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 820px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}

.voice-sub__item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-primary-pale);
}

.voice-sub__item p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.voice-sub__item span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.voices__note {
  text-align: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .voice-sub {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   8. コラム（新聞型インデックス）
   -------------------------------------------------------------------------- */
.column__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.column__more {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  transition: gap var(--transition), color var(--transition);
}

.column__more:hover {
  color: var(--color-primary-light);
}

.column-index {
  border-top: 1px solid var(--color-border);
}

.column-index__row {
  border-bottom: 1px solid var(--color-border);
}

.column-index__row a {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0.5rem;
  transition: background-color var(--transition);
}

.column-index__row a:hover {
  background: rgba(46, 155, 214, 0.06);
}

.column-index time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.column-index__cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.column-index__cat.is-news {
  background: var(--color-accent-pale);
  color: var(--color-accent-dark);
}

.column-index__cat.is-column {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

.column-index__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
}

.column-index__row a:hover .column-index__title {
  color: var(--color-primary);
}

.column-index__empty {
  padding: 2rem 0.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .column-index__row a {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'date cat'
      'title title';
    gap: 0.4rem 0.75rem;
  }

  .column-index time {
    grid-area: date;
  }

  .column-index__cat {
    grid-area: cat;
    justify-self: start;
  }

  .column-index__title {
    grid-area: title;
  }
}

/* --------------------------------------------------------------------------
   9. 対応エリア
   -------------------------------------------------------------------------- */
.area-info__lead {
  margin-block: 1rem 1.25rem;
  font-size: 1.02rem;
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   7. 比較表（他との違い）の整え
   記事用 single.css の .wp-table-responsive スタイル（偶数行ゼブラ・薄色見出し）が
   固定トップページにも読み込まれて漏れるため、.reasons 配下だけを高詳細度で上書きし、
   ゼブラを無効化 ＋ カンゲン列を主役として強調する。
   -------------------------------------------------------------------------- */
/* データセルは白で統一（single.css の偶数行ゼブラを打ち消す） */
.reasons .wp-table-responsive table tbody tr td {
  background: #fff;
}

/* 1列目（比較項目）＝行ラベル：淡色で落ち着かせる */
.reasons .wp-table-responsive table tbody tr td:first-child {
  background: var(--color-bg-soft);
}

/* ヘッダー行：濃紺で引き締める（single.css の薄色上書きを戻す） */
.reasons .wp-table-responsive table thead th {
  background: var(--color-primary);
  color: #fff;
}

/* カンゲン列＝主役：見出しは水色で差別化 */
.reasons .wp-table-responsive table thead th.is-own {
  background: var(--color-secondary);
  color: #fff;
}

/* カンゲン列のデータセル：水色淡＋太字濃色ではっきり目立たせる */
.reasons .wp-table-responsive table tbody tr td.is-own {
  background: var(--color-secondary-pale);
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* カンゲン列の左右にアクセント枠を通して「選ばれる列」を強調 */
.reasons .wp-table-responsive .is-own {
  box-shadow: inset 3px 0 0 var(--color-secondary), inset -3px 0 0 var(--color-secondary);
}

/* --------------------------------------------------------------------------
   お悩みセクションのキャラアバター（お水の相談員）
   画像入りになったぶん、円を少しだけ大きくして見やすく
   -------------------------------------------------------------------------- */
.trouble__char .char-bubble__avatar {
  width: 104px;
  height: 104px;
}

/* デスクトップではさらに大きく（+40px） */
@media (min-width: 768px) {
  .trouble__char .char-bubble__avatar {
    width: 144px;
    height: 144px;
  }
}

/* --------------------------------------------------------------------------
   パララックス背景（background-attachment: fixed 方式・JS不使用）
   画像の上に濃いめのオーバーレイを重ね、文字の可読性を最優先する。
   -------------------------------------------------------------------------- */
/* カンゲンの思い「水ひとすじ、四十年。」：水中の光と気泡 */
.message.section--navy {
  background-image:
    linear-gradient(160deg, rgba(14, 58, 95, 0.7) 0%, rgba(10, 44, 73, 0.76) 100%),
    url(../img/parallax-bubbles.webp?ver=2.1);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* お客様の声：注がれる水流と波紋（旧ヒーロー画像を薄く敷く） */
.voices.section--soft {
  background-image:
    linear-gradient(rgba(247, 250, 252, 0.78), rgba(247, 250, 252, 0.78)),
    url(../img/parallax-pour.webp?ver=2.1);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* iOS Safari 等は fixed 非対応で表示が崩れるため、タブレット以下は通常スクロール */
@media (max-width: 1024px) {
  .message.section--navy,
  .voices.section--soft {
    background-attachment: scroll;
  }
}
