@charset 'UTF-8';

/* ─────────────────────────────────────
   2026 Design System - Color Palette
   ───────────────────────────────────── */
:root {
  --ink: #1C2734;        /* 藍鉄：基調の濃紺 */
  --paper: #F6F5F1;      /* 生成り：背景 */
  --mist: #E7E8E4;       /* 薄鼠：区切り */
  --aobeki: #47788A;     /* 青碧：アクセント(空気と水) */
  --gold: #C8853A;       /* 金茶：番号・二色バー */
  --line: #C5C9C7;       /* 罫線 */
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", "Noto Sans JP", sans-serif;
}

/* Class Aliases */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────
   NEWS BANNER
   ───────────────────────────────────── */
.news {
  background: var(--ink);
  color: #EDEDE8;
}

.news .wrap {
  max-width: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 15px 28px;
  font-size: 0.92rem;
}

.news .tag {
  border: 1px solid #5a6878;
  padding: 2px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.news time {
  color: #9fb3bd;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.news a {
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.news a:hover {
  border-color: #9fb3bd;
}

.news .nw-lead {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: #c6d0d8;
}

/* ヒーロースクロール中: NEWS を画面下に固定（PC のみ） */
@media (min-width: 761px) {
  .page-top.hero-scrolling .news {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: var(--ink);
    transition: opacity 0.35s ease;
  }
}

/* ヒーロー通過後: 通常のドキュメントフローに戻す */
.page-top.hero-done .news {
  position: relative;
  opacity: 1;
}

@media (max-width: 760px) {
  .news .wrap {
    gap: 8px 16px;
    padding: 12px 16px;
  }

  /* 初回画面はヒーローのみ。NEWS はスクロール後に通常フローで表示 */
  .page-top.hero-scrolling .news {
    position: relative;
  }
}

/* ─────────────────────────────────────
   SECTION HEADING
   ───────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 54px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.sec-head span {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: #5f6b76;
}

.lead {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 2.4;
  letter-spacing: 0.08em;
  max-width: 680px;
  color: var(--ink);
}

.lead b {
  background: linear-gradient(transparent 72%, rgba(71, 120, 138, 0.25) 72%);
  font-weight: 600;
}

/* ─────────────────────────────────────
   MESSAGE / CEO GREETING
   ───────────────────────────────────── */
.message {
  background: var(--paper);
  padding: 96px 0;
  border-top: 1px solid var(--mist);
  color: var(--ink);
}

.msg-body {
  max-width: 760px;
  color: var(--ink);
}

.msg-body p {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 2.5;
  letter-spacing: 0.08em;
  margin-bottom: 1.7em;
}

.msg-body p:last-of-type {
  margin-bottom: 0;
}

.msg-pull {
  max-width: 760px;
  margin: 46px 0 38px;
  padding: 26px 34px;
  border-left: 3px solid var(--aobeki);
  background: #EFF2F0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.95;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.msg-cite {
  display: block;
  margin-top: 30px;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #454f59;
}

/* Philosophy Card */
.philo {
  margin-top: 66px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #EDEDE8;
  padding: 46px 56px;
}

.philo .label {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: #8b99a6;
}

.philo .ttl {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  white-space: nowrap;
  line-height: 1.5;
}

.philo .ttl i {
  font-style: normal;
  color: var(--aobeki);
  margin: 0 0.35em;
  font-weight: 400;
}

.philo .head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.philo .note {
  flex: 1;
  min-width: 240px;
  font-size: 0.84rem;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: #c6d0d8;
  border-left: 1px solid #3a4654;
  padding-left: 34px;
}

@media (max-width: 760px) {
  .philo {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 34px 28px;
  }

  .philo .note {
    border-left: none;
    border-top: 1px solid #3a4654;
    padding-left: 0;
    padding-top: 22px;
    min-width: 0;
  }
}

/* ─────────────────────────────────────
   KEYWORDS / FIELD SECTION
   ───────────────────────────────────── */
.field {
  background: var(--paper);
  padding: 0;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  color: var(--ink);
}

/* ヒーロー写真の上に本文を乗せる（section { position:static !important } より後勝ち）。
   通過前は背景を透かし、見出しも白にして柱カードと同時に読めるようにする */
.page-top .field {
  position: relative !important;
  z-index: 1;
  transition: background 0.6s ease;
}

@media (min-width: 768px) {
  .page-top:not(.hero-done) .field {
    background: transparent;
  }

  .page-top:not(.hero-done) .field .sec-head h2,
  .page-top:not(.hero-done) .field .lead,
  .page-top:not(.hero-done) .field .lead.nobreak,
  .page-top:not(.hero-done) .field .lead-sub {
    color: #F6F5F1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
    transition: color 0.6s ease, text-shadow 0.6s ease;
  }

  .page-top:not(.hero-done) .field .sec-head span {
    color: rgba(246, 245, 241, 0.75);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  }

  .page-top:not(.hero-done) .field .lead b {
    background: linear-gradient(transparent 72%, rgba(200, 133, 58, 0.55) 72%);
  }
}

.field .wrap {
  width: 100%;
  padding-top: 54px;
  padding-bottom: 54px;
}

.field .sec-head {
  margin-bottom: 26px;
}

.field .lead {
  line-height: 1.95;
}

.field .lead.nobreak {
  max-width: none;
  white-space: nowrap;
  font-size: 1.18rem;
  color: var(--ink);
}

.field .lead-sub {
  margin-top: 14px;
  font-size: 1.02rem;
}

.field .lead b {
  background: linear-gradient(transparent 72%, rgba(71, 120, 138, 0.25) 72%);
}

/* 4つの柱: 番号 + 白カード + 二色バー */
.kw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  counter-reset: pillar;
}

.kw > div {
  background: #FFFFFF;
  border: 1px solid var(--mist);
  border-top: 3px solid var(--aobeki);
  padding: 20px 18px 16px;
  box-shadow: 0 6px 18px rgba(28, 39, 52, 0.06);
  counter-increment: pillar;
  transition: transform 0.3s, box-shadow 0.3s;
}

.kw > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(28, 39, 52, 0.12);
  background: #FFFFFF;
}

