:root {
  color-scheme: light;
  --ink: #102536;
  --ink-2: #233a4a;
  --muted: #667987;
  --line: #d9e4ea;
  --snow: #f6fafc;
  --ice: #e7f2f7;
  --steel: #5d7180;
  --blue: #2f86a8;
  --blue-2: #0f5f83;
  --amber: #c98b3a;
  --white: #fff;
  --shadow: 0 24px 70px rgba(16, 37, 54, .13);
  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 8px;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  line-height: 1.8;
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--white);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -60px;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  left: 0;
  padding: 14px var(--pad);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.header-inner {
  align-items: center;
  background: rgba(247, 251, 253, .92);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 14px 45px rgba(16, 37, 54, .16);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  min-height: 66px;
  padding: 10px 12px 10px 18px;
  transition: background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(247, 251, 253, .98);
  box-shadow: 0 12px 34px rgba(16, 37, 54, .12);
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  min-width: 178px;
}

.brand img {
  height: 46px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 10px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ice);
  color: var(--blue-2);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.phone-chip {
  align-items: center;
  background: var(--ink);
  border-radius: 4px;
  color: var(--white);
  display: inline-flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  gap: 0;
  line-height: 1.2;
  padding: 9px 12px;
  white-space: nowrap;
}

.phone-chip strong {
  font-size: 15px;
}

.menu-toggle {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  color: var(--white);
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
  width: 20px;
}

.menu-toggle::before {
  transform: translateY(-7px);
}

.menu-toggle::after {
  transform: translateY(7px);
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: rotate(-45deg);
}

.hero {
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(7, 23, 36, .86) 0%, rgba(7, 23, 36, .68) 38%, rgba(7, 23, 36, .18) 74%),
    url("/assets/images/hero-sapporo-exterior.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 150px var(--pad) 56px;
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, transparent, rgba(16, 37, 54, .35));
  bottom: 0;
  content: "";
  height: 180px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  width: 100%;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  background: currentColor;
  content: "";
  height: 2px;
  width: 34px;
}

.hero .eyebrow {
  color: #bfe3f1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(42px, 7.6vw, 94px);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 22px 0 24px;
  max-width: 860px;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  color: #e7f2f7;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 700;
  max-width: 680px;
}

.hero-actions,
.cta-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  min-height: 50px;
  padding: 15px 20px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  box-shadow: 0 12px 30px rgba(16, 37, 54, .16);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, .28);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  max-width: 820px;
  padding-top: 22px;
}

.metric strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.metric span {
  color: #cfe5ee;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.section {
  padding: clamp(72px, 10vw, 118px) var(--pad);
}

.section-tight {
  padding-bottom: clamp(52px, 7vw, 80px);
  padding-top: clamp(52px, 7vw, 80px);
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  width: 100%;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, .92fr) minmax(280px, .58fr);
  margin-bottom: 42px;
}

.section-head h2,
.page-lead h1 {
  font-size: clamp(32px, 4.8vw, 58px);
  letter-spacing: 0;
  line-height: 1.12;
  margin: 12px 0 0;
}

.section-head p,
.page-lead p,
.lead {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
}

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

