/* ===================================================
   リセット・基本設定
=================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* スクロールバーのスタイル調整 */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #f4845f #fff5f0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #3d2b1f;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* リンクのデフォルトスタイル */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* リスト装飾を削除 */
ul, ol {
  list-style: none;
}

/* 画像の最大幅制限 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   CSS カスタムプロパティ（デザイントークン）
=================================================== */
:root {
  /* カラー */
  --color-bg:        #ffffff;
  --color-bg-alt:    #fff8f5;
  --color-bg-card:   #ffffff;
  --color-accent:    #f4845f;
  --color-accent-2:  #ffbd4c;
  --color-text:      #3d2b1f;
  --color-text-muted:#9a7b6b;
  --color-border:    rgba(244, 132, 95, 0.2);

  /* グラデーション */
  --gradient-main:   linear-gradient(135deg, #f4845f 0%, #ffbd4c 100%);
  --gradient-dark:   linear-gradient(180deg, #fff8f5 0%, #ffeee6 100%);

  /* スペーシング */
  --section-py: 100px;

  /* 角丸 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* トランジション */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================
   コンテナ
=================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===================================================
   フェードインアニメーション（IntersectionObserver用）
=================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ===================================================
   ボタン
=================================================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

/* プライマリボタン：グラデーション */
.btn--primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
  opacity: 1;
}

/* アウトラインボタン */
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: rgba(244, 132, 95, 0.08);
  border-color: var(--color-accent);
  opacity: 1;
}

/* 大きいサイズ */
.btn--large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* 幅100% */
.btn--full {
  width: 100%;
  text-align: center;
}

/* ===================================================
   セクション共通
=================================================== */
.section {
  padding: var(--section-py) 0;
}

/* ダーク背景セクション */
.section--dark {
  background-color: var(--color-bg-alt);
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #3d2b1f;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.section-desc {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   ヘッダー
=================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

/* ===== 上段：電話番号・営業時間バー ===== */
.header__topbar {
  background: var(--gradient-main);
  padding: 6px 0;
  transition: opacity var(--transition);
}

.header__topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.header__topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
}

.header__topbar-icon {
  font-size: 0.9rem;
}

.header__topbar-tel {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header__topbar-tel:hover {
  opacity: 0.8;
}

/* スクロール後のヘッダー背景（JS で .scrolled クラスを付与） */
.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* スクロール後は上段バーを縮める */
.header.scrolled .header__topbar {
  padding: 4px 0;
  font-size: 0.78rem;
}

/* 中段：ロゴ＋CTAボタン */
.header__middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px 10px;
}

/* 下段：ナビリンク */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 12px;
  border-top: 1px solid rgba(244, 132, 95, 0.15);
}

/* ロゴ */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #3d2b1f;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 0.85;
}

/* 虹SVGアイコン */
.header__logo-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-rainbow {
  width: 52px;
  height: 31px;
  /* ふわっと揺れるアニメーション */
  animation: rainbowFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(255, 180, 100, 0.3));
}

@keyframes rainbowFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-3px); }
}

/* ロゴテキスト：虹グラデーション */
.header__logo-text {
  background: linear-gradient(90deg, #ff6b6b 0%, #ffb347 30%, #ffe066 50%, #7ed957 70%, #4fc3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* PC ナビゲーション */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap; /* 折り返し禁止 */
}

.header__nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c3d2e;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap; /* テキスト折り返し禁止 */
}

/* ホバー下線アニメーション */
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-main);
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.header__nav-link:hover::after {
  width: 100%;
}

/* 右上CTAボタングループ */
.header__cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 52px;
  min-width: 148px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  color: #fff;
}

.header__cta-icon {
  font-size: 1.1rem;
}

/* お問い合わせ：薄い青 */
.header__cta-btn--contact {
  background: #7dd4f0;
  color: #fff !important;
  border: none;
  box-shadow: 0 3px 10px rgba(168, 207, 224, 0.4);
}

