/* ==================================================
   足場のたくみ — Step 2 B案「安全色のKY活動表」
   KY活動表＋現場写真台帳へ再構成
   ================================================== */

:root {
  --c-bg: #f7f7f2;
  --c-paper: #ffffff;
  --c-ink: #171717;
  --c-ink-soft: #4a4a42;
  --c-yellow: #f0b90b;
  --c-yellow-soft: #fff2b8;
  --c-cell: #ece6d2;
  --c-line: #171717;
  --c-rule: #d8d2bf;
  --shadow: 10px 12px 0 rgba(23, 23, 23, .16);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 70px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--c-ink);
  background:
    linear-gradient(var(--c-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-rule) 1px, transparent 1px),
    var(--c-bg);
  background-size: 28px 28px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 36px, var(--maxw)); margin: 0 auto; }

.demo-banner {
  background: var(--c-ink);
  color: var(--c-bg);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 4px solid var(--c-yellow);
}
.demo-banner strong {
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 2px 8px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 64px;
  background: var(--c-ink);
  border-top: 3px solid var(--c-yellow);
}
.sticky-cta a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--c-bg);
  font-weight: 800;
  text-decoration: none;
}
.sticky-cta__line { background: var(--c-yellow); color: var(--c-ink) !important; }
.sticky-cta__label { font-size: 11px; letter-spacing: .1em; opacity: .75; }
.sticky-cta__number { font-size: 20px; line-height: 1.1; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 2px solid var(--c-line);
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}
.section-lead {
  margin: 0 0 28px;
  max-width: 720px;
  color: var(--c-ink-soft);
  font-size: 16px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border: 2px solid var(--c-line);
  background: var(--c-yellow);
  color: var(--c-ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 6px 0 rgba(23, 23, 23, .16);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--phone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  min-width: min(100%, 320px);
  text-align: center;
}
.btn__label,
.btn__small {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
}
.btn__big {
  display: block;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1;
}
.btn--outline {
  background: var(--c-paper);
}
.btn--submit {
  width: 100%;
  cursor: pointer;
  font-size: 16px;
}

.ky-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
  padding: clamp(36px, 7vw, 82px) 0;
}
.ky-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 55%;
  background: var(--c-ink);
  z-index: 0;
}
.ky-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: 55vw 45vw;
  gap: 0;
  align-items: start;
}
.ky-hero__copy {
  width: min(100% - 36px, 680px);
  justify-self: end;
  margin-right: clamp(28px, 4vw, 64px);
}
.ky-hero__copy h1 {
  margin: 0 0 20px;
  max-width: 720px;
  font-size: clamp(40px, 7.2vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}
.ky-hero__copy h1 span {
  display: block;
  white-space: nowrap;
}
.ky-hero__lead {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 800;
}
.ky-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ky-board {
  width: min(calc(100% - 72px), 520px);
  justify-self: center;
  background: var(--c-paper);
  border: 3px solid var(--c-line);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 34px;
}
.ky-board__head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--c-line);
  margin-bottom: 18px;
}
.ky-board__head div {
  min-height: 62px;
  padding: 8px 9px;
  border-right: 1px solid var(--c-line);
  background: var(--c-cell);
}
.ky-board__head div:last-child { border-right: 0; background: var(--c-yellow); }
.ky-board__head span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  opacity: .72;
}
.ky-board__head b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}
.ky-board h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--c-yellow);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}
.ky-board__rows { display: grid; gap: 10px; }
.ky-row {
  display: grid;
  grid-template-columns: 48px 1fr minmax(120px, .56fr);
  border: 2px solid var(--c-line);
  min-height: 58px;
}
.ky-row b,
.ky-row span,
.ky-row em {
  display: flex;
  align-items: center;
  padding: 10px;
  border-right: 1px solid var(--c-line);
  font-style: normal;
  font-weight: 900;
}
.ky-row b { background: var(--c-yellow); justify-content: center; }
.ky-row em { border-right: 0; background: var(--c-ink); color: var(--c-bg); font-size: 13px; }
.ky-board__note {
  margin: 14px 0 0;
  padding: 12px;
  border: 2px dashed var(--c-line);
  background: var(--c-yellow-soft);
  font-size: 13px;
  font-weight: 800;
}

