/*
Theme Name: Care Theme V3 - Advanced
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: 介護施設・採用サイト向けのWordPressテーマ（先進的デザイン版）
Version: 3.0.0
License: GPL v2 or later
Text Domain: care-theme-v3
*/

/* ===================================
   カラーパレット・タイポグラフィ・スペーシング
   =================================== */
:root {
  /* オレンジ系パステルカラー */
  --color-pastel-yellow: #fff8f0;
  --color-pastel-blue: #fff6ed;
  --color-pastel-green: #fff3e8;
  --color-pastel-lavender: #fff5eb;
  --color-pastel-pink: #fff4e6;

  /* メインカラー */
  --color-primary: #f37021; /* メイン: オレンジ */
  --color-secondary: #c95a0b; /* サブ: 濃いオレンジ */
  --color-accent: #ff8a3d; /* アクセント: 明るいオレンジ */

  /* テキストカラー */
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-text-white: #ffffff;

  /* ボーダー・背景 */
  --color-border: #e0e0e0;
  --color-bg-gray: #f5f5f5;
  --color-shadow: rgba(0, 0, 0, 0.1);

  /* フォントファミリー */
  --font-primary: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo",
    sans-serif;
  --font-heading: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-logo: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  /* 余白 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* 角丸（ボーダー半径） */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* トランジション */
  --transition: all 0.45s ease;

  /* 子テーマからの追加変数 */
  --bg-light: #000000;
}

/* ===================================
   リセット・ベーススタイル
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.8;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* フォーカスの可視化（アクセシビリティ） */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===================================
   レイアウト
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

/* セクション背景 */
.section--yellow {
  background-color: var(--color-pastel-yellow);
}

.section--blue {
  background-color: var(--color-pastel-blue);
}

.section--green {
  background-color: var(--color-pastel-green);
}

.section--lavender {
  background-color: #fff3e8 !important;
  background-image: none !important;
}

.section--lavender .wave-divider--top path {
  fill: #fff3e8 !important;
}

/* スマホ版で波型デザインを非表示 */
@media (max-width: 768px) {
  .section--lavender .wave-divider,
  .section--lavender .wave-divider--top,
  .section--lavender .wave-divider--bottom {
    display: none;
  }
}

/* ===================================
   ウェーブディバイダー
   =================================== */
.wave-divider {
  position: absolute;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider--top {
  top: 0;
}

.wave-divider--bottom {
  bottom: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}
.hero .wave-divider--bottom path {
  fill: url(#heroWaveGradient);
}

.section--yellow .wave-divider--top path {
  fill: var(--color-pastel-yellow);
}

.section--blue .wave-divider--top path {
  fill: var(--color-pastel-blue);
}

.section--green .wave-divider--top path {
  fill: var(--color-pastel-green);
}

/* ===================================
   ヘッダー
   =================================== */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  position: relative;
}

.header-brand {
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
  position: relative;
}

.main-nav {
  flex: 1;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* サイトタイトル（ロゴ） - 柔らかい丸ゴシックフォント */
.site-title {
  font-family: var(--font-logo);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.site-title:hover {
  opacity: 0.85;
  color: var(--color-secondary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
}

.main-nav a {
  color: var(--color-text-primary);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  background-color: #fff3e8;
  color: var(--color-primary);
}

/* メニュー開閉トグル（ハンバーガー） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: auto;
}

.header-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: 600;
}

.header-cta__button:hover {
  background-color: #d65e13;
}

.header-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.header-cta__phone:hover {
  color: #d65e13;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
  position: relative;
  background: transparent;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* 背景画像がない場合のフォールバック */
.hero:not(.has-bg-image) {
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
}

.hero .container {
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding: 0 !important;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.hero-text .lead {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* 募集要項を見るボタンの背景を完全に透明に */
.hero-buttons .btn-outline {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px var(--color-shadow);
}

/* 飾り要素 */
.decoration-note {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

/* ===================================
   ボタン
   =================================== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-weight: bold;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

/* ボタン内のSVGをブランド色に合わせる */
.btn svg path {
  fill: currentColor;
  stroke: currentColor;
}

.btn-primary {
  background-color: var(--color-primary, #f37021);
  color: var(--color-text-white, #ffffff);
  border-color: var(--color-primary, #f37021);
}

.btn-primary:hover {
  background-color: #d65e13;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--color-shadow);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

/* ===================================
   カード
   =================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--color-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--color-shadow);
}

.card-image {
  height: 200px;
  overflow: hidden;
  background-color: var(--color-bg-gray);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===================================
   セクションタイトル
   =================================== */
.section-title {
  text-align: left;
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--font-heading);
  color: #333333; /* 文字色は黒 */
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  background: linear-gradient(90deg, #fff8f0 0%, rgba(255, 255, 255, 0) 100%);
  border-left: 6px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
  box-shadow: none;
}

.section-title h2::before {
  content: none;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.5;
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-top: var(--spacing-md);
}

/* セクションタイトルのgradient-text効果を無効化し、黒文字で統一 */
.section-title h2.gradient-text,
.section-title .gradient-text,
.section-title .section-title-animated {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #333333;
  color: #333333;
}

/* ===================================
   スタッフ
   =================================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.staff-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px var(--color-shadow);
}

.staff-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff3e8;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-name {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.staff-role {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.staff-message {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===================================
   お知らせ
   =================================== */
.news-list {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--color-shadow);
}

.news-item {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: var(--color-bg-gray);
}

.news-date {
  display: inline-block;
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-right: var(--spacing-sm);
}

.news-category {
  display: inline-block;
  padding: 2px 10px;
  background-color: #fff3e8;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  margin-right: var(--spacing-sm);
}

.news-title {
  color: var(--color-text-primary);
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

/* ===================================
   募集要項詳細ページ
   =================================== */

/* セクションタイトル */
.recruit-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--color-primary);
}

/* 求職者へのメッセージ */
.recruit-message {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.recruit-message-content {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-text-primary);
  padding: var(--spacing-md);
  background: #ffffff;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

/* 募集要項セクション */
.recruit-requirements {
  margin-bottom: var(--spacing-xl);
}

/* 募集要項テーブル */
.recruit-table {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-collapse: separate;
  border-spacing: 0;
}

.recruit-table th,
.recruit-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.8;
}

.recruit-table th {
  background-color: #fff3e8;
  color: #f37021;
  font-weight: 600;
  width: 180px;
  white-space: nowrap;
}

.recruit-table td {
  color: #333;
  line-height: 1.8;
}

.recruit-table tr:last-child th,
.recruit-table tr:last-child td {
  border-bottom: none;
}

.recruit-table tr:hover td {
  background-color: #fffbf7;
}

/* キャリアパス */
.recruit-career {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: #f9f9f9;
  border-radius: var(--radius-md);
  border: 2px solid #e8e8e8;
}

.recruit-career-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-primary);
  padding: var(--spacing-md);
  background: #ffffff;
  border-radius: var(--radius-sm);
}

/* 追加コンテンツ */
.recruit-additional-content {
  margin-bottom: var(--spacing-xl);
}

/* CTAセクション */
.recruit-cta {
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background: transparent; /* 薄オレンジ背景を削除 */
  border-radius: var(--radius-md);
  text-align: center;
}

.recruit-cta h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.recruit-cta p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.recruit-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .recruit-table th {
    background-color: #fff3e8;
    border-bottom: none;
    padding-bottom: 0.25rem;
    font-size: 0.85rem;
  }

  .recruit-table td {
    border-bottom: 1px solid #f0f0f0;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
  }

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

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

  .recruit-message-content {
    font-size: 1rem;
    padding: var(--spacing-sm);
  }

  .recruit-buttons {
    flex-direction: column;
  }

  .recruit-buttons .btn {
    width: 100%;
  }
}

/* ===================================
   ギャラリー
   =================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px var(--color-shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===================================
   お問い合わせフォーム
   =================================== */
.contact-form {
  background: #ffffff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px var(--color-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  color: var(--color-text-primary);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.form-label .required {
  color: #e74c3c;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1);
}

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

.form-submit {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Contact Form 7 メッセージ出力 */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

.wpcf7-response-output {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  text-align: center;
}

.wpcf7-mail-sent-ok {
  background-color: #e8f5e9;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.wpcf7-validation-errors {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

/* ===================================
   お問い合わせ（Contact）
   =================================== */
#contact .contact-form {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px var(--color-shadow);
}

/* Fallbackフォーム用 */
#contact .contact-form .form-group {
  margin-bottom: var(--spacing-md);
}

/* CF7 共通スタイル */
#contact .wpcf7-form p {
  margin-bottom: var(--spacing-md);
}

#contact .wpcf7-form label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

#contact .wpcf7-form .wpcf7-form-control,
#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 input[type="tel"],
#contact .wpcf7 select,
#contact .wpcf7 textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
  background: #fff;
}

#contact .wpcf7-form .wpcf7-form-control:focus,
#contact .wpcf7 input[type="text"]:focus,
#contact .wpcf7 input[type="email"]:focus,
#contact .wpcf7 input[type="tel"]:focus,
#contact .wpcf7 select:focus,
#contact .wpcf7 textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1);
}

#contact .wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

/* 検証エラー時の強調 */
#contact .wpcf7-not-valid {
  border-color: #e74c3c !important;
  background-color: #fdedec;
}

/* 送信ボタン */
#contact .wpcf7-form .wpcf7-submit {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-weight: bold;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  border-color: var(--color-primary, #f37021);
  background-color: var(--color-primary, #f37021);
  color: var(--color-text-white, #ffffff);
  cursor: pointer;
}

#contact .wpcf7-form .wpcf7-submit:hover {
  background-color: #d65e13;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--color-shadow);
}

#contact .wpcf7-spinner {
  margin-left: var(--spacing-sm);
}

/* お問い合わせセクション イントロダクション */
.contact-intro {
  text-align: center;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.contact-intro__main {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.05em;
}

.contact-intro__sub {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(243, 112, 33, 0.08) 0%, rgba(243, 112, 33, 0.03) 100%);
  border-radius: var(--radius-full);
  border: 1px solid rgba(243, 112, 33, 0.15);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-intro__main {
    font-size: 1.2rem;
  }

  .contact-intro__sub {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    display: block;
    border-radius: var(--radius-sm);
  }
}

/* 行レイアウト（任意でCF7のラッパーに class="form-row" を付与して使用可能） */
#contact .wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

#contact .wpcf7-form .form-row > p {
  /* CF7はpでラップされるため */
  margin: 0;
}

