/* Base */
:root {
  --color-blue: #003D60;
  --color-blue-dark: #101A32;
  --color-blue-soft: #F2F2F2;
  --color-accent: #E2BA44;
  --color-text: #172033;
  --color-body: #111827;
  --color-muted: #5c6a7e;
  --color-border: #d8e2ef;
  --color-bg: #f7fbff;
  --color-white: #ffffff;
  --shadow-soft: 0 14px 36px rgba(0, 61, 96, 0.12);
  --radius: 8px;
  --header-height: 76px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-latin: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8;
  background: var(--color-white);
}

/* 共通背景SVG。ページ背面に固定表示し、文字やカードの可読性を優先して控えめに使う。 */
.has-soft-bg {
  position: relative;
}

.has-soft-bg::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/bg-soft-stripe-brand-yellow.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: "";
}

.has-soft-bg > * {
  position: relative;
  z-index: 1;
}

.has-soft-bg main {
  background-color: transparent;
}

.page-contact.has-soft-bg {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.page-contact.has-soft-bg::before {
  display: none;
}

.page-contact.has-soft-bg main {
  background-color: transparent;
}

/* 背景SVGがほんのり見えるよう、淡色セクションは半透明にする。 */
.has-soft-bg .section:nth-of-type(odd) {
  background-color: rgba(247, 251, 255, 0.84);
}

.has-soft-bg .service-section {
  background-color: rgba(246, 250, 254, 0.86);
}

.page-contact.has-soft-bg .section:nth-of-type(odd) {
  background-color: var(--color-bg);
}

@media (min-width: 961px) {
  .has-soft-bg::before {
    /* PC幅では右側の帯が見えるよう、縦方向を少し大きめに表示する。 */
    background-size: 100% 112%;
  }
}

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

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

p {
  margin: 0;
}

/* Layout */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 61, 96, 0.28);
  box-shadow: 0 2px 12px rgba(0, 61, 96, 0.05);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 61, 96, 0.32);
  box-shadow: 0 3px 14px rgba(0, 61, 96, 0.07);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: var(--header-height);
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo-image {
  width: auto;
  height: 38px;
  object-fit: contain;
}

.logo-text {
  color: var(--color-blue);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-list,
.mobile-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-blue);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link-contact {
  padding: 0 18px;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 4px;
}

.nav-link-contact::after {
  display: none;
}

.nav-link-contact:hover {
  background: var(--color-blue-dark);
}

.nav-link-contact.is-active {
  background: var(--color-blue-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

main {
  background-color: var(--color-white);
}

@media (prefers-reduced-motion: no-preference) {
  main {
    opacity: 0;
    animation: pageFadeIn 0.4s ease-out forwards;
  }

  @keyframes pageFadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    opacity: 1;
    animation: none;
  }
}

.js-enabled .scroll-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.js-enabled .scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: min(620px, calc(100vh - var(--header-height)));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-white);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.35) 62%, rgba(255, 255, 255, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-blue);
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-service-works-kicker {
  font-family: var(--font-latin);
}

.section-label::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  background: var(--color-accent);
  content: "";
}

.section-label-light {
  color: var(--color-white);
}

.about-section .section-label,
.company-info-section .section-label {
  color: var(--color-muted);
}

.hero-content h1 {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(2.05rem, 4.95vw, 3.8rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow: 0 3px 10px rgba(0, 61, 96, 0.08);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-content h1 {
    background: linear-gradient(160deg, var(--color-blue) 0%, #00547A 52%, var(--color-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: #253852;
  font-size: 1.05rem;
  font-weight: 600;
}

/* PageHero */
.page-hero-section {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

/* PageHero background */
.page-hero--company,
.page-hero--services,
.page-hero--works,
.page-hero--contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.68)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.28)),
    url("../images/page-hero/company-page-hero.svg") center center / cover no-repeat;
}

.page-hero-inner {
  position: relative;
  max-width: 760px;
  text-align: center;
}

.page-hero-inner h1 {
  margin: 0;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 61, 96, 0.05);
}

