/*
Theme Name: Hapine Suite Theme
Theme URI: https://hapine-suite.co.jp/
Author: Hapine Suite
Description: ハピネ・スイート株式会社様向け WordPressオリジナルテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hapine-suite
*/

/* --- キーカラー定義 --- */
:root {
  --color-primary: #006666;       /* メイン：ディープティール */
  --color-primary-dark: #004d4d;  /* メインホバー時 */
  --color-secondary: #008080;    /* サブ：ティールグリーン */
  --color-accent: #e67e22;       /* アクセント：暖かみのあるオレンジ */
  --color-accent-hover: #d35400; /* アクセントホバー時 */
  --color-bg-light: #f4f8f8;     /* セクション背景：ライトアイスブルー */
  --color-text: #333333;         /* 本文テキスト：ダークグレー */
  --color-border: #e0e0e0;       /* 枠線・区切り線 */
  --color-white: #ffffff;
}

/* --- リセット＆ベーススタイル --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
}

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

a:hover {
  color: var(--color-primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

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

/* --- コンバージョン・汎用ボタン --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-bg-light);
  text-decoration: none;
}

/* --- ヘッダーロゴの最適化 --- */
.site-branding .site-logo,
.custom-logo {
  width: 300px;          /* PCでの表示横幅 */
  height: auto;          /* 縦横比を維持 */
  max-height: 75px;      /* ヘッダーからはみ出さないための高さ上限 */
  display: block;
  object-fit: contain;
}

/* スマホ表示時のサイズ調整 */
@media screen and (max-width: 768px) {
  .site-branding .site-logo,
  .custom-logo {
    width: 170px;        /* SPでの表示横幅 */
    max-height: 45px;
  }
}

/* --- トップページ用パーツスタイル --- */
.problem-card {
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 8px;
  background: var(--color-white);
}

.problem-solution-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 6px;
}

.bottom-cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0;
}

.tel-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffeb3b;
  text-decoration: none;
}


/* ==========================================================================
   4. サービス概要〜7. 導入の流れ 追記CSS
   ========================================================================== */

/* 見出し共通設定 */
.section-header {
  margin-bottom: 50px;
}

.section-sub {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0 0 10px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0;
}

/* 4. サービス概要（カードレイアウト） */
.concept-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.concept-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 35px 25px 25px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color-primary);
}

.card-number {
  position: absolute;
  top: -20px;
  left: 25px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concept-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: 10px;
  margin-bottom: 15px;
}

/* 5. 3つの強み */
.advantage-block {
  margin-bottom: 60px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px;
}

.advantage-block:last-child {
  margin-bottom: 0;
}

.advantage-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 15px;
}

.adv-num {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-accent);
  line-height: 1;
}

.advantage-header h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0;
}

.advantage-header h3 small {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: normal;
}

/* 強み01：時間比較テーブル */
.time-compare-table {
  overflow-x: auto;
  margin-top: 20px;
}

.time-compare-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.time-compare-table th,
.time-compare-table td {
  padding: 15px;
  border: 1px solid var(--color-border);
}

.time-compare-table th {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  font-weight: bold;
}

.row-new {
  background-color: #eef6f6;
  color: var(--color-primary);
  font-size: 1.05rem;
}

/* 強み02：食事タイプグリッド */
.food-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.food-card {
  background: var(--color-bg-light);
  padding: 20px;
  border-radius: 6px;
}

.food-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.food-card h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* 強み03：料金リスト */
.advantage-list {
  padding-left: 20px;
  margin: 0;
}

.advantage-list li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* 6. バックアップ体制 */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.support-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  position: relative;
}

.support-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.support-card h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 0 0 10px;
}

/* 7. 導入の流れ */
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.step-item {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  left: 45px;
  width: 2px;
  height: calc(100% - 20px);
  background-color: var(--color-border);
}

