/* ============================================
   CONSTRUCTION RECRUIT TEMPLATE
   採用に強い建設会社 — ビタミンオレンジ × 空色 × 白
   太い丸ゴシック、斜めの帯・吹き出し・ステッカー、ぽんと弾む動き
============================================ */

:root {
  /* Color */
  --orange: #ff7a1a; /* ビタミンオレンジ（メイン） */
  --orange-deep: #e35d05;
  --orange-pale: #fff0e2;
  --sky: #3db8ec; /* 空色（サブ） */
  --sky-deep: #1489c0;
  --sky-pale: #e2f4fc;
  --yellow: #ffd84a; /* ステッカーの差し色 */
  --ink: #1f2d3d; /* 文字（紺寄りの黒） */
  --ink-soft: #4b596a;
  --white: #ffffff;
  --line: #e4e9ee;

  /* Font */
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;

  /* Shape */
  --radius: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;
  --shadow-pop: 0 6px 0 rgba(31, 45, 61, 0.12);
  --slant: 5vw; /* 斜めの帯の傾き量 */

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  /* イージング（跳ねずに、すっと止まる） */
  --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);
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  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;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
}

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

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

.u-orange {
  color: var(--orange);
}

.sp-only {
  display: none;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn--entry {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 5px 0 var(--orange-deep);
}

.btn--sky {
  background: var(--sky-deep);
  color: var(--white);
  box-shadow: 0 5px 0 #0d6896;
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(31, 45, 61, 0.18);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn--lg {
  min-height: 60px;
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: box-shadow 0.3s;
}

/* 背景は疑似要素に（ヘッダー自体に効果を付けるとモバイルメニューが閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  border-bottom: 4px solid var(--orange);
  z-index: -1;
}

.header.is-scrolled {
  box-shadow: 0 6px 18px rgba(31, 45, 61, 0.08);
}

.header__inner {
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 42px;
  height: 42px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.logo__text small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: 0.1em;
}

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

.nav__list {
  display: flex;
  gap: 2px;
}

.nav__list a {
  display: block;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background-color 0.2s, color 0.2s;
}

.nav__list a:hover {
  background: var(--orange-pale);
  color: var(--orange-deep);
}

.nav__entry {
  min-height: 46px;
  padding: 8px 22px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}
.nav-toggle span:nth-child(2) {
  top: 23px;
}
.nav-toggle span:nth-child(3) {
  top: 30px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px var(--gutter) 40px;
    background: var(--sky);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 8px;
  }

  .nav__list a {
    padding: 12px 20px;
    font-size: 1.1rem;
    background: var(--white);
    border-radius: 16px;
  }

  .nav__entry {
    min-height: 56px;
    font-size: 1.1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--sky);
  color: var(--ink);
  overflow: hidden;
}

/* 空色の地に、白い雲っぽい丸を少しだけ */
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 150px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__lead {
  margin-bottom: 18px;
}

/* 吹き出し */
.bubble {
  position: relative;
  display: inline-block;
  padding: 8px 18px;
  background: var(--white);
  color: var(--orange-deep);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -10px;
  border: 6px solid transparent;
  border-top: 8px solid var(--white);
  border-left: 8px solid var(--white);
}

.hero__title {
  font-size: clamp(2.3rem, 6.4vw, 4.9rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 4px 0 rgba(20, 110, 160, 0.35);
  word-break: keep-all;
}

.hero__line {
  display: block;
}

.hero__title em {
  font-style: normal;
  color: var(--yellow);
}

.hero__text {
  margin-top: 22px;
  max-width: 34em;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.hero__text strong {
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
}

.hero__cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}

.hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 8px solid var(--white);
  transform: rotate(3deg);
  box-shadow: 14px 14px 0 var(--orange);
  aspect-ratio: 10 / 11;
}

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

/* ステッカー風バッジ */
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 4px solid var(--white);
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.25;
  box-shadow: 0 6px 0 rgba(31, 45, 61, 0.18);
  transform: rotate(var(--r, -12deg));
}

.sticker b {
  font-size: 1.7rem;
  line-height: 1.1;
}

.sticker--a {
  left: -36px;
  top: -20px;
  background: var(--orange);
  color: var(--white);
  transform: rotate(-12deg);
}

.sticker--b {
  right: -24px;
  top: 40%;
  background: var(--yellow);
  color: var(--ink);
  width: 128px;
  height: 128px;
  font-size: 0.82rem;
  --r: 9deg;
}

.sticker--b b {
  font-size: 1.5rem;
}

.sticker--c {
  left: 14%;
  bottom: -40px;
  background: var(--white);
  color: var(--sky-deep);
  border-color: var(--sky-deep);
  --r: -6deg;
}

/* ヒーローの登場（JSがあるときだけ。タイマーの保険つき） */
html.js .hero__line,
html.js .hero__lead,
html.js .hero__text,
html.js .hero__cta {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

html.js .hero.is-in .hero__lead,
html.js .hero.is-in .hero__line,
html.js .hero.is-in .hero__text,
html.js .hero.is-in .hero__cta {
  opacity: 1;
  transform: none;
}

html.js .hero.is-in .hero__line:nth-child(2) {
  transition-delay: 0.1s;
}
html.js .hero.is-in .hero__line:nth-child(3) {
  transition-delay: 0.2s;
}
html.js .hero.is-in .hero__text {
  transition-delay: 0.3s;
}
html.js .hero.is-in .hero__cta {
  transition-delay: 0.4s;
}

/* 斜めの帯（文字は流さず、置くだけ） */
.band {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 34px;
  background: var(--orange);
  color: var(--white);
  transform: rotate(-3deg);
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(31, 45, 61, 0.15);
}

.band__track {
  display: flex;
  width: max-content;
}

.band__track span {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 0 28px;
  position: relative;
}

.band__track span::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--yellow);
}


