/* 株式会社東京新建材社 ホームページ
   構成：本社の看板（白地に朱の二本線）を、ヘッダー・見出し・電話の板で繰り返す。
   左に見出しの柱、右に中身。スマホでは一列。 */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --wall: #f1f4f3;
  --sumi: #16191d;
  --nibi: #555e68;
  --line: #d3d9d7;
  --shu: #c8301f;
  --shu-deep: #a72415;
  --kon: #1b2d4a;
  --ki: #d9b98a;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --gutter: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; line-height: 1.5; letter-spacing: 0.06em; text-wrap: balance; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--shu-deep); }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; }
.nb { display: inline-block; }
.wrap {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 16px; }

/* ---- ヘッダー（看板） ---- */
.site-head { border-top: 6px solid var(--shu); border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 32px; }
.brand { display: block; padding-block: 16px 10px; }
.brand img { width: 236px; }
.gnav { width: 100%; }
.gnav ul { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); }
.gnav li + li { border-left: 1px solid var(--line); }
.gnav a { display: block; text-align: center; text-decoration: none; padding: 10px 4px; font-size: 15px; }
.gnav a[aria-current] { color: var(--shu-deep); font-weight: 700; }
.head-tel { display: none; }

/* ---- 最初の画面 ---- */
.hero { display: flex; flex-direction: column; }
.hero picture { order: 1; display: block; }
.hero img { width: 100%; aspect-ratio: 900 / 740; object-fit: cover; object-position: 50% 40%; }
.hero-copy { order: 2; border-top: 8px solid var(--shu); padding: 32px var(--gutter) 8px; }
.hero h1 { font-size: clamp(32px, 9.4vw, 44px); letter-spacing: 0.1em; line-height: 1.45; }
.hero h1 span { display: block; }

.intro { padding-block: 16px 48px; }
.intro-lead { font-size: 17px; max-width: 38em; }
.facts { margin-top: 32px; border-top: 1px solid var(--sumi); }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--nibi); line-height: 1.9; }
.facts dd { font-family: var(--mincho); font-weight: 600; line-height: 1.75; }

/* ---- お知らせ ---- */
.notice { background: var(--wall); padding-block: 28px; }
.notice h2 { font-family: var(--gothic); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: var(--shu-deep); }
.notice p { margin-top: 6px; font-size: 15px; line-height: 1.85; max-width: 50em; }

/* ---- 章 ---- */
.sec { padding-block: 56px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.tint { background: var(--wall); border-top: 0; }
.sec.tint + .sec { border-top: 0; }
.sec-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.board { justify-self: start; align-self: start; border-block: 3px solid var(--shu); padding: 6px 18px 7px; background: var(--paper); }
.board h2 { font-size: 22px; letter-spacing: 0.14em; line-height: 1.5; }
.sec-body { min-width: 0; }
.sec-lead { font-family: var(--mincho); font-weight: 600; font-size: clamp(21px, 5.6vw, 28px); line-height: 1.6; letter-spacing: 0.06em; text-wrap: balance; }
.sec-lead + * { margin-top: 24px; }
.more { display: inline-block; margin-top: 28px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--shu); text-decoration-thickness: 2px; }
.more::after { content: "　→"; color: var(--shu); }

/* 事業の三つの段 */
.works { display: grid; gap: 48px; }
.work { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.work h3 { font-size: 21px; }
.work p { margin-top: 8px; max-width: 34em; }
.fig { margin: 0; }
.fig figcaption { margin-top: 8px; font-size: 13px; color: var(--nibi); line-height: 1.7; }
.fig .plate { border: 1px solid var(--line); background: var(--paper); padding: 16px; }
.fig .plate svg { width: 100%; }
.fig img { width: 100%; }
.sec-body > .gap > .fig, .sec-body > .fig { max-width: 600px; }
.drawing text { font-family: var(--gothic); fill: var(--sumi); }
.ryaku { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--sumi); border-left: 1px solid var(--sumi); }
.ryaku li { font-family: var(--mincho); font-weight: 600; font-size: clamp(17px, 5vw, 26px); line-height: 1; text-align: center; padding-block: 0.62em; letter-spacing: 0; border-right: 1px solid var(--sumi); border-bottom: 1px solid var(--sumi); }

/* 強み */
.strong { display: grid; border-top: 1px solid var(--sumi); }
.strong div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.strong dt { font-family: var(--mincho); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; }
.strong dd { margin-top: 4px; max-width: 40em; }

/* 文章 */
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 42em; }
.sign { margin-top: 1.6em; line-height: 1.8; }
.sign strong { font-family: var(--mincho); font-size: 19px; letter-spacing: 0.1em; }

