:root {
  --c-bg: #FFFFFF;
  /* base background */
  --c-bg-section: #E6EAF5;
  /* partial/section background */
  --c-text: #1A1A1A;
  /* primary text */
  --c-muted: #888888;
  /* secondary text */
  --c-border: #e9e9e9;
  /* subtle borders */
  --c-accent: #132685;
  /* accent color (kept for compat) */
  --c-theme: #132685;
  /* theme color */
  --c-warning: #F1C40F;
  /* attention/warning */

  /* Fonts */
  --ff-base: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Noto Sans JP', Meiryo, sans-serif;
  --ff-accent: 'Montserrat', 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;
  --ff-serif: 'Aleo', 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', Meiryo, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-theme);
  overflow-x: hidden; /* prevent full-bleed sections from triggering horizontal scroll */
  font-family: var(--ff-base);
  line-height: 1.7;
  padding-top: calc(var(--header-offset, 90px) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.page-works {
  background: var(--c-bg);
}

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

/* Layout */
main,
footer {
  padding: 16px;
  background: var(--c-bg);
}

/* Remove extra gap above hero */
main {
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {

  main,
  footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
  }

  main {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.site-header {
  border-bottom: 0;
  background: var(--c-bg);
  padding: 0;
  max-width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* above hero overlay */
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06), 0 1px 0 rgba(0, 0, 0, .04);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .3s ease;
  will-change: transform;
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--visible {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12), 0 1px 0 rgba(0, 0, 0, .05);
}

.site-header__inner {
  height: 90px;
  /* グローバルナビの高さ */
  max-width: 1280px;
  /* XDデザイン幅 */
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 768px) {
  body.is-nav-open {
    overflow: hidden;
  }

  .site-header__inner {
    justify-content: space-between;
    gap: 12px;
    height: 72px;
    padding: 0 16px;
  }

  .site-header__toggle {
    display: inline-flex !important;
    color: var(--c-text);
  }

  .site-header__toggle.is-active {
    color: #fff;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 320px);
    background: linear-gradient(180deg, rgba(19, 38, 133, 0.96) 0%, rgba(19, 38, 133, 0.98) 60%, rgba(19, 38, 133, 1) 100%);
    padding: 120px 28px 40px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    margin-left: 0;
    z-index: 1001;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px !important;
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-start;
    color: #fff;
  }

  .site-nav__list li {
    width: 100%;
  }

  .site-nav__item--home,
  .site-nav__item--contact {
    padding-top: 4px;
    margin-top: 0;
  }

  .site-nav__item--contact {
    padding-bottom: 12px;
    margin-bottom: 0;
  }

  .site-nav a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.05em;
    padding: 1px 0;
  }

  .site-nav__item--contact a {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #fff;
    color: var(--c-theme) !important;
    padding: 12px 0;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .site-nav__item--contact a:hover,
  .site-nav__item--contact a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.85);
    text-decoration: none;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 1000;
  }

  .site-nav__overlay.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 769px) {
  .site-header__toggle {
    display: none !important;
  }

  .site-nav__list {
    width: auto;
    gap: 40px;
    flex-direction: row;
    align-items: center;
    color: inherit;
  }

  .site-nav__list li {
    width: auto;
    border: none;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .site-nav__item--home,
  .site-nav__item--contact {
    display: none;
  }

  .site-nav a {
    display: inline-flex;
    padding: 0;
    letter-spacing: 0;
    position: relative;
  }

  .site-nav__list li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--c-theme);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }

  .site-nav__list li:hover::after,
  .site-nav__list li:focus-within::after {
    transform: scaleX(1);
  }

  .site-nav__list li a {
    padding-bottom: 6px;
  }

  .site-nav__item--contact a {
    background: none;
    color: inherit !important;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand__name {
  font-family: var(--ff-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand__logo {
  width: 28px;
  height: 28px;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--ff-accent);
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--c-text);
  font-size: 1.0625rem;
  /* 約17px */
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--c-theme);
  text-decoration: none;
}

.site-header__toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--c-text);
  z-index: 1100;
}

.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}

.site-header__toggle.is-active .site-header__toggle-bar:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__toggle.is-active .site-header__toggle-bar:nth-of-type(2) {
  opacity: 0;
}

.site-header__toggle.is-active .site-header__toggle-bar:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav__overlay {
  display: none;
}