@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-bottom: 140px;
  }

  .hero__visual {
    max-width: 380px;
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .hero__visual {
    max-width: 280px;
  }

  .sticker {
    width: 92px;
    height: 92px;
    font-size: 0.78rem;
    border-width: 3px;
  }

  .sticker b {
    font-size: 1.3rem;
  }

  .sticker--a {
    left: -14px;
  }

  .sticker--b {
    width: 100px;
    height: 100px;
    right: -12px;
    font-size: 0.72rem;
  }

  .sticker--b b {
    font-size: 1.2rem;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .band__track span {
    font-size: 1rem;
  }
}

/* ---------- Numbers ---------- */
.numbers {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.numbers__title {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 28px;
}

.numbers__title small {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-left: 6px;
}

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

.num {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--orange-pale);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.num:nth-child(even) {
  transform: translateY(18px);
}

.num--sky {
  background: var(--sky-pale);
}

.num__label {
  font-weight: 800;
  font-size: 0.95rem;
}

.num__value {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--orange-deep);
  line-height: 1.1;
}

.num--sky .num__value {
  color: var(--sky-deep);
}

.num__value b {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.num__note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .numbers__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .num {
    padding: 18px 14px;
  }
}

/* ---------- Section head ---------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.sec-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.sec-head--left {
  text-align: left;
}

.sec-head__tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
  transform: rotate(-3deg);
  margin-bottom: 14px;
}

.sec-head__tag--sky {
  background: var(--sky-deep);
}

.sec-head__title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.3;
  word-break: keep-all;
}

.sec-head__text {
  margin-top: 16px;
  color: var(--ink-soft);
}

/* ---------- Jobs ---------- */
.jobs {
  background: var(--white);
}

.jobs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.job:hover {
  transform: translateY(-4px);
  box-shadow: 6px 10px 0 var(--orange);
}

.job--wide {
  grid-column: span 2;
  flex-direction: row;
}

.job--wide .job__body {
  flex: 0 0 44%;
  align-self: center;
  padding: 28px 28px 30px;
}

.job--sky .job__body {
  background: var(--sky-pale);
  border-radius: 0 0 calc(var(--radius) - 3px) calc(var(--radius) - 3px);
}

.job__img {
  flex: 0 0 44%;
}

.job__img {
  position: relative;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  border-bottom: 3px solid var(--ink);
}

/* 大きいカードは左に写真、右に文字 */
.job--wide .job__img {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 300px;
  border-bottom: 0;
  border-right: 3px solid var(--ink);
  border-radius: calc(var(--radius) - 3px) 0 0 calc(var(--radius) - 3px);
}

.job__img {
  flex-shrink: 0;
}



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

.job__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  background: var(--yellow);
  font-weight: 900;
  border-radius: var(--radius-full);
  transform: rotate(-4deg);
}

