/* 基本設定 */
:root {
  --primary-color: #1e73b2; /* 青 */
  --secondary-color: #91cd2b; /* 明るい緑 */
  --deepgreen-color: #639a07; /* 深い緑 */
  --text-color: #333;
  --background-color: #f5f5f5;
  --white: #fff;
  --grey: #eee;
  --flashgrey: #fafafa;
  --color-border: #ddd;
  --color-bg-gray: var(--flashgrey);
  --noml-fsize: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  --mincho: "Noto Serif JP", serif;
}

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

a {
  color: var(--primary-color);
  transition: all 0.5s ease-in-out;
  text-decoration: none;
}
a:hover {
  color: rgba(30, 114, 178, 0.7);
}
a:focus,
a:active {
  outline: none;
  color: inherit;
}

html {
  font-size: 62.5%; /* 10px */
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* 固定ヘッダーの余白調整 */
  overflow-x: hidden;
}

body {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  font-family:
    "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", sans-serif;
  overflow-wrap: break-word;
  word-wrap: break-word; /* 古いブラウザ対応 */
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
}

.img {
  max-width: 100%;
  height: auto;
}

.mincho {
  font-family: "Noto Serif JP", serif;
}

.txt__left {
  text-align: left;
}
.txt__center {
  text-align: center;
}
.txt__right {
  text-align: right;
}
.marker {
  display: inline;
  background: linear-gradient(transparent 60%, #fff384 60%);
}
.mt-10 {
  margin-top: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-30 {
  margin-top: 30px;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-20 {
  margin-bottom: 20px;
}
.pt-0 {
  padding-top: 0;
}
.pt-30 {
  padding-top: 30px;
}
.pt-40 {
  padding-top: 40px;
}
.pb-0 {
  padding-bottom: 0 !important;
}
.pb-30 {
  padding-bottom: 30px;
}
.pb-80 {
  padding-bottom: 80px;
}
/* ========================================
   Container Base Styles
======================================== */
.container {
  max-width: 1280px;
  width: 100%; /* ← これを追加 */
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* 左寄せ */
.container--left {
  max-width: 1280px;
  margin-left: clamp(20px, 5vw, 80px);
  margin-right: auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* 右寄せ */
.container--right {
  max-width: 1280px;
  margin-right: clamp(20px, 5vw, 80px);
  margin-left: auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* お知らせや記事詳細は読みやすく */
.news-detail .container {
  max-width: 1024px;
}
.container .small--width {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto 20px;
}
.container--activities {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.sending_completed h2 {
  font-size: clamp(1.6rem, 1.5rem + 0.1875vw, 1.8rem);
  font-weight: 600;
  color: var(--text-color);
}
.box404 {
  margin-top: 50px;
}
.box404 h2 {
  font-size: clamp(2rem, 1.33vw + 1.5rem, 3.2rem);
  font-weight: 600;
  color: #ff4d4d;
}
.box404 h3 {
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
  font-weight: 500;
  margin-top: 20px;
}
.sending_completed p,
.box404 p {
  line-height: 1.8;
}
/* ========================================
        Header Base Styles
   ======================================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 2rem;
}

/* ========================================
        Logo
   ======================================== */
.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 1002;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  max-height: 50px;
  object-fit: cover;
}

/* ========================================
        Navigation (PC)
   ======================================== */
.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: #333;
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: var(--secondary-color);
}

.nav-list a:hover::after {
  width: 100%;
}
.sp-nav {
  display: none;
}
/* ========== プルダウンメニュー基本スタイル ========== */
.has-dropdown {
  position: relative;
}

.dropdown-icon {
  margin-left: 0.5rem;
  font-size: 0.7em;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========== PC用スタイル（769px以上） ========== */
@media (min-width: 1151px) {
  .has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    padding: 1rem 0;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
  }

  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #333;
    font-size: 1.4rem;
    transition: all 0.3s ease;
  }

  .dropdown-menu a::after {
    left: 2rem;
  }

  .dropdown-menu a:hover {
    padding-left: 2rem;
  }

  .dropdown-menu a:hover::after {
    width: calc(100% - 4.5rem);
  }

  .has-dropdown > a::after {
    width: 0 !important; /* ドロップダウン親要素の下線は非表示 */
  }
  .has-dropdown:hover > a::after {
    width: calc(100% - 2rem);
  }
}

/* ========================================
        Contact Button
   ======================================== */
.contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between; /* 両端寄せ */
  background-color: var(--secondary-color);
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  gap: 0; /* gapを0に */
  overflow: hidden;
  z-index: 0;
  transition:
    opacity 0.2s,
    color 0.3s;
  min-width: 210px;
}
.contact-btn:hover {
  color: #fff !important;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  transition: left 0.3s ease;
  z-index: -1;
}

/* ボタン内の要素のスタイル */
.contact-btn span {
  z-index: 1;
}
.contact-btn i {
  font-size: 1.4rem;
  z-index: 1;
}
/* ボタンのホバー効果 */
.contact-btn:hover::before {
  left: 0;
}
.contact-btn:hover::after {
  display: none !important; /* ホバー時の下線を無効化 */
}

/* SP用のナビ内お問い合わせボタンはPCでは非表示 */
.nav-contact-btn-wrapper {
  display: none;
}

/* ========================================
        Hamburger Menu (Hidden on PC)
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #555;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ========================================
        Responsive Design (Tablet & Mobile)
   ======================================== */
@media (max-width: 1150px) {
  .nav-list {
    gap: 0;
  }
}

@media (max-width: 1150px) {
  .header-content {
    flex-wrap: nowrap; /*折り返しを防ぐ */
    height: 70px;
  }

  /* PC用のナビゲーションとボタンを非表示に */
  .nav {
    display: none;
  }
  .pc-contact-btn {
    display: none;
  }

  /* SP用のnavを表示 */
  .sp-nav {
    display: block;
  }
  .nav > .nav-list {
    display: none; /* PC用のリストは非表示 */
  }

  /* Show Hamburger Menu */
  .hamburger {
    display: flex;
    position: fixed; /* 位置を固定 */
    right: 20px;
    top: 15px; /* header-contentの高さに合わせて調整 */
  }

  /* Hamburger Animation - X変形 */
  .hamburger.active span {
    background: #fff; /* X印の色を白に */
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    width: 28px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    width: 28px;
  }

  /* Mobile Navigation Container */
  .sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 高さ100%を確保 */
    height: 100dvh; /* モバイルのアドレスバー対策 */
    z-index: 1000;
    pointer-events: none;
    overflow-y: auto; /* コンテンツが溢れたらスクロールさせる */
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
  }

  .sp-nav.active {
    pointer-events: auto;
  }

  /* 背景円形アニメーション */
  .sp-nav::before {
    content: "";
    display: block;
    position: fixed; /* 背景は固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 114, 178, 0.85); /* 視認性を上げるため少し濃く */
    backdrop-filter: blur(10px);
    clip-path: circle(30px at calc(100% - 45px) 35px);
    visibility: hidden;
    transition: all 500ms ease-in-out;
    z-index: -1;
  }

  .sp-nav.active::before {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 45px) 35px);
  }

  /* 内部ラッパー（中央配置とスクロールの両立） */
  .sp-nav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%; /* コンテンツが少ないときは画面いっぱい */
    padding: 100px 20px 40px; /* 上下に余白を持たせる */
    box-sizing: border-box;
  }

  /* ナビゲーションリスト */
  .sp-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    /* max-width: 340px;  */
    padding: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 400ms ease-in-out 200ms,
      visibility 400ms ease-in-out 200ms;
  }
  .nav-list a::after {
    background: none;
  }
  .sp-nav.active .nav-list {
    opacity: 1;
    visibility: visible;
  }

  /* リストアイテムのアニメーション */
  .nav-list > li {
    opacity: 0;
    transform: translateY(20px);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4); /* 区切り線はliにつける */
    width: 100%;
  }

  /* 最後（ボタンの行）は線なし */
  .nav-list > li:last-child {
    border-bottom: none;
  }

  .sp-nav.active .nav-list > li {
    animation: slideInUp 0.5s forwards;
  }

  .sp-nav.active .nav-list > li:nth-child(1) {
    animation-delay: 0.2s;
  }
  .sp-nav.active .nav-list > li:nth-child(2) {
    animation-delay: 0.3s;
  }
  .sp-nav.active .nav-list > li:nth-child(3) {
    animation-delay: 0.4s;
  }
  .sp-nav.active .nav-list > li:nth-child(4) {
    animation-delay: 0.5s;
  }
  .sp-nav.active .nav-list > li:nth-child(5) {
    animation-delay: 0.6s;
  }
  /* --- 修正：項目の数が増えても表示されるように定義を追加 --- */
  .sp-nav.active .nav-list > li:nth-child(5) {
    animation-delay: 0.6s;
  }
  .sp-nav.active .nav-list > li:nth-child(6) {
    animation-delay: 0.7s;
  }
  .sp-nav.active .nav-list > li:nth-child(7) {
    animation-delay: 0.8s;
  }
  .sp-nav.active .nav-list > li:nth-child(8) {
    animation-delay: 0.9s;
  }

  @keyframes slideInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* リンク基本スタイル */
  .nav-list a {
    display: block;
    padding: 1.5rem 0; /* 横paddingは削除し、親の幅に合わせる */
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .nav-list a:hover {
    color: var(--secondary-color);
  }

  /* SP用お問い合わせボタン */
  .nav-contact-btn-wrapper {
    display: block;
    margin-top: 2rem;
  }

  a.nav-contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 1.2rem;
    background-color: var(--secondary-color); /* ボタンらしく白背景など */
    color: var(--white); /* メインカラー */
    border-radius: 6px;
    font-weight: bold;
  }
  .nav-contact-btn span {
    font-size: 1.5rem;
  }
  .nav-contact-btn i {
    font-size: 1.2rem;
  }

  .nav-contact-btn:hover {
    opacity: 0.9;
    color: var(--deepgreen-color);
  }

  .sp-nav .dropdown-menu.static-list {
    display: block !important;
    max-height: none !important; /* 高さを制限しない */
    opacity: 1 !important; /* 透明にしない */
    margin-bottom: 15px;
    padding-left: 0;
    background-color: transparent; /* 背景色は親に馴染ませる */
    visibility: visible !important;
    transform: none !important;
  }

  /* 親リンク（事業内容）の下線を消す */
  .sp-nav .has-dropdown > a {
    border-bottom: none;
  }

  /* サブメニューの項目のデザイン */
  .sp-nav .dropdown-menu.static-list a {
    padding: 0.8rem 1rem 0.8rem 2rem; /* 左にインデント（字下げ） */
    font-size: 1.4rem; /* 文字を少し小さく */
    color: rgba(255, 255, 255, 0.8);
    margin-left: 1.6rem; /* 全体を少し右へ */
  }

  /* サブメニューホバー時 */
  .sp-nav .dropdown-menu.static-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
}
/* バリエーション */
.btn-blue {
  background-color: var(--primary-color) !important;
}
.btn-blue::before {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}
/* Hero Section */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(../images/0001.jpg) center/cover;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: white;
  text-align: center;
  /* margin-top: 70px; */
}

