/* ===========================
   リセット・基本設定
   =========================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* padding を足しても幅が変わらないようにする */
}

:root {
  /* ── 文字色 ── */
  --ink: #171b20; /* メイン文字色：見出し・本文・ナビhover */
  --muted: #66707a; /* サブ文字色：ナビ通常時・補足テキスト */

  /* ── ブランドカラー ── */
  --green: #3a6b5e; /* ブランドカラー：CTAボタン・アクセント線・marker */
  --copper: #d86f45; /* アクセント橙：見出し下線・装飾アイコン */

  /* ── 背景・線 ── */
  --bg: #fafaf7; /* ベース背景：body・header */
  --line: rgba(23, 27, 32, 0.12); /* 罫線：header下線・区切り線 */

  /* ── フォント ── */
  --font-ja: "Noto Sans JP", sans-serif; /* 和文：本文全般 */
  --font-title: "Shippori Mincho", serif; /* 明朝体：大見出し・タイトル */
  --font-en: "Inter", sans-serif; /* 英字：英語キャプション・ラベル */

  /* ── レイアウト ── */
  --bridge-overlap: 18rem; /* セクション間カードの上下の重なり量 */
  --section-pad: 12rem; /* 通常セクションの上下 padding */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit; /* aタグは親の文字色を引き継がないのでここで明示 */
}

/* ┌─────────────────────────────────────────┐
   │ ヘッダー                                 │
   └─────────────────────────────────────────┘ */

/* ホームページだけ、最初は透明にして背景画像と一体化させる */
.header {
  position: fixed; /* 画面上部に常に固定 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100; /* 他の要素より必ず前面に出す */

  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

.header_inner {
  max-width: 110rem;
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 17rem;
  min-width: 0; /* flexコンテナ内でロゴが縮まないよう保護 */
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ホームページ用のヘッダー拡張（幅広・高さ確保） */
.home_page .logo {
  transition: opacity 0.3s ease;
}

.home_page .header_inner {
  max-width: 118rem;
  min-height: 7.2rem;
  padding: 1.2rem 2rem;

  opacity: 0;
  transform: translateY(-70rem);
  animation: home_fade_in 3s ease-out forwards;
}

/* ┌─────────────────────────────────────────┐
   │ ナビゲーション                            │
   └─────────────────────────────────────────┘ */

.nav_link {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
  letter-spacing: 0.03em;
}

.nav_link:hover {
  color: var(--ink);
}

/* ホームページではナビ文字を白に（背景が暗い画像のため） */
.home_page .nav_link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.35rem;
}

.home_page .nav_link:hover {
  color: #fff;
}

/* 「事業内容」「お問い合わせ」は黒・太字で目立たせる */
.home_page .nav_menu {
  color: var(--ink);
  font-weight: bold;
}

/* お問い合わせCTAボタン */
.nav_cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  background: var(--green);
  color: #fff !important;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.nav_cta::after {
  content: "→";
  font-size: 1.1rem;
}

.nav_cta:hover {
  background: color-mix(in srgb, var(--green), black 15%);
  transform: translateY(-1px);
}

/* ┌─────────────────────────────────────────┐
   │ ハンバーガーメニュー                       │
   └─────────────────────────────────────────┘ */

.header_actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* <span> 3つが CSS で横線に見える。backdrop-filter でガラス感を演出 */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 4rem;
  height: 4rem;
  background: rgba(23, 27, 32, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.6rem;
  transition: background 0.3s;
}

.hamburger:hover {
  background: rgba(23, 27, 32, 0.28);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px; /* 横線の太さ */
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ┌─────────────────────────────────────────┐
   │ body 背景（ホームページ専用グリッド）        │
   └─────────────────────────────────────────┘ */

body.home_page {
  background: linear-gradient(90deg, rgba(23, 27, 32, 0.045) 1px, transparent 1px), linear-gradient(0deg, rgba(23, 27, 32, 0.045) 1px, transparent 1px), #f6f2ec;
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font-ja);
}

/* ┌─────────────────────────────────────────┐
  │ ヒーローセクション                         │
   └─────────────────────────────────────────┘ */

.home_hero {
  position: relative; /* 子要素を absolute で重ねるための基準点 */
  min-height: 92vh;
  overflow: hidden; /* スライド画像がはみ出ないよう切り取る */
  color: #fff;
  background: #20262d; /* 画像が読み込まれるまで表示される暗い下地色 */
}