.job__body {
  padding: 18px 20px 22px;
  flex: 1 0 auto;
}

.job__no {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}

.job__title {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 8px;
}

.job--wide .job__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.job__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex: 1 0 auto;
}

.job--wide .job__text {
  font-size: 1rem;
}

.job__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job__tags li {
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: var(--sky-pale);
  color: var(--sky-deep);
}

.job__tags li:first-child {
  background: var(--orange-pale);
  color: var(--orange-deep);
}

@media (max-width: 1000px) {
  .jobs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .job--wide {
    flex-direction: column;
  }

  .job--wide .job__body {
    flex: 1 0 auto;
    align-self: stretch;
    padding: 18px 20px 22px;
  }

  .job--wide .job__img {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: 0;
    border-bottom: 3px solid var(--ink);
    border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  }
}

@media (max-width: 640px) {
  .jobs__grid {
    grid-template-columns: 1fr;
  }

  .job--wide {
    grid-column: auto;
  }
}

/* ---------- License（斜めのオレンジ帯） ---------- */
.license {
  position: relative;
  isolation: isolate;
  padding: calc(var(--slant) + 72px) 0 calc(var(--slant) + 72px);
  color: var(--white);
}

.license__slant {
  position: absolute;
  inset: 0;
  background: var(--orange);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  z-index: -1;
}

.license__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.license__kicker {
  display: inline-block;
  background: var(--white);
  color: var(--orange-deep);
  padding: 4px 14px;
  border-radius: 8px;
  font-weight: 900;
  margin-bottom: 16px;
}

.license__title {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.35;
}

.mark {
  color: var(--ink);
  background: var(--yellow);
  padding: 0 6px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.license__text {
  margin-top: 18px;
  font-weight: 700;
}

.license__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.license__list li {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--orange-deep);
}

.license__list li:nth-child(even) {
  margin-left: 24px;
}

.license__year {
  font-weight: 900;
  color: var(--sky-deep);
  font-size: 0.9rem;
}

.license__name {
  font-weight: 800;
}

.license__allow {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange-deep);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .license__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .license__list li {
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
  }

  .license__list li:nth-child(even) {
    margin-left: 0;
  }

  .license__name {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ---------- Voice ---------- */
.voice {
  background: var(--sky-pale);
}

.voice__list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 80px);
}

.person {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.person--rev {
  grid-template-columns: 1fr minmax(200px, 320px);
}

.person--rev .person__photo {
  order: 2;
}

.person__photo {
  position: relative;
}

.person__photo img {
  border-radius: 50% 50% var(--radius) var(--radius);
  aspect-ratio: 6 / 7;
  object-fit: cover;
  width: 100%;
  border: 6px solid var(--white);
}

.person__before {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%) rotate(-3deg);
  white-space: nowrap;
  padding: 6px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
}

/* 大きな吹き出し */
.person__quote {
  position: relative;
  display: inline-block;
  padding: 20px 26px;
  background: var(--white);
  border-radius: 24px;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 900;
  line-height: 1.45;
  box-shadow: var(--shadow-pop);
  margin-bottom: 20px;
}

.person__quote::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 34px;
  border: 10px solid transparent;
  border-right: 16px solid var(--white);
  border-left: 0;
}

.person--rev .person__quote::before {
  left: auto;
  right: -14px;
  border-right: 0;
  border-left: 16px solid var(--white);
}

.person:nth-child(2) .person__quote {
  color: var(--orange-deep);
}

.person__text {
  color: var(--ink-soft);
  max-width: 36em;
}

