/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-navy:    #1a2d5a;
  --color-navy-dark: #101e40;
  --color-blue:    #1a5fbb;
  --color-blue-light: #2e7dd6;
  --color-accent:  #1a5fbb;
  --color-white:   #ffffff;
  --color-bg:      #f7f8fa;
  --color-bg-alt:  #eef1f7;
  --color-text:    #222222;
  --color-text-mid:#555555;
  --color-text-light:#888888;
  --color-border:  #dde3ec;
  --color-green:   #2da06e;
  --color-orange:  #e86a2a;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --max-width: 1200px;
  --section-py: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: transparent;
  color: var(--color-blue);
  border: 1.5px solid var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--color-blue);
  color: var(--color-white);
  border: 1.5px solid var(--color-blue);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
}
.btn-outline:hover {
  background: transparent;
  color: var(--color-blue);
}

.btn-outline-green {
  background: #f7970b;
  color: var(--color-white);
  border: 1.5px solid #f7970b;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
}
.btn-outline-green:hover {
  background: transparent;
  color: #f7970b;
}

.btn-center-block {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--color-blue);
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-blue);
  transition: all 0.25s ease;
}
.btn-block:hover {
  background: transparent;
  color: var(--color-blue);
}

.btn-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid #f7970b;
  border-radius: 999px;
  color: var(--color-white);
  background: #f7970b;
  transition: all 0.25s ease;
}
.btn-entry:hover {
  background: transparent;
  color: #f7970b;
}

.company-table td.company-table-entry {
  text-align: center;
  padding: 32px 16px;
}

/* Arrow icon */
.arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.sp-only { display: none; }
.pc-only { display: inline; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  transition: box-shadow 0.3s;
  clip-path: inset(0 0 -100vh 0);
}
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 2段グリッドレイアウト */
.header-inner {
  display: grid;
  grid-template-columns: max-content minmax(max-content, 1fr) max-content;
  grid-template-rows: 52px 52px;
}

/* ロゴ：左列・両行にまたがる */
.header-logo {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  padding: 0 8px 0 24px;
}
.header-logo img {
  height: 69px;
  width: auto;
  display: block;
  adding-left: 40px;
}

/* 電話番号：中央列・上段（ヘッダー最上部にフラッシュ） */
.header-tel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-feature-settings: "tnum";
  pointer-events: none;
  cursor: default;
}

/* 電話番号の枠：平行四辺形（左端を斜めにカットしたタグ風デザイン） */
.header-tel-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.header-tel-box::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: var(--color-blue); */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%);
  z-index: 0;
}
.header-tel-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  left: 1px;
  background: #eaf6ff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 29px 100%);
  z-index: 1;
}
.header-tel-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 20px 0 50px;
}
.header-tel-inner img {
  height: 16px;
  width: auto;
}

/* ナビ：中央列・下段（電話番号の真下） */
.header-nav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.header-nav a {
  display: flex;
  align-items: center;
  padding: 0 26px;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  white-space: nowrap;
  position: relative;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

/* ナビ項目は左右padding均等（幅は文字数に応じて可変）。
   高さは常に52pxに固定し、テキストは少し上寄りに。
   ホバー時に高さが変わらないため、テキストが動くことなくFVまで背景が届く。 */
.header-nav > a,
.header-nav > .header-nav-item > a {
  height: 52px;
  padding: 12px 26px 0;
  align-items: flex-start;
  align-self: flex-start;
}

/* ナビ項目間の境界線（青1px・短め・縦中央寄せ）
   高さの基準がぶれないよう、明示的にheight:52pxを持つ<a>要素基準で揃える */
.header-nav > a::before,
.header-nav > .header-nav-item > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--color-blue);
}
.header-nav > a:first-child::before {
  display: none;
}

/* ナビ：オンマウスで全項目を反転（下線なし、テキスト位置は不変） */
.header-nav > a:hover,
.header-nav > .header-nav-item > a:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* ナビ：プルダウン付き項目（事業内容） */
.header-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background: var(--color-navy);
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0.15s;
  z-index: 10;
}
.header-nav-item:hover .header-dropdown {
  opacity: 1;
  visibility: visible;
}
.header-dropdown a {
  display: block;
  height: auto;
  padding: 16px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-white);
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background-color 0.12s ease-out, color 0.12s ease-out;
}
.header-dropdown a:last-child { border-bottom: none; }
.header-dropdown a:hover { background: var(--color-blue); color: var(--color-white); }

/* CTAボタン：右列・両行にまたがる */
.header-right {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: stretch;
}

