/* トップ専用。配色と共通部品は style.css のトークンを使う。 */
.home-main h1,
.home-main h2,
.home-main h3 {
  word-break: auto-phrase;
  text-wrap: balance;
}
.home-main p { word-break: auto-phrase; }
.home-main h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  font-weight: 800;
}
.home-main h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
.home-main h3 { font-size: 1.25rem; }
.home-intro {
  padding-block: 32px clamp(56px, 8vw, 112px);
  text-align: center;
}
.home-kicker {
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
}
.home-lead {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 1.125rem;
}
.home-actions,
.home-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}
.home-actions { margin-top: 24px; }
.home-badges {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.home-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-badges .icon { color: var(--primary); width: 20px; height: 20px; }
.home-compare { margin: 28px 0 0; }
.home-compare-grid { display: grid; gap: 16px; align-items: center; }
.home-view {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
}
.home-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}
.home-label-on { background: var(--primary); color: var(--on-primary); }
.home-view .home-label { margin-bottom: 10px; }
.home-view img { width: 100%; height: auto; border-radius: 12px; }
.home-arrow {
  position: relative;
  display: block;
  width: 24px;
  height: 28px;
  margin: auto;
  color: var(--primary);
}
.home-arrow::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  width: 2px;
  height: 26px;
  background: currentColor;
}
.home-arrow::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.home-compare figcaption {
  max-width: 820px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.home-section { padding-block: clamp(56px, 8vw, 112px); }
.home-section h2 { margin-bottom: 28px; }
.home-surface { background: var(--surface); }
.home-feature { display: grid; gap: 24px; align-items: center; margin-top: 48px; }
.home-feature-copy p { margin-top: 16px; }
.home-image-face {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 16px clamp(16px, 3vw, 32px);
  background: var(--primary-soft);
  border-radius: 20px;
}
.home-shot { width: 100%; max-width: 320px; height: auto; border-radius: 12px; }
.home-shot-wide { max-width: 480px; }
.home-steps {
  display: grid;
  gap: 20px;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}
.home-steps li {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  counter-increment: home-step;
}
.home-steps li::before {
  content: counter(home-step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.home-steps .store-status { margin-top: 16px; }
.home-how-after { max-width: 40em; margin: 28px 0 0; }
.home-how-after .button { margin-top: 20px; }
.home-trust,
.home-contact {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.home-trust { background: var(--bg); }
.home-trust-grid { display: grid; gap: 28px; margin-top: 28px; padding: 0; list-style: none; }
.home-trust-grid li { min-width: 0; }
.home-trust-grid h3 { display: flex; align-items: baseline; gap: 8px; }
.home-trust-grid .icon { color: var(--primary); flex-shrink: 0; align-self: flex-start; margin-top: 4px; }
.home-trust-grid p { margin-top: 12px; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.home-links a,
.home-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.home-section-lead { max-width: 820px; margin-block: 20px 28px; }
.home-plans {
  display: grid;
  gap: 20px 32px;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  list-style: none;
}
.home-plans > div { min-width: 0; }
.home-plans dt { font-weight: 700; }
.home-plans dd { margin: 6px 0 0; }
.home-main .home-plans-title { font-size: 1.125rem; }
.home-questions { max-width: 880px; margin-inline: auto; }
.home-question { border-bottom: 1px solid var(--line); }
.home-question:first-child { border-top: 1px solid var(--line); }
.home-question summary {
  position: relative;
  min-height: 44px;
  padding: 20px 44px 20px 0;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}
.home-question summary::-webkit-details-marker { display: none; }
.home-question summary::before,
.home-question summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% - 1px);
  width: 16px;
  height: 2px;
  background: var(--primary);
}
.home-question summary::after { transform: rotate(90deg); }
.home-question[open] summary::after { transform: rotate(0); }
.home-question p { padding-bottom: 24px; }
.home-contact { max-width: 880px; margin-inline: auto; }
.home-contact p + p { margin-top: 20px; }
.home-contact ul { padding: 0; margin-top: 20px; list-style: none; }
.home-contact a { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .home-compare-grid { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 16px; }
  .home-arrow { transform: rotate(-90deg); }
  .home-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-nav li:last-child a { padding-inline-end: 0; }
}
@media (min-width: 900px) {
  .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .home-section h2 + .home-feature { margin-top: 32px; }
  .home-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .home-feature:nth-of-type(2) .home-feature-copy { grid-column: 2; grid-row: 1; }
  .home-feature:nth-of-type(2) .home-image-face { grid-column: 1; grid-row: 1; }
}
@media (min-width: 1024px) {
  .home-steps,
  .home-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-nav { display: block; }
  .home-nav li { display: none; }
  .home-nav li:has(a[href="#faq"]) { display: block; }
  .home-main .container { padding-inline: 16px; }
}

.home-badge-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.home-mobile-note {
  display: none;
  padding: 20px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
}
.home-mobile-note .button { margin-top: 16px; }
.home-view-image { position: relative; }
.home-view img { display: block; }
.home-mark {
  position: absolute;
  border: 2px dashed var(--mark);
  pointer-events: none;
}
.home-mark > span {
  position: absolute;
  top: 0;
  transform: translateY(-60%);
  left: -2px;
  padding: 0 5px;
  background: var(--mark);
  color: var(--on-mark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.home-mark-top { left: 4.12%; top: 16.04%; width: 91.62%; height: 8.75%; }
.home-mark-side { left: 71%; top: 50.62%; width: 24.62%; height: 30.21%; }
.home-compare-note { margin-top: 8px; color: var(--muted); font-size: 0.8125rem; }
.home-steps h3 { margin-bottom: 12px; }
.home-permission-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.home-trust > p,
.home-section-lead,
.home-question p,
.home-contact p { max-width: 40em; }
@media (min-width: 1280px) {
  .home-questions { margin-inline: 0; }
  /* 囲みの外枠を見出しとFAQの列の左端にそろえる。 */
  .home-contact { margin-inline: 0; }
}
/* 指で操作する端末（スマホ・タブレット）には拡張機能を入れられないので、幅にかかわらず送る道を出す */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .home-mobile-note { display: block; }
}
@media (prefers-color-scheme: dark) {
  .home-view img, .home-shot { filter: brightness(.85); border: 1px solid var(--line); }
}

/* 審査中の表示が2行に折れる幅では、箱が横いっぱいに広がって時計の印だけが左端に離れる。
   折れた2行をそれぞれ中央にそろえ、時計の印は1行目の頭に置く */
@media (max-width: 767px) {
  .home-actions .store-status {
    display: block;
    text-align: center;
  }
  .home-actions .store-status .icon {
    display: inline-block;
    margin-right: 6px;
    vertical-align: -0.25em;
  }
}

.home-link-arrow { width: 16px; height: 16px; }
.home-badges .home-link-arrow { width: 16px; height: 16px; }
.home-permission-link { gap: 8px; }
.home-pick-sequence { flex-direction: column; gap: 16px; }
.home-shot-menu { max-width: 300px; }
.home-pick-arrow { transform: none; }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .home-actions .button-primary { background: transparent; color: var(--primary); }
  .home-actions .button-primary:hover { background: var(--primary-soft); border-color: var(--primary); }
  .home-mobile-note .button { background: var(--primary); color: var(--on-primary); }
  .home-mobile-note .button:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
}

/* 3周目の採点のあとの仕上げ */
.home-mobile-note { max-width: 560px; margin-inline: auto; }
.home-main p { text-wrap: pretty; text-spacing-trim: trim-start; }
.home-main h1, .home-main h2 { font-feature-settings: "palt"; }
/* 比較の画像の下端は文の行の途中で切れるので、薄くぼかして終わらせる */
.home-view-image img {
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, #000 86%, transparent);
}
.home-permission-note { margin-top: 20px; }
.home-permission-note .home-permission-link { margin-top: 0; margin-left: 4px; vertical-align: middle; }