/* 左から右に向かって暗くなるグラデーション。テキストを読みやすくする */
.home_hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.08) 100%);
}

/* ヒーロー背景動画（2本共通） */
.home_hero_bg_video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.11); /* 動画のサイズが会わないので強制的に広げる */
  z-index: 0;
  transition: opacity 1s ease;
}

/* 2本目は最初非表示。JSが切り替える */
.home_hero_bg_video_2 {
  opacity: 0;
}

/* テキスト類は z-index: 2 でオーバーレイ（::after）より前面に出す */
.home_hero_inner {
  position: relative;
  z-index: 2;

  width: 118rem;
  min-height: 92vh;
  margin: 0 auto;
  padding: 13rem 0 16rem;
}

/* ┌─────────────────────────────────────────┐
   │ キッカー（小見出しラベル）                  │
   └─────────────────────────────────────────┘ */

/* 「Work Support」「About us」などの小さいラベル。左に銅色の縦線が入る */
.home_kicker {
  margin: 0 0 1.6rem;
  border-left: 3px solid var(--copper);
  padding-left: 1.3rem;
  color: var(--green);
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ヒーロー内のキッカーは白・透明から始まりフェードイン */
.home_hero .home_kicker {
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  animation: home_fade_in 0.8s ease-out 0.3s forwards;
}

/* ┌─────────────────────────────────────────┐
   │ ヒーロータイトルとアニメーション             │
   └─────────────────────────────────────────┘ */

.home_hero_title {
  max-width: 96rem;
  margin: 0;
  color: #fff;
  font-family: var(--font-title); /* 明朝体で高級感を出す */
  font-size: 6.8rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

/* <span> 1行ずつ animation-delay をずらして左からスライドインしてくる */
.home_hero_title span {
  display: block;
  opacity: 0;
  transform: translateX(-7rem);
  animation: home_fade_in 0.9s ease-out forwards;
}

.home_hero_title span:nth-child(1) {
  animation-delay: 0.45s;
}
.home_hero_title span:nth-child(2) {
  animation-delay: 0.7s;
}
.home_hero_title span:nth-child(3) {
  animation-delay: 0.95s;
}

/* 「確かな仕事へ」に引かれるオレンジ下線。background-size が 0% → 100% に伸びる */
.home_marker {
  display: inline;
  font-style: normal;
  background-image: linear-gradient(to right, rgba(216, 111, 69, 0.5), rgba(216, 111, 69, 0.5));
  background-repeat: no-repeat;
  background-size: 0% 0.28em;
  background-position: left 84%; /* テキストの下に線が来る位置 */
  animation: home_marker_draw 1.2s ease-out 1.5s forwards;
}

@keyframes home_marker_draw {
  to {
    background-size: 100% 0.28em; /* 横幅を0%→100%に広げることで線が伸びて見える */
  }
}

/* リード文・ボタンも同じフェードインで遅れて表示 */
.home_hero_text {
  max-width: 62rem;
  margin: 3rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.6rem;
  line-height: 2;
  opacity: 0;
  transform: translateY(1.8rem);
  animation: home_fade_in 0.8s ease-out 1.3s forwards;
}

.home_hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(1.8rem);
  animation: home_fade_in 0.8s ease-out 1.55s forwards;
}

/* opacity と transform を同時にリセット（透明・ずれ → 表示・元の位置） */
@keyframes home_fade_in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ┌─────────────────────────────────────────┐
   │ ボタン                                   │
   └─────────────────────────────────────────┘ */

/* ヒーローセクションのボタン(共通スタイル・２つの) */
.home_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  border: 1px solid transparent;
  padding: 1.3rem 2.2rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

.home_button:hover {
  transform: translateY(-2px); /* ホバーで少し浮き上がる */
}

.home_button_primary {
  background: #fff;
  color: var(--ink);
}

/* 枠線だけで中が透明なゴーストボタン */
.home_button_ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

/* ┌─────────────────────────────────────────┐
   │ セクション共通スタイル                     │
   └─────────────────────────────────────────┘ */

/* 最大幅を決めて中央寄せ。calc(100% - 4rem) で左右に最低2remの余白を確保 */
.home_section {
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 11rem 0;
}

.home_section_lead {
  max-width: 69rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.65rem;
  line-height: 2;
}

/* 各セクションの大見出し共通スタイル（明朝体・大きめ） */
.home_section h2,
.home_work h2,
.home_contact h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 4.6rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

/* ┌─────────────────────────────────────────┐
   │ about us セクション　左に女性指導員　右に会社の概要                          │
   └─────────────────────────────────────────┘ */

/* homeでセクションをくぎっている　これは、アバウトセクションのトップ */
.home_about {
  position: relative;
  overflow: hidden;
}

/* 背景ウォーターマーク 共通スタイル */
.home_about::before,
.home_flow::before,
.home_contact::before {
  position: absolute;
  font-family: var(--font-en);
  font-size: 16rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* 各セクション固有の内容・位置・色 */
.home_about::before {
  content: "ABOUT";
  bottom: -2rem;
  right: -3rem;
  color: rgba(23, 27, 32, 0.05);
}

/* 画像（左）とテキスト（右）を grid で横並び。0.9fr / 1.1fr で微妙に非対称にしている */
.home_about_grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: center;
  padding-bottom: 14rem;
}

.home_about_image {
  position: relative;
  aspect-ratio: 16 / 11; /* 画像の縦横比を固定 */
  overflow: hidden;
  border-radius: 1.2rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.04);
}

