/* ===== 基本設定 ===== */
:root {
  --bg: #0b0b0b;
  --bg-sub: #161616;
  --text: #f5f5f5;
  --text-sub: #a8a8a8;
  --line: #2c2c2c;
  --accent: #ff3b1f;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo .dot,
.accent {
  color: var(--accent);
}

.nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

/* ===== トップ：メインビジュアル ===== */
.hero {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-copy {
  margin: 0;
  font-size: clamp(48px, 11vw, 140px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-origin {
  margin: 40px 0 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
}

.hero-origin em {
  font-style: normal;
  color: var(--accent);
}

.hero-origin .name {
  display: inline-block;
  margin-left: 0.6em;
  color: var(--text-sub);
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--text-sub);
}

/* ===== 共通セクション ===== */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.section-title {
  margin: 0 0 48px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.3;
}

/* ===== ページ見出し（下層ページ） ===== */
.page-head {
  padding: 96px 0 64px;
}

.page-head .section-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 80px);
}

/* ===== トップ：事業カード ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: block;
  padding: 32px 28px;
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.card h3 {
  margin: 8px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

.more {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
}

.more::after {
  content: " →";
  color: var(--accent);
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid var(--text);
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* ===== 事業内容ページ ===== */
.service {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.service-num {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}

.service h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.4;
}

.service p {
  margin: 0 0 24px;
  color: var(--text-sub);
}

.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 14px;
}

/* ===== 会社概要ページ ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid var(--line);
}

.company-table th {
  width: 200px;
  font-weight: 700;
  color: var(--text-sub);
}

/* ===== フッター ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer small {
  font-size: 12px;
  color: var(--text-sub);
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header .container {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav ul {
    gap: 20px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 80px;
  }

  .section {
    padding: 64px 0;
  }

  .page-head {
    padding: 64px 0 40px;
  }

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

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 48px 0;
  }

  .service-num {
    font-size: 40px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding: 20px 0 4px;
    border-bottom: none;
  }

  .company-table td {
    padding: 0 0 20px;
  }

  .company-table tr:first-child td {
    border-top: none;
  }
}
