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

:root {
  --dark:   #0d1117;
  --navy:   #111827;
  --accent: #c8a96e;
  --en: 'Montserrat', sans-serif;
  --ja: 'Noto Sans JP', sans-serif;
}

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

/* キーボード操作時のみフォーカスリングを表示 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* フォーム要素はボーダー変化でフォーカスを示すため outline は不要 */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
}

body {
  font-family: var(--ja);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

/* ── TEXT CLIP HELPER ── */
.t-clip { overflow: hidden; display: block; }
.t-clip-inner { display: block; }

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo {
  font-family: var(--en);
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.4em;
  opacity: 0;
}
.loader-logo span { color: var(--accent); }
.loader-bar-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
}
.loader-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.06s linear;
}
.loader-count {
  position: fixed;
  bottom: 20px; right: 40px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.5s, padding 0.4s;
  opacity: 0;
}
header.scrolled {
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
}
/* contact/privacy ページではヘッダーを最初から表示 */
.page-body header {
  opacity: 1;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
}
.logo {
  font-family: var(--en);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: 32px; align-items: center; }
nav a {
  font-family: var(--en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s ease;
}
nav a:hover { color: #fff; }
nav a:hover::after { right: 0; }
.nav-num { font-size: 8px; color: var(--accent); }
.nav-cta {
  border: 1px solid rgba(200,169,110,0.55);
  padding: 8px 18px;
  color: var(--accent) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--accent);
  color: var(--dark) !important;
}

/* ── HERO ── */
#home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13,17,23,0.65) 0%,
      rgba(13,17,23,0.12) 45%,
      rgba(13,17,23,0.70) 100%),
    linear-gradient(120deg,
      rgba(13,17,23,0.55) 0%,
      transparent 65%);
  z-index: 1;
}
/* 左が濃く右へ徐々に薄れるフロスト（グラデーション） */
.hero-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  /* オーバーレイ：画像はくっきりのまま、左を濃く右へ透明に */
  background: linear-gradient(
    to right,
    rgba(13,17,23,0.88) 0%,
    rgba(13,17,23,0.7) 45%,
    rgba(13,17,23,0.35) 70%,
    transparent 95%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
  padding: 0 48px 0 clamp(56px, 8vw, 120px);
}
.hero-tag {
  font-family: var(--en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(28px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.12em;
}
/* ── SECTION BASE ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.section-label {
  font-family: var(--en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* ── ABOUT ── */
#philosophy { background: var(--dark); }
#philosophy .section-inner { padding-bottom: 56px; }

/* ── PHILOSOPHY ── */
.philosophy {
  text-align: left;
}

/* VISION / MISSION / VALUE ── 縦組み・罫線なし */
.vmv {
  margin-top: 40px;
  text-align: left;
}
.vmv-row {
  padding: 56px 0;
}
.vmv-row + .vmv-row {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.vmv-row:last-child { padding-bottom: 0; }
.vmv-head {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin-bottom: 36px;
}
.vmv-jp {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.vmv-label {
  font-family: var(--en);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #fff;
}
.vmv-title {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.vmv-text {
  max-width: 900px;
}
.vmv-text p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
}
.vmv-text p + p { margin-top: 8px; }


/* ── SERVICE ── */
#service { background: var(--navy); }
.corporate-grid {
  display: grid;
  /* 6列グリッド＋各カードspan2＝1段3枚。5枚目までで下段2枚を中央寄せ */
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.corp-card { grid-column: span 2; }
/* 下段（4・5枚目）を中央に配置 */
.corp-card:nth-child(4) { grid-column: 2 / span 2; }
.corp-card:nth-child(5) { grid-column: 4 / span 2; }
.corp-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  clip-path: inset(0 0 0 0);
}
.corp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.corp-card:hover img { transform: scale(1.08); }
.corp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.92) 0%, rgba(13,17,23,0.08) 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.corp-tag {
  font-family: var(--en);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 7px;
}
.corp-name {
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.4s ease;
}
.corp-card:hover .corp-name { transform: translateX(6px); }
.corp-desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin-top: 6px;
}
.corp-card:hover .corp-desc { max-height: 60px; opacity: 1; }
.corp-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border: 1px solid rgba(200,169,110,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.corp-card:hover .corp-arrow { opacity: 1; transform: translateY(0); }

/* エアコンカードのみリンク（求人ページへ）。下線・文字色をリセット */
a.corp-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* モーダル停止中のため、リンク以外のカードはポインタ表示にしない */
.corp-card:not(.corp-card--link) {
  cursor: default;
}

/* ── GREETING ── */
#greeting { background: var(--dark); }
.greeting-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: stretch;
}
.greeting-figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.greeting-img-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.greeting-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 1px solid rgba(200,169,110,0.25);
  z-index: 0;
}
.greeting-img {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
}
.greeting-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.8s ease;
}
.greeting-img:hover img { transform: scale(1.04); }
.greeting-text .section-title { margin: 14px 0 10px; }
.greeting-role {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.greeting-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.05;
  color: rgba(255,255,255,0.72);
}
.greeting-body p + p { margin-top: 22px; }
.greeting-body p.greeting-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.95;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
}
.greeting-pull {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #fff;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  margin: 36px 0;
}
.greeting-em {
  font-family: var(--en);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.greeting-caption {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.greeting-caption .greeting-role {
  display: block;
  margin-bottom: 8px;
}
.greeting-name {
  display: block;
  font-family: var(--ja);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}
.greeting-name-en {
  display: block;
  margin-top: 6px;
  font-family: var(--en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
}

/* ── COMPANY ── */
#company { background: var(--navy); }
.company-table {
  width: 100%;
  margin-top: 56px;
  border-collapse: collapse;
}
.company-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.company-table tr:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.company-table th {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 24px 32px 24px 0;
  white-space: nowrap;
  width: 220px;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
}
.company-table td {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  line-height: 1.9;
}

/* ── CONTACT CTA ── */
#contact-cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: -20% 0;
  background: url('images/cta-bg.webp') center/cover no-repeat;
  will-change: transform;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.88);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 48px;
}
.cta-content .section-title {
  margin: 14px 0 24px;
}
.cta-content p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 2;
  margin-bottom: 36px;
}
.btn-cta {
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--dark);
  padding: 16px 52px;
  border-radius: 999px;
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.btn-cta span {
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
footer { background: #07090e; padding: 64px 48px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: var(--en);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.28em;
}
.footer-logo span { color: var(--accent); }
.footer-logo p {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  margin-top: 10px;
}
.footer-nav { display: flex; gap: 52px; align-items: flex-start; }
.footer-nav-col { min-width: 140px; }
.footer-nav-col h5 {
  font-family: var(--en);
  font-size: 9px;
  letter-spacing: 0.38em;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-nav-col a {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer-nav-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-family: var(--en);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}
.footer-privacy {
  font-family: var(--en);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-privacy:hover { color: rgba(255,255,255,0.5); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  /* 44px 以上のタッチターゲットを確保 */
  padding: 11px 10px;
  margin-right: -10px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.98);
  z-index: 98;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* ── PAGE HERO (contact / privacy) ── */
.page-hero {
  padding: 160px 48px 80px;
  background: var(--navy);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero .section-label {
  justify-content: center;
}
.page-hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* ── CONTACT PAGE ── */
.contact-page-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--en);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--accent);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-bottom-color: rgba(255,255,255,0.2);
  color: #fff;
  padding: 13px 16px;
  font-family: var(--ja);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  border-radius: 0;
  appearance: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(200,169,110,0.04);
}
.form-group select option { background: var(--dark); }
.form-group select:focus {
  border-color: var(--accent);
  background-color: rgba(200,169,110,0.04);
}
.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23c8a96e' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-group textarea { height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--dark);
  padding: 18px;
  border-radius: 999px;
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.btn-submit span {
  position: relative;
  z-index: 1;
}
.form-note {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-top: 8px;
}
.form-result {
  display: none;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.form-result--success {
  border: 1px solid rgba(200,169,110,0.4);
  color: var(--accent);
  background: rgba(200,169,110,0.05);
}
.form-result--error {
  border: 1px solid rgba(255,100,100,0.4);
  color: rgba(255,150,150,0.9);
  background: rgba(255,100,100,0.05);
}
.field-error {
  font-size: 11px;
  color: rgba(255,110,110,0.9);
  letter-spacing: 0.03em;
}
.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: rgba(255,100,100,0.5);
  border-bottom-color: rgba(255,100,100,0.7);
}

/* ── PRIVACY PAGE ── */
.privacy-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 48px;
}
.privacy-inner h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,169,110,0.2);
  color: var(--accent);
}
.privacy-inner h2:first-child { margin-top: 0; }
.privacy-inner p {
  font-size: 13px;
  font-weight: 300;
  line-height: 2.3;
  color: rgba(255,255,255,0.6);
}
.privacy-inner p + p { margin-top: 14px; }
.privacy-inner ul {
  margin: 12px 0 12px 1.5em;
  font-size: 13px;
  font-weight: 300;
  line-height: 2.3;
  color: rgba(255,255,255,0.6);
}
.privacy-date {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
}

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal.is-open .modal-overlay { opacity: 1; }
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--navy);
  width: 92%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid rgba(200,169,110,0.15);
  transform: translateY(32px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease;
}
.modal.is-open .modal-panel {
  transform: translateY(0);
  opacity: 1;
}
.modal-close {
  position: sticky;
  top: 20px;
  float: right;
  margin: 20px 20px 0 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.modal-inner { padding: 8px 52px 56px; }
.modal-header {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
}
.modal-tag {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 12px;
}
.modal-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.modal-lead {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.1;
  color: rgba(255,255,255,0.6);
}
.modal-section { margin-bottom: 40px; }
.modal-section-heading {
  font-family: var(--en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200,169,110,0.2);
}
.modal-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.modal-feature {
  border: 1px solid rgba(200,169,110,0.12);
  background: rgba(200,169,110,0.03);
  padding: 20px;
}
.feature-num {
  font-family: var(--en);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  opacity: 0.65;
}
.modal-feature p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.flow-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  flex-shrink: 0;
  text-align: center;
}
.flow-num {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--en);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step p {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.flow-sep {
  color: rgba(200,169,110,0.4);
  font-size: 16px;
  flex-shrink: 0;
}
.modal-recommend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-recommend li {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  padding-left: 20px;
  position: relative;
  line-height: 1.9;
}
.modal-recommend li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--en);
}
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-item:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }
.faq-q {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.faq-a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 2;
  padding-left: 20px;
}
.modal-cta-wrap {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta--recruit {
  background: transparent;
  color: var(--accent);
}
.btn-cta--recruit:hover { background: rgba(200,169,110,0.10); }

/* ── RESPONSIVE ── */
/* タブレット：事業紹介を2列に（4列グリッド＋span2）。最後の1枚は中央寄せ */
@media (max-width: 1024px) {
  .corporate-grid { grid-template-columns: repeat(4, 1fr); }
  .corp-card:nth-child(4) { grid-column: span 2; }
  .corp-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 900px) {
  header { padding: 20px 24px; }
  header.scrolled { padding: 14px 24px; }
  .page-body header { padding: 14px 24px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .section-inner { padding: 80px 24px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  /* モバイル：全面を均一フロストに（テキスト視認性優先） */
  .hero-panel {
    width: 100%;
    background: linear-gradient(
      to right,
      rgba(13,17,23,0.7) 0%,
      rgba(13,17,23,0.55) 60%,
      rgba(13,17,23,0.4) 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }
.greeting-layout { grid-template-columns: 1fr; gap: 48px; }
  .corporate-grid { grid-template-columns: 1fr; }
  .corp-card,
  .corp-card:nth-child(4),
  .corp-card:nth-child(5) { grid-column: auto; }
  .vmv { margin-top: 32px; }
  .vmv-row { padding: 40px 0; }
  .vmv-head { margin-bottom: 28px; }
.stats-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .loader-count { right: 24px; }
  .modal-inner { padding: 8px 24px 48px; }
  .modal-feature-grid { grid-template-columns: 1fr; }
  /* 代表者：装飾枠を非表示（画面外にはみ出るため） */
  .greeting-img-wrap::before { display: none; }
  /* モバイルは高さ揃えを解除し、写真本来の比率で表示 */
  .greeting-figure { display: block; }
  .greeting-img-wrap { flex: none; }
  .greeting-img { height: auto; min-height: 0; }
  .greeting-img img { position: static; inset: auto; height: auto; aspect-ratio: 3/4; max-height: 420px; }
  /* 会社概要：テーブルを縦積みに */
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; }
  .company-table th {
    padding: 20px 0 4px;
    width: auto;
    white-space: normal;
    border-bottom: none;
  }
  .company-table td { padding: 0 0 20px; }
  .company-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .page-hero { padding: 120px 24px 60px; }
  .contact-page-inner { padding: 60px 24px; }
  .privacy-inner { padding: 60px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-content { padding: 60px 24px; }
}

/* ── 小型スマホ（480px 以下） ── */
@media (max-width: 480px) {
  header { padding: 14px 16px; }
  header.scrolled { padding: 12px 16px; }
  .page-body header { padding: 12px 16px; }
  .logo { font-size: 15px; letter-spacing: 0.2em; }
  .section-inner { padding: 64px 20px; }
  .hero-content { padding: 0 20px; }
  .page-hero { padding: 100px 20px 52px; }
  .contact-page-inner,
  .privacy-inner { padding: 48px 20px; }
  .hero-sub { font-size: 12px; letter-spacing: 0.08em; }
  .mobile-nav a { font-size: 14px; letter-spacing: 0.2em; }
  .mobile-nav { gap: 28px; }
  .modal-inner { padding: 4px 18px 40px; }
  .cta-content { padding: 52px 20px; }
  footer { padding: 48px 20px 28px; }
}

/* ── 極小スマホ（375px 以下） ── */
@media (max-width: 375px) {
  header { padding: 12px 14px; }
  header.scrolled { padding: 10px 14px; }
  .page-body header { padding: 10px 14px; }
  .logo { font-size: 13px; }
  .section-inner { padding: 56px 16px; }
  .contact-page-inner,
  .privacy-inner { padding: 40px 16px; }
  footer { padding: 40px 16px 24px; }
}

