/* ============================================
   W-HIGH UNIT CO., LTD. — Website Styles
   ============================================ */

/* ----- Reset & Base ----- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: light; /* ブラウザの自動ダークモード反転を防止 */
}
body {
  font-family: "Helvetica", "Arial", "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  color: #2F2E2E;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Color Variables ----- */
:root {
  --brand-teal: #179ABA;
  --brand-teal-dark: #137F98;
  --brand-navy: #19283C;
  --text-primary: #2F2E2E;
  --text-muted: #605E5E;
  --bg-light: #F5F8FA;
  --border: #E5E9EC;
}

/* ----- Container ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
}

/* Nav */
.nav-main {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-teal); }
.nav-link.active { color: var(--brand-teal); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-teal);
}

/* Header Contact */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 左揃え */
  gap: 4px;
}
.hc-item {
  display: grid;
  grid-template-columns: 22px 1fr; /* アイコン列を固定幅に */
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}
.hc-icon {
  color: var(--brand-teal);
  font-size: 16px;
  text-align: center;
  display: inline-block;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 65vh, 720px);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(20, 35, 55, 0.15) 0%, rgba(20, 35, 55, 0.25) 100%);
}
.hero-title {
  font-family: Impact, "Impact MT Std", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 18px;
}
.hero-tagline {
  font-size: clamp(15px, 2vw, 22px);
  color: #FFFFFF;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 96px 0;
}
.section-business { background: #FFFFFF; }
.section-company { background: var(--bg-light); }
.section-contact { background: #FFFFFF; padding-bottom: 120px; }

.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-row.reverse { direction: rtl; }
.section-row.reverse > * { direction: ltr; }

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.section-title.centered { text-align: center; }

.section-body {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 32px;
}
.section-body.centered { text-align: center; }

.section-image img {
  width: 100%;
  border-radius: 4px;
}

/* ----- Button ----- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.25s;
  letter-spacing: 0.02em;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-teal);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(23, 154, 186, 0.25);
}
.btn-primary:hover {
  background: var(--brand-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 154, 186, 0.35);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--brand-teal);
  border: 2px solid var(--brand-teal);
  margin-left: 12px;
}
.btn-secondary:hover {
  background: var(--brand-teal);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.btn-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ----- Contact Section ----- */
.contact-info {
  max-width: 480px;
  margin: 32px auto 28px;
  padding: 28px 32px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--brand-teal);
}
.contact-line {
  font-size: 17px;
  margin: 8px 0;
  color: var(--text-primary);
}
.contact-line a {
  color: var(--brand-teal);
  font-weight: 600;
}
.contact-line a:hover { text-decoration: underline; }
.ci-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 4px;
}
.contact-btn-wrap {
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--brand-navy);
  color: #FFFFFF;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 4px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.footer-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
}
.footer-nav li { margin-bottom: 6px; }
.footer-nav a:hover { color: var(--brand-teal); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ============================================
   Sub-Page Header (企業情報・事業内容・お問い合わせ)
   ============================================ */
.page-header {
  position: relative;
  color: #FFFFFF;
  padding: 120px 0 96px;
  text-align: center;
  background: linear-gradient(135deg, #19283C 0%, #1F4D6E 60%, #179ABA 130%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 55, 0.55) 0%, rgba(20, 35, 55, 0.65) 100%);
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header.bg-about {
  background-image: url("../images/page-header-about.jpg");
}
.page-header.bg-service {
  background-image: url("../images/page-header-service.png");
}
.page-header.bg-contact {
  background-image: url("../images/page-header-contact.png");
}
.page-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.page-subtitle {
  font-size: 14px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.lead {
  font-size: 17px;
  color: var(--text-primary);
  margin: 24px 0 56px;
  line-height: 1.9;
  text-align: center;
}
/* 汎用のセンタリングクラス */
.centered { text-align: center; }

/* ----- Company table ----- */
.company-message {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.9;
}
.company-table {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 0;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.company-table th {
  width: 180px;
  font-weight: 600;
  color: var(--brand-navy);
  background: var(--bg-light);
}
.company-table a { color: var(--brand-teal); font-weight: 600; }

/* ----- Service rows (事業内容) ----- */
.service-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-of-type { border-bottom: none; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-image img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
}
.service-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.service-body {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 12px;
}
.service-note {
  font-size: 14px;
  color: var(--text-muted);
  background: #FFF6E5;
  border-left: 3px solid #E5A53B;
  padding: 10px 14px;
  margin-top: 16px;
  display: inline-block;
}

/* ----- Company message (paragraphs) ----- */
.company-message p {
  margin-bottom: 24px;
}
.company-message p:last-child { margin-bottom: 0; }

/* ----- Business cards (legacy) ----- */
.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.business-card {
  background: var(--bg-light);
  padding: 40px 32px;
  border-radius: 8px;
  border-top: 4px solid var(--brand-teal);
}
.biz-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 16px;
}
.biz-card-body {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.9;
}
.biz-cta {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.biz-cta p {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* ----- Contact page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
}
.contact-card-icon {
  font-size: 32px;
  color: var(--brand-teal);
  margin-bottom: 12px;
}
.contact-card-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.contact-card-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card-value a { color: var(--brand-teal); }
.contact-card-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ----- Contact form ----- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}
.form-note {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 6px;
}
.form-fallback {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.form-fallback a {
  color: var(--brand-teal);
  font-weight: 600;
  text-decoration: underline;
}
.form-row {
  margin-bottom: 24px;
}
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.required {
  display: inline-block;
  background: var(--brand-teal);
  color: #FFFFFF;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(23, 154, 186, 0.12);
}
.form-submit {
  text-align: center;
  margin-top: 40px;
}
.form-submit .btn {
  min-width: 200px;
  padding: 16px 48px;
  font-size: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .header-contact {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .nav-main { gap: 24px; }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .brand { justify-content: center; }
  .nav-main {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  .header-contact {
    flex-direction: column;
    gap: 4px;
  }
  .nav-link { font-size: 14px; }

  .hero { height: 60vh; min-height: 380px; }

  .section { padding: 64px 0; }
  .section-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-row.reverse { direction: ltr; }
  .section-title { font-size: 26px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-header { padding: 64px 0 48px; }
  .page-title { font-size: 28px; }

  .company-table th { width: 130px; padding: 14px 12px; font-size: 13px; }
  .company-table td { padding: 14px 12px; font-size: 14px; }

  .business-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-value { font-size: 18px; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .service-row.reverse { direction: ltr; }
  .service-image img { max-width: 200px; }
  .service-title { font-size: 22px; }
}
