/* =============================================
   page.css
   サブページ共通スタイル
   読み込み順：common.css → animation.css → page.css → [ページ固有].css
============================================= */


/* =============================================
   HEADER：サブページ初期状態
   body.subpage のとき、JSが読み込み時に
   .header へ .is-scrolled を付与する。
   （白背景FVがないため透明ヘッダーが不要）
   ※ CSSはフォールバック用。JSが主体。
============================================= */
/* 現在表示中のページのナビリンクにクラスを付ける
<a href="about.php" class="is-current">会社概要</a>
*/
.header__nav a.is-current {
  color: var(--white);
}
.header.is-scrolled .header__nav a.is-current {
  color: var(--accent);
}
.subpage .header {
  /* JSが付与するまでの一瞬の透明を防ぐ */
  background: transparent;
}
/* サブページ：スクロール前のヘッダーバーをアクセントカラーに */
.subpage .header__bar {
  background: var(--accent);
}

/* スクロール後は通常の白カプセルに戻す（common.cssの.is-scrolledが上書き） */
.subpage .header.is-scrolled .header__bar {
  background: rgba(255, 255, 255, 0.97);
}
/* =============================================
   PAGE HERO
   ヘッダー（fixed）の実高さ分をmargin-topで押し下げ、
============================================= */
.page-hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin-top: 0;                /* JS付与の.is-scrolledヘッダー高さをCSS変数で管理 */
  background: linear-gradient(
    to bottom,
    var(--white)   0%,
    var(--gray-bg) 50%,
    var(--gray-bg) 100%
  );
  overflow: hidden;
  animation: 1.2s ease-out 0s 1 normal both running hero-bg-reveal;
}

/* 見出しエリア：上 */
.page-hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;            /* fixedヘッダーの実高さ（PC: padding 0.75rem + bar 3.25rem + 外余白） */
  padding-bottom: 2rem;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-hero__label {
  margin-top:4.5rem;
  margin-bottom: 0.375rem;
  font-size:1.1rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--gray-mid);
  line-height: 1.8;
}

/* 画像エリア：下 */
.page-hero__image {
  flex: 2;
  overflow: hidden;
  min-height: 0;
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   BREADCRUMB（パンくずリスト）
============================================= */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 0.75rem;        /* 12px */
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;        /* 13px */
  color: var(--gray-light);
}

/* セパレータ（/）を::afterで生成 */
.breadcrumb__item:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--border);
}

.breadcrumb__link {
  color: var(--gray-light);
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--accent);
}

/* 現在のページ */
.breadcrumb__item--current {
  color: var(--gray-mid);
  font-weight: 500;
}


/* =============================================
   MAIN CONTENT 共通余白
   各サブページの <main> 内セクションの
   上下 padding はここで統一管理する
============================================= */
main > section {
  padding: var(--section-padding) 0;
}

/* 最初のセクションの上余白を少し詰める */
main > section:first-child {
  padding-top: 4rem;
}

/* 隣り合うセクション間の区切り線（任意・必要なページのみ） */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--container-max);
}


/* =============================================
   CTA SECTION 
============================================= */
.cta-section {
  padding: var(--section-padding) 0;
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景装飾：薄いドット */
.cta-section__bg-deco {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 2rem 2rem;
  pointer-events: none;
}

.cta-section__badges {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: #fff;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.cta-section__label {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta-section__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cta-section__title span {
  color: var(--accent);
}

.cta-section__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.cta-section__group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta-section__reassure {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cta-reassure-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-reassure-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.cta-section__note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===============================
   Recruit Section（信頼補強）
=============================== */

.recruit {
  position: relative;
  background-image: url("../images/recruit-bg.webp");
  background-size: cover;
  background-position: center top; 
  background-attachment: fixed; 
    padding: 8rem 2rem 4rem 2rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* オーバーレイ（暗めで信頼感） */
.recruit__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 60, 0.65);
  z-index: 0;
}

/* コンテンツ */
.recruit__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

/* ラベル */
.recruit__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* タイトル */
.recruit__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* テキスト */
.recruit__text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ボタンエリア */
.recruit__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 共通ボタン */
.recruit__btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* メインCTA */
.recruit__btn--primary {
  background: #005bac;
  color: #fff;
}

.recruit__btn--primary:hover {
  background: #004a8c;
}

/* サブCTA */
.recruit__btn--ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}

.recruit__btn--ghost:hover {
  background: rgba(255,255,255,0.1);
}
/* =============================================
   SECTION RULER（案C：番号＋ルールライン）
   全セクション共通の章区切りコンポーネント。
   背景色によるセクション分割を廃止し、
   番号と水平ラインで章の始まりを示す。
============================================= */
.section-ruler {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* 章番号：Barlow Condensedで設計図の図番ライクに */
.section-ruler__num {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

/* 右へ伸びるライン：flexで残幅いっぱいに広がる */
.section-ruler__line {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   SP固定CTAボタン：サブページ対応
   index.phpではheroの高さを基準に表示するが、
   サブページにはheroがないため、
   スクロール量（200px）で表示に切り替える。
   JSの追加処理と連動。
============================================= */
.subpage .mobile-fixed-cta {
  /* 初期状態はcommon.cssと同じ（bottom:-100px, opacity:0） */
}


/* .show クラスはcommon.jsの追加コードで付与 */


/* =============================================
   RESPONSIVE（768px 以下）
============================================= */
@media (max-width: 768px) {
  .header{
    top:0;
  }
  .subpage .header__bar{
    padding:1.5rem 0.5rem;
  }
  .subpage .header.is-scrolled .header__bar {
    /* スクロール前の状態に戻す設定 */
    max-width: 100%;
    background: transparent;
    border-radius: 50px;
    box-shadow: none;
    backdrop-filter: none;
  }
  /* ページヒーロー */
  .page-hero {
    height: 87vh;
  }

  .page-hero__inner {
    padding-top: 5rem;          /* SP時のヘッダー高さに合わせて調整 */
    padding-bottom: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin: 0 2rem;
  }
  .page-hero__label{
    margin-top: 0;
  }
  /* ページCTA */
  .page-cta {
    padding: 3.5rem 0;
  }

  .page-cta__group {
    flex-direction: column;
    align-items: stretch;
  }

  .page-cta__group .btn-white,
  .page-cta__group .btn-primary {
    justify-content: center;
    width: 100%;
  }

  /* セクション余白をSP用に縮小 */
  main > section {
    padding: 3.5rem 0;
  }

  main > section:first-child {
    padding-top: 2.5rem;
  }
    /* CTA */
  .cta-section__group { flex-direction: column; }
  .cta-section__reassure { gap: 1.25rem; flex-direction: column; align-items: center; }
    .recruit {
    background-attachment: scroll; /* モバイルは固定解除 */
    padding: 4rem 1.5rem;
  }
  .recruit__title {
    font-size: 1.4rem;
  }

  .recruit__text {
    font-size: 0.9rem;
  }
}
