/* 株式会社ITG 仮サイト */
:root {
  --ink: #15171b;
  --ink-2: #23262c;
  --paper: #ffffff;
  --mist: #edf0f2;
  --line: #d9dde1;
  --text: #15171b;
  --muted: #5b6068;
  --on-ink: #ffffff;
  --on-ink-muted: #b8bdc4;
  --accent: #d03a20;        /* 白地の小さな文字・ボタンの地 */
  --accent-hi: #ff6a45;     /* 黒地の上の数字・ラベル */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Archivo", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 9px 0 10px;
  background: var(--accent); color: #fff;
  font-family: var(--font-en); font-weight: 900; font-size: 19px; letter-spacing: 0.04em; line-height: 1;
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }

.gnav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; }
.gnav a { text-decoration: none; position: relative; padding: 6px 0; }
.gnav a:not(.gnav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.gnav a:not(.gnav-cta):hover::after { transform: scaleX(1); }
.gnav-cta { background: var(--ink); color: var(--on-ink); padding: 9px 18px !important; transition: background .2s ease; }
.gnav-cta:hover { background: var(--accent); }

/* ---------- ヒーロー ---------- */
.hero { padding: 88px 0 96px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); padding: 5px 14px 5px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
}
.status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.hero h1 .ph { display: inline-block; }
.lead, .biz p, .contact-text, .fact-note { word-break: auto-phrase; }
.lead { margin-top: 26px; max-width: 34em; color: var(--muted); font-size: 16.5px; line-height: 1.95; }

.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn::after { content: "→"; font-family: var(--font-en); font-weight: 800; transition: transform .2s ease; }
.btn:hover::after { transform: translateX(3px); }

