/* ミズハレ住まいケア（架空）LP — style.css
   仕様：01_支給素材/仕様書_デザイン.md に準拠 */

:root {
  --primary: #0E7C86;
  --primary-dark: #0A5C64;
  --tint: #E6F3F4;
  --tint-soft: #F4F9F9;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --text: #1F2A2E;
  --muted: #50626A;
  --border: #D5E3E5;
  --bar: #1F2A2E;
  --field-border: #6B7F86;
  --error: #B91C1C;
  --white: #FFFFFF;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --gutter: 20px;
  --section-pad: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.8; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--white); color: var(--text); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible, .notice :focus-visible { outline-color: var(--white); }
.btn--primary:focus-visible, .btn--header:focus-visible { outline-color: var(--text); }

/* 告知バー */
.notice { background: var(--bar); color: var(--white); font-size: 12px; line-height: 1.5; text-align: center; padding: 8px var(--gutter); }

/* ヘッダー */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--border); background: var(--white); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 700; text-decoration: none; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--field-border); border-radius: 8px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.js .menu-btn { display: flex; }
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after { display: block; width: 20px; height: 2px; background: var(--text); content: ""; transition: transform .2s, opacity .2s; }
.menu-btn__lines { position: relative; }
.menu-btn__lines::before { position: absolute; top: -7px; }
.menu-btn__lines::after { position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-7px) rotate(-45deg); }

.global-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 20px; box-shadow: 0 8px 16px rgba(31, 42, 46, .08); }
.js .global-nav { display: none; }
.js .global-nav.is-open { display: block; }
.global-nav li { border-bottom: 1px solid var(--border); }
.global-nav li:last-child { border-bottom: 0; padding-top: 16px; }
.global-nav a:not(.btn) { display: block; padding: 14px 0; color: var(--text); font-weight: 500; text-decoration: none; }

/* ボタン */
.btn { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 32px; border: 2px solid transparent; border-radius: 28px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--outline { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--tint); }
.btn--header { height: 44px; padding: 0 24px; border-width: 0; border-radius: 22px; font-size: 15px; background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--header:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--block { width: 100%; font-size: 14px; }

/* メインビジュアル */
.hero { background: var(--tint-soft); padding: 40px var(--gutter) 48px; }
.hero__inner { display: flex; flex-direction: column; gap: 32px; max-width: 1120px; margin: 0 auto; }
.pill { display: inline-block; margin-bottom: 20px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--primary-dark); font-size: 13px; font-weight: 700; line-height: 1.5; }
.hero h1 { margin-bottom: 24px; font-size: 28px; line-height: 1.45; font-weight: 700; }
.hero__lead { margin-bottom: 32px; font-size: 16px; }
.hero__btn { width: 100%; }
.note { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badges li { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--primary-dark); font-size: 13px; font-weight: 700; line-height: 1.5; }
.badges img { width: 16px; height: 16px; }
.hero__pic img { width: 100%; max-width: 560px; margin: 0 auto; }

/* 共通セクション */
.section { padding: var(--section-pad) var(--gutter); }
.section--soft { background: var(--tint-soft); }
.section--dark { background: var(--primary-dark); color: var(--white); }
.container { max-width: 1120px; margin: 0 auto; }
.section-head { margin-bottom: 32px; text-align: center; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; }
.section--dark .eyebrow { color: var(--white); }
.section-head h2 { margin-top: 8px; font-size: 24px; line-height: 1.5; font-weight: 700; }
.section-head__lead { max-width: 720px; margin: 16px auto 0; color: var(--muted); font-size: 15px; text-align: center; }
.section--dark .section-head__lead { color: var(--white); }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.card__icon { width: 64px; height: 64px; margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.5; font-weight: 700; }