.header__cta-btn--contact:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* 採用情報：オレンジ塗り（唯一の主役） */
.header__cta-btn--recruit {
  background: var(--color-accent);
  box-shadow: 0 4px 18px rgba(244, 132, 95, 0.45);
}

.header__cta-btn--recruit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 132, 95, 0.6);
}

.header__nav-link--cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 132, 95, 0.5);
}

/* ===================================================
   ハンバーガーボタン（スマホ用）
=================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger__bar {
  display: block;
  width: 28px;
  height: 2px;
  background: #3d2b1f;
  border-radius: 2px;
  transition: var(--transition);
}

/* ハンバーガー開閉アニメーション */
.hamburger.open .hamburger__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================================================
   ドロワーメニュー（スマホ用）
=================================================== */
.drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  padding: 100px 40px 40px;
  transition: right var(--transition);
  z-index: 999;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

.drawer.open {
  right: 0;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer__link {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d2b1f;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.drawer__link--cta {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  text-align: center;
  margin-top: 8px;
}

/* ドロワー内電話番号エリア */
.drawer__tel-wrap {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.drawer__tel {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 4px;
}

.drawer__hours {
  font-size: 0.78rem;
  color: #a07060;
}

/* ドロワーオーバーレイ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.drawer-overlay.open {
  display: block;
}

/* ===================================================
   ヒーローセクション
=================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 116px; /* 2段ヘッダー分のオフセット（上段36px＋下段80px） */
}

/* グラデーション背景（明るい暖色系） */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 70% 50%, rgba(255, 189, 76, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(244, 132, 95, 0.1) 0%, transparent 60%),
    linear-gradient(160deg, #fff5f0 0%, #fff9f0 100%);
  z-index: 0;
}

/* 背景装飾 */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(3px 3px at 15% 25%, rgba(244, 132, 95, 0.25) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 20%, rgba(255, 189, 76, 0.3) 0%, transparent 100%),
    radial-gradient(3px 3px at 65% 75%, rgba(244, 132, 95, 0.2) 0%, transparent 100%),
    radial-gradient(2px 2px at 35% 80%, rgba(255, 189, 76, 0.25) 0%, transparent 100%);
}

/* 装飾用の大きな丸 */
.hero__deco {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero__deco--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 189, 76, 0.12) 0%, transparent 70%);
  right: -100px;
  top: -100px;
}

.hero__deco--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 132, 95, 0.1) 0%, transparent 70%);
  right: 10%;
  bottom: 5%;
}

.hero__deco--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 189, 76, 0.15) 0%, transparent 70%);
  left: 5%;
  bottom: 15%;
}

/* 左右分割レイアウト */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  width: 100%;
}

/* 左：テキストエリア */
.hero__content {
  position: relative;
  z-index: 1;
}

/* 空き情報バッジ（ファーストビュー） */
.hero__vacancy {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 16px;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(244, 132, 95, 0.12);
  transition: var(--transition);
}
.hero__vacancy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 132, 95, 0.22);
}
.hero__vacancy-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c3b5ab; /* 中立（読み込み中・取得失敗時） */
  flex-shrink: 0;
}
/* 空きあり：緑＋点滅 */
.hero__vacancy[data-state="open"] .hero__vacancy-dot {
  background: #34c759;
  animation: vacancyPulse 2s infinite;
}
/* 要相談：黄色（点滅なし） */
.hero__vacancy[data-state="consult"] .hero__vacancy-dot {
  background: #f59e0b;
}
/* 空きなし：オレンジ（点滅なし） */
.hero__vacancy[data-state="full"] .hero__vacancy-dot {
  background: #ff9f0a;
}
/* ステータス文言が空のとき（中立時）は詰めて表示 */
.hero__vacancy-label:empty {
  display: none;
}
@keyframes vacancyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}
.hero__vacancy-cta {
  color: var(--color-accent);
  font-weight: 700;
}