.step-num {
  width: 90px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.step-num.step-final {
  background: var(--color-accent);
}

.step-content {
  background: var(--color-bg-light);
  padding: 15px 25px;
  border-radius: 6px;
  flex-grow: 1;
}

.step-content h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.step-content h4 small {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* レスポンシブ調整（スマホ対応） */
@media screen and (max-width: 768px) {
  .step-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .step-item:not(:last-child)::after {
    display: none;
  }
  
  .step-num {
    width: 100%;
    height: 35px;
  }
}

/* ==========================================================================
   ヘッダー＆ハンバーガーメニュー スタイル
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* ロゴ */
.brand-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* PC用メニュー */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.sp-menu-contact {
  display: none;
}

/* ハンバーガーボタン（デフォルト非表示） */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 1002;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 6px auto;
  transition: all 0.3s ease-in-out;
}

/* ハンバーガー開閉アニメーション */
.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- レスポンシブ（スマホ表示時：768px以下） --- */
@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .hamburger-btn {
    display: block;
  }

  /* モバイルドロワーメニュー */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 100px 30px 40px;
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-navigation.is-open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu a {
    font-size: 1.1rem;
    display: block;
    border-bottom: 1px solid var(--color-bg-light);
    padding-bottom: 10px;
  }

  .sp-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--color-border);
  }

  .sp-tel {
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
  }
}

/* ==========================================================================
   スクロールフェードイン アニメーション
   ========================================================================== */

/* 初期状態（透明＆少し下に配置） */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* 画面内に入った際（表示状態） */
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* （任意）要素を順番に時間差でフェードインさせる遅延クラス */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* ==========================================================================
   ヒーローセクション（背景画像＆オーバーレイ設定）
   ========================================================================== */

.hero-section {
  position: relative;
  /* デフォルト背景画像（※フォルダ内の画像パスを指定） */
  background-image: url('images/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 120px 0;
  color: var(--color-white);
  overflow: hidden;
}

/* オーバーレイのグラデーションを薄く調整 */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 不透明度を0.85/0.75から0.55/0.40へ落として背景画像をすっきり見せる */
  background: linear-gradient(
    135deg,
    rgba(0, 102, 102, 0.55) 0%,
    rgba(0, 40, 40, 0.40) 100%
  );
  z-index: 1;
}

/* 判読性を維持するため、テキスト背後にうっすらと暗い影を追加 */
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section .hero-sub,
.hero-section .hero-lead {
  /* 薄めのオーバーレイでも文字が際立つようテキストシャドウを強化 */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* ヒーロー内のテキスト視認性調整 */
.hero-section p {
  color: #f0f0f0;
}

/* --- ヒーローセクション内の見出し・テキスト視認性強化 --- */
.hero-section .hero-sub {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffeb3b; /* 明るいイエロー */
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* 濃いめの影で文字を浮き立たせる */
}

.hero-section h1 {
  color: var(--color-white) !important; /* テキスト全体を純白に固定 */
  font-size: 2.6rem;
  line-height: 1.4;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7); /* 判別しやすい濃い影 */
}

/* 『スマート給食』および強調箇所のハイライト装飾 */
.hero-section .highlight-text {
  color: #ffeb3b !important; /* ディープティールと対比度の高い鮮やかなイエロー */
  font-weight: 800;
  display: inline-block;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.3); /* 文字背景に薄い黒座布団を敷いて視認性を極大化 */
  border-radius: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-section p.hero-lead {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 35px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* スマホ対応調整 */
@media screen and (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
}


/* モバイル閲覧時のボタン余白・レイアウト調整 */
@media screen and (max-width: 768px) {
  .hero-cta-wrap {
    display: flex;
    flex-direction: column; /* ボタンを縦並びにする */
    align-items: center;
    gap: 15px; /* ボタン同士の間に15pxの隙間を確保 */
  }

  .hero-cta-wrap .btn {
    width: 100%;
    max-width: 320px; /* スマホ画面で押しやすい横幅 */
    margin-left: 0 !important; /* inlineの margin-left: 10px を上書きリセット */
  }
}


/* ==========================================================================
   作業時間短縮の比較図解スタイル
   ========================================================================== */
.time-comparison-container {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.time-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.time-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  position: relative;
}

.time-card.card-new {
  border-color: var(--color-primary);
  background: #f0fdfd;
}

.time-card-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 15px;
  text-align: center;
}

.time-card.card-new .time-card-header {
  border-bottom-color: var(--color-primary);
}

.time-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #555;
}

.time-card.card-new .time-card-title {
  color: var(--color-primary);
}

.time-total-badge {
  font-size: 1.8rem;
  font-weight: 800;
  color: #333;
  margin-top: 5px;
}

