/* ============================================================
   common.css
   - UA（ブラウザ）差分の吸収
   - 全ページ共通（今後も変わらない、または変わるなら全ページ同時に変える）で問題にならない最小限の定義
   - 見た目・LP思想に踏み込まない
   ============================================================ */

/* ============================================================
   1. Reset / ベース前提
   ============================================================ */

/* box-sizing を border-box に統一
   レイアウト計算を安定させるための前提 */
html {
  box-sizing: border-box;
  letter-spacing: 0.05em;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* body の余白をリセット
   各ページ・LP側で余白設計を行う前提 */
body {
  margin: 0;
}

/* ============================================================
   2. 画像のベース定義
   ============================================================ */

/* 画像は親要素に収まる前提とする
   余白・中央寄せ等は各ページ側で指定 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   3. 汎用ユーティリティ
   ============================================================ */

/* ============================================================
   4. リストのベース初期化
   ============================================================ */

/* 独自デザイン前提のため、ブラウザ既定の余白を解除
   インデントや装飾は各LP側で定義 */
ul {
  padding: 0;
  margin: 0;
}

/* ============================================================
   5. コンテナの概念定義
   ============================================================ */

/* 「中央寄せコンテンツ」という概念のみ共通化
   幅・padding は LP/ページごとに決定する */
.container {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ============================================================
   6. フッターベース
   ============================================================ */

/* フッターは基本的に中央寄せ
   細かい装飾・余白は各ページで調整 */
footer {
  width: clamp(320px, 95%, 850px);
  margin: 50px auto 0px;
  padding-top: 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}

/* フッター内リンクは下線なしを前提 */
footer a {
  display: inline-block;
  color: #666;
  font-size: 11px;
  text-decoration: none;
}

/* ============================================================
   7. 共通コンポーネント
   ============================================================ */

/* 署名 */
.signature {
  color: #623ca8;
  text-align: right;
  font-weight: bold;
  margin-top: 26px;
  line-height: 1.2;
}

/* PCでは非表示、スマホでは表示 */
.sp-only {
  display: none;
}

/* ============================================================
   8. KV（キービジュアル）共通定義
   ============================================================ */

.kv {
  /* max-widthを設定しない = 全ページで常に全幅 */
  /* max-widthが必要なページはページ固有CSSで上書きすること */
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 360px;
  overflow: hidden;
  background-color: #fffdfb;
  margin-bottom: 40px;
}

.kv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: 55% center;

  display: block;
}

.kv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kv-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.kv-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 32px 24px;
  color: #fff;
}

.kv-content h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.1em;
}

.kv-content strong {
  color: #623ca8;
}

.kv-content p {
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 19px;
  font-weight: 600;
  margin: 12px 0 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.2em;
}

.kv-logo {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
  display: block;
}
.kv-heading {
  font-size: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   9. 利用者の声
   ============================================================ */

/* 2列グリッド（SP：1列に変更 → @media参照） */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

/* 声カード1枚 */
.voice-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 声本文 */
.voice-text {
  z-index: 2;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
  color: #333;
  flex-grow: 1;
}

/* 声のメタ情報（年齢・職業） */
.voice-meta {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin: 0;
}

/* 声のシルエット画像 */
.voice-card-silhouette {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 20px;
  height: 70px;
  width: auto;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   10. パンくずリスト
   ============================================================ */

.breadcrumb {
  width: 95%;
  margin: 10px auto;
  display: flex;
  align-items: center;
  gap: 1.8em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.8em;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #333;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.1em;
}

.breadcrumb-sitemap {
  padding-left: 0.8em;
}
.breadcrumb-sitemap li::before {
  content: "›› ";
}

.breadcrumb-path li + li.current::before {
  content: "› [";
  margin: 0 0.3em;
}

.breadcrumb-path li:first-child.current::before {
  content: "[";
  margin: 0 0.3em;
}

.breadcrumb .current::after {
  content: "]";
  margin: 0 0.3em;
}

.breadcrumb-path li + li:not(.current)::before {
  content: "› ";
}

/* ============================================================
   11. モバイル最適化（max-width: 480px）
   ============================================================ */

@media (max-width: 480px) {
  html {
    letter-spacing: 0.03em;
  }
  /* 署名 */
  .signature {
    font-size: 14px;
  }

  /* PCでは非表示、スマホでは表示 */
  .sp-only {
    display: inline;
  }

  /* KV（キービジュアル）*/
  .kv {
    position: relative;
    height: auto;
    min-height: 0;
    margin-bottom: 0px;
  }
  .kv-img {
    position: static;
  }
  .kv-overlay {
    position: static;
    background: #fff;
    padding: 0px 5px;
  }
  .kv-content {
    color: #444;
    padding: 20px 10px 0px 10px;
  }
  .kv-overlay::before {
    display: none;
  }
  .kv-content h1 {
    font-size: 24px;
    text-shadow: none;
    color: #444;
  }
  .kv-content p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-shadow: none;
    letter-spacing: 0.1em;
  }
  .kv-logo {
    max-width: 200px;
  }
  /* 利用者の声 */
  .voice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* パンくずリスト */
  .breadcrumb li {
    font-size: 11px;
    line-height: 1.4;
  }
}