.page-hero-lead {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.8;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button::after {
  margin-left: 16px;
  content: "→";
}

.button:hover {
  transform: translateY(-1px);
}

.button-outline {
  color: var(--color-blue);
  background: var(--color-white);
  border-color: var(--color-blue);
}

.button-outline:hover {
  color: var(--color-white);
  background: var(--color-blue);
}

.button-accent {
  color: var(--color-blue);
  background: var(--color-accent);
}

.button-accent:hover {
  background: var(--color-accent);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section:nth-of-type(odd) {
  background-color: var(--color-bg);
}

.section.section-white {
  background-color: var(--color-white);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.text-block h2,
.services-works-link h2,
.strength-text h2 {
  margin: 0 0 16px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.64rem, 2.9vw, 2.26rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 61, 96, 0.05);
}

.contact-cta h2 {
  margin: 0 0 16px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.64rem, 2.9vw, 2.26rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.section-heading p,
.text-block p,
.services-works-link p:not(.section-label),
.contact-cta p {
  color: var(--color-body);
}

.section-heading p:not(.section-label),
.text-block p:not(.section-label),
.services-works-link p:not(.section-label),
.contact-cta p:not(.section-label),
.company-info-item p,
.company-info-item a,
.profile-table td,
.access-info-card p {
  font-size: 1.03125rem;
}

/* About */
.image-text {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.text-block {
  padding: clamp(28px, 5vw, 56px);
}

.text-block p + p {
  margin-top: 12px;
}

.text-block .button {
  margin-top: 28px;
}

.about-section .about-layout .text-block p:not(.section-label) {
  min-height: 9em;
  overflow-wrap: anywhere;
}

.image-panel {
  min-height: 360px;
  margin: 0;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section .about-layout {
  align-items: stretch;
  min-height: 440px;
}

.about-section .about-layout .image-panel {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  height: 100%;
  min-height: 440px;
  max-height: none;
}

.about-section .about-layout .image-panel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 960px) {
  .about-section .about-layout {
    min-height: 0;
  }

  .about-section .about-layout .text-block p:not(.section-label) {
    min-height: 5.4em;
  }

  .about-section .about-layout .image-panel {
    height: 340px;
    min-height: 280px;
    max-height: 340px;
  }

  .about-section .about-layout .image-panel img {
    min-height: 280px;
    max-height: 340px;
  }
}

@media (max-width: 720px) {
  .about-section .about-layout .text-block p:not(.section-label) {
    min-height: 5.4em;
  }

  .about-section .about-layout .image-panel {
    height: 280px;
    min-height: 260px;
    max-height: 320px;
  }

  .about-section .about-layout .image-panel img {
    min-height: 260px;
    max-height: 320px;
  }

}

@media (max-width: 520px) {
  .about-section .about-layout .text-block p:not(.section-label) {
    min-height: 7.2em;
  }
}

@media (max-width: 430px) {
  .about-section .about-layout .text-block p:not(.section-label) {
    min-height: 9em;
  }
}

@media (max-width: 400px) {
  .about-section .about-layout .text-block p:not(.section-label) {
    min-height: 10.8em;
  }
}

.company-info-item h3 {
  margin: 0 0 8px;
  color: var(--color-blue);
  font-size: 1.12rem;
  line-height: 1.5;
}

/* Home service / works */
.section.home-service-works-section,
.has-soft-bg .section.home-service-works-section {
  padding: 56px 0 0;
  background: var(--color-bg);
}

.home-service-works-section .container {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.home-service-works-heading {
  width: min(1120px, 100%);
  margin: 0 auto 44px;
  padding-right: 20px;
  padding-left: 20px;
}

.home-service-works-heading p:not(.section-label) {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.home-service-works-section .section-label {
  color: var(--color-muted);
}

.home-service-works-list {
  display: grid;
  gap: 0;
}

.home-service-works-block {
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: stretch;
  min-height: clamp(280px, 27vw, 365px);
  background: transparent;
}

.home-service-works-block--service {
  margin-right: 0;
}

.home-service-works-block--works {
  margin-left: 0;
}

.home-service-works-media {
  position: relative;
  height: 100%;
  min-height: clamp(280px, 27vw, 365px);
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.home-service-works-block--service .home-service-works-media {
  grid-column: 1 / 14;
  grid-row: 1;
}

.home-service-works-block--works .home-service-works-media {
  grid-column: 12 / 25;
  grid-row: 1;
}

.home-service-works-media::after {
  content: none;
}

.home-service-works-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.home-service-works-block--service .home-service-works-media img {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.04) 92%, rgba(0, 0, 0, 0) 96%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.04) 92%, rgba(0, 0, 0, 0) 96%, rgba(0, 0, 0, 0) 100%);
}

.home-service-works-block--works .home-service-works-media img {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.04) 8%, #000 45%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.04) 8%, #000 45%, #000 100%);
}

.home-service-works-content {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 42px);
  background: transparent;
}

.home-service-works-block--service .home-service-works-content {
  grid-column: 14 / 25;
  grid-row: 1;
  padding-right: clamp(28px, 5vw, 76px);
  padding-left: clamp(28px, 3.2vw, 48px);
}

.home-service-works-block--works .home-service-works-content {
  grid-column: 1 / 12;
  grid-row: 1;
  padding-right: clamp(28px, 3.2vw, 48px);
  padding-left: clamp(28px, 5vw, 76px);
}

.home-service-works-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-service-works-kicker::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  background: var(--color-accent);
  content: "";
}

.home-service-works-content h3 {
  margin: 0 0 18px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.68rem, 2.6vw, 2.36rem);
  font-weight: var(--font-heading-weight);
  line-height: 1.38;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 61, 96, 0.05);
}