.home_about_image img,
.home_about_image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home_about_body {
  display: grid;
  gap: 2rem;
  color: #414950;
  font-size: 1.75rem;
  line-height: 2;
}

.home_about_body .home_kicker {
  margin-bottom: 0;
}

.home_about_body h2 {
  margin-bottom: 0.8rem;
  text-wrap: balance; /* 見出しの行末が揃ってバランスよく折り返される */
  font-size: 5.1rem;
  line-height: 1.3;
}

.home_section_head h2 {
  margin-bottom: 2rem;
}

/* ┌─────────────────────────────────────────┐
   │ スクロールアニメーション（js_soft_reveal）   │
   └─────────────────────────────────────────┘ */

/* 初期状態は透明・少し下にずれている。script.js が is_visible を付けたら表示 */
.js_soft_reveal {
  opacity: 0;
  transform: translateY(4rem);
  transition:
    opacity 0.7s ease,
    transform 0.8s ease;
}

.js_soft_reveal.is_visible {
  opacity: 1;
  transform: none;
}

/* ┌─────────────────────────────────────────┐
   │ About → サービスカード（軽作業・IT業務）  橋渡し（緑の斜め帯）    │
   └─────────────────────────────────────────┘ */

/* 高さだけ確保する箱。overflow: visible で画像が上にはみ出せる */
.home_bridge {
  position: relative;
  overflow: visible;
  height: 18rem;
  z-index: 1;
}

/* ::before で緑の斜め背景を作る　ここでクリップパスを指定
しないと背景の画像（home_bridge_image）まで削除してしまうので
（clip-path で斜めに切り取り） */
.home_bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(58, 107, 94, 0.4);
  clip-path: polygon(0 8rem, 100% 0%, 100% 100%, 0 100%);
}

/*セクションにまたがる画像*/
.home_bridge_image {
  position: absolute;

  top: -16rem;
  left: 50%;
  transform: translateX(-20%);

  width: 52%;
  height: 34rem;

  border-radius: 1rem;

  /* 直接画像を指定しない理由は、再度にあるバーを隠すため➡画像を綺麗にする*/
  background-image: url(../img/背景画像用３人がデスクで話す_私服.png);
  background-position: center;
  background-size: cover;

  z-index: 2;
}

/* ┌─────────────────────────────────────────┐
   │ サービスカード（軽作業・IT業務）             │
   └─────────────────────────────────────────┘ */

/*セクション全体のカラーを設定*/
/* homeでセクションをくぎっている　これは、アバウトセクションのトップ */
.home_services_wrap {
  background-color: rgba(58, 107, 94, 0.4);
  position: relative;
  z-index: 0;
  height: 114rem;
  padding-bottom: var(--bridge-overlap); /* service_bridge の margin-top: -20rem 分を確保 */
}

.home_services {
  padding-bottom: 0;
}

.home_service_columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 7.2rem;
}