.hero-content {
  margin-top: 8rem;
  text-align: left;
}

.hero-content h2 {
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
  font-weight: 400;
  margin-bottom: clamp(10px, 1.5vw, 20px);
  letter-spacing: clamp(0.8px, 0.15vw, 2px);
}

.hero-content h3 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 4rem);
  font-weight: 500;
  margin-bottom: clamp(15px, 2vw, 30px);
  line-height: 1.4;
}

.hero-content p {
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
  line-height: clamp(1.6, 0.25vw + 1.4, 2);
  max-width: min(600px, 90vw);
}
/* Section Styles */
section {
  padding: clamp(40px, 5vw + 20px, 80px) 0;
}

.section-header {
  margin-bottom: clamp(30px, 3vw + 10px, 50px);
}

.section-header--news {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: clamp(30px, 3vw + 10px, 50px);
}

@media (max-width: 768px) {
  .section-header--news {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }
}

.section-title {
  display: inline-block;
  color: var(--primary-color);
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.8rem);
  font-weight: 500;
  margin-bottom: clamp(8px, 0.5vw, 10px);
  letter-spacing: clamp(1px, 0.15vw, 2px);
}

p.section-title .en__title {
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
  margin-left: clamp(6px, 0.5vw, 10px);
  font-weight: 400;
}

.section-subtitle {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  color: #333;
  font-weight: 400;
  line-height: 1.4;
}
.section-subtitle .sub--text {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  line-height: 1.8;
  display: block;
  margin-top: 10px;
}

/* 改行 */
.sp-br {
  display: none;
}
.pc-br {
  display: block;
}

@media (max-width: 768px) {
  .sp-br {
    display: block;
  }
  .pc-br {
    display: none;
  }

  /* 小さい画面では英語タイトルを改行 */
  p.section-title .en__title {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
}

/* Business Activities */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.business-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 0 40px 0;
}

.business-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: bottom;
  border-radius: 6px;
  overflow: hidden;
  transition: object-fit 0.3s ease; /* スムーズな切り替え */
}

.business-content h4 {
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.8rem);
  font-weight: 400;
  color: #333;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 8px;
  margin-bottom: 16px;
  line-height: 1;
}

.business-content p {
  font-size: inherit;
  margin-bottom: 20px;
}

.business-content ul {
  list-style: none;
}

.business-content ul li {
  padding: 0 20px;
  padding-left: 20px;
  position: relative;
  font-size: inherit;
  line-height: 1.8;
}

.business-content ul li:before {
  content: "・";
  position: absolute;
  left: 0;
}

.business-grid-container {
  display: grid;
  /* 最小300pxのカードを配置し、スペースがあれば1fr(均等)に広がる。自動で列数を調整 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

/* モダンなカードデザイン */
.business-card-modern {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
  border: 1px solid #ddd;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none; /* aタグの下線を消す */
  color: inherit; /* 親要素の色を継承 */
  display: flex;
  flex-direction: column; /* コンテンツを縦に並べる */
}

/* ホバーエフェクト */
/* .business-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
} */

/* 画像のラッパー */
.business-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
}

/* 画像のオーバーレイ（グラデーション）
.business-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  transition: background 0.3s ease;
}

.business-card-modern:hover .business-card-image-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
} */

/* 画像のスタイル */
.business-card-image-wrapper img {
  width: 100%;
  height: 100%;
  /* アスペクト比を保ちつつ、コンテナを完全に覆う */
  object-fit: cover;
  display: block; /* 余白をなくす */
}

/* カードコンテンツ */
.business-card-content-modern {
  padding: 20px 25px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  flex-grow: 1; /* 残りの高さを埋める */
}

/* カードタイトル */
.business-card-content-modern h5 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* アイコン */
/* .business-card-content-modern .fas {
  font-size: 16px;
  color: #868e96;
  transition: color 0.3s ease, transform 0.3s ease;
} */

/* ホバー時のアイコン */
/* .business-card-modern:hover .fas {
  color: #007bff;
  transform: translateX(3px);
} */

/* Performance Table */
.performance {
  background-color: var(--flashgrey);
}
.performance--about {
  /* background-color: var(--white); */
  background-color: var(--flashgrey);
}
.performance h3,
.performance--about h3 {
  font-size: clamp(1.4rem, 0.625vw + 1.2rem, 2.4rem);
}
.performance-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.performance-table thead {
  background: var(--primary-color);
  color: white;
}

.performance-table th.sen {
  border-left: 1px solid #e0e0e0;
}

.performance-table th,
.performance-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.performance-table tbody tr {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.performance-table tbody tr.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.performance-table tbody tr:hover {
  background: #f5f5f5;
}

/* 親要素の幅をはみ出して画面幅100%にする */
.full-bleed {
  width: 100vw; /* ビューポート（画面）の幅 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* 上下のpaddingをリセットする */
  padding-top: 0;
  padding-bottom: 0;
}
.parallax-bg {
  /* 画像を背景として指定 */
  background-image: url("../images/s-DJI_0012.jpg");

  /* 高さを480pxに固定 */
  height: 480px;

  /* パララックス効果の核となる部分 */
  background-attachment: fixed;

  /* 背景画像の表示を調整 */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.normal-bg {
  /* 画像を背景として指定 */
  background-image: url("../images/s-DJI_0012.jpg");

  /* 高さを固定 */
  height: 580px;
  background-attachment: scroll;

  /* 背景画像の表示を調整 */
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 768px) {
  .parallax-bg,
  .normal-bg {
    background-attachment: scroll;
    height: 400px;
    background-position: left bottom;
  }
}
/* Branch */
.branch-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.branch-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: url("../images/outtrack.jpg") center/cover;
  border-radius: 6px;
}

.branch-info h4 {
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.8rem);
}

.branch-info p.lh {
  font-size: var(--noml-fsize);
  line-height: 1;
  margin-bottom: 20px;
}
.branch-info p {
  font-size: var(--noml-fsize);
  line-height: 2;
  margin-bottom: 10px;
}