.home-service-works-content p:not(.home-service-works-kicker) {
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.home-service-works-block--service .home-service-works-content p:not(.home-service-works-kicker) {
  min-height: 5.7em;
}

.home-service-works-block--works .home-service-works-content p:not(.home-service-works-kicker) {
  min-height: 3.8em;
}

.home-service-works-content .button {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .section.home-service-works-section,
  .has-soft-bg .section.home-service-works-section {
    padding: 64px 0 70px;
  }

  .home-service-works-section .container {
    width: min(100%, 1120px);
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-service-works-heading {
    margin-bottom: 36px;
  }

  .home-service-works-list {
    gap: clamp(36px, 7vw, 54px);
  }

  .home-service-works-block,
  .home-service-works-block--service,
  .home-service-works-block--works {
    grid-template-columns: 1fr;
    gap: 0;
    margin-right: 0;
    margin-left: 0;
    min-height: 0;
    background: transparent;
  }

  .home-service-works-media {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    justify-self: center;
    width: min(100%, 720px);
    height: clamp(240px, 42vw, 320px);
    min-height: 0;
  }

  .home-service-works-block--service .home-service-works-media,
  .home-service-works-block--works .home-service-works-media {
    grid-column: 1;
    grid-row: auto;
  }

  .home-service-works-media img {
    min-height: 0;
  }

  .home-service-works-block--service .home-service-works-media img,
  .home-service-works-block--works .home-service-works-media img {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, 0.04) 92%, rgba(0, 0, 0, 0) 96%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, 0.04) 92%, rgba(0, 0, 0, 0) 96%, rgba(0, 0, 0, 0) 100%);
  }

  .home-service-works-content {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    align-self: stretch;
    justify-self: center;
    width: min(100%, 720px);
    margin-right: 0;
    margin-left: 0;
    padding: 26px 0 0;
    background: transparent;
  }

  .home-service-works-block--service .home-service-works-content,
  .home-service-works-block--works .home-service-works-content {
    grid-column: 1;
    grid-row: auto;
    margin-right: 0;
    margin-left: 0;
    padding: 26px 0 0;
    background: transparent;
  }

  .home-service-works-content .button {
    align-self: stretch;
    width: 100%;
    min-height: 52px;
  }

  .home-service-works-block--service .home-service-works-content p:not(.home-service-works-kicker),
  .home-service-works-block--works .home-service-works-content p:not(.home-service-works-kicker) {
    min-height: 3.8em;
  }

}

@media (max-width: 720px) {
  .section.home-service-works-section,
  .has-soft-bg .section.home-service-works-section {
    padding: 54px 0 58px;
  }

  .home-service-works-section .container {
    width: min(100%, 1120px);
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-service-works-heading {
    margin-bottom: 26px;
  }

  .home-service-works-list {
    gap: 30px;
  }

  .home-service-works-media {
    width: 100%;
    height: clamp(200px, 56vw, 260px);
  }

  .home-service-works-content {
    width: 100%;
    padding: 22px 0 0;
  }

  .home-service-works-block--service .home-service-works-content,
  .home-service-works-block--works .home-service-works-content {
    padding: 22px 0 0;
  }

  .home-service-works-content h3 {
    margin-bottom: 14px;
    font-size: 1.62rem;
  }

  .home-service-works-content p:not(.home-service-works-kicker) {
    font-size: 1rem;
    line-height: 1.85;
  }

  .home-service-works-block--service .home-service-works-content p:not(.home-service-works-kicker) {
    min-height: 3.7em;
  }

  .home-service-works-block--works .home-service-works-content p:not(.home-service-works-kicker) {
    min-height: 3.7em;
  }

  .home-service-works-content .button {
    align-self: stretch;
    width: 100%;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .home-service-works-block--service .home-service-works-content p:not(.home-service-works-kicker) {
    min-height: 5.55em;
  }

  .home-service-works-block--works .home-service-works-content p:not(.home-service-works-kicker) {
    min-height: 7.4em;
  }
}

@media (max-width: 430px) {
  .home-service-works-heading {
    margin-bottom: 24px;
  }

  .home-service-works-media {
    height: clamp(190px, 56vw, 230px);
  }

  .home-service-works-content {
    padding-top: 20px;
  }

  .home-service-works-block--service .home-service-works-content,
  .home-service-works-block--works .home-service-works-content {
    padding-top: 20px;
  }

  .home-service-works-block--service .home-service-works-content p:not(.home-service-works-kicker),
  .home-service-works-block--works .home-service-works-content p:not(.home-service-works-kicker) {
    min-height: 7.4em;
  }
}

/* Company */
.company-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.company-info-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.company-info-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--color-blue);
  border: 1px solid rgba(0, 61, 96, 0.28);
  border-radius: 6px;
  background: var(--color-blue-soft);
}

.company-info-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.company-info-item p,
.company-info-item a {
  color: var(--color-body);
  overflow-wrap: anywhere;
}

.company-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.company-actions .button,
.company-actions .access-button {
  width: 210px;
}

.access-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  border-radius: 4px;
  background: var(--color-white);
  font-weight: 800;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.access-button::after {
  margin-left: 16px;
  content: "→";
}