/* grid-template-rows で「画像エリア固定 + テキストは残り全部」の構成 */
.home_service_feature {
  display: grid;
  grid-template-rows: 30rem 1fr;
  border-radius: 0 90px 0 0; /* 右上だけ丸くしてデザインのアクセントに */
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  outline: 0.1px solid grey; /* box-shadow だけだと隙間が出るので細い枠で補完 */
}

.home_service_feature:hover {
  transform: translateY(-0.6rem); /* ホバーで浮き上がる */
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
}

.home_service_feature_image {
  overflow: hidden;
  background: #d8d8d8; /* 画像読み込み前のプレースホルダー色 */
}

.home_service_feature_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ホバーで画像を少し拡大してズームインの演出 */
.home_service_feature:hover .home_service_feature_image img {
  transform: scale(1.04);
}

.home_service_feature_body {
  padding: 2.2rem;
}

/* 「01」「02」の番号ラベル（ピル型バッジ）*/
.home_service_feature_body > span {
  display: inline-grid;
  place-items: center;
  width: 9rem;
  height: 3.5rem;
  border-radius: 50px;
  margin-top: 2rem;
  margin-bottom: 2.4rem;
  background: var(--green);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  position: relative;
}

/* IT業務カード（warm）は番号ラベルをオレンジに変える */
.home_service_feature_warm .home_service_feature_body > span {
  background: var(--copper);
}

.home_service_feature h3 {
  margin: 0 0 1.3rem;
  font-size: 3rem;
  line-height: 1.3;
}

.home_service_feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.9;
}

