/* ============================================
   Variant A: 家族安心型
   Palette: sage green + ivory + warm text
   ============================================ */

:root {
  --color-primary: #8ac896;       /* bright natural green */
  --color-primary-dark: #5a9068;
  --color-accent: #ffcf7a;        /* sunny yellow */
  --color-accent-warm: #ffa870;   /* warm peach for hover/highlights */
  --color-bg: #fefbf2;            /* warm ivory */
  --color-bg-alt: #fff1d0;        /* sunny warm bg */
  --color-text: #2d3a33;
  --color-text-soft: #5a6660;
  --color-border: #e8dfc4;
  --font-sans: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(45, 58, 51, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 700; font-size: 18px; color: var(--color-text); }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--color-text-soft); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.tel-mini {
  font-weight: 700;
  background: var(--color-primary);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
}
.tel-mini:hover { background: var(--color-primary-dark); text-decoration: none; }
.form-mini {
  font-weight: 700;
  background: var(--color-accent);
  color: #3a2b16;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
}
.form-mini:hover { background: var(--color-accent-warm); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/exterior.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.88);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  /* ニュートラルな暗色オーバーレイ（テキスト可読性のため最小限） */
  background: linear-gradient(135deg, rgba(30,38,34,0.30) 0%, rgba(30,38,34,0.50) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding: 80px 24px; color: white; }
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.4;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero p.lead {
  font-size: clamp(15px, 2vw, 18px);
  max-width: 640px;
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
  font-weight: 500;
}
.hero p.lead-sub {
  font-size: clamp(13px, 1.6vw, 15px);
  max-width: 640px;
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
  opacity: 0.92;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--color-accent); color: #3a2b16; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 6px 28px rgba(0,0,0,0.15); }
.btn-secondary { background: white; color: var(--color-primary-dark); box-shadow: var(--shadow); }
.btn-secondary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}
.btn-ghost:hover { background: var(--color-primary); color: white; text-decoration: none; }

.hero-badges {
  margin-top: 28px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-badges span {
  background: rgba(255,255,255,0.92);
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Section base ---------- */
section { padding: 80px 0; }
section.alt { background: var(--color-bg-alt); }

.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.5;
  margin-bottom: 10px;
}
.section-heading p { color: var(--color-text-soft); font-size: 15px; }
.section-heading .eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ---------- Worries ---------- */
.worries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.worry-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-primary);
}
.worry-card .q {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}
.worry-card p { color: var(--color-text-soft); font-size: 14px; }

.worries-answer {
  margin-top: 48px;
  text-align: center;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-text);
  font-weight: 700;
}
.worries-answer span { background: linear-gradient(transparent 60%, #f5e4c1 60%); padding: 0 4px; }

/* ---------- Stance ---------- */
.stance-photo {
  max-width: 960px;
  margin: 0 auto 40px;
}
.stance-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.stance-list {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

/* SEO・アクセシビリティ用：視覚的に非表示にしつつ検索エンジン/スクリーンリーダーには認識させる（WCAG準拠の sr-only パターン） */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 改行制御：このスパン内では改行されず、スパンの境界で折り返される */
.nowrap { display: inline-block; }

.stance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.stance-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stance-list { display: grid; gap: 20px; }
.stance-list li {
  list-style: none;
  padding-left: 44px;
  position: relative;
}
.stance-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.stance-list h3 { font-size: 17px; margin-bottom: 4px; }
.stance-list p { color: var(--color-text-soft); font-size: 14px; }

/* ---------- Daily flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.flow-item {
  background: white;
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.flow-item .time {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}
.flow-item .act { font-size: 14px; color: var(--color-text); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text-soft);
  font-weight: 600;
}

/* ---------- Track Record（平野の運営実績） ---------- */
.track-record .record-narrative {
  max-width: 720px;
  margin: 0 auto 40px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  border-left: 6px solid var(--color-primary);
}
.track-record .record-narrative p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
}
.track-record .record-narrative p + p {
  margin-top: 14px;
}
.track-record .record-narrative strong {
  color: var(--color-primary-dark);
  font-weight: 700;
  background: linear-gradient(transparent 60%, #fff1d0 60%);
  padding: 0 2px;
}
@media (max-width: 600px) {
  .track-record .record-narrative { padding: 22px 22px; margin-bottom: 28px; }
  .track-record .record-narrative p { font-size: 14px; line-height: 1.95; }
  .track-record .record-narrative br { display: none; }
}

.track-record .record-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.track-record .record-stat {
  background: white;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-primary);
}
.track-record .record-stat .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-feature-settings: 'tnum';
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.track-record .record-stat .num .unit {
  font-size: 18px;
  font-weight: 700;
  margin-left: 4px;
  color: var(--color-text-soft);
}
.track-record .record-stat .label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-soft);
  font-weight: 600;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .track-record .record-stats { grid-template-columns: 1fr; gap: 14px; max-width: 320px; }
  .track-record .record-stat { padding: 24px 18px; }
  .track-record .record-stat .num { font-size: 34px; }
}