.header-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 130px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  transition: opacity 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.header-cta-btn:hover { opacity: 0.82; }
.header-cta-btn img {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}
.header-cta-btn--recruit { background: var(--color-blue); }
.header-cta-btn--contact { background: var(--color-navy); }

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  width: 108px;
  height: 40px;
  padding: 0 16px;
  background: #eaf6ff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 16px;
  flex-shrink: 0;
}
.hamburger-icon {
  position: relative;
  width: 19px;
  height: 12px;
  flex-shrink: 0;
}
.hamburger-icon-line,
.hamburger-icon-line::before,
.hamburger-icon-line::after {
  position: absolute;
  left: 0;
  height: 1px;
  background: var(--color-blue);
  transition: all 0.25s ease-out;
}
.hamburger-icon-line {
  top: 50%;
  width: 100%;
}
.hamburger-icon-line::before,
.hamburger-icon-line::after {
  content: '';
}
.hamburger-icon-line::before { width: 60%; top: -5px; }
.hamburger-icon-line::after  { width: 100%; top: 5px; background: var(--color-blue-light); }

.hamburger-text {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-blue);
}
.hamburger-text-close { display: none; }

.hamburger.open .hamburger-icon-line { background: transparent; }
.hamburger.open .hamburger-icon-line::before {
  top: 0; width: 100%; background: var(--color-blue); transform: rotate(20deg);
}
.hamburger.open .hamburger-icon-line::after {
  top: 0; width: 100%; background: var(--color-blue); transform: rotate(-20deg);
}
.hamburger.open .hamburger-text-open  { display: none; }
.hamburger.open .hamburger-text-close { display: inline; }

/* SP nav drawer */
.sp-nav {
  display: none;
  flex-direction: column;
  background: var(--color-navy-dark);
  position: fixed;
  top: 104px;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0 0 24px;
  border-top: 2px solid var(--color-blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.sp-nav.open { display: flex; }
.sp-nav a {
  padding: 15px 28px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-nav a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--color-blue-light);
  border-radius: 50%;
  flex-shrink: 0;
}
.sp-nav a:hover {
  background: rgba(255,255,255,0.05);
  padding-left: 32px;
}
.sp-nav a.sp-nav-subitem {
  padding: 12px 28px 12px 48px;
  font-size: 0.8rem;
  color: var(--color-blue-light);
  background: rgba(46, 125, 214, 0.1);
}
.sp-nav a.sp-nav-subitem::before {
  background: var(--color-orange);
}
.sp-nav a.sp-nav-subitem:hover {
  padding-left: 52px;
  background: rgba(46, 125, 214, 0.16);
}
.sp-nav-buttons {
  display: flex;
  gap: 8px;
  width: calc(100% - 56px);
  margin: 20px 28px 0;
}
.sp-nav-buttons .sp-nav-btn {
  padding: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--color-blue);
  background: var(--color-white);
  color: var(--color-blue);
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.2s;
}
.sp-nav-buttons .sp-nav-btn::before { display: none; }
.sp-nav-buttons .sp-nav-btn:hover {
  background: var(--color-white);
  padding: 0;
  opacity: 0.85;
}
.sp-nav-buttons .sp-nav-btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.sp-nav-buttons .sp-nav-btn--primary:hover { background: var(--color-blue); }
.sp-nav-tel-time {
  text-align: center;
  padding: 10px 28px 20px;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* ===== HERO / FIRST VIEW ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  /* 画像読み込み中に単色の残像として見えないよう、地の背景色は持たせない
     （ボディの白背景がそのまま透けるので、読み込み待ちが自然に見える） */
  background: var(--color-white);
  display: flex;
  align-items: center;
}

/* ベース背景画像（全面・2枚クロスフェード） */
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center calc(120% + 90px);
  background-size: cover;
  background-repeat: no-repeat;
}

/* 1枚目は常に不透明な土台として固定表示（アニメーションさせない）。
   2枚目だけをその上にオーバーレイしてフェードイン/アウトさせる構造にすることで、
   「2枚とも透明になって#heroの白背景が透けて見える」瞬間が構造上発生しないようにしている。
   （2枚を両方アニメーションさせてタイミングを合わせる方式だと、delayの正負や
   画像の読み込み速度などの条件次第でごく一瞬白くなる隙間が生まれてしまっていたため） */
.hero-bg-slide--1 {
  opacity: 1;
  z-index: 0;
}
.hero-bg-slide--2 {
  z-index: 1;
  opacity: 0;
  animation: heroBgSlide2Fade 18s infinite;
  will-change: opacity;
}

@keyframes heroBgSlide2Fade {
  0%   { opacity: 0; }
  46%  { opacity: 0; }
  50%  { opacity: 1; }
  92%  { opacity: 1; }
  96%  { opacity: 0; }
  100% { opacity: 0; }
}
/* NOTE: heroBgSlide2Fade / heroOverlayFade / heroNetworkFade must all share the same
   animation-duration (18s) and 46%/50% crossfade timing so 1枚目の要素（オーバーレイ・
   ネットワーク・透かし）の切り替わりと2枚目背景の切り替わりが揃って見えるようにする。 */

