/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B3A6B;
  --navy2:  #2C5282;
  --gold:   #C9A84C;
  --gold2:  #E5C76B;
  --white:  #FFFFFF;
  --bg:     #F5F7FA;
  --text:   #2D3748;
  --gray:   #718096;
  --light:  #E2E8F0;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(27,58,107,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
.sp-only { display: none; }

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

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy2);
  border-color: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,58,107,0.3);
}
.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-line:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-large { padding: 18px 60px; font-size: 16px; }

/* ===== ヘッダー ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light);
  transition: box-shadow 0.3s;
}
#header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  gap: 2px;
}
.logo .logo-mark {
  color: var(--navy);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 18px;
}
.logo .logo-text { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }

.nav-btn {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 700 !important;
}
.nav-btn::after { display: none !important; }
.nav-btn:hover {
  background: var(--navy2) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,58,107,0.25);
}

.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(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== ヒーロー ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.55) 0%, rgba(13,31,60,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  animation: fadeSlideIn 0.9s ease both;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title span {
  color: var(--gold);
  position: relative;
}
.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}
.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.8;
}
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  letter-spacing: 0.15em;
  margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-badge {
  position: absolute;
  bottom: 28px;
  left: -24px;
  background: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(27,58,107,0.15);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.badge-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.badge-num small { font-size: 16px; }
.badge-label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeSlideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}

/* ===== 実績数字 ===== */
.stats {
  background: var(--navy);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--gold);
}
.stat-unit { font-size: 18px; color: var(--gold); }
.stat-item p { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; }

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }
.section-bg { background: var(--bg); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-desc { color: var(--gray); font-size: 15px; }

/* ===== サービス ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(27,58,107,0.12);
  border-top-color: var(--gold);
}
.service-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #eef2ff, #dce8ff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon { font-size: 26px; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p { color: var(--gray); font-size: 14px; line-height: 1.9; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--navy2);
  font-weight: 700;
  font-size: 14px;
  transition: gap 0.2s, color 0.2s;
}
.card-link:hover { gap: 8px; color: var(--gold); }

/* ===== 選ばれる理由 ===== */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.reason-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform 0.3s;
}
.reason-item:hover { transform: translateY(-4px); }
.reason-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--light);
  line-height: 1;
  margin-bottom: 12px;
}
.reason-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.reason-item p { color: var(--gray); font-size: 14px; }

/* ===== ご利用の流れ ===== */
.flow-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.flow-step {
  text-align: center;
  flex: 1;
  max-width: 200px;
  padding: 0 12px;
}
.flow-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(27,58,107,0.2);
}
.flow-step h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--gray); }
.flow-arrow {
  font-size: 22px;
  color: var(--gold);
  padding-top: 20px;
  flex-shrink: 0;
}

/* ===== 会社概要 ===== */
.about-table-wrap { max-width: 700px; margin: 0 auto; }
.about-table { width: 100%; border-collapse: collapse; }
.about-table tr { border-bottom: 1px solid var(--light); }
.about-table th {
  width: 140px;
  padding: 18px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}
.about-table td { padding: 18px 16px; color: var(--text); font-size: 14px; }

/* ===== お問い合わせ ===== */
.contact-section {
  background: linear-gradient(135deg, #0d2247 0%, #1B3A6B 100%);
}
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500; }
.required {
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group select option { background: #1B3A6B; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.form-submit { text-align: center; margin-top: 8px; }
.contact-section .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.contact-section .btn-primary:hover {
  background: var(--gold2);
  border-color: var(--gold2);
}
.contact-success {
  display: none;
  text-align: center;
  color: var(--white);
  font-size: 17px;
  padding: 40px;
  line-height: 2;
}

/* ===== カードロゴ ===== */
.card-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
  align-items: center;
}
.card-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

/* ===== 代表挨拶 ===== */
.greeting-body {
  max-width: 720px;
  margin: 0 auto;
}
.greeting-text {
  font-size: 15px;
  line-height: 2.2;
  color: var(--gray);
  margin-bottom: 32px;
}
.greeting-quote {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin: 28px 0;
  background: rgba(201,168,76,0.06);
  border-radius: 0 8px 8px 0;
}
.greeting-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  margin-top: 32px;
}

/* ===== お知らせ ===== */
.news-list {
  max-width: 720px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--light);
}
.news-date {
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
}
.news-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(27,58,107,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.news-title {
  font-size: 14px;
  color: var(--navy);
}

/* ===== 企業理念 ===== */
.philosophy-body {
  text-align: center;
  padding: 40px 20px;
}
.philosophy-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.8;
  position: relative;
  display: inline-block;
}
.philosophy-text::before,
.philosophy-text::after {
  content: '—';
  color: var(--gold);
  font-weight: 400;
  margin: 0 16px;
}

/* ===== フッター ===== */
.footer { background: #0d1f3c; padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.footer-logo .logo-mark {
  color: var(--navy);
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 16px;
}
.footer-logo .logo-text { color: var(--white); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.55); font-size: 13px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; }

/* ===== アニメーション ===== */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim.visible { opacity: 1; transform: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .reason-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .flow-grid { flex-direction: column; align-items: center; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }

  /* 住所改行 */
  .sp-only { display: block; }

  /* 企業理念 */
  .philosophy-body { padding: 20px 0; }
  .philosophy-text { font-size: clamp(0.75rem, 3.5vw, 1.05rem); letter-spacing: 0.01em; white-space: nowrap; }
  .philosophy-text::before,
  .philosophy-text::after { margin: 0 8px; }

  /* ヒーロー */
  .hero-bg-img { object-position: center center; }
  .hero-content { padding: 60px 24px; }
  .hero-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero-btns .btn { padding: 12px 24px; font-size: 14px; }

  /* サービスカード */
  .service-card { padding: 28px 20px; }

  /* 会社概要テーブル */
  .about-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .about-table th { width: 90px; padding: 14px 10px; }
  .about-table td { padding: 14px 10px; }

  /* お知らせ */
  .news-item { flex-wrap: wrap; gap: 6px; }
  .news-title { width: 100%; }

  /* フォーム */
  .btn-large { padding: 16px 32px; font-size: 15px; width: 100%; }

  /* フッター */
  .footer-nav { gap: 14px; }
}