@media (max-width: 640px) {
  #contact .contact-form {
    padding: var(--spacing-lg);
  }
  #contact .wpcf7-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   CF7 送信ボタン（全体適用の保険）
   他のページやウィジェット内でも視認性を担保
   =================================== */
.wpcf7 .wpcf7-submit,
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-weight: bold;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  border-color: var(--color-primary, #f37021);
  background-color: var(--color-primary, #f37021);
  color: var(--color-text-white, #ffffff);
  cursor: pointer;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:hover {
  background-color: #d65e13;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--color-shadow);
}

.wpcf7 .wpcf7-submit:disabled,
.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===================================
   フッター
   =================================== */
.site-footer {
  background-color: #2c3e50;
  color: var(--color-text-white);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* ページトップボタンのSVG色をオレンジ系に */
.back-to-top {
  color: var(--color-primary);
}

.back-to-top:hover {
  color: var(--color-accent);
}

.back-to-top svg path {
  stroke: currentColor;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-widget h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-accent);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: var(--spacing-xs);
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   アクセシビリティ
   =================================== */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: absolute;
  left: 6px;
  top: 7px;
  z-index: 999999;
  padding: var(--spacing-sm);
  background-color: var(--color-primary);
  color: var(--color-text-white);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

/* ===================================
   強制オレンジ適用（競合対策）
   =================================== */
.btn.btn-primary,
.btn.btn-primary:link,
.btn.btn-primary:visited {
  background-color: #ff8a3d !important;
  border-color: #ff8a3d !important;
  color: #ffffff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #f37021 !important;
  border-color: #f37021 !important;
}

.header-cta__phone {
  color: #ff8a3d !important;
}

.header-cta__phone:hover,
.header-cta__phone:focus {
  color: #f37021 !important;
}

/* UIアイコンのSVGカラーを文字色に追従 */
.header-cta__phone svg path,
.btn svg path,
.back-to-top svg path {
  stroke: currentColor !important;
  fill: currentColor !important;
}

/* ===================================
   レスポンシブ（768px以下）
   =================================== */
@media (max-width: 768px) {
  /* ヘッダー/ナビゲーション */
  .header-container {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .header-controls {
    order: 3;
    flex-basis: 100%;
    margin-top: var(--spacing-xs);
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 5px 15px var(--color-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  .main-nav.is-active {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: var(--spacing-md);
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a {
    display: block;
    padding: var(--spacing-sm);
  }

  /* ヒーロー */
  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .hero-text .lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  /* カード */
  .cards {
    grid-template-columns: 1fr;
  }

  /* スタッフ */
  .staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* フッター */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* 余白調整 */
  .section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

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

  .cards {
    gap: var(--spacing-md);
  }

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

/* ===================================
   印刷用スタイル
   =================================== */
@media print {
  .site-header,
  .site-footer,
  .hero-buttons,
  .wave-divider {
    display: none;
  }

  body {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}


/* ===================================
   相談窓口ページ（新デザイン）
   =================================== */

/* ヒーローセクション */
.consultation-hero-section {
  position: relative;
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
  padding: var(--spacing-xxl) 0 calc(var(--spacing-xxl) + 40px);
  overflow: hidden;
  text-align: center;
}

.consultation-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.consultation-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.4;
  font-weight: 700;
}

.consultation-hero-message {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 0;
}

/* 相談フォームセクション */
.consultation-form-section {
  background: #ffffff;
}

.consultation-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.consultation-form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.consultation-form-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.consultation-form-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}

.text-accent {
  color: var(--color-primary);
  font-weight: 700;
  padding: 2px 8px;
  background: #fff3e8;
  border-radius: 4px;
}

.consultation-form-container {
  background: #ffffff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--spacing-xl);
}

/* タグチェックボックス */
.consultation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.tag-checkbox {
  position: relative;
  cursor: pointer;
}

.tag-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.tag-label {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
  user-select: none;
}

.tag-checkbox input[type="checkbox"]:checked + .tag-label {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}

.tag-checkbox:hover .tag-label {
  border-color: var(--color-primary);
  background: #fff3e8;
}

.tag-checkbox input[type="checkbox"]:checked:hover + .tag-label {
  background: #d65e13;
  border-color: #d65e13;
}

.form-help {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
}

.btn-submit:hover {
  box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4);
  transform: translateY(-2px);
}

/* マルチチャネル相談 */
.consultation-channels {
  text-align: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border-radius: var(--radius-md);
}

.consultation-channels-title {
  font-size: 1.125rem;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.consultation-channel-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.channel-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.channel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.channel-button--phone {
  border-color: #4caf50;
}

.channel-button--phone svg {
  color: #4caf50;
}

.channel-button--phone:hover {
  background: #e8f5e9;
  border-color: #4caf50;
}

.channel-button--line {
  border-color: #06c755;
}

.channel-button--line svg {
  color: #06c755;
}

.channel-button--line:hover {
  background: #e8f9f0;
  border-color: #06c755;
}

.channel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.channel-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.channel-info {
  font-size: 1.125rem;
  color: var(--color-text-primary);
  font-weight: 700;
}

.consultation-channels-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-md);
}

.consultation-channels-note svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* よくある相談内容 */
.section--pastel {
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 50%, #fff8f0 100%);
}

.consultation-common-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.topic-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 2px solid transparent;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(243, 112, 33, 0.15);
  border-color: var(--color-primary);
}

.topic-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-card-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.topic-card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* 相談の流れ */
.consultation-simple-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: var(--spacing-xl) auto;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  background: #ffffff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(243, 112, 33, 0.15);
}

.flow-step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
  box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

.flow-step-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.flow-step-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.flow-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md);
  background: #fff8f0;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.flow-notice svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.flow-notice p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.flow-notice strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* 担当スタッフ */
.consultation-staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: var(--spacing-xl) auto 0;
}

.staff-consultation-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.staff-consultation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(243, 112, 33, 0.15);
}

.staff-consultation-photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
}

