:root {
  --bg: #ffffff;
  --bg-soft: #eaf6f7;
  --surface: #ffffff;
  --text: #1f3442;
  --muted: #4f6778;
  --line: #c7dce3;
  --accent-blue: #5ea4b7;
  --accent-green: #4ea184;
  --button: #0c6f81;
  --button-hover: #095d6c;
  --container: min(1120px, calc(100% - 56px));
  --radius: 4px;
  --shadow: 0 12px 30px rgba(20, 57, 78, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #41778a;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-family: "Noto Serif JP", serif;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-title,
.subpage-display-title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(72, 128, 147, 0.24);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

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

.header-contact {
  position: relative;
}

.contact-trigger {
  cursor: pointer;
}

.contact-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid rgba(168, 205, 216, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 50;
}

.header-contact:hover .contact-dropdown,
.header-contact:focus-within .contact-dropdown,
.header-contact.is-open .contact-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-dropdown-main {
  display: block;
  padding: 10px 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
}

.contact-dropdown-main:hover,
.contact-dropdown-main:focus-visible,
.contact-dropdown-main.is-active {
  background: var(--bg-soft);
  color: var(--button);
}

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

.brand-logo {
  width: clamp(130px, 14vw, 200px);
  max-height: 64px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.global-nav {
  justify-self: end;
  margin-right: clamp(12px, 2vw, 24px);
  display: flex;
  gap: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.global-nav a {
  color: #446778;
  transition: color 0.24s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.is-active {
  color: #0d5d73;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 28px;
  background: var(--button);
  color: #f8f6f2;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--button-hover);
}

.button:disabled,
.button.contact-submit-btn:disabled {
  background: #a8c5ce;
  color: rgba(248, 246, 242, 0.88);
  cursor: not-allowed;
  opacity: 0.72;
}

.button:disabled:hover,
.button:disabled:focus-visible {
  background: #a8c5ce;
}

.button-small {
  padding: 10px 20px;
  font-size: 0.72rem;
}

.button-outline {
  background: transparent;
  border-color: rgba(12, 111, 129, 0.5);
  color: var(--text);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(103, 177, 195, 0.18);
}

.hero {
  padding-top: 94px;
  background: linear-gradient(
    90deg,
    rgba(224, 244, 247, 0.95) 0%,
    rgba(224, 244, 247, 0.95) 42%,
    #ffffff 42%,
    #ffffff 100%
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 46px 52px;
  align-items: start;
}

.hero-main {
  overflow: hidden;
}

.hero-main img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  animation: mediaZoom 30s ease-out forwards;
}

.hero-copy {
  margin-top: 50px;
  max-width: 420px;
  background: linear-gradient(150deg, #0c6076, #0f7986 58%, #1f8f73);
  color: #effbff;
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.hero-copy p:not(.hero-title) {
  margin-top: 22px;
  color: rgba(235, 250, 255, 0.9);
}

.hero-sub {
  justify-self: end;
  width: min(72%, 360px);
  margin-top: -74px;
}

.hero-sub img {
  height: 250px;
  box-shadow: var(--shadow);
}

.hero-typo {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(29, 105, 126, 0.12);
  text-transform: lowercase;
  pointer-events: none;
}

.section-head {
  margin-bottom: 46px;
  display: grid;
  gap: 10px;
}

.section-head-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.section-lead {
  color: var(--muted);
  max-width: 520px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--button);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--button-hover);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-full {
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 44px;
  align-items: center;
}

.about {
  background: #ffffff;
}

.about-text {
  display: grid;
  gap: 24px;
  color: var(--muted);
}

.about-collage {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
}

.about-collage img {
  box-shadow: var(--shadow);
}

.about-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 390px;
}

.about-small {
  height: 185px;
}

.service {
  background: linear-gradient(180deg, rgba(222, 243, 246, 0.9), rgba(234, 247, 249, 0.7));
}

.service-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  margin-bottom: 82px;
  align-items: center;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-item.reverse .service-image {
  order: 2;
}

.service-item.reverse .service-copy {
  order: 1;
}

.service-image img {
  height: 290px;
  box-shadow: var(--shadow);
}

.service-copy {
  max-width: 430px;
}

.service-no {
  margin-bottom: 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 2.2rem;
  line-height: 1;
  color: #2d8497;
}

.service-copy p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.service-copy > .button,
.service-copy > .button-row {
  margin-top: 36px;
}

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

.property-card {
  background: var(--surface);
  border: 1px solid rgba(168, 205, 216, 0.9);
  box-shadow: 0 10px 24px rgba(24, 78, 103, 0.08);
}

.property-card img {
  height: 210px;
}

.property-body {
  padding: 22px 20px 24px;
}

.property-body h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.property-body ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.property-body li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(186, 213, 222, 0.7);
  font-size: 0.86rem;
}

.property-body span {
  color: #4f6878;
}

.property-body strong {
  font-weight: 500;
}

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

.company-grid {
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  gap: 34px;
  align-items: end;
}

.company-table {
  border: 1px solid rgba(175, 207, 217, 0.95);
  background: rgba(255, 255, 255, 0.74);
}

.company-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(184, 214, 223, 0.7);
}

.company-table div:last-child {
  border-bottom: 0;
}

.company-table span {
  color: #547083;
  font-size: 0.84rem;
}

.company-table strong {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.75;
}

.company-image img {
  height: 100%;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.message-preview {
  background: #ffffff;
}

.message-preview-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 48px;
  align-items: center;
}

.message-preview-visual img {
  height: 420px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.ceo-photo--sitting {
  object-position: center 28%;
}

.ceo-photo--standing {
  object-position: center 18%;
}

.message-preview-copy {
  display: grid;
  gap: 18px;
}

.message-preview-copy p {
  color: var(--muted);
}

.message-preview-lead {
  color: var(--text) !important;
  font-size: 1.02rem;
}

.message-preview-name {
  font-family: "Noto Serif JP", serif;
  color: var(--text);
}

.company-preview-grid {
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  gap: 34px;
  align-items: end;
}

.company-table-compact {
  margin-bottom: 24px;
}

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

.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-choice-card {
  display: grid;
  gap: 10px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(168, 205, 216, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-choice-card:hover,
.contact-choice-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(94, 164, 183, 0.85);
}

.contact-choice-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #41778a;
}

.contact-choice-card h3 {
  font-size: 1.2rem;
}

.error-page {
  max-width: 640px;
}

.error-page-text {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 28px;
}

.subpage-hero {
  padding: 120px 0 40px;
  background: linear-gradient(180deg, rgba(234, 246, 247, 0.95), var(--bg));
  border-bottom: 1px solid rgba(168, 205, 216, 0.7);
}

.subpage-lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.subpage-band {
  position: relative;
  height: 280px;
  overflow: hidden;
  margin-bottom: 56px;
}

.subpage-band img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  animation: mediaZoom 26s ease-out forwards;
}

.subpage-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 73, 97, 0.75), rgba(19, 131, 128, 0.4));
}

