/* ============================================
   CONSTRUCTION TOBI TEMPLATE
   鳶・鉄骨建方 — 白 × 黒 × 半纏の朱、斜めに切った写真をずらして重ねるヒーロー
============================================ */

:root {
  --white: #f6f5f2; /* 白に近い地 */
  --black: #111111; /* 黒（文字・帯） */
  --gray: #5f5e5a; /* 補助文字 */
  --red: #c8361f; /* 半纏の朱（差し色） */
  --red-deep: #a82a16;
  --line: rgba(17, 17, 17, 0.14);
  --font-display: "Dela Gothic One", "Noto Sans JP", sans-serif; /* 見出し */
  --font: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --container: 1200px;
  --header-h: 68px;
  --slant: 7%; /* 斜めに切る量（写真・帯で共通） */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] {
  display: none !important;
}

/* 見出しを意味の切れ目で改行する */
.kw {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.br-sp {
  display: none;
}

.nw {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .br-sp {
    display: inline;
  }
  .br-pc {
    display: none;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- スクロールで出る（JSが動いたときだけ隠す） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal--d1 {
  transition-delay: 0.08s;
}
.js .reveal--d2 {
  transition-delay: 0.16s;
}
.js .reveal--d3 {
  transition-delay: 0.24s;
}

/* ---------- アコーディオン（grid-rows で開閉） ---------- */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.acc-panel.is-open {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
  min-height: 0;
}

/* ---------- 表をスマホで横スクロール枠に ---------- */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-x table {
  min-width: 640px;
}

.scroll-hint {
  display: none;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .scroll-hint {
    display: block;
  }
}

.form-msg {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
}

/* アニメが止まる環境の保険：2.5秒後には開幕のアニメを外して通常の表示に */
.anim-done body * {
  animation: none !important;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

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

/* ---------- 共通 ---------- */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.3;
  margin-bottom: 32px;
}

.sec-title__no {
  font-size: 0.45em;
  color: var(--red);
  border-bottom: 3px solid var(--red);
  line-height: 1.4;
}

.sec-title--light {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 30px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  /* ボタンも少しだけ斜めに */
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.25s var(--ease);
}

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

.btn--red:hover {
  background: var(--red-deep);
}

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

.btn--black:hover {
  background: #333;
}

.btn--line {
  background: #fff;
  color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 20px;
  max-width: 1400px;
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
}

.logo__txt {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}

.logo__txt small {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__list {
  display: flex;
  gap: 20px;
  font-weight: 700;
  font-size: 14px;
}

.nav__list a:hover {
  color: var(--red);
}

.nav__recruit,
.nav__contact {
  font-weight: 900;
  font-size: 14px;
  padding: 10px 16px;
}

.nav__recruit {
  background: var(--red);
  color: #fff;
}

.nav__contact {
  background: var(--black);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--black);
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 18px;
}
.nav-toggle span:last-child {
  top: 27px;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle.is-open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

@media (max-width: 960px) {
  :root {
    --header-h: 62px;
  }
  .header__inner {
    padding-inline: 16px 10px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
    margin-bottom: 8px;
  }
  .nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 2px solid var(--black);
  }
  .nav__recruit,
  .nav__contact {
    text-align: center;
    padding: 16px;
    font-size: 16px;
  }
}

/* ---------- ヒーロー（斜め・ずらし） ---------- */
.hero {
  overflow: hidden;
  border-bottom: 3px solid var(--black);
}

.hero__stage {
  position: relative;
  max-width: 1400px;
  margin-inline: auto;
  height: clamp(620px, calc(100svh - var(--header-h)), 860px);
}

.hero__ph {
  position: absolute;
  overflow: hidden;
  background: #ddd;
}

.hero__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 大：右側の縦長。左右の辺を同じ角度で斜めに */
.hero__ph--1 {
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

/* 中：左下に食い込む */
.hero__ph--2 {
  left: 34%;
  bottom: 6%;
  width: 26%;
  height: 34%;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  border: 0;
  z-index: 2;
}

/* 小：右上にずらして重ねる */
.hero__ph--3 {
  right: 4%;
  bottom: 8%;
  width: 18%;
  height: 30%;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  z-index: 2;
  outline: 6px solid var(--white);
}

.hero__copy {
  position: absolute;
  left: max(20px, calc((100% - 1200px) / 2));
  top: 10%;
  width: min(52%, 640px);
  z-index: 3;
}

.hero__lead {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  background: var(--black);
  color: #fff;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 1.02;
  margin-bottom: 22px;
}

/* 1行ずつ右へずらして、斜めの流れをつくる */
.hero__title span {
  display: block;
}
.hero__title span:nth-child(2) {
  padding-left: 0.5em;
}
.hero__title span:nth-child(3) {
  padding-left: 1em;
  color: var(--red);
}

.hero__text {
  font-weight: 500;
  max-width: 24em;
  background: rgba(246, 245, 242, 0.92);
  padding: 4px 0;
  margin-bottom: 22px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.js .hero__title span,
.js .hero__lead,
.js .hero__text,
.js .hero__btns {
  animation: heroIn 0.8s var(--ease) both;
}
.js .hero__title span:nth-child(2) {
  animation-delay: 0.08s;
}
.js .hero__title span:nth-child(3) {
  animation-delay: 0.16s;
}
.js .hero__text,
.js .hero__btns {
  animation-delay: 0.26s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero__stage {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .hero__copy {
    position: static;
    width: auto;
    grid-column: 1 / 3;
    order: -1;
    padding: 32px 20px 28px;
  }
  .hero__ph {
    position: relative;
    inset: auto;
    width: auto;
  }
  .hero__ph--1 {
    grid-column: 1 / 3;
    height: 260px;
    clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  }
  .hero__ph--2 {
    height: 180px;
    margin-top: -24px;
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  }
  .hero__ph--3 {
    height: 180px;
    margin-top: -24px;
    outline: 0;
    border-left: 6px solid var(--white);
    clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 100%);
  }
  .hero__title {
    font-size: clamp(54px, 14vw, 96px);
  }
}

@media (max-width: 480px) {
  .hero__btns .btn {
    flex: 1 1 100%;
  }
}

/* ---------- お知らせ ---------- */
.news {
  background: var(--black);
  color: #eee;
  padding: 18px 0;
}

.news__inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

.news__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--red);
  font-size: 17px;
}

.news__list li {
  display: flex;
  gap: 18px;
  font-size: 15px;
  padding: 2px 0;
}

.news__list time {
  color: #aaa;
  flex-shrink: 0;
}

.news__list a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .news__inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .news__list li {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid #333;
  }
}

/* ---------- 仕事 ---------- */
.work {
  padding: 100px 0;
}

.work__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.work__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 3px solid var(--black);
}

/* 右の列だけ半段下げて、ずらす */
.work__list li:nth-child(even) {
  transform: translateY(48px);
}

.js .work__list li:nth-child(even).reveal {
  transform: translateY(68px);
}

.js .work__list li:nth-child(even).reveal.is-visible {
  transform: translateY(48px);
}

.work__no {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--red);
}

