/* ============================================================
   style.css — 株式会社あべダンボール Webサイト スタイルシート
   ============================================================

   【このファイルの構成】
   1.  CSS変数（カラーテーマ）
   2.  リセット・基本設定
   3.  ナビゲーションバー
   4.  ヒーローセクション
   5.  マーキー（流れるテキスト帯）
   6.  セクション共通スタイル
   7.  製品一覧セクション
   8.  特徴・強みセクション
   9.  ご注文の流れセクション
   10. お客様の声セクション
   11. CTAセクション
   12. フッター
   13. スクロールアニメーション
   14. レスポンシブ（スマホ対応）

   ============================================================ */


/* ============================================================
   1. CSS変数（カラーテーマ）
   ============================================================
   【解説】
   :root に変数を定義すると、サイト全体で色を一元管理できます。
   例えば --amber の値を1か所変えるだけで、ボタン・見出し・
   ボーダーなど全ての黄色が一気に変わります。
   命名ルール: -- (ハイフン2つ) + 名前
   ============================================================ */

:root {
  --amber:        #F5A623;   /* メインカラー（ダンボール色の明るいオレンジ） */
  --amber-light:  #FDD17A;   /* 薄いアンバー（ボーダーや背景のアクセントに） */
  --amber-dark:   #C47F10;   /* 濃いアンバー（テキストカラーに使用） */
  --orange:       #F07020;   /* アクセントカラー（ボタン・グラデーション） */
  --orange-light: #FF9A50;   /* 薄いオレンジ（ホバー時など） */
  --white:        #FFFFFF;   /* 白 */
  --bg:           #FFFDF7;   /* ページ背景（真っ白ではなく温かみのあるオフホワイト） */
  --ink:          #2B1F0A;   /* 文字色（濃いブラウン系・読みやすさ重視） */
  --mid:          #6B5B3E;   /* サブテキスト色（説明文など目立たせたくない箇所） */
  --line:         rgba(245, 166, 35, 0.25); /* 区切り線用（薄い半透明アンバー） */
}


/* ============================================================
   2. リセット・基本設定
   ============================================================
   【解説】
   ブラウザには余白やフォントサイズなどの「デフォルトスタイル」が
   あります。ブラウザごとに微妙に差があるため、最初に全て0にリセット
   してから独自スタイルを上書きするのが定石です。
   ============================================================ */

/* 全要素のボックスモデルを統一（padding・borderをwidthに含める） */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ページ内アンカーリンクをクリックした時、スムーズにスクロール */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}


/* ============================================================
   3. ナビゲーションバー
   ============================================================
   【解説】
   position: fixed でスクロールしても画面上部に固定します。
   backdrop-filter: blur() でスクロール時に背景がぼけて、
   ガラスのような半透明効果（グラスモーフィズム）を実現します。
   .scrolled クラスはJavaScriptで動的に付け外しします。
   ============================================================ */

nav {
  position: fixed;       /* 画面上部に固定 */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;          /* 他の要素より手前に表示（数値が大きいほど前面） */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(255, 253, 247, 0.92); /* 半透明の背景 */
  backdrop-filter: blur(14px);           /* 背景をぼかすガラス効果 */
  border-bottom: 2px solid var(--amber-light);
  transition: padding 0.3s, box-shadow 0.3s; /* スクロール時の変化をなめらかに */
}

/* スクロールしたときにJSが付けるクラス（コンパクトに縮む） */
nav.scrolled {
  padding: 0.65rem 4rem;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.14);
}

/* ロゴ部分 */
.nav-logo {
  font-family: 'Bebas Neue', sans-serif; /* 英字デザインフォント */
  font-size: 1.85rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;  /* リンクの下線を消す */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ロゴ内のオレンジバッジ（「ABE」の部分） */
.logo-badge {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  padding: 0.1em 0.45em;
  border-radius: 6px;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(240, 112, 32, 0.3);
}

/* ナビメニュー（横並びのリスト） */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none; /* リストの黒丸を消す */
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-decoration: none;
  text-transform: uppercase; /* 英字を大文字に */
  position: relative;        /* ::after擬似要素の基準点にするために必要 */
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
}

/* ホバー時に下から伸びるアンダーライン（擬似要素で実装） */
.nav-links a::after {
  content: '';          /* 空要素として生成 */
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;             /* 初期幅は0（非表示） */
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: width 0.3s; /* 幅を0→100%にアニメーション */
}