.subpage-band-quote {
  position: absolute;
  left: max(28px, calc((100% - 1120px) / 2));
  bottom: 40px;
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #effbff;
  z-index: 1;
}

.message-full {
  padding-top: 0;
}

.message-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.message-visual img {
  height: 400px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.message-preview-copy {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.message-role {
  font-size: 0.82rem;
  color: #547083;
}

.message-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem;
  margin-top: 4px;
}

.message-body {
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.message-lead {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

.message-sign {
  font-family: "Noto Serif JP", serif;
  color: var(--text);
}

.page-back a,
.contact-alt-link a {
  color: var(--button);
}

.company-full {
  padding-top: 0;
}

.company-layout {
  display: grid;
  gap: 28px;
  max-width: 860px;
}

.company-layout .section-head {
  margin-bottom: 0;
}

.company-visual {
  margin: 0;
}

.company-visual img {
  width: 100%;
  height: clamp(220px, 38vw, 360px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.company-map {
  border: 1px solid rgba(175, 207, 217, 0.95);
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-map iframe {
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 320px);
  border: 0;
}

.company-map-note {
  margin: 0;
  padding: 12px 16px;
  color: #5f7f8c;
  font-size: 0.78rem;
  line-height: 1.6;
  border-top: 1px solid rgba(184, 214, 223, 0.7);
}

.company-access {
  margin-top: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(175, 207, 217, 0.95);
}

.company-access h3 {
  margin-bottom: 10px;
}

.company-access p {
  color: var(--muted);
}

.service-detail {
  scroll-margin-top: 100px;
}

.service-detail-alt {
  background: linear-gradient(180deg, rgba(222, 243, 246, 0.5), rgba(234, 247, 249, 0.3));
}

.service-detail .service-item {
  margin-bottom: 0;
}

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

.contact-layout {
  display: grid;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-intro h2 {
  margin-bottom: 14px;
}

.contact-intro > p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.85;
}

.contact-intro .contact-alt-link {
  margin-top: 14px;
}

.contact-alt-link {
  font-size: 0.9rem;
}

.contact-alt-link a {
  color: var(--button);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-alt-link a:hover,
.contact-alt-link a:focus-visible {
  color: var(--button-hover);
}

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

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

.contact-form-mock {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(168, 205, 216, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-note {
  margin: 0;
  font-size: 0.82rem;
  color: #547083;
}

.contact-form-mock .contact-field {
  display: grid;
  gap: 6px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-label-text {
  font-size: 0.82rem;
  color: #547083;
}

.field-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.field-badge--required {
  color: #9b1c1c;
  background: rgba(254, 226, 226, 0.85);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.field-badge--optional {
  color: #547083;
  background: rgba(234, 246, 247, 0.9);
  border: 1px solid rgba(168, 205, 216, 0.75);
}

.contact-field.is-error input,
.contact-field.is-error select,
.contact-field.is-error textarea {
  border-color: rgba(180, 35, 24, 0.55);
  background: rgba(254, 243, 242, 0.35);
}

.field-error {
  margin: 0;
  font-size: 0.8rem;
  color: #b42318;
  line-height: 1.45;
}

.field-error:not([hidden]) {
  display: block;
}

.contact-form-mock input:not([type="checkbox"]),
.contact-form-mock select,
.contact-form-mock textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fafcfd;
}

.contact-form-mock input:not([type="checkbox"]):focus,
.contact-form-mock select:focus,
.contact-form-mock textarea:focus {
  outline: 2px solid rgba(94, 164, 183, 0.5);
  outline-offset: 1px;
}

.contact-form-mock button {
  border: none;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-form-status--success {
  color: #0f5132;
  background: rgba(209, 250, 229, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-form-status--error {
  color: #9b1c1c;
  background: rgba(254, 226, 226, 0.85);
  border: 1px solid rgba(220, 38, 38, 0.28);
}

.contact-form-mock.is-submitted .contact-form-note,
.contact-form-mock.is-submitted .contact-form-grid,
.contact-form-mock.is-submitted .contact-privacy-consent,
.contact-form-mock.is-submitted .contact-submit-btn {
  display: none;
}

.contact-privacy-consent {
  margin-top: 4px;
  padding: 18px 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(168, 205, 216, 0.7);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
}

.contact-privacy-consent.is-error {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(254, 243, 242, 0.55);
}

.contact-privacy-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--muted);
}

.contact-privacy-text a {
  color: #0d5d73;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-privacy-text a:hover,
.contact-privacy-text a:focus-visible {
  color: var(--button-hover);
}

.contact-privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.contact-privacy-input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  padding: 0;
  flex: 0 0 18px;
  flex-shrink: 0;
  accent-color: #2d8497;
  cursor: pointer;
  border: none;
  background: transparent;
}

.contact-privacy-checkbox-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.contact-privacy-error {
  margin: 0;
  font-size: 0.84rem;
  color: #b42318;
  line-height: 1.5;
}

.contact-privacy-error:not([hidden]) {
  display: block;
}

/* Legal / Privacy Policy */
.legal-page {
  padding-top: 0;
}

.legal-document {
  max-width: 760px;
  margin: 0 auto;
}

.legal-updated {
  font-size: 0.88rem;
  color: #547083;
  margin-bottom: 28px;
}

.legal-intro p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(168, 205, 216, 0.55);
}

.legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 14px;
  font-family: "Noto Serif JP", serif;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
  color: var(--muted);
  line-height: 1.9;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-contact {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.legal-contact > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  align-items: start;
}

.legal-contact dt {
  font-size: 0.88rem;
  color: #547083;
}

.legal-contact dd {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.legal-contact a {
  color: #0d5d73;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-placeholder-note {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #547083;
}

@media (max-width: 600px) {
  .contact-privacy-consent {
    padding: 16px 14px;
    gap: 12px;
  }

  .contact-privacy-text {
    font-size: 0.84rem;
    line-height: 1.75;
  }

  .contact-privacy-checkbox-label {
    font-size: 0.88rem;
  }

  .legal-contact > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.site-footer {
  background: linear-gradient(180deg, rgba(234, 246, 247, 0.45), #ffffff 40%);
  border-top: 1px solid rgba(161, 199, 210, 0.46);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(184, 214, 223, 0.65);
}

.footer-brand-col {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 380px;
}

.footer-brand-logo {
  width: min(220px, 100%);
}

.footer-brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-tagline {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 0.98rem;
  color: var(--text);
}

.footer-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.footer-site-nav,
.footer-contact-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: #4b6d7b;
}

.footer-site-nav {
  text-transform: uppercase;
}

.footer-contact-col {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 168px;
}

.footer-col-title {
  margin: 0;
  padding-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #41778a;
}

.footer-contact-nav {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

.footer-site-nav a:hover,
.footer-site-nav a:focus-visible,
.footer-contact-nav a:hover,
.footer-contact-nav a:focus-visible {
  color: var(--button);
}

.footer-legal {
  padding: 24px 0 0;
}

.footer-legal p {
  margin: 0 0 6px;
  color: #5f7f8c;
  font-size: 0.76rem;
  line-height: 1.7;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--button);
}

.footer-bottom {
  padding: 18px 0 24px;
}

.footer-bottom small {
  color: #5f7f8c;
  font-size: 0.73rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-entrance {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
  transition-delay: var(--entrance-delay, 0s);
}

.hero-entrance--fade {
  transform: none;
}

body.is-loaded .hero-entrance {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .hero-entrance--fade {
  transform: none;
}

@keyframes mediaZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

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

  .hero-copy {
    margin-top: 0;
  }

  .hero-sub {
    width: min(68%, 460px);
    margin-top: 0;
  }

  .hero-typo {
    top: 120px;
    left: 12px;
    right: auto;
  }

  .about-grid,
  .service-item,
  .service-item.reverse,
  .company-grid,
  .company-preview-grid,
  .message-preview-grid,
  .contact-form-grid,
  .contact-choice-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    max-width: none;
  }

  .footer-site-nav,
  .footer-contact-nav {
    gap: 14px;
  }

  .service-item.reverse .service-image,
  .service-item.reverse .service-copy {
    order: unset;
  }

  .service-copy {
    max-width: none;
  }

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

@media (max-width: 800px) {
  :root {
    --container: min(1120px, calc(100% - 34px));
  }

  .section {
    padding: 86px 0;
  }

  .header-inner {
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
  }

  .global-nav {
    display: none;
  }

  .header-contact .contact-trigger {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.68rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .global-nav.is-open {
    display: grid;
    position: absolute;
    inset: 72px 16px auto 16px;
    padding: 14px 16px;
    gap: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
    justify-self: stretch;
    margin-right: 0;
  }

  .subpage-band {
    height: 200px;
    margin-bottom: 40px;
  }

  .subpage-band-quote {
    left: 20px;
    bottom: 24px;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-logo {
    display: block;
    margin-inline: auto;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-main img {
    height: 380px;
  }

  .service-image img,
  .company-image img {
    height: 250px;
    min-height: unset;
  }
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000000;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.page-loader-logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.page-loader-bar {
  display: block;
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.page-loader-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--button), var(--accent-blue));
  transform-origin: left;
  animation: loaderBar 2.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

body:not(.is-loaded) {
  overflow: hidden;
}

@keyframes loaderBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    display: none;
  }

  body:not(.is-loaded) {
    overflow: auto;
  }

  .reveal,
  .hero-entrance {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-main img,
  .subpage-band img {
    animation: none;
    transform: none;
  }
}
