:root {
  --navy: #062856;
  --navy-deep: #031b3c;
  --blue: #14559b;
  --teal: #18968f;
  --gold: #c8942d;
  --orange: #d86c22;
  --ink: #1f2c3d;
  --muted: #687383;
  --line: #dfe5ec;
  --bg: #f4f7fa;
  --white: #fff;
  --shadow: 0 18px 46px rgba(5, 31, 65, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  background: var(--white);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 0 52px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(6, 40, 86, .1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 68px;
  max-width: min(320px, 30vw);
  object-fit: contain;
}

.global-nav {
  display: flex;
  justify-content: flex-end;
  gap: 38px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.global-nav a {
  position: relative;
  padding: 32px 0;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  content: "";
}

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

.header-contact,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 2px;
  font-weight: 800;
  line-height: 1.3;
}

.header-contact,
.primary-button {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(3, 27, 60, .2);
}

.header-contact::before,
.primary-button::after {
  content: ">";
  font-weight: 800;
}

.secondary-button {
  color: var(--white);
  background: var(--navy);
}

.secondary-button::after {
  content: ">";
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 18, 40, .74) 0%, rgba(3, 27, 60, .42) 40%, rgba(3, 27, 60, .38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 22px auto 34px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
}

.section {
  padding: 72px 48px;
}

.subpage-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 320px;
  padding: 86px 48px 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 27, 60, .86), rgba(3, 27, 60, .5)),
    url("assets/hero-collage.png") center / cover;
}

.subpage-hero > div {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.subpage-hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.25;
}

.subpage-hero p:last-child {
  max-width: 680px;
  margin: 16px 0 0;
  font-weight: 700;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.35;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(12, 42, 78, .07);
}

.service-image {
  height: 160px;
  background-image: url("assets/hero-collage.png");
  background-size: 980px auto;
}

.service-realestate .service-image { background-position: 4% 50%; }
.service-exterior .service-image { background-position: 36% 52%; }
.service-food .service-image { background-position: 66% 50%; }
.service-web .service-image { background-position: 96% 50%; }

.service-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: -38px auto 10px;
  position: relative;
  z-index: 2;
  color: var(--navy);
  font-weight: 800;
  line-height: 1;
  border: 4px solid var(--white);
  border-radius: 999px;
  background: #eef6fb;
  box-shadow: 0 8px 20px rgba(6, 40, 86, .16);
}