.staff-consultation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-consultation-info {
  padding: var(--spacing-xl);
  text-align: center;
}

.staff-consultation-name {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.staff-consultation-role {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.staff-consultation-message {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  text-align: left;
}

/* 安心要素 */
.assurance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto var(--spacing-xl);
}

.assurance-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 2px solid transparent;
}

.assurance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(243, 112, 33, 0.15);
  border-color: var(--color-primary);
}

.assurance-icon {
  margin: 0 auto var(--spacing-md);
}

.assurance-icon svg {
  width: 60px;
  height: 60px;
}

.assurance-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.assurance-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.privacy-link-section {
  text-align: center;
  padding: var(--spacing-lg);
  background: #fff8f0;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto;
}

.privacy-link-section p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.privacy-link-section svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.privacy-link-section a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.privacy-link-section a:hover {
  color: #d65e13;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .consultation-hero-title {
    font-size: 1.75rem;
  }

  .consultation-hero-message {
    font-size: 1rem;
  }

  .consultation-form-container {
    padding: var(--spacing-lg);
  }

  .consultation-tags {
    gap: var(--spacing-xs);
  }

  .tag-label {
    font-size: 0.875rem;
    padding: 6px 12px;
  }

  .consultation-channel-buttons {
    flex-direction: column;
  }

  .channel-button {
    max-width: 100%;
  }

  .consultation-common-topics {
    grid-template-columns: 1fr;
  }

  .consultation-simple-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: var(--spacing-sm) 0;
  }

  .flow-step {
    max-width: 100%;
  }

  .consultation-staff-cards {
    grid-template-columns: 1fr;
  }

  .assurance-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .consultation-hero-section {
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) + 40px);
  }

  .consultation-form-title {
    font-size: 1.5rem;
  }

  .btn-submit {
    font-size: 1.125rem;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .topic-card,
  .flow-step,
  .staff-consultation-info,
  .assurance-card {
    padding: var(--spacing-lg);
  }
}

/* ===================================
   Hero Image Section（ACF管理可能なヒーロー画像セクション）
   =================================== */

/**
 * BEM記法によるヒーロー画像セクション
 * - .hero-image: ルート要素
 * - .hero-image__wrapper: リンクまたはラッパー
 * - .hero-image__main: メイン画像エリア
 * - .hero-image__img: 画像要素
 * - .hero-image__banner: バナー部分
 * - .hero-image__banner-text: バナーテキスト
 */

/* セクション全体 */
.hero-image {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ラッパー（リンクまたはdiv） */
.hero-image__wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image__wrapper:hover {
  opacity: 1;
}

/* メイン画像エリア */
.hero-image__main {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: transparent;
  border-radius: 0;
}

/* 画像要素 */
.hero-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  vertical-align: bottom;
  border-radius: 0;
}

/* スマホ版では画像の高さを自動調整 */
@media (max-width: 768px) {
  .hero-image__img {
    height: auto;
  }
}

/* リンク付きの場合のホバー効果 */
a.hero-image__wrapper:hover .hero-image__img {
  transform: scale(1.05);
}

/* バナー部分 */
.hero-image__banner {
  background-color: #ffffff;
  padding: var(--spacing-lg) var(--spacing-xl);
  text-align: center;
  border-bottom: none;
  box-shadow: none;
  border-radius: 0;
}

/* バナーテキスト */
.hero-image__banner-text {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* リンク付きバナーのホバー効果 */
a.hero-image__wrapper:hover .hero-image__banner {
  background-color: var(--color-pastel-yellow);
}

a.hero-image__wrapper:hover .hero-image__banner-text {
  color: var(--color-secondary);
}

/* ===================================
   Hero Image - レスポンシブ対応
   =================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
  .hero-image__main {
    height: auto;
    background-color: transparent;
  }

  .hero-image__banner {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .hero-image__banner-text {
    font-size: 1.125rem;
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  .hero-image__main {
    height: auto;
    min-height: 0;
    background-color: transparent;
  }

  .hero-image__banner {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero-image__banner-text {
    font-size: 1rem;
  }
}

/* ===================================
   Hero Section内のHero Image調整
   =================================== */

/* heroセクション内で使用する場合の調整 */
.hero .hero-image {
  position: relative;
}

/* heroセクション内のhero-image要素はflexレイアウトに対応 */
.hero .hero-image .hero-image__wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 20px 40px var(--color-shadow);
}

/* heroセクション内では画像の高さを自動調整 */
.hero .hero-image .hero-image__main {
  height: auto;
  flex: 1;
  min-height: 300px;
  background-color: transparent;
}

/* スマホ版ではmin-heightも削除 */
@media (max-width: 768px) {
  .hero .hero-image .hero-image__main {
    min-height: 0;
    background-color: transparent;
  }
}

