/* ============================================
   FamilyHome v3 — style.css
   共有スタイルシート（各ページの<style>タグが優先）
   ============================================ */

/* --- フォント --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;600;700;800;900&display=swap');

/* --- CSS変数 --- */
:root {
  --peach:      #FF7D50;
  --peach-dark: #E55A2B;
  --peach-light:#FFA07A;
  --peach-pale: rgba(255,125,80,0.08);
  --teal:       #2ECC8D;
  --line-green: #06C755;
  --cream:      #FFFBF4;
  --cream-mid:  #FFF5E8;
  --warm-white: #FDFCFB;
  --ink:        #1A1208;
  --text:       #2D2218;
  --text-muted: #6B5E52;
  --border:     #E8DDD0;
  --gray-light: #F5F0E8;
  --white:      #FFFFFF;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 6px 28px rgba(80,40,10,0.10);
  --shadow-lg:  0 16px 56px rgba(80,40,10,0.14);
  --transition: 0.26s cubic-bezier(0.4,0,0.2,1);
  --font:       'Noto Sans JP','Inter',sans-serif;
  --font-en:    'Inter',sans-serif;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* --- コンテナ --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* --- フェードアップ --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* --- ボタン --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg,var(--peach),var(--peach-light));
  color: #fff; box-shadow: 0 6px 24px rgba(255,125,80,0.40);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,125,80,0.50); }
.btn-outline { background: transparent; border: 2px solid var(--peach); color: var(--peach); }
.btn-outline:hover { background: var(--peach); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 6px 24px rgba(6,199,85,0.35); }
.btn-line:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* --- フローティングCTA --- */
.float-cta {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.float-cta.show { opacity: 1; pointer-events: auto; }

/* --- ヘッダー --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(255,251,244,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(80,50,20,0.10);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 32px;
  max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 24px; }
.logo-text { font-family: var(--font-en); font-size: 20px; font-weight: 500; color: var(--text); }
.logo-text strong { font-weight: 800; color: var(--peach); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.nav a:hover { color: var(--peach); }
.nav-line {
  display: flex; align-items: center; gap: 5px;
  background: var(--line-green); color: #fff !important;
  padding: 8px 16px; border-radius: 100px; font-weight: 700 !important;
}
.nav-cta {
  background: var(--peach); color: #fff !important;
  padding: 9px 20px; border-radius: 100px; font-weight: 700 !important;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; background: var(--cream);
  border-top: 1px solid var(--border); max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 520px; }
.mobile-menu a {
  padding: 14px 32px; color: var(--text-muted); font-size: 15px;
  font-weight: 500; border-bottom: 1px solid var(--border); display: block;
}
.mobile-menu a:hover { color: var(--peach); }
.mobile-cta {
  margin: 12px 24px;
  background: var(--peach) !important; color: #fff !important;
  text-align: center; border-radius: 100px !important;
  font-weight: 700 !important; border-bottom: none !important;
  padding: 14px 24px !important;
}

/* --- セクション共通 --- */
.section-head { text-align: center; margin-bottom: 60px; }
.section-label {
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 14px; display: block;
}
.section-title { font-size: clamp(24px,3.5vw,38px); font-weight: 900; line-height: 1.3; color: var(--text); }
.section-sub { font-size: 15px; color: var(--text-muted); margin-top: 16px; line-height: 1.9; }

/* --- フッター --- */
.footer { background: #2D2520; padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.8; margin-bottom: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.footer-col a:hover { color: var(--peach-light); }
.footer-bottom { padding: 20px 0; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.18); text-align: center; }

/* --- FAQ --- */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,125,80,0.30); }
.faq-item.open { border-color: var(--peach-light); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 24px; font-family: var(--font); font-size: 15px;
  font-weight: 700; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: var(--transition);
}
.faq-q:hover { color: var(--peach); }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--peach);
  transition: transform 0.25s; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--peach); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 24px; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.9; padding-bottom: 18px; }
.faq-item.open .faq-a { max-height: 500px; }

/* --- フォーム --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.req { font-size: 11px; color: var(--peach); margin-left: 4px; }
.form-ctrl {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 14px;
  color: var(--text); background: var(--warm-white); outline: none;
  transition: var(--transition);
}
.form-ctrl::placeholder { color: #C0B8B0; }
.form-ctrl:focus { border-color: var(--peach); background: var(--white); box-shadow: 0 0 0 3px rgba(255,125,80,0.12); }
textarea.form-ctrl { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; margin-bottom: 10px; }

/* --- 比較表 --- */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th { background: var(--gray-light); padding: 14px 16px; font-weight: 700; text-align: center; border: 1px solid var(--border); }
.compare-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: center; color: var(--text-muted); line-height: 1.5; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.th-best { background: linear-gradient(135deg,var(--peach),var(--peach-light)); color: #fff !important; }
.td-best { background: rgba(255,125,80,0.06); color: var(--peach-dark); font-weight: 700; }

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
}