.work__list h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.work__list p {
  font-size: 15px;
}

@media (max-width: 800px) {
  .work {
    padding: 64px 0;
  }
  .work__list {
    grid-template-columns: 1fr;
  }
  .work__list li:nth-child(even),
  .js .work__list li:nth-child(even).reveal.is-visible {
    transform: none;
  }
  .js .work__list li:nth-child(even).reveal {
    transform: translateY(20px);
  }
  .work__list li {
    grid-template-columns: 52px 1fr;
  }
  .work__no {
    font-size: 36px;
  }
}

/* ---------- 数字（斜めの黒帯） ---------- */
.numbers {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: 120px 0;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  margin-top: 40px;
}

.numbers__bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.numbers__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.numbers__inner {
  position: relative;
}

.numbers__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.numbers__list > div {
  border-left: 4px solid var(--red);
  padding-left: 16px;
}

.numbers__list dt {
  font-size: 14px;
  font-weight: 700;
  color: #ddd;
}

.numbers__list dd {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.2;
}

.numbers__list small {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  margin-left: 4px;
}

.numbers__note {
  font-size: 13px;
  color: #bbb;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .numbers {
    padding: 80px 0;
    --slant: 4%;
  }
  .numbers__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 資格と安全 ---------- */
.safety {
  padding: 100px 0;
}

.safety__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.safety__lead {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 20px;
}

.safety__rules li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.safety__rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 14px;
  height: 8px;
  background: var(--red);
  transform: skewX(-20deg);
}

.license {
  background: #fff;
  border: 3px solid var(--black);
  padding: 24px;
  box-shadow: 10px 10px 0 var(--red);
}

.license__cap {
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 8px;
}

.license li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.license b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
}

.license b::after {
  content: "名";
  font-family: var(--font);
  font-size: 13px;
  margin-left: 2px;
}

@media (max-width: 860px) {
  .safety {
    padding: 64px 0;
  }
  .safety__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .license {
    box-shadow: 6px 6px 0 var(--red);
    padding: 18px;
  }
}

