:root {
  --navy: #16305c;
  --navy-deep: #0e2142;
  --blue: #2563a8;
  --blue-dark: #163f72;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-blue: #eef4fb;
  --text: #202531;
  --text-muted: #56606f;
  --border: #e6eaf0;
  --shadow-sm: 0 6px 20px rgba(15, 35, 65, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 35, 65, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

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

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.siteHeader .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.siteHeader .logo img {
  height: 44px;
  width: auto;
}

.siteHeader nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.siteHeader nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.siteHeader nav a:hover {
  color: var(--blue);
}

.headerTel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.headerTel:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.headerTel .icon {
  font-size: 16px;
}

.navToggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 780px) {
  .siteHeader .container {
    height: 64px;
    gap: 10px;
  }
  .siteHeader .logo img {
    height: 30px;
  }
  .siteHeader nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .siteHeader nav.isOpen {
    transform: translateX(0);
  }
  .siteHeader nav a {
    font-size: 18px;
  }
  .navToggle {
    display: block;
    flex-shrink: 0;
  }
  .headerTel {
    flex-shrink: 0;
    padding: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
  }
  .headerTel .tel-number {
    display: none;
  }
  .headerTel .icon {
    font-size: 19px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 33, 66, 0.55) 0%,
    rgba(14, 33, 66, 0.55) 40%,
    rgba(10, 24, 48, 0.88) 100%
  );
  z-index: -1;
}

.hero-inner {
  padding: 80px 0 64px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.6;
  margin: 0 0 28px;
  font-weight: 700;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Sections ---------- */

section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-blue {
  background: var(--bg-soft-blue);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .kicker {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.25em;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 16px;
  line-height: 1.5;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 24px 26px 30px;
}

.card-body h3 {
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--navy-deep);
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split p + p {
  margin-top: 20px;
}

.split p {
  color: var(--text-muted);
}

/* ---------- Recruit list ---------- */

.recruit-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.recruit-box > p {
  margin-top: 0;
}

.recruit-list {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.recruit-list li {
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 15px;
}

.recruit-list li strong {
  color: var(--blue);
  margin-right: 6px;
}

/* ---------- Flow ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.flow-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.35;
  margin-bottom: 8px;
}

.flow-step h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--navy-deep);
}

.flow-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Contact ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

.contact-split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 85%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: saturate(0.75) brightness(0.97);
  opacity: 0.9;
}

.tel-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 430px;
  padding: 28px;
  margin-top: 16px;
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
}

.tel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(15, 35, 65, 0.18);
}

.tel-button span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* ---------- Company table ---------- */

.company-table {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 8px;
  overflow: hidden;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.company-table tr:last-child td {
  border-bottom: none;
}

.company-table td:first-child {
  width: 180px;
  color: var(--text-muted);
  font-weight: 700;
}

.company-table tr:nth-child(even) td {
  background: var(--bg-soft);
}

/* ---------- Privacy ---------- */

.section-quiet {
  padding: 48px 0;
}

.privacy {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.privacy h3 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.privacy p {
  color: var(--text-muted);
  font-size: 13.5px;
}

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

.siteFooter {
  position: relative;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

.siteFooter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.siteFooter .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.siteFooter .foot-logo {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.siteFooter address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.9;
}

.siteFooter small {
  font-size: 12.5px;
  opacity: 0.7;
}

/* ---------- Gallery (works page) ---------- */

.gallery-hero {
  background: var(--navy-deep);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}

.gallery-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 0 14px;
}

.gallery-hero p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.isOpen {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}
