:root {
  --color-ink: #111820;
  --color-navy: #031f3d;
  --color-deep: #071118;
  --color-blue: #0c61b8;
  --color-bright: #1f9bff;
  --color-pale: #eaf5ff;
  --color-line: #d7e2ec;
  --color-white: #fff;
  --color-muted: #333333;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Saira", "Noto Sans JP", sans-serif;
  --font-title: "Shippori Mincho", "Noto Sans JP", serif;
  --header-height: 68px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}

body.modalOpen {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

ul {
  list-style: none;
}

.contentWrap {
  width: min(calc(100% - 56px), var(--content-width));
  margin: 0 auto;
}

.siteHeader {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 36px), 1240px);
  height: var(--header-height);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  transition: top 0.28s ease, width 0.28s ease, background 0.28s ease;
}

.siteHeader.scrolled {
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
}

.siteLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
  padding: 0 20px;
  color: var(--color-navy);
  font-weight: 900;
}

.siteLogoMark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.siteLogoImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.siteLogoImageWhite {
  opacity: 0;
}

.siteLogoText {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.globalNav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.globalNav a {
  display: grid;
  place-items: center;
  min-width: 82px;
  padding: 0 10px;
  border-left: 1px solid rgba(3, 31, 61, 0.13);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}

.globalNav a:hover {
  background: var(--color-pale);
  color: var(--color-blue);
}

.globalNav .navEntry {
  min-width: 128px;
  background: var(--color-blue);
  color: var(--color-white);
}

.globalNav .navEntry:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.menuButton {
  display: none;
  width: 58px;
  border: 0;
  background: var(--color-navy);
  cursor: pointer;
}

.menuButtonLine {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menuButton.isOpen .menuButtonLineTop {
  transform: translateY(8px) rotate(45deg);
}

.menuButton.isOpen .menuButtonLineMiddle {
  opacity: 0;
}

.menuButton.isOpen .menuButtonLineBottom {
  transform: translateY(-8px) rotate(-45deg);
}

.heroSec {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--color-navy);
}

.heroImage {
  position: absolute;
  inset: 0;
}

.heroImageSplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.heroImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

body.isLoaded .heroImage img {
  animation: heroImageZoom 7.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes heroImageZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 31, 61, 0.56) 0%, rgba(3, 31, 61, 0.18) 58%, rgba(3, 31, 61, 0.04) 100%),
    linear-gradient(180deg, rgba(3, 31, 61, 0.02), rgba(3, 31, 61, 0.34));
}

.heroBigType {
  position: absolute;
  left: -16px;
  bottom: 22px;
  color: rgba(31, 155, 255, 0.34);
  font-family: var(--font-en);
  font-size: clamp(5.8rem, 15vw, 16.5rem);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: 0;
  pointer-events: none;
}

.heroInner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 56px), var(--content-width));
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  padding: 150px 0 92px;
}

.heroCopy {
  max-width: 660px;
  color: var(--color-white);
}

