:root {
  --primary: #17184b;      /* 鉄紺 (てつこん) */
  --primary-dark: #0e0f33;
  --primary-light: #2c2e6e;
  --bg: #ffffff;
  --bg-alt: #f4f5f9;
  --text: #1c1c22;
  --text-muted: #5a5c6b;
  --border: #e2e3ec;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  word-break: auto-phrase;   /* 日本語を文節単位で折り返す（対応ブラウザのみ） */
  overflow-wrap: anywhere;
}

.nowrap {
  display: inline-block;
}

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

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==== Header ==== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.logo-mark {
  height: 32px;
  width: auto;
}

.logo-text {
  white-space: nowrap;
}

.logo .sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ==== Hero ==== */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 96px 0 88px;
}

.hero .container {
  max-width: 880px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #b9badb;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);  /* 上限は1行目（21文字）がPC幅で1行に収まる大きさ */
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1rem;
  color: #d8d9ec;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: #e7e8f5;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  margin-left: 12px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==== Sections ==== */
section {
  padding: 80px 0;
}

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

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.section-statement {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ==== Cards / Grid ==== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* カードが4枚のセクション用（2列×2段） */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

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

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==== Table ==== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table th {
  width: 180px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ==== Team ==== */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto 16px;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.team-card .bio {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.placeholder-note {
  font-size: 0.78rem;
  color: #a9abbc;
  font-style: italic;
}

/* ==== Form ==== */
.contact-form {
  max-width: 640px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: var(--primary);
}

.form-status.error {
  color: #b3261e;
}

/* ==== Footer ==== */
.site-footer {
  background: var(--primary-dark);
  color: #a9abc6;
  padding: 40px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ==== Responsive ==== */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }
  .logo {
    font-size: 1rem;
    gap: 10px;
  }
  .logo-mark {
    height: 24px;
  }
  /* 会社概要の表：項目名の下に内容を縦に並べる */
  .info-table th,
  .info-table td {
    display: block;
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .info-table td {
    padding-top: 0;
  }
  .main-nav ul {
    gap: 16px;
    justify-content: center;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
}
