/* index.html（トップページ）専用の追加スタイル。他ページの style.css は変更しない。 */

article { max-width: none; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr);
  gap: 28px;
  align-items: center;
  min-height: 320px;
  margin: -40px -40px 32px;
  padding: 40px 34px 32px 40px;
  overflow: hidden;
  background: var(--accent-soft);
  border-bottom: 10px solid var(--accent-strong);
}
.hero-copy { position: relative; z-index: 2; }
.hero-line { display: flex; align-items: center; gap: 8px; margin: 0 0 19px; }
.hero-line::before,
.hero-line::after,
.hero-line span { content: ""; display: block; height: 2px; background: var(--accent); }
.hero-line::before { width: 66px; }
.hero-line span { width: 14px; }
.hero-line::after { width: 6px; }
.hero h1.page-title { max-width: 520px; margin: 0 0 22px; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.48; letter-spacing: 0.03em; }
.hero .updated { margin: 0; }
.hero-visual { position: relative; z-index: 1; min-width: 0; color: var(--surface); }
.hero-visual svg { width: 100%; height: auto; max-height: 300px; stroke-width: 1.6; }
.hero-visual .visual-mass { fill: var(--accent-strong); stroke: none; }
.hero-visual .visual-plane { fill: var(--accent-soft); stroke: none; }
.hero-visual .visual-orbit,
.hero-visual .visual-nerve { stroke: var(--accent); stroke-width: 1.3; }
.hero-visual .visual-nerve { stroke-dasharray: 3 7; }
.hero-visual .visual-spine { stroke: var(--accent-strong); stroke-width: 2.4; }
.hero-visual .visual-joints path { fill: var(--surface); stroke: var(--accent-strong); stroke-width: 1.7; }
.hero-visual .visual-pelvis { fill: var(--surface-2); stroke: var(--accent-strong); stroke-width: 1.8; }
.hero-visual .visual-pulse { stroke: var(--surface); stroke-width: 2; }
.hero-visual .visual-node { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }

/* ---------- Callout（アイコン付きに強化） ---------- */
.callout {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 27px 21px;
  border-radius: 0;
  border-left-width: 8px;
  box-shadow: none;
}
.callout p { font-size: 13.5px; line-height: 1.95; }
.callout-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.callout-icon svg { width: 38px; height: 38px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- カテゴリーカード ---------- */
.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 40px -40px -80px;
  padding: 46px 40px 56px;
  background: var(--bg);
  border-top: 12px solid var(--accent-soft);
}
.home-cat {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--accent-soft);
  overflow: hidden;
}
.cat-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  margin: 0 0 18px;
}
.cat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
}
.cat-icon svg { width: 34px; height: 34px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-cat h2 {
  margin: 1px 0 4px;
  border-top: none;
  padding-top: 0;
  color: var(--accent-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
}
.home-cat .cat-head p { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); }
.home-cat .related { margin: 0; padding: 0; border-top: none; }
.home-cat .related ul { gap: 1px; background: var(--accent-soft); }
.home-cat .related a {
  position: relative;
  padding: 10px 43px 10px 15px;
  border: none;
  border-radius: 0;
  background: var(--bg);
  color: var(--accent-strong);
  font-size: 13px;
}
.home-cat .related a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.home-cat .related a:hover { background: var(--accent-soft); border-color: transparent; }

.cat-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: center;
  min-height: 280px;
  padding: 30px 34px;
  background: var(--accent-strong);
  border: 0;
}
.cat-feature-visual { position: relative; color: var(--accent-soft); }
.cat-feature-visual svg { width: 100%; max-height: 220px; stroke-width: 1.5; display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cat-feature-visual .graphic-fill { fill: var(--accent); stroke: none; }
.cat-featured .cat-head { display: block; margin: 0 0 19px; }
.cat-featured h2 { margin: 0 0 8px; color: var(--surface); font-size: 30px; }
.cat-featured .cat-head p { color: var(--accent-soft); font-size: 13px; }
.cat-featured .related ul { background: var(--accent); }
.cat-featured .related a { background: var(--surface); }
.cat-featured .related a:hover { background: var(--accent-soft); }

.cat-trust { background: var(--accent-soft); border-color: var(--accent); }
.cat-trust .cat-icon,
.cat-area .cat-icon { display: none; }
.cat-trust .cat-head,
.cat-area .cat-head { grid-template-columns: 1fr; }
.cat-trust .related ul { background: var(--surface); }

.cat-symptom { padding-top: 0; background: var(--surface-2); }
.cat-wave {
  height: 66px;
  margin: 0 -24px 22px;
  padding: 7px 24px;
  color: var(--surface);
  background: var(--accent);
}
.cat-wave svg { width: 100%; height: 52px; stroke-width: 1.35; display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cat-symptom .cat-icon { background: var(--surface); }

.cat-area { background: var(--accent-strong); border-color: var(--accent-strong); }
.cat-area h2 { color: var(--surface); }
.cat-area .cat-head p { color: var(--accent-soft); }
.cat-area .related ul { background: var(--accent); }
.cat-area .related a { background: var(--surface); }
.cat-area .related a:hover { background: var(--accent-soft); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 17px;
    min-height: 0;
    margin: -28px -20px 26px;
    padding: 30px 20px 24px;
    border-bottom-width: 7px;
  }
  .hero h1.page-title { max-width: none; font-size: clamp(24px, 7vw, 32px); }
  .hero-visual { width: min(100%, 320px); justify-self: center; }
  .hero-visual svg { max-height: 240px; }
  .callout { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 19px 17px; }
  .callout-icon { width: 40px; height: 40px; }
  .callout-icon svg { width: 31px; height: 31px; }
  .callout p { font-size: 12.5px; }
  .category-list {
    grid-template-columns: 1fr;
    gap: 17px;
    margin: 28px -20px -60px;
    padding: 30px 20px 42px;
    border-top-width: 8px;
  }
  .home-cat { padding: 20px 16px; }
  .cat-featured {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 22px 18px;
  }
  .cat-feature-visual { width: min(100%, 260px); justify-self: center; }
  .cat-featured h2 { font-size: 24px; }
  .cat-wave { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  .cat-head { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .cat-icon { width: 42px; height: 42px; }
  .cat-icon svg { width: 26px; height: 26px; }
  .home-cat h2 { font-size: 18px; }
  .home-cat.cat-featured h2 { font-size: 24px; }
  .home-cat .cat-head p { font-size: 11.5px; }
  .home-cat .related a { padding: 10px 35px 10px 12px; font-size: 12.5px; }
  .home-cat .related a::after { right: 14px; }
}