.nav-links a:hover::after {
  width: 100%; /* ホバー時に全幅まで伸びる */
}

/* CTAボタン（お見積もりリンク）はグラデーションのピルボタン */
.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--amber)) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;       /* 完全な丸みでピル型に */
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(240, 112, 32, 0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

/* CTAボタンには下線エフェクト不要なので消す */
.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px); /* 少し上に浮き上がる感じ */
  box-shadow: 0 7px 20px rgba(240, 112, 32, 0.45) !important;
}


/* ============================================================
   4. ヒーローセクション
   ============================================================
   【解説】
   ページ最上部の大きなビジュアルエリアです。
   CSS Grid で左右2カラムに分割しています。
   min-height: 100vh でビューポート（画面）の高さいっぱいに表示。
   装飾用の光の玉（.hero-glow-1 / .hero-glow-2）は
   radial-gradient（放射状グラデーション）で実現しています。
   ============================================================ */

#hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  padding-top: 78px;
  background: linear-gradient(140deg, #FFFDF7 55%, #FFF3D4 100%);
  position: relative;
  overflow: hidden;
}

/* 右上の光のぼかし（装飾） */
.hero-glow-1 {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 209, 122, 0.4), transparent 70%);
  pointer-events: none; /* クリック判定を無効化（装飾なのでUIを邪魔しない） */
}

/* 左下の光のぼかし（装飾） */
.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 112, 32, 0.1), transparent 70%);
  pointer-events: none;
}

/* 左カラム（テキストエリア） */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 5rem 2.5rem;
  position: relative;
  z-index: 2;
  overflow: hidden; /* 装飾のグローや泡がはみ出ないようにクリップ */
}

/* 「株式会社あべダンボール」の小さなラベル */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 166, 35, 0.13);
  border: 1.5px solid rgba(245, 166, 35, 0.4);
  color: var(--amber-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.8rem;
  width: fit-content; /* テキスト幅に合わせて自動調整 */
}

