/* =========================================================
   株式会社大川工業 採用LP — style.css
   Domain: ookawakogyo-recruit.com
   Generated by: STEP3 build
   ========================================================= */

/* ===== Theme tokens ===== */
:root {
  --accent: #2a9d8f;
  --accent-dark: #1f7a6f;
  --accent-darker: #142f2b;
  --cta: #e76f51;
  --cta-dark: #c25a3f;
  --text: #1a1a1a;
  --muted: #5a6b66;
  --border: #e3e8e8;
  --bg: #ffffff;
  --bg-soft: #f6f9f8;
  --placeholder: #d8dcdb;
}

/* ===== Reset / Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: none;
  border-style: none;
  border-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
  outline: none;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans JP', -apple-system, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}

/* ===== Typography ===== */
h2 {
  margin: 0 0 24px;
  font-size: clamp(22px, 3.2vw, 30px);
  text-align: center;
  font-weight: 900;
  color: var(--accent-darker);
  line-height: 1.4;
  position: relative;
  display: block;
}
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--cta);
  border-radius: 2px;
  margin: 12px auto 0;
}
h3 {
  margin: 0 0 12px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: var(--accent-darker);
  line-height: 1.5;
}
p {
  margin: 0 0 12px;
  color: var(--text);
}
p.lead {
  text-align: center;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
}
strong {
  font-weight: 700;
  color: var(--accent-dark, var(--accent));
}
section {
  padding: 56px 20px;
  border: none;
}

/* ===== Header ===== */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hdr .logo {
  font-weight: 900;
  font-size: 18px;
  color: var(--accent-darker);
  background: none;
  border: none;
  padding: 0;
}
.hdr .nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hdr .nav a {
  font-size: 14px;
  display: inline-block;
  padding: 6px 4px;
  background: none;
  border: none;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}
.hdr .nav a:hover {
  color: var(--accent);
}
.hdr .ham {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 22px;
  font-family: inherit;
  color: var(--accent-darker);
  border-radius: 8px;
  line-height: 1;
}
.hdr .nav.is-open ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 16px 20px 20px;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 99;
}
.hdr .nav.is-open ul li a {
  padding: 10px 8px;
  display: block;
  font-size: 15px;
  font-weight: 500;
}

/* ===== FV ===== */
.fv {
  width: 100%;
  min-height: clamp(360px, 50vw, 560px);
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 60%,
    var(--accent-darker) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  border: none;
  position: relative;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}
.fv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.fv-text {
  max-width: 760px;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.fv h1 {
  font-size: clamp(24px, 3.8vw, 40px);
  margin: 0 0 10px;
  line-height: 1.4;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.fv p {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  background: none;
  border: none;
  color: #ffffff;
  opacity: 0.97;
  line-height: 1.65;
}

/* ===== Slider (infinite loop) ===== */
.slider {
  padding: 36px 0;
  border: none;
  background: var(--bg-soft);
  overflow: hidden;
}
.slider-track {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  border: none;
  width: max-content;
  animation: slider-loop 40s linear infinite;
  will-change: transform;
}
.slider:hover .slider-track {
  animation-play-state: paused;
}
.slide {
  flex: 0 0 320px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--placeholder) 0%, #c8cfcd 100%);
  border: none;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}
.slide:has(img)::before {
  content: none;
}
.slide::before {
  content: "施工実績 \4f5c\u696d\30d5\30a9\30c8";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
@keyframes slider-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== About / Closing ===== */
.about-row,
.closing-row {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  background: none;
  border: none;
}
.about-row .photo,
.closing-row .photo {
  flex: 0 0 45%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--placeholder) 0%, #c8cfcd 100%);
  border: none;
  border-radius: 10px;
  position: relative;
}
.about-row .photo::before,
.closing-row .photo::before {
  content: "写真 (4:3)";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.about-row .text,
.closing-row .text {
  flex: 1;
  background: none;
  border: none;
}

/* ===== Welcome ===== */
.welcome-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.welcome-list li {
  margin-bottom: 0;
  padding: 22px 28px;
  background: #fff;
  border: none;
  border-left: 4px solid var(--cta);
  border-radius: 10px;
  list-style: none;
  box-shadow: 0 2px 10px rgba(20, 47, 43, 0.06);
  font-size: 17px;
  font-weight: 500;
}

/* ===== Job zigzag ===== */
.job-blocks {
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  background: none;
}
.job-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
  background: none;
  border: none;
  padding: 0;
}
.job-block .photo {
  flex: 0 0 45%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--placeholder) 0%, #c8cfcd 100%);
  border: none;
  border-radius: 10px;
  position: relative;
}
.job-block .photo::before {
  content: "写真 (4:3)";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.job-block .job-text {
  flex: 1;
  background: none;
  border: none;
}
.job-block.image-right .photo {
  order: 1;
}
.job-block.image-left .photo {
  order: -1;
}
.lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px;
  border: none;
  background: none;
}