/* heroセクション内の画像 */
.hero .hero-image .hero-image__img {
  border-radius: 0;
  box-shadow: none;
}

/* heroセクション内のバナーを確実に表示 */
.hero .hero-image .hero-image__banner {
  display: block !important;
  background-color: #ffffff !important;
  padding: var(--spacing-md) var(--spacing-lg) !important;
  text-align: center !important;
  border-bottom: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* バナーテキスト */
.hero .hero-image .hero-image__banner-text {
  margin: 0 !important;
  color: var(--color-primary) !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  line-height: 1.6 !important;
}


/* ===================================
   子テーマからの追加スタイル
   =================================== */

/* PC版・スマホ版すべてに適用 */
.bg-light,
[class*="bg-light"] {
  background-color: #000000 !important;
}

/* greeting-galleryの背景色を黒に変更 */
.greeting-gallery {
  background: #000000 !important;
}

/* ============================================
   セクション高さ調整（PC版）
   ============================================ */
@media (min-width: 769px) {
  /* サービス紹介セクション */
  #services {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
  }

  #services .container {
    width: 100%;
  }

  /* 私たちの3つの特徴セクション */
  .section--yellow {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
  }

  .section--yellow .container {
    width: 100%;
  }
}

/* ============================================
   私たちの3つの特徴 - カードデザイン
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f37021 0%, #ff8a3d 50%, #c95a0b 100%);
}

.feature-card:nth-child(1)::before {
  background: linear-gradient(90deg, #f37021, #ff8a3d);
}

.feature-card:nth-child(2)::before {
  background: linear-gradient(90deg, #ff8a3d, #f37021);
}

.feature-card:nth-child(3)::before {
  background: linear-gradient(90deg, #c95a0b, #f37021);
}

.feature-card-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  color: #fff;
  font-size: 1.75rem;
  font-weight: bold;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
}

.feature-card:nth-child(1) .feature-number-badge {
  background: linear-gradient(135deg, #f37021, #ff8a3d);
}

.feature-card:nth-child(2) .feature-number-badge {
  background: linear-gradient(135deg, #ff8a3d, #f37021);
}

.feature-card:nth-child(3) .feature-number-badge {
  background: linear-gradient(135deg, #c95a0b, #f37021);
}

.feature-card-body {
  text-align: center;
}

.feature-card .feature-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.feature-card .feature-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* ============================================
   アクセスセクション - レイアウト改善
   ============================================ */
.access-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.access-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.access-facility-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #f37021;
}

.access-details {
  margin: 0;
}

.access-detail-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.access-detail-item:last-child {
  border-bottom: none;
}

.access-detail-item dt {
  font-weight: bold;
  color: #555;
  font-size: 0.9rem;
  padding-top: 0.2rem;
}

/* ============================================
   新トップページセクション調整
   ============================================ */
.section--muted {
  background: #fff8f0;
}

.section--accent {
  background: #fff3e8;
}

.cards--stacked {
  display: grid;
  gap: 2rem;
}

.cards--stacked .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards--stacked .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.cards--stacked .card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #30343a;
}

.cards--stacked p {
  margin: 0;
  line-height: 1.8;
  color: #555;
}

.rich-text p {
  margin: 0 0 1.5rem;
  line-height: 1.9;
  color: #4a4f56;
}

.section--accent .rich-text p {
  color: #3c3f4a;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.job-outline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.job-outline li {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
  color: #444;
}

.job-outline li strong {
  display: block;
  margin-bottom: 0.5rem;
}

.office-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.office-detail {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
}

.office-detail dt {
  font-weight: 700;
  color: #30343a;
  font-size: 0.95rem;
  margin: 0;
}

.office-detail dd {
  margin: 0;
  color: #4a4f56;
  line-height: 1.8;
}

.office-detail a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
  .cards--stacked {
    gap: 1.5rem;
  }

  .cards--stacked .card {
    padding: 1.5rem;
  }

  .job-outline li {
    padding: 1.25rem;
  }

  .office-detail {
    grid-template-columns: 1fr;
  }
}

.access-detail-item dd {
  margin: 0;
  color: #333;
  line-height: 1.8;
  font-size: 0.95rem;
}

.access-detail-item dd a {
  color: #f37021;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.access-detail-item dd a:hover {
  color: #c95a0b;
  text-decoration: underline;
}

.access-map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  line-height: 0;
}

.access-map-container iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .access-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .access-info-card {
    order: 1;
  }

  .access-map-container {
    order: 2;
  }

  .access-map-container iframe {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .access-info-card {
    padding: 1.5rem;
  }

  .access-detail-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.8rem 0;
  }

  .access-detail-item dt {
    font-size: 0.85rem;
  }

  .access-detail-item dd {
    font-size: 0.9rem;
  }

  .access-map-container iframe {
    height: 300px;
  }
}

/* 旧スタイルのクリーンアップ */
.access-map {
  line-height: 0;
}

.access-map iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ============================================
   募集要項詳細ページ 調整
   ============================================ */
.page-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 3rem;
}

.page-header__lead {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-header__lead .hero-lead-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.job-summary-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px rgba(243, 112, 33, 0.08);
  border: 1px solid rgba(243, 112, 33, 0.18);
}

.job-summary__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.job-summary__selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.job-summary__selector-btn {
  appearance: none;
  border: 1px solid rgba(243, 112, 33, 0.45);
  background: #ffffff;
  color: var(--color-secondary);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.job-summary__selector-btn:hover,
.job-summary__selector-btn:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
  outline: none;
}

.job-summary__selector-btn.is-active {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(243, 112, 33, 0.25);
}

.job-summary__panels {
  position: relative;
}

.job-summary__panel-item[hidden] {
  display: none;
}

.job-summary__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(243, 112, 33, 0.12);
  color: var(--color-secondary);
}

.job-summary__title {
  font-size: 1.35rem;
  color: var(--color-text-primary);
  margin: 0;
}

.job-summary__list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 680px) {
  .job-summary__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.job-summary__item {
  background: #fff8f0;
  border: 1px solid rgba(243, 112, 33, 0.18);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.job-summary__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
  margin: 0;
}

.job-summary__detail {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.job-summary__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.job-summary__supplement {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.job-summary__footnote {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  text-align: right;
  color: var(--color-text-secondary);
}

@media (max-width: 960px) {
  .page-header__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .job-summary-panel {
    order: -1;
  }
}

@media (max-width: 600px) {
  .job-summary-panel {
    padding: 1.75rem 1.5rem;
  }

  .job-summary__item {
    padding: 1rem 1.1rem;
  }

  .job-summary__value {
    font-size: 1.05rem;
  }

  .job-summary__footnote {
    text-align: left;
  }
}

.applicant-message {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(243, 112, 33, 0.15),
    rgba(255, 196, 158, 0.2)
  );
}

.applicant-message__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 0% 0%,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(243, 112, 33, 0.3) 55%,
    rgba(255, 255, 255, 0.5) 100%
  );
  opacity: 0.45;
  pointer-events: none;
}