/* 1枚目（mv02.png）表示中のみ表示し、2枚目では消える要素の共通フェード。
   2枚目画像（heroBgSlide2Fade）とちょうど逆位相にして、
   画像が92%〜96%で1枚目に戻るのと同時にナナメ型のオーバーレイ・ポリゴンも
   復活するようにする（画像だけ先に切り替わって斜め形状が遅れて出るのを防ぐ） */
@keyframes heroOverlayFade {
  0%   { opacity: 0.70; }
  46%  { opacity: 0.70; }
  50%  { opacity: 0; }
  92%  { opacity: 0; }
  96%  { opacity: 0.70; }
  100% { opacity: 0.70; }
}
@keyframes heroNetworkFade {
  0%   { opacity: 0.75; }
  46%  { opacity: 0.75; }
  50%  { opacity: 0; }
  92%  { opacity: 0; }
  96%  { opacity: 0.75; }
  100% { opacity: 0.75; }
}

/* 左側ブルーオーバーレイ（乗算・70%）：1枚目のみ表示 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #2056a3;
  clip-path: polygon(0 0, 45% 0%, 31% 100%, 0 100%);
  mix-blend-mode: multiply;
  opacity: 0;
  animation: heroOverlayFade 18s infinite;
  overflow: hidden;
}

/* 右パネル（ダイアゴナルクリップ、浅いオーバーレイで画像を明るく見せる） */
.hero-right-panel {
  position: absolute;
  inset: 0;
  /* background: url('../img/mv02.png') center center / cover no-repeat; */
  clip-path: polygon(45% 0%, 100% 0%, 100% 100%, 31% 100%);
}
.hero-right-panel::after {
  content: '';
  position: absolute;
  inset: 0;

}

/* ネットワークポリゴンCanvas：1枚目のみ表示 */
#hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: heroNetworkFade 18s infinite;
}

/* コンテンツ */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 92px;
  padding-left: clamp(40px, 6vw, 100px);
  max-width: 620px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.45);
}

/* ABE KOGYOウォーターマーク：常時表示。1枚目の間は下、2枚目以降は上に位置を切り替える */
.hero-watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
  opacity: 1;
  animation: heroWatermarkPosition 18s infinite;
  animation-delay: 0s; /* hero-bg-slide--1 と同じdelayで同期 */
}
.hero-watermark img {
  width: clamp(500px, 68vw, 960px);
  display: block;
  opacity: 1;
}

/* 1枚目が表示されている間（0%〜50%、および画像が1枚目に戻り切る96%〜100%）は下に配置。
   2枚目の間（50%〜96%）は上に配置。heroOverlayFade/heroNetworkFadeと同じ96%で
   切り替えることで、画像の切り替わりとタイミングを揃えている */
@keyframes heroWatermarkPosition {
  0%      { top: auto; bottom: 0; }
  50%     { top: auto; bottom: 0; }
  50.01%  { top: 110px; bottom: auto; }
  96%     { top: 110px; bottom: auto; }
  96.01%  { top: auto; bottom: 0; }
  100%    { top: auto; bottom: 0; }
}

/* ===== NEWS ===== */
#news {
  background: var(--color-white);
  padding: 56px 0 0px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.news-heading {
  flex-shrink: 0;
  min-width: 130px;
}

.news-heading .en {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}
.news-heading .ja {
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.news-list {
  flex: 1;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}
.news-item:first-child {
  border-top: 1px solid var(--color-border);
}
.news-item:hover {
  background: rgba(26, 95, 187, 0.03);
}

.news-date {
  font-size: 0.82rem;
  color: var(--color-text-light);
  white-space: nowrap;
  flex-shrink: 0;
  font-feature-settings: "tnum";
}

.news-tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 3px 10px;
  border: 1px solid;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.news-tag--info   { color: var(--color-blue);  border-color: var(--color-blue); }
.news-tag--recruit{ color: var(--color-green); border-color: var(--color-green); }

.news-title-text {
  font-size: 0.88rem;
  color: var(--color-text);
  flex: 1;
}

.news-more {
  text-align: right;
  margin-top: 20px;
}
.news-more a {
  font-size: 0.82rem;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.news-more a:hover { gap: 10px; }
.news-more a::after {
  content: '→';
}

/* ===== ABOUT (What's ABE?) ===== */
#about {
  padding: var(--section-py) 0;
  background: #fff;
  position: relative;
  overflow-x: hidden;
  scroll-margin-top: 100px;
}


.about-deco-text {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

#about .container {
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-mid);
  max-width: 700px;
  margin-bottom: 52px;
}

/* About intro: 2-column text + image */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 60px;
}