/* ===== CTA ===== */
.cta {
  padding: 40px 20px;
  border: none;
}
.cta-1 .box,
.cta-2 .box {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  padding: 28px 24px;
  text-align: center;
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(20, 47, 43, 0.08);
  border-top: 4px solid var(--accent);
}
.cta-1 .box p,
.cta-2 .box p {
  background: none;
  border: none;
  margin: 0 0 12px;
  color: var(--text);
}
.cta-1 .box p:first-child {
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.cta h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  margin-bottom: 12px;
  color: var(--accent-darker);
  font-weight: 900;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  background: none;
  border: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  min-width: 0;
  flex: 1 1 240px;
  max-width: 360px;
  font-family: inherit;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn-tel {
  background: var(--cta);
}
.btn-tel:hover {
  background: var(--cta-dark);
}
.btn-contact {
  background: var(--accent);
}
.btn-contact:hover {
  background: var(--accent-dark);
}
.btn .ico {
  font-size: 17px;
  line-height: 1;
}

/* ===== Cards (flow / charm / members) ===== */
.flow-cards,
.charm-cards,
.member-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  background: none;
  border: none;
}
.card {
  border: 1px solid var(--border);
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 47, 43, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 47, 43, 0.1);
}
.card h3 {
  text-align: center;
  color: var(--accent-darker);
}
.card .photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--placeholder) 0%, #c8cfcd 100%);
  margin-bottom: 14px;
  width: 100%;
  border: none;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.card .photo::before {
  content: "写真 (4:3)";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Schedule ===== */
.schedule-card {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 47, 43, 0.06);
}
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
}
.schedule-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  align-items: flex-start;
}
.schedule-list li:last-child {
  border-bottom: none;
}
.schedule-list time {
  flex: 0 0 80px;
  font-weight: 700;
  color: var(--cta);
  background: none;
  border: none;
  font-size: 17px;
  padding-top: 1px;
}
.schedule-list span {
  flex: 1;
  background: none;
  border: none;
  font-size: 15px;
  color: var(--text);
}

/* ===== Requirements ===== */
.requirements-card {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 47, 43, 0.06);
}
.req-row {
  display: flex;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: none;
  align-items: flex-start;
}
.req-row:first-child {
  border-top: none;
}
.req-label {
  flex: 0 0 200px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-darker);
  font-size: 15px;
}
.req-content {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  color: var(--text);
}
.req-content p {
  margin: 0 0 6px;
}
.req-content p:last-child {
  margin-bottom: 0;
}

/* ===== Contact ===== */
#contact {
  background: var(--bg-soft);
  padding: 56px 20px;
  border: none;
}
#contact h2 {
  margin-bottom: 28px;
}
#contact form {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  padding: 28px 24px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(20, 47, 43, 0.08);
}
.field {
  margin-bottom: 16px;
  background: none;
  border: none;
}
.field:last-child {
  margin-bottom: 0;
}
label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-darker);
  font-size: 14px;
}
.required {
  font-size: 11px;
  font-weight: 700;
  border: none;
  padding: 2px 6px;
  margin-left: 8px;
  background: var(--cta);
  color: #ffffff;
  display: inline-block;
  border-radius: 4px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #ffffff;
  display: block;
  margin: 0;
  outline: none;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.18);
}
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}
form * {
  font-family: inherit;
  color: #1a1a1a;
}

/* ===== Honeypot (visual hidden) ===== */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== Focus accessibility ===== */
a:focus-visible,
button:focus-visible,
.hdr .ham:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body {
    line-height: 1.75;
  }
  .hdr .nav ul {
    display: none;
  }
  .hdr .ham {
    display: block;
  }
  .hdr .nav.is-open ul {
    top: 60px;
  }
  section {
    padding: 44px 18px;
  }
  .about-row,
  .closing-row,
  .job-block {
    flex-direction: column;
    gap: 18px;
  }
  .about-row .photo,
  .closing-row .photo,
  .job-block .photo {
    flex: none;
    width: 100%;
    order: 0;
  }
  .about-row .text,
  .closing-row .text,
  .job-block .job-text {
    order: 1;
    width: 100%;
  }
  .job-block.image-right .photo {
    order: 0;
  }
  .job-block.image-right .job-text {
    order: 1;
  }
  .job-block.image-left .photo {
    order: 0;
  }
  .job-block.image-left .job-text {
    order: 1;
  }
  .job-block {
    margin-bottom: 32px;
  }
  .flow-cards,
  .charm-cards,
  .member-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cta-1 .box,
  .cta-2 .box {
    padding: 22px 18px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    padding: 14px 20px;
    font-size: 15px;
  }
  .req-row {
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
  }
  .req-label {
    flex: none;
    margin-bottom: 4px;
  }
  .schedule-card {
    padding: 20px 16px;
  }
  .schedule-list time {
    flex: 0 0 60px;
    font-size: 15px;
  }
  #contact form {
    padding: 22px 18px;
  }
  .fv {
    aspect-ratio: auto;
    min-height: 360px;
    padding: 48px 20px;
  }
  .fv h1 {
    font-size: clamp(22px, 6.4vw, 30px);
  }
  .slide {
    flex: 0 0 70vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Real photo override (kept last for cascade priority) ===== */
.about-row .photo.has-img,
.closing-row .photo.has-img,
.job-block .photo.has-img,
.card .photo.has-img {
  background: none;
  overflow: hidden;
}
.about-row .photo.has-img::before,
.closing-row .photo.has-img::before,
.job-block .photo.has-img::before,
.card .photo.has-img::before {
  content: none;
}
.photo.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