.kw > div::before {
  content: "0" counter(pillar);
  display: block;
  font-family: var(--serif);
  font-size: 0.94rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 10px;
}

.kw h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  color: var(--ink);
}

.kw em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: var(--aobeki);
}

.kw em::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--aobeki), var(--gold));
}

.kw ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.kw li {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  padding: 8px 12px 8px 30px;
  position: relative;
  background: linear-gradient(168deg, #F8F8F7, #E9EBEE 70%, #E2E6EA);
  margin-top: 7px;
}

.kw li:first-child {
  margin-top: 0;
}

.kw li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--aobeki);
  border-radius: 0;
}

.kw li.fit {
  font-size: 0.74rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.kw li.one {
  white-space: nowrap;
  font-size: 0.79rem;
  letter-spacing: -0.01em;
}

.kw li.br span {
  display: block;
}

@media (max-width: 980px) {
  .field .lead.nobreak {
    font-size: 1.04rem;
  }
}

@media (max-width: 900px) {
  .field {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .field .lead.nobreak {
    white-space: normal;
  }
}

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

@media (max-width: 700px) {
  .kw li.one {
    white-space: normal;
    font-size: 0.82rem;
    letter-spacing: 0;
  }
}

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

  .kw li.fit {
    white-space: normal;
    font-size: 0.78rem;
    letter-spacing: 0;
  }
}

/* ─────────────────────────────────────
   WORKS SECTION
   ───────────────────────────────────── */
.works {
  background: #FFFFFF;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  padding: 0;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
}

.works .wrap {
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
}

.wslider {
  position: relative;
  width: 100%;
  height: min(60vh, 620px);
  overflow: hidden;
  background: #1C2734;
}

.wslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slidefade 24s linear infinite;
  margin: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: none;
  z-index: 0;
}

.wslide.s1 { animation-delay: -1s; }
.wslide.s2 { animation-delay: 5s; }
.wslide.s3 { animation-delay: 11s; }
.wslide.s4 { animation-delay: 17s; }