.person__name {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.person__name b {
  font-size: 1.1rem;
  font-weight: 900;
}

.person__name span {
  font-size: 0.88rem;
  color: var(--sky-deep);
  font-weight: 700;
}

@media (max-width: 720px) {
  .person,
  .person--rev {
    grid-template-columns: 1fr;
  }

  .person__photo,
  .person--rev .person__photo {
    order: 0;
    max-width: 240px;
    margin: 0 auto;
    width: 100%;
  }

  .person__quote::before,
  .person--rev .person__quote::before {
    left: 40px;
    right: auto;
    top: -14px;
    border: 10px solid transparent;
    border-bottom: 16px solid var(--white);
    border-top: 0;
  }

  .person__body {
    padding-top: 16px;
  }
}

/* ---------- Day timeline ---------- */
.day__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.day__head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.day__note {
  margin-top: 16px;
  color: var(--ink-soft);
}

.day__bubble {
  display: inline-block;
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--yellow);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.4;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-5deg);
}

.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--orange) 0 10px, transparent 10px 18px);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 0 0 26px;
}

.timeline__item time {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 46px;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  font-size: 1.15rem;
  border-radius: var(--radius-full);
  margin-left: -1px;
}

.timeline__item h3 {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.5;
  padding-top: 8px;
}

.timeline__item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.timeline__item--lunch time {
  background: var(--sky-deep);
}

.timeline__item--lunch > div {
  background: var(--sky-pale);
  border-radius: 16px;
  padding: 0 16px 12px;
}

.timeline__item--end time {
  background: var(--ink);
}

@media (max-width: 860px) {
  .day__inner {
    grid-template-columns: 1fr;
  }

  .day__head {
    position: static;
  }
}

@media (max-width: 420px) {
  .timeline::before {
    left: 40px;
  }

  .timeline__item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }

  .timeline__item time {
    width: 70px;
    font-size: 1rem;
  }
}

/* ---------- Terms table ---------- */
.terms {
  background: var(--orange-pale);
}

.terms__wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 3vw, 28px);
  box-shadow: 0 8px 0 rgba(227, 93, 5, 0.18);
}

.terms__table {
  width: 100%;
  border-collapse: collapse;
}

.terms__table th,
.terms__table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border-bottom: 2px dashed var(--line);
}

.terms__table tr:last-child th,
.terms__table tr:last-child td {
  border-bottom: 0;
}

.terms__table th {
  width: 9em;
  font-weight: 900;
  color: var(--orange-deep);
  white-space: nowrap;
}

.terms__table td b {
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
}

.terms__sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .terms__table,
  .terms__table tbody,
  .terms__table tr,
  .terms__table th,
  .terms__table td {
    display: block;
    width: 100%;
  }

  .terms__table th {
    padding: 14px 6px 2px;
    border-bottom: 0;
  }

  .terms__table td {
    padding: 0 6px 14px;
  }
}

/* ---------- FAQ ---------- */
.faq__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq__text {
  margin-top: 16px;
  color: var(--ink-soft);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa {
  border-radius: var(--radius);
  background: var(--sky-pale);
  overflow: hidden;
}

.qa summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  min-height: 60px;
  padding: 16px 60px 16px 62px;
  font-weight: 800;
  font-size: 1.05rem;
}

.qa summary::-webkit-details-marker {
  display: none;
}

/* Q マーク */
.qa summary::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky-deep);
  color: var(--white);
  font-weight: 900;
}

/* ＋／− */
.qa summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) center / 12px 3px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 3px 12px no-repeat,
    var(--orange);
  transition: transform 0.4s var(--ease);
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa.is-closing summary::after {
  transform: none;
}

.qa__a {
  position: relative;
  padding: 0 22px 0 62px;
}

/* 下の余白は中身として持たせる（高さを0まで縮めても余白が残らないように） */
.qa__a::after {
  content: "";
  display: block;
  height: 20px;
}

.qa__a::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
}

.qa__a p {
  padding-top: 4px;
}

/* 開閉の高さは script.js で実際の高さを測って動かす */
.qa__a {
  overflow: hidden;
}