/* News */
.news-section {
  background: var(--flashgrey);
}
.news-list {
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-item {
  display: flex;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s;
}

.news-item:hover {
  background: #f9f9f9;
}

.news-date {
  min-width: 100px;
  font-size: 14px;
  color: #666;
}

.news-category {
  min-width: 80px;
  font-size: 12px;
  color: var(--primary-color);
  padding: 2px 10px;
  border: 1px solid var(--primary-color);
  border-radius: 3px;
  text-align: center;
  margin-right: 20px;
}

.news-title {
  flex: 1;
  font-size: 14px;
  color: #333;
}

/* Recruit */
.recruit-section {
  background: linear-gradient(
    180deg,
    var(--deepgreen-color),
    var(--secondary-color)
  );
  color: white;
}

.recruit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.recruit-text {
  display: flex;
  flex-direction: column;
}
.recruit-text h3 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.6;
}

.recruit-text p {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  line-height: 2;
  margin-bottom: 30px;
}

.recruit-btn {
  display: inline-block;
  background: #333;
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.recruit-btn:hover {
  background: #555;
}

.recruit-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: url("../images/004.jpg") center/cover;
  border-radius: 6px;
}
.recruit-image--pa {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: url("../images/hyoushi--close.png") center/cover;
  /* background: url("../images/hyoushi.png") center/cover; */
  border-radius: 6px;
}
/* --------------------------
   下層ページ
   ページヘッダーのレイアウト
   -------------------------- */
.page-header {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;

  /* 背景設定 */
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ページスラッグごとに背景画像を変更 */
.page-header.slug-about {
  background-image: url("../images/image_processing-01.jpg");
  background-position: right center; /* 左右・上下 */
}

.page-header.slug-service {
  background-image: url("../images/image_processing-02.jpg");
  background-position: right top; /* 左右・上下 */
}

.page-header.slug-performance {
  background-image: url("../images/image_processing-05.jpg");
  background-position: right center; /* 左右・上下 */
}

.page-header.slug-recruit {
  background-image: url("../images/004.jpg");
  background-position: center top; /* 左右・上下 */
  height: 600px;
}

.page-header.slug-news {
  background-image: url("../images/image_processing-07.jpg");
  background-position: right center; /* 左右・上下 */
}

.page-header.slug-newspage {
  background-image: url("../images/image_processing-08.jpg");
  background-position: right center; /* 左右・上下 */
}

.page-header.slug-entry {
  background-image: url("../images/entry.jpg");
  background-position: right center; /* 左右・上下 */
}

.page-header.slug-contact {
  background-image: url("../images/image_processing-10.jpg");
  background-position: right center; /* 左右・上下 */
}

.page-header.slug-privacy {
  background-image: url("../images/image_processing-04.jpg");
  background-position: right center; /* 左右・上下 */
}
/* --------------------------
   テキストのスタイル
   -------------------------- */
.title-content {
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* 左寄せ */
  margin-top: 7rem;
}
.slug-recruit .title-content {
  margin-top: 3.6rem;
}
/* 日本語タイトル */
.jp-title {
  font-family:
    "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 500; /* 太すぎず細すぎないウェイト */
  color: var(--text-color);
  letter-spacing: 0.02em; /* 文字間隔を少し広げる */
  margin: 0;
  line-height: 1.2;
}

/* 英語サブタイトル */
.en-subtitle {
  font-family: "Noto Serif JP", "Times New Roman", serif;
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
  color: #555555;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  text-transform: none;
}

/* --------------------------
   レスポンシブ対応（スマホ用）
   -------------------------- */
@media screen and (max-width: 768px) {
  .page-header {
    height: 300px;
  }
}

/* about */
.message-section {
  width: 100%;
  overflow: hidden; /* 装飾のはみ出し対策 */
}

.container__about {
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  position: relative;
}

/* -----------------------
   左側：縦書きキャッチコピー
----------------------- */
.vertical-copy {
  /* 縦書き設定 */
  writing-mode: vertical-rl;
  margin-right: 60px;
  flex-shrink: 0; /* 幅が潰れないようにする */
}

.vertical-copy h2 {
  font-family: "Noto Serif JP", serif; /* 明朝体 */
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--primary-color);
}

/* -----------------------
   右側：メッセージコンテンツ
----------------------- */
.message-content {
  position: relative; /* 装飾配置の基準 */
  flex-grow: 1; /* 残りの幅を使う */
  padding-top: 0; /* 上部の位置合わせ */
}

/* 水色の背景装飾（ずらし配置） */
.bg-decoration {
  position: absolute;
  top: 100px; /* 上からの位置 */
  /* 左側(テキスト)を基準にする */
  left: 20%;
  right: auto;
  width: 100vw;
  height: 110%;
  background-color: var(--flashgrey);
  z-index: 0;
}

/* テキストを乗せるエリア */
.message-content .text-inner {
  position: relative;
  z-index: 1; /* 背景より手前に */
  background-color: var(--white);
  padding: 0 30px 30px;
}

/* 見出し：支店長メッセージ */
.message-content .sub-title {
  display: inline-block;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text-color);
}

/* リード文 */
.message-content .lead-text {
  font-family: "Noto Serif JP", serif; /* 明朝体 */
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 500;
  margin: 0 0 20px 0;
  letter-spacing: 0.05em;
}

/* 本文エリア */
.message-content .body-text p {
  margin-bottom: 1.5em;
  text-align: justify; /* 両端揃えで見栄えを良くする */
  line-height: 2; /* ゆったりとした行間 */
}

/* 署名エリア */
.message-content .signature {
  margin-top: 30px;
  text-align: right; /* 右寄せ */
  font-size: 16px;
  line-height: 1.6;
}

.message-content .signature p {
  margin: 0;
}
.signature p.kaisha {
  font-size: 1.2rem;
}
.signature p.mincho {
  font-weight: 600;
}
@media (max-width: 768px) {
  .container__about {
    flex-direction: column; /* 縦並びに変更 */
  }

  .vertical-copy {
    writing-mode: horizontal-tb; /* 横書きに戻す */
    margin-right: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .vertical-copy h2 {
    letter-spacing: 0.1em;
  }
  .message-content .text-inner {
    padding: 0 15px 15px;
  }
}

/* 住所エリア */
.branch-overview .address-info {
  display: flex;
  gap: 30px;
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
}
/* -----------------------
   コンテンツ（画像・マップ）
----------------------- */
.branch-overview .content-grid {
  display: grid;
  /* PC時は2カラム（1:1）、スマホ時は1カラム */
  grid-template-columns: 1fr 1fr;
  gap: 60px; /* 左右の画像の間隔 */
  width: 100%;
}

/* 画像のラッパー */
.branch-overview .image-box {
  width: 100%;
  /* 画像の比率を維持するための設定（例: 16:9に近い比率） */
  aspect-ratio: 16 / 8;
  background-color: #f0f0f0; /* 画像読み込み前の色 */
}

.branch-overview .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせてトリミング */
  border-radius: 6px;
  display: block;
}

/* マップのラッパー */
.branch-overview .map-box {
  width: 100%;
  /* 画像と同じ比率にして高さを揃える */
  aspect-ratio: 16 / 8;
}

.branch-overview .map-box iframe {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
}

/* -----------------------
   レスポンシブ対応（スマホ）
----------------------- */
@media (max-width: 768px) {
  .branch-overview .address-info {
    flex-direction: column;
    gap: 10px;
  }
  .branch-overview .content-grid {
    /* 縦並びに変更 */
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 資格者 */
.qualification-section h3 {
  font-size: clamp(1.4rem, 0.625vw + 1.2rem, 2.4rem);
}
.qualification-section {
  background-color: var(--flashgrey);
}
/* -----------------------
   テーブルレイアウト
----------------------- */
.tables-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px; /* 左右テーブルの間隔 */
  align-items: flex-start; /* 上揃え */
}

.qualification-table {
  width: 48%; /* 左右均等に配置 */
  border-collapse: collapse;
  background-color: #fff; /* テーブル内は白背景 */
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ヘッダー行 */
.qualification-table thead th {
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 20px;
  text-align: left;
  font-weight: 500;
  border: 1px solid var(--primary-color);
  white-space: nowrap; /* 見出しの折り返し防止 */
}
.qualification-table thead th.col-count {
  text-align: center; /* 集計カラムは中央寄せ */
}
/* データ行 */
.qualification-table tbody td {
  padding: 15px 20px;
  border: 1px solid var(--grey); /* 薄いグレーの枠線 */
  color: var(--text-color);
}

/* 集計カラムの位置調整 */
.col-count,
.qualification-table tbody td.count {
  text-align: center; /* 数字は中央寄せ */
  width: 20%; /* 幅を少し狭く固定 */
}

/* -----------------------
   レスポンシブ対応（スマホ）
----------------------- */
@media (max-width: 768px) {
  .tables-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .qualification-table {
    width: 100%;
  }

  /* スマホではパディングを少し狭めて窮屈にならないように調整 */
  .qualification-table tbody td,
  .qualification-table thead th {
    padding: 12px 15px;
  }
}

/* History */
.history-section {
  background-color: var(--white);
}
/* -----------------------
   沿革リスト
----------------------- */
.history-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 50px; /* 左側にタイムライン用の余白を確保 */
  position: relative;
  overflow: visible;
}

/* ▼ 左端の青い縦線（タイムライン） */
/* ul全体に対して1本線を引くことで、項目が増減しても線が切れない */
.history-list::before {
  content: "";
  position: absolute;
  top: 15px; /* 最初の丸の位置に合わせる */
  bottom: 0; /* 下まで伸ばす */
  left: 16px; /* 丸の中心を通る位置 */
  width: 2px;
  background-color: var(--primary-color);
  z-index: 1020;
}

/* -----------------------
   各行のデザイン
----------------------- */
.history-row {
  display: flex;
  align-items: baseline; /* 文字の下端を揃える */
  padding: 25px 0; /* 上下の余白 */
  position: relative;
  background-color: transparent;
  overflow: visible;

  /* 行の下の点線 */
  border-bottom: 1px dashed var(--primary-color);

  /* ▼ ご指定の clamp 関数をベースサイズとして適用 */
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.6rem);
}