/* メインキャッチコピー */
.hero-title {
  font-family: 'Noto Serif JP', serif;
  /* clamp(最小値, 推奨値, 最大値) → 画面幅に応じて自動的にサイズが変わる */
  font-size: clamp(1.6rem, 2.8vw, 3.0rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  white-space: nowrap; /* 強制的に1行表示 */
}
.hero-subtitle {
  font-family: 'Noto Serif JP', serif;
  /* clamp(最小値, 推奨値, 最大値) → 画面幅に応じて自動的にサイズが変わる */
  font-size: clamp(1.0rem, 4.5vw, 2.0rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.8rem;
}
.hero-subtitle em{
  font-style: normal;
  display: inline;
  /* テキストにグラデーションを適用するCSSトリック */
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* キャッチコピーの強調部分（グラデーションテキスト） */
.hero-title em {
  font-style: normal;
  display: block;
  /* テキストにグラデーションを適用するCSSトリック */
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ============================================================
   画像スライダー（Swiper）設定
   ============================================================
   【解説】
   .hero-right が display:flex で中央揃えになっているため、
   width: 100% を指定しても flex の挙動で縮まることがあります。
   align-self: stretch で親の高さいっぱいに引き伸ばし、
   width: 100% でカラム幅いっぱいに広げます。
   height も 100% にして親（.hero-right）の高さに合わせます。
   ============================================================ */

/* ============================================================
   右カラム（Swiperスライダー）
   ============================================================
   【解説】
   position: relative にして、Swiper を position: absolute で
   内部に配置できるようにします。
   上端・下端の座標は JavaScript で hero-eyebrow と
   hero-buttons の実際のY座標を取得してセットします。
   ============================================================ */
.hero-right {
  position: relative; /* Swiper を absolute 配置する基準点 */
  overflow: hidden;
  padding: 0;
}

.swiper {
  /* top / height は JavaScript で動的にセット */
  position: absolute;
  left: 0;
  right: 0;
  /* top・height は JS で設定するためここでは初期値のみ */
  top: 0;
  height: 100%;
}

/* 各スライドも親と同じ高さに */
.swiper-slide {
  height: 100%;
}

.swiper-slide > div {
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* アスペクト比を保ちながらエリアを埋める */
  object-position: center;  /* 画像の中心を基準にトリミング */
  display: block;
}
/* 説明文 */
.hero-desc {
  font-size: 1rem;
  line-height: 2; /* 行間を広めに（読みやすさのため） */
  color: var(--mid);
  max-width: 430px;
  margin-bottom: 2.5rem;
}

/* ボタン群（横並び） */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* 幅が足りなければ折り返す */
}

/* メインボタン（グラデーション・ピル型） */
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  padding: 1rem 2.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(240, 112, 32, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px); /* 浮き上がるホバー効果 */
  box-shadow: 0 10px 28px rgba(240, 112, 32, 0.5);
}

/* サブボタン（枠線のみ） */
.btn-outline {
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  padding: 1rem 2.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.25s, transform 0.25s;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(245, 166, 35, 0.1);
  transform: translateY(-3px);
}

/* 実績の数字エリア */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(245, 166, 35, 0.22);
}

/* 大きな数字（グラデーションテキスト） */
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--amber-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 数字の下のラベル */
.stat-label {
  font-size: 0.75rem;
  color: var(--mid);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* 右カラム（画像スライダーエリア） */
/* 【解説】
   align-self: stretch → #hero グリッドの行の高さいっぱいに伸ばす
   overflow: hidden    → スライダーが枠からはみ出ないように隠す
   padding: 0          → 余白をなくしてエッジまで画像を表示 */
.hero-right {
  display: flex;
  align-items: stretch;   /* 子要素（swiper）を縦いっぱいに引き伸ばす */
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 0;
}

/* ダンボール箱イラストのアニメーション（ふわふわ浮く） */
.box-scene {
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 28px 38px rgba(200, 140, 30, 0.28));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

/* 右下の丸バッジ（ゆっくり回転） */
.hero-badge {
  position: absolute;
  bottom: 3.5rem;
  right: 3rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.05em;
  animation: spin-slow 20s linear infinite; /* 20秒かけて1回転 */
  box-shadow: 0 8px 24px rgba(240, 112, 32, 0.4);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* 背景に漂う丸い泡（装飾） */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.22);
  animation: bubble-float 6s ease-in-out infinite;
}

/* 各泡のサイズと位置（クラスで個別指定） */
.b1 { width: 62px; height: 62px; top: 18%; left: 8%;  animation-delay: 0s; }
.b2 { width: 38px; height: 38px; top: 72%; left: 4%;  animation-delay: 2s; }
.b3 { width: 26px; height: 26px; top: 32%; right: 6%; animation-delay: 1s; }

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}


/* ============================================================
   5. マーキー（流れるテキスト帯）
   ============================================================
   【解説】
   テキストを左に向かって無限ループで流す帯です。
   テキスト要素を2セット並べて、translateXで-50%ずらすことで
   シームレスなループを実現しています。
   overflow: hidden でコンテナ外にはみ出た部分を非表示にします。
   ============================================================ */

.marquee-wrap {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  padding: 1rem 0;
  overflow: hidden;    /* はみ出た部分を隠す */
  white-space: nowrap; /* 折り返しを禁止 */
}

.marquee-track {
  display: inline-flex; /* 横一列に並べる */
  animation: marquee 22s linear infinite; /* 22秒かけて一定速度で流れる */
}

.marquee-track span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 2rem;
}

/* 区切りの「✦」記号 */
.marquee-track .dot {
  color: rgba(255, 255, 255, 0.45);
  padding: 0;
}

/* 左へ50%ずらすことでループ（2セット分のテキストを用意しているため） */
@keyframes marquee {
  to { transform: translateX(-50%); }
}


/* ============================================================
   6. セクション共通スタイル
   ============================================================
   【解説】
   各セクションで共通して使うパーツのスタイルです。
   DRY原則（Don't Repeat Yourself = 繰り返しを避ける）に基づき、
   共通部分はここに集約します。
   ============================================================ */

/* 全セクション共通の余白（上下 5.5rem = 約88px） */
section {
  padding: 5.5rem 4rem;
}

/* 小見出しラベル（「事業案内」などのUpper文字列） */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* 小見出しの左にある短い横線（擬似要素） */
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 2px;
}

/* 大見出し */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}




/* ============================================================
   7. 所在地・Google Mapセクション
   ============================================================
   【解説】
   左側に会社情報（住所・電話・営業時間など）、
   右側にGoogle Mapの埋め込みiframeを並べた2カラムレイアウトです。
   iframeは高さを固定して地図の表示エリアを確保しています。
   ============================================================ */