.heroLead {
  display: inline-block;
  padding: 12px 22px 12px 18px;
  border-left: 7px solid var(--color-bright);
  background: rgba(255, 255, 255, 0.15);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.heroLead,
.heroText,
.statusLabel,
.statusText,
.statusLink {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

body.isLoaded .heroLead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

body.isLoaded .heroText {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.34s;
}

body.isLoaded .statusLabel {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.48s;
}

body.isLoaded .statusText {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.6s;
}

body.isLoaded .statusLink {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.72s;
}

.heroCopy h1 {
  margin-top: 36px;
  color: #fff;
  font-size: clamp(3.8rem, 8.5vw, 7.6rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

.jsEnabled .heroCopy h1 {
  opacity: 0;
}

.jsEnabled.isHeroReady .heroCopy h1 {
  opacity: 1;
}

.heroChar {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.58s ease, transform 0.58s ease;
  transition-delay: calc(0.42s + (var(--hero-index) * 0.055s));
}

body.isLoaded .heroChar {
  opacity: 1;
  transform: translateY(0);
}

.heroText {
  width: min(100%, 560px);
  margin-top: 30px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 7px solid var(--color-blue);
  color: var(--color-navy);
  font-weight: 700;
}

.statusBar {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--color-navy);
  color: var(--color-white);
}

.statusBarInner {
  width: min(calc(100% - 56px), var(--content-width));
  display: grid;
  grid-template-columns: 180px 1fr 230px;
  align-items: stretch;
  min-height: 78px;
  margin: 0 auto;
}

.statusLabel {
  display: grid;
  place-items: center start;
  color: var(--color-bright);
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
}

.statusText {
  display: grid;
  place-items: center start;
  font-weight: 400;
}

.statusLink {
  display: grid;
  place-items: center;
  background: var(--color-blue);
  font-weight: 800;
  transition: background 0.25s ease;
}

.statusLink:hover {
  background: var(--color-bright);
}

.sectionSub {
  position: relative;
  z-index: 0;
  display: block;
  margin-bottom: -0.32em;
  color: rgba(12, 97, 184, 0.22);
  font-family: var(--font-en);
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  font-weight: 500;
  line-height: 0.82;
  pointer-events: none;
}

.sectionTitle {
  position: relative;
  z-index: 1;
  margin-top: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.28;
}

.smallButton,
.lineButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 42px;
  padding: 9px 18px;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease;
}

.smallButton:hover,
.lineButton:hover {
  background: var(--color-navy);
  transform: translateY(-3px);
}

.fadeTarget {
  opacity: 1;
  transform: none;
}

.animItem {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.74s ease, transform 0.74s ease;
  transition-delay: calc(var(--anim-index) * 0.09s);
}

.fadeTarget.isVisible .animItem {
  opacity: 1;
  transform: translateY(0);
}

.messageSec {
  padding: 112px 0 118px;
  background: var(--color-white);
}

.messageWrap {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 72px;
  align-items: start;
}

.messageHead {
  padding-top: 28px;
}

.messageLead {
  margin-top: 22px;
  color: var(--color-blue);
  font-weight: 700;
}

.messageBody {
  padding: 38px 0 0 42px;
  border-left: 1px solid var(--color-line);
}

.messageText {
  color: #435363;
  font-weight: 400;
}

.messageTextGap {
  margin-top: 18px;
}

.signature {
  margin-top: 28px;
  color: var(--color-navy);
  font-weight: 900;
  text-align: right;
}

.profileSec {
  position: relative;
  overflow: hidden;
  padding: 100px 0 118px;
  background:
    linear-gradient(180deg, transparent 0 68%, var(--color-navy) 68% 100%),
    var(--color-white);
}

.profileSec .sectionSub {
  color: rgba(12, 97, 184, 0.34);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.profileHeader {
  max-width: 720px;
}

.profileCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 34px;
}

.profileCard {
  min-height: 410px;
  padding: 36px;
  background: var(--color-white);
  box-shadow: 0 28px 60px rgba(3, 31, 61, 0.16);
}

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

.profileCard h3 {
  font-size: 28px;
  line-height: 1.4;
}

.profileCard dl {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.profileCard dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(102, 118, 132, 0.24);
}

.profileCardBlue dl div {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.profileCard dt {
  color: var(--color-blue);
  font-weight: 900;
}

.profileCardBlue dt {
  color: var(--color-bright);
}

.profileCard dd {
  color: #445261;
  font-weight: 400;
}

.profileCardBlue dd {
  color: rgba(255, 255, 255, 0.82);
}

.healthBlock {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

/* 認定ロゴは正方形背景に全体を収める（丸トリミングで見切れないように） */
.healthBlock img {
  width: 80px;
  padding: 6px;
  border-radius: 6px;
  background: var(--color-white);
  object-fit: contain;
}

.healthBlock p {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

/* 茨城ロボッツ「つなぐカンパニー」：表の下に、上の認定枠（.healthBlock）と同じ見た目で置く（2026-09-28追加） */
.partnerBlock {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.partnerLogo {
  width: 80px;
  padding: 6px;
  border-radius: 6px;
  background: var(--color-white);
  object-fit: contain;
}

.partnerText {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.widePhotoSec {
  padding-bottom: 110px;
}

.widePhotoSec .contentWrap {
  width: 100%;
  max-width: none;
}

.widePhotoSec img {
  width: 100%;
  height: clamp(260px, 32vw, 354px);
  max-height: none;
  object-fit: cover;
}

.introSec {
  padding: 60px 0 30px;
}

.introWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 56px;
  align-items: end;
}

.introLead {
  max-width: 760px;
  margin-top: 24px;
  color: var(--color-muted);
  font-weight: 400;
}

.serviceSec {
  position: relative;
  overflow: hidden;
  padding: 0 0 92px;
}

.serviceGrid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
}

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

.serviceCardWide {
  grid-row: span 2;
}

.serviceCard img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(0.9);
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.serviceCard:hover img {
  opacity: 0.92;
  transform: scale(1.045);
}

.serviceCardText {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
  background: linear-gradient(180deg, rgba(3, 31, 61, 0), rgba(3, 31, 61, 0.94));
}

.serviceCardText span {
  color: var(--color-bright);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 800;
}

.serviceCardText h3 {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.35;
}

.serviceCardText p {
  max-width: 720px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
}

.serviceBullets {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
}

.serviceBullets li {
  padding-left: 1em;
  text-indent: -1em;
}

.beltType,
.darkBeltType {
  display: block;
  width: max-content;
  min-width: 220%;
  color: rgba(12, 97, 184, 0.16);
  font-family: var(--font-en);
  font-size: clamp(4rem, 14vw, 13rem);
  font-weight: 500;
  line-height: 0.72;
  white-space: nowrap;
  pointer-events: none;
  animation: typeMarquee 32s linear infinite;
  will-change: transform;
}

.beltType {
  margin: -44px 0 0 -12px;
}

@keyframes typeMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

.worksSec {
  padding: 0 0 120px;
}

.worksWrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 1.1fr;
  gap: 70px;
  align-items: start;
}

.worksMosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: sticky;
  top: 96px;
  background: var(--color-navy);
}

.worksMosaic img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  filter: grayscale(0.82) contrast(1.05);
  opacity: 0.9;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.worksMosaic img:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

.worksIntro {
  margin-top: 26px;
  color: var(--color-muted);
  font-weight: 400;
}

.worksListPlain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin-top: 28px;
}

/* 工事件名は行間・上下余白を詰めて一覧性を高める */
.worksItem {
  display: grid;
  align-items: start;
  min-height: 0;
  padding: 7px 0;
  border-top: 1px solid var(--color-line);
}

.worksItem span {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.safetySec {
  background: var(--color-pale);
}

.safetyWrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.safetyPhotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.safetyPhotoCard {
  background: var(--color-white);
  box-shadow: 0 18px 44px rgba(3, 31, 61, 0.12);
}

.safetyPhotoCard img {
  width: 100%;
  aspect-ratio: 1 / 0.68;
  object-fit: cover;
}

.safetyPhotoCard figcaption {
  padding: 14px 16px;
  color: var(--color-navy);
  font-weight: 800;
}

.growthSec {
  padding: 108px 0;
  background: var(--color-white);
}

.growthWrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 88px;
  align-items: center;
}

.growthPhoto img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  filter: grayscale(0.72);
}

.growthLeadText {
  margin-top: 22px;
  color: var(--color-muted);
  font-weight: 400;
}

.sectionCatch {
  margin-top: 20px;
  color: var(--color-navy);
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.28;
}

.qualificationPhotos {
  display: grid;
  gap: 18px;
}

.qualificationPhotos figure {
  background: var(--color-pale);
}

.qualificationPhotos img {
  aspect-ratio: 6 / 4;
}

.qualificationPhotos figcaption {
  padding: 12px 16px;
  color: var(--color-navy);
  font-weight: 800;
}

.licenseIntroBox {
  margin-top: 30px;
  padding: 22px 26px;
  border-left: 6px solid var(--color-blue);
  background: var(--color-pale);
}

.licenseIntroTitle {
  color: var(--color-navy);
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
}

.licenseIntroText {
  margin-top: 8px;
  color: var(--color-muted);
  font-weight: 400;
}

.licenseWrap {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid var(--color-line);
}

.licenseTitle {
  color: var(--color-navy);
  font-size: 24px;
}

.licenseList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin-top: 30px;
}

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