.ice-band {
  background: linear-gradient(180deg, #f6fafc 0%, #eaf4f8 100%);
}

.dark-band {
  background: var(--ink);
  color: var(--white);
}

.dark-band .lead,
.dark-band .section-head p,
.dark-band .card p,
.dark-band .meta {
  color: #c9d9e1;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-pad {
  padding: 26px;
}

.card h3 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.service-card {
  display: grid;
  grid-template-rows: 210px 1fr;
}

.service-card img,
.work-card img,
.media-frame img,
.split-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-card .card-pad {
  display: grid;
}

.service-link {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
  margin-top: 20px;
}

.reason-card {
  background: linear-gradient(180deg, var(--white), #f3f8fb);
  min-height: 245px;
}

.num {
  color: var(--blue);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.split-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.check-list,
.plain-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.check-list li,
.plain-list li {
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 700;
  padding: 13px 0 0 26px;
  position: relative;
}

.check-list li::before {
  background: var(--blue);
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 22px;
  width: 8px;
}

.plain-list li {
  padding-left: 0;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(10, 30, 45, .86), rgba(10, 30, 45, .58), rgba(10, 30, 45, .22)),
    var(--page-image, url("/assets/images/hero-sapporo-exterior.jpg"));
  background-position: center;
  background-size: cover;
  color: var(--white);
  min-height: 62vh;
  padding: 168px var(--pad) 70px;
}

.page-lead {
  margin: 0 auto;
  max-width: var(--max);
}

.page-lead h1 {
  max-width: 840px;
}

.page-lead p {
  color: #dcebf1;
  max-width: 720px;
}

.breadcrumb {
  color: #cfe5ee;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #fff;
}

.feature-table {
  border: 1px solid var(--line);
  border-collapse: collapse;
  width: 100%;
}

.feature-table th,
.feature-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

.feature-table th {
  background: var(--ice);
  color: var(--ink);
  font-size: 14px;
  width: 28%;
}

.feature-table td {
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
}

.flow {
  counter-reset: flow;
  display: grid;
  gap: 14px;
}

.flow-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: flow;
  display: grid;
  gap: 8px;
  grid-template-columns: 60px 1fr;
  padding: 22px;
}

.flow-item::before {
  align-items: center;
  background: var(--ink);
  border-radius: 4px;
  color: var(--white);
  content: counter(flow, decimal-leading-zero);
  display: flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.flow-item h3 {
  margin-bottom: 2px;
}

.flow-item p {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.work-card {
  display: grid;
  grid-template-rows: 220px 1fr;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag {
  background: var(--ice);
  border-radius: 4px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 10px;
}

.news-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.news-item {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 130px 120px 1fr;
  padding: 20px 0;
}

.news-item:first-child {
  border-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.label {
  background: var(--ink);
  border-radius: 4px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  padding: 9px 10px;
}

.cta {
  background:
    linear-gradient(90deg, rgba(16, 37, 54, .95), rgba(16, 37, 54, .78)),
    url("/assets/images/completed-house-sapporo.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  padding: clamp(64px, 8vw, 96px) var(--pad);
}

.cta-inner {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: var(--max);
}

.cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.cta p {
  color: #d8e7ee;
  font-weight: 700;
  margin-bottom: 0;
  max-width: 760px;
}

.contact-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  min-width: 285px;
  padding: 22px;
}

.contact-box strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.contact-box span {
  color: #d8e7ee;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  min-height: 52px;
  padding: 12px 14px;
  width: 100%;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.required {
  color: var(--blue-2);
  font-size: 12px;
  margin-left: 6px;
}

.site-footer {
  background: #0b1e2d;
  color: #d7e6ed;
  padding: 54px var(--pad) 28px;
}

.footer-inner {
  display: grid;
  gap: 36px;
  grid-template-columns: .9fr 1.1fr;
  margin: 0 auto;
  max-width: var(--max);
}

.footer-logo img {
  filter: brightness(0) invert(1);
  height: 48px;
  width: auto;
}

.footer-nav {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-nav a {
  color: #d7e6ed;
  font-size: 13px;
  font-weight: 700;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  color: #91aab8;
  font-size: 12px;
  margin: 36px auto 0;
  max-width: var(--max);
  padding-top: 20px;
}

@media (max-width: 1080px) {
  .site-nav {
    align-items: stretch;
    background: rgba(247, 251, 253, .98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: var(--pad);
    padding: 12px;
    position: fixed;
    right: var(--pad);
    top: 96px;
  }

  .menu-open .site-nav {
    display: flex;
  }

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

  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .phone-chip {
    display: none;
  }

  .section-head,
  .split,
  .split.reverse,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    min-height: 58px;
    padding: 8px 9px 8px 12px;
  }

  .brand img {
    height: 38px;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(7, 23, 36, .66) 0%, rgba(7, 23, 36, .75) 58%, rgba(7, 23, 36, .92) 100%),
      url("/assets/images/hero-sapporo-exterior-small.jpg");
    min-height: 100svh;
    padding-top: 126px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-metrics,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 56vh;
    padding-top: 132px;
  }

  .news-item {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .feature-table,
  .feature-table tbody,
  .feature-table tr,
  .feature-table th,
  .feature-table td {
    display: block;
    width: 100%;
  }

  .feature-table th {
    border-bottom: 0;
  }

  .flow-item {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}