#location {
  background: var(--white);
}

/* タイトルと地図の間の余白 */
.location-header {
  margin-bottom: 3rem;
}

/* 左：会社情報 / 右：地図 の2カラム */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr; /* 地図を広く取る */
  gap: 3rem;
  align-items: start;
}

/* 左カラム：会社情報カード */
.location-info {
  background: var(--bg);
  border-radius: 18px;
  padding: 2.2rem;
  border: 1px solid var(--line);
}

/* 各情報の行 */
.location-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.location-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.location-row:first-child {
  padding-top: 0;
}

/* アイコン */
.location-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.location-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.location-value {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

/* 右カラム：Google Map iframe */
.location-map {
  border-radius: 18px;
  overflow: hidden;         /* iframeの角を丸く切る */
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.12);
  border: 2px solid var(--amber-light);
  height: 420px;            /* 地図の表示高さ */
}

/* iframe 自体のスタイル */
.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;             /* iframeのデフォルト枠線を消す */
  display: block;
}

/* ============================================================
   8. 事業案内セクション（#business）
   ============================================================ */

#business {
  background: linear-gradient(135deg, #FFF8E8 0%, #FFF3D6 100%);
}

/* 2列グリッド */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

/* 各カード */
.feature-item {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  gap: 1.3rem;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s;
}

/* JSがこのクラスを付けるとフェードインして現れる */
.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-item:hover {
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.2);
  transform: translateY(-3px);
}

/* アイコンボックス */
.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0; /* flexbox内でサイズが縮まないように固定 */
  background: linear-gradient(135deg, var(--orange), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(240, 112, 32, 0.3);
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--mid);
}




/* ============================================================
   9. 会社情報セクション（#company）
   ============================================================
   【解説】
   会社概要を表形式で表示します。
   .company-row で各行を定義し、左がラベル・右が値の2列レイアウトです。
   ============================================================ */

#company {
  background: var(--white);
}



.company-grid {
  margin-top: 3rem;
}




.company-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  max-width: 980px;
}

/* 各行 */
.company-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
}

.company-row:last-child {
  border-bottom: none;
}

/* ラベル（左セル） */
.company-label {
  background: rgba(245, 166, 35, 0.08);
  padding: 1.1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}

/* 値（右セル） */
.company-value {
  padding: 1.1rem 1.8rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* ============================================================
   9. ご注文の流れセクション
   ============================================================
   【解説】
   4ステップを横並びで表示します。
   ステップ間を繋ぐ横線は .process-steps::before の
   擬似要素で実現しています（実際のHTML要素は不要）。
   z-index で線とサークルの重なり順を制御しています。
   ============================================================ */

#process {
  background: var(--white);
}

/* 4列グリッド */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  position: relative; /* ::before の基準点 */
}

/* ステップ間を繋ぐ横線（擬似要素で生成） */
.process-steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;     /* サークルの中心に合わせる */
  left: 12%;
  width: 76%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--amber-light),
    var(--orange),
    var(--amber-light)
  );
  z-index: 0;  /* サークルより後ろ */
  border-radius: 2px;
}

/* 各ステップ */
.step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1; /* 横線より手前に */
}

/* 番号のサークル */
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--orange);
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

/* ホバー時にサークルが塗りつぶしに変わる */
.step:hover .step-circle {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(240, 112, 32, 0.4);
  transform: scale(1.1);
}

.step-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.8;
}



   【解説】
   3列グリッドのカードレイアウトです。
   カード左上の大きな「"」は ::before 擬似要素で実装しています。
   グラデーションテキストのトリックを再利用しています。
   ============================================================ */



/* 採用情報セクション */
#recruit {
  background: var(--white);
  padding-bottom: 4rem; /* ボタン込みで余白を調整 */
}

/* 「正社員」「パート」の小見出し */
.recruit-type-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  margin-top: 2rem;
  margin-bottom: 0.5rem; /* タイトルとテーブルの間の余白 */
}

/* 採用情報内のテーブルはタイトルとの距離を調整 */
#recruit .company-grid {
  margin-top: 0.5rem;
}

/* 応募ボタンエリア：recruitセクション内の下部に配置 */
.recruit-cta {
  text-align: left;
  padding: 2rem 0 0;
}