/* ---------- Cost ---------- */
.cost-table {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}
.cost-table dl { display: grid; grid-template-columns: 1fr 1fr; }
.cost-table dt, .cost-table dd {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cost-table dt { background: var(--color-bg-alt); font-weight: 600; }
.cost-table dd { text-align: right; font-feature-settings: 'tnum'; font-weight: 600; }
.cost-table .total dt, .cost-table .total dd {
  background: var(--color-primary);
  color: white;
  font-size: 17px;
  border-bottom: none;
}
.cost-note {
  text-align: center;
  margin-top: 20px;
  color: var(--color-text-soft);
  font-size: 14px;
}
.cost-note strong { color: var(--color-primary-dark); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--color-text-soft); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: 'Q';
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.faq details[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-a {
  padding: 18px 24px 22px 70px;
  color: var(--color-text-soft);
  font-size: 15px;
}

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}
.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}
.access-info {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.access-info dl { display: grid; gap: 14px; margin-bottom: 22px; }
.access-info dt {
  font-size: 12px;
  color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.access-info dd { font-size: 15px; color: var(--color-text); line-height: 1.7; }

@media (max-width: 860px) {
  .access-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA block ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 64px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-block h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  margin-bottom: 12px;
  color: white;
}
.cta-block p { margin-bottom: 28px; opacity: 0.95; }
.cta-block .btn-primary { background: white; color: var(--color-primary-dark); }
.cta-block .btn-primary:hover { background: #fff8e0; }
.cta-tel {
  display: block;
  margin-top: 24px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: white;
  font-feature-settings: 'tnum';
}
.cta-tel small { display: block; font-size: 13px; font-weight: 400; opacity: 0.9; margin-top: 4px; }

/* ---------- Form ---------- */
.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form .lbl { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.contact-form .lbl .req { color: #c94040; font-size: 12px; margin-left: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--color-bg);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .submit-row { margin-top: 8px; text-align: center; }
.contact-form .privacy-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: 8px;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.form-success {
  display: none;
  background: #e8f3ec;
  color: var(--color-primary-dark);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  margin-top: 20px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2d3a33;
  color: #d8dcd8;
  padding: 48px 0 24px;
  font-size: 14px;
}
.site-footer h4 { color: white; font-size: 15px; margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer a { color: #d8dcd8; }
.site-footer dl dt { color: #9caaa3; font-size: 12px; margin-top: 10px; }
.site-footer dl dd { color: white; }
.copy {
  padding-top: 24px;
  border-top: 1px solid #3e4b44;
  text-align: center;
  font-size: 12px;
  color: #9caaa3;
}

/* ---------- Floating phone ---------- */
.float-tel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  background: var(--color-accent);
  color: #3a2b16;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  display: none;
}
.float-tel:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stance-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 56px 0; }
  .contact-form { padding: 28px 20px; }
  .header-cta { gap: 6px; }
  .header-cta .tel-mini, .header-cta .form-mini { font-size: 12px; padding: 8px 12px; }
  .brand { font-size: 15px; }
  .brand small { font-size: 10px; }
  .float-tel { display: inline-block; }
}

/* スマホ向け（≤600px） */
@media (max-width: 600px) {
  /* ヘッダーのブランド表示を短く（プレフィックスとサブを非表示） */
  .brand-prefix { display: none; }
  .brand small { display: none; }
  .brand { font-size: 14px; }

  /* OUR STANCE画像をスマホでは「笑顔の人物部分」だけ大きくクロップ表示。
     画像内の文字（タイトル・3カード・サムネイル）は隠す。情報はHTMLのstance-listで読める */
  .stance-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    background-image: url('assets/stance-photo.png');
    background-size: 280% auto; /* 2.8倍に拡大、2人がバランス良く収まる */
    background-position: 72% 28%;
    background-repeat: no-repeat;
  }
  /* スマホでは img タグは非表示（背景画像で代替） */
  .stance-photo img {
    display: none;
  }
  .stance-list { grid-template-columns: 1fr; gap: 18px; }
}
