/* ===== リセット・基本 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== カラー変数 ===== */
:root {
  --primary: #1a3a5c;
  --primary-light: #2a5285;
  --accent: #c8973e;
  --gray-bg: #f5f7fa;
  --text: #333;
  --text-light: #666;
  --border: #e0e6ed;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== コンテナ ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-ja {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.logo-en {
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ===== ナビ（PC） ===== */
.nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav ul li a {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav ul li a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-btn:hover {
  background: var(--primary-light) !important;
}

/* ===== ハンバーガー（スマホ） ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5285 50%, #1a3a5c 100%);
  overflow: hidden;
  padding-top: 64px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(200,151,62,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 60px 0;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.85);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #b5852e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,151,62,0.4);
}

.btn-wide {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

/* ===== セクション共通 ===== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-bg);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== カード ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ===== メッセージ ===== */
.message-box {
  max-width: 680px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.message-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
}

.message-sign {
  margin-top: 28px;
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ===== エリア ===== */
.area-box {
  max-width: 560px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.area-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.area-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.area-box p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.required {
  background: #e53e3e;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn-wide {
  display: block;
  margin: 8px auto 0;
}

/* ===== フッター ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 16px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-info p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ===== レスポンシブ（スマホ） ===== */
@media (max-width: 768px) {
  /* ナビ */
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav ul li:last-child a {
    border-bottom: none;
  }

  .nav-btn {
    background: none !important;
    color: var(--primary) !important;
    padding: 14px 24px !important;
    border-radius: 0 !important;
  }

  /* ヒーロー */
  .hero-title {
    font-size: 1.8rem;
  }

  /* カード */
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* セクション */
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* メッセージ */
  .message-box {
    padding: 32px 24px;
  }

  /* エリア */
  .area-box {
    padding: 36px 24px;
  }

  /* フォーム */
  .contact-form {
    padding: 32px 20px;
  }

  /* フッター */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}