.licenseList li {
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 400;
}

.recruitSec {
  position: relative;
  overflow: hidden;
  background: var(--color-deep);
  color: var(--color-white);
}

.recruitSec .sectionSub {
  color: rgba(31, 155, 255, 0.25);
}

.recruitBg {
  padding: 104px 0 86px;
  background:
    linear-gradient(90deg, rgba(3, 31, 61, 0.96) 0%, rgba(3, 31, 61, 0.82) 50%, rgba(3, 31, 61, 0.55) 100%);
}

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

.recruitLeadText {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.recruitCatch {
  margin-top: 22px;
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.25;
}

.lineButton {
  margin-top: 30px;
}

.recruitPhotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.recruitPhotos img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  filter: saturate(0.85) hue-rotate(178deg);
  opacity: 0.82;
}

.darkBeltType {
  margin: -54px 0 0 -16px;
  color: rgba(31, 155, 255, 0.22);
}

.entrySec {
  padding: 108px 0;
  background: var(--color-pale);
}

.entryWrap {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
}

.entryLeadText {
  margin-top: 22px;
  color: var(--color-muted);
  font-weight: 400;
}

.entryBody {
  display: grid;
  gap: 26px;
}

.recruitData {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--color-white);
  padding: 28px 34px;
}

.recruitData div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-line);
}