.time-card.card-new .time-total-badge {
  color: var(--color-primary);
  font-size: 2.2rem;
}

/* 内訳リスト */
.time-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.time-breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 0.95rem;
}

.time-breakdown-item.item-highlight {
  background: #ffebee;
  color: #c62828;
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
}

.time-breakdown-item.item-zero {
  background: #e0f2f1;
  color: var(--color-primary);
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* 時間短縮バッジ */
.time-cut-badge {
  position: absolute;
  top: -15px;
  right: -10px;
  background: #ff3860;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(255,56,96,0.3);
  transform: rotate(5deg);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .time-comparison-grid {
    grid-template-columns: 1fr;
  }
  .time-comparison-container {
    padding: 15px;
  }
}

/* ==========================================================================
   コスト構造比較の図解スタイル
   ========================================================================== */
.cost-comparison-container {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
}

.cost-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.cost-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.cost-card.card-new {
  border-color: var(--color-primary);
  background: #f0fdfd;
  position: relative;
}

.cost-card-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 15px;
  text-align: center;
}

.cost-card.card-new .cost-card-header {
  border-bottom-color: var(--color-primary);
}

.cost-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #555;
}

.cost-card.card-new .cost-card-title {
  color: var(--color-primary);
}

.cost-status-badge {
  font-size: 1.2rem;
  font-weight: 800;
  color: #666;
  margin-top: 5px;
}

.cost-card.card-new .cost-status-badge {
  color: #d32f2f;
  font-size: 1.3rem;
}

/* コスト内訳リスト */
.cost-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  font-size: 0.95rem;
}

.cost-item.item-cut {
  background: #e0f2f1;
  border-left-color: var(--color-primary);
  color: #004d40;
}

.cost-item .item-title {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cost-item .item-desc {
  font-size: 0.85rem;
  color: #d32f2f;
  font-weight: bold;
}

.cost-save-badge {
  position: absolute;
  top: -15px;
  right: -10px;
  background: #ff3860;
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(255,56,96,0.3);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .cost-comparison-grid {
    grid-template-columns: 1fr;
  }
  .cost-comparison-container {
    padding: 15px;
  }
}


/* ==========================================================================
   Contact Form 7 カスタムスタイル
   ========================================================================== */

/* フォーム全体の枠組み・入力要素 */
.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="email"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form select,
.cf7-custom-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* フォーカス時の強調表示 */
.cf7-custom-form input[type="text"]:focus,
.cf7-custom-form input[type="email"]:focus,
.cf7-custom-form input[type="tel"]:focus,
.cf7-custom-form select:focus,
.cf7-custom-form textarea:focus {
  border-color: var(--color-primary, #006666);
  box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.15);
  outline: none;
}

/* チェックボックス・ラジオボタンの余白とレイアウト */
.cf7-custom-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 5px;
}

.cf7-custom-form .wpcf7-list-item {
  margin: 0;
}

.cf7-custom-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
}

.cf7-custom-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #006666);
}

