/* ==========================================================================
   株式会社コウセイテック — Warm Editorial (based on awesome-claude-design
   design-md/warm/mercury.md: cream canvas / warm-gray ink / single indigo
   accent, tuned to the corporate navy logo)
   ========================================================================== */

:root {
  --bg-primary: #f6f5f2;
  --bg-secondary: #ebe8e0;
  --bg-tertiary: #ded9ca;
  --surface: #ffffff;
  --text-primary: #2a2924;
  --text-secondary: #5a5548;
  --text-muted: #8a8478;
  --accent: #2c3da0;        /* コーポレートロゴの紺に合わせた藍 */
  --accent-hover: #232f85;
  --border: #ded9ca;
  --border-strong: #c9c3b3;
  --success: #2f7d57;
  --serif: "Shippori Mincho", "Iowan Old Style", "Hiragino Mincho ProN", Georgia, serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
address { font-style: normal; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- Typography ------------------------------------------------------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { font-size: 32px; margin-bottom: 16px; }
.section-lead { color: var(--text-secondary); max-width: 640px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-secondary); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-secondary:hover { background: var(--border-strong); color: var(--text-primary); }
.btn-outline { border-color: var(--border-strong); color: var(--text-primary); background: transparent; }
.btn-outline:hover { background: var(--bg-secondary); color: var(--text-primary); }
.btn-large { padding: 14px 36px; font-size: 16px; }

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand img { width: 180px; height: auto; }
.global-nav { flex: 1; }
.global-nav ul { display: flex; gap: 4px; }
.global-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 2px solid transparent;
}
.global-nav a:hover { color: var(--accent); }
.global-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.header-contact { display: flex; align-items: center; gap: 16px; }
.header-tel { display: flex; flex-direction: column; line-height: 1.3; color: var(--text-primary); }
.header-tel .tel-number { font-family: var(--serif); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.header-tel .tel-hours { font-size: 11px; color: var(--text-muted); }
.nav-toggle { display: none; }

/* --- Hero (home) -------------------------------------------------------- */

.hero { padding: 80px 0 0; overflow: hidden; }
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-lead { color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 12px; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-figure figcaption { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.hero-permits {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.hero-permits .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
  justify-content: center;
}
.hero-permits span { font-size: 12.5px; color: var(--text-secondary); letter-spacing: 0.04em; }

/* --- Stats -------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}
.stat-card .stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--text-primary);
}
.stat-card .stat-value .unit { font-size: 18px; margin-left: 4px; }
.stat-card .stat-note { font-size: 13px; color: var(--text-secondary); margin-top: 12px; line-height: 1.7; }

/* --- Cards -------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
}
.section-alt .card { border-color: transparent; }
.card .card-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text-secondary); }

/* --- Steps (工事の流れ) -------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--text-secondary); }
.step .step-note { font-size: 13px; color: var(--text-muted); }

/* --- Tag list (対応工事) -------------------------------------------------- */

.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tag-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.tag-item h3 { font-size: 17px; margin-bottom: 4px; }
.tag-item p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

/* --- Page hero (下層) ----------------------------------------------------- */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.page-hero h1 { font-size: 36px; }
.page-hero .page-lead { color: var(--text-secondary); margin-top: 16px; max-width: 640px; }
.breadcrumb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }

/* --- Definition table (会社概要 / 募集要項) -------------------------------- */

.def-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.def-table th, .def-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: none; }
.def-table th {
  width: 180px;
  background: var(--bg-secondary);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.def-table td ul li { padding-left: 1em; text-indent: -1em; }
.def-table td ul li::before { content: "・"; }

/* --- History (沿革) -------------------------------------------------------- */

.history { border-left: 2px solid var(--border-strong); margin-left: 8px; }
.history li { position: relative; padding: 0 0 28px 32px; }
.history li:last-child { padding-bottom: 4px; }
.history li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
}
.history .history-date {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* --- Offices -------------------------------------------------------------- */

.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.office-card h3 { font-size: 19px; margin-bottom: 12px; }
.office-card p { font-size: 15px; color: var(--text-secondary); }
.office-card .office-tel { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.office-card .office-links { margin-top: 12px; font-size: 14px; }

/* --- Interview ------------------------------------------------------------ */

.interview-list { display: grid; gap: 32px; }
.interview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}
.interview-card .interview-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.08em; }
.interview-card h3 { font-size: 24px; margin-bottom: 24px; }
.interview-qa dt { font-weight: 700; font-size: 15px; margin-top: 20px; color: var(--accent); }
.interview-qa dt::before { content: "Q. "; font-family: var(--serif); }
.interview-qa dd { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }

/* --- CTA band -------------------------------------------------------------- */

.cta-band {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-strong);
  padding: 80px 0;
  text-align: center;
}
.cta-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 12px; }
.cta-title { font-size: 30px; margin-bottom: 16px; }
.cta-lead { color: var(--text-secondary); margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-tel { display: flex; flex-direction: column; color: var(--text-primary); line-height: 1.4; }
.cta-tel:hover { color: var(--text-primary); }
.cta-tel-label { font-size: 13px; color: var(--text-secondary); }
.cta-tel-number { font-family: var(--serif); font-size: 38px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cta-tel-hours { font-size: 12.5px; color: var(--text-muted); }

/* --- Forms ------------------------------------------------------------------ */

.form-grid { display: grid; gap: 24px; max-width: 720px; }
.form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-field .req {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-field .field-note { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.radio-row { display: flex; gap: 24px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }

/* --- Footer ------------------------------------------------------------------ */

.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 20px; }
.footer-company p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 12px; }
.footer-nav { display: flex; gap: 48px; }
.footer-nav a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-secondary); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-bottom small { font-size: 12px; color: var(--text-muted); }

/* --- Technology section --------------------------------------------------------- */

.tech-claim {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin: 56px 0 28px;
}
.tech-note {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

/* --- Utility ------------------------------------------------------------------ */

.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.center { text-align: center; }
.note-box {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.prose h2 { font-size: 24px; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose ul { margin: 0 0 16px; }
.prose ul li { padding-left: 1.2em; text-indent: -1.2em; color: var(--text-secondary); }
.prose ul li::before { content: "・"; color: var(--accent); }

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 1023px) {
  .global-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .global-nav a.is-active { border-bottom-color: var(--border); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; }
  .header-inner { gap: 16px; }
  .header-contact { margin-left: auto; }
  .header-cta { display: none; }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .stats-grid, .card-grid, .card-grid-2, .tag-grid, .office-grid { grid-template-columns: 1fr; }
  .header-tel .tel-hours { display: none; }
  .header-tel .tel-number { font-size: 16px; white-space: nowrap; }
  .brand img { width: 132px; }
  .header-inner { gap: 12px; height: 64px; }
  .global-nav { top: 64px; }
  .def-table th { display: block; width: 100%; border-bottom: none; padding-bottom: 4px; }
  .def-table td { display: block; padding-top: 4px; }
  .cta-tel-number { font-size: 32px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .interview-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