@media (max-width: 860px) {
  .faq__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Entry（大きなエントリーフォーム） ---------- */
.entry {
  position: relative;
  padding: calc(var(--slant) + 80px) 0 calc(var(--slant) + 80px);
  isolation: isolate;
}

.entry__slant {
  position: absolute;
  inset: 0;
  background: var(--sky);
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
  z-index: -1;
}

.entry__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.entry__title {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  color: var(--white);
}

.entry__big {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--white);
  text-shadow: 0 5px 0 var(--orange);
  word-break: keep-all;
}

.entry__text {
  margin-top: 18px;
  font-weight: 700;
}

.entry__points {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry__points li {
  padding: 6px 14px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
}

.entry__tel {
  margin-top: 24px;
  font-weight: 800;
}

.entry__tel a {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form--entry {
  box-shadow: 10px 12px 0 var(--orange);
}

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

.form__row:has(.field--short) {
  grid-template-columns: 1fr 130px;
}

.form__group {
  border: 0;
}

.form__group legend,
.field__label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.req {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  font-size: 0.75rem;
  line-height: 1.7;
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  vertical-align: 2px;
}

.field {
  display: block;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font-size: 16px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #f8fafb;
  transition: border-color 0.2s, background-color 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}

.is-invalid,
.chips.is-invalid .chip span {
  border-color: var(--orange) !important;
  background: var(--orange-pale) !important;
}

/* 職種などのチップ型ラジオ */
.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chips--sm {
  grid-template-columns: repeat(4, 1fr);
}

.chip {
  position: relative;
  cursor: pointer;
}

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

.chip span {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 52px;
  padding: 8px 6px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: keep-all;
  border: 3px solid var(--line);
  border-radius: 14px;
  transition:
    transform 0.3s var(--ease),
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.chip:hover span {
  border-color: var(--sky);
}

.chip input:checked + span {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: none;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

.form__msg {
  min-height: 1.5em;
  font-weight: 800;
  color: var(--sky-deep);
  text-align: center;
}

.form__msg.is-error {
  color: var(--orange-deep);
}

@media (max-width: 900px) {
  .entry__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .form__row:has(.field--short) {
    grid-template-columns: 1fr 96px;
  }

  .chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .chips--sm {
    grid-template-columns: repeat(2, 1fr);
  }

  .form--entry {
    box-shadow: 6px 8px 0 var(--orange);
  }
}

/* ---------- Business ---------- */
.biz {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 3px solid var(--ink);
}

.biz__item {
  padding: 28px 22px 32px;
  border-bottom: 3px solid var(--ink);
}

.biz__item + .biz__item {
  border-left: 3px dashed var(--line);
}

.biz__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--orange-pale);
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}

.biz__item:nth-child(even) .biz__icon {
  background: var(--sky-pale);
}

.biz__item:hover .biz__icon {
  transform: translateY(-3px);
}

.biz__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.biz__item:nth-child(even) .biz__icon svg {
  stroke: var(--sky-deep);
}

.biz__item h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.biz__item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .biz {
    grid-template-columns: repeat(2, 1fr);
  }

  .biz__item:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .biz {
    grid-template-columns: 1fr;
  }

  .biz__item + .biz__item {
    border-left: 0;
  }

  .biz__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    padding: 22px 0;
  }

  .biz__icon {
    width: 56px;
    height: 56px;
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* ---------- Works ---------- */
.works {
  background: var(--sky-pale);
}

.works__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.works__top .sec-head {
  margin-bottom: 0;
}

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

.filter__btn {
  min-height: 46px;
  padding: 8px 20px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-full);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background-color 0.2s,
    color 0.2s;
}

.filter__btn:hover {
  transform: translateY(-2px);
}

.filter__btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work figure {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-pop);
}

.work img {
  aspect-ratio: 10 / 7;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s var(--ease);
}

.work:hover img {
  transform: scale(1.03);
}

.work figcaption {
  position: relative;
  padding: 26px 20px 20px;
}