/* 最後の行だけ下線を消す場合（お好みで） */
.history-list .history-row:last-child {
  border-bottom: none;
}

/* -----------------------
   左側の青い丸（ドット）
----------------------- */
.history-row.has-year::after {
  content: "";
  position: absolute;
  left: -43px;

  top: 32px; /* フォントサイズに合わせて微調整 */

  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);

  z-index: 1022;
}

/* -----------------------
   日付・コンテンツカラム
----------------------- */
.date-col {
  display: flex;
  align-items: baseline;
  flex-shrink: 0; /* 日付エリアが潰れないように */
  width: 11em; /* 年と月の幅を確保（文字サイズ基準） */
}

.year {
  font-weight: 700;
  width: 5em; /* 年号の幅を固定 */
  margin-right: 10px;
  color: #333;

  /* 年号は本文より大きく（強調） */
  font-size: 1.25em;
}

.month {
  font-weight: 500;
  width: 3em;
}

.content-col {
  flex-grow: 1; /* 残りの幅を使う */
  text-align: left;
}

/* -----------------------
   レスポンシブ対応（スマホ）
----------------------- */
@media (max-width: 768px) {
  /* スマホでは日付の幅を少し縮める */
  .date-col {
    width: auto;
    margin-right: 15px;
  }

  .year {
    width: auto;
    margin-right: 5px;
  }

  /* 縦並びにせず、横並びのまま文字を折り返すスタイルを維持 */
  .history-row {
    padding: 20px 0;
  }

  /* 丸の位置微調整 */
  .history-row.has-year::after {
    top: 28px;
  }
}

/* --------------------------
   人材育成
   -------------------------- */
.hrd-section {
  padding-top: 0;
}
.hrd-section .content-grid {
  display: grid;
  /* PC時は2カラム（1:1）、スマホ時は1カラム */
  grid-template-columns: 1fr 1fr;
  gap: 80px; /* 左右の間隔 */
  width: 100%;
}

/* 画像のラッパー */
.hrd-section .image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f0f0f0; /* 画像読み込み前の色 */
}

.hrd-section .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせてトリミング */
  border-radius: 6px;
  display: block;
}

.hrd-section .txt-box {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.hrd-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
}
.hrd-section p {
  display: block;
  margin-bottom: 20px;
}
.hrd-section .hrd-list {
  padding-left: 20px;
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
}
/* .hrd-section p:last-of-type {
  margin-bottom: 0;
} */
/* -----------------------
   レスポンシブ対応（スマホ）
----------------------- */
@media (max-width: 768px) {
  .hrd-section .content-grid {
    /* 縦並びに変更 */
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --------------------------
   SDGs
   -------------------------- */
/* セクション全体の設定 */
.wp-SDGs-row-section {
  width: 100%;
  padding-left: 20px; /* スマホで見切れないための左右の安全マージン */
  padding-right: 20px;
  padding-top: 0px;
  box-sizing: border-box;
  background-color: #ffffff;
}

/* 画像を囲むコンテナ（Flexbox） */
.wp-SDGs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 57px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  /* padding-top: 57px;
  padding-bottom: 57px; */
}

/* SVG画像個別の設定 */
.wp-SDGs-item {
  height: 161px;
  width: auto;
  max-width: 100%;
  display: block;
}

.pdf-link-wrap {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  padding-right: 75px;
  gap: 8px;
  text-decoration: none;
  line-height: 1.5;
  /* width: fit-content; コンテンツ幅に合わせる */
}

/* アイコンの設定 */
.pdf-link-wrap i {
  font-size: 1.5em;
  color: #dc3545; /* PDFアイコンっぽい赤色 */
  flex-shrink: 0; /* スマホで幅が狭くなってもアイコンを縮ませない */
}

/* テキストの設定 */
.pdf-link-wrap span {
  word-break: break-word;
}

/* --- スマホ用調整 --- */
@media screen and (max-width: 768px) {
  .wp-SDGs-row-section {
    padding-top: 0; /* 余白 */
    padding-bottom: 40px;
  }
  .wp-SDGs-container {
    gap: 30px; /* 隙間 */
  }
  .wp-SDGs-item {
    height: 80px; /* スマホでは高さも半分程度に調整 */
  }
  .pdf-link-wrap {
    justify-content: center;
    align-items: flex-start;
  }
  .pdf-link-wrap i {
    margin-top: -6px;
  }
}
/* --------------------------
   事業内容
   -------------------------- */
/* メインタイトル */
.st-biz-main-title {
  text-align: center;
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.8rem);
  font-family: "Noto Serif JP", serif;
  margin-bottom: 40px;
  font-weight: normal;
  color: #333;
}

/* グラデーション見出し帯 */
.st-biz-heading-bar {
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
  color: #fff;
  padding: 10px 24px;
  font-weight: bold;
  display: inline-block;
  min-width: 300px; /* 見出しの最小幅 */
  text-align: center;
  margin-bottom: 20px;
  /* margin-top: 30px; */
}

/* 本文エリア */
.st-biz-text {
  margin-bottom: 30px;
  text-align: justify;
}

/* 小見出し (主な業務内容など) */
.st-biz-sub-heading {
  font-size: clamp(14px, 0.685vw + 11.4px, 20px);
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* リストスタイル */
.st-biz-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.st-biz-list li {
  margin-bottom: 5px;
}

/* リスト内の強調タイトル部分 */
.st-biz-list strong {
  color: #333;
  font-weight: bold;
}

/* 目的部分のリスト（黒丸なし） */
.st-biz-list-plain {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.st-biz-list-plain li {
  margin-bottom: 5px;
}

/* スマホ表示調整 */
@media screen and (max-width: 768px) {
  .st-biz-heading-bar {
    display: block; /* スマホでは全幅にする */
    width: auto;
  }
  .st-biz-main-title {
    text-align: left;
  }
  .st-biz-text {
    padding-left: 0;
    margin-bottom: 24px;
    text-align: justify;
  }
  .st-biz-list {
    padding-left: 20px;
  }
  .st-biz-list-plain {
    padding-left: 0;
  }
}

/* 2カラムレイアウト（PCは横並び、スマホは縦積み） */
.st-biz-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  /* margin-bottom: 60px; */
  align-items: flex-start;
}

/* 左側のテキストエリア */
.st-biz-col-text {
  flex: 1;
  min-width: 300px; /* スマホなどで極端に狭くならないように */
}

/* 右側の画像エリア */
.st-biz-col-img {
  flex: 0 0 400px; /* PCでの画像の幅 */
  max-width: 100%;
}

.st-biz-col-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 8; /* 縦長の比率 */
  object-fit: cover;
  border-radius: 6px; /* 角を少し丸める */
}

/* 業務ごとの大見出し */
.st-biz-title-large {
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  border-bottom: none;
}

/* 青い縦線のアクセント文章 */
.st-biz-accent-box {
  border-left: 6px solid var(--primary-color); /* 青い太線 */
  padding-left: 15px;
  margin-bottom: 20px;
  color: var(--primary-color); /* 文字色も青 */
  font-weight: bold;
  font-size: 1.1em;
  line-height: 1.6;
}

/* 業務内容などの小見出し */
.st-biz-label {
  font-size: clamp(14px, 0.685vw + 11.4px, 20px);
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
}

/* 箇条書きリスト（点なし、改行区切り風） */
.st-biz-simple-list {
  list-style: none;
  /* padding: 0; */
  margin: 0;
  line-height: 1.7;
}
.st-biz-simple-list li {
  margin-bottom: 4px;
  padding-left: 0;
}