/* Hero: full-bleed image with 50% themed overlay */
.hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(420px, 60vh, 720px);
  background-color: var(--c-bg);
  background-image: var(--hero-image, url('../img/hero.jpg'));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  /* top right bottom left (right side) */
  width: 50%;
  background: rgba(19, 38, 133, 0.82);
  /* var(--c-theme) with alpha */
}

.hero__inner {
  width: 100%;
  max-width: none;
  /* ヒーローは全幅基準 */
  margin: 0 auto;
  min-height: inherit;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 左:画像, 右:オーバーレイ領域 */
  align-items: center;
  /* 上下中央 */
}

.hero__content {
  position: relative;
  z-index: 1;
  /* above overlay */
  width: min(560px, 90%);
  color: #fff;
  grid-column: 2;
  /* 右の50%エリアに配置 */
  justify-self: center;
  /* 右エリア内で左右中央 */
  text-align: left;
  /* テキストは左詰め */
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--ff-accent);
  font-weight: 600;
  line-height: 1.15;
  font-size: clamp(32px, 5vw, 56px);
}

.hero__lead {
  margin: 0 0 24px;
  font-size: 1.125rem;
  opacity: .95;
}

.hero__actions .btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

@media (max-width: 767px) {
  .intro__lead {
    text-align: left;
  }

  .hero {
    align-items: flex-end;
    min-height: 400px;
  }

  .hero::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(0deg, rgba(19, 38, 133, 0.9) 0%, rgba(19, 38, 133, 0.88) 60%, rgba(19, 38, 133, 0) 100%);
  }

  .hero__inner {
    padding: 48px 20px 16px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: end;
    row-gap: 16px;
  }

  .hero__content {
    width: 100%;
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
}

/* (reverted) */

/* Headings use Montserrat with JP fallback */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-accent);
}

.section-heading__eyebrow {
  margin: 0 0 12px;
  font-family: var(--ff-accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FFF;
}

.section-heading__eyebrow::after {
  content: "";
  display: block;
  width: 76px;
  margin: 8px auto 0;
  border-bottom: 1px solid #F1C40F;
}

.section-heading__title {
  margin: 0;
  font-family: var(--ff-accent);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--ff-accent);
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, filter .2s ease, box-shadow .2s ease;
  text-decoration: none;
}

.btn-pill {
  border-radius: 9999px;
  padding: 14px 24px;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #13268533;
}

.btn-primary {
  background: var(--c-theme);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.95);
}

.btn-outline {
  background: transparent;
  color: var(--c-theme);
  border-color: var(--c-theme);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--c-theme);
  color: #fff;
}

.btn-warning {
  background: var(--c-warning);
  color: var(--c-text);
}

.btn-warning:hover,
.btn-warning:focus {
  filter: brightness(0.98);
}

.btn+.btn {
  margin-left: 12px;
}

/* Intro section under hero */
.intro {
  position: relative;
  /* full-bleed like hero */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg);
  padding: clamp(56px, 8vw, 96px) 24px clamp(140px, 18vw, 220px);
  overflow: hidden;
}

.intro__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.intro__title {
  margin: 0 0 20px;
  color: var(--c-theme);
  font-family: var(--ff-accent);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-size: clamp(34px, 7vw, 72px);
}

.intro__lead {
  width: min(900px, 92%);
  margin: 0 auto;
  font-size: 1.0625rem;
}

.intro__lead p {
  margin: 0 0 10px;
}

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

/* soft waves at the bottom */
/* restore filled waves via pseudo-elements */
.intro__inner {
  position: relative;
  z-index: 1;
}

.intro::after {
  content: none;
}

/* deeper layer behind for gentle parallax */
.intro::before {
  content: none;
}

/* (remove old drift keyframes) */

/* New wave animation (tile-moving, seamless loop) */
.wave-wrap {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(160px, 26vw, 320px);
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
}

.wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Themed links utility */
.link-theme {
  color: var(--c-theme);
}

.link-theme:hover,
.link-theme:focus {
  filter: brightness(0.95);
}

/* Utility helpers */
.text-theme {
  color: var(--c-theme);
}

.text-warning {
  color: var(--c-warning);
}

.bg-section {
  background: var(--c-bg-section);
}

.bg-base {
  background: var(--c-bg);
}