.photo-log { background: var(--c-paper); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.photo-card {
  border: 2px solid var(--c-line);
  background: var(--c-bg);
  box-shadow: 6px 7px 0 rgba(23, 23, 23, .12);
}
.photo-card__img {
  min-height: 190px;
  border-bottom: 2px solid var(--c-line);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255,255,255,.26) 45% 55%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 3px, transparent 3px 20px),
    linear-gradient(135deg, #777, #252525);
}
.photo-card__img--01 { background-color: #555; }
.photo-card__img--02 { background-color: #666; }
.photo-card__img--03 { background-color: #4b4b4b; }
.photo-card__img--04 { background-color: #5f5f5f; }
.photo-card__meta { padding: 14px; }
.photo-card__meta span {
  display: inline-block;
  margin-bottom: 8px;
  background: var(--c-yellow);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
}
.photo-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}
.photo-card p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.scaffold-plan { background: var(--c-bg); }
.plan-table {
  border: 2px solid var(--c-line);
  background: var(--c-paper);
  box-shadow: var(--shadow);
}
.plan-row {
  display: grid;
  grid-template-columns: .65fr 1.15fr 1.2fr;
  border-bottom: 1px solid var(--c-line);
}
.plan-row:last-child { border-bottom: 0; }
.plan-row div {
  padding: 14px 16px;
  border-right: 1px solid var(--c-line);
  font-weight: 800;
}
.plan-row div:last-child { border-right: 0; }
.plan-row--head div {
  background: var(--c-yellow);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.safety-record { background: var(--c-ink); color: var(--c-bg); }
.safety-record .section-lead { color: #d7d0bc; }
.record-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.record-grid article {
  border: 1px solid var(--c-yellow);
  padding: 18px;
  background: rgba(255,255,255,.05);
}
.record-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-weight: 900;
}
.record-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}
.record-grid p {
  margin: 0;
  color: #d7d0bc;
  font-size: 13px;
  font-weight: 700;
}
.license-box {
  margin-top: 18px;
  border: 2px solid var(--c-yellow);
  padding: 16px;
  display: grid;
  gap: 4px;
}
.license-box b { color: var(--c-yellow); }
.license-box span { color: #d7d0bc; font-size: 14px; font-weight: 700; }

.estimate { background: var(--c-paper); }
.estimate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.estimate-grid article {
  border: 2px solid var(--c-line);
  padding: 18px;
  background: var(--c-bg);
}
.estimate-grid span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}
.estimate-grid b {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}
.estimate-grid p,
.estimate__note {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.estimate__note { margin-top: 14px; }

.partner {
  background: var(--c-yellow);
  padding: clamp(44px, 7vw, 70px) 0;
}
.partner__grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 30px;
  align-items: center;
}
.partner .section-title { margin-bottom: 14px; }
.partner-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.partner-list li {
  background: var(--c-paper);
  border: 2px solid var(--c-line);
  padding: 13px 14px;
  font-weight: 900;
}

.faq { background: var(--c-bg); }
.faq-list {
  border: 2px solid var(--c-line);
  background: var(--c-paper);
}
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 900;
}
.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--c-ink-soft);
  font-weight: 700;
}

.contact { background: var(--c-paper); }
.contact__grid {
  display: grid;
  grid-template-columns: .86fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-phone {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  border: 2px solid var(--c-line);
  background: var(--c-yellow);
  padding: 18px;
  max-width: 380px;
  box-shadow: 6px 7px 0 rgba(23, 23, 23, .12);
}
.contact-phone span,
.contact-phone small { font-weight: 900; }
.contact-phone b {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}
.contact-form {
  display: grid;
  gap: 14px;
  border: 2px solid var(--c-line);
  background: var(--c-bg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: 6px; font-weight: 900; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 2px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 12px;
  font: inherit;
  font-weight: 700;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 3px solid var(--c-yellow);
}
.privacy-note {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 28px 0;
  border-top: 4px solid var(--c-yellow);
}
.site-footer p { margin: 4px 0; color: #d7d0bc; }
.site-footer__name {
  color: var(--c-yellow) !important;
  font-size: 22px;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 1000px) {
  .ky-hero {
    background: var(--c-bg);
  }
  .ky-hero::after {
    display: none;
  }
  .ky-hero__grid,
  .partner__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .ky-hero__grid {
    width: min(100% - 36px, var(--maxw));
    margin: 0 auto;
  }
  .ky-hero__copy {
    width: 100%;
    justify-self: stretch;
    margin-right: 0;
  }
  .ky-board {
    width: 100%;
    margin-top: 0;
  }
  .photo-grid,
  .record-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--maxw)); }
  .demo-banner { justify-content: flex-start; }
  .ky-board__head,
  .photo-grid,
  .record-grid,
  .estimate-grid,
  .partner-list {
    grid-template-columns: 1fr;
  }
  .ky-row {
    grid-template-columns: 44px 1fr;
  }
  .ky-row em {
    grid-column: 1 / -1;
    border-top: 1px solid var(--c-line);
  }
  .plan-row {
    grid-template-columns: 1fr;
  }
  .plan-row div {
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }
  .plan-row div:last-child { border-bottom: 0; }
  .photo-card__img { min-height: 150px; }
  .ky-hero__copy h1 {
    font-size: clamp(36px, 12vw, 58px);
  }
}

@media print {
  body { background: #fff; padding-bottom: 0; }
  .demo-banner,
  .sticky-cta,
  .ky-hero__actions,
  .contact-form { display: none; }
  .section,
  .ky-hero { padding: 18mm 0; break-inside: avoid; }
}