.access-button:hover {
  color: var(--color-white);
  border-color: var(--color-blue);
  background: var(--color-blue);
  transform: translateY(-1px);
}

/* Company page */
.president-section .section-label,
.strength-section .section-label,
.company-profile-section .section-label,
.access-section .section-label,
.services-intro-section .section-label,
.services-works-section .section-label,
.works-list-section .section-label {
  color: var(--color-muted);
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: stretch;
}

.president-intro {
  max-width: 840px;
  margin-right: auto;
  margin-left: auto;
}

.president-heading {
  margin-bottom: 28px;
  text-align: center;
}

.president-heading .section-label {
  margin-bottom: 8px;
}

.president-heading h2 {
  margin: 0;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  font-weight: var(--font-heading-weight);
  line-height: 1.38;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 61, 96, 0.05);
}

.president-message {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.president-message p {
  margin: 0;
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.president-message p + p {
  margin-top: 14px;
}

.president-message p.president-name {
  margin-top: 28px;
  color: var(--color-blue);
  font-weight: 800;
  text-align: right;
}

.strength-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(0, 61, 96, 0.06);
}

.strength-text {
  padding: clamp(28px, 5vw, 44px);
}

.strength-text p:not(.section-label) {
  min-height: 11.4em;
  margin: 0;
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.strength-text p:not(.section-label) + p:not(.section-label) {
  margin-top: 14px;
}

.strength-image {
  position: relative;
  min-height: 320px;
  margin: 0;
}

.strength-section .strength-layout {
  align-items: stretch;
}

.strength-section .strength-image {
  align-self: stretch;
  overflow: hidden;
  height: auto;
  max-height: none;
}

.strength-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 960px) {
  .strength-text p:not(.section-label) {
    min-height: 7.6em;
  }
}

@media (max-width: 720px) {
  .strength-text p:not(.section-label) {
    min-height: 9.5em;
  }
}

@media (max-width: 520px) {
  .strength-text p:not(.section-label) {
    min-height: 13.3em;
  }
}

@media (max-width: 430px) {
  .strength-text p:not(.section-label) {
    min-height: 17.1em;
  }
}

.profile-table-wrap {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

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

.profile-table th,
.profile-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: 0;
}

.profile-table th {
  width: 220px;
  color: var(--color-blue);
  background: var(--color-bg);
  font-weight: 800;
}

.profile-table td {
  color: var(--color-body);
}

.profile-table a {
  color: var(--color-blue);
  font-weight: 800;
}

.access-info-card {
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.access-info-card h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  color: var(--color-blue);
  font-size: 1.12rem;
}

.access-info-card h3::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--color-blue);
  content: "";
}

.access-info-card p {
  color: var(--color-body);
}

.access-info-card p + h3 {
  margin-top: 26px;
}

#access {
  scroll-margin-top: 90px;
}

.access-map {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-blue-soft);
}

.access-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.services-works-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 61, 96, 0.04);
}

.services-works-link h2 {
  margin-bottom: 8px;
}

.services-works-link p:not(.section-label) {
  max-width: 620px;
}

/* Services page layout */
.section.services-intro-section,
.has-soft-bg .section.services-intro-section {
  background: transparent;
}

.services-overview-intro {
  max-width: 840px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.services-overview-intro h2 {
  margin: 0 0 18px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  font-weight: var(--font-heading-weight);
  line-height: 1.38;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 61, 96, 0.05);
}

.services-overview-intro p:not(.section-label) {
  max-width: 820px;
  min-height: 3.9em;
  margin-right: auto;
  margin-left: auto;
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.section.services-main-section,
.has-soft-bg .section.services-main-section {
  padding: 64px 0 42px;
  background: var(--color-bg);
}

.services-main-heading {
  margin-bottom: 30px;
}

.services-main-section .section-label,
.services-other-section .section-label {
  color: var(--color-muted);
}

.services-main-list {
  display: grid;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  gap: 28px;
}

.services-main-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 61, 96, 0.22);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 14px 32px rgba(0, 61, 96, 0.08);
}

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

.services-main-card--reverse .services-main-media {
  grid-column: 2;
  grid-row: 1;
}

.services-main-card--reverse .services-main-content {
  grid-column: 1;
  grid-row: 1;
}

.services-main-media {
  position: relative;
  align-self: stretch;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: clamp(210px, 19vw, 260px);
  margin: 0;
  overflow: hidden;
  background: var(--color-blue-soft);
}

.services-main-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.services-main-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3.6vw, 44px);
}

.services-main-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.78rem, 3vw, 2.44rem);
  font-weight: var(--font-heading-weight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.services-main-number::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  background: var(--color-accent);
  content: "";
}

.services-main-content h3 {
  margin: 0 0 18px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.52rem, 2.5vw, 2.12rem);
  font-weight: var(--font-heading-weight);
  line-height: 1.45;
  letter-spacing: 0;
}