.recruit-cta-text {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* 求人サイトボタン（Indeed）
   ▼ オレンジグラデーションの楕円ボタン */
.recruit-mynavi-btn {
  display: inline-block;
  color: var(--white);
  padding: 1.1rem 2.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 6px 20px rgba(240, 112, 32, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.recruit-mynavi-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(240, 112, 32, 0.5);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(245, 166, 35, 0.2);
}

/* 左上の大きな引用符「"」 */
.testimonial-card::before {
  content: '\201C'; /* Unicode: 左の二重引用符 " */
  font-family: 'Noto Serif JP', serif;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 0.2rem;
  left: 1.5rem;
  line-height: 1;
  opacity: 0.4;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--mid);
  margin-bottom: 1.5rem;
  padding-top: 1.8rem; /* 引用符と重ならないようにパディング */
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* 名前の頭文字が入る丸アイコン */
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(240, 112, 32, 0.3);
}

.author-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.author-company {
  font-size: 0.75rem;
  color: var(--mid);
}

/* 星評価 */
.stars {
  color: var(--amber);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}


/* ============================================================
   11. CTAセクション（お問い合わせ誘導）
   ============================================================
   【解説】
   CTA = Call To Action（行動喚起）。
   背景全体をオレンジのグラデーションにして目立たせます。
   装飾の円は ::before と ::after の2つの擬似要素を使っています
   （各要素に持てる擬似要素は::before と ::after の2つまで）。
   ============================================================ */

#cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
  color: var(--white);
  text-align: center;
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}

/* 右上の装飾円 */
#cta::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

/* 左下の装飾円 */
#cta::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

/* CTAセクション内の小見出し色を上書き */
#cta .section-label {
  color: rgba(255, 255, 255, 0.7);
  justify-content: center;
}

#cta .section-label::before {
  background: rgba(255, 255, 255, 0.5);
}

#cta .section-title {
  color: var(--white);
  margin-bottom: 1rem;
}

#cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.9;
}

/* 白いボタン */
.btn-white {
  background: var(--white);
  color: var(--orange);
  padding: 1.1rem 2.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  border-radius: 50px;
  display: inline-block;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1; /* 装飾円より手前に */
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}


/* ============================================================
   12. フッター
   ============================================================
   【解説】
   背景を濃いブラウン（--ink）にして落ち着いた雰囲気に。
   4列グリッドで会社情報とリンク集を横並びに配置しています。
   ============================================================ */




footer {
  background: var(--ink);
  color: var(--white);
  padding: 5rem 4rem 2.5rem;
}

/* 上段：会社情報エリア */
.footer-top {
  margin-bottom: 2rem;
}

/* 区切り線：上下の余白を小さくして電話番号とリンクを近づける */
.footer-divider {
  height: 1px;
  background: rgba(245, 166, 35, 0.2);
  margin-top: 0.8rem;    /* 上の余白（電話番号との間） */
  margin-bottom: 0.8rem; /* 下の余白（事業案内との間） */
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4等分で横一列 */
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo .logo-badge {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  padding: 0.1em 0.45em;
  border-radius: 5px;
  font-size: 1.6rem;
}





.footer-tagline {
  font-size: 0.78rem; /* 5列対応で少し縮小 */
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
}

/* リンク列のタイトル */
.footer-col-title {
  font-size: 0.72rem; /* 5列対応で少し縮小 */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.78rem; /* 5列対応で少し縮小 */
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber-light);
}

/* フッター下部（コピーライト行） */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 166, 35, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}


/* ============================================================
   13. スクロールアニメーション
   ============================================================
   【解説】
   .fade-up クラスを付けた要素はデフォルトで非表示（透明・下にずれた状態）。
   JavaScriptの IntersectionObserver が画面内に入ったことを検知して
   .visible クラスを付けると、CSSトランジションでフワッと現れます。
   transition-delay を使って要素ごとに出現タイミングをずらすことで
   カスケード（段階的）な演出ができます。
   ============================================================ */

/* 初期状態：見えない + 少し下にずれた状態 */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* JSが付けるクラス：フェードインしながら上に移動 */
.fade-up.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   14. レスポンシブデザイン（3段階ブレイクポイント）
   ============================================================
   PC     : 1025px〜  → デフォルトスタイルがそのまま適用
   タブレット: 601px〜1024px → 中間サイズに最適化
   スマホ   : 〜600px → 小型画面に最適化
   ============================================================ */


