/* ===== CSS変数（色・フォント設定） ===== */
:root {
  --primary: #2B6CB0;
  --primary-dark: #1A4F8A;
  --accent: #003366;
  --text-dark: #1A202C;
  --text-mid: #4A5568;
  --text-light: #718096;
  --bg-light: #F7FAFC;
  --bg-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 4px;
  --transition: 0.3s ease;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--bg-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav-contact {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-contact:hover { background: var(--primary-dark) !important; }
.nav-contact::after { display: none !important; }

/* ハンバーガーメニュー（スマホ用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホメニュー */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 4px;
}
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== ページヘッダー（各ページのタイトルエリア） ===== */
.page-header {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.page-header .en-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.7;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== セクション共通 ===== */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .en-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
}

/* ===== ヒーローセクション ===== */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 60%, #4A90D9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero-content p {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===== 事業内容カード ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.business-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.business-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}
.business-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.business-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== 事業詳細（業務ページ用） ===== */
.business-detail {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.business-detail:last-child { border-bottom: none; }
.business-detail .detail-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.business-detail .detail-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.business-detail .detail-body p {
  color: var(--text-mid);
  line-height: 1.9;
}
.detail-list {
  margin-top: 16px;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-mid);
  line-height: 2;
}

/* ===== 強みセクション ===== */
.strengths-bg { background: var(--bg-light); }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.strength-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: box-shadow var(--transition);
}
.strength-card:hover { box-shadow: var(--shadow-md); }
.strength-card .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}
.strength-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.strength-card p { font-size: 14px; color: var(--text-mid); line-height: 1.8; }

/* ===== CTAバナー ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.cta-section p { font-size: 15px; opacity: 0.85; margin-bottom: 36px; }
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: 16px 40px;
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== 会社概要テーブル ===== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.company-table th {
  width: 30%;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  white-space: nowrap;
}
.company-table td { font-size: 15px; color: var(--text-dark); }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

/* ===== お問い合わせフォーム ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.contact-form { }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group label .required {
  font-size: 11px;
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,108,176,0.1); }
.form-group textarea { height: 160px; resize: vertical; }
.btn-submit {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 48px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  letter-spacing: 0.05em;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-info {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 36px 28px;
}
.contact-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}
.contact-info-item {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info-item .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-info-item .value {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}
.contact-info-item .tel {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ===== フッター ===== */
.footer {
  background: var(--accent);
  color: #fff;
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-company-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.footer-address {
  font-size: 13px;
  line-height: 2;
  opacity: 0.75;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-nav a {
  font-size: 13px;
  opacity: 0.75;
  transition: opacity var(--transition);
  letter-spacing: 0.04em;
}
.footer-nav a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 12px; opacity: 0.55; letter-spacing: 0.05em; }

/* ===== フェードインアニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== レスポンシブ（スマホ対応） ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }

  section { padding: 56px 16px; }
  .page-header { padding: 48px 16px; }

  .business-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .business-card { padding: 24px 16px; }
  .business-card .icon { width: 50px; height: 50px; font-size: 22px; }

  .business-detail { flex-direction: column; gap: 24px; padding: 36px 0; }

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

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }

  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
}

@media (max-width: 480px) {
  .business-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
}