@keyframes slidefade {
  0% { opacity: 0; z-index: 0; pointer-events: none; }
  4% { opacity: 1; z-index: 4; pointer-events: auto; }
  25% { opacity: 1; z-index: 4; pointer-events: auto; }
  30% { opacity: 0; z-index: 0; pointer-events: none; }
  100% { opacity: 0; z-index: 0; pointer-events: none; }
}

.wslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
}

.wslide.s1 img,
.wslide.s3 img {
  animation: kenburns 24s linear infinite;
}

.wslide.s2 img,
.wslide.s4 img {
  animation: kenburns2 24s linear infinite;
}

.wslide.s1 img { animation-delay: -1s; }
.wslide.s2 img { animation-delay: 5s; }
.wslide.s3 img { animation-delay: 11s; }
.wslide.s4 img { animation-delay: 17s; }

@keyframes kenburns {
  0% { transform: scale(1.12) translate(-2.4%, -1.6%); }
  30% { transform: scale(1.12) translate(2.4%, 1.6%); }
  100% { transform: scale(1.12) translate(2.4%, 1.6%); }
}

@keyframes kenburns2 {
  0% { transform: scale(1.12) translate(2.4%, -1.6%); }
  30% { transform: scale(1.12) translate(-2.4%, 1.6%); }
  100% { transform: scale(1.12) translate(-2.4%, 1.6%); }
}

.wslide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 34px 26px;
  color: #fff;
  background: linear-gradient(transparent, rgba(28, 39, 52, 0.78));
  display: block;
}

.wslide-caption-title {
  display: block;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.wslide-caption-meta {
  display: block;
  font-size: 0.72rem;
  color: #cfd8dd;
  letter-spacing: 0.14em;
  margin-top: 6px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  border: 1px solid var(--ink);
  padding: 13px 26px;
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}

.more::after {
  content: "→";
  font-weight: 400;
}

.more:hover {
  background: var(--ink);
  color: #EDEDE8;
}

.works .more {
  margin-top: 36px;
}

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

  .wslide {
    pointer-events: none;
  }

  .wslide.s1 {
    opacity: 1;
    z-index: 4;
    pointer-events: auto;
  }

  .wslide img {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .works {
    min-height: 0;
  }

  .wslider {
    height: 52vh;
  }
}

/* ─────────────────────────────────────
   ZEB SECTION
   ───────────────────────────────────── */
.zeb {
  background: var(--ink);
  color: #EDEDE8;
  padding: 0;
  height: auto;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  overflow: visible;
}

.page-top #zeb {
  height: auto;
  padding-top: 0;
  overflow: visible;
}

.zeb .wrap {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}

.zeb .sec-head {
  margin-bottom: 26px;
}

.zeb .sec-head h2 {
  color: #EDEDE8;
}

.zeb .sec-head span {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #C9D4DA;
}

.zeb-lead {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 2.15;
  letter-spacing: 0.07em;
  color: #E7EDEF;
  margin-bottom: 26px;
}

.zeb-flex {
  display: flex;
  gap: 52px;
  align-items: stretch;
}

.zeb-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zeb-right {
  flex: 1.08;
  min-width: 380px;
  display: flex;
  align-items: center;
}

.zeb-body p {
  font-size: 0.92rem;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: #D3DCE2;
  margin-bottom: 1.1em;
  text-indent: 1em;
}

.zeb-def {
  margin-top: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  background: #243240;
  border: 1px solid #33404e;
  padding: 18px 22px;
}

/* style.css の #zeb img（旧チャート用の絶対配置）を打ち消す */
.page-top #zeb img {
  position: static;
  left: auto;
  height: auto;
  max-width: 100%;
  padding-top: 0;
  transform: none;
}

.page-top #zeb .zeb-def img {
  width: 130px;
  height: auto;
  background: #fff;
  padding: 6px;
  flex: none;
}

.zeb-def h3 {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: #EDEDE8;
}

.zeb-def p {
  font-size: 0.78rem;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: #D3DCE2;
}

.zeb-def p b {
  color: #EDEDE8;
  font-weight: 600;
}

