:root {
  --bg: #2e3338;
  --bg-2: #33383e;
  --bg-deep: #24282d;
  --card: #3e444b;
  --line: #50565d;
  --text: #f2f3f4;
  --muted: #bcc1c7;
  --accent: #d9dce0;
  --radius: 16px;
  --wrap: 1120px;
  --sans: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: 0.03em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(36, 40, 45, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: 0.08em; }
.logo small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0.12em; line-height: 1.2; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .btn-small { color: var(--bg-deep); background: var(--text); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
@media (max-width: 720px) { .nav a:not(.btn-small) { display: none; } }

/* セクション(固定ヘッダーの下に見出しが隠れないようにする) */
section[id] { scroll-margin-top: 64px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section.deep { background: var(--bg-deep); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 20px; }
.lead { color: var(--muted); max-width: 720px; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* ヒーロー */
.hero { padding: 120px 0 104px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin: 8px 0 24px; }
.hero p { color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 680px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--text);
  transition: background 0.2s, color 0.2s;
}
.btn.primary { background: var(--text); color: var(--bg-deep); }
.btn.primary:hover { background: var(--accent); }
.btn.ghost:hover { background: rgba(242, 243, 244, 0.08); }

/* カード */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }
.card .num { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }

/* 事業カード(画像つき・リンク) */
.biz { padding: 0; overflow: hidden; text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.biz:hover { transform: translateY(-4px); border-color: var(--muted); }
.biz .thumb { aspect-ratio: 16 / 10; background: var(--bg-deep); overflow: hidden; }
.biz .thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.biz .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.biz .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; }

/* 表 */
.table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.table th, .table td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { width: 180px; color: var(--muted); font-weight: 400; font-size: 14px; }
@media (max-width: 720px) {
  .table th, .table td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* 手順 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; counter-reset: step; }
.steps li { list-style: none; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li.plain { background: var(--card); }
.steps .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.steps h3 { font-size: 20px; margin: 6px 0 8px; }
.steps p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
ol.steps { padding: 0; }

/* スマホ画面 */
.phones { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.phone { background: #1e2226; padding: 8px; border-radius: 32px; width: 220px; }
.phone img { border-radius: 25px; aspect-ratio: 780 / 1688; object-fit: cover; width: 100%; }
.phone-cap { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.feature { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.shot { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 40px; }
.shot img { border-radius: 8px; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* お問い合わせ */
.contact { text-align: center; }
.contact .lead { margin: 0 auto; }
.contact .actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* フッター */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* プライバシーポリシー */
.doc h2 { font-size: 20px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .biz, .btn { transition: none; }
  .biz:hover { transform: none; }
}

/* 写真つきヒーロー(文字が読めるよう暗い膜をかける) */
.hero-corp { background: linear-gradient(90deg, rgba(36, 40, 45, 0.94) 0%, rgba(36, 40, 45, 0.8) 55%, rgba(36, 40, 45, 0.55) 100%), url("/img/hero.webp") center / cover no-repeat; }
.hero-kaiso { background: linear-gradient(90deg, rgba(36, 40, 45, 0.94) 0%, rgba(36, 40, 45, 0.78) 55%, rgba(36, 40, 45, 0.5) 100%), url("/relocation/img/hero.webp") center / cover no-repeat; }
@media (max-width: 720px) {
  .hero-corp { background: linear-gradient(rgba(36, 40, 45, 0.86), rgba(36, 40, 45, 0.86)), url("/img/hero.webp") center / cover no-repeat; }
  .hero-kaiso { background: linear-gradient(rgba(36, 40, 45, 0.86), rgba(36, 40, 45, 0.86)), url("/relocation/img/hero.webp") center / cover no-repeat; }
}
.banner { border-radius: var(--radius); overflow: hidden; margin: 32px 0 8px; aspect-ratio: 16 / 6; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .banner { aspect-ratio: 16 / 9; } }