.services-main-content p {
  min-height: 7.6em;
  margin: 0;
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

@media (min-width: 961px) and (max-width: 1000px) {
  .services-main-content p {
    min-height: 9.5em;
  }
}

@media (max-width: 820px) {
  .services-overview-intro p:not(.section-label) {
    min-height: 5.85em;
  }
}

.section.services-other-section,
.has-soft-bg .section.services-other-section {
  padding: 0 0 72px;
  background: var(--color-bg);
}

.services-other-heading {
  margin-bottom: 28px;
}

.services-other-heading p:not(.section-label) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.services-other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  gap: 18px;
}

.services-other-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(216, 226, 239, 0.92);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 61, 96, 0.05);
}

.services-other-media {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-blue-soft);
}

.services-other-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.services-other-body h3 {
  margin: 0 0 8px;
  color: var(--color-blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.55;
}

.services-other-body p {
  margin: 0;
  color: var(--color-body);
  font-size: 0.98rem;
  line-height: 1.8;
}

.section.services-works-section,
.has-soft-bg .section.services-works-section {
  background: transparent;
}

@media (max-width: 960px) {
  .section.services-main-section,
  .has-soft-bg .section.services-main-section {
    padding: 60px 0 38px;
  }

  .section.services-other-section,
  .has-soft-bg .section.services-other-section {
    padding-bottom: 64px;
  }

  .services-main-list,
  .services-other-grid {
    width: min(100%, 760px);
    margin-right: auto;
    margin-left: auto;
  }

  .services-main-card,
  .services-main-card--reverse {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .services-main-card--reverse .services-main-media,
  .services-main-card--reverse .services-main-content {
    grid-column: 1;
    grid-row: auto;
  }

  .services-main-media {
    height: clamp(210px, 34vw, 260px);
    min-height: 0;
  }

  .services-main-content {
    min-height: 235px;
    padding: clamp(26px, 5vw, 38px);
  }

  .services-main-content p {
    min-height: 5.7em;
  }

  .services-other-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .services-other-card {
    grid-template-columns: clamp(150px, 28vw, 220px) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .services-overview-intro p:not(.section-label) {
    min-height: 5.85em;
  }

  .services-overview-intro h2 {
    font-size: 1.84rem;
  }

  .services-main-heading,
  .services-other-heading {
    margin-bottom: 24px;
  }

  .services-main-list {
    gap: 22px;
  }

  .services-main-media {
    height: clamp(190px, 48vw, 240px);
    min-height: 0;
  }

  .services-main-content {
    min-height: 250px;
    padding: 24px 20px 26px;
  }

  .services-main-number {
    margin-bottom: 14px;
    font-size: 1.72rem;
  }

  .services-main-content h3 {
    margin-bottom: 14px;
    font-size: 1.44rem;
  }

  .services-main-content p,
  .services-overview-intro p:not(.section-label) {
    font-size: 1rem;
    line-height: 1.85;
  }

  .services-main-content p {
    min-height: 5.55em;
  }

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

  .services-other-card {
    grid-template-columns: clamp(140px, 30vw, 190px) minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .services-other-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 600px) {
  .services-main-content p {
    min-height: 7.4em;
  }
}

@media (max-width: 520px) {
  .services-main-content {
    min-height: 280px;
  }

  .services-main-content p {
    min-height: 7.4em;
  }

  .services-overview-intro p:not(.section-label) {
    min-height: 7.8em;
  }

  .services-other-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .services-other-media {
    height: clamp(150px, 42vw, 190px);
    aspect-ratio: auto;
  }
}

@media (max-width: 430px) {
  .services-main-content p {
    min-height: 9.25em;
  }

  .services-overview-intro p:not(.section-label) {
    min-height: 9.75em;
  }
}

@media (max-width: 400px) {
  .services-main-content p {
    min-height: 11.1em;
  }
}

/* Works page */
.section.works-list-section,
.has-soft-bg .section.works-list-section {
  background: transparent;
}

.section.works-services-section,
.has-soft-bg .section.works-services-section {
  background: var(--color-bg);
}

.works-result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 61, 96, 0.04);
}

.works-result-list li {
  min-width: 0;
  min-height: calc(1.65rem + 28px);
  padding: 14px 18px;
  color: var(--color-body);
  font-size: 1.03125rem;
  line-height: 1.6;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.works-result-list li:nth-child(3n) {
  border-right: 0;
}

.works-result-list li:last-child {
  border-right: 0;
}

.works-result-list li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.works-list-empty-cell {
  min-height: calc(1.65rem + 28px);
  pointer-events: none;
}

.works-list-note {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.works-pagination {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.works-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-pagination li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--color-body);
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.works-pagination a.page-numbers:hover {
  color: var(--color-blue);
  border-color: rgba(0, 61, 96, 0.16);
  background: rgba(247, 251, 255, 0.72);
  transform: translateY(-1px);
}

.works-pagination .current {
  color: var(--color-white);
  border-color: var(--color-blue);
  background: var(--color-blue);
}

.works-pagination .prev,
.works-pagination .next {
  min-width: 56px;
  padding-right: 10px;
  padding-left: 10px;
  color: var(--color-muted);
}

.works-pagination .dots {
  min-width: 32px;
  padding-right: 4px;
  padding-left: 4px;
  color: var(--color-muted);
  border-color: transparent;
  background: transparent;
}

/* Contact page */
.contact-page-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid #cbdbea;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 16px 38px rgba(0, 61, 96, 0.08);
}

.contact-page-heading {
  margin-bottom: 32px;
}

.contact-page-heading h2 {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.12rem);
  font-weight: var(--font-heading-weight);
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 61, 96, 0.05);
}

.contact-page-heading h2::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  background: var(--color-accent);
  content: "";
}