/* IT業務カードの安心感ラベル */
.home_service_feature_reassure {
  margin: -0.6rem 0 1.2rem;
  color: var(--copper);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home_service_feature_reassure::before {
  content: "✓ ";
}

/* 補足テキストに左ボーダーで引用風の見た目を付ける */
.home_service_feature_note {
  margin-top: 1.4rem !important;
  border-left: 3px solid rgba(58, 107, 94, 0.33);
  padding-left: 1.2rem;
  color: #4c555d !important;
  font-size: 1.35rem !important;
}

.home_service_feature_warm .home_service_feature_note {
  border-left-color: rgba(216, 111, 69, 0.36); /* warmカードは橙色ボーダー */
}

/* ┌─────────────────────────────────────────┐
   │  Services(軽作業とIT業務の画像)とWork Scene(背景動画エリア) 橋渡し                   │
   └─────────────────────────────────────────┘ */

.service_bridge {
  position: relative;
  overflow: hidden;
  background: #141c17; /* 黒寄り・緑みをごく薄く残したチャコール */
  border-radius: 2.4rem 2.4rem 2.4rem 0;
  margin: -18rem 4rem; /* 上下に重なる。左右はページ端から少し内側 */
  padding: 4rem 6rem;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.8rem;
}

/* 背景にうっすら大きなアルファベット（hrdxのNEWSと同じ手法） */
.service_bridge::before {
  content: "STEP";
  position: absolute;
  top: 0;
  left: 3%;
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 800;
  color: rgba(58, 107, 94, 0.7);
  white-space: nowrap;
  pointer-events: none;
}

.service_bridge_lead {
  font-family: "Shippori Mincho", serif;
  font-size: 3rem;
  font-weight: 600;
  padding-top: 3rem;
  letter-spacing: 0.03em;
  color: #fff;
}

.service_bridge_text {
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

/* service_bridge 内のボタンをヘッダーCTAと同じ緑ピル型に上書き */
.service_bridge .home_button_primary {
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  padding: 1.2rem 3rem;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.service_bridge .home_button_primary:hover {
  background: color-mix(in srgb, var(--green), black 15%);
}

/* ┌─────────────────────────────────────────┐
   │ Work Scene（背景動画エリア）               │
   └─────────────────────────────────────────┘ */

/*
  レイヤー構造（下から上）:
    z-index 0: <video> 背景動画
    z-index 1: ::after グラデーションオーバーレイ
    z-index 2: .home_work_inner テキスト
*/
.home_work {
  margin-top: calc(-1 * var(--bridge-overlap));
  position: relative;
  z-index: 1;
  height: 110rem;
  background: #0e3b34 url("../img/軽作業風景手前に二人、後ろに３人(ChatGpt_机の上で作業).png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.home_section a {
  display: inline-block;
  color: #fff;
  object-fit: cover;
}

/* 親要素（タイトル＋リードテキスト） */
.home_section_head {
  max-width: 100%;
  margin-bottom: 4rem;
}

/* Servicesだけ：h2 と VIEW MORE ボタンを横並び */
.home_services .home_section_head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7rem;
}

.home_view_more {
  display: inline-flex;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  background: var(--green);
  color: #fff !important;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* 動画の上に半透明の緑グラデーションをかぶせてテキストを読みやすくする */
.home_work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(42, 122, 102, 0.55) 0%, rgba(14, 59, 52, 0.72) 100%);
}

.home_work_inner {
  position: relative;
  z-index: 2; /* オーバーレイより前面に出す */
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 6rem;
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: calc(var(--bridge-overlap) + 14rem) 0 5rem; /* 上：bridge重なり分＋通常余白 */
}

.home_work_text {
  align-self: center;
}

/* Work Sceneのテキストだけ左からフェードイン（下からではなく） */
.home_work_text.js_soft_reveal {
  transform: translateX(-4rem);
}

.home_work_text.js_soft_reveal.is_visible {
  transform: none;
}

.home_work_text .home_kicker {
  color: rgba(255, 255, 255, 0.85);
}

.home_work h2 {
  font-size: 4.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* 暗い背景でも見出しを際立たせる影 */
  line-height: 1.4;
}

.home_work_text p:not(.home_kicker) {
  margin: 2.4rem 0 0;
  color: rgba(255, 255, 255, 1);
  font-size: 1.65rem;
  line-height: 2;
}

.home_work_points {
  display: grid;
  gap: 1.2rem;
  margin-top: 3.4rem;
}

/* 各ポイント（Support / Work / Quality）を横線で区切る */
.home_work_points article {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.8rem;
}

.home_work_points span {
  display: block;
  margin-bottom: 0.6rem;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.home_work_points strong {
  display: block;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.45;
}

/* ┌─────────────────────────────────────────┐
   │ フロー・タイムライン（利用までの流れ）        │
   └─────────────────────────────────────────┘ */

.home_flow {
  position: relative;
  overflow: hidden;
  padding-top: 20rem;
}

.home_flow::before {
  content: "FLOW";
  top: 12rem;
  left: 0rem;
  color: rgba(23, 27, 32, 0.05);
}

/* flowセクション全体の要素 */
.home_flow_timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
  max-width: 100rem;
  margin: 0 auto;
}

/* 縦線は ::before 疑似要素で描いている。scaleY(0→1) で上から伸びてくる演出 */
.home_flow_timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.9rem;
  width: 4px;
  background: rgba(58, 107, 94, 0.33);
  transform: scaleY(0);
  transform-origin: top; /* 上から伸びるようにする */
  transition: transform 3s ease-out 0.2s;
  border-radius: 2px;
}

/* js_soft_reveal と同じく、画面内に入ったら is_visible が付いて縦線が伸びる */
.home_flow_timeline.is_visible::before {
  transform: scaleY(1);
}

.home_flow_timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 25rem 1fr; /* アイコン幅固定 + テキスト可変 */
  gap: 0.3rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem 1rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.04);
}

.home_flow_timeline article:last-child {
  padding-bottom: 2.4rem;
}