/* Services */
.services {
  padding: clamp(56px, 8vw, 96px) 24px;
}

.services__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services__title {
  margin: 0;
  color: var(--c-theme);
  font-family: var(--ff-accent);
  font-weight: 600;
  line-height: 1.05;
  text-align: left;
  font-size: clamp(40px, 7vw, 72px);
}

.services__subtitle {
  margin: 10px 0 36px;
  text-align: left;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

/* Slight indent to the right for headings */
.services__title,
.services__subtitle {
  margin-left: 80px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px clamp(20px, 4vw, 40px);
}

@media (max-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-section);
}

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

.service-card__eyebrow {
  margin: 18px 0 8px;
  color: var(--c-theme);
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 1.125rem;
}

.service-card__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 700;
}

.service-card__desc {
  margin: 0;
  color: #333;
  font-size: 0.9875rem;
}

/* Works */
.works {
  position: relative;
  /* full-bleed background */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg-section);
  padding: clamp(60px, 9vw, 120px) 24px;
}

.works__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.works__title {
  margin: 0;
  color: var(--c-theme);
  font-family: var(--ff-accent);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  font-size: clamp(40px, 7vw, 72px);
}

.works__subtitle {
  margin: 10px 0 48px;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 36px);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.works__cta {
  margin-top: clamp(32px, 6vw, 48px);
  text-align: center;
}

.works__more {
  min-width: 200px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 1100px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.work-card {
  display: block;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  padding: clamp(12px, 1.8vw, 20px);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.work-card:hover,
.work-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(19, 38, 133, 0.15);
  text-decoration: none;
}

.work-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 16px;
}

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

.work-card__meta {
  margin: 0 0 10px;
  color: var(--c-muted);
  font-size: 1rem;
}

.work-card__title {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
}

/* Scenery */
.scenery {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-theme);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 24px;
}

.scenery__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.scenery__title {
  margin: 0 0 clamp(32px, 6vw, 48px);
}

.scenery__carousel {
  position: relative;
  margin-top: clamp(32px, 6vw, 48px);
}

.scenery__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.scenery__track {
  transition: transform .45s ease;
  will-change: transform;
}

.scenery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(7, 18, 76, 0.55);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
  z-index: 2;
}

.scenery__nav::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform: translate(-3px, 0) rotate(45deg);
}

.scenery__nav--prev::before {
  transform: translate(3px, 0) rotate(-135deg);
}

.scenery__nav:hover,
.scenery__nav:focus {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.scenery__nav:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
}

.scenery__nav:hover,
.scenery__nav:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.scenery__nav--prev {
  left: 12px;
}

.scenery__nav--next {
  right: 12px;
}

.scenery__dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.scenery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
}

.scenery__dot.is-active {
  background: #fff;
}

.scenery__nav[hidden],
.scenery__dots[hidden] {
  display: none !important;
}

.scenery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
}

.scenery__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.scenery__item--clone {
  display: none;
}

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

@media (max-width: 992px) {
  .scenery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 767px) {
  .scenery {
    padding-left: 0;
    padding-right: 0;
  }

  .scenery__inner {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .scenery__carousel {
    margin-top: 24px;
  }

  .scenery__grid {
    display: flex !important;
    gap: 20px;
  }

  .scenery__item {
    flex: 0 0 min(78vw, 320px);
    overflow: hidden;
    transform: scale(0.92);
    opacity: 0.7;
    transition: transform .35s ease, opacity .35s ease;
  }

  .scenery__item.is-active {
    transform: scale(1);
    opacity: 1;
  }

  .scenery__item--clone {
    display: block;
  }

  .scenery__viewport {
    padding: 0;
  }

  .scenery__nav {
    display: inline-flex;
  }

  .scenery__dots {
    display: flex;
  }
}

/* Recruit info */
.recruit-info {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-theme);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 24px clamp(80px, 10vw, 140px);
}

.recruit-info__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.recruit-info__title {
  margin: 0 0 clamp(36px, 6vw, 56px);
}

.recruit-info__table {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  text-align: left;
}