.recruitData dt {
  color: var(--color-blue);
  font-weight: 900;
}

.recruitData dd {
  color: #3d4f60;
  font-weight: 400;
}

.mapEmbed {
  overflow: hidden;
  background: var(--color-white);
}

.mapEmbed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.contactSec {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-navy);
}

.contactImage {
  position: absolute;
  inset: 0;
}

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

.contactImage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.42) 45%, rgba(255, 255, 255, 0.9) 100%);
}

/* コンタクト文言は写真右側（建物側）に寄せ、左側の作業風景が見えるようにする */
.contactWrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.contactWrap .contactTitle,
.contactWrap h2,
.contactWrap .contactLead {
  max-width: 620px;
}

.contactTitle {
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.85;
}

.contactWrap h2 {
  margin-top: 24px;
  font-size: 22px;
}

.contactLead {
  margin-top: 12px;
  font-weight: 400;
}

.contactActions {
  display: flex;
  width: min(100%, 430px);
  margin-top: 30px;
}

.contactActionButton {
  display: grid;
  place-items: center;
  min-height: 58px;
  flex: 1;
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 900;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.contactActionButton:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-3px);
}

.contactModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contactModal.isOpen {
  opacity: 1;
  visibility: visible;
}

.contactModalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 31, 61, 0.72);
}

.contactModalPanel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 42px;
  background: var(--color-white);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  transform: translateY(18px);
  transition: transform 0.25s ease;
}

.contactModal.isOpen .contactModalPanel {
  transform: translateY(0);
}

