/* ==========================================================================
   layout.css — container・section・header・footer
   全ページで必ず読み込む
   ========================================================================== */

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

/* ===== SECTION ===== */
.section {
  padding: var(--section-padding) 0;
  background: linear-gradient(170deg, #fafaf8 0%, #f3f2ef 100%);
}

.section--gray {
  background: linear-gradient(170deg, #efeeeb 0%, #e8e7e3 100%);
}

/* ── Navy Dark: 紺の濃い背景・白テキスト（インパクトセクション用） ── */
.section--navy {
  background: linear-gradient(170deg, #0f1629 0%, #1a2744 100%);
  color: #fff;
}

.section--navy .section-title {
  color: #fff;
}

.section--navy .section-title span {
  color: #c8973e;
}

.section--navy .section-title::after {
  background: #c8973e;
}

.section--navy .section-lead {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Navy Light: 淡い紺トーン ── */
.section--navy-light {
  background: linear-gradient(170deg, #eef1f8 0%, #e4e9f4 100%);
}

/* ── Gold Light: 淡いゴールドトーン ── */
.section--gold-light {
  background: linear-gradient(170deg, #faf6ed 0%, #f5efe0 100%);
}

/* ── Green Light: 淡いグリーントーン ── */
.section--green-light {
  background: linear-gradient(170deg, #eef5ee 0%, #e5f0e5 100%);
}

/* ===== HEADER ===== */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.header-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.header-logo a {
  color: var(--color-brand);
}

.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-sub);
}

.header-nav a:hover {
  color: var(--color-brand);
}

.header-nav a.header-cta {
  background: var(--color-cta);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-nav a.header-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(48, 117, 47, 0.35);
  opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-brand);
  color: #fff;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  margin-bottom: 48px;
  max-width: 480px;
}

.footer-section {
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-section-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
}

#footer-areas .footer-links {
  grid-template-columns: repeat(6, 1fr);
}

#footer-needs .footer-links,
#footer-info .footer-links {
  grid-template-columns: repeat(5, 1fr);
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.footer-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header .container {
    height: 60px;
  }

  .header-logo {
    font-size: 20px;
  }

  .header-nav {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-links,
  #footer-areas .footer-links,
  #footer-needs .footer-links,
  #footer-info .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
