:root {
  --navy: #0d2c52;
  --navy-deep: #081b34;
  --blue: #2f6fb8;
  --gray-bg: #f5f7fa;
  --line: #e2e6ec;
  --text: #2a2f36;
}

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Top info bar */
.top-bar {
  background: var(--navy-deep);
  color: #cfd8e3;
  font-size: 0.78rem;
  text-align: right;
  padding: 6px 24px;
}
.top-bar span { margin-left: 18px; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo span {
  display: block;
  font-size: 0.62rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 2px;
}
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  color: var(--text);
  border-bottom: 3px solid transparent;
  display: block;
  transition: border-color 0.2s, color 0.2s;
}
nav a:hover, nav a.active { color: var(--navy); border-color: var(--blue); }

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8,27,52,0.92) 30%, rgba(13,44,82,0.55));
}
.hero-content { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 5px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.hero p { font-size: 1rem; opacity: 0.88; margin-bottom: 32px; max-width: 560px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn:hover { background: #255c9a; }
.btn-outline {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  padding: 13px 30px;
  font-weight: 700;
  border-radius: 4px;
}

/* Sections */
section { padding: 84px 24px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: block;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.section-title { font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.section-sub { color: #666; margin-top: 12px; font-size: 0.95rem; }
.bg-gray { background: var(--gray-bg); }
.bg-navy { background: var(--navy); color: #fff; }

/* Exterior photo (about page) */
.exterior-photo {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.exterior-photo img { width: 100%; height: 380px; object-fit: cover; display: block; }
.exterior-caption { text-align: center; color: #777; font-size: 0.85rem; }

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 10px 24px rgba(13,44,82,0.1); transform: translateY(-4px); }
.service-photo { height: 170px; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 24px; }
.service-num { color: var(--blue); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; margin-bottom: 8px; display: block; }
.service-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 0.88rem; color: #555; }

/* Process flow (施工の流れ) */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.flow-step::after {
  content: "→";
  position: absolute;
  top: 26px;
  right: -6px;
  color: var(--blue);
  font-size: 1.3rem;
}
.flow-step:last-child::after { content: ""; }
.flow-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.flow-step h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.flow-step p { font-size: 0.82rem; color: #666; }

/* Strengths - 4 point list */
.strength-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strength-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 32px 22px;
  text-align: center;
}
.strength-item .num { color: var(--blue); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.strength-item h3 { font-size: 1.02rem; margin-bottom: 10px; font-weight: 700; }
.strength-item p { font-size: 0.85rem; opacity: 0.8; }

/* Table */
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; }
table th { background: var(--gray-bg); color: var(--navy); width: 180px; font-weight: 700; font-size: 0.92rem; }
table td { font-size: 0.92rem; }

/* About profile */
.profile-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.profile-flex img { width: 240px; border-radius: 6px; flex-shrink: 0; }
.profile-flex .signature { text-align: right; margin-top: 18px; color: var(--navy); font-weight: 700; }

/* History timeline */
.history-table { max-width: 760px; margin: 0 auto; }
.h-row {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.h-row .h-year { min-width: 90px; font-weight: 700; color: var(--navy); }
.h-row p { color: #555; font-size: 0.92rem; }

/* Works grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.work-photo { height: 190px; overflow: hidden; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 22px; }
.work-body h3 { font-weight: 700; margin-bottom: 8px; font-size: 1rem; color: var(--navy); }
.work-body p { font-size: 0.85rem; color: #555; }
.tag {
  display: inline-block;
  background: var(--gray-bg);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

/* CTA */
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta h2 { font-weight: 700; margin-bottom: 14px; font-size: 1.7rem; }
.cta p { margin-bottom: 26px; opacity: 0.85; }
.cta .btn { background: var(--blue); }

/* Access */
.access-flex {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}
.map-wrap { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Contact */
.contact-flex { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.contact-side {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 26px;
}
.contact-side h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 14px; }
.contact-side .tel { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-side p { font-size: 0.85rem; color: #666; margin-bottom: 4px; }

/* Form */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd5dd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--blue);
}
.required {
  background: #c0392b;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.submit-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 16px 46px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}
.submit-btn:hover { background: var(--navy-deep); }

/* Footer */
footer { background: var(--navy-deep); color: #b9c3d1; padding: 56px 24px 24px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-inner h4 { color: #fff; margin-bottom: 16px; font-size: 0.98rem; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; font-size: 0.88rem; }
.copyright {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}

/* Page header */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.page-header h1 { font-size: 1.9rem; font-weight: 700; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .flow-step::after { display: none; }
  .strength-list { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .profile-flex { flex-direction: column; }
  .profile-flex img { width: 100%; max-width: 280px; margin: 0 auto; }
  .access-flex { grid-template-columns: 1fr; }
  .contact-flex { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-bar { text-align: center; }
  nav ul { justify-content: center; }
  .header-inner { flex-direction: column; gap: 8px; text-align: center; }
  .service-grid { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  .strength-list { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  table th { width: 120px; font-size: 0.85rem; }
}