/* 料金 */
.plan { position: relative; display: flex; flex-direction: column; }
.plan--popular { border: 2px solid var(--primary); }
.plan__badge { position: absolute; top: -14px; right: 20px; padding: 2px 14px; border-radius: 999px; background: var(--primary); color: var(--white); font-size: 13px; font-weight: 700; line-height: 1.7; }
.price { margin: 8px 0 12px; line-height: 1.3; }
.price__num { color: var(--primary-dark); font-size: 34px; font-weight: 700; }
.price__unit { font-size: 16px; font-weight: 700; }
.price small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.plan__list { flex: 1; margin: 20px 0 24px; }
.plan__list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.plan__list img { flex: none; width: 20px; height: 20px; margin-top: 5px; }
.notes { margin-top: 32px; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* 流れ */
.steps { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border); }
.steps li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.steps__num { display: flex; flex: none; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 22px; font-weight: 700; }
.steps__label { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.steps h3 { margin: 2px 0 6px; font-size: 18px; line-height: 1.5; font-weight: 700; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.qa { margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.qa summary { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px; font-weight: 700; line-height: 1.6; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { margin-left: auto; flex: none; color: var(--primary); font-size: 22px; line-height: 1.3; content: "＋"; }
.qa[open] summary::after { content: "−"; }
.qa__mark { flex: none; color: var(--primary); font-size: 20px; }
.qa__a { padding: 0 24px 22px 56px; }

/* フォーム */
.form { max-width: 720px; margin: 0 auto; padding: 24px; border-radius: 16px; background: var(--white); color: var(--text); }
.demo-note { margin-bottom: 24px; padding: 12px 16px; border: 2px solid var(--accent); border-radius: 10px; color: var(--accent-dark); font-size: 14px; font-weight: 700; line-height: 1.7; }
.field { margin-bottom: 20px; }
.field label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.req, .opt { padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 400; line-height: 1.7; }
.req { background: var(--accent); color: var(--white); }
.opt { border: 1px solid var(--field-border); background: var(--white); color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { display: block; width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 8px; background: var(--white); color: var(--text); font-family: inherit; font-size: 16px; }
.field textarea { height: 140px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field select { appearance: auto; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 1px; border-color: var(--primary-dark); }
.field .is-invalid { border-color: var(--error); border-width: 2px; }
.err { margin-top: 6px; color: var(--error); font-size: 14px; font-weight: 700; line-height: 1.6; }
.field--check { margin: 4px 0 24px; }
.field--check label.check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 400; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--primary-dark); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--tint-soft); cursor: not-allowed; }
.btn:disabled { opacity: .75; cursor: not-allowed; }
.demo-result { margin-top: 20px; padding: 16px; border: 2px solid var(--primary-dark); border-radius: 10px; background: var(--tint-soft); font-weight: 700; }
.demo-result:focus-visible { outline: 3px solid var(--primary-dark); }

/* フッター */
.site-footer { background: var(--bar); color: var(--white); padding: 40px var(--gutter) 28px; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; }
.site-footer__row { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.9; }
.site-footer a { color: var(--white); }
.site-footer__links a { display: block; }
.site-footer__name { margin-bottom: 8px; font-size: 18px !important; font-weight: 700; line-height: 1.8; }
.privacy { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--muted); }
.privacy h2 { margin-bottom: 6px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.site-footer .copyright { margin-top: 24px; color: var(--border); font-size: 12px; }
.site-footer .copyright small { font-size: inherit; }

/* ---------- タブレット以上（768px〜） ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-pad: 72px; }
  body { font-size: 16px; }
  .notice { font-size: 13px; line-height: 36px; padding-top: 0; padding-bottom: 0; }
  .site-header { height: 72px; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 40px; line-height: 1.4; }
  .hero__lead { font-size: 18px; }
  .hero__btn { width: 320px; }
  .note { font-size: 13px; }
  .section-head { margin-bottom: 40px; }
  .eyebrow { font-size: 13px; }
  .section-head h2 { font-size: 32px; }
  .section-head__lead { font-size: 16px; }
  .card { padding: 32px; border-radius: 16px; }
  .card h3 { font-size: 20px; }
  .price__num { font-size: 40px; }
  .notes { font-size: 13px; }
  .steps h3 { font-size: 20px; }
  .form { padding: 40px; }
  .btn--block { font-size: 16px; }
  .site-footer { padding-top: 56px; padding-bottom: 32px; }
  .hero__pic img { margin: 0; }
}

/* ---------- ナビを横並びにする幅（1024px〜） ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 0px; --section-pad: 96px; }
  .site-header { padding: 0 max(32px, calc((100% - 1120px) / 2)); }
  .menu-btn { display: none !important; }
  .global-nav, .js .global-nav { position: static; display: block; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .global-nav ul { display: flex; align-items: center; gap: 32px; }
  .global-nav li, .global-nav li:last-child { padding: 0; border: 0; }
  .global-nav a:not(.btn) { padding: 0; font-size: 15px; }
  .hero { padding: 80px max(32px, calc((100% - 1120px) / 2)) 88px; }
  .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; max-width: none; }
  .hero h1 { font-size: 40px; }
  .hero__pic img { width: 100%; max-width: 520px; margin-left: auto; }
  .section { padding-left: max(32px, calc((100% - 1120px) / 2)); padding-right: max(32px, calc((100% - 1120px) / 2)); }
  .section-head { margin-bottom: 48px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .site-footer { padding-left: max(32px, calc((100% - 1120px) / 2)); padding-right: max(32px, calc((100% - 1120px) / 2)); }
  .site-footer__row { flex-direction: row; gap: 48px; }
}

/* ---------- カンプ寸法の幅（1280px〜） ---------- */
@media (min-width: 1280px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 520px; gap: 80px; }
  .hero h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