/* 4つの事業の地図 */
.hero-map { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 0.92; padding: 22px 22px 24px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  transition: background .25s ease;
}
.tile-no {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--font-en); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -0.01em;
  color: var(--accent-hi); transition: color .25s ease;
}
.tile-en { font-family: var(--font-en); font-weight: 700; font-size: 11.5px; letter-spacing: 0.14em; color: var(--on-ink-muted); transition: color .25s ease; }
.tile-ja { margin-top: 4px; font-weight: 900; font-size: 21px; line-height: 1.35; letter-spacing: 0.02em; word-break: keep-all; overflow-wrap: break-word; }
.tile::after {
  content: "↓"; position: absolute; top: 20px; right: 20px;
  font-family: var(--font-en); font-weight: 800; font-size: 18px; color: var(--on-ink-muted);
  transition: transform .25s ease, color .25s ease;
}
.tile:hover { background: var(--accent); }
.tile:hover .tile-no, .tile:hover .tile-en, .tile:hover::after { color: #fff; }
.tile:hover::after { transform: translateY(3px); }

/* ---------- セクション共通 ---------- */
.sec { padding: 104px 0; }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-head { margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: 0.22em; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.eyebrow-on-ink { color: var(--accent-hi); }
.sec-mist .eyebrow { color: #bd321b; }   /* 灰色の地でも 4.5:1 以上 */
.sec h2 { margin-top: 10px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.4; }

/* ---------- 事業内容 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.biz {
  position: relative; background: var(--paper); padding: 40px 40px 42px;
  border-top: 5px solid var(--accent);
  box-shadow: 0 1px 0 rgba(21, 23, 27, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-top-width .25s ease;
}
.biz:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(21, 23, 27, 0.35); }
.biz:target { outline: 3px solid var(--accent); outline-offset: 0; }
.biz-top { display: flex; align-items: baseline; gap: 14px; }
.biz-no { font-family: var(--font-en); font-weight: 900; font-size: 46px; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.biz-en { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }
.biz h3 { margin-top: 22px; font-size: 23px; font-weight: 900; letter-spacing: 0.03em; line-height: 1.45; }
.biz p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.95; }

/* ---------- 会社概要 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact {
  border: 1px solid var(--line); border-left: 5px solid var(--ink);
  padding: 22px 24px 24px; background: var(--paper);
  transition: border-color .2s ease;
}
.fact:hover { border-left-color: var(--accent); }
.fact-wide { grid-column: span 2; }
.fact dt { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.fact dd { margin-top: 8px; font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: 0.03em; word-break: break-word; }
.fact dd a { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.fact dd a:hover { color: var(--accent); }
.fact-note { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; line-height: 1.7; }
.fact-list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 2px; }
.fact-list li { background: var(--mist); padding: 4px 14px; font-size: 15px; font-weight: 700; }

/* ---------- お問い合わせ ---------- */
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: end; }
.contact-text { margin-top: 16px; color: var(--on-ink-muted); font-size: 16px; }
.contact-mail { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mail-big {
  font-family: var(--font-en); font-weight: 800; font-size: clamp(24px, 3.4vw, 42px); line-height: 1.2;
  letter-spacing: 0.005em; color: #fff; text-decoration: none; word-break: break-all;
  background-image: linear-gradient(var(--accent-hi), var(--accent-hi));
  background-size: 100% 4px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 8px; transition: color .2s ease;
}
.mail-big:hover { color: var(--accent-hi); }
.btn-on-ink:hover { background: #fff; border-color: #fff; color: var(--ink); }
.sec-ink :focus-visible { outline-color: var(--accent-hi); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink-2); color: var(--on-ink); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand-foot .brand-name { font-size: 14px; }
.copy { font-size: 12.5px; color: var(--on-ink-muted); letter-spacing: 0.06em; }

/* ---------- 404 ---------- */
.nf { padding: 120px 0 140px; }
.nf-code { font-family: var(--font-en); font-weight: 900; font-size: clamp(72px, 12vw, 132px); line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.nf h1 { margin-top: 18px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }
.nf p { margin-top: 12px; color: var(--muted); }
.nf .btn { margin-top: 32px; }

/* ---------- 画面幅ごと ---------- */
@media (max-width: 980px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-map { max-width: 560px; }
  .contact-in { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 721px) and (max-width: 980px) {
  .hero-map { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { aspect-ratio: auto; min-height: 188px; padding: 18px 16px 20px; }
  .tile-no { top: 16px; left: 16px; font-size: 36px; }
  .tile::after { top: 16px; right: 14px; font-size: 16px; }
  .tile-en { font-size: 10.5px; letter-spacing: 0.1em; }
  .tile-ja { font-size: 18px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  .header-in { height: 62px; }
  .brand-mark { height: 32px; font-size: 17px; }
  .brand-name { font-size: 14.5px; }
  .gnav { gap: 16px; font-size: 13px; }
  .gnav a:not(.gnav-cta) { display: none; }
  .gnav-cta { padding: 8px 14px !important; }

  .hero { padding: 44px 0 56px; }
  .hero h1 { margin-top: 22px; font-size: clamp(29px, 8.4vw, 40px); line-height: 1.38; }
  .lead { margin-top: 20px; font-size: 15.5px; }
  .cta-row { margin-top: 28px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-map { gap: 4px; }
  .tile { aspect-ratio: auto; min-height: 148px; padding: 16px 14px 16px; }
  .tile-no { top: 14px; left: 14px; font-size: 32px; }
  .tile::after { top: 14px; right: 14px; font-size: 15px; }
  .tile-en { font-size: 10px; letter-spacing: 0.1em; }
  .tile-ja { font-size: 16.5px; }

  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 32px; }
  .biz-grid { grid-template-columns: 1fr; gap: 16px; }
  .biz { padding: 28px 22px 30px; }
  .biz-no { font-size: 38px; }
  .biz h3 { margin-top: 16px; font-size: 20px; }
  .biz p { font-size: 15px; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fact-wide { grid-column: span 2; }
  .fact { padding: 14px 14px 16px; border-left-width: 4px; }
  .fact dt { font-size: 11.5px; letter-spacing: 0.1em; }
  .fact dd { margin-top: 4px; font-size: 16px; }
  .fact-note { font-size: 12px; }
  .fact-list li { font-size: 14px; padding: 3px 10px; }

  .contact-mail { gap: 20px; width: 100%; }
  .contact-mail .btn { width: 100%; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