.hero__sub {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: #3d2b1f;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 2;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 右：画像エリア */
.hero__visual {
  position: relative;
}

/* メイン画像を丸く切り抜く */
.hero__img-wrap {
  position: relative;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 60px rgba(244, 132, 95, 0.2);
  animation: morphBlob 8s ease-in-out infinite;
}

/* 画像の形が緩やかに変形するアニメーション */
@keyframes morphBlob {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  25%       { border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%; }
  50%       { border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%; }
  75%       { border-radius: 60% 40% 45% 55% / 45% 60% 40% 55%; }
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 浮かぶバッジカード */
.hero__badge {
  position: absolute;
  background: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite;
}

.hero__badge--top {
  top: 5%;
  left: -40px;
  animation-delay: 0s;
}

.hero__badge--bottom {
  bottom: 10%;
  right: -30px;
  animation-delay: 1.5s;
}

/* バッジの上下に揺れるアニメーション */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero__badge-icon {
  font-size: 1.3rem;
}

.hero__badge-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hero__badge-text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* スクロール誘導インジケーター */
/* ===================================================
   セクション装飾SVG（虹・星・雲）
=================================================== */
.section-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.section-deco--about {
  top: -20px;
  right: -40px;
  width: 280px;
}

.section-deco--greeting {
  bottom: -10px;
  left: -30px;
  width: 200px;
}

.section-deco--howto {
  top: -10px;
  right: -30px;
  width: 220px;
}

.section-deco--recruit {
  top: -10px;
  left: -20px;
  width: 200px;
}

/* section-decoを使うセクションはposition:relativeに */
.about, .greeting, .howto, .recruit {
  position: relative;
  overflow: hidden;
}

/* ヒーロー背景の大きな虹 */
.hero__rainbow-deco {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 520px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* お問い合わせ上の小さな虹 */
.section-rainbow-deco {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
  background: var(--color-bg-alt);
}

.section-rainbow-deco svg {
  width: 120px;
  height: auto;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(244,132,95,0));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===================================================
   マーキーバナー
=================================================== */
.marquee-wrap {
  overflow: hidden;
  background: var(--color-accent);
  padding: 14px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee-scroll 22s linear infinite;
}

.marquee-item {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  text-transform: uppercase;
  padding: 0 8px;
}

.marquee-sep {
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  padding: 0 4px;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== レスポンシブ：ヒーロー ===== */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 24px 200px; /* FABキャラクターに隠れないよう余白を確保 */
    text-align: center;
  }

  .hero__btns {
    justify-content: center;
  }

  .hero__visual {
    order: -1; /* 画像を上に */
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__badge--top {
    left: -10px;
  }

  .hero__badge--bottom {
    right: -10px;
  }
}

/* ===================================================
   会社紹介セクション
=================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 20px;
  line-height: 1.4;
}

.about__body {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* 会社概要テーブル */
.about__info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__info-row {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.about__info-row dt {
  color: var(--color-text-muted);
  min-width: 80px;
  font-weight: 700;
}

.about__info-row dd {
  color: var(--color-text);
}

/* 実績数字カード */
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.stat-card__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__num small {
  font-size: 1rem;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ===================================================
   サービス紹介セクション
=================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* ホバー時のグラデーションボーダー効果 */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.service-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.2);
}

.service-card:hover::before {
  opacity: 0.08;
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.service-card__body {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  transition: letter-spacing var(--transition);
}

.service-card__link:hover {
  letter-spacing: 0.05em;
  opacity: 1;
}

/* ===================================================
   スタッフ紹介セクション
=================================================== */
.staff__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.staff-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

.staff-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

.staff-card__avatar {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  /* 実際の写真に差し替える場合は img タグを使用 */
}

.staff-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 6px;
}

.staff-card__role {
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.staff-card__msg {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ===================================================
   採用情報セクション
=================================================== */
.recruit__inner {
  max-width: 860px;
  margin: 0 auto;
}

.recruit__heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 16px;
}

.recruit__body {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* 募集職種テーブル */
.recruit__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.recruit__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.recruit__table th {
  background: rgba(244, 132, 95, 0.08);
  color: var(--color-accent);
  font-weight: 700;
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
  width: 140px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.recruit__table td {
  padding: 14px 20px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.recruit__table tr:last-child td {
  border-bottom: none;
}

.recruit__table tr:hover td {
  background: rgba(102, 126, 234, 0.05);
}

/* 採用キャッチコピー */
.recruit__catch {
  text-align: center;
  margin-bottom: 56px;
  padding: 48px 32px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid var(--color-accent);
}

.recruit__catch-copy {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.recruit__catch-sub {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* ここで働く3つの理由 */
.recruit__reasons {
  margin-bottom: 56px;
}

.recruit__reasons-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

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

.recruit__reason-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
}

.recruit__reason-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.recruit__reason-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.recruit__reason-body {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* CTA */
.recruit__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.recruit__cta-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===================================================
   採用バナー（ヒーロー直下）
=================================================== */
.recruit-banner {
  background: linear-gradient(135deg, #fff5ee 0%, #fff8e8 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}
.recruit-banner__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.recruit-banner__text {
  flex: 1;
}
.recruit-banner__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.recruit-banner__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.recruit-banner__btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .recruit-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .recruit-banner__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .recruit__catch-copy {
    font-size: 1.15rem;
  }

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

/* ===================================================
   お問い合わせセクション
=================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 560px;
  max-width: 900px;
  margin: 0 auto;
}

/* 電話ボックス（コンパクト） */
.contact-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.contact-box__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-box__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d2b1f;
  margin-bottom: 8px;
}

.contact-box__tel {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.contact-box__hours {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* フォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

/* 必須バッジ */
.required {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--gradient-main);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
}

.form-input,
.form-textarea {
  background: #fff;
  border: 1px solid #e0c8be;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text);
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(136, 146, 164, 0.5);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

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

/* ===================================================
   フッター
=================================================== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #3d2b1f;
}

.footer__tagline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer__nav-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__nav-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: #fff;
  opacity: 1;
}

/* フッター最下部 */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.footer__totop {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  transition: opacity var(--transition);
}

.footer__totop:hover {
  opacity: 0.7;
}

/* ===================================================
   アクセスセクション
=================================================== */
.access {
  background: var(--color-bg);
}

.access__map {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.access__map iframe {
  display: block;
  width: 100%;
}

/* ===================================================
   レスポンシブ：タブレット（768px以下）
=================================================== */
@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  .container {
    padding: 0 24px;
  }

  /* 上段バーはスマホで営業時間を非表示（電話番号だけ残す） */
  .header__topbar-hours {
    display: none;
  }

  .header__topbar-inner {
    padding: 0 20px;
    justify-content: center;
  }

  /* ヘッダーナビを非表示にしてハンバーガー表示 */
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .drawer {
    display: block;
  }

  .header__inner {
    padding: 12px 20px;
  }

  /* スマホではCTAボタングループを非表示（ドロワーに同リンクあり） */
  .header__cta-group {
    display: none;
  }

  .header__middle {
    padding: 12px 20px 10px;
  }

  /* ヒーロー */
  .hero__content {
    padding: 0 24px;
  }

  .hero__desc .sp-none {
    display: none;
  }

  /* 会社紹介：縦並び */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* サービス：縦1列 */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* スタッフ：2列 */
  .staff__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* お問い合わせ：縦並び */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  /* フッター */
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__nav-list {
    gap: 16px;
  }
}

/* ===================================================
   レスポンシブ：スマートフォン（480px以下）
=================================================== */
@media (max-width: 480px) {
  :root {
    --section-py: 56px;
  }

  .container {
    padding: 0 16px;
  }

  /* ヒーロー */
  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* スタッフ：1列 */
  .staff__grid {
    grid-template-columns: 1fr;
  }

  /* 採用テーブル文字サイズ調整 */
  .recruit__table th,
  .recruit__table td {
    padding: 12px 12px;
    font-size: 0.8rem;
  }

  /* フッター最下部：縦並び */
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* ===================================================
   フッター：運営法人名
=================================================== */
.footer__company {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* フッター：住所・連絡先 */
.footer__address {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  line-height: 1.6;
}

/* ===================================================
   1日の流れセクション
=================================================== */
.flow {
  background: var(--color-bg);
}

/* ── タブボタン ── */
.flow__tab-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.flow__tab-btn {
  padding: 10px 22px;
  border-radius: 40px;
  border: 2px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flow__tab-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.flow__tab-btn--active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
}

/* ── タブコンテンツ ── */
.flow__tab-content {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.flow__tab-content--active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flow__subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
}

/* ── タイムライン ── */
.flow__list {
  list-style: none;
  position: relative;
  padding-left: 0;
}

/* 縦線 */
.flow__list::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-accent-2) 100%);
  opacity: 0.3;
}

.flow__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  position: relative;
}

/* タイムライン上のドット */
.flow__item::before {
  content: '';
  position: absolute;
  left: 62px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-accent);
  z-index: 1;
}

.flow__item--end::before {
  background: var(--color-accent-2);
  box-shadow: 0 0 0 2px var(--color-accent-2);
}

.flow__time {
  min-width: 52px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  padding-top: 2px;
  flex-shrink: 0;
}

.flow__detail {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 12px 16px;
  flex: 1;
  margin-left: 20px;
}

.flow__action {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.flow__note {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── スマホ対応 ── */
@media (max-width: 480px) {
  .flow__list::before {
    left: 52px;
  }

  .flow__item::before {
    left: 46px;
  }

  .flow__time {
    min-width: 42px;
    font-size: 0.78rem;
  }

  .flow__detail {
    margin-left: 12px;
    padding: 10px 12px;
  }

  .flow__tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}

/* ===================================================
   AIチャットウィジェット
=================================================== */

/* ===================================================
   採用フローティングバッジ
=================================================== */
.recruit-badge {
  position: fixed;
  bottom: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--color-accent);
  border-radius: 24px;
  padding: 8px 16px 8px 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(244, 132, 95, 0.25);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: badge-float 3s ease-in-out infinite;
}

.recruit-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(244, 132, 95, 0.35);
}

.recruit-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: badge-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.recruit-badge__text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.recruit-badge__arrow {
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.7;
}

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

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── お問い合わせセクション：チャット誘導 ── */
.contact-chat-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(61, 43, 31, 0.08);
}

.contact-chat-guide__icon {
  font-size: 3rem;
  line-height: 1;
}

.contact-chat-guide__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
}

.contact-chat-guide__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── 誘導バブル ── */
.chat-bubble {
  position: fixed;
  bottom: 160px;
  right: 96px;
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 36px 10px 14px;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.15);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  z-index: 998;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-bubble__sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 2px;
}

.chat-bubble__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

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

/* ── フローティングボタン（FAB） ── */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  width: 96px;
  height: 112px;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.chat-fab:hover {
  transform: scale(1.06);
}

/* マスコットのふわふわ＋左右ぷにっとアニメーション */
@keyframes mascotFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-6px) rotate(-1.5deg); }
  50%  { transform: translateY(-8px) rotate(0deg); }
  75%  { transform: translateY(-4px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

#mascotImg {
  animation: mascotFloat 3.5s ease-in-out infinite;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
}

.chat-fab:hover #mascotImg {
  animation: none;
  transform: translateY(-10px) scale(1.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* クリック波紋 */
.mascot-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: mascotRipple 0.7s ease-out forwards;
}

@keyframes mascotRipple {
  0%   { width: 0; height: 0; opacity: 0.7; margin: 0; }
  100% { width: 120px; height: 120px; opacity: 0; margin: -60px; }
}

/* FABの吹き出し（キャラクターから出るセリフ） */
.chat-fab-speech {
  position: fixed;
  bottom: 148px;
  right: 16px;
  background: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 16px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12);
  font-size: 0.92rem;
  font-weight: 700;
  color: #3d2b1f;
  white-space: nowrap;
  z-index: 1001;
  opacity: 1;
  pointer-events: auto;
  line-height: 1.5;
}

/* 吹き出しのしっぽ（右下→キャラへ） */
.chat-fab-speech::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 28px;
  border-width: 12px 12px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* チャットが開いているときは非表示 */
.chat-fab-speech.hidden {
  display: none;
}

/* 開閉アイコンの切り替え */
.chat-fab__icon { line-height: 1; }
.chat-fab__icon--close { display: none; }

.chat-fab.open .chat-fab__icon--open  { display: none; }
.chat-fab.open .chat-fab__icon--close { display: inline; font-style: normal; font-size: 1.2rem; }

/* ── チャットパネル ── */
.chat-panel {
  position: fixed;
  bottom: 152px;        /* FABの上に配置（FAB高さ112px + 余白） */
  right: 16px;
  z-index: 999;
  width: 360px;
  max-width: calc(100vw - 32px);
  /* ヘッダー高さ（約120px）＋FAB下余白（152px）＋余裕（16px）を引いてヘッダーと重ならないようにする */
  max-height: calc(100vh - 120px - 152px - 16px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(61, 43, 31, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* 初期状態：非表示（スケール＋フェード） */
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* 表示状態 */
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── パネルヘッダー ── */
.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gradient-main);
  color: #fff;
  flex-shrink: 0;
}

.chat-panel__header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-panel__avatar {
  font-size: 1.6rem;
  line-height: 1;
}

.chat-panel__name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.chat-panel__status {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ステータスに緑の点を付与 */
.chat-panel__status::before {
  content: '● ';
  font-size: 0.6rem;
}

.chat-panel__restart {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s;
  margin-right: 6px;
}

.chat-panel__restart:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(-180deg);
}

.chat-panel__close {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-panel__close:hover { background: rgba(255, 255, 255, 0.4); }

/* ── メッセージ表示エリア ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* スクロールバー */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

/* ── メッセージバブル共通 ── */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msgSlideIn 0.22s ease;
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg__avatar {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.chat-msg__bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ボット（左寄せ） */
.chat-msg--bot .chat-msg__bubble {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

/* ユーザー（右寄せ） */
.chat-msg--user {
  flex-direction: row-reverse;
}

.chat-msg--user .chat-msg__bubble {
  background: var(--gradient-main);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* ローディングドット（…） */
.chat-msg--loading .chat-msg__bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: dotBounce 1.2s infinite ease-in-out;
}

.chat-dot:nth-child(1) { animation-delay: 0s; }
.chat-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%            { transform: translateY(-6px); opacity: 1; }
}

/* エラーメッセージ */
.chat-msg--error .chat-msg__bubble {
  background: #fff0ee;
  color: #c0392b;
  border: 1px solid #f5c6c0;
}

/* ── 選択肢エリア ── */
.chat-choices {
  padding: 8px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.chat-choice-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-accent);
  background: #fff;
  color: var(--color-accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  animation: msgSlideIn 0.2s ease;
}

.chat-choice-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.chat-back-btn {
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.chat-back-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.chat-restart-btn {
  width: 100%;
  text-align: center;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.18s ease;
}

.chat-restart-btn:hover {
  color: var(--color-accent);
}

/* ── 入力エリア ── */
.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
  background: #fff;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  color: var(--color-text);
  background: var(--color-bg-alt);
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--color-accent);
}

.chat-input::placeholder { color: var(--color-text-muted); }

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-main);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.chat-send:hover  { transform: scale(1.08); }
.chat-send:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ── スマホ対応 ── */
@media (max-width: 480px) {
  .chat-fab {
    bottom: 18px;
    right: 18px;
    width: 76px;
    height: 90px;
  }

  /* スマホでは吹き出しを非表示（タイトルに被るため） */
  .chat-fab-speech {
    display: none;
  }

  /* タイトルをコンパクトにしてマスコットと被らないようにする */
  .hero__title {
    font-size: 1.6rem;
  }

  /* ヒーローコンテンツは左揃え */
  .hero__content {
    text-align: left;
  }

  /* スマホではテキストを上・写真を下に */
  .hero__visual {
    order: 0;
  }

  .chat-panel {
    bottom: 92px;
    right: 12px;
    width: calc(100vw - 24px);
    /* スマホではヘッダー高さ分（約100px）を引いてヘッダーと重ならないようにする */
    max-height: calc(100vh - 100px - 92px - 16px);
  }
}

/* ===================================================
   お知らせセクション
=================================================== */
.news {
  background-color: #fff5f0;
}

/* 空き情報バナー（常時表示） */
.vacancy-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #e8f7fc, #d0eefa);
  border: 1.5px solid #7dd4f0;
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.vacancy-banner:hover {
  box-shadow: 0 4px 18px rgba(125,212,240,0.3);
  transform: translateY(-1px);
}
.vacancy-banner__icon {
  font-size: 28px;
  flex-shrink: 0;
}
.vacancy-banner__text {
  flex: 1;
}
.vacancy-banner__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a4a5c;
  margin-bottom: 2px;
}
.vacancy-banner__sub {
  font-size: 12px;
  color: #4a7a90;
}
.vacancy-banner__arrow {
  font-size: 18px;
  color: #7dd4f0;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .vacancy-banner { padding: 14px 16px; gap: 12px; }
  .vacancy-banner__title { font-size: 14px; }
  .vacancy-banner__sub { font-size: 11px; }
}

.news__list {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #f0ddd6;
}

.news__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0ddd6;
  transition: background 0.2s ease;
}

.news__item:hover {
  background-color: #fff0e8;
}

.news__date {
  font-size: 0.85rem;
  color: #a07060;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}

/* バッジ */
.news__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: #e8d5cf;
  color: #7a4030;
}

/* NEWバッジだけアクセントカラー */
.news__badge--new {
  background: var(--gradient-main);
  color: #fff;
}

/* 空き情報バッジ */
.news__badge--vacancy {
  background: #e8f7fc;
  color: #1a6a8a;
  border: 1px solid #7dd4f0;
}

.news__title {
  font-size: 1.05rem;
  color: #3d2b1f;
  line-height: 1.5;
  transition: color 0.2s ease;
}

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

/* スマホ対応 */
@media (max-width: 480px) {
  .news__item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 12px;
  }

  .news__title {
    font-size: 0.88rem;
    width: 100%;
  }
}

/* ===================================================
   代表挨拶セクション
=================================================== */
.greeting {
  background-color: #ffffff;
}

.greeting__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 48px; /* 左の装飾ライン分 */
  border-left: 4px solid #f4845f;
}

/* 大きなクォートマーク装飾 */
.greeting__quote-mark {
  position: absolute;
  top: -24px;
  left: -20px;
  font-size: 5rem;
  line-height: 1;
  color: #f4845f;
  font-family: Georgia, serif;
  opacity: 0.25;
  pointer-events: none;
}

/* 挨拶文エリア */
.greeting__text {
  margin-bottom: 36px;
}

.greeting__body {
  font-size: 0.97rem;
  line-height: 2;
  color: #5a3e35;
  margin-bottom: 20px;
}

/* 署名ブロック */
.greeting__sign-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #f0ddd6;
}

.greeting__sign-accent {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4845f 0%, #ffb347 100%);
  flex-shrink: 0;
}

.greeting__sign-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.greeting__sign-station {
  font-size: 0.78rem;
  color: #a07060;
  letter-spacing: 0.04em;
}

.greeting__sign-role {
  font-size: 0.8rem;
  color: #a07060;
}

.greeting__sign-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d2b1f;
  letter-spacing: 0.08em;
}

/* タブレット対応 */
@media (max-width: 768px) {
  .greeting__inner {
    padding-left: 28px;
  }
}

/* ===================================================
   ご利用の流れセクション
=================================================== */
.howto {
  background-color: #fff5f0;
}

.howto__steps {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* 縦ライン */
.howto__steps::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-2));
  z-index: 0;
}

.howto__step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

/* ステップ番号サークル */
.howto__step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(244, 132, 95, 0.35);
}

.howto__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 8px;
}

.howto__step-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #7a5548;
}

.howto__cta {
  text-align: center;
  margin-top: 52px;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .howto__steps::before {
    left: 28px;
    top: 36px;
    bottom: 36px;
  }

  .howto__step {
    gap: 18px;
    padding: 20px 0;
  }

  .howto__step-num {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

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