.work__cat {
  position: absolute;
  top: -16px;
  left: 16px;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
}

.work[data-cat="civil"] .work__cat {
  background: var(--sky-deep);
}

.work[data-cat="exterior"] .work__cat {
  background: var(--ink);
}

.work h3 {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 8px;
}

.work dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.work dt {
  font-weight: 800;
  color: var(--ink);
}

/* 絞り込みで現れるときは、ふっと出す */
.work.is-shown {
  animation: workIn 0.4s var(--ease);
}

@keyframes workIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 960px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .works__grid {
    grid-template-columns: 1fr;
  }

  .filter__btn {
    padding: 8px 16px;
  }
}

/* ---------- Safety ---------- */
.safety {
  background: var(--ink);
  color: var(--white);
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

/* 工事現場のトラ柄の帯（上下） */
.safety::before,
.safety::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}

.safety::before {
  top: 0;
}

.safety::after {
  bottom: 0;
}

.safety__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.safety__count {
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transform: rotate(-2deg);
}

.safety__label {
  font-weight: 900;
  font-size: 1.1rem;
}

.safety__days {
  font-weight: 900;
  line-height: 1.1;
}

.safety__days b {
  font-size: clamp(4rem, 9vw, 6rem);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.safety__days span {
  font-size: 1.6rem;
}

.safety__since {
  font-size: 0.85rem;
  font-weight: 700;
}

.safety__title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 24px;
  word-break: keep-all;
}

.safety__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.safety__list li {
  padding-left: 22px;
  position: relative;
  color: #d6dde5;
}

.safety__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.safety__list b {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 860px) {
  .safety__inner {
    grid-template-columns: 1fr;
  }

  .safety__count {
    max-width: 380px;
  }
}

/* ---------- Company ---------- */
.company__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.profile > div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px solid var(--line);
}

.profile dt {
  font-weight: 900;
  color: var(--sky-deep);
}

.history {
  background: var(--orange-pale);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.history__title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.history__list li {
  position: relative;
  padding: 0 0 14px 70px;
  font-size: 0.95rem;
}

.history__list span {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--orange-deep);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .company__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--sky-pale);
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact__head p {
  margin-top: 16px;
  color: var(--ink-soft);
}

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

.contact__tel a {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--sky-deep);
  letter-spacing: 0.04em;
}

.form--contact {
  box-shadow: 0 8px 0 rgba(20, 137, 192, 0.2);
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Access ---------- */
.access {
  padding: clamp(64px, 8vw, 96px) 0;
}

.access__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.access__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 18px;
}

.access dl {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px 14px;
}

.access dt {
  font-weight: 900;
  color: var(--orange-deep);
}

.access__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--orange);
  aspect-ratio: 4 / 3;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .access__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .access dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .access dd {
    margin-bottom: 10px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0 100px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.footer__name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.footer__brand p:not(.footer__name) {
  font-size: 0.9rem;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 4px 24px;
}

.footer__nav a {
  display: inline-block;
  padding: 8px 0;
  font-weight: 800;
}

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

.footer__copy {
  text-align: center;
  margin-top: 36px;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 浮かぶエントリーボタン ---------- */
.float-entry {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  border: 4px solid var(--white);
  box-shadow: 0 6px 0 var(--orange-deep), 0 10px 20px rgba(31, 45, 61, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.float-entry span {
  display: block;
  font-size: 0.72rem;
  color: var(--yellow);
}

.float-entry.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- 少し下から出てくる（JSがあるときだけ隠す） ---------- */
html.js [data-pop] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

html.js [data-pop].is-visible {
  opacity: 1;
  transform: none;
}

/* 数字カードのずらし配置を保つ */
html.js .num:nth-child(even)[data-pop].is-visible {
  transform: translateY(18px);
}

@media (max-width: 900px) {
  .num:nth-child(even),
  html.js .num:nth-child(even)[data-pop].is-visible {
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html.js [data-pop],
  html.js .hero__line,
  html.js .hero__lead,
  html.js .hero__text,
  html.js .hero__cta {
    opacity: 1 !important;
    transform: none !important;
  }

}
