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

:root {
  --primary: #1a1a2e;
  --accent:  #e94560;
  --accent2: #0f3460;
  --gray-50: #f8f9fa;
  --gray-100:#f1f3f5;
  --gray-300:#dee2e6;
  --gray-500:#adb5bd;
  --gray-700:#495057;
  --gray-900:#212529;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --header-h: 60px;
  --transition: .25s ease;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== ヘッダー ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(26,26,46,.92);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.25); }

.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-size: .85rem; font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.3;
  max-width: 160px;
}

/* ハンバーガー */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ナビ */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(26,26,46,.97);
  padding: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding var(--transition);
}
.nav.nav-open { max-height: 400px; padding: 16px 0; }

.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: block; padding: 14px 24px;
  color: var(--white); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.08); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(26,26,46,.72) 0%, rgba(15,52,96,.65) 60%, rgba(22,33,62,.72) 100%),
    url('/static/hero.jpg') center center / cover no-repeat;
  padding: calc(var(--header-h) + 48px) 16px 64px;
  text-align: center;
}

.hero-content { position: relative; z-index: 1; max-width: 560px; }

.hero-sub {
  font-size: .85rem; color: rgba(255,255,255,.7);
  margin-bottom: 20px; line-height: 1.8;
}

.hero-title {
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: .03em;
}

.hero-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 50px;
  font-size: .95rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  min-width: 200px;
}
.btn-primary {
  background: var(--accent); color: var(--white);
}
.btn-primary:hover { background: #c73652; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

.btn-full { width: 100%; }

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

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

.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700; color: var(--primary);
  margin-bottom: 12px;
}
.section-desc {
  font-size: .9rem; color: var(--gray-700); line-height: 1.8;
}

/* ===== 会社概要 ===== */
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-table { width: 100%; border-collapse: collapse; }
.about-table th,
.about-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
  vertical-align: top;
  text-align: left;
}
.about-table tr:last-child th,
.about-table tr:last-child td { border-bottom: none; }

.about-table th {
  width: 36%;
  background: var(--gray-50);
  color: var(--gray-700); font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
}

.business-list li {
  padding-left: 14px; position: relative;
  font-size: .88rem; margin-bottom: 4px;
}
.business-list li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}

/* ===== サービス ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.14); }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
}

.service-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.service-desc  { font-size: .85rem; color: var(--gray-700); margin-bottom: 14px; }

.service-list li {
  font-size: .85rem;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ===== お問い合わせ ===== */
.contact-methods {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.contact-method:hover { box-shadow: var(--shadow); border-color: var(--accent); }

.contact-method-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}

.contact-method-label { font-size: .75rem; color: var(--gray-500); margin-bottom: 2px; }
.contact-method-value {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 2px;
}
.contact-email { font-size: .9rem; word-break: break-all; }
.contact-method-note { font-size: .78rem; color: var(--gray-500); }

/* フォーム */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
}

.form-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; color: var(--primary); }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .85rem; font-weight: 700;
  color: var(--gray-700); margin-bottom: 6px;
}
.required { color: var(--accent); margin-left: 2px; }

.form-input {
  display: block; width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem; color: var(--gray-900);
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(15,52,96,.12);
}
.form-input::placeholder { color: var(--gray-500); }

.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

/* 送信完了 */
.form-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
  padding: 48px 16px;
}
.form-success-icon {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.8rem; font-weight: 700;
}
.form-success p { font-size: .95rem; line-height: 1.8; color: var(--gray-700); }

/* ===== フッター ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
  text-align: center;
}
.footer-logo {
  font-size: .95rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.footer-address { font-size: .78rem; line-height: 1.8; margin-bottom: 12px; }
.footer-copy    { font-size: .72rem; }

/* ===== タブレット (600px+) ===== */
@media (min-width: 600px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
  .contact-methods { grid-template-columns: 1fr 1fr; }
  .about-table th { width: 30%; }
  .contact-form-card { padding: 36px 32px; }
}

/* ===== デスクトップ (900px+) ===== */
@media (min-width: 900px) {
  :root { --header-h: 68px; }

  /* ヘッダー：ハンバーガー非表示、水平ナビ */
  .nav-toggle { display: none; }
  .nav {
    position: static; max-height: none; overflow: visible;
    background: none; padding: 0;
    transition: none;
  }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-link {
    padding: 8px 14px; border-radius: 6px;
    border-bottom: none; font-size: .9rem;
  }
  .nav-link:hover { background: rgba(255,255,255,.12); }

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

  .section { padding: 96px 0; }
}