.about-intro-text {
  padding: 40px 20px 40px max(40px, calc((100vw - 1200px) / 2 + 40px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-intro-label-wrap {
  display: inline-block;
  margin-bottom: 20px;
}

.about-intro-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.about-intro-label .accent {
  color: var(--color-orange);
}

.about-intro-divider {
  width: 100%;
  height: 2px;
  background: var(--color-navy);
}

.about-intro-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.about-intro-desc {
  font-size: 0.95rem;
  line-height: 2;


}

.about-intro-img {
  align-self: center;
  overflow: hidden;
  transform: translateX(30px);
}

.about-intro-img img {
  width: 100%;
  height: auto;
  display: block;
  object-position: left center;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 140px;
}

.about-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.about-card:hover {
  box-shadow: 0 8px 32px rgba(26, 45, 90, 0.1);
  transform: translateY(-4px);
}

.about-card-img {
  height: 200px;
  background: linear-gradient(135deg, #1a2d5a 0%, #2a4a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-card-img-icon {
  font-size: 56px;
  opacity: 0.35;
  filter: grayscale(100%) brightness(2);
}

.about-card-img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.about-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Color variants for card images */
.about-card:nth-child(1) .about-card-img {
  background: linear-gradient(135deg, #0e2060 0%, #1a4090 100%);
}
.about-card:nth-child(2) .about-card-img {
  background: linear-gradient(135deg, #0a3060 0%, #0e5a8a 100%);
}
.about-card:nth-child(3) .about-card-img {
  background: linear-gradient(135deg, #102860 0%, #1a5080 100%);
}

.about-card-body {
  padding: 24px;
}

.about-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.about-card-desc {
  font-size: 0.82rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-card-link {
  font-size: 0.8rem;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: gap 0.2s;
}
.about-card-link:hover { gap: 10px; }
.about-card-link::after { content: '→'; }

/* ===== ABOUT US PAGE ===== */
.about-intro-section {
  padding: var(--section-py) 0;
  background: #fff;
  position: relative;
  overflow-x: hidden;
}

/* ===== ABOUT US: 特徴カード ===== */
.value-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 64px auto 0;
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 36px 32px;
}

.value-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  padding-left: 16px;
  border-left: 4px solid var(--color-blue);
  margin-bottom: 18px;
}

.value-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  line-height: 1.9;
}

/* ===== ABOUT US: メッセージ ===== */
.about-message {
  background: var(--color-bg-alt);
  padding: 72px 40px;
  text-align: center;
}

.about-message-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: 28px;
}

.about-message-desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text-mid);
  font-size: 0.92rem;
  line-height: 2.1;
}

/* SVG pipe decorations inside card images */
.card-deco-svg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

/* ===== WHY CHOOSE US ===== */
#why {
  padding: var(--section-py) 0;
  background: #edf9ff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: transparent;
  border: none;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
}

.why-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 120px;
  height: 120px;
}

.why-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.why-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-mid);
  line-height: 1.8;
}

/* ===== WORKS ===== */
#works {
  padding: var(--section-py) 0;
  background: var(--color-white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.works-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.works-card:hover {
  transform: translateY(-6px);
}

.works-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.works-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.works-card:hover .works-card-img img {
  transform: scale(1.07);
}

.works-card-body {
  padding: 16px 4px;
  /* border-top: 2px solid var(--color-navy); */
}

.works-card-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  line-height: 1.5;
}

.works-card-sub {
  font-size: 0.78rem;
  color: var(--color-text-mid);
  margin-bottom: 10px;
}

.works-tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 3px 10px;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
  letter-spacing: 0.05em;
}

/* ===== BANNER (Company / Recruit) ===== */
#banner {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.banner-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.banner-img {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.banner-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
}