.recruit-info__row {
  display: flex;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(18px, 3vw, 28px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.recruit-info__term {
  flex: 0 0 140px;
  margin: 0;
  font-family: var(--ff-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.recruit-info__desc {
  flex: 1;
  margin: 0;
  line-height: 1.8;
  font-size: 0.9875rem;
}

.recruit-info__desc p {
  margin: 0 0 12px;
}

.recruit-info__desc p:last-child {
  margin-bottom: 0;
}

.recruit-info__desc strong {
  font-weight: 700;
}

@media (max-width: 720px) {
  .recruit-info__row {
    flex-direction: column;
    gap: 12px;
  }

  .recruit-info__term {
    flex: none;
  }
}

/* Entry */
.entry {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-theme);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 24px clamp(80px, 10vw, 140px);
}

.entry__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.entry__title {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.entry-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.entry-form__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}

.entry-form__row--textarea {
  align-items: center;
}

.entry-form__label {
  justify-self: start;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.entry-form__control {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  color: var(--c-text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.entry-form__control:focus {
  outline: 3px solid rgba(241, 196, 15, 0.5);
  outline-offset: 2px;
}

.entry-form__control--textarea {
  min-height: 160px;
  resize: vertical;
}

.entry-form__actions {
  margin-top: clamp(12px, 3vw, 24px);
  display: flex;
  justify-content: center;
}

.entry-form__submit {
  min-width: 180px;
  padding-inline: 48px;
  background: #0c1c74;
}

.entry-form__submit:hover,
.entry-form__submit:focus {
  filter: brightness(1.05);
}

@media (max-width: 720px) {
  .entry-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-form__label {
    font-size: 0.95rem;
  }

  .entry-form__control {
    border-radius: 10px;
  }

  .entry-form__submit {
    width: 100%;
  }
}

/* About */
.about {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(72px, 10vw, 160px) 24px clamp(100px, 12vw, 180px);
  background: url('../img/about-bg.jpg') center / cover no-repeat;
  color: var(--c-text);
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about__card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 60px);
}

.about__list {
  margin: 0 0 0 80px;
  padding: 0;
}

.about__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  gap: clamp(20px, 5vw, 60px);
  padding: clamp(14px, 2.8vw, 22px) 0;
  border-top: 1px solid rgba(19, 38, 133, 0.12);
}

.about__row:first-of-type {
  border-top: 1px solid rgba(19, 38, 133, 0.25);
}

.about__term {
  margin: 0;
  font-weight: 700;
  color: var(--c-theme);
  letter-spacing: 0.03em;
}

.about__desc {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__term {
    font-size: 0.95rem;
  }

  .about__list {
    margin-left: 0;
  }
}

/* Contact */
.contact-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg-section);
  padding: clamp(80px, 12vw, 140px) 24px;
}

.contact-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero__title {
  margin: 0 0 16px;
  font-family: var(--ff-accent);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  color: var(--c-theme);
}

.contact-hero__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: #2d2d2d;
  line-height: 1.8;
}

.contact-form {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg);
  padding: clamp(64px, 10vw, 120px) 24px clamp(80px, 12vw, 140px);
}

.contact-form__inner {
  max-width: 760px;
  margin: 0 auto;
}

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