/* スマホ表示調整 */
@media screen and (max-width: 768px) {
  .st-biz-row {
    flex-direction: column; /* 縦積みにする */
    gap: 20px;
    margin-bottom: 30px;
  }
  .st-biz-col-img {
    flex: none;
    width: 100%;
    order: -1; /* 画像を上に表示したい場合は -1、下なら 1  */
  }
  /* 画像をスマホでテキストの下に配置したい場合はこのままでOK */
  .st-biz-col-img img {
    aspect-ratio: 16 / 9; /* 縦長の比率 */
  }
}

/* --------------------------
   Performances
   -------------------------- */
.perform-main-title {
  text-align: left;
}
.performance .section-title {
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
}
.area-container {
  display: flex;
  max-width: 1024px;
  margin: 0 auto;
  gap: 40px; /* 地図とリストの間隔 */
  align-items: flex-start; /* 上揃え */
}

/* --- 左側：マップエリア --- */
.map-side {
  flex: 1; /* 幅の比率（1:1なら1、狭くするなら0 0 40%など） */
  min-width: 300px; /* 最低幅 */
}

/* SVGや画像をレスポンシブにする */
.map-side img,
.map-side svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 右側：テキストリストエリア --- */
.list-side {
  flex: 1;
}

.list-main-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 8px; /* 文字と線の間隔 */
  border-bottom: 1px solid #999;
}

/* リストアイテムの行 */
.location-item {
  display: flex;
  align-items: center; /* 垂直中央揃え */
  margin-bottom: 15px;
  border-bottom: 1px solid #eee; /* 区分け線（任意） */
  padding-bottom: 10px;
}
.location-item:last-child {
  border-bottom: none;
}

/* 数字バッジのスタイル */
.num-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: #eb5562; /* 地図内の赤色に近い色 */
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  margin-right: 15px; /* テキストとの間隔 */
  flex-shrink: 0; /* 数字が潰れないようにする */
}

/* ●（黒丸）バッジのスタイル */
.dot-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  font-size: 20px; /* 丸のサイズ調整 */
  margin-right: 15px;
  flex-shrink: 0;
}

/* テキスト部分 */
.loc-text {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
}

/* --- 小見出し（区切り）スタイル --- */
.area-subheading {
  margin: 20px 0 15px;
  padding-left: 10px;
  border-left: 4px solid var(--primary-color); /* アクセントライン */
  font-weight: bold;
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  color: var(--primary-color);
  background-color: #f0f8ff; /* 薄い背景色 */
  padding: 8px 10px;
}

/* --- スマホ対応（縦並び） --- */
@media (max-width: 768px) {
  .area-container {
    flex-direction: column;
    gap: 20px;
  }
  .map-side {
    width: 100%;
    max-width: 400px; /* スマホで巨大になりすぎないように */
    margin: 0 auto;
    order: 1;
  }
  .list-side {
    width: 100%;
  }
  .list-main-title {
    font-size: 1.8rem;
    margin-top: 10px; /* 見出しと地図との間隔 */
  }
}

/* --------------------------
   recruit
   -------------------------- */
.recruit-hero {
  background-color: var(--flashgrey);
}
/* リード文 */
.recruit-hero__lead {
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

/* 本文 */
.recruit-hero__text p {
  font-size: clamp(1.2rem, 0.22vw + 1.12rem, 1.4rem);
  line-height: 2; /* 行間を広めに */
  color: var(--text-color);
  font-weight: 500;
  margin: 0;
}

/* 採用リンクエリア全体 */
.recruit-links {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
}

/* 各リンクブロック */
.recruit-links__item {
  position: relative;
  flex: 1; /* 2つを均等な幅にする */
  display: flex;
  justify-content: center; /* コンテンツを中央寄せ */
  align-items: center;
  text-decoration: none;
  padding: 40px 20px; /* 内部の余白 */
  color: var(--text-color);
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  gap: 40px; /* 文字とアイコンの間隔 */
}

/* ホバー時の挙動 */
.recruit-links__item:hover {
  background-color: var(--deepgreen-color);
  opacity: 0.9;
}

/* 中央の白い境界線 */
/* 1つ目の要素の右側に線を表示 */
.recruit-links__item:not(:last-child) {
  border-right: 1px solid #fff;
}

/* コンテンツラッパー（文字部分） */
.recruit-links__content {
  text-align: center;
}

/* 日本語タイトル */
.recruit-links__title {
  font-family: var(--mincho);
  font-size: clamp(2rem, 1.33vw + 1.5rem, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

/* 英語サブタイトル */
.recruit-links__subtitle {
  display: block;
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  color: var(--text-color);
  letter-spacing: 0.05em;
}

/* アイコンエリア */
.recruit-links__icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--text-color);
}

/* アイコンのサイズ調整 */
.recruit-links__icon i {
  font-size: clamp(3.2rem, 2.65vw + 2.21rem, 5.6rem);
  margin-top: -10px; /* 見た目のバランス調整 */
}

/* --- レスポンシブ対応（スマホ） --- */
@media screen and (max-width: 768px) {
  .page-header.slug-recruit {
    background-position: center top 60px;
    height: 300px;
    padding: 0;
  }
  .recruit-links {
    flex-direction: column; /* 縦並びにする */
  }

  .recruit-links__item {
    padding: 30px 20px;
    gap: 20px;
  }

  /* スマホ時は縦並びになるため、右の線を消して下の線にする */
  .recruit-links__item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #fff;
  }

  .recruit-hero__lead {
    margin-bottom: 20px;
  }

  .recruit-hero__text p {
    line-height: 1.8;
  }

  /* スマホでの改行タグ無効化 */
  .recruit-hero__text br {
    display: none;
  }
}

/* --- Header Area --- */
.recruit-top-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.recruit-top-text {
  flex: 1;
  min-width: 300px;
}

.recruit-top-image {
  flex: 0 0 400px;
  max-width: 100%;
}
.recruit-top-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .recruit-top-area {
    flex-direction: column;
    gap: 20px;
  }

  .recruit-top-image {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 30px;
  }
}

/* --- Typography --- */
.recruit-title {
  font-size: clamp(2rem, 1.33vw + 1.5rem, 2.8rem);
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: none;
}
.recruit-title.new-grad-color,
.recruit-title.mid-career-color {
  color: var(--deepgreen-color);
}

.recruit-title .en {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  margin-left: 10px;
  color: var(--deepgreen-color);
  font-weight: 500;
}

.recruit-catch {
  font-size: clamp(2rem, 1.33vw + 1.5rem, 2.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  font-family: var(--mincho);
}

.recruit-desc {
  margin-bottom: 20px;
  font-size: 15px;
}

.recruit-company-name,
.recruit-lead-text {
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--text-color);
  background: linear-gradient(transparent 60%, var(--secondary-color) 60%);
  display: inline-block;
}
.recruit-lead-text {
  border-bottom: none;
  margin-top: 30px;
}

/* --- Job Intro List (Icons) --- */
.job-intro-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.job-intro-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px dashed var(--secondary-color);
  padding: 20px 0;
}
.job-intro-item:first-child {
  padding-top: 0;
}
.job-icon {
  flex: 0 0 60px;
  text-align: center;
}
.job-icon img {
  width: 50px;
  height: auto;
}

.job-info h4 {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  margin: 0 0 5px;
  font-weight: bold;
}
.job-info p {
  font-size: clamp(1.2rem, 0.22vw + 1.32rem, 1.4rem);
  margin: 0;
  color: var(--text-color);
}