.contact-page-heading p {
  color: var(--color-body);
  font-size: 1.03125rem;
}

.contact-mail-note {
  display: grid;
  gap: 8px;
  width: min(100%, 920px);
  margin: 24px auto 0;
  padding: 22px 26px;
  border: 1px solid var(--color-border);
  border-left: 4px solid rgba(0, 61, 96, 0.58);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-body);
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0, 61, 96, 0.04);
}

.contact-mail-note-label {
  color: var(--color-blue);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
}

.contact-mail-note-text {
  color: var(--color-body);
  line-height: 1.75;
}

.contact-mail-note a {
  color: var(--color-blue);
  font-weight: 800;
  width: fit-content;
}

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

.contact-form-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.form-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.contact-form-grid > .form-table-row:last-child {
  border-bottom: 0;
}

.form-table-title {
  display: grid;
  grid-template-columns: minmax(8.5em, 1fr) auto;
  align-items: center;
  align-self: stretch;
  justify-content: flex-start;
  align-content: center;
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 18px 20px;
  gap: 8px 12px;
  border-right: 1px solid var(--color-border);
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-weight: 800;
  line-height: 1.5;
}

.form-table-title > :first-child {
  min-width: 0;
}

.form-table-title label {
  color: inherit;
  font: inherit;
}

.form-table-control {
  min-width: 0;
  padding: 18px 22px;
}

.form-row {
  display: grid;
  gap: 20px;
}

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

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

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

.form-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: var(--color-body);
  font-weight: 700;
  line-height: 1.5;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--color-white);
  background: #d64242;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
}

.form-badge-optional {
  color: #b73b3b;
  background: #fff3f3;
  border: 1px solid rgba(214, 66, 66, 0.28);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  line-height: 1.6;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-blue);
  outline: 3px solid rgba(0, 61, 96, 0.16);
}

.privacy-policy-details {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-body);
  font-size: 0.98rem;
  line-height: 1.8;
}

.privacy-policy-details summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  color: var(--color-blue);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.privacy-policy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-policy-details summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.privacy-policy-details[open] summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.privacy-policy-details[open] summary::after {
  content: "−";
}

.privacy-policy-details summary:focus-visible {
  outline: 3px solid rgba(0, 61, 96, 0.16);
  outline-offset: -3px;
}

.privacy-policy-content {
  max-height: 360px;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.privacy-policy-content h3 {
  margin: 0 0 20px;
  color: var(--color-blue);
}

.privacy-policy-content h4 {
  margin: 24px 0 8px;
  color: var(--color-blue);
}

.privacy-policy-content p {
  margin: 0 0 12px;
}

.privacy-policy-content p:last-child {
  margin-bottom: 0;
}

.privacy-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.privacy-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--color-blue);
}

.privacy-check label {
  color: var(--color-blue);
  font-weight: 800;
  line-height: 1.7;
}

.contact-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.contact-submit-button {
  min-width: 320px;
}


.contact-form .wpcf7 form {
  margin: 0;
}

.contact-form .wpcf7 p {
  margin: 0;
}

.contact-form .wpcf7 .form-table-title p,
.contact-form .wpcf7 .form-table-control p,
.contact-form .wpcf7 .form-row p,
.contact-form .wpcf7 .form-field p {
  display: contents;
}

.contact-form .wpcf7 .form-table-title {
  grid-template-columns: minmax(8.5em, 1fr) auto;
}

.contact-form .wpcf7 .form-table-title .form-badge {
  justify-self: start;
  white-space: nowrap;
}

.contact-form .wpcf7 .form-table-control br,
.contact-form .wpcf7 .form-table-title br,
.contact-form .wpcf7 .form-field br,
.contact-form .wpcf7 .privacy-check br {
  display: none;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form .wpcf7 input[type="text"],
.contact-form .wpcf7 input[type="email"],
.contact-form .wpcf7 select,
.contact-form .wpcf7 textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  line-height: 1.6;
}

