/* =====================
   カラートーン（薄めブルー）
===================== */
:root {
  --main: #518bd0;
  /* メインブルー */
  --main-dark: #1c49aa;
  /* 濃いブルー */
  --bg: #A8B8D8;
  /* 全体背景 */
  --accent: #8B9DC3;
  /* セクション背景 */
  --herobg: #afbbd4;
  /* セクション背景 */
  --text: #1f2937;
  --gray: #6b7280;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* font-family: 'Noto Sans JP', sans-serif; */
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* =====================
   共通レイアウト
===================== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 120px 0;
  /* 基本セクション */
  background: var(--white);
  position: relative;
  overflow: hidden;

  /* アニメーション初期状態 */
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示されたら有効化 */
.section.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 重要セクション（業務内容・選ばれる理由など） */
.section-main {
  padding: 160px 0;
}

/* 軽めセクション（FAQ・事務所概要など） */
.section-sub {
  padding: 96px 0;
}

.section-alt {
  background: var(--accent);
}

.section-alt {
  background: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.4;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 32px;
}

/* =====================
   ヘッダー
===================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  font-family: 'Zen Maru Gothic', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo img {
  height: 36px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  /* リンクとボタンの高さを揃えるために追加 */
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav-cta {
  background: var(--main);
  color: var(--white) !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.nav-cta:hover {
  background: var(--main-dark);
}

.menu-toggle {
  display: none;
}

/* =====================
   Hero（余白・文字サイズ調整・センター寄り）
===================== */
.hero {
  padding: 120px 0 140px;
  background: linear-gradient(135deg, var(--herobg), var(--bg));
  position: relative;
  text-align: center;
  /* テキストをセンター寄りに */
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30vw;
  right: -10vw;
  width: 60vw;
  height: 60vw;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20vw;
  left: -5vw;
  width: 50vw;
  height: 50vw;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 24px;
}

.hero h1 span,
.hero-lead span {
  display: inline-block;
  color: white;
}

.hero h1 .hero-highlight {
  color: var(--main-dark) !important;
}

.hero-lead {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--gray);
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  color: #fff;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;

  /* Heroボタン遅延アニメーション */
  opacity: 0;
  transform: translateY(20px);
  animation: heroBtnFade 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes heroBtnFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   カード・グリッド（ベスト案：構造センター＋本文左）
===================== */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}


.card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  /* カード全体はセンター */

  /* カード用アニメーション初期状態 */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ホバーで1px浮かせる */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 12px;
}

.card p,
.card ul {
  text-align: left;
  /* 本文は左揃えで読みやすく */
}



.card-faq p {
  color: var(--gray);
  font-size: 0.95rem;
}




/* =====================
   スマホ対応
===================== */
@media (max-width: 768px) {

  h2 {
    text-align: center;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 0 100px;
  }

  .hero h1 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .pc-br {
    display: none;
  }

  /* ドロワーメニュー */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    padding: 100px 24px 24px;
    flex-direction: column;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav.open {
    right: 0;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =====================
   フッター（左寄せ・2段構成）
 ===================== */
.site-footer {
  background: var(--white);
  padding: 60px 0 40px;
  border-top: 1px solid #e5e7eb;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-office-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text) !important;
}

.footer-tel {
  font-size: 1rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
}

.site-footer p,
.site-footer small {
  color: var(--gray);
  margin: 0;
}