:root {
  --navy: #1a3a5c;
  --navy-dark: #0d2035;
  --gold: #b8923f;
  --gold-light: #d9b970;
  --gray-bg: #f5f4f0;
  --text: #2c2c2c;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { 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.9;
  background: #fff;
}

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

/* Top info bar */
.top-bar {
  background: var(--navy-dark);
  color: #cfd8e3;
  font-size: 0.8rem;
  padding: 8px 24px;
  text-align: right;
}
.top-bar .inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e5e2da;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.logo span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 4px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  display: block;
  color: var(--navy);
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

/* Full-bleed hero */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,32,53,0.55), rgba(13,32,53,0.82));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 20px;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  padding: 6px 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.3rem;
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 34px;
  opacity: 0.92;
}
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 15px 38px;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-light); }
.btn-outline {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  padding: 14px 36px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-left: 12px;
}

/* Sections */
section { padding: 88px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}
.section-sub {
  text-align: center;
  color: #777;
  margin-bottom: 60px;
  font-size: 0.95rem;
}
.bg-gray { background: var(--gray-bg); }

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

/* Services: alternating rows */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid #e5e2da;
}
.service-row:first-child { padding-top: 0; }
.service-row .service-photo {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e5e2da;
}
.service-row .service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-row h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.service-row h3 .icon { margin-right: 8px; }
.service-row p { color: #555; font-size: 0.92rem; }

/* Timeline (strengths / history) */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #d8d2c4;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .num {
  position: relative;
  z-index: 1;
  min-width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-item h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.timeline-item p { color: #555; font-size: 0.92rem; }

/* History table variant (year list) */
.history-list { max-width: 700px; margin: 0 auto; }
.history-list .h-row {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e2da;
}
.history-list .h-year {
  min-width: 90px;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: bold;
}

/* Table */
table { width: 100%; border-collapse: collapse; }
table th, table td {
  padding: 18px;
  border-bottom: 1px solid #e5e2da;
  text-align: left;
  vertical-align: top;
}
table th {
  background: var(--gray-bg);
  color: var(--navy);
  width: 200px;
  font-weight: 600;
}

/* About: profile flex */
.profile-flex {
  display: flex;
  align-items: center;
  gap: 56px;
}
.profile-flex img {
  width: 240px;
  border-radius: 4px;
  flex-shrink: 0;
}
.profile-flex .profile-text { flex: 1; }
.profile-flex .signature {
  text-align: right;
  margin-top: 20px;
  font-family: var(--serif);
}

/* Works: masonry-ish grid with overlay caption */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  min-height: 320px;
}
.work-card:nth-child(3n+1) { grid-column: span 2; }
.work-photo { position: absolute; inset: 0; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,32,53,0) 40%, rgba(13,32,53,0.92) 100%);
}
.work-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2;
}
.work-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.work-body p { font-size: 0.82rem; opacity: 0.9; }
.tag {
  display: inline-block;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* CTA */
.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta h2 { font-family: var(--serif); margin-bottom: 16px; font-size: 1.6rem; }
.cta p { margin-bottom: 28px; opacity: 0.9; }

/* Access: two column */
.access-flex {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}
.access-flex table th { width: 110px; }
.map-wrap { border-radius: 4px; overflow: hidden; border: 1px solid #e5e2da; height: 100%; min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Contact: sidebar layout */
.contact-flex {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
.contact-side {
  background: var(--gray-bg);
  padding: 32px 26px;
  border-radius: 4px;
  height: fit-content;
}
.contact-side h3 { color: var(--navy); font-family: var(--serif); margin-bottom: 16px; }
.contact-side .tel { font-size: 1.4rem; color: var(--navy); font-weight: bold; margin-bottom: 6px; }
.contact-side p { font-size: 0.85rem; color: #666; }
.contact-side hr { border: none; border-top: 1px solid #ddd8ca; margin: 20px 0; }

/* Form */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}
.required {
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.submit-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: block;
}
.submit-btn:hover { background: var(--navy-dark); }

/* Footer */
footer { background: var(--navy-dark); color: #cfd8e3; padding: 56px 24px 24px; }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-inner h4 { color: #fff; margin-bottom: 16px; font-family: var(--serif); }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; font-size: 0.9rem; }
.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
}

/* Breadcrumb / page header */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.page-header h1 { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.05em; }

.staff-photo { display: none; } /* replaced by profile-flex image */

@media (max-width: 900px) {
  .profile-flex { flex-direction: column; text-align: center; }
  .profile-flex .signature { text-align: center; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(3n+1) { grid-column: span 2; }
  .access-flex { grid-template-columns: 1fr; }
  .contact-flex { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-bar { text-align: center; }
  .top-bar .inner { justify-content: center; }
  nav ul { gap: 0; flex-wrap: wrap; justify-content: center; }
  .header-inner { flex-direction: column; gap: 8px; text-align: center; }
  .service-row { flex-direction: column; text-align: center; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(3n+1) { grid-column: span 1; }
  table th { width: 120px; font-size: 0.85rem; }
  .timeline-item { flex-direction: column; gap: 12px; text-align: center; }
  .timeline::before { left: 50%; }
  .timeline-item .num { margin: 0 auto; }
}
