/* トップページ（index.html）だけのデザイン（見本 A：落ち着いた・清潔感。白と青、余白を広く、読みやすさ重視）
   すべて body.home の中に限って当てる。ヘッダー・フッター・ボタン（.btn）は、全ページ共通の style.css にある。 */
.home {
  --h-bg: #ffffff;
  --h-text: #1f2a37;
  --h-heading: #0f2a4a;
  --h-muted: #4b5563;
  --h-accent: #1d5fd1;
  --h-accent-strong: #174ca8;
  --h-accent-text: #1a56c4;
  --h-accent-soft: #e6effc;
  --h-soft: #f5f8fd;
  --h-line: #dbe3ee;
  --h-line-strong: #8aa0bd;
  --h-focus: #f59e0b;
  --h-navy: #0f2a4a;
  margin: 0;
  background: var(--h-bg);
  color: var(--h-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home img { max-width: 100%; height: auto; }
.home a { color: var(--h-accent-text); }
.home h1, .home h2, .home h3 { word-break: auto-phrase; letter-spacing: .01em; }
.home :focus-visible { outline: 3px solid var(--h-focus); outline-offset: 3px; }
.home .btn { min-height: 52px; color: #fff; }
.home .btn.btn-secondary { color: var(--h-heading); }
.home .btn.btn-light { color: var(--h-navy); }
.home-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.home-skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--h-navy); color: #fff !important; padding: 12px 16px; border-radius: 10px; }
.home-skip:focus { top: 12px; }

/* 一番上 */
.home-hero { background: var(--h-soft); padding: 80px 0 72px; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.home-kicker { margin: 0 0 12px; color: var(--h-accent-text); font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.home h1 { margin: 0; color: var(--h-heading); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.25; font-weight: 800; }
.home h1 em { font-style: normal; color: var(--h-accent-text); }
.home-lead { margin: 20px 0 0; font-size: 19px; max-width: 34em; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-note { margin: 18px 0 0; font-size: 16px; color: var(--h-muted); }

/* 画面のスライド（CSS だけ。4.5 秒ずつクロスフェード。マウスを載せたとき・キーボードで選んだときは止まる。
   番号や「前へ」「次へ」を選ぶと、自動の切り替えをやめて、選んだ画面を出したままにする。
   動きを減らす設定のときは、動かさず 1 枚目を出す） */
.home-slider { position: relative; margin: 0; }
.home-slide-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.home-slide-stage { display: grid; }
.home-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; background: #fff; border: 1px solid var(--h-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 42, 74, .10); padding: 14px; }
.home-slide:first-child { opacity: 1; visibility: visible; }
.home-slide-frame { position: relative; aspect-ratio: 16 / 11; background: #f1f4f9; border-radius: 8px; overflow: hidden; }
.home-slide-frame img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.home-slide figcaption { margin: 12px 4px 0; font-size: 17px; font-weight: 700; color: var(--h-heading); line-height: 1.5; }
.home-slide-step { display: inline-block; margin-right: 10px; color: var(--h-accent-text); }
.home-slide-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.home .home-slider label { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--h-line-strong); background: #fff; color: var(--h-heading); font-size: 16px; font-weight: 700; cursor: pointer; }
.home .home-slider label:hover { background: var(--h-soft); }
.home-slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.home .home-slide-dots label { padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  .home-slide { animation: home-slide-fade 18s infinite both; transition: opacity .4s, visibility .4s; }
  .home-slide:nth-child(2) { animation-delay: -13.5s; }
  .home-slide:nth-child(3) { animation-delay: -9s; }
  .home-slide:nth-child(4) { animation-delay: -4.5s; }
  .home .home-slide-dots label { animation: home-slide-dot 18s infinite both; }
  .home .home-slide-dots label:nth-child(2) { animation-delay: -13.5s; }
  .home .home-slide-dots label:nth-child(3) { animation-delay: -9s; }
  .home .home-slide-dots label:nth-child(4) { animation-delay: -4.5s; }
  .home-slider:hover .home-slide, .home-slider:focus-within .home-slide,
  .home .home-slider:hover .home-slide-dots label, .home .home-slider:focus-within .home-slide-dots label { animation-play-state: paused; }
}
@keyframes home-slide-fade {
  0%, 21.5% { opacity: 1; visibility: visible; }
  25%, 96.5% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes home-slide-dot {
  0%, 24.9% { background: var(--h-accent); color: #fff; border-color: var(--h-accent); }
  25%, 100% { background: #fff; color: var(--h-heading); border-color: var(--h-line-strong); }
}

/* 手で選んだとき（自動の切り替えをやめる） */
.home-slide-radio:checked ~ .home-slide-stage .home-slide { animation: none; opacity: 0; visibility: hidden; }
#home-slide-1:checked ~ .home-slide-stage .home-slide:nth-child(1),
#home-slide-2:checked ~ .home-slide-stage .home-slide:nth-child(2),
#home-slide-3:checked ~ .home-slide-stage .home-slide:nth-child(3),
#home-slide-4:checked ~ .home-slide-stage .home-slide:nth-child(4) { opacity: 1; visibility: visible; }
.home .home-slide-radio:checked ~ .home-slide-dots label { animation: none; background: #fff; color: var(--h-heading); border-color: var(--h-line-strong); }
.home #home-slide-1:checked ~ .home-slide-dots label:nth-child(1),
.home #home-slide-2:checked ~ .home-slide-dots label:nth-child(2),
.home #home-slide-3:checked ~ .home-slide-dots label:nth-child(3),
.home #home-slide-4:checked ~ .home-slide-dots label:nth-child(4) { background: var(--h-accent); color: #fff; border-color: var(--h-accent); }
/* キーボードで選んでいる番号に、枠を出す */
.home #home-slide-1:focus-visible ~ .home-slide-dots label:nth-child(1),
.home #home-slide-2:focus-visible ~ .home-slide-dots label:nth-child(2),
.home #home-slide-3:focus-visible ~ .home-slide-dots label:nth-child(3),
.home #home-slide-4:focus-visible ~ .home-slide-dots label:nth-child(4) { outline: 3px solid var(--h-focus); outline-offset: 3px; }
/* 動きを減らす設定で、何も選んでいないとき: 1 枚目を出し、1 の番号を選んだ色にする */
@media (prefers-reduced-motion: reduce) {
  .home .home-slide-dots label:first-child { background: var(--h-accent); color: #fff; border-color: var(--h-accent); }
  .home .home-slide-radio:checked ~ .home-slide-dots label:first-child { background: #fff; color: var(--h-heading); border-color: var(--h-line-strong); }
  .home #home-slide-1:checked ~ .home-slide-dots label:nth-child(1) { background: var(--h-accent); color: #fff; border-color: var(--h-accent); }
}

/* 信頼できる点 */
.home-trust { border-block: 1px solid var(--h-line); background: #fff; }
.home-trust ul { list-style: none; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.home-trust li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--h-heading); font-size: 16px; }
.home-trust li::before { content: "✓"; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--h-accent); color: #fff; font-size: 16px; line-height: 1; }

/* 区切り */
.home-section { padding: 88px 0; }
.home-section-alt { background: var(--h-soft); }
.home-section-head { max-width: 760px; margin-bottom: 32px; }
.home h2 { margin: 0; color: var(--h-heading); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; font-weight: 800; }
.home h3 { margin: 0; color: var(--h-heading); font-size: 22px; line-height: 1.45; }
.home-more { margin: 24px 0 0; font-weight: 700; }
.home-more a { display: inline-flex; align-items: center; min-height: 48px; }
.home-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--h-accent-soft); color: var(--h-accent-text); font-weight: 800; font-size: 18px; }

.home-steps, .home-features, .home-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-steps li, .home-feature { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 26px; }
.home-steps h3, .home-feature h3 { margin-top: 16px; margin-bottom: 8px; }
.home-steps h3 { font-size: 20px; }
.home-steps p, .home-feature p { margin: 0; }
.home-also { margin: 28px 0 0; }
.home-articles a { display: flex; flex-direction: column; gap: 6px; min-height: 100%; padding: 24px; border: 1px solid var(--h-line); border-radius: 14px; color: var(--h-heading); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.6; }
.home-articles a:hover { border-color: var(--h-accent); background: var(--h-soft); }
.home-articles small { color: var(--h-accent-text); font-size: 16px; }

/* 最後の呼びかけ */
.home-final { padding: 72px 0; background: var(--h-navy); color: #e6edf7; text-align: center; }
.home .home-final h2 { color: #fff; }
.home-final p { margin: 12px auto 28px; max-width: 32em; font-size: 18px; }

/* タブレット・スマホ */
@media (max-width: 1000px) {
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .home-features, .home-articles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .home { font-size: 16px; }
  .home-hero { padding: 40px 0 48px; }
  .home-lead { font-size: 17px; }
  .home-section, .home-final { padding: 56px 0; }
  .home-steps { grid-template-columns: minmax(0, 1fr); }
  .home-steps li, .home-feature { padding: 22px; }
}