.banner-card--company .banner-img {
  background: linear-gradient(135deg, #1a2d5a 0%, #2e4a8a 100%);
}
.banner-card--recruit .banner-img {
  background: linear-gradient(135deg, #0d4a2a 0%, #1a7a46 100%);
}

.banner-card--recruit .banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.banner-img-text {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.banner-img-icon {
  font-size: 64px;
  opacity: 0.2;
  position: relative;
  z-index: 1;
}

.banner-body {
  padding: 28px 32px;
}

.banner-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.banner-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.banner-desc {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ===== CONTACT ===== */
#contact {
  position: relative;
  background: #fff;
  padding: 60px 60px 0;
  overflow-x: hidden;
}

.contact-card {
  position: relative;
  z-index: 2;
  background: #fff;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 72px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.18);
  text-align: center;
}

.contact-bg {
  position: relative;
  background: url('../images/common/bg_footer.jpg') center bottom / cover no-repeat;
  width: 100vw;
  max-width: none;
  margin-top: -180px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 320px;
}

.contact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:rgb(0 126 255 / 68%);
}

.contact-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #1a5fbb;
  margin-bottom: 14px;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 44px;
}

.contact-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.contact-tel-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a5fbb;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.contact-tel-prefix {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-tel-time {
  font-size: 0.82rem;
  color: var(--color-text-mid);
}

.contact-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #29a8e0 0%, #0d4fab 100%);
  color: #fff;
  padding: 20px 52px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.contact-form-btn:hover {
  opacity: 0.85;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 60px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-diamond {
  width: 18px;
  height: 18px;
  background: var(--color-blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-company-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-address {
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(255,255,255,0.55);
}

.footer-address p { margin-bottom: 4px; }

.footer-sitemap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.footer-sitemap-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

.footer-sitemap a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-sitemap a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ===== PAGE TOP ===== */
#page-top {
  display: none !important;
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 100;
}
#page-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#page-top:hover {
  background: var(--color-blue);
}
#page-top svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* ===== SECTION DIVIDER ===== */

/* ===== RESPONSIVE ===== */
/* ===== PAGE HERO (下層ページ共通) ===== */
.page-hero {
  position: relative;
  height: 380px;
  padding-top: 88px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.page-hero-label {
  display: inline-block;
  /* background:#0a3060; */
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  padding: 4px 26px;
 margin-bottom: 10px;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  font-size: 0.78rem;
  color: var(--color-text-mid);
}

.breadcrumb a { color: var(--color-text-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-blue); }
.breadcrumb .sep { margin: 0 8px; color: var(--color-border); }
.breadcrumb .current { color: var(--color-navy); font-weight: 500; }

/* ===== CATEGORY NAV ===== */
.category-nav {
  background: var(--color-white);
  padding: 48px 0 0;
}

.category-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.category-nav-btn {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border: 1.5px solid var(--color-blue);
  color: var(--color-blue);
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--color-white);
  transition: background 0.25s, color 0.25s;
}

.category-nav-btn svg { flex-shrink: 0; transition: transform 0.25s; }

.category-nav-btn:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* ===== CATEGORY SHOWCASE ===== */
.category-showcase {
  padding: 4px 0 64px 0;

}

/* 対応工種タグ */
.service-scope-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 880px;
  margin: 0 auto 98px;
  list-style: none;
  padding: 0;
}

.service-scope-tags li {
  background: var(--color-bg-alt);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.category-card-img {
  height: 260px;
  overflow: hidden;
  margin-bottom: 22px;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-img img {
  transform: scale(1.06);
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.category-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  line-height: 1.85;
  margin-bottom: 26px;
}

.category-card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--color-blue);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  margin: 0 28px;
}
.category-card-badge svg { flex-shrink: 0; width: 14px; height: 14px; }
.category-card-badge:hover {
  background: var(--color-white);
  color: var(--color-blue);
}

/* ===== SERVICE INTRO ===== */
.service-intro {
  padding: var(--section-py) 0 40px;
  text-align: center;
}

.service-intro-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: 28px;
}

.service-intro-desc {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-mid);
  font-size: 0.92rem;
  line-height: 2;
}

/* ===== SERVICE BLOCKS (full-bleed rows) ===== */
.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 0 0 var(--section-py);
 margin-top: 100px;
 /* background: #eaf6ff; */
}

.service-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  scroll-margin-top: 100px;
}

.service-row--reverse { grid-template-columns: 1fr 1.15fr; }
.service-row--reverse .service-row-img { order: 2; }
.service-row--reverse .service-row-body { order: 1; }

.service-row--narrow-img { grid-template-columns: 0.8fr 1.2fr; }
.service-row--narrow-img.service-row--reverse { grid-template-columns: 1.2fr 0.8fr; }
.service-row--narrow-img .service-row-img {
  align-self: center;
  height: 390px;
  min-height: 0;
}

.service-row-img {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 0 8px 8px 0;
}

.service-row--reverse .service-row-img {
  border-radius: 8px 0 0 8px;
}

.service-row-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 6vw, 100px);
}

.service-row-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--color-blue);
  display: block;
  margin-bottom: 0px;
}

.service-row-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 26px;
}

.service-row-desc {
  color: var(--color-text-mid);
  font-size: 0.9rem;
  line-height: 2;
  margin-bottom: 24px;
}

.service-row-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-text-mid);
}

.service-row-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.8rem;

}

.service-row-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--color-blue);
  border-radius: 50%;
  opacity: 0.15;
}

.service-row-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--color-blue);
  border-radius: 50%;
}

.service-row-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 360px;
  margin-top: 28px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--color-blue);
  background: linear-gradient(135deg, #29a8e0 0%, #0d4fab 100%);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all 0.25s ease;
}
.service-row-cta:hover {
  background: var(--color-white);
  color: var(--color-blue);
}