/* --- Accordion Styles --- */
.recruit-accordion-wrapper {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

/* .accordion-item {
  border-bottom: 1px solid var(--color-border);
} */

.accordion-header {
  width: 100%;
  background: var(--flashgrey);
  border: none;
  text-align: left;
  padding: 24px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.accordion-header:hover {
  background: var(--flashgrey);
}

.accordion-header .title {
  padding-right: 20px;
  color: var(--text-color);
}

/* 矢印アイコンの作成 */
.accordion-header .icon-arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-top: -5px; /* 位置調整 */
}

/* 開いている時の矢印 */
.accordion-item.is-open .accordion-header .icon-arrow {
  transform: rotate(-135deg);
  margin-top: 5px;
}

/* コンテンツ部分 */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.is-open .accordion-content {
  /* JSで制御しない場合の簡易的なフォールバック。
       JSがある場合は scrollHeight をセットします */
  max-height: 3000px;
  transition: max-height 0.5s ease-in;
}

.accordion-inner {
  padding: 20px 30px 40px;
}

/* --- Table Styles --- */
.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.recruit-table th,
.recruit-table td {
  padding: 15px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.recruit-table th {
  width: 25%;
  font-weight: bold;
  color: #333;
  background-color: #fff; /* 画像では白背景に見えます */
}

@media (max-width: 768px) {
  .job-intro-item {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }
  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  .recruit-table th {
    padding-bottom: 5px;
    color: var(--secondary-color); /* スマホで見出しを目立たせる */
  }
  .recruit-table td {
    padding-top: 0;
    border-bottom: 1px solid #eee;
  }
  .accordion-inner {
    padding: 15px;
  }
  .chuo {
    text-align: center;
  }
}

/* --- キャリアモデル (Table) --- */
.career-table-scroll {
  overflow-x: auto; /* スマホで横スクロール可能に */
}

.career-table {
  width: 100%;
  min-width: 700px; /* スマホで崩れないよう最小幅を指定 */
  border-collapse: collapse;
  font-size: clamp(1.2rem, 0.22vw + 1.12rem, 1.4rem);
  background: #fff;
  border: 1px solid #ccc;
}

.career-table th {
  background-color: var(--deepgreen-color);
  color: #fff;
  padding: 15px;
  text-align: left;
  font-weight: bold;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.career-table th:first-child {
  border-left: none;
}

.career-table td {
  padding: 20px 15px;
  border: 1px solid #ccc;
  vertical-align: top;
  line-height: 1.6;
}

/* 列幅の調整（見やすさのため） */
.career-table .col-year {
  width: 15%;
}
.career-table .col-role {
  width: 30%;
}
.career-table .col-skill {
  width: 30%;
}
.career-table .col-cert {
  width: 25%;
}

/* --- 1日のルーティン (Routine) --- */
.section-routine .sub-title {
  font-size: clamp(1.6rem, 0.8964rem + 0.442vw, 2rem);
  color: var(--deepgreen-color);
  margin-left: 15px;
  font-weight: normal;
  display: inline-block;
}
@media (max-width: 600px) {
  .section-routine .sub-title {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
}

.routine-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  background-color: var(--background-color);
  padding: 40px;
  border-radius: 8px; /* 角丸 */
}

.routine-list {
  flex: 1;
}

.routine-image {
  flex: 0 0 350px;
  max-width: 40%;
}
.routine-image img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  display: block;
}

/* タイムラインの各行 */
.routine-row {
  position: relative;
  padding-bottom: 30px; /* 下の余白（緑の棒が入るスペース） */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  border-bottom: none;
}
.routine-row.end-row {
  padding-bottom: 0;
}

/* 時間と行動（左側） */
.routine-time-box {
  width: 140px; /* 時間エリアの幅 */
  flex-shrink: 0;
  font-weight: bold;
  color: var(--text-color);
  position: relative;
}

.routine-time-box .time {
  font-size: clamp(1.6rem, 1.5rem + 0.1875vw, 1.8rem);
  margin-right: 15px;
  display: inline-block;
  width: 70px; /* 時間の数字を揃える */
}

/* 緑の縦棒 */
.routine-time-box::after {
  content: "";
  display: block;
  width: 4px;
  height: 20px; /* 棒の長さ */
  background-color: var(--secondary-color);
  position: absolute;
  left: 20px; /* 棒の位置 */
  bottom: -25px; /* 下に配置 */
}
/* 最後の行は棒を消す */
.routine-row.end-row .routine-time-box::after {
  display: none;
}
.routine-row.end-row {
  border-bottom: none;
}
/* 説明テキスト（右側） */
.routine-desc {
  flex: 1;
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  line-height: 1.6;
  padding-left: 10px;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .routine-container {
    flex-direction: column;
    padding: 20px;
  }
  .routine-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
  }
  .routine-row {
    flex-direction: column;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--secondary-color);
  }
  .routine-desc {
    padding-left: 0;
    margin-top: 5px;
  }
  .routine-time-box::after {
    /* 棒を調整 */
    display: none;
  }
}

/* Benefits Section (福利厚生) */

/* ヘッダーエリア */
.benefits-header {
  margin-bottom: 50px;
}

/* タイトルの色指定 */
.recruit-title.benefits-color {
  color: var(--deepgreen-color);
}

/* キャッチコピー */
.benefits-catch {
  font-size: clamp(2rem, 1.33vw + 1.5rem, 2.8rem);
  font-weight: bold;
  font-family: "Noto Serif JP", serif;
  color: #333;
  margin-bottom: 25px;
  letter-spacing: 0.05em;
}

/* リード文 */
.benefits-lead {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  color: var(--text-color);
  line-height: 1.8;
}

/* グリッドレイアウト（2カラム） */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列 */
  gap: 50px 40px; /* 縦の隙間50px, 横の隙間40px */
}

/* 各アイテム */
.benefits-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* アイコン */
.benefits-icon {
  flex: 0 0 28px; /* 幅固定 */
  height: 28px;
  color: var(--secondary-color);
}
.benefits-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* テキスト部分 */
.benefits-info h4 {
  font-size: clamp(1.6rem, 1.5rem + 0.1875vw, 1.8rem);
  font-weight: bold;
  margin: 0 0 10px 0;
  color: var(--text-color);
}

.benefits-info p {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr; /* スマホでは1列 */
    gap: 30px;
  }
  .benefits-item {
    gap: 15px;
  }
}

/* ==========================================
   Data Section (数字でわかるサンテック)
   ========================================== */
.section-data {
  background-color: var(--background-color); /* 全体の背景色 */
}

/* タイトル色 */
.recruit-title.data-title-color {
  color: var(--deepgreen-color);
  border-bottom: none; /* 下線を消す（デザインに合わせて） */
}

.data-header {
  margin-bottom: 50px;
}
.data-desc {
  max-width: 800px;
  margin: 36px auto 0;
  line-height: 1.8;
  color: var(--text-color);
}

/* --- グリッドレイアウト --- */
.data-grid--wrap {
  display: grid;
  place-items: center;
}
.data-grid {
  width: 800px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* カード間の隙間 */
  justify-content: center;
}

/* --- カードスタイル --- */
.data-card {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 緑のピル型見出し */
.data-card-title {
  color: var(--deepgreen-color);
  font-weight: bold;
  padding: 10px 20px;
  display: inline-block;
  font-size: clamp(2.4rem, 1.77vw + 1.74rem, 4rem);
}

/* 数字エリア */
.data-card-number-area {
  font-weight: bold;
  color: var(--deepgreen-color);
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: clamp(4rem, 0.2941rem + 9.4118vw, 8rem);
}

/* カウントアップされる数字 */
.js-count-num {
  font-size: clamp(4.6rem, 0.3382rem + 10.8235vw, 9.2rem);
  font-family:
    "Helvetica Neue", Helvetica, Arial, sans-serif; /* 英語フォント */
}

/* 単位 (%) */
.data-card-number-area .unit {
  margin-left: 10px;
  font-size: clamp(2rem, 1.33vw + 1.5rem, 3.2rem);
}
/* 単位のサブテキスト (以上) */
.data-card-number-area .unit-sub {
  margin-left: 2px;
  color: var(--deepgreen-color);
}

/* 説明文エリア */
.data-card-text {
  font-size: clamp(1.2rem, 0.22vw + 1.12rem, 1.4rem);
  color: var(--text-color);
  line-height: 1.6;
  text-align: left;
  width: 100%;
  text-align: justify;
}

.data--note {
  text-align: right;
  font-size: clamp(1rem, 0.5732rem + 0.221vw, 1.2rem);
  color: #555;
  margin-top: 18px; /* カードとの隙間 */
  margin-bottom: 0;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 1024px) {
  .data-grid {
    width: 100%;
    display: block;
  }
  .data-card {
    flex-direction: column;
  }
  .data--note {
    text-align: center;
  }
}

/* --------------------------
   News Section
   -------------------------- */
.news-contents {
  max-width: 1024px;
  margin: 0 auto;
}
/* 検索フォームエリア */
.news-filter-form {
  margin-bottom: 40px;
  margin-top: 40px;
}

.filter-row {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ドロップダウンのデザイン */
.select-wrap {
  position: relative;
  min-width: 200px;
}

.select-wrap select {
  width: 100%;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px; /* 角丸 */
  appearance: none; /* デフォルトの矢印を消す */
  cursor: pointer;
}

/* 矢印アイコンの自作 */
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  pointer-events: none;
}

/* 記事リストエリア */
.news-lists ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}

.news-items {
  display: flex;
  align-items: flex-start; /* 上揃え（複数行タイトル対応） */
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.news-metas {
  display: flex;
  align-items: center;
  min-width: 240px; /* 日付とカテゴリの幅確保 */
  flex-shrink: 0; /* 縮小させない */
}

.news-dates {
  font-size: clamp(1.2rem, 0.22vw + 1.12rem, 1.4rem);
  color: #333;
  margin-right: 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.news-catg {
  display: inline-block;
  min-width: 80px;
  font-size: 12px;
  color: var(--text-color);
  padding: 0 12px;
  border: 1px solid var(--color-border);
  background-color: var(--flashgrey);
  border-radius: 3px;
  text-align: center;
}

.news-titles {
  flex: 1; /* 残りの幅をすべて使う */
}

.news-titles a {
  text-decoration: none;
  color: var(--primary-color);
  line-height: 1.6;
  transition: opacity 0.3s;
}

.news-titles a:hover {
  opacity: 0.7;
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }

  .news-items {
    flex-direction: column;
  }

  .news-metas {
    margin-bottom: 10px;
    width: 100%;
  }
}

/* WP-PageNavi のスタイル調整 */
.news-pagination {
  margin-top: 50px;
  text-align: center;
}

/* PageNaviの上書きする */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none !important;
  text-decoration: none;
  color: var(--text-color);
}