/* ==========================================================
   ■ タブレット（601px〜1024px）
   ========================================================== */
@media (max-width: 1024px) {

  /* ナビ */
  nav {
    padding: 0.9rem 2rem;
  }

  nav.scrolled {
    padding: 0.55rem 2rem;
  }

  .nav-logo {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem !important;
  }

  /* ヒーロー：2カラム維持だが比率調整 */
  #hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 68px;
  }

  .hero-left {
    padding: 3rem 2rem 3rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.2rem;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.2rem;
  }

  .hero-desc {
    font-size: 0.92rem;
    max-width: 100%;
    line-height: 1.9;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.85rem 1.8rem;
    font-size: 0.85rem;
  }

  .hero-glow-1 {
    width: 350px;
    height: 350px;
  }

  .hero-glow-2 {
    width: 280px;
    height: 280px;
  }

  .hero-badge {
    width: 80px;
    height: 80px;
    font-size: 0.6rem;
  }

  /* セクション共通 */
  section {
    padding: 4rem 2.5rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  }

  .section-label {
    font-size: 0.72rem;
  }

  /* 事業案内：2列維持 */
  .features-grid {
    gap: 1.2rem;
    margin-top: 2.5rem;
  }

  .feature-item {
    padding: 1.5rem;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-text {
    font-size: 0.85rem;
    line-height: 1.8;
  }

  /* 会社情報テーブル */
  .company-row {
    grid-template-columns: 140px 1fr;
  }

  .company-label {
    font-size: 0.82rem;
  }

  .company-value {
    font-size: 0.88rem;
  }

  /* 所在地：2カラム維持だがギャップ縮小 */
  .location-grid {
    gap: 2rem;
    grid-template-columns: 1fr 1.5fr;
  }

  .location-map {
    height: 360px;
  }

  .location-value {
    font-size: 0.88rem;
  }

  /* ご注文の流れ：4列維持 */
  .process-steps {
    gap: 0.8rem;
  }

  .step-title {
    font-size: 0.92rem;
  }

  .step-text {
    font-size: 0.82rem;
  }

  /* お客様の声：2列に */
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-text {
    font-size: 0.88rem;
  }

  /* CTA */
  #cta {
    padding: 5rem 2.5rem;
  }

  #cta .section-title {
    font-size: 1.5rem;
  }

  #cta p {
    font-size: 0.92rem;
  }

  /* フッター */
  footer {
    padding: 4rem 2.5rem 2rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-tagline {
    font-size: 0.78rem;
  }

  .footer-address {
    font-size: 0.72rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .footer-col-title {
    font-size: 0.7rem;
  }

  .footer-links a {
    font-size: 0.75rem;
  }

  .footer-bottom {
    font-size: 0.72rem;
  }
}


/* ==========================================================
   ■ スマホ（〜600px）
   基準画面幅: 390px（iPhone 14/15 = 最もシェアが高い）
   ========================================================== */
@media (max-width: 600px) {

  /* ベースフォント（16px → 15px: 読みやすさを確保しつつ収まるサイズ） */
  html {
    font-size: 15px;
  }

  /* ナビ */
  nav {
    padding: 0.6rem 1rem;
  }

  nav.scrolled {
    padding: 0.45rem 1rem;
  }

  .nav-logo {
    font-size: 1.05rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
  }

  /* ヒーロー：1カラム縦積み */
  #hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-left {
    padding: 1.5rem 1.2rem 1rem;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.8rem;
  }

  .hero-title {
    font-size: 1.55rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
  }

  .hero-desc {
    font-size: 0.8rem;
    line-height: 1.75;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .hero-stats {
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.58rem;
  }

  /* ============================
     スライダー：画面幅に比例した高さ
     56vw = 390px幅で約218px / 375pxで約210px / 430pxで約240px
     どの機種でも画像が見切れない
     ============================ */
  .hero-right {
    position: relative;
    display: block;
    width: 100%;
    height: 56vw;
    min-height: 200px;
    max-height: 280px;
    overflow: hidden;
  }

  .swiper {
    position: relative;
    top: auto !important;
    left: auto;
    right: auto;
    width: 100%;
    height: 100% !important;
    min-height: unset;
  }

  .swiper-slide {
    height: 100%;
  }

  .swiper-slide > div {
    width: 100%;
    height: 100%;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* 装飾要素を縮小 */
  .hero-glow-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
  }

  .hero-glow-2 {
    width: 130px;
    height: 130px;
    bottom: -30px;
    left: -30px;
  }

  .bubble.b1 { width: 28px; height: 28px; }
  .bubble.b2 { width: 16px; height: 16px; }
  .bubble.b3 { width: 12px; height: 12px; }

  .hero-badge {
    width: 50px;
    height: 50px;
    font-size: 0.42rem;
    bottom: 0.8rem;
    right: 0.8rem;
  }

  /* マーキー */
  .marquee-wrap {
    padding: 0.5rem 0;
  }

  .marquee-track span {
    font-size: 0.78rem;
    padding: 0 0.8rem;
  }

  /* セクション共通 */
  section {
    padding: 2.2rem 1rem;
  }

  .section-label {
    font-size: 0.6rem;
    margin-bottom: 0.4rem;
  }

  .section-label::before {
    width: 16px;
    height: 2px;
  }

  .section-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }

  /* 事業案内：1列 */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.2rem;
  }

  .feature-item {
    padding: 0.9rem;
    gap: 0.7rem;
    border-radius: 10px;
  }

  .feature-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .feature-title {
    font-size: 0.82rem;
  }

  .feature-text {
    font-size: 0.75rem;
    line-height: 1.65;
  }

  /* 会社情報テーブル */
  .company-grid {
    margin-top: 1rem;
  }

  .company-table {
    border-radius: 10px;
    max-width: 100%;
    width: 100%;
  }

  .company-row {
    grid-template-columns: 80px 1fr;
  }

  .company-label {
    padding: 0.55rem 0.45rem;
    font-size: 0.68rem;
  }

  .company-value {
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
    line-height: 1.65;
  }

  /* 所在地：1列 */
  .location-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .location-info {
    padding: 1rem;
    border-radius: 10px;
  }

  .location-row {
    padding: 0.55rem 0;
  }

  .location-icon {
    font-size: 0.85rem;
  }

  .location-label {
    font-size: 0.58rem;
  }

  .location-value {
    font-size: 0.75rem;
    line-height: 1.65;
  }

  .location-map {
    height: 50vw;
    min-height: 180px;
    max-height: 240px;
    border-radius: 10px;
  }

  /* ご注文の流れ：2列 */
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .process-steps::before {
    display: none;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .step-title {
    font-size: 0.78rem;
  }

  .step-text {
    font-size: 0.7rem;
    line-height: 1.65;
  }

  /* 採用情報 */
  .recruit-type-title {
    font-size: 0.82rem;
    padding: 0.2rem 0.8rem;
    margin-top: 1.5rem;
  }

  .recruit-points {
    grid-template-columns: 1fr;
  }

  .recruit-grid {
    grid-template-columns: 1fr;
  }

  .recruit-cta-text {
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
    line-height: 1.65;
  }

  .recruit-mynavi-btn {
    padding: 1rem 2.2rem;
    font-size: 0.85rem;
  }

  /* お客様の声：1列 */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .testimonial-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .testimonial-text {
    font-size: 0.75rem;
    line-height: 1.65;
  }

  .author-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .author-name {
    font-size: 0.75rem;
  }

  .author-company {
    font-size: 0.6rem;
  }

  /* CTA */
  #cta {
    padding: 2.5rem 1rem;
  }

  #cta::before {
    width: 160px;
    height: 160px;
    top: -60px;
    right: -60px;
  }

  #cta::after {
    width: 130px;
    height: 130px;
    bottom: -45px;
    left: -45px;
  }

  #cta .section-title {
    font-size: 1.05rem;
  }

  #cta p {
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }

  .btn-white {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
  }

  /* フッター */
  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-top {
    margin-bottom: 0.7rem;
  }

  .footer-logo {
    font-size: 1rem;
    letter-spacing: 0;
    white-space: nowrap;
    margin-bottom: 0.5rem;
  }

  .footer-tagline {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .footer-address {
    font-size: 0.6rem;
  }

  .footer-divider {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .footer-col-title {
    font-size: 0.6rem;
    margin-bottom: 0.4rem;
  }

  .footer-links li {
    margin-bottom: 0.3rem;
  }

  .footer-links a {
    font-size: 0.65rem;
  }

  .footer-bottom {
    font-size: 0.6rem;
    padding-top: 0.7rem;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
}