.service-icon svg {
  display: block;
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon svg * {
  fill: none !important;
  stroke: currentColor !important;
  vector-effect: non-scaling-stroke;
}

.service-exterior .service-icon { color: var(--teal); background: #edf9f6; }
.service-food .service-icon { color: var(--orange); background: #fff3ea; }
.service-web .service-icon { color: var(--blue); background: #eef6fb; }

.service-card h3 {
  margin: 0 22px 12px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  text-align: center;
}

.service-exterior h3 { color: var(--teal); }
.service-food h3 { color: var(--orange); }
.service-web h3 { color: var(--blue); }

.service-card p {
  min-height: 138px;
  margin: 0;
  padding: 0 26px 30px;
  color: #405066;
  font-size: 14px;
}

.works-head a::after {
  margin-left: 12px;
  content: ">";
}

.message {
  padding: 72px 48px;
  background:
    linear-gradient(rgba(244, 248, 251, .88), rgba(244, 248, 251, .88)),
    url("assets/hero-collage.png") center / cover;
}

.message-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 70px;
  max-width: 1180px;
  margin: 0 auto;
}

.message-copy {
  padding: 46px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.message-copy p:not(.section-kicker) {
  color: #435268;
}

.message-visual {
  position: relative;
  min-height: 360px;
}

.message-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}

.works {
  padding-top: 60px;
}

.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.works-head a {
  color: var(--navy);
  font-weight: 800;
}

.work-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.work-tabs button {
  min-height: 38px;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}

.work-tabs .active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-card h3 {
  margin: 12px 0 2px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.work-card p,
.work-card time {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.partner {
  padding: 52px 48px;
  background: linear-gradient(90deg, #f7fafc, #fff);
}

.partner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 38px;
  border-left: 5px solid var(--navy);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(6, 40, 86, .08);
}

.partner-inner p:not(.section-kicker) {
  max-width: 690px;
  margin: 14px 0 0;
  color: #435268;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  color: var(--navy);
  font-weight: 800;
  border: 1px solid var(--line);
  background: #f7fafc;
}

.partner-link::after {
  margin-left: 12px;
  content: ">";
}

.work-thumb {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 4px;
  background-image: url("assets/hero-collage.png");
  background-size: 900px auto;
}

.thumb-1 { background-position: 4% 50%; }
.thumb-2 { background-position: 50% 55%; }
.thumb-3 { background-position: 73% 52%; }
.thumb-4 { background-position: 96% 48%; }

.work-thumb span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  border-radius: 2px;
  background: rgba(255, 255, 255, .92);
}

.profile {
  padding: 68px 48px;
  background: var(--bg);
}

.standalone-profile {
  background: var(--white);
}

.profile-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.profile dl {
  margin: 0;
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: 0 12px 30px rgba(6, 40, 86, .08);
}

.profile dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.profile dt,
.profile dd {
  margin: 0;
  padding: 18px 22px;
}

.profile dt {
  color: var(--navy);
  font-weight: 800;
  background: #f7fafc;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 44px 70px;
  background: linear-gradient(90deg, #f7fafc, #fff);
}

.contact-band h2 {
  font-size: 30px;
}

.contact-band p {
  margin: 8px 0 0;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 40, 86, .08);
}

.phone {
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.phone::before {
  content: "TEL ";
  font-size: 14px;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-deep), #083c77);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding: 56px 70px 40px;
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-items: start;
}

.footer-logo {
  width: auto;
  height: 92px;
  max-width: min(330px, 100%);
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
}

.footer-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.site-footer a {
  display: block;
  margin: 6px 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 70px;
  color: rgba(255, 255, 255, .7);
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 24px;
  }

  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .nav-toggle span {
    height: 2px;
    background: var(--navy);
  }

  .global-nav,
  .header-contact {
    display: none;
  }

  .site-header.open .global-nav {
    display: grid;
    grid-column: 1 / -1;
    gap: 0;
    padding: 0 0 18px;
  }

  .site-header.open .global-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .service-image {
    height: 120px;
    background-size: 820px auto;
  }

  .service-icon {
    width: 62px;
    height: 62px;
    margin-top: -32px;
  }

  .service-icon svg {
    width: 29px;
    height: 29px;
  }

  .service-card h3 {
    margin-right: 12px;
    margin-left: 12px;
    font-size: 17px;
  }

  .service-card p {
    min-height: 148px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13px;
    line-height: 1.75;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .message-inner,
  .profile-inner,
  .contact-band,
  .partner-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 74px;
    padding: 0 16px;
  }

  .brand-logo {
    height: 50px;
    max-width: 180px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    text-align: left;
  }

  .section,
  .subpage-hero,
  .message,
  .profile {
    padding: 52px 18px;
  }

  .work-grid,
  .work-tabs {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(138px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .service-card {
    scroll-snap-align: start;
  }

  .message-copy {
    padding: 28px 22px;
  }

  .message-visual {
    min-height: 250px;
  }

  .message-visual img {
    height: 250px;
  }

  .works-head,
  .footer-bottom,
  .contact-actions {
    display: grid;
  }

  .profile dl div {
    grid-template-columns: 1fr;
  }

  .profile dt,
  .profile dd {
    padding: 14px 16px;
  }

  .contact-band {
    padding: 42px 18px;
  }

  .contact-actions {
    padding: 20px;
  }

  .footer-inner,
  .footer-bottom {
    padding-right: 20px;
    padding-left: 20px;
  }
}