/* 採用への案内 */
.recruit-band { background: var(--kon); color: #fff; padding-block: 48px; }
.recruit-band h2 { font-size: clamp(22px, 6vw, 30px); }
.recruit-band p { margin-top: 12px; max-width: 40em; }
.recruit-band a { color: #fff; }
.recruit-band a:hover { color: #ffd9d2; }

/* 電話の板 */
.call { background: var(--wall); padding-block: 56px; }
.call-board { background: var(--paper); border-block: 8px solid var(--shu); padding: 28px 20px 30px; text-align: center; }
.call-board h2 { font-size: clamp(19px, 5.2vw, 24px); letter-spacing: 0.1em; }
.call-board .tel { display: inline-block; margin-top: 4px; font-family: var(--mincho); font-weight: 600; font-size: clamp(34px, 10.4vw, 56px); line-height: 1.3; letter-spacing: 0.04em; text-decoration: none; font-variant-numeric: lining-nums; }
.call-board p { font-size: 15px; line-height: 1.8; }
.form-btn { display: inline-block; background: var(--kon); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 26px; margin-block: 10px 12px; line-height: 1.5; }
.form-btn:hover { background: #2a426a; color: #fff; }
.form-btn.big { background: var(--shu); font-size: 17px; padding: 15px 30px; }
.form-btn.big:hover { background: var(--shu-deep); }
.gnav .pc { display: none; }

/* 下のページの題 */
.page-head { padding-block: 40px 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 8.6vw, 44px); letter-spacing: 0.12em; }
.page-head p { margin-top: 10px; max-width: 42em; }
.page-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }

/* 表 */
.spec { border-top: 1px solid var(--sumi); }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; font-size: 14px; color: var(--nibi); }
.spec dd { min-width: 0; line-height: 1.85; }
.spec dd small { font-size: 14px; color: var(--nibi); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); padding: 3px 12px; font-size: 15px; background: var(--paper); }
.chips li.key { border-color: var(--shu); border-width: 2px; padding: 2px 11px; font-weight: 700; }
.names { columns: 2; column-gap: 24px; font-size: 15px; line-height: 2; }
.names.two { columns: 1; }
.names li { break-inside: avoid; }
.sub { font-size: 18px; margin-top: 36px; margin-bottom: 12px; }
.gap { margin-top: 32px; }
.note { font-size: 14px; color: var(--nibi); margin-top: 12px; }
.history { border-top: 1px solid var(--sumi); }
.history li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.history time { font-family: var(--mincho); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.flow { counter-reset: f; display: grid; gap: 0; border-top: 1px solid var(--sumi); }
.flow li { counter-increment: f; padding-block: 13px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.2em minmax(0, 1fr); }
.flow li::before { content: counter(f); font-family: var(--mincho); font-weight: 600; color: var(--shu); font-size: 19px; line-height: 1.5; }
.bullets li { padding-left: 1.1em; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 7px; height: 2px; background: var(--shu); }
.bullets li + li { margin-top: 4px; }

/* フッター */
.site-foot { background: var(--kon); color: #e8ecf2; padding-block: 40px 32px; font-size: 14px; line-height: 1.9; }
.site-foot .wrap { display: grid; gap: 24px; }
.site-foot img { width: 240px; margin-bottom: 14px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #ffd9d2; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-foot small { font-size: 13px; color: #b9c3d2; }

/* スマホの下に固定する電話 */
.call-bar { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--shu); }
.call-bar a { color: #fff; text-align: center; text-decoration: none; font-weight: 700; padding: 13px 6px; font-size: 15px; line-height: 1.5; }
.call-bar a + a { background: var(--kon); }

/* ---- 幅が広い画面 ---- */
@media (min-width: 600px) { .hero img { aspect-ratio: 16 / 9; } }
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .names { columns: 3; }
  .names.two { columns: 2; }
  .spec > div { grid-template-columns: 11em minmax(0, 1fr); gap: 24px; }
  .spec dt { line-height: 2.1; }
  .history li { grid-template-columns: 8em minmax(0, 1fr); }
  .strong { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 960px) {
  .brand { padding-block: 20px; }
  .brand img { width: 300px; }
  .gnav { width: auto; margin-left: auto; }
  .gnav ul { display: flex; gap: 28px; border-top: 0; margin-inline: 0; }
  .gnav li + li { border-left: 0; }
  .gnav .pc { display: block; }
  .gnav a { padding: 8px 2px; border-bottom: 3px solid transparent; font-size: 16px; }
  .gnav a[aria-current] { border-bottom-color: var(--shu); }
  .head-tel { display: block; font-family: var(--mincho); font-weight: 600; font-size: 22px; text-decoration: none; letter-spacing: 0.03em; }

  .hero { display: grid; grid-template-columns: minmax(280px, 25%) minmax(0, 1fr); border-bottom: 10px solid var(--shu); }
  .hero-copy { order: 0; border-top: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
  .hero h1 { writing-mode: vertical-rl; font-size: clamp(44px, 4.3vw, 62px); letter-spacing: 0.14em; line-height: 1.6; }
  .hero img { height: clamp(440px, 39vw, 620px); aspect-ratio: auto; object-position: 60% 40%; }
  .intro { padding-block: 56px 64px; }
  .intro-lead { font-size: 19px; }
  .sec { padding-block: 88px; }
  .sec-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .board h2 { font-size: 24px; }
  .works { gap: 72px; }
  .work { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
  .work h3 { font-size: 24px; }
  .recruit-band, .call { padding-block: 72px; }
  .recruit-band .wrap { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
  .call-board { padding: 40px 32px 42px; }
  .page-head { padding-block: 64px 48px; }
  .site-foot .wrap { grid-template-columns: 1fr auto; }
  .call-bar { display: none; }
}
@media print {
  .call-bar, .gnav, .skip { display: none; }
  .sec { padding-block: 24px; }
}