/* エラーメッセージ・バリデーションスタイル */
.wpcf7-not-valid-tip {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

.wpcf7-response-output {
  margin: 20px 0 0 0 !important;
  padding: 15px !important;
  border-radius: 6px !important;
  text-align: center;
  font-weight: bold;
}

div.wpcf7-mail-sent-ok {
  background-color: #e8f5e9;
  border: 2px solid #4caf50 !important;
  color: #2e7d32;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
  background-color: #ffebee;
  border: 2px solid #ef5350 !important;
  color: #c62828;
}

/* 送信ボタンのCSS */
.cf7-custom-form input[type="submit"].btn-primary {
  background-color: var(--color-primary, #006666);
  color: #ffffff;
  border: none;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cf7-custom-form input[type="submit"].btn-primary:hover {
  background-color: #004d4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* スマホ表示の最適化 */
@media screen and (max-width: 768px) {
  .cf7-custom-form .wpcf7-checkbox {
    flex-direction: column;
    gap: 10px;
  }

  .cf7-custom-form input[type="submit"].btn-primary {
    width: 100%;
    padding: 16px 0;
  }
}

/* ==========================================================================
   投稿記事本文（Single Post）スタイル
   ========================================================================== */

/* 見出し H2 */
.post-body-container h2 {
  font-size: 1.5rem;
  color: var(--color-primary, #006666);
  border-left: 5px solid var(--color-primary, #006666);
  padding: 8px 15px;
  background: #f8f9fa;
  margin: 40px 0 20px 0;
  border-radius: 0 4px 4px 0;
}

/* 見出し H3 */
.post-body-container h3 {
  font-size: 1.25rem;
  color: #333;
  border-bottom: 2px solid var(--color-primary, #006666);
  padding-bottom: 8px;
  margin: 30px 0 15px 0;
}

/* 段落・画像 */
.post-body-container p {
  margin-bottom: 20px;
}

.post-body-container img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}

/* リスト表示 */
.post-body-container ul,
.post-body-container ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.post-body-container li {
  margin-bottom: 8px;
}

/* 引用ブロック */
.post-body-container blockquote {
  background: #f8f9fa;
  border-left: 4px solid #ccc;
  margin: 20px 0;
  padding: 15px 20px;
  font-style: italic;
  color: #555;
}

/* 記事ナビゲーションリンク */
.post-navigation a {
  color: var(--color-primary, #006666);
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-navigation a:hover {
  opacity: 0.7;
}


/* ==========================================================================
   お知らせ一覧（News Archive）スタイル
   ========================================================================== */

/* リストアイテム全体 */
.news-post-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  transition: background-color 0.2s ease;
}

.news-post-item:hover {
  background-color: #fafafa;
}

/* 投稿日時 */
.news-date {
  font-size: 0.95rem;
  color: #666;
  white-space: nowrap;
  min-width: 110px;
}

/* カテゴリーバッジ */
.news-cat {
  background-color: var(--color-primary, #006666);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

/* タイトル */
.news-title {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.news-title a {
  color: var(--color-text, #333333);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: var(--color-primary, #006666);
}

/* ページネーション（ページ送り）スタイル */
.news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.news-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 4px;
  color: var(--color-text, #333);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  background-color: var(--color-primary, #006666);
  color: #ffffff;
  border-color: var(--color-primary, #006666);
}

/* スマホ対応（縦並び配置） */
@media screen and (max-width: 768px) {
  .news-post-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
  }

  .news-date {
    min-width: auto;
  }

  .news-title {
    width: 100%;
    font-size: 1rem;
  }
}

/* ==========================================================================
   お知らせカルーセル (Swiper) スタイル調整
   ========================================================================== */
.news-swiper-container .swiper-pagination-bullet-active {
    background-color: var(--color-primary, #006666) !important;
}

.news-swiper-container .swiper-button-next,
.news-swiper-container .swiper-button-prev {
    width: 30px;
    height: 30px;
}

.news-swiper-container .swiper-button-next::after,
.news-swiper-container .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.news-card h3 a:hover {
    color: var(--color-primary, #006666) !important;
}

/* ==========================================================================
   お知らせカルーセル (Swiper フルワイド対応)
   ========================================================================== */
.news-section {
  position: relative;
  overflow: hidden; /* 横スクロールバーの発生を防止 */
}

.news-swiper-container {
  width: 100%;
  padding: 20px 24px 50px 24px !important;
  box-sizing: border-box;
}

/* Swiperスライド自体のスタイル（幅はSwiper JSに完全依存させる） */
.news-swiper-container .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.news-swiper-container .swiper-slide {
  height: auto !important; /* カードの高さを揃える */
  box-sizing: border-box;
}

/* 記事カード本体 */
.news-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card-img {
  display: block;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #f0f0f0;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news-card-meta time {
  color: #666;
  font-size: 0.85rem;
}

.news-card-cat {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.news-card-title {
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.news-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: var(--color-primary) !important;
}

/* 左右ナビゲーションボタン */
.news-swiper-container .swiper-button-next,
.news-swiper-container .swiper-button-prev {
  color: var(--color-primary) !important;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  top: 45%;
}

.news-swiper-container .swiper-button-next::after,
.news-swiper-container .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

/* ページネーション */
.news-swiper-container .swiper-pagination-bullet-active {
  background-color: var(--color-primary) !important;
}

/* ==========================================================================
   お知らせカルーセル (Swiper 中央寄せ・最大幅調整)
   ========================================================================== */
.news-swiper-container {
  width: 100%;
  max-width: 100%;
  padding: 20px 20px 50px 20px !important;
  box-sizing: border-box;
  margin: 0 auto;
}

/* 左右ナビゲーションボタン（左右の余白位置を微調整） */
.news-swiper-container .swiper-button-prev {
  left: 10px;
}
.news-swiper-container .swiper-button-next {
  right: 10px;
}

/* PC閲覧時（1200px以上）に中央寄せ＆最大幅を設定 */
@media screen and (min-width: 1200px) {
  .news-swiper-container {
    max-width: 1280px; /* お好みに応じて 1200px〜1360px 程度に調整可能 */
    padding: 20px 50px 50px 50px !important; /* 左右矢印ボタンとカードが被らないよう余白を確保 */
  }

  .news-swiper-container .swiper-button-prev {
    left: 0;
  }
  .news-swiper-container .swiper-button-next {
    right: 0;
  }
}

/* ==========================================================================
   サービスの強みについて（提案書デザイン準拠スタイル・Safari対応版）
   ========================================================================== */

/* 左上見出しバーと下線 */
.proposal-section-header {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
  margin-bottom: 40px;
}

.proposal-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.proposal-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 28px;
  background-color: var(--color-primary, #006666);
  border-radius: 2px;
}

/* サブリード */
.advantages-sub-lead {
  font-size: 1.5rem;
  font-weight: bold;
  color: #444444;
  margin-bottom: 50px;
  letter-spacing: 0.05em;
}

/* 3列グリッド（Safariのはみ出し防止のため minmax(0, 1fr) を指定） */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  max-width: 1050px;
  margin: 0 auto;
}

.advantage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0; /* Safariで子要素が親幅を突き破るのを防ぐ */
  width: 100%;
}

/* 角丸カード（ティールグリーン背景） */
.advantage-pill-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 300px;
  background-color: #24979b; /* 提案書カラー（ティール） */
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(36, 151, 155, 0.15);
  box-sizing: border-box;
  min-width: 0;         /* Safari対策 */
  overflow: hidden;     /* カード外への突き抜けを確実に防止 */
}

/* カード内テキスト */
.pill-number-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-align: center;
  flex-shrink: 0; /* 画像に押し出されないよう固定 */
}

/* アイコン画像表示エリア */
.pill-icon-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* アイコン画像自体の制御（Safariの原寸大暴走・荒れを防止） */
.pill-icon-wrap img {
  width: 100px !important;
  height: 100px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

/* カード下部の説明文 */
.advantage-bottom-text {
  margin-top: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #444444;
  text-align: center;
  line-height: 1.6;
}

/* --- レスポンシブ対応（タブレット・スマホ） --- */
@media screen and (max-width: 860px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    max-width: 300px;
  }

  .advantages-sub-lead {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }

  .proposal-title {
    font-size: 1.4rem;
  }

  .advantage-bottom-text {
    font-size: 1rem;
    margin-top: 15px;
  }
}


/* ==========================================================================
   ミッション・ポリシーボックス（レスポンシブ対応）
   ========================================================================== */
.mission-policy-box {
  background: #f8f9fa;
  padding: 25px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 5px solid var(--color-primary, #006666);
}

.mission-policy-title {
  color: var(--color-primary, #006666);
  font-size: 1.15rem;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.mission-policy-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  line-height: 1.8;
}

.mission-policy-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mission-policy-item:last-child {
  margin-bottom: 0;
}

.policy-badge {
  color: var(--color-primary, #006666);
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.policy-desc {
  flex-grow: 1;
}

/* スマホ表示時（768px以下） */
@media screen and (max-width: 768px) {
  .mission-policy-box {
    padding: 20px 16px;
  }

  .mission-policy-item {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }

  .policy-badge {
    font-size: 1rem;
    line-height: 1.4;
  }

  .policy-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 4px;
  }
}

/* ==========================================================================
   採用情報ページ (Recruit Page) スタイル
   ========================================================================== */

/* ヒーロー */
.recruit-hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 70px 20px;
}

.recruit-sub-title {
  display: block;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #ffeb3b;
  margin-bottom: 5px;
}

.recruit-hero-title {
  font-size: 2.4rem;
  color: #fff !important;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.recruit-hero-copy {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin: 0;
}

/* 求める人物像 */
.target-profile-box {
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  padding: 35px 25px;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.target-profile-box h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.target-profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.target-profile-list li {
  font-size: 1.15rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
}

.target-profile-list li i {
  color: var(--color-accent, #e67e22);
  font-size: 1.3rem;
}

/* 職場の特徴グリッド */
.workplace-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 950px;
  margin: 0 auto;
}

.point-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
}

.point-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.point-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--color-primary);
}

.point-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* 募集要項カード＆定義リスト */
.job-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.job-card-title {
  font-size: 1.3rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 20px;
}

.job-spec-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 15px;
  column-gap: 20px;
  margin: 0;
}

.job-spec-list dt {
  font-weight: bold;
  color: var(--color-primary);
  background: var(--color-bg-light);
  padding: 10px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.job-spec-list dd {
  margin: 0;
  padding: 10px 5px;
  line-height: 1.7;
}

/* 応募フロー (横並びステップ) */
.hiring-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.hiring-step-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  position: relative;
}

.hiring-step-item .step-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.hiring-step-item.hiring-step-final .step-badge {
  background: var(--color-accent, #e67e22);
}

.hiring-step-item h4 {
  font-size: 1.05rem;
  margin: 0 0 6px 0;
  color: var(--color-primary);
}

.hiring-step-item p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* 締めメッセージ */
.recruit-final-message {
  margin-bottom: 35px;
}

.recruit-final-message h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.recruit-final-message p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

/* --- スマホ表示時のレスポンシブ --- */
@media screen and (max-width: 768px) {
  .workplace-points-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .job-spec-list {
    grid-template-columns: 1fr;
    row-gap: 5px;
  }

  .job-spec-list dt {
    padding: 6px 12px;
  }

  .job-spec-list dd {
    padding: 5px 12px 15px 12px;
  }

  .hiring-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recruit-final-message h2 {
    font-size: 1.3rem;
  }
}


/* ==========================================================================
   採用情報ページ (中央揃え＆フォント拡大対応)
   ========================================================================== */

/* --- 1. こんな方を探しています！ --- */
.target-profile-box {
  text-align: center;
}

.target-profile-box h2 {
  font-size: 1.6rem; /* 1.4remから拡大 */
  margin-bottom: 25px;
}

.target-profile-list {
  align-items: center; /* リスト全体を中央寄せ */
  gap: 16px;
}

.target-profile-list li {
  font-size: 1.3rem; /* 1.15remから拡大 */
  justify-content: center; /* チェックアイコンと文言を中央揃え */
}

/* --- 2. 職場の特徴グリッド --- */
.point-card h3 {
  font-size: 1.3rem; /* 1.15remから拡大 */
  text-align: center;
}

.point-card p {
  font-size: 1.05rem; /* 0.95remから拡大 */
  text-align: center;
  line-height: 1.7;
}

/* --- 3. 募集要項 --- */
.job-card-title {
  font-size: 1.45rem; /* 1.3remから拡大 */
  text-align: center;
}

.job-spec-list dt {
  font-size: 1.15rem;
  justify-content: center; /* 見出しラベルを中央寄せ */
  text-align: center;
}

.job-spec-list dd {
  font-size: 1.1rem;
  text-align: center; /* 内容テキストを中央揃え */
  line-height: 1.8;
}

/* --- 4. 応募までの流れ --- */
.hiring-step-item h4 {
  font-size: 1.2rem; /* 1.05remから拡大 */
  text-align: center;
}

.hiring-step-item p {
  font-size: 0.95rem; /* 0.82remから拡大 */
  text-align: center;
  line-height: 1.5;
}

/* --- スマホ表示時の微調整（768px以下） --- */
@media screen and (max-width: 768px) {
  .target-profile-list li {
    font-size: 1.15rem;
  }
  .job-spec-list dd {
    font-size: 1rem;
  }
}

/* 画像ラッパーおよび画像自体のサイズ調整 */
.pill-icon-wrap {
  width: 100%;
  height: 90px; /* カード内での画像表示高さ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-icon-wrap img {
  max-width: 90px; /* 最大横幅 */
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* スマホ表示時 */
@media screen and (max-width: 768px) {
  .pill-icon-wrap {
    height: 70px;
  }

  .pill-icon-wrap img {
    max-width: 70px;
  }
}