.zeb .more {
  color: #EDEDE8;
  border: 1px solid #9fb3bd;
  border-bottom: 1px solid #9fb3bd;
  margin-top: 30px;
  padding: 13px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  align-self: flex-start;
}

.zeb .more:hover {
  background: #EDEDE8;
  color: var(--ink);
  border-color: #EDEDE8;
}

.zgraph {
  background: #fff;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.page-top #zeb .zgraph img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .page-top #zeb,
  .zeb {
    min-height: 0;
    height: auto;
  }

  .zeb-flex {
    flex-direction: column;
    gap: 40px;
  }

  .zeb-right {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .zeb .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .zeb .sec-head h2 {
    font-size: 1.15rem;
  }

  .zeb .sec-head span {
    font-size: 0.9rem;
  }

  .zeb-lead br {
    display: none;
  }

  .zeb-def {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─────────────────────────────────────
   RECRUIT SECTION
   ───────────────────────────────────── */
.recruit {
  background: #FFFFFF;
  border-top: 1px solid var(--mist);
  padding: 96px 0;
}

.rc-flex {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.rc-left {
  flex: 1.2;
}

.rc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rc-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}

.rc-tabs a:hover {
  background: var(--ink);
  color: #EDEDE8;
}

.rc-points {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rc-points div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink);
}

.rc-points span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--aobeki);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rc-flex {
    flex-direction: column;
    gap: 40px;
  }

  .rc-left .lead br {
    display: none;
  }
}

/* ─────────────────────────────────────
   Recruit buttons: match Philosophy card
   (background and font unified with .philo)
   ───────────────────────────────────── */
#menu-links .recruit-btn,
#menu-links .other-menu-section .transparent-button {
  background: var(--ink) !important;
  color: #EDEDE8 !important;
  font-family: var(--sans) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

#menu-links .recruit-btn:hover,
#menu-links .other-menu-section .transparent-button:hover {
  background: #C5D4DB !important;
  color: var(--ink) !important;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────
   HEADER ADJUSTMENTS
   ───────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mist);
}

/* ─────────────────────────────────────
   HERO ADJUSTMENTS
   ───────────────────────────────────── */
/* #hero {
  background: linear-gradient(168deg, #FBFAF7 0%, #EEF0EC 55%, #E2E7E6 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
} */

/* ─────────────────────────────────────
   ABOUT SECTION ADJUSTMENTS
   ───────────────────────────────────── */
#about {
  padding: 96px 0;
  background: var(--paper);
  color: var(--ink);
}

#about h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

#about .sec-head h2 {
  color: #1C2734;
}

#about .contentArea {
  margin-bottom: 54px;
}

/* ─────────────────────────────────────
   ACHIEVEMENTS SECTION ADJUSTMENTS
   ───────────────────────────────────── */
#achievements {
  padding: 96px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--mist);
  color: var(--ink);
}

#achievements h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* ─────────────────────────────────────
   Desktop layout reset
   ───────────────────────────────────── */
@media (min-width: 751px) {
  .container {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  .news {
    margin-top: 0;
  }

  .top-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .sub-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    background-image: none !important;
    background-color: transparent !important;
  }

  section {
    position: static !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .contentArea {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #about .contentArea,
  #zeb .contentArea {
    top: auto !important;
    height: auto !important;
  }

  .detailArea {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    height: auto !important;
    margin: 0 auto 2rem !important;
  }

  .works-box {
    width: auto !important;
  }

  .works-circle {
    display: block !important;
  }

  #menu-links {
    min-height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

/* Hero: fixed Vegas bg + scrolling text */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
  height: 100vh;
  height: 100svh;
  background: #1C2734;
}
.hero-bg #hero-image-slider {
  width: 100%;
  height: 100%;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, rgba(28,39,52,0.15) 0%, rgba(28,39,52,0.35) 100%);
  z-index: 1;
}

.hero-bg #hero-image-slider,
.hero-bg .vegas-wrapper,
.hero-bg .vegas-slide,
.hero-bg .vegas-slide-inner {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* 開始時は写真の外枠を画面いっぱいに合わせ、そこから少しだけ寄る */
.hero-bg .vegas-slide-inner {
  animation: heroDrift 14s ease-in-out alternate infinite !important;
  transform-origin: center center;
}

@keyframes heroDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(1%, -0.4%, 0); }
}