.contact-form__form {
  background: #fff;
  padding: clamp(28px, 6vw, 48px) clamp(24px, 6vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.contact-form__form > p {
  margin: 0;
}

.contact-form__form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form__form .wpcf7-form-control {
  width: 100%;
}

.contact-form__form .wpcf7-spinner {
  margin-left: auto;
}

.contact-form__form .wpcf7-response-output {
  margin-top: 24px;
  border-radius: 12px;
  border: none;
  padding: 16px 20px;
  background: rgba(19, 38, 133, 0.08);
  color: var(--c-theme);
}

.contact-form__required {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.45);
  color: var(--c-theme);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.contact-form__note {
  margin: clamp(24px, 6vw, 36px) 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

@media (max-width: 720px) {
  .contact-form__form {
    padding: clamp(24px, 8vw, 32px) clamp(18px, 6vw, 28px);
  }
}

/* Map */
.map {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
}

/* Work detail */
.work-detail {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg);
  padding: clamp(48px, 8vw, 96px) 24px clamp(80px, 10vw, 120px);
  color: var(--c-text);
}

.work-detail__hero {
  max-width: 860px;
  margin: 0 auto clamp(40px, 6vw, 56px);
  text-align: center;
}

.work-detail__category {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(19, 38, 133, 0.12);
  color: var(--c-theme);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.work-detail__title {
  margin: 0 0 12px;
  font-family: var(--ff-accent);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
}

.work-detail__meta {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.work-detail__gallery {
  max-width: 960px;
  margin: 0 auto clamp(56px, 8vw, 80px);
}

.work-gallery__main {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(19, 38, 133, 0.18);
}

.work-gallery__stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(19, 38, 133, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background-color .2s ease;
}

.work-gallery__nav::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.work-gallery__nav--prev {
  left: 12px;
}

.work-gallery__nav--prev::before {
  transform: rotate(-135deg);
}

.work-gallery__nav--next {
  right: 12px;
}

.work-gallery__nav:hover,
.work-gallery__nav:focus {
  transform: translateY(-50%) scale(1.06);
  background: rgba(255, 255, 255, 0.25);
}

.work-gallery__thumbnails {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
}

.work-gallery__thumb {
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}

.work-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1.2 / 1;
}

.work-gallery__thumb.is-active {
  box-shadow: 0 12px 24px rgba(19, 38, 133, 0.18);
  transform: translateY(-2px);
}

.work-detail__summary,
.work-detail__description,
.work-detail__cta {
  max-width: 860px;
  margin: 0 auto clamp(48px, 7vw, 72px);
}

.work-detail__heading {
  margin: 0 0 20px;
  font-size: clamp(22px, 3vw, 28px);
  font-family: var(--ff-accent);
  font-weight: 600;
  color: var(--c-theme);
}

.work-detail__data {
  margin: 0;
  padding: 0;
}

.work-detail__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(19, 38, 133, 0.12);
}

.work-detail__row dt {
  margin: 0;
  font-weight: 700;
  color: var(--c-theme);
}

.work-detail__row dd {
  margin: 0;
  line-height: 1.8;
}

.work-detail__description p {
  margin: 0 0 16px;
  line-height: 1.9;
}

.work-detail__description p:last-child {
  margin-bottom: 0;
}

.work-detail__cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(19, 38, 133, 0.92), rgba(19, 38, 133, 0.78));
  color: #fff;
  padding: clamp(36px, 7vw, 56px);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(19, 38, 133, 0.25);
}

.work-detail__heading--accent {
  color: var(--c-warning);
}

.work-detail__pager {
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(19, 38, 133, 0.12);
}

.work-detail__pager-link {
  font-weight: 600;
  color: var(--c-theme);
  text-decoration: none;
}

.work-detail__pager-link:hover,
.work-detail__pager-link:focus {
  text-decoration: underline;
}

.work-detail__pager-link--all {
  margin-left: auto;
  margin-right: auto;
}

.work-detail__cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.work-detail__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.work-detail__cta-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}

.work-detail__cta-actions .btn-outline:hover,
.work-detail__cta-actions .btn-outline:focus {
  background: #fff;
  color: var(--c-theme);
}

@media (max-width: 900px) {
  .work-detail__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .work-detail {
    padding: clamp(32px, 8vw, 60px) 16px clamp(64px, 10vw, 96px);
  }

  .work-detail__hero {
    margin-bottom: 36px;
  }

  .work-gallery__nav {
    display: inline-flex;
  }

  .work-gallery__thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  }

  .work-detail__cta {
    padding: clamp(28px, 9vw, 44px);
  }

  .work-detail__pager {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .work-detail__pager-link--all {
    margin-left: 0;
    margin-right: 0;
  }
}

.map__inner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(40px, 8vw, 64px) 24px 0;
}

.map__frame-wrap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.map__frame {
  width: 100%;
  height: 373px;
  border: 0;
  display: block;
}

.map__title {
  text-align: center;
  color: var(--c-theme);
}

.map__subtitle {
  text-align: center;
  color: var(--c-muted);
}

@media (max-width: 640px) {
  .map__inner {
    padding: clamp(28px, 10vw, 48px) 16px 0;
  }

  .map__frame {
    height: 280px;
    width: 100%;
  }
}

/* Footer */
.site-footer {
  margin: 0;
  width: 100%;
  max-width: none;
  background: var(--c-theme);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 24px;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: clamp(20px, 4vw, 28px);
}

.site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer__logo {
  display: block;
  width: clamp(42px, 6vw, 56px);
  height: auto;
}

