:root {
  color-scheme: light;
  --navy: #061a33;
  --navy-2: #0c2b4c;
  --blue: #0878c8;
  --cyan: #00a8d8;
  --green: #116a5b;
  --ink: #0f1c2e;
  --muted: #607086;
  --line: rgba(11, 32, 58, 0.12);
  --paper: #f7fbfd;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 27, 52, 0.16);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-only {
  display: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  height: 82px;
  padding: 0 clamp(20px, 5vw, 70px);
  color: var(--white);
  background: rgba(5, 18, 35, 0.54);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(8, 27, 52, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 8px;
  font-weight: 900;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(0, 168, 216, 0.26);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: currentColor;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 42px);
  font-size: 15px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 30px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-tel,
.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.header-tel,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(8, 120, 200, 0.26);
}

.site-header.is-scrolled .header-tel {
  color: var(--white);
}

.outline-button {
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(8, 120, 200, 0.32);
}

.outline-button.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("./assets/hero-water-pillar.jpg");
  background-size: cover;
  background-position: 64% center;
  filter: brightness(0.94) contrast(1.04) saturate(1.05);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 26, 51, 0.94) 0%, rgba(6, 26, 51, 0.78) 38%, rgba(6, 26, 51, 0.18) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(28px, 5vw, 78px);
  width: min(1180px, calc(100% - 40px));
  min-height: 780px;
  margin: 0 auto;
  padding-top: 168px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1.1;
  font-weight: 900;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.9;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
}

.text-link {
  color: var(--white);
  font-weight: 900;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 8px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 13px;
}

.hero-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 38px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-panel h2 {
  margin: 0 0 26px;
  font-size: 26px;
  line-height: 1.45;
}

dl {
  margin: 0;
}

.hero-panel dl,
.info-panel dl {
  display: grid;
  gap: 0;
}

.hero-panel dl div,
.info-panel dl div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.6;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  background:
    radial-gradient(circle at 0% 10%, rgba(0, 168, 216, 0.13), transparent 32%),
    var(--paper);
}

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

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.22;
  font-weight: 900;
}

.intro p:last-child,
.works-copy p,
.info-main p,
.contact-box p,
.quality-item p,
.service-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}

.service {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(8, 27, 52, 0.08);
}

.service-card img {
  aspect-ratio: 1.28;
  object-fit: cover;
}

.service-card div {
  padding: 24px 22px 28px;
}

.service-card span,
.quality-item span {
  display: inline-block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h3 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}

.works {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 26, 51, 0.95), rgba(8, 43, 78, 0.94)),
    var(--navy);
}

.works h2,
.works h3 {
  color: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.works-copy p {
  color: rgba(255, 255, 255, 0.78);
  margin: 28px 0 34px;
}

.works-photo {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.works-photo img {
  aspect-ratio: 1.4;
  object-fit: cover;
}

.works-photo figcaption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}

.works-photo strong,
.works-photo span {
  display: block;
}

.works-photo span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quality {
  background: var(--paper);
}

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

.quality-item {
  min-height: 248px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.info-main {
  position: sticky;
  top: 120px;
}

.info-panel {
  padding: 34px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(8, 27, 52, 0.08);
}

.info-panel dl div {
  grid-template-columns: 130px 1fr;
}

.contact {
  padding-top: 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 80px, var(--navy) 80px, var(--navy) 100%);
}

.contact-box {
  padding: clamp(42px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(8, 120, 200, 0.92), rgba(0, 168, 216, 0.74)),
    var(--blue);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(8, 27, 52, 0.22);
}

.contact-box h2 {
  color: var(--white);
}

.contact-box p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 30px clamp(20px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer a {
  color: var(--cyan);
  font-weight: 900;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .header-tel {
    display: none;
  }

  .hero-inner,
  .works-grid,
  .info-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .info-main {
    position: static;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-scrolled .nav-toggle {
    background: rgba(8, 27, 52, 0.08);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    padding: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding: 124px 0 52px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-panel,
  .intro-grid,
  .works-grid,
  .info-grid,
  .service-card,
  .quality-item,
  .contact-box {
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(32px, 9.1vw, 40px);
    overflow-wrap: anywhere;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-lead,
  .intro p:last-child,
  .works-copy p,
  .info-main p,
  .contact-box p,
  .quality-item p,
  .service-card p {
    max-width: 100%;
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .mobile-only {
    display: block;
  }

  h2,
  h3,
  .hero-panel h2 {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-panel h2 {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .outline-button {
    width: 100%;
  }

  .hero-panel {
    padding: 26px;
  }

  .hero-panel dl div,
  .info-panel dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .section-heading {
    display: block;
  }

  .service-grid,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .works-photo figcaption {
    position: static;
    display: block;
    border-radius: 0;
  }

  .info-panel,
  .contact-box {
    padding: 26px;
  }

  .site-footer {
    display: grid;
  }
}