.contact-form .wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .wpcf7 input[type="text"]:focus,
.contact-form .wpcf7 input[type="email"]:focus,
.contact-form .wpcf7 select:focus,
.contact-form .wpcf7 textarea:focus {
  border-color: var(--color-blue);
  outline: 3px solid rgba(0, 61, 96, 0.16);
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #d64242;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-form .wpcf7 .privacy-policy-details {
  margin: 18px 0 14px;
}

.contact-form .wpcf7 .privacy-check {
  margin: 0;
}

.contact-form .wpcf7 .contact-form-actions {
  margin-top: 18px;
}

.privacy-check .wpcf7-form-control-wrap,
.privacy-check .wpcf7-acceptance {
  display: block;
  width: 100%;
}

.privacy-check .wpcf7-list-item {
  display: block;
  margin: 0;
}

.privacy-check .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: var(--color-blue);
  font-weight: 800;
  line-height: 1.7;
}

.privacy-check .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.privacy-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-blue);
}

.contact-form .wpcf7-submit.contact-submit-button {
  min-width: 320px;
}

/* Contact */
.contact-cta {
  padding: 52px 0;
  color: #f5f8fc;
  background: var(--color-blue);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-cta .section-label-light {
  color: #edf4fb;
}

.contact-cta h2 {
  color: #eef6ff;
}

.contact-cta p {
  color: #eaf2fb;
}

@media (min-width: 721px) {
  .contact-cta .button-accent {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
  }
}

/* Footer */
.site-footer {
  color: var(--color-white);
  background: var(--color-blue-dark);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 28px;
}

.footer-logo {
  min-height: 72px;
}

.footer-logo .site-logo-image {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.footer-logo .logo-text {
  color: var(--color-white);
}

.footer-company p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
  max-width: 560px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.copyright {
  margin: 0;
  padding: 18px 20px 24px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-latin);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo-image {
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.5))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.5))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(-1px 1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(1px -1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.5));
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--color-blue);
  background: var(--color-accent);
  border: 1px solid rgba(0, 61, 96, 0.18);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 61, 96, 0.18);
  font-size: 1.5rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  box-shadow: 0 12px 28px rgba(0, 61, 96, 0.22);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(0, 61, 96, 0.34);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 960px) {
  .global-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: var(--color-white);
    transition: max-height 0.25s ease, border-color 0.25s ease;
  }

  .mobile-nav.is-open {
    max-height: 480px;
    border-color: var(--color-border);
  }

  .mobile-nav-list {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 10px 20px 18px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 6px 2px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-blue);
    font-weight: 800;
  }

  .mobile-nav-link.is-active {
    color: var(--color-blue);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .mobile-nav-link-contact {
    justify-content: center;
    margin-top: 14px;
    color: var(--color-white);
    background: var(--color-blue);
    border-bottom: 0;
    border-radius: 4px;
  }

  .mobile-nav-link-contact.is-active {
    color: var(--color-white);
    text-decoration-color: var(--color-white);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-bg img {
    object-position: 68% center;
  }

  .hero-content {
    padding: 74px 0 68px;
  }

  .image-text,
  .access-layout {
    grid-template-columns: 1fr;
  }

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

  .strength-section .strength-image {
    height: clamp(260px, 36vw, 320px);
    min-height: 0;
  }

  .image-panel {
    min-height: 280px;
  }

  .about-layout {
    gap: 22px;
    padding: 32px;
  }

  .about-layout .text-block {
    display: contents;
  }

  .about-layout .section-label {
    order: 1;
    margin-bottom: 0;
  }

  .about-layout h2 {
    order: 2;
    margin-bottom: 0;
  }

  .about-layout .text-block p:not(.section-label) {
    order: 3;
  }

  .about-layout .text-block p + p {
    margin-top: 0;
  }

  .about-layout .image-panel {
    order: 4;
  }

  .about-layout .button {
    order: 5;
    margin-top: 0;
  }

  .company-info-grid {
    grid-template-columns: 1fr;
  }

  .company-info-section .company-actions {
    grid-template-columns: 1fr;
  }

  .company-info-section .company-actions .button,
  .company-info-section .company-actions .access-button {
    width: 100%;
    min-height: 52px;
  }

  .company-info-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
  }

  #access {
    scroll-margin-top: 72px;
  }

  .profile-table th {
    width: 180px;
  }

}