.page-top header {
  background: transparent;
  backdrop-filter: none;      /* ぼかしをオフ */
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* ヒーロー通過後は他ページと同じ生成りヘッダー */
.page-top.hero-done header {
  background: #F6F5F1;
  border-bottom-color: #E7E8E4;
}

/* 名刺と同じロゴロックアップ（デザイン案 49_3） */
.page-top .headerLogo {
  gap: 0;
  align-self: center;
  padding-left: 24px;
}
.page-top .headerLogo .headerLogo-text {
  display: none !important;
}
.page-top .headerLogo img,
.page-top .headerLogo .headerLogo-mark,
.page-top .headerLogo .logo-svg,
.page-top .headerLogo .headerLogo-lockup {
  display: block;
  height: 31px;
  width: auto;
  padding: 0;
  transform: none;
}

/* トップナビ: 日本語ラベル（ホバーでも切り替えない） */
.page-top .main-nav li#nav-about a:after,
.page-top .main-nav li#nav-about:hover a:after {
  content: "業務案内";
}

.page-top .main-nav li#nav-products a:after,
.page-top .main-nav li#nav-products:hover a:after {
  content: "実績一覧";
}

.page-top .main-nav li#nav-zeb a:after,
.page-top .main-nav li#nav-zeb:hover a:after {
  content: "ZEB";
}

.page-top .main-nav li#nav-company a:after,
.page-top .main-nav li#nav-company:hover a:after {
  content: "会社案内";
}

.page-top .main-nav li#nav-recruit a:after,
.page-top .main-nav li#nav-recruit:hover a:after {
  content: "採用情報";
}

.page-top .main-nav li#nav-contact a:after,
.page-top .main-nav li#nav-contact:hover a:after {
  content: "問い合わせ";
}

/* ヘッダー行: ロゴ・社名・ハンバーガー・ナビを同じ水平中心に揃える */
@media (min-width: 768px) {
  .page-top header,
  .page-top header .wrapper,
  .page-top #header {
    height: 64px;
    min-height: 64px;
  }
  .page-top header .wrapper {
    height: 64px !important;
    align-items: center;
  }
  .page-top #header {
    align-items: center;
  }
  .page-top #header .main-nav,
  .page-top #header .main-nav li {
    height: 100%;
    align-items: center;
  }
}

/* PCハンバーガーはヘッダー内で垂直中央（fixed の top:5vh を打ち消す） */
@media (min-width: 800px) {
  .page-top #header-btn {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
  }
}

@media (max-width: 767px) {
  /* 写真の上でもロゴが読めるよう、SPヘッダーは生成りで固定 */
  .page-top header,
  .page-top header:has(.main-nav.open-menu) {
    height: 64px;
    min-height: 0;
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--mist);
  }
  .page-top header .wrapper {
    height: 64px !important;
    align-items: flex-start;
    overflow: visible;
  }
  /* メニュー開で wrapper が 70vh になっても、ロゴは上段 64px に固定 */
  .page-top .headerLogo {
    padding-left: 16px;
    align-self: flex-start;
    height: 64px;
    display: flex;
    align-items: center;
  }
  .page-top .headerLogo img,
  .page-top .headerLogo .headerLogo-mark,
  .page-top .headerLogo .logo-svg,
  .page-top .headerLogo .headerLogo-lockup {
    height: 25px;
    padding: 0;
    transform: none;
  }
  .page-top #header-btn {
    height: 64px;
    display: flex;
    align-items: center;
    align-self: flex-start;
  }
  .page-top .btn-menu {
    top: 0;
    right: 16px;
  }
  .page-top .main-nav {
    top: 64px;
  }
}

.page-top .hero,
.page-top #hero {
  --hero-viewport-trim: 132px; /* ヘッダー下〜NEWS上の見え方（案1 49_3） */
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--hero-viewport-trim));
  min-height: calc(100svh - var(--hero-viewport-trim));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent !important;
}
.page-top .hero-in {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  transform: translateY(-1vh);
}
.page-top #hero h1.tate {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem) !important;
  line-height: 2.2;
  letter-spacing: .22em;
  height: auto;
  margin-left: 4vw;
  text-align: left;
}