.contactModalClose {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contactModalSub {
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
}

.contactModalTitle {
  margin-top: 8px;
  color: var(--color-navy);
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.35;
}

.contactModalLead {
  margin-top: 12px;
  color: var(--color-muted);
  font-weight: 400;
}

.contactForm {
  margin-top: 28px;
}

.contactFormHoneypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contactFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

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

.contactFormFieldFull {
  margin-top: 18px;
}

.contactFormLabel {
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1.5;
}

.contactFormRequired {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
}

.contactFormInput,
.contactFormSelect,
.contactFormTextarea {
  width: 100%;
  border: 1px solid var(--color-line);
  background: #f8fbfe;
  color: var(--color-ink);
  font: inherit;
}

.contactFormInput,
.contactFormSelect {
  min-height: 48px;
  padding: 10px 12px;
}

.contactFormTextarea {
  resize: vertical;
  min-height: 150px;
  padding: 12px;
}

.contactFormInput:focus,
.contactFormSelect:focus,
.contactFormTextarea:focus {
  outline: 2px solid rgba(12, 97, 184, 0.28);
  border-color: var(--color-blue);
  background: var(--color-white);
}

.contactFormNote {
  margin-top: 16px;
  color: #657484;
  font-size: 0.88rem;
  font-weight: 400;
}

.contactFormSubmit {
  display: inline-grid;
  place-items: center;
  min-width: 180px;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  background: var(--color-blue);
  color: var(--color-white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contactFormSubmit:hover {
  background: var(--color-navy);
  transform: translateY(-3px);
}

.siteFooter {
  position: relative;
  overflow: hidden;
  padding: 82px 0 38px;
  background: var(--color-deep);
  color: var(--color-white);
}

.footerWrap {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 72px;
}

.footerLogo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.footerLogo img {
  width: 42px;
  height: 42px;
}

.footerAddress {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.footerCatch {
  font-family: var(--font-en);
  font-size: clamp(1.3rem, 2.9vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.footerText {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.footerNav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.footerNav a:hover {
  color: var(--color-bright);
}

.copyright {
  width: min(calc(100% - 56px), var(--content-width));
  margin: 58px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-en);
  font-size: 13px;
}

.footerBigType {
  position: absolute;
  left: -18px;
  bottom: -14px;
  display: block;
  width: max-content;
  min-width: 220%;
  color: rgba(31, 155, 255, 0.16);
  font-family: var(--font-en);
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 500;
  line-height: 0.75;
  white-space: nowrap;
  pointer-events: none;
  animation: typeMarquee 34s linear infinite;
  will-change: transform;
}

.pageTopButton {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.pageTopButton.isVisible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pageTopButton:hover {
  background: var(--color-navy);
}

.resultPage {
  min-height: 100vh;
  background: var(--color-pale);
}

.resultSec {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.resultPanel {
  width: min(100%, 720px);
  padding: 48px;
  background: var(--color-white);
  box-shadow: 0 24px 64px rgba(3, 31, 61, 0.14);
}

.resultSub {
  color: var(--color-blue);
  font-family: var(--font-en);
  font-weight: 700;
}

.resultTitle {
  margin-top: 10px;
  color: var(--color-navy);
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.35;
}

.resultText {
  margin-top: 18px;
  color: var(--color-muted);
  font-weight: 400;
}

.resultError {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--color-blue);
  background: var(--color-pale);
  color: var(--color-navy);
  font-weight: 700;
}

.resultButton {
  display: inline-grid;
  place-items: center;
  min-width: 180px;
  min-height: 52px;
  margin-top: 28px;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 900;
  transition: background 0.25s ease, transform 0.25s ease;
}

.resultButton:hover {
  background: var(--color-navy);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .heroImage img {
    animation: none;
    transform: none;
  }

  .heroLead,
  .heroText,
  .statusLabel,
  .statusText,
  .statusLink,
  .heroChar,
  .animItem {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .beltType,
  .darkBeltType,
  .footerBigType {
    animation: none;
  }
}

@media screen and (max-width: 1100px) {
  .siteLogo {
    min-width: 210px;
  }

  .globalNav a {
    min-width: 72px;
    padding: 0 8px;
    font-size: 11px;
  }
}

@media screen and (max-width: 980px) {
  .siteHeader {
    top: 0;
    width: 100%;
  }

  .siteLogo {
    min-width: 0;
  }

  .menuButton {
    display: block;
  }

  .globalNav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(330px, 100%);
    height: calc(100vh - var(--header-height));
    display: grid;
    align-content: start;
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .globalNav.open {
    transform: translateX(0);
  }

  .globalNav a,
  .globalNav .navEntry {
    min-width: 0;
    min-height: 58px;
    justify-content: start;
    padding: 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-white);
    color: var(--color-navy);
    font-size: 13px;
  }

  .globalNav .navEntry {
    background: var(--color-blue);
    color: var(--color-white);
  }

  .heroSec,
  .heroInner {
    min-height: 650px;
  }

  .statusBarInner,
  .messageWrap,
  .introWrap,
  .worksWrap,
  .safetyWrap,
  .recruitWrap,
  .growthWrap,
  .entryWrap,
  .footerWrap {
    grid-template-columns: 1fr;
  }

  .serviceGrid,
  .profileCards,
  .licenseListFull {
    grid-template-columns: 1fr 1fr;
  }

  .statusLabel,
  .statusText,
  .statusLink {
    min-height: 58px;
  }

  .serviceCardWide {
    grid-row: auto;
  }

  .messageBody {
    padding-left: 0;
    border-left: 0;
  }

  .worksMosaic {
    position: static;
  }

  .profileCard dl div,
  .recruitData div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .contentWrap,
  .heroInner,
  .statusBarInner,
  .copyright {
    width: min(calc(100% - 40px), var(--content-width));
  }

  .siteLogoText {
    font-size: 16px;
  }

  .siteLogoMark {
    width: 38px;
    height: 38px;
  }

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

  .heroImageSplit img {
    height: 50%;
  }

  .heroSec,
  .heroInner {
    min-height: 700px;
  }

  .heroInner {
    padding: 120px 0 72px;
  }

  .heroCopy h1 {
    font-size: 3.1rem;
  }

  .heroText {
    padding: 18px 20px;
  }

  .messageSec,
  .profileSec,
  .growthSec,
  .entrySec {
    padding: 78px 0;
  }

  .introSec {
    padding: 78px 0 30px;
  }

  .serviceSec,
  .worksSec {
    padding-bottom: 76px;
  }

  .widePhotoSec {
    padding-bottom: 76px;
  }

  .widePhotoSec img {
    height: clamp(230px, 48vw, 320px);
  }

  .serviceGrid,
  .profileCards,
  .worksListPlain,
  .safetyPhotos,
  .licenseListFull,
  .licenseList {
    grid-template-columns: 1fr;
  }

  .serviceCard,
  .serviceCard img {
    min-height: 380px;
  }

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

  .profileCard {
    padding: 28px 22px;
  }

  .contactSec {
    min-height: 480px;
  }

  /* スマホでは中央寄せの元レイアウトに戻す */
  .contactWrap {
    align-items: stretch;
    text-align: left;
  }

  /* スマホは左寄せレイアウトのため、白ベールを全体に均一化して可読性を確保 */
  .contactImage::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.86));
  }

  .contactActions {
    display: grid;
  }

  .contactModal {
    padding: 18px;
  }

  .contactModalPanel {
    max-height: calc(100vh - 36px);
    padding: 34px 22px 28px;
  }

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

  .siteFooter {
    padding-top: 62px;
  }
}

@media screen and (max-width: 480px) {
  .siteHeader {
    height: var(--header-height);
  }

  .siteLogo {
    padding: 0 16px;
  }

  .siteLogoText {
    font-size: 14px;
  }

  .heroLead {
    font-size: 16px;
  }

  .heroCopy h1 {
    font-size: 2.7rem;
  }

  .sectionTitle {
    font-size: 2rem;
  }

  .sectionSub {
    margin-bottom: -0.22em;
    font-size: clamp(1.9rem, 12vw, 3rem);
  }

  .serviceCardText {
    padding: 22px;
  }

  .serviceCardText h3 {
    font-size: 23px;
  }

  .healthBlock,
  .partnerBlock {
    grid-template-columns: 1fr;
  }
}