.applicant-message__inner {
  position: relative;
  z-index: 1;
}

.applicant-message__content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 18px 40px rgba(243, 112, 33, 0.12);
  color: var(--color-text-primary);
}

.applicant-message__title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--color-text-primary);
}

.applicant-message__text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.applicant-message__cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.applicant-message__cta .btn {
  min-width: 180px;
  text-align: center;
}

.applicant-message__cta .btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.applicant-message__cta .btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

@media (max-width: 640px) {
  .applicant-message__cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .applicant-message__cta .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   スマホ表示最適化
   ============================================ */

/* スライダーのキャプションとドットの重なり防止 */
.greeting-slide-caption {
  padding-bottom: 60px !important;
}

.greeting-slider-dots {
  margin-top: 20px !important;
  position: relative;
  z-index: 10;
}

/* スマホ版でさらに余白を確保 */
@media (max-width: 768px) {
  .greeting-slide-caption {
    padding-bottom: 80px !important;
    margin-bottom: 0;
  }

  .greeting-slider-dots {
    margin-top: 30px !important;
    padding-top: 15px;
  }

  /* スライダーのナビゲーションボタン位置調整 */
  .slick-prev,
  .slick-next {
    bottom: 20px;
    top: auto;
    z-index: 10;
  }

  .slick-prev {
    left: 20px;
  }

  .slick-next {
    right: 20px;
  }

  /* スライダードット位置調整 */
  .slick-dots {
    bottom: 10px;
    z-index: 5;
  }
}

/* ============================================
   Hero Image - 背景色とスマホ角丸対応
   ============================================ */

/* PC版・スマホ版共通：角丸を維持し、背景を透明に */
.hero-image .hero-image__wrapper,
.hero .hero-image .hero-image__wrapper,
section.hero .hero-image .hero-image__wrapper,
.hero-content .hero-image .hero-image__wrapper {
  background-color: transparent !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* スマホ版：角丸を少し小さく */
@media (max-width: 768px) {
  .hero-image .hero-image__wrapper,
  .hero .hero-image .hero-image__wrapper,
  section.hero .hero-image .hero-image__wrapper,
  .hero-content .hero-image .hero-image__wrapper {
    border-radius: 16px !important;
  }

  /* 旧形式の画像のみに制限を適用（新しいバナー付き形式は除外） */
  .hero-image:not(:has(.hero-image__wrapper)) {
    max-height: 250px;
    overflow: hidden;
  }

  .hero-image > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  /* 新しいバナー付き形式ではauto調整 */
  .hero .hero-image:has(.hero-image__wrapper) {
    max-height: none !important;
    overflow: visible !important;
  }

  /* バナー付き形式の追加スタイル（古いブラウザ対応） */
  .hero .hero-image .hero-image__wrapper {
    max-height: none !important;
    overflow: visible !important;
  }

  .hero .hero-image .hero-image__banner {
    display: block !important;
    background-color: transparent !important;
  }

  .hero .hero-image .hero-image__banner-text {
    color: #f37021 !important;
  }
}

/* 各セクションのコンパクト化 */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  /* サービス紹介カード */
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  /* スタッフ紹介 */
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .staff-card {
    padding: 1rem;
  }

  .staff-name {
    font-size: 1rem;
  }

  .staff-role {
    font-size: 0.85rem;
  }

  .staff-message {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* お知らせ */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }

  .news-title {
    font-size: 0.95rem;
  }
}

/* 施設ギャラリー - スマホで2列表示 */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

/* フッターのスマホ最適化 - コンパクト&スタイリッシュ */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 1rem;
    background-color: #2c3e50;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-widget {
    padding: 0;
    text-align: left;
  }

  .footer-widget h3 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
  }

  .footer-widget address,
  .footer-widget p,
  .footer-widget dl {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
  }

  .footer-widget address {
    font-style: normal;
    margin-bottom: 0.5rem;
  }

  .footer-widget p {
    margin: 0.5rem 0;
  }

  .footer-widget a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .footer-widget a:hover {
    color: #ff8a3d;
  }

  /* メニュー - 横並びコンパクト */
  .footer-widget .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0;
    list-style: none;
  }

  .footer-widget .nav-menu li {
    margin: 0;
  }

  .footer-widget .nav-menu a {
    font-size: 0.9rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    position: relative;
  }

  .footer-widget .nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff8a3d;
    transition: width 0.2s ease;
  }

  .footer-widget .nav-menu a:hover::after {
    width: 100%;
  }

  /* 営業時間 - インライン表示 */
  .footer-widget dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin: 0;
    font-size: 0.85rem;
  }

  .footer-widget dt {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
  }

  .footer-widget dt::after {
    content: ":";
    margin-right: 0.25rem;
  }

  .footer-widget dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
  }

  .footer-widget dd::after {
    content: "　";
    margin-right: 0.5rem;
  }

  .footer-widget dd:last-child::after {
    content: "";
  }

  .footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .footer-bottom .copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
  }

  /* ページトップボタン - コンパクト */
  .back-to-top {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff8a3d, #f37021) !important;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 138, 61, 0.3) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
  }

  .back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .back-to-top:hover,
  .back-to-top:active {
    background: linear-gradient(135deg, #f37021, #c95a0b) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.4) !important;
  }

  .back-to-top svg {
    width: 24px;
    height: 24px;
  }
}

/* PC版 ページトップボタンのオレンジ統一 */
@media (min-width: 769px) {
  .back-to-top {
    background: linear-gradient(135deg, #ff8a3d, #f37021) !important;
    box-shadow: 0 4px 12px rgba(255, 138, 61, 0.4) !important;
  }

  .back-to-top:hover {
    background: linear-gradient(135deg, #f37021, #c95a0b) !important;
    box-shadow: 0 6px 16px rgba(243, 112, 33, 0.5) !important;
  }
}

/* 極小画面（iPhone SE など） */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.3rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery {
    gap: 0.25rem;
  }
}

/* ============================================
   募集要項の詳細ページ（recruit-guidelines）
   ============================================ */

/* ヒーローのリード文とCTA */
.page-header .hero-lead {
  margin-top: 2rem;
  text-align: center;
}

.page-header .hero-lead-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.page-header .hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-header .hero-cta-primary,
.page-header .hero-cta-secondary {
  min-width: 200px;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
}

/* 目次（TOC） */
.guidelines-toc {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guidelines-toc .container {
  padding: 0;
}

.guidelines-toc-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.guidelines-toc-list li {
  margin: 0;
}

.guidelines-toc-list .toc-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.guidelines-toc-list .toc-link:hover {
  color: var(--color-primary);
  background: var(--color-pastel-yellow);
}

.guidelines-toc-list .toc-link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* テーブル強化 */
.guidelines-detail .section-title h2 {
  margin-bottom: var(--spacing-sm);
}

.guidelines-detail .section-title .section-subtitle {
  margin-top: 0;
}

.guidelines-detail .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.5rem auto;
  max-width: 100%;
}

@media (min-width: 1200px) {
  .guidelines-detail .table-wrap {
    max-width: 1400px;
  }
}

/* テーブルの基本スタイル */
.guidelines-detail .recruit-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* キャプション */
.guidelines-detail .recruit-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: #333;
  padding: 0 0 1rem 0;
  font-size: 1.1rem;
}

