/* ============================================
   ミールエイドMerak - 共通スタイル
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --orange:       #E8572A;
  --orange-hover: #C94520;
  --orange-light: #FFF3EE;
  --dark:         #1C1917;
  --body:         #44403C;
  --muted:        #78716C;
  --border:       #E7E5E4;
  --bg:           #FAFAF9;
  --white:        #FFFFFF;
  --section-gap: 96px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,87,42,.3);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

/* ── ヘッダー ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo-text-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .7rem;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: -2px;
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--body);
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--orange-light);
  color: var(--orange);
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 22px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px);
}

/* ハンバーガー（SP） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ── ページ共通ヒーロー ── */
.page-hero {
  margin-top: 72px;
  padding: 80px 0 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 20px;
}
.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--body);
  line-height: 1.9;
}

/* ── セクション共通 ── */
section { padding: var(--section-gap) 0; }

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--orange);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.9;
  max-width: 600px;
}
.section-center { text-align: center; }
.section-center .section-lead { margin: 0 auto; }

/* ── カード ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--orange-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 1.5rem;
}
.card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

/* ── 統計数字 ── */
.stat-number {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
}
.stat-label {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* ── CTA セクション ── */
.cta-section {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ── フッター ── */
.site-footer {
  background: #111110;
  color: rgba(255,255,255,.6);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.9; }
.footer-nav h4, .footer-contact h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .06em;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-nav a:hover { color: var(--orange); }
.footer-contact p { font-size: .88rem; margin-bottom: 8px; }
.footer-contact a { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
}

/* ── フォーム ── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-label .required {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-label .optional {
  display: inline-block;
  background: #E7E5E4;
  color: var(--muted);
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,87,42,.12);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.8; }

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
  }
  .site-nav.open .nav-cta { margin-left: 0; margin-top: 8px; }
  .hamburger { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