/* PNG アイコン。mix-blend-mode: multiply で白い背景を透過させる */
.home_flow_icon {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

/* <b> に CSS の content で "STEP " を自動追加。HTMLには数字だけ書けばいい */
.home_flow_timeline b {
  display: block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.home_flow_timeline b::before {
  content: "STEP ";
}

.home_flow_timeline article:nth-child(odd),
.home_flow_timeline article:nth-child(even) {
  background: #fff;
}

.home_flow_timeline article:nth-child(even) b {
  color: var(--copper); /* 偶数ステップの番号はオレンジ */
}

/* 縦線上の丸い点も ::before 疑似要素で CSS だけで描いている */
.home_flow_timeline article::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(58, 107, 94, 0.5);
  border: 1px solid #fff;
  box-shadow: 0 0 0 2px rgba(58, 107, 94, 0.33);
}

.home_flow_timeline h3 {
  margin: 0 0 1rem;
  font-size: 2.4rem;
  line-height: 1.4;
}

.home_flow_timeline p {
  max-width: 64rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.55rem;
  line-height: 1.9;
}

/* ┌─────────────────────────────────────────┐
   │ FAQ（よくあるご質問）                      │
   └─────────────────────────────────────────┘ */

.home_faq {
  padding-top: 8.8rem;
  padding-bottom: 9.6rem;
}

.home_faq_head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home_faq .home_section_head {
  text-align: center;
}

.home_flow .home_section_head {
  text-align: left;
}

.home_flow .home_section_lead {
  margin: 0;
  padding-left: 0.5rem;
  margin-bottom: 4rem;
}

.home_section_head:nth-child(3) {
  display: none;
}

.faq_img {
  display: block;
  height: 10rem;
  width: 40%;
  margin: 0 auto;
  object-fit: contain;
}

/* FAQ のキッカーは「• Q&A •」という表記なので左ボーダーを外す */
.home_faq .home_kicker {
  border-left: none;
  padding-left: 0;
}

.home_faq_list {
  display: grid;
  gap: 0;
  max-width: 100rem;
  margin: 0 auto;
}

/* <details> は HTML 標準のアコーディオン。JS なしで開閉できる */
.home_faq_list details {
  position: relative;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.home_faq_list details:first-child {
  border-top: 1px solid var(--line); /* 最初の項目だけ上にも線が必要 */
}

/* <summary> がクリックできる質問文の部分 */
.home_faq_list summary {
  position: relative;
  cursor: pointer;
  padding: 2.4rem 4rem 2.4rem 4.8rem;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
}

/* ブラウザ標準の▶マークを消す */
.home_faq_list summary::-webkit-details-marker {
  display: none;
}

/* 「Q」バッジを ::before で左に配置 */
.home_faq_list summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* 右端の開閉矢印（∨ / ∧）を ::after で表示 */
.home_faq_list summary::after {
  content: "∨";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

/* [open] 属性が付いたとき（開いた状態）に矢印を反転 */
.home_faq_list details[open] summary::after {
  content: "∧";
  color: var(--green);
}

.home_faq_list p {
  margin: 0;
  padding: 0.4rem 2rem 2.4rem 4.8rem;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.9;
  position: relative;
}

/* 「A」バッジも同じく ::before で左に配置 */
.home_faq_list p::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(58, 107, 94, 0.15);
  color: var(--green);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ┌─────────────────────────────────────────┐
   │ お問い合わせフォーム                       │
   └─────────────────────────────────────────┘ */

/* 緑のグラデーション背景（左上が明るく、右下が暗い） */
.home_contact {
  background: linear-gradient(135deg, #2a7a66 0%, #0e3b34 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home_contact::before {
  content: "CONTACT";
  bottom: -3rem;
  right: -4rem;
  font-size: 14rem; /* CONTACTは文字数が多いので少し小さめ */
  color: rgba(255, 255, 255, 0.05);
}

.home_contact_inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(34rem, 1.18fr); /* 文章:フォーム = 約4:6 */
  gap: 5.6rem;
  align-items: start;
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 7.2rem 0;
}

.home_contact .home_kicker {
  color: rgba(255, 255, 255, 0.72);
}

.home_contact p:not(.home_kicker) {
  max-width: 70rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.65rem;
  line-height: 2;
}

/* backdrop-filter: blur で背景をぼかしてすりガラス風（glassmorphism） */
.home_contact_form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2.4rem;
  backdrop-filter: blur(14px);
}

.home_contact_form label {
  display: grid;
  gap: 0.7rem;
}

.home_contact_form span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  font-weight: 700;
}

.home_contact_form input,
.home_contact_form select,
.home_contact_form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94); /* 入力欄だけ白に近い背景 */
  padding: 1.2rem 1.3rem;
  color: var(--ink);
  font: inherit; /* フォントをページ全体と統一 */
  font-size: 1.45rem;
  outline: none;
}

.home_contact_form textarea {
  resize: vertical; /* 横には広げられないよう縦方向のみ許可 */
  min-height: 13rem;
}