/* 現在のページ */
.wp-pagenavi span.current {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
}

/* ホバー時 */
.wp-pagenavi a:hover {
  background-color: #eee;
  border-radius: 4px;
}

/* --------------------------
   News Detail Page
   -------------------------- */
.news-detail-content {
  padding-top: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  max-width: 1160px;
  margin: 0 auto;
}

/* 記事タイトル */
.article-header {
  margin-bottom: 40px;
  margin-top: 20px;
}

.article-title {
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

/* 記事本文 */
.article-body {
  line-height: 1.8;
  color: #333;
  margin-bottom: 60px;
}

.article-body p {
  margin-bottom: 2em; /* 段落ごとの余白 */
}

/* 本文内の画像レスポンシブ対応 */
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto; /* 画像の上下に余白 */
}

/* ------------------------------------
   3点ナビゲーション（前へ・一覧・次へ）
   ------------------------------------ */
.post-navigation {
  display: flex;
  justify-content: space-between; /* 両端と中央に配置 */
  align-items: center;
  border-top: 1px solid #eee; /* 上の境界線（必要であれば） */
  padding-top: 40px;
}

.post-navigation a {
  display: inline-flex; /* アイコンと文字の高さ揃え */
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-prev a::before,
.nav-next a::after {
  font-family: "bootstrap-icons"; /* Bootstrap Icons */
  font-size: 24px; /* アイコンの大きさ */
  color: #999; /* アイコンの色（薄いグレーなど） */
  transition: all 0.3s ease;
}

/* --- 前の記事（左矢印） --- */
.nav-prev a::before {
  content: "\F12A";
  margin-right: 10px; /* 文字との間隔 */
}

/* --- 次の記事（右矢印） --- */
.nav-next a::after {
  content: "\F134";
  margin-left: 10px; /* 文字との間隔 */
}

/* --- ホバー時の動き --- */
/* リンク全体ホバー時 */
.post-navigation a:hover {
  color: var(--primary-color); /* 文字色変更 */
}

/* アイコンの色も変える */
.nav-prev a:hover::before,
.nav-next a:hover::after {
  color: var(--primary-color); /* アイコンも青くする */
}

/* 各エリアの幅を確保してレイアウト崩れを防ぐ */
.nav-prev,
.nav-next {
  width: 30%; /* 左右の幅 */
}

.nav-archive {
  width: 40%;
  text-align: center; /* 中央揃え */
}

.nav-prev {
  text-align: left; /* 左揃え */
}

.nav-next {
  text-align: right; /* 右揃え */
}

/* スマホ対応 */
@media (max-width: 768px) {
  /* スマホでは縦並びにする場合 */
  /* .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    .nav-prev, .nav-archive, .nav-next {
        width: 100%;
        text-align: center;
    } */
}

/* --------------------------
   Recruit Form
   -------------------------- */
/* フォーム全体のラッパー */
.recruit-form {
  max-width: 980px;
  color: var(--text-color);
  margin: 0 auto;
}

/* ヘッダー部分 */
.recruit-header {
  text-align: center;
  margin-bottom: 40px;
}
.recruit-header.txt__left {
  text-align: left;
  padding-left: 80px;
}
.recruit-header h2 {
  color: var(--deepgreen-color); /* 緑色 */
  font-size: clamp(1.8rem, 0.66vw + 1.55rem, 2.4rem);
  font-family: var(--mincho);
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: bold;
}
.recruit-header p {
  font-size: clamp(1.4rem, 0.22vw + 1.32rem, 1.6rem);
  color: var(--text-color);
}

/* 行 */
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* 上下中央揃え */
  margin-bottom: 20px;
  border-bottom: 1px solid #eee; /* 必要に応じて区切り線 */
  padding-bottom: 20px;
}
.recruit-form.confirm-mode .form-row {
  align-items: flex-start; /* 確認画面は上揃え */
}

/* ラベルエリア */
.form-label {
  width: 25%;
  box-sizing: border-box;
  padding-right: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* 必須・任意バッジ */
.badge-required,
.badge-any {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #fff;
  margin-right: 8px;
  white-space: nowrap;
}
.badge-required {
  background-color: #ff4d4d; /* 必須の赤 */
}
/* 画像では「郵便番号」等はバッジがないため非表示にする場合 */
.badge-any {
  display: none; /* 任意マークが不要なら display: none */
}

/* 入力エリア */
.form-input {
  width: 75%;
  box-sizing: border-box;
}

/* 入力フィールドのスタイル */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.recruit-form input[type="text"],
.recruit-form input[type="email"],
.recruit-form input[type="tel"],
.recruit-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fff;
}
/* Contact Form 7のプレースホルダーのスタイル変更 */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #999;
  font-size: clamp(1.2rem, 0.22vw + 1.12rem, 1.4rem);
  opacity: 1;
}

.recruit-form textarea {
  height: 150px;
}

/* 生年月日の横並び */
.dob-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dob-group .select-wrap {
  display: inline-block;
}
.dob-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  min-width: 120px;
}

/* ラジオボタン */
.radio-group .wpcf7-list-item {
  margin-left: 0;
  margin-right: 20px;
}

/* プライバシーポリシー */
.privacy-section {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}
.privacy-check {
  margin-top: 15px;
  font-weight: bold;
}

/* ボタン（確認・送信） */
.wpcf7-submit,
.msf-btn-next,
.wpcf7-previous {
  /* Multi Step Formのボタンクラス */
  background-color: var(--deepgreen-color) !important;
  color: #fff !important;
  border: none;
  width: 280px;
  padding: 15px 60px;
  font-size: clamp(1.6rem, 1.5rem + 0.1875vw, 1.8rem);
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.wpcf7-submit:hover,
.msf-btn-next:hover {
  background-color: var(--secondary-color) !important;
}

/* 確認画面用の戻るボタン */
.wpcf7-previous {
  background-color: #ccc !important;
}
.wpcf7-previous:hover {
  background-color: #bbb !important;
}
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 50px;
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
  .recruit-header.txt__left {
    text-align: left;
    padding-left: 0;
  }
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-label {
    width: 100%;
    margin-bottom: 8px;
  }
  .form-input {
    width: 100%;
  }
  .dob-group {
    flex-wrap: wrap;
  }
  .dob-group select {
    width: 100%;
  }
  .form-buttons {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-top: 30px;
  }
}

/* --------------------------
   Footer
   -------------------------- */
.site-footer {
  background-color: #f2f2f2;
  color: #333;
  padding: clamp(40px, 5vw + 20px, 80px) 0 0;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap; /* 画面幅が狭い時に折り返す */
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

/* 左側エリア */
.footer-left {
  flex-grow: 1;
}

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

.footer-logo {
  width: auto;
  height: 50px;
  margin-right: 15px;
}

.branch-name {
  font-size: 24px;
  font-weight: bold;
}

.address-info p {
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.6;
}

.tel-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.tel-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.tel-number {
  font-size: clamp(24px, 3vw + 1rem, 36px);
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--text-color);
}

.business-hours {
  margin-top: 5px;
  padding-left: 50px; /* アイコンの幅に合わせる */
}

/* PC表示 */
.tel-link {
  color: inherit;
  text-decoration: none;
  pointer-events: none; /* クリック無効 */
  cursor: default;
}

/* SP表示（タップで電話可能） */
@media (max-width: 768px) {
  .tel-number {
    color: var(--primary-color);
  }
  .tel-link {
    color: var(--primary-color);
    text-decoration: underline;
    pointer-events: auto; /* クリック有効 */
    cursor: pointer;
  }
}

/* 中央エリア */
.footer-center {
  display: flex;
  gap: 50px;
  flex-grow: 1;
  min-width: 300px;
}

.sitemap .sitemap-title {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
}
.sitemap .sitemap-title a {
  text-decoration: solid underline;
  color: var(--text-color);
  transition: all 0.5s ease-in-out;
}
.sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap li a {
  text-decoration: none;
  color: var(--text-color);
  line-height: 2.2;
  display: inline-block;
  padding-left: 20px;
  position: relative;
  transition: all 0.5s ease-in-out;
}

.sitemap li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f105"; /* 右矢印 */
  font-weight: 900;
  position: absolute;
  left: 0;
}

