/* =========================================================
   TEG CONSULTING - style.css
   ネイビー × ホワイト / 誠実でプロフェッショナルな印象
   ========================================================= */

:root {
  --navy-900: #14213A;   /* 最も濃い紺（フッター・見出し） */
  --navy-700: #1E3A5F;   /* 基調のネイビー */
  --steel:    #5B7799;   /* 補助的なブルーグレー */
  --line:     #D9DFE8;   /* 罫線 */
  --mist:     #F5F7FA;   /* 薄い背景 */
  --paper:    #FFFFFF;
  --ink:      #22293A;   /* 本文の文字色 */

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy-700); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--navy-900);
  text-decoration: none;
}

.global-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

.global-nav a {
  text-decoration: none;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--navy-700);
  border-bottom-color: var(--navy-700);
}

/* ハンバーガーボタン（スマホ用） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after  { left: 0; top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

.hero::before {
  /* 右上のネイビーの面。画像を使わず構成する装飾 */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.06;
}

.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 24px 110px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 28px;
}

.hero-copy {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--navy-900);
}

.hero-lead {
  margin-top: 32px;
  font-size: 0.98rem;
  color: var(--ink);
}

.hero-rule {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 0;
}

.hero-rule::before {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: var(--navy-700);
  margin-left: 24px;
  transform: translateY(-56px);
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 96px 0;
}

.section--tint {
  background: var(--mist);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--navy-900);
}

.section-intro {
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ---------- 事業内容 ---------- */

.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.approach-item {
  background: var(--paper);
  padding: 32px 24px;
}

.approach-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  color: var(--navy-700);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.approach-item p {
  font-size: 0.92rem;
  line-height: 1.9;
}

/* ---------- 会社概要 ---------- */

.company-table {
  border-top: 1px solid var(--line);
  background: transparent;
}

.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 22px 8px;
  gap: 16px;
}

.company-row dt {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.94rem;
}

.company-row dd {
  font-size: 0.96rem;
}

/* ---------- お問い合わせ ---------- */

.contact-text {
  font-size: 0.98rem;
}

.contact-mail a {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.contact-button {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--navy-700);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--navy-900);
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.98rem;
}

.footer-copy {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 表示切替ユーティリティ ---------- */

.sp-only { display: none; }
.pc-only { display: inline; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 820px) {

  .sp-only { display: inline; }
  .pc-only { display: none; }

  .nav-toggle { display: block; }

  .global-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .global-nav a {
    display: block;
    padding: 16px 24px;
    border-bottom: none;
  }

  .hero-inner {
    padding: 88px 24px 80px;
  }

  .hero-rule::before {
    transform: translateY(-44px);
  }

  .section {
    padding: 64px 0;
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 4px;
  }
}

/* アニメーションを控えたい環境への配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