@media (min-width: 721px) and (max-width: 960px) {
  .about-layout .image-panel {
    width: min(100%, 700px);
    height: 340px;
    min-height: 0;
    justify-self: center;
  }

}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .has-soft-bg::before {
    background-position: center center;
    background-size: 100% 100%;
  }

  .container,
  .header-inner {
    width: min(100% - 28px, 1120px);
  }

  .site-logo-image {
    height: 34px;
  }

  .footer-logo .site-logo-image {
    height: 40px;
  }

  .footer-logo {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1rem;
    line-height: 1.35;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 46%, rgba(255, 255, 255, 0.34) 100%);
  }

  .hero-bg {
    opacity: 0.68;
  }

  .hero-content {
    padding: 54px 0 58px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .text-block h2,
  .president-heading h2,
  .strength-text h2,
  .contact-cta h2 {
    font-size: 1.64rem;
  }

  .section-heading p:not(.section-label),
  .text-block p:not(.section-label),
  .contact-cta p:not(.section-label),
  .president-message p,
  .company-info-item p,
  .company-info-item a,
  .profile-table td,
  .access-info-card p {
    font-size: 1rem;
  }

  .page-hero-section {
    padding: 35px 0 31px;
  }

  .page-hero--company,
  .page-hero--services,
  .page-hero--works,
  .page-hero--contact {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.8)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.44)),
      url("../images/page-hero/company-page-hero.svg") center center / cover no-repeat;
  }

  .page-hero-inner {
    max-width: 100%;
  }

  .page-hero-lead {
    font-size: 1rem;
  }

  #access {
    scroll-margin-top: 64px;
  }

  .about-layout {
    gap: 18px;
    padding: 28px;
  }

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

  .strength-text {
    padding: 28px;
  }

  .strength-image {
    min-height: 240px;
  }

  .strength-section .strength-image {
    height: clamp(240px, 52vw, 300px);
    max-height: none;
  }

  .strength-section .strength-image img {
    min-height: 0;
    max-height: none;
  }


  .access-info-card {
    padding: 28px;
  }

  .about-layout .image-panel {
    min-height: 240px;
  }

  .contact-cta h2 {
    font-size: 1.64rem;
    line-height: 1.28;
    text-wrap: balance;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .works-result-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .works-result-list li {
    font-size: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .works-list-empty-cell {
    display: none;
  }

  .works-result-list li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--color-border);
  }

  .works-result-list li:has(+ .works-list-empty-cell),
  .works-result-list li:has(+ .works-list-empty-cell + .works-list-empty-cell) {
    border-bottom: 0;
  }

  .works-result-list li:last-child {
    border-bottom: 0;
  }

  .works-pagination {
    margin-top: 20px;
  }

  .works-pagination ul {
    gap: 4px;
  }

  .works-pagination .page-numbers {
    min-width: 38px;
    min-height: 40px;
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.9rem;
  }

  .works-pagination .prev,
  .works-pagination .next {
    min-width: 54px;
  }

  .contact-page-panel {
    padding: 28px;
  }

  .contact-page-heading {
    margin-bottom: 22px;
  }

  .contact-page-heading h2 {
    font-size: 1.62rem;
  }

  .contact-page-heading p {
    font-size: 1rem;
  }

  .contact-mail-note {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 18px;
    font-size: 0.95rem;
  }

  .contact-form,
  .contact-form-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 18px;
  }

  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
  }

  .form-table-row {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .form-table-title {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .form-table-control {
    width: 100%;
    min-width: 0;
    padding: 18px;
  }

  .form-row {
    width: 100%;
    min-width: 0;
    gap: 14px;
  }

  .form-row-half {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-field,
  .contact-form .wpcf7-form-control-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .form-label {
    align-items: flex-start;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .contact-form .wpcf7 input[type="text"],
  .contact-form .wpcf7 input[type="email"],
  .contact-form .wpcf7 select,
  .contact-form .wpcf7 textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }

  .privacy-policy-details,
  .privacy-check,
  .contact-form-actions {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .privacy-check {
    padding: 16px;
  }

  .privacy-policy-details summary {
    padding: 14px 44px 14px 16px;
  }

  .privacy-policy-details summary::after {
    right: 16px;
  }

  .privacy-policy-content {
    max-height: 300px;
    padding: 16px;
  }

  .privacy-check .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .privacy-check .wpcf7-list-item-label {
    display: inline;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.7;
  }

  .privacy-check .form-badge {
    display: inline-flex;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: 0.08em;
  }

  .contact-submit-button,
  .contact-form .wpcf7-submit.contact-submit-button {
    width: 100%;
    min-width: 0;
  }

  .services-works-link {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 28px;
  }

  .access-button {
    width: 100%;
    min-height: 52px;
  }

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

  .profile-table th,
  .profile-table td {
    padding: 16px 18px;
  }

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

  .profile-table td {
    border-bottom: 1px solid var(--color-border);
  }

  .access-map {
    height: 260px;
    min-height: 260px;
  }

  .access-map iframe {
    height: 100%;
    min-height: 0;
  }

  .company-actions,
  .contact-cta-inner,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .company-actions {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .footer-inner {
    gap: 24px;
    padding: 34px 0 24px;
  }

  .footer-company p {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .footer-postal {
    display: block;
  }

  .footer-address-main,
  .footer-address-block {
    display: inline-block;
  }

  .footer-address-block {
    white-space: nowrap;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    width: 100%;
    max-width: none;
    justify-content: stretch;
  }

  .footer-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    line-height: 1.5;
  }

  .copyright {
    padding: 16px 18px 22px;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .hero-content {
    min-width: 0;
  }

  .hero-content h1 {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .form-row-half {
    grid-template-columns: 1fr;
  }
}