/* フォーカス時に白い枠と光彩を付けてどこを入力中かわかりやすくする */
.home_contact_form input:focus,
.home_contact_form select:focus,
.home_contact_form textarea:focus {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* テキストエリアだけ2列にまたがらせる */
.home_contact_form_wide {
  grid-column: 1 / -1;
}

/* 送信ボタン。オレンジで目立たせる */
.home_contact_form button {
  grid-column: 1 / -1;
  min-height: 5.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--copper);
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.home_contact_form button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ┌─────────────────────────────────────────┐
   │ フッター                                  │
   └─────────────────────────────────────────┘ */

.home_footer {
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ロゴ・会社情報・ナビ・CTAボタン の4カラム構成 */
.home_footer_inner {
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(24rem, 1fr) minmax(18rem, 0.72fr) auto;
  gap: 5rem;
  align-items: start;
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 7.2rem 0 5.6rem;
}

.home_footer_logo {
  display: inline-flex;
  align-items: center;
  width: 17rem;
  margin-bottom: 2rem;
}

.home_footer_logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home_footer_brand p,
.home_footer_info address {
  margin: 0;
  color: var(--muted);
  font-size: 1.35rem;
  font-style: normal; /* <address> タグのデフォルトイタリックを解除 */
  line-height: 1.9;
}

.home_footer_brand p + p {
  margin-top: 1rem; /* 同じ親の中で <p> が隣り合うときだけ上に余白 */
}

.home_footer_info h2 {
  margin: 0 0 1.8rem;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1.4;
}

.home_footer_nav {
  display: grid;
  gap: 1.3rem;
}

.home_footer_nav a {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
}

/* 各リンクの前に「›」を CSS で自動追加 */
.home_footer_nav a::before {
  content: "›";
  margin-right: 0.8rem;
  color: var(--green);
}

.home_footer_action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17rem;
  min-height: 4.8rem;
  background: var(--green);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

/* color-mix で変数のまま少し暗くする（#値に直す必要がない） */
.home_footer_action a:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--green), black 15%);
}

/* 著作権表記エリア。プライバシーポリシーと横並び */
.home_footer_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
  font-size: 1.2rem;
}

.home_footer_bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.home_footer_bottom a {
  color: var(--muted);
}

/* ┌─────────────────────────────────────────┐
   │ レスポンシブ（スマホ：700px以下）            │
   └─────────────────────────────────────────┘ */

@media screen and (max-width: 700px) {
  .logo {
    width: 13.2rem;
  }

  .home_page .header_inner {
    min-height: 6.4rem;
  }

  /* スマホでは 100svh（アドレスバーを除いた実際の高さ）を使う */
  .home_hero,
  .home_hero_inner {
    min-height: 100svh;
  }

  .home_hero_inner {
    align-content: end; /* テキストを下寄せにしてパネルと重ならないようにする */
    padding: 10rem 0 24rem;
  }

  .home_hero_title {
    font-size: 3.6rem;
  }

  .home_section h2,
  .home_work h2,
  .home_contact h2 {
    font-size: 2.2rem;
  }

  .home_section h2 {
    margin-bottom: 2rem;
  }

  .home_hero_text,
  .home_about_body,
  .home_work_text p:not(.home_kicker),
  .home_contact p:not(.home_kicker) {
    font-size: 1.55rem;
  }

  .home_section,
  .home_work_inner {
    padding: 7.2rem 0;
  }

  /* 横並びを全部1カラムに切り替え */
  .home_about_grid,
  .home_work_inner,
  .home_footer_inner,
  .home_contact_inner {
    grid-template-columns: 1fr;
  }

  .home_service_columns {
    grid-template-columns: 1fr;
  }

  .home_button {
    width: 100%; /* ボタンを全幅にして押しやすくする */
  }

  .home_faq_list {
    margin-left: 0;
  }

  .home_contact_inner {
    padding: 6.4rem 0;
  }

  .home_contact_form {
    grid-template-columns: 1fr; /* フォームも1カラムに */
  }

  .home_flow_timeline {
    margin-left: 0;
  }

  /* スマホではアイコン幅を小さくして縦長レイアウトに変更 */
  .home_flow_timeline article {
    grid-template-columns: 5.4rem 1fr;
    gap: 1.8rem;
    padding: 1.8rem;
  }

  /* 縦線の位置をアイコン中央に合わせる */
  .home_flow_timeline::before {
    left: 2.7rem;
  }

  .home_flow_timeline b {
    width: 5.4rem;
    height: 5.4rem;
  }

  /* 著作権エリアを縦積みに */
  .home_footer_bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