/* ===== ACHIEVEMENTS ===== */
.achievements {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.achievement-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.achievement-card:hover {
  box-shadow: 0 8px 32px rgba(26, 45, 90, 0.1);
  transform: translateY(-4px);
}

.achievement-img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.achievement-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-body {
  padding: 20px 24px 24px;
}

.achievement-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  padding-left: 16px;
  border-left: 4px solid var(--color-blue);
  margin-bottom: 16px;
}

.achievement-spec li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.7;
}
.achievement-spec li:last-child { border-bottom: none; }

.achievement-spec-label {
  font-weight: 700;
  color: var(--color-navy);
  margin-right: 6px;
}
.achievement-spec-label::before { content: '【'; }
.achievement-spec-label::after { content: '】'; }

/* ===== SERVICE NOTE ===== */
.service-note {
  background: var(--color-bg-alt);
  padding: 48px 40px;
  text-align: center;
}

.service-note-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.service-note-desc {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== COMPANY (会社概要) ===== */
.company-lead {
  padding: var(--section-py) 0 40px;
}

.company-lead-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.company-lead-desc {
  margin-top: 20px;
  color: var(--color-text-mid);
  font-size: 0.92rem;
  line-height: 2;
}

.company-lead-img img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(26, 45, 90, 0.12);
}

.company-overview {
  padding: 60px 0;
  background: var(--color-bg-alt);
}

.company-history {
  padding: 60px 0 var(--section-py);
}

.company-access {
  padding: 0 0 var(--section-py);
}

.company-access-address {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 24px;
}

.company-access-map {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.company-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  padding: 18px 28px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--color-border);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 200px;
  background: var(--color-bg);
  color: var(--color-navy);
  font-weight: 700;
  white-space: nowrap;
  vertical-align: top;
}

.company-table td {
  color: var(--color-text);
}

/* 沿革タイムライン */
.history-list {
  max-width: 800px;
  margin: 0 auto;
}

.history-item {
  display: flex;
  gap: 32px;
  padding: 22px 0 22px 24px;
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid var(--color-blue);
}
.history-item:last-child { border-bottom: none; }

.history-date {
  flex: 0 0 130px;
  font-weight: 700;
  color: var(--color-blue);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.history-body {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  padding: 20px 0 60px;
}

.contact-section-inner {
  max-width: 960px;
}

.contact-lead {
  margin-top: 20px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* 固定ページ編集画面(本文)に直接入力された文章にも同じ見た目を適用 */
.contact-section-inner > p {
  margin-top: 20px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.9;
}
.contact-section-inner > p:first-child {
  margin-top: 0;
}

.contact-form {
}

.contact-form-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
}

.contact-form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.85rem;
  white-space: nowrap;
}

.contact-form-required {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--color-white);
  color: #e02020;
  border: 1px solid #e02020;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field input[type="tel"],
.contact-form-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.contact-form-field textarea {
  resize: vertical;
  line-height: 1.8;
}

.contact-form-field input[type="text"]:focus,
.contact-form-field input[type="email"]:focus,
.contact-form-field input[type="tel"]:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: var(--color-text-light);
}

.contact-form-field input[aria-invalid="true"] {
  border-color: var(--color-orange);
}

.contact-form-error {
  margin-top: 8px;
  color: var(--color-orange);
  font-size: 0.78rem;
}

.contact-form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 8px;
}

.contact-form-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text);
}

.contact-form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-blue);
  cursor: pointer;
  flex-shrink: 0;
}

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

.contact-form-submit .btn-block {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  background: #f7970b;
}
.contact-form-submit .btn-block:hover {
  background: #f7970b;
  color: var(--color-white);
  opacity: 0.8;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }
  .contact-form-label { padding-top: 0; }
}

/* ===== PRIVACY POLICY ===== */
.policy-section {
  padding: var(--section-py) 0;
}

.policy-section-inner {
  max-width: 860px;
}

.policy-lead {
  color: var(--color-text-mid);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 48px;
}

.policy-block {
  margin-bottom: 40px;
}
.policy-block:last-child {
  margin-bottom: 0;
}

.policy-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.policy-block p {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.9;
}

.policy-list {
  margin: 16px 0;
  padding-left: 4px;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 2;
}

.policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: 50%;
}

.policy-company-name {
  margin-top: 12px;
  font-weight: 700;
  color: var(--color-navy);
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
  .works-grid{ grid-template-columns: repeat(2, 1fr); }
  .category-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-list { gap: 24px; }
}

