/* ============================================================
   Jimukumiai Machimin LP - Main Stylesheet
   設計図（青写真）モチーフ × 建設現場のセーフティカラー
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --navy: #16283D;
  --navy-light: #22374E;
  --navy-deep: #0E1B29;
  --orange: #F2790A;
  --orange-dark: #D9660A;
  --paper: #F4F6F5;
  --paper-alt: #EAEEEF;
  --ink: #1C2321;
  --steel: #5B6B7A;
  --steel-light: #8B99A6;
  --yellow: #FFC845;
  --green: #2F6844;
  --line: #D3DBDE;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;

  /* Layout */
  --container: 1120px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
}

/* ---------- Blueprint corner-mark signature element ---------- */
.blueprint-frame {
  position: relative;
}
.blueprint-frame::before,
.blueprint-frame::after,
.blueprint-frame .corner-tl,
.blueprint-frame .corner-br {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--orange);
  opacity: 0.85;
}
.blueprint-frame::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.blueprint-frame::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }

.dim-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
}
.dim-line::before, .dim-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 0 var(--orange-dark);
}
.btn-primary:hover { background: #FF8A1F; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--steel-light);
  letter-spacing: 0.05em;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-tel {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-align: right;
}
.header-tel small { font-size: 11px; color: var(--steel-light); }
.header-tel strong { font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.02em; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .header-tel { display: none; }
  .site-header .container { height: 64px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}
/* 写真の上に「文字の後ろだけ」を軽く暗くするオーバーレイ。
   写真そのものはできるだけクリアに見せる */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(14,27,41,0.62) 0%, rgba(14,27,41,0.38) 32%, rgba(14,27,41,0.12) 55%, rgba(14,27,41,0) 72%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242,121,10,0.14);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6.4vw, 58px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(14,27,41,0.75), 0 1px 3px rgba(14,27,41,0.9);
}
.hero-sub {
  margin-top: 24px;
  font-size: 17px;
  color: #E7ECEF;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(14,27,41,0.75);
}
.hero-org {
  margin-top: 10px;
  font-size: 14px;
  color: #FFFFFF; /*#D3DBDE;*/
  font-family: var(--font-mono);
  text-shadow: 0 1px 8px rgba(14,27,41,0.75);
}
.hero .cta-group { margin-top: 40px; justify-content: center; }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color:  #FFFFFF; /*#D3DBDE;*/
  text-shadow: 0 1px 8px rgba(14,27,41,0.75);
}

.hero-figure {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 380px;
  opacity: 0.45;
  z-index: 0;
}
@media (max-width: 980px) {
  .hero-figure { display: none; }
}

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  margin-top: 14px;
  line-height: 1.5;
}
.section-head p {
  margin-top: 16px;
  color: var(--steel);
  font-size: 15px;
}
.section-head.align-left { margin: 0 0 48px; text-align: left; }

/* ---------- Pain points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
}
.pain-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 60px;
  color: var(--orange);
  opacity: 0.25;
  position: absolute;
  top: 8px;
  left: 18px;
  line-height: 1;
}
.pain-card p {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  padding-top: 26px;
}
@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* ---------- Intro / why text block ---------- */
.why-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.why-block p { color: var(--steel); font-size: 15.5px; }
.why-block p + p { margin-top: 18px; }
.why-stat {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.why-stat .num {
  font-family: var(--font-mono);
  font-size: 42px;
  color: var(--orange);
  font-weight: 700;
}
.why-stat .label { margin-top: 6px; font-size: 14px; color: var(--steel-light); }
@media (max-width: 860px) {
  .why-block { grid-template-columns: 1fr; }
}

/* ---------- Merits ---------- */
.merit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.merit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  border-top: 4px solid var(--orange);
  box-shadow: 0 2px 14px rgba(22,40,61,0.06);
}
.merit-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
}
.merit-icon {
  width: 46px; height: 46px;
  margin: 16px 0 18px;
}
.merit-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
}
.merit-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--steel);
}
@media (max-width: 860px) {
  .merit-list { grid-template-columns: 1fr; }
}

/* ---------- Trades ---------- */
.trade-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trade-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.trade-group h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px;
  background: var(--paper-alt);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
}
.trade-note {
  margin-top: 32px;
  text-align: center;
  background: rgba(242,121,10,0.08);
  border: 1px solid rgba(242,121,10,0.35);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14.5px;
  color: var(--navy);
}
@media (max-width: 860px) {
  .trade-groups { grid-template-columns: 1fr; }
}

/* ---------- Flow ---------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow-step {
  position: relative;
  padding: 0 20px;
  border-left: 1px dashed var(--line);
}
.flow-step:first-child { border-left: none; }
.flow-step .step-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--orange);
}
.flow-step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-top: 10px;
  color: var(--white);
}
.flow-step p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--steel-light);
}
@media (max-width: 860px) {
  .flow-list { grid-template-columns: 1fr; gap: 32px; }
  .flow-step { border-left: none; padding-left: 0; border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 24px; }
  .flow-step:first-child { border-top: none; padding-top: 0; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}
.cta-banner p { margin-top: 12px; opacity: 0.95; }
.cta-banner .cta-group { justify-content: center; margin-top: 30px; }
.cta-banner .btn-outline { border-color: var(--white); }
.cta-banner .btn-primary { background: var(--navy); box-shadow: 0 6px 0 var(--navy-deep); }
.cta-banner .btn-primary:hover { background: var(--navy-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--steel-light);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { color: var(--white); font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.footer-org { margin-top: 10px; font-size: 13.5px; line-height: 1.9; }
.footer-col h5 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-tel { font-family: var(--font-mono); font-size: 20px; color: var(--white); }
.footer-hours { font-size: 13px; margin-top: 4px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Inner pages (about / privacy / contact) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 50px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
}
.page-hero .breadcrumb {
  margin-top: 14px;
  font-size: 13px;
  color: var(--steel-light);
  font-family: var(--font-mono);
}
.page-hero .breadcrumb a:hover { color: var(--orange); }

.doc-body { padding: 64px 0 96px; }
.doc-body .container { max-width: 820px; }
.doc-block + .doc-block { margin-top: 36px; }
.doc-block h2 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 14px;
}
.doc-block p, .doc-block li {
  margin-top: 14px;
  font-size: 15px;
  color: var(--steel);
}
.doc-block ul { padding-left: 4px; }
.doc-block li { position: relative; padding-left: 18px; }
.doc-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--orange);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.info-table th {
  width: 180px;
  color: var(--navy);
  font-weight: 700;
  background: var(--paper-alt);
}

/* ---------- ロボット対策：ハニーポット欄を人間には見えなくする ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form { margin-top: 8px; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row label .req {
  color: var(--orange);
  font-size: 12px;
  margin-left: 6px;
  font-weight: 700;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--orange);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--steel); margin-top: -8px; margin-bottom: 22px; }
.form-success {
  background: rgba(47,104,68,0.1);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14.5px;
}
.form-error {
  background: rgba(217,102,10,0.08);
  border: 1px solid var(--orange-dark);
  color: var(--orange-dark);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14.5px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.u-sp { display: none; }
@media (max-width: 600px) {
  .u-sp { display: inline; }
}

/* ---------- Header scroll state ---------- */
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