/* ---------- 施工実績 ---------- */
.record {
  padding: 0 0 100px;
}

.record__table {
  font-size: 15px;
  border-top: 3px solid var(--black);
}

.record__table th,
.record__table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}

.record__table thead th {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.record__table td:first-child {
  font-family: var(--font-display);
  color: var(--red);
  width: 80px;
}

.record__table td:nth-child(2) {
  font-weight: 700;
}

.record__table tbody tr:hover {
  background: #fff;
}

/* スマホは1件ずつ縦に積む */
@media (max-width: 700px) {
  .record {
    padding-bottom: 64px;
  }
  .record__table thead {
    display: none;
  }
  .record__table tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .record__table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .record__table td:first-child {
    width: auto;
  }
  .record__table td:nth-child(3)::before {
    content: "場所：";
    color: var(--gray);
  }
  .record__table td:nth-child(4) {
    font-size: 14px;
    color: var(--gray);
  }
}

/* ---------- 職人 ---------- */
.crew {
  padding: 100px 0;
  background: #fff;
  border-block: 3px solid var(--black);
}

.crew__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.crew__ph {
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.crew__ph img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

.voice {
  padding: 22px 0;
  border-top: 3px solid var(--black);
}

.voice + .voice {
  margin-left: 48px;
}

.voice__q {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  margin-bottom: 10px;
}

.voice p {
  font-size: 15px;
}

.voice__who {
  margin-top: 10px;
  font-weight: 700;
  color: var(--red);
}

@media (max-width: 860px) {
  .crew {
    padding: 64px 0;
  }
  .crew__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .crew__ph img {
    aspect-ratio: 16 / 10;
  }
  .voice + .voice {
    margin-left: 0;
  }
}

/* ---------- 採用 ---------- */
.recruit {
  padding: 100px 0;
}

.recruit__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 80px);
  line-height: 1.15;
  margin-bottom: 40px;
}

.recruit__title span {
  display: block;
}

.recruit__title span:last-child {
  color: var(--red);
  padding-left: 0.8em;
}

.recruit__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.recruit__table {
  border-top: 3px solid var(--black);
  font-size: 15px;
}

.recruit__table th,
.recruit__table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}

.recruit__table th {
  width: 70px;
  font-weight: 900;
}

.recruit__steps li {
  position: relative;
  padding: 14px 16px 14px 20px;
  margin-bottom: 8px;
  background: var(--black);
  color: #fff;
  font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.recruit__steps b {
  display: block;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
}

.recruit__steps li:last-child {
  background: var(--red);
}

.recruit__steps li:last-child b {
  color: #fff;
}

.recruit__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .recruit {
    padding: 64px 0;
  }
  .recruit__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .recruit__btns .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .recruit__table th,
  .recruit__table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .recruit__table th {
    padding-top: 12px;
    font-size: 13px;
    color: var(--gray);
  }
  .recruit__table td {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 会社概要 ---------- */
.company {
  padding: 100px 0;
  background: #fff;
  border-top: 3px solid var(--black);
}

.company__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.company__list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.company__list dt {
  font-weight: 900;
}

.company__map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--black);
  filter: grayscale(1);
}

.company__map img {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
}

@media (max-width: 800px) {
  .company {
    padding: 64px 0;
  }
  .company__inner {
    grid-template-columns: 1fr;
  }
  .company__list > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- お問い合わせ ---------- */
.contact {
  padding: 100px 0;
  background: var(--black);
  color: #eee;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact__tel {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  white-space: nowrap;
  color: #fff;
  border-bottom: 4px solid var(--red);
}

.form {
  display: flex;
  flex-direction: column;
}

.form__type {
  border: 0;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.form__type legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.form__type label {
  position: relative;
  flex: 1;
}

.form__type input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.form__type span {
  display: block;
  text-align: center;
  padding: 12px;
  border: 2px solid #555;
  font-weight: 700;
  cursor: pointer;
}

.form__type input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.form__type input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.form > label {
  font-weight: 700;
  font-size: 14px;
  margin: 14px 0 6px;
}

.form em {
  font-style: normal;
  font-size: 12px;
  color: var(--red);
  margin-left: 8px;
}

.form input[type="text"],
.form input[type="tel"],
.form textarea {
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--black);
  font-size: 16px;
}

.form input:focus,
.form textarea:focus {
  outline: 3px solid var(--red);
  outline-offset: 0;
}

.form .btn {
  margin-top: 22px;
}

@media (max-width: 800px) {
  .contact {
    padding: 64px 0;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--red);
  color: #fff;
  padding: 30px 0;
  font-size: 14px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
}

.footer__copy {
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.85;
}