/* ヘッダー行（sticky化） */
.guidelines-detail .recruit-table thead th {
  position: sticky;
  top: 103px;
  background: #f37021;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.875rem 1.25rem;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.4;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guidelines-detail .recruit-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.guidelines-detail .recruit-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

/* セルの基本スタイル */
.guidelines-detail .recruit-table th,
.guidelines-detail .recruit-table td {
  padding: 1rem 1.25rem;
  vertical-align: top;
  line-height: 1.7;
  font-size: 0.875rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.guidelines-detail .recruit-table td {
  max-width: 500px;
}

@media (min-width: 1400px) {
  .guidelines-detail .recruit-table th,
  .guidelines-detail .recruit-table td {
    font-size: 0.9rem;
    padding: 1.125rem 1.5rem;
  }

  .guidelines-detail .recruit-table thead th {
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
  }
}

/* 行の境界線 */
.guidelines-detail .recruit-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.guidelines-detail .recruit-table tbody tr:last-child {
  border-bottom: none;
}

/* 行見出し（th[scope="row"]） */
.guidelines-detail .recruit-table th[scope="row"] {
  background: #fffaf5;
  color: #333;
  font-weight: 600;
  min-width: 160px;
  width: 160px;
  border-right: 3px solid #ff8a3d;
  white-space: nowrap;
}

/* 評価の視点テーブル - 2列レイアウト最適化 */
.guidelines-detail .recruit-table tbody th[scope="row"] {
  width: 25%;
}

.guidelines-detail .recruit-table tbody td {
  width: 75%;
}

/* キャリアパス例テーブル - 5列レイアウト最適化 */
.guidelines-detail .recruit-table thead th:nth-child(1),
.guidelines-detail .recruit-table tbody td:nth-child(1) {
  width: 14%;
  min-width: 130px;
}

.guidelines-detail .recruit-table thead th:nth-child(2),
.guidelines-detail .recruit-table tbody td:nth-child(2) {
  width: 18%;
  min-width: 150px;
}

.guidelines-detail .recruit-table thead th:nth-child(3),
.guidelines-detail .recruit-table tbody td:nth-child(3) {
  width: 24%;
  min-width: 170px;
}

.guidelines-detail .recruit-table thead th:nth-child(4),
.guidelines-detail .recruit-table tbody td:nth-child(4) {
  width: 26%;
  min-width: 180px;
}

.guidelines-detail .recruit-table thead th:nth-child(5),
.guidelines-detail .recruit-table tbody td:nth-child(5) {
  width: 18%;
  min-width: 130px;
  white-space: nowrap;
}

/* 分岐パステーブル - 4列レイアウト最適化 */
.guidelines-detail .recruit-table tbody tr td:nth-child(1):not([colspan]) {
  width: 14%;
  min-width: 120px;
  white-space: nowrap;
}

.guidelines-detail .recruit-table tbody tr td:nth-child(2):not([colspan]) {
  width: 23%;
  min-width: 180px;
}

.guidelines-detail .recruit-table tbody tr td:nth-child(3):not([colspan]) {
  width: 30%;
  min-width: 200px;
}

.guidelines-detail .recruit-table tbody tr td:nth-child(4):not([colspan]) {
  width: 33%;
  min-width: 220px;
}

/* ホバー効果（コントラスト改善） */
.guidelines-detail .recruit-table tbody tr:hover {
  background: #fff8f0;
}

.guidelines-detail .recruit-table tbody tr:hover th[scope="row"] {
  background: #fff0e0;
}

/* 最終行の角丸 */
.guidelines-detail .recruit-table tbody tr:last-child th:first-child {
  border-radius: 0 0 0 8px;
}

.guidelines-detail .recruit-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* リスト */
.guidelines-detail ul.guidelines-list {
  max-width: 960px;
  margin: 0 auto;
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 2;
  color: var(--color-text-primary);
}

.guidelines-detail ul.guidelines-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.guidelines-detail ul.guidelines-list li::marker {
  color: #ff8a3d;
}

/* 下部CTA */
.guidelines-bottom-cta {
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
}

.guidelines-bottom-cta .cta-block {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.guidelines-bottom-cta .cta-title {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.guidelines-bottom-cta .cta-description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.guidelines-bottom-cta .cta-button {
  min-width: 240px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* スマホ対応 - カード形式 */
@media (max-width: 768px) {
  /* ヒーロー */
  .page-header .hero-lead {
    margin-top: 1.5rem;
  }

  .page-header .hero-lead-text {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .page-header .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-header .hero-cta-primary,
  .page-header .hero-cta-secondary {
    width: 100%;
    min-width: auto;
  }

  /* TOC - 横スクロール */
  .guidelines-toc {
    top: 0;
  }

  .guidelines-toc-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .guidelines-toc-list::-webkit-scrollbar {
    display: none;
  }

  .guidelines-toc-list .toc-link {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  /* テーブル */
  .guidelines-detail .table-wrap {
    margin: 1.5rem 0;
    border-radius: 0;
    box-shadow: none;
  }

  .guidelines-detail .recruit-table {
    min-width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .guidelines-detail .recruit-table caption {
    font-size: 1rem;
    font-weight: 600;
    padding: 0 0 1rem 0;
    text-align: left;
    color: #f37021;
  }

  /* ヘッダーを非表示 */
  .guidelines-detail .recruit-table thead {
    display: none;
  }

  /* 各行をカード形式に */
  .guidelines-detail .recruit-table tbody tr {
    display: block;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .guidelines-detail .recruit-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .guidelines-detail .recruit-table tbody tr:hover {
    background: #fff;
  }

  /* セルをブロック表示 */
  .guidelines-detail .recruit-table th,
  .guidelines-detail .recruit-table td {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 1.125rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.75;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
  }

  .guidelines-detail .recruit-table tbody tr th:first-child,
  .guidelines-detail .recruit-table tbody tr td:first-child {
    border-radius: 12px 12px 0 0;
  }

  .guidelines-detail .recruit-table tbody tr th:last-child,
  .guidelines-detail .recruit-table tbody tr td:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
  }

  /* th[scope="row"]の特別スタイル */
  .guidelines-detail .recruit-table th[scope="row"] {
    background: #f37021;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.125rem 1.25rem;
    border: none;
    white-space: normal;
    line-height: 1.6;
  }

  /* 各セルにラベルを追加 */
  .guidelines-detail .recruit-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 500;
    color: #999;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
  }

  /* 評価の視点テーブル - th[scope="row"]の次のtdにラベル不要（説明が自明） */
  .guidelines-detail .recruit-table tbody tr:has(th[scope="row"]) td::before {
    content: "";
    display: none;
  }

  /* リスト */
  .guidelines-detail ul.guidelines-list {
    font-size: 0.95rem;
    padding-left: 1.25rem;
  }

  /* 下部CTA */
  .guidelines-bottom-cta .cta-block {
    padding: 2rem 1.5rem;
  }

  .guidelines-bottom-cta .cta-title {
    font-size: 1.35rem;
  }

  .guidelines-bottom-cta .cta-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .guidelines-bottom-cta .cta-button {
    width: 100%;
    min-width: auto;
  }
}

/* ===================================
   「求職者にメッセージ」セクション
   文字色の視認性向上
   =================================== */
#recruit-message .section-title h2,
#recruit-message .section-title-animated {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#recruit-message .section-title h2::after {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
}

#recruit-message .message-text {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

#recruit-message .message-highlight {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-left-color: #ffffff !important;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

#recruit-message .message-content {
  background: rgba(243, 112, 33, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===================================
   相談窓口セクション - 落ち着いたモダンデザイン
   =================================== */
.consultation-section {
  background: linear-gradient(160deg, #c95a0b 0%, #d46b1c 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.consultation-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.consultation-particle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatSlow 20s ease-in-out infinite;
}

.consultation-particle:nth-child(1) {
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.consultation-particle:nth-child(2) {
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  animation-delay: 5s;
}

.consultation-particle:nth-child(3) {
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  animation-delay: 10s;
}

.consultation-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.consultation-main {
  color: #ffffff;
}

.consultation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.consultation-badge__icon {
  font-size: 1.25rem;
}

.consultation-badge__text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.consultation-title {
  margin-bottom: 2rem;
}

.consultation-title__accent {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.consultation-title__main {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.consultation-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.consultation-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.consultation-feature:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(8px);
}

.consultation-feature__number {
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-primary);
}

.consultation-feature p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.consultation-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.consultation-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #ffffff;
  color: #f37021;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  text-decoration: none;
}

.consultation-cta__button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  background: #fff8f0;
}

.consultation-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  border-radius: 50%;
  color: #ffffff;
}

.consultation-cta__icon svg {
  width: 20px;
  height: 20px;
}

.consultation-cta__text {
  flex: 1;
}

.consultation-cta__arrow {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.consultation-cta__button:hover .consultation-cta__arrow {
  transform: translateX(5px);
}

.consultation-cta__note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
  padding-left: 1rem;
}

/* スタッフ画像 */
.consultation-staff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.consultation-staff__image-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}

.consultation-staff__image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.consultation-staff__glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.consultation-staff__info {
  text-align: center;
}

.consultation-staff__label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 992px) {
  .consultation-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .consultation-main {
    order: 2;
  }

  .consultation-staff {
    order: 1;
  }

  .consultation-badge {
    justify-content: center;
  }

  .consultation-feature {
    text-align: left;
  }

  .consultation-cta {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .consultation-section {
    padding: 4rem 0;
  }

  .consultation-wrapper {
    padding: 2rem;
  }

  .consultation-staff__image-wrapper {
    width: 160px;
    height: 160px;
  }

  .consultation-cta__button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===================================
   セクション間余白の統一
   =================================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 769px) {
  .section {
    padding: 5rem 0;
  }
}

/* 連続するセクションの余白を調整 */
.section + .section {
  padding-top: 3rem;
}

@media (min-width: 769px) {
  .section + .section {
    padding-top: 4rem;
  }
}

/* 特殊背景セクション後の余白調整 */
.section--muted + .section,
.section--accent + .section,
.consultation-section + .section {
  padding-top: 4rem;
}

/* ===================================
   モバイル表示の最適化
   =================================== */
@media (max-width: 768px) {
  /* ヘッダーのロゴとハンバーガーメニューの位置調整 */
  .header-container {
    padding: 0.75rem 1rem;
  }

  .header-brand {
    margin-left: 0;
  }

  .menu-toggle {
    margin-right: 0;
  }

  /* 背景グラデーション（ヴィネット効果）の軽減 */
  .hero:not(.has-bg-image) {
    background: linear-gradient(135deg, #fff8f0 0%, #fffaf5 50%, #fff8f0 100%);
  }

  .hero-overlay {
    opacity: 0.3;
  }

  /* セクションのパディング調整 */
  .section {
    padding: 3rem 0;
  }

  .section + .section {
    padding-top: 2rem;
  }

  /* コンテナの横パディング調整 */
  .container {
    padding: 0 1rem;
  }
}

/* ===================================
   フッターリンク
   =================================== */
.footer-links {
  margin-top: 1rem;
  text-align: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* フッターにリンクが複数ある場合のセパレーター */
.footer-links a + a::before {
  content: "|";
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   FAQセクション
   =================================== */
.faq-item {
  background: #ffffff;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 300;
  transition: transform 0.3s ease;
}

details[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  animation: fadeIn 0.3s ease;
}

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

/* ===================================
   お知らせセクション追加スタイル
   =================================== */
.news-item {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
  background-color: #fffaf5;
  transform: translateX(5px);
}

/* ===================================
   ページトップボタン
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   採用情報ページ - 働きたくなるデザイン強化
   ============================================ */

/* ヒーローセクション強化 */
.page-template-page-recruit-guidelines .page-header {
  background: linear-gradient(135deg, #fff8f0 0%, #ffede0 50%, #fff5eb 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
}

.page-template-page-recruit-guidelines .page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243, 112, 33, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.page-template-page-recruit-guidelines .page-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

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

.page-template-page-recruit-guidelines .page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.page-template-page-recruit-guidelines .page-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

/* ヒーローリード文とCTA強化 */
.page-template-page-recruit-guidelines .hero-lead {
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.page-template-page-recruit-guidelines .hero-lead-text {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.page-template-page-recruit-guidelines .hero-cta-primary {
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  box-shadow: 0 8px 25px rgba(243, 112, 33, 0.35);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.page-template-page-recruit-guidelines .hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.45);
}

/* 条件ハイライトパネル強化 */
.job-summary-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(243, 112, 33, 0.15);
  position: relative;
  z-index: 1;
}

.job-summary__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.job-summary__tag {
  display: inline-block;
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.job-summary__title {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  font-weight: 700;
  margin: 0;
}

/* 条件カードグリッド - PC版2カラム */
.job-summary__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-summary__item {
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.job-summary__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.job-summary__label {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-summary__label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.job-summary__value {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.5;
  display: block;
}

.job-summary__supplement {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.35rem;
}

.job-summary__footnote {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* 求職者へのメッセージセクション - 感情訴求強化 */
.applicant-message {
  position: relative;
  background: linear-gradient(135deg, #f37021 0%, #ff6b35 50%, #ff8a3d 100%);
  overflow: hidden;
}

.applicant-message__bg {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="2.5" fill="rgba(255,255,255,0.12)"/></svg>');
  opacity: 0.5;
}

.applicant-message__inner {
  position: relative;
  z-index: 1;
}

.applicant-message__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.applicant-message__title,
#message .applicant-message__title,
.applicant-message .applicant-message__title,
section.applicant-message h2.applicant-message__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

.applicant-message__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.applicant-message__text p {
  color: inherit;
  margin-bottom: 1rem;
}

.applicant-message__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.applicant-message__cta .btn-primary {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.applicant-message__cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.applicant-message__cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.applicant-message__cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* 働き方セクション強化 */
.page-template-page-recruit-guidelines .guidelines-list {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  list-style: none !important;
}

.page-template-page-recruit-guidelines .guidelines-list li {
  position: relative;
  padding-left: 2rem !important;
  margin-bottom: 1rem !important;
  font-size: 1.05rem;
}

.page-template-page-recruit-guidelines .guidelines-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* 下部CTA強化 - 大胆なデザイン */
.guidelines-bottom-cta {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
  padding: 4rem 0;
}

.guidelines-bottom-cta .cta-block {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border: 2px solid rgba(243, 112, 33, 0.2);
  position: relative;
  overflow: hidden;
}

.guidelines-bottom-cta .cta-block::before {
  content: '🎉';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 80px;
  opacity: 0.1;
}

.guidelines-bottom-cta .cta-title {
  font-size: 2rem;
  background: linear-gradient(135deg, #f37021 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guidelines-bottom-cta .cta-description {
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

.guidelines-bottom-cta .cta-button {
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  box-shadow: 0 8px 25px rgba(243, 112, 33, 0.35);
  font-size: 1.1rem;
  padding: 1.25rem 3rem;
}

.guidelines-bottom-cta .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.45);
}

/* 目次（TOC）強化 */
.guidelines-toc {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid #e8e8e8;
}

.guidelines-toc-list .toc-link {
  position: relative;
}

.guidelines-toc-list .toc-link:hover {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
}

.guidelines-toc-list .toc-link.is-active {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
}

/* セクションタイトル強化 */
.page-template-page-recruit-guidelines .section-title h2 {
  position: relative;
  display: inline-block;
}

.page-template-page-recruit-guidelines #work .section-title h2::after,
.page-template-page-recruit-guidelines #evaluation .section-title h2::after,
.page-template-page-recruit-guidelines #career-path .section-title h2::after,
.page-template-page-recruit-guidelines #branch-path .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #ff8a3d 100%);
  border-radius: 2px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .page-template-page-recruit-guidelines .page-header {
    padding-bottom: 2rem;
  }
  
  .job-summary-panel {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .job-summary__list {
    grid-template-columns: 1fr;
  }
  
  .applicant-message__content {
    padding: 2rem 1.5rem;
  }
  
  .applicant-message__title {
    font-size: 1.5rem;
  }
  
  .applicant-message__cta {
    flex-direction: column;
  }
  
  .applicant-message__cta .btn {
    width: 100%;
  }
  
  .guidelines-bottom-cta {
    padding: 2.5rem 0;
  }
  
  .guidelines-bottom-cta .cta-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   詳細募集要項テーブル - 視認性向上デザイン
   ============================================ */

/* PC版テーブル強化 */
.page-template-page-recruit-guidelines .guidelines-detail .recruit-table {
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.page-template-page-recruit-guidelines .guidelines-detail .recruit-table thead th {
  background: linear-gradient(135deg, #f37021 0%, #ff6b35 100%);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
}

.page-template-page-recruit-guidelines .guidelines-detail .recruit-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.page-template-page-recruit-guidelines .guidelines-detail .recruit-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.page-template-page-recruit-guidelines .guidelines-detail .recruit-table tbody tr:hover {
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
}

.page-template-page-recruit-guidelines .guidelines-detail .recruit-table th,
.page-template-page-recruit-guidelines .guidelines-detail .recruit-table td {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-template-page-recruit-guidelines .guidelines-detail .recruit-table th[scope="row"] {
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
  color: var(--color-primary);
  font-weight: 700;
  border-right: 4px solid var(--color-primary);
}

/* 評価の視点・キャリアパステーブル強化 */
.page-template-page-recruit-guidelines #evaluation .recruit-table,
.page-template-page-recruit-guidelines #career-path .recruit-table,
.page-template-page-recruit-guidelines #branch-path .recruit-table {
  background: #ffffff;
}

.page-template-page-recruit-guidelines #evaluation .recruit-table tbody td,
.page-template-page-recruit-guidelines #career-path .recruit-table tbody td,
.page-template-page-recruit-guidelines #branch-path .recruit-table tbody td {
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

/* テーブルキャプション強化 */
.page-template-page-recruit-guidelines .guidelines-detail .recruit-table caption {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: 1.25rem;
  text-align: left;
}

/* ============================================
   求職者メッセージ - 可視化・グリッドデザイン
   ============================================ */

.applicant-message__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.applicant-message__content {
  text-align: left;
  padding: 2.5rem;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.applicant-message__title,
#message .applicant-message__title,
.applicant-message .applicant-message__title,
section.applicant-message h2.applicant-message__title {
  text-align: left;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary) !important;
  -webkit-text-fill-color: var(--color-primary) !important;
  text-shadow: none !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.applicant-message__text {
  color: var(--color-text-primary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  text-shadow: none;
}

.applicant-message__text p {
  color: inherit;
  margin-bottom: 1rem;
}

.applicant-message__cta {
  justify-content: flex-start;
  display: flex;
  gap: 1rem;
}

.applicant-message__cta .btn-primary {
  background: linear-gradient(135deg, #f37021 0%, #ff8a3d 100%);
  color: #fff;
  box-shadow: 0 5px 15px rgba(243, 112, 33, 0.3);
  border: none;
}

.applicant-message__cta .btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.applicant-message__cta .btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 特徴カードエリア */
.applicant-message__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.applicant-feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.applicant-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.applicant-feature-icon {
  font-size: 2rem;
  background: #fff0e0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.applicant-feature-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.applicant-feature-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .applicant-message__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .applicant-message__content {
    text-align: center;
  }
  
  .applicant-message__title {
    text-align: center;
  }
  
  .applicant-message__cta {
    justify-content: center;
  }
}

/* ============================================
   詳細募集要項 - カード型グリッドデザイン
   ============================================ */

.recruit-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recruit-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.recruit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(243, 112, 33, 0.15);
  border-color: rgba(243, 112, 33, 0.3);
}

.recruit-card__header {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  padding: 1.5rem;
  border-bottom: 2px solid #f37021;
  position: relative;
}

.recruit-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.recruit-card__tag {
  display: inline-block;
  background: #f37021;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
}

.recruit-card__body {
  padding: 1.5rem;
  flex-grow: 1;
}

.recruit-card__list {
  margin: 0;
}

.recruit-card__item {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.25rem;
}

.recruit-card__item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.recruit-card__item dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.recruit-icon {
  font-size: 1.2rem;
}

.recruit-card__item dd {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
  line-height: 1.6;
  padding-left: 2rem;
}

.recruit-card__footer {
  padding: 1.5rem;
  background: #fafafa;
  text-align: center;
  border-top: 1px solid #eee;
}

.recruit-card__btn {
  width: 100%;
  display: block;
  padding: 1rem;
  border-radius: 8px;
  background: #f37021;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.recruit-card__btn:hover {
  background: #ff8a3d;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .recruit-card-grid {
    grid-template-columns: 1fr;
  }
}