.sitemap .sitemap-title a:hover,
.sitemap li a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.sitemap.sitemap-notitle ul {
  margin-top: 41px; /* タイトルの高さ分下げる */
}

/* 右側エリア */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-basis: 220px; /* ボタンエリアの最小幅 */
}

/* フッター下部 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
  gap: 15px;
  font-size: 12px;
  color: var(--text-color);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  text-decoration: underline;
  color: var(--text-color);
  transition: all 0.5s ease-in-out;
}

.footer-links a:hover {
  text-decoration: none;
  color: var(--text-color);
}

/* レスポンシブ対応 (幅が960px以下の場合) */
@media (max-width: 960px) {
  .footer-container {
    /* 各エリアを縦積みに変更 */
    flex-direction: column;
  }

  .footer-center {
    /* SP表示時に幅を確保し、中のナビゲーションも縦積みにする */
    display: none; /* 表示を確実にflexにする */
    flex-direction: column; /* ナビゲーションを縦に並べる */
    width: 100%; /* 横幅を100%確保 */
    height: fit-content;
    gap: 24px; /* 「業務内容」と「業務実績」の間の隙間 */
  }
  /* 右側エリア */
  .footer-right {
    flex-basis: auto; /* ボタンエリアの最小幅 */
  }
  .sitemap.sitemap-notitle ul {
    /* PC表示時に空けていた上の余白をリセット */
    margin-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .footer-links {
    flex-direction: column;
  }
}

/* ========================================
        More Button
   ======================================== */
.more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between; /* 中央寄せに変更 */
  background-color: #fff;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
  font-size: 1.4rem;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  gap: 0;
  overflow: hidden;
  z-index: 0;
  transition:
    opacity 0.2s,
    color 0.3s;

  min-width: 210px;
}
.more-btn:hover {
  color: #fff !important;
  background-color: var(--primary-color);
}

.more-btn--ent {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between; /* 中央寄せに変更 */
  background-color: #fff;
  color: var(--deepgreen-color) !important;
  border: 2px solid var(--deepgreen-color);
  font-size: 1.4rem;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  gap: 0;
  overflow: hidden;
  z-index: 0;
  transition:
    opacity 0.2s,
    color 0.3s;

  min-width: 210px;
}
.more-btn--ent:hover {
  color: #fff !important;
  background-color: var(--deepgreen-color);
}

/* ボタン内の要素のスタイル */
.more-btn span,
.more-btn--ent span {
  z-index: 1;
}
.more-btn i,
.more-btn--ent i {
  font-size: 1.4rem;
  z-index: 1;
}
/* ボタンのホバー効果 */
.more-btn:hover::before,
.more-btn--ent:hover::before {
  left: 0;
}
.more-btn:hover::after,
.more-btn--ent:hover::after {
  display: none !important; /* ホバー時の下線を無効化 */
}

.more-btn-recruit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--text-color);
  color: var(--white) !important;
  font-size: 1.4rem;
  font-weight: 400;
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  gap: 0;
  overflow: hidden;
  z-index: 0;
  transition:
    opacity 0.2s,
    color 0.3s;
  min-width: 210px;
}
.more-btn-recruit:hover {
  color: var(--secondary-color) !important;
}

/* ボタン内の要素のスタイル */
.more-btn-recruit span {
  z-index: 1;
}
.more-btn-recruit i {
  font-size: 1.4rem;
  z-index: 1;
}
/* ボタンのホバー効果 */
.more-btn-recruit:hover::before {
  left: 0;
}
.more-btn-recruit:hover::after {
  display: none !important; /* ホバー時の下線を無効化 */
}

.more-btn-recruit-position {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.more-btn-recruit-position.entry-mode {
  align-items: stretch; /* 幅いっぱいに広げる場合 */
}
/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .business-main,
  .business-grid,
  .branch-content,
  .recruit-content {
    grid-template-columns: 1fr;
  }

  /* .section-subtitle {
    font-size: 22px;
  } */

  .performance-table {
    font-size: 12px;
  }

  .performance-table th,
  .performance-table td {
    padding: 10px 5px;
  }

  .news-item {
    flex-direction: column;
    gap: 10px;
  }
  .txt__right {
    text-align: center;
  }
  .more-btn-recruit-position {
    text-align: center;
  }
  /* SP用お問い合わせボタン */
  .nav-more-btn-wrapper a {
    border-bottom: none;
  }
  .nav-more-btn-wrapper {
    display: inline;
    margin-top: 2rem;
    gap: 12px;
    border-bottom: none;
  }
  .nav-more-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.5rem;
    text-align: center;
  }
  .nav-more-btn:hover {
    transform: none; /* ホバー時のズレを無効化 */
  }
}
/* --------------------------
   Load More Button
   -------------------------- */
.loadmore-wrap {
  text-align: center;
  margin-top: 24px;
}

.loadmore-btn {
  padding: 10px 32px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.loadmore-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
/* --------------------------
   パンくずリスト全体のスタイル
   -------------------------- */
.breadcrumb {
  width: 100%;
  font-size: 1.2rem;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb__recruit {
  width: 100%;
  font-size: 1.2rem;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e0e0e0;
}

/* コンテンツ幅の調整用コンテナ */
.breadcrumb-inner {
  max-width: 1280px;
  padding: 16px clamp(20px, 5vw, 60px);
  margin: 0 auto; /* 画面中央に配置 */
}

/* リストのレイアウト */
.breadcrumb ol,
.breadcrumb__recruit ol {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: unset; /* 継承値に戻す */
}

/* 各項目のスタイル */
.breadcrumb li {
  font-size: 1.2rem !important;
  color: #333;
  line-height: 1;
}
.breadcrumb__recruit span {
  color: var(--white) !important;
}

/* リンクのスタイル（HOME部分） */
.breadcrumb li a {
  color: #333;
  font-size: 1.2rem !important;
  text-decoration: none;
  transition: opacity 0.3s;
}
.breadcrumb__recruit li a {
  color: var(--white);
  text-decoration: none;
}

/* ホバー時の動き（任意） */
.breadcrumb li a:hover {
  opacity: 0.7;
}
.breadcrumb__recruit li a:hover {
  color: var(--deepgreen-color);
}
/* --------------------------
   区切り文字「>」の設定
   -------------------------- */
.breadcrumb li:not(:last-child)::after {
  content: "\003e"; /* ">" の記号 */
  margin: 0 10px; /* 記号の左右の余白 */
  color: #ccc;
}

.breadcrumb__recruit li:not(:last-child)::after {
  content: "\003e";
  margin: 0 10px;
  color: #e0e0e0;
}

/* ========================================
        Privacy Policy Page
   ======================================== */
/* セクションごとの余白 */
.pp-section {
  margin-bottom: 30px;
}

/* 条文見出し H2 */
.pp-section h2 {
  font-size: clamp(1.6rem, 1.5rem + 0.1875vw, 1.8rem);
  background: #f4f4f4; /* 薄いグレーの背景 */
  padding: 10px 15px;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
}

/* 小見出し H3 */
.pp-section h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 5px;
}

/* リストのスタイル */
.pp-section ul {
  margin: 0 0 20px 20px;
  padding: 0;
  list-style-type: disc;
}

.pp-section ul li {
  margin-bottom: 8px;
}

/* 注釈 */
.pp-note {
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
}

/* 第7条などの定義リスト */
.pp-info-block {
  background: #fafafa;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #eee;
}

.pp-dl,
.pp-contact-dl {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.pp-dl dt,
.pp-contact-dl dt {
  width: 25%;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.pp-dl dd,
.pp-contact-dl dd {
  width: 75%;
  margin: 0 0 10px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* 住所ブロック */
.pp-address {
  font-style: normal;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
}
.pp-address a {
  color: var(--primary-color);
}
.pp-company-name {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 10px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .pp-container {
    padding: 15px;
  }
  .pp-dl dt,
  .pp-contact-dl dt,
  .pp-dl dd,
  .pp-contact-dl dd {
    width: 100%;
    display: block;
    border-bottom: none;
  }
  .pp-dl dt,
  .pp-contact-dl dt {
    margin-bottom: 0;
    color: #555;
    font-size: 0.9em;
  }
  .pp-dl dd,
  .pp-contact-dl dd {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
  }
}

/* ========================================
        Page Top Button
   ======================================== */
.page-top {
  position: fixed;
  right: 10px;
  bottom: 60px;
  width: 48px;
  height: 48px;
  background-color: white;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* 下から浮き上がる効果 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 769px) and (hover: hover) {
  .page-top:hover {
    background-color: var(--grey);
    /* transform: translateY(-3px); */
  }
}
@media (max-width: 768px) {
  .page-top {
    right: 10px;
    bottom: 60px;
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