@media (max-width: 960px) {
  .header-nav     { display: none; }
  .header-cta-btn { display: none; }
  .header-tel     { display: none; }
  .hamburger      { display: flex; margin-left: auto; }
  .sp-nav { top: 60px; }

  .header-inner    { grid-template-rows: 30px 30px; }
  .header-logo     { padding: 0 8px 0 16px; }
  .header-logo img { height: 48px; }

  .hero-overlay { display: none; }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }

  #about { padding-top: 32px; scroll-margin-top: 60px; }

  .about-intro {
    grid-template-columns: 1fr;
    margin-top: 0;
    margin-bottom: 24px;
  }
  .about-intro-img {
    order: -1;
    transform: none;
  }
  .about-intro-text {
    padding: 32px 24px 0;
  }
  .about-intro-label {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .about-intro-heading {
    font-size: 1.35rem;
  }
  .about-intro-desc {
    font-size: 0.85rem;
  }

  .about-cards { grid-template-columns: 1fr;  margin-top: 0px;}
  .value-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .about-message { padding: 48px 24px; }
  .banner-grid  { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }

  #news { padding: 24px 0; }
  .news-inner { flex-direction: column; gap: 20px; }
  .news-heading { display: flex; align-items: baseline; gap: 10px; }
  .news-heading .en { font-size: 1.1rem; margin-bottom: 0; }
  .news-heading .ja { font-size: 0.64rem; }
  .news-date { font-size: 0.72rem; }
  .news-tag { font-size: 0.62rem; padding: 2px 8px; }
  .news-title-text { font-size: 0.78rem; }
  .news-more { display: none; }

  .news-item { flex-wrap: wrap; gap: 6px 20px; }
  .news-title-text {
    flex-basis: 100%;
  }
  .news-title-text::before {
    content: '❯ ';
    color: var(--color-blue);
  }

  .hero-title { font-size: clamp(2rem, 7.5vw, 2.8rem); }

  #hero {
    height: 66vh;
    height: 66dvh;
    min-height: 420px;
  }
  #hero-network { display: none; }
  .hero-bg-slide { background-position: center top; }

  .why-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-card  { padding: 20px 12px; }
  .why-icon  { width: 64px; height: 64px; margin: 0 auto 12px; }
  .why-icon svg { width: 64px; height: 64px; }
  .why-card-title { font-size: 0.95rem; margin-bottom: 6px; }
  .why-card-desc  { font-size: 0.72rem; line-height: 1.6; }
  .works-grid{ grid-template-columns: repeat(2, 1fr); }

  .footer-sitemap { grid-template-columns: 1fr; }

  .page-hero { height: 280px; padding-top: 48px; }
  .page-hero-label { letter-spacing: 0.25em; }

  .service-row,
  .service-row--reverse,
  .service-row--narrow-img.service-row--reverse { grid-template-columns: 1fr; }
  .service-row--reverse .service-row-img,
  .service-row--reverse .service-row-body { order: unset; }
  .service-row-img,
  .service-row--reverse .service-row-img { min-height: 220px; border-radius: 0; }
  .service-row-body { padding: 36px 24px; }
  .service-row-title { font-size: 1.4rem; }
  .service-row-desc { font-size: 0.8rem; }

  .sp-only { display: inline; }
  .pc-only { display: none; }

  #contact { padding-left: 20px; padding-right: 20px; }
  .contact-card { padding: 40px 28px; }
  .contact-title { font-size: 1.2rem; }
  .contact-body {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    text-align: center;
  }
  .contact-tel { text-align: center; }
  .contact-tel-num { font-size: 1.6rem; white-space: nowrap; }
  .contact-tel-prefix { font-size: 0.85rem; }
  .contact-tel-time { font-size: 0.72rem; }
  .contact-form-btn { width: 100%; justify-content: center; }

  .achievement-list { grid-template-columns: 1fr; }
  .achievement-img { height: 220px; }
  .achievement-body { padding: 20px; }

  .category-showcase { padding-bottom: 0; margin-bottom: 0; }
  .service-blocks { margin-top: 30px; }
  .category-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .category-card:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 5px); margin: 0 auto; }
  .category-card-img { height: 100px; margin-bottom: 8px; }
  .category-card-title { font-size: 0.75rem; line-height: 1.3; margin-bottom: 8px; }
  .category-card-desc { font-size: 0.68rem; margin-bottom: 10px; }
  .category-card-badge { font-size: 0.6rem; padding: 6px 2px; margin: 0; gap: 2px; }
  .category-card-badge svg { width: 10px; height: 10px; }

  .service-scope-tags { gap: 8px; margin-bottom: 36px; }
  .service-scope-tags li { padding: 6px 14px; font-size: 0.76rem; }

  .service-intro { padding-top: 10px; padding-bottom: 10px; }
  .service-row-cta { align-self: center; margin-top: 30px; }
  .service-intro-title {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    text-align: left;
  }
  .service-intro-desc {
    font-size: 0.82rem;
    text-align: left;
  }

  .company-lead-grid { grid-template-columns: 1fr; gap: 28px; }
  .company-lead-img { order: -1; }
  .company-lead-img img { height: 220px; }
  .company-overview { padding: 40px 0; }
  .company-history { padding: 40px 0 60px; }

  .company-access { padding: 0 0 60px; }
  .company-access-map { aspect-ratio: 4 / 5; }

  .company-table, .company-table tbody, .company-table tr,
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th, .company-table td { padding: 0; }
  .company-table th {
    padding: 16px 20px 4px;
    border-bottom: none;
    font-size: 0.8rem;
    white-space: normal;
  }
  .company-table td {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .company-table tr:last-child td { border-bottom: none; }

  .history-item { gap: 6px 24px; flex-wrap: wrap; padding: 18px 0 18px 18px; }
  .history-date { flex: 0 0 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .works-grid{ grid-template-columns: 1fr; }

  .header-inner    { grid-template-rows: 28px 28px; }
  .sp-nav { top: 56px; }

  .header-logo     { padding: 0 6px 0 12px; }
  .header-logo img { height: 44px; }
  .hamburger       { width: 96px; margin-right: 10px; }
}

/* ===== WordPress管理バー対応（固定ヘッダーとの重なり防止） ===== */
body.admin-bar #header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #header { top: 46px; }
}