/* 2列固定: 列内で「に、」「る。」だけ折り返さない */
.page-top #hero h1.tate .tate-col {
  display: block;
  white-space: nowrap;
}

.page-top .hero-tate {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.page-top .hero-side {
  max-width: 360px;
  margin-right: calc(2vw + 18px);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* 写真読み込み前: 黒文字（常に見える） */
.page-top #hero h1.tate,
.page-top .hero-side p.en,
.page-top .hero-side p.sub,
.page-top a.scroll {
  color: var(--ink);
  text-shadow: none;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* 写真表示後: 白文字 */
.page-top.hero-bg-ready #hero h1.tate,
.page-top.hero-bg-ready .hero-side p.en,
.page-top.hero-bg-ready .hero-side p.sub,
.page-top.hero-bg-ready a.scroll {
  color: #F6F5F1 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.page-top.hero-bg-ready .hero-side p.en {
  color: rgba(246, 245, 241, 0.85) !important;
}

.page-top .hero-side p.en {
  font-size: 0.68rem !important;
  letter-spacing: 0.34em;
  color: #454f59;
}

.page-top .hero-side p.sub {
  font-family: var(--serif);
  font-size: 1.22rem !important;
  font-weight: 500;
  line-height: 2.25;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

/* style.css の #hero p 1.8rem 用。ヒーロー英字・サブは上で個別指定 */
.page-top #hero p:not(.en):not(.sub) {
  font-size: inherit !important;
}

.page-top a.scroll {
  font-size: .62rem;
  letter-spacing: .3em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F6F5F1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.page-top .scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: #F6F5F1;
  animation: heroScrollDrop 2.4s infinite;
}

@keyframes heroScrollDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: top;
  }
  56% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-top .scroll::after {
    animation: none;
  }

  .hero-bg .vegas-slide-inner {
    animation: none !important;
    transform: none;
  }
}

/* 旧 style.css の absolute 打ち消し（重なり解消） */
.page-top #hero p,
.page-top .hero-side p {
  position: static !important;
  transform: none !important;
  background: transparent !important;
  text-align: left !important;
  margin: 0 0 1em !important;
  padding: 0 !important;
}
.page-top #hero h1 {
  text-align: left;
  margin-bottom: 0;
}

body.hero-done .hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100svh;
  opacity: 0.2;
  /* pointer-events: none; */
}

@media (max-width: 760px) {
  .page-top .hero,
  .page-top #hero {
    /* ヘッダー分のみ引き、NEWS 分は引かない（1 画面目はキャッチのみ） */
    min-height: calc(100dvh - 64px);
    min-height: calc(100svh - 64px);
    align-items: center;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .page-top .hero-in {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px;
    gap: 6px;
    min-height: 0;
    transform: translateY(-1.5vh);
  }

  .page-top .hero-tate {
    order: 1;
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
    margin-left: clamp(20px, 6vw, 36px);
  }

  .page-top .tate,
  .page-top #hero h1.tate {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
    line-height: 1.85;
    letter-spacing: .16em;
    height: auto;
    margin-left: 0;
  }

  .page-top .hero-side {
    order: 2;
    margin-right: 0;
    margin-top: 0;
    max-width: 100%;
    flex-shrink: 0;
  }

  .page-top .hero-side p.en {
    font-size: 0.68rem !important;
    letter-spacing: 0.28em;
    margin-bottom: 4px !important;
  }

  .page-top .hero-side p.sub {
    font-size: 1.22rem !important;
    line-height: 2;
    letter-spacing: 0.08em;
    margin-bottom: 0.5em !important;
  }

  .page-top .scroll {
    font-size: .52rem;
    letter-spacing: .26em;
    margin-top: 2px;
  }
  .page-top .scroll::after {
    height: 28px;
  }
  .page-top #hero p,
  .page-top .hero-side p {
    margin: 0 0 0.4em !important;
  }
}

.page-top .message .philo .label {
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  font-weight: normal !important;
}