.site-footer__name {
  margin: 0;
  font-family: var(--ff-accent);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: 0.08em;
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  line-height: 1.9;
  font-size: clamp(14px, 2.4vw, 16px);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__strong {
  font-weight: 600;
}

.site-footer__note {
  margin: 0;
  font-size: clamp(13px, 2.2vw, 15px);
  color: rgba(255, 255, 255, 0.8);
}

/* Recruit */
.recruit {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-theme);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 24px;
}

.recruit__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.recruit__title {
  margin: 0;
  color: #fff;
  font-family: var(--ff-accent);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  font-size: clamp(40px, 7vw, 72px);
}

.recruit__subtitle {
  margin: 10px 0 48px;
  text-align: center;
  color: #cfd6ff;
  font-size: 0.9375rem;
}

.recruit__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* image left (bleeds), text right */
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 96px);
  overflow: visible;
  /* allow image to bleed outside container */
}

/* Match design: top-aligned copy and wide image crop for bleed layout */
.recruit__intro--bleed {
  align-items: start;
}

.recruit__intro--bleed .recruit__media {
  aspect-ratio: 16 / 9;
  margin-left: -24px;
}

.recruit__intro--bleed .recruit__media img {
  object-position: right center;
  transform: none;
}

.recruit__copy-inner {
  max-width: 560px;
}

.recruit__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e1b6b;
  align-self: center; /* vertically center within the grid row */
}

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

.recruit__copy {
  position: relative;
  z-index: 1;
  align-self: stretch;        /* take full row height */
  display: flex;              /* enable vertical centering of inner */
  align-items: center;        /* vertical center */
}

.recruit__headline {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.recruit__text p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .9);
}

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

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


.recruit__lead {
  text-align: center;
  margin: clamp(40px, 6vw, 72px) 0;
}

.recruit__quote {
  margin: 0 0 6px;
}

.recruit__meta {
  margin: 0;
  color: #cfd6ff;
  font-size: 0.9375rem;
}

.recruit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.recruit-block--reverse {
  grid-auto-flow: dense;
}

.recruit-block--reverse .recruit-block__media {
  order: 2;
}

.recruit-block--reverse .recruit-block__body {
  order: 1;
}

.recruit-block__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e1b6b;
}

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

.recruit-block__title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #e8edff;
}

.recruit-block__text p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .9);
}

.recruit-block__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .recruit-block {
    grid-template-columns: 1fr;
  }

  .recruit-block--reverse .recruit-block__media {
    order: 0;
  }

  .recruit-block--reverse .recruit-block__body {
    order: 0;
  }
}
.works-archive {
  padding: clamp(48px, 8vw, 96px) 24px clamp(80px, 10vw, 120px);
  background: var(--c-bg);
  color: var(--c-text);
}

.works-archive__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.works-archive__hero {
  max-width: 860px;
  margin: 0 auto clamp(40px, 6vw, 56px);
  text-align: center;
}

.works-archive__eyebrow {
  margin: 0 0 12px;
  color: var(--c-theme);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.works-archive__title {
  margin: 0 0 16px;
  font-family: var(--ff-accent);
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 700;
}

.works-archive__lead {
  margin: 0;
  color: var(--c-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}


.works-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 40px);
}

.works-archive__item {
  text-decoration: none;
  color: inherit;
}

.works-archive__empty {
  margin: clamp(24px, 6vw, 40px) auto;
  text-align: center;
  color: var(--c-muted);
}

.works-archive__pagination {
  margin: clamp(40px, 7vw, 72px) auto 0;
  display: flex;
  justify-content: center;
}

.works-archive__pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 6px 20px;
  background: rgba(19, 38, 133, 0.08);
}

.works-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--c-theme);
  text-decoration: none;
}

.works-archive__pagination .page-numbers.current,
.works-archive__pagination .page-numbers:hover,
.works-archive__pagination .page-numbers:focus {
  background: var(--c-theme);
  color: #fff;
}

@media (max-width: 992px) {
  .works-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .works-archive {
    padding: clamp(32px, 10vw, 60px) 16px clamp(72px, 12vw, 96px);
  }

  .works-archive__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.work-detail__gallery { margin-block: 32px; }
.work-detail__gallery .wp-block-gallery { gap: 12px; }
.work-detail__gallery figure { margin: 0; }
.work-detail__main-image { width: 100%; height: auto; display: block; }