/* ===== お知らせ詳細本文（entry-content） =====
   静的HTMLに詳細ページのデザインが存在しないため、
   既存の配色・フォントに合わせて本文の基本タイポグラフィのみ用意 */
.entry-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  border-left: 4px solid var(--color-blue);
  padding-left: 12px;
}
.entry-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a {
  color: var(--color-blue);
  text-decoration: underline;
}
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* ===== お知らせ一覧ページネーション =====
   静的HTMLにデザインが存在しないため、既存ボタンのトーンに合わせて新規に用意 */
.pagination {
  margin-top: 40px;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.85rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination .page-numbers:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}
.pagination .page-numbers.current {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}
.pagination .page-numbers.dots {
  border: none;
}

/* ===== 採用情報ページ専用の上書き =====
   元の静的HTML(recruit/index.html)の<head>内インラインstyleを移植。
   .is-recruit-page は header.php が is_page('recruit') 判定で
   明示的に付与するbodyクラス（テンプレートの自動/手動選択によらず確実に付く）。 */
.is-recruit-page #highlights .why-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .is-recruit-page #highlights .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .is-recruit-page #highlights .why-grid {
    grid-template-columns: 1fr;
  }
}
.is-recruit-page .service-intro {
  padding-bottom: 0;
}
.is-recruit-page .service-intro .service-scope-tags {
  margin-bottom: 0;
}
.is-recruit-page .company-lead {
  padding-top: 40px;
}


/* ===== CF7 フォーム全体 ===== */
.wpcf7-form {
  max-width: 720px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-bottom: 20px;
}

/* ===== ラベル ===== */
.wpcf7-form label {
  display: block;
  font-weight: 700;
  color: #1e3a5f; /* 濃紺 */
  font-size: 16px;
  margin-bottom: 10px;
}

/* 必須バッジ（CF7標準はラベル内に文字が混在するため、
   HTML側で <span class="required-badge">必須</span> を
   ラベル横に追加する想定） */
.required-badge {
  display: inline-block;
  border: 1px solid #e2462f;
  color: #e2462f;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== テキスト系入力欄 ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 2px;
  padding: 12px 18px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  transition: border-color 0.2s ease;
  margin-top: 4px;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: #a3aab5;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #4a7fc9;
}

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

/* ===== チェックボックス（お問い合わせ種別） ===== */
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-list-item-label {
  display: flex !important;
  padding-top: 10px !important;
  align-items: center;
  font-weight: 400;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

.wpcf7-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid #b8c0cc;
  border-radius: 4px;
  accent-color: #e2913a;
}

/* ===== 送信ボタン ===== */
.wpcf7-form .wpcf7-submit {
  display: block;
  margin: 40px auto 0;
  background-color: #e2913a;
  background-image: linear-gradient(180deg, #e6a04f, #dd8a2e);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 18px 56px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wpcf7-form .wpcf7-submit:hover {
  opacity: 0.9;
}

/* ===== エラーメッセージ（CF7標準クラス） ===== */
.wpcf7-form .wpcf7-not-valid-tip {
  color: #e2462f;
  font-size: 13px;
  margin-top: 6px;
}

.wpcf7-form .wpcf7-response-output {
  border-radius: 10px;
  padding: 16px 20px;
}



/* ===== チェックボックス（お問い合わせ種別）===== */
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.wpcf7-form .wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  font-weight: 400 !important;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.wpcf7-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0 !important;
  border: 1px solid #b8c0cc;
  border-radius: 4px;
  accent-color: #e2913a;
  flex-shrink: 0;
}