/* ===================================================================
   styles.css - ページ固有スタイル（index.html用）
   作成日: 2026-02-18
   説明: インラインCSSから分離、CSS変数で統一、保守性向上
   =================================================================== */

/* ========================================
   CSS変数定義（カラー・余白・フォントサイズ）
   ======================================== */
:root {
  /* カラーパレット */
  --color-primary: #f0b800;
  --color-text-dark: #333;
  --color-text-medium: #555;
  --color-text-light: #666;
  --color-accent: #f0b800;
  --color-bg-light: #f5f5f5;
  --color-bg-yellow: #fffcf0;
  --color-secondary: #78909c;
  --color-border-light: #eee;
  --color-shadow: rgba(0, 0, 0, 0.05);
  
  /* 余白 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
  
  /* フォントサイズ */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-xxl: 2rem;     /* 32px */
  
  /* スクロール矢印用（アニメーション） */
  --hint-a: 24px;
  --hint-b: 14px;
  
  /* 旧変数との互換性 */
  --text-color: var(--color-text-medium);
  --headline-color: var(--color-text-dark);
  --accent-color: var(--color-accent);
  --background-color: #fdfdfd;
}

/* ========================================
   基本スタイル
   ======================================== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: var(--font-size-base);
  word-break: break-all;
  padding-top: 74px;
}

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

.content-wrapper {
  padding-top: 0;
}

section {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

section:first-of-type {
  padding-top: var(--spacing-lg);
}

/* セクション間の余白 */
section + section {
  margin-top: 0;
}

/* ========================================
   タイポグラフィ
   ======================================== */
h2.section-title {
  font-size: var(--font-size-xxl);
  margin: 0 0 var(--spacing-lg);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-color);
  color: var(--headline-color);
  font-weight: 700;
  display: inline-block;
}

h2.section-title.no-border {
  border: none;
}

h3.section-subtitle {
  font-weight: 700;
  color: var(--headline-color);
  margin: 0 0 var(--spacing-md);
  font-size: 1.4em;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--color-border-light);
  margin: 0 auto;
  width: 80%;
}

/* ========================================
   蛍光マーカー風強調（アクセシビリティ改善版）
   ======================================== */
.highlight {
  display: inline;
  font-weight: 700;
  background: linear-gradient(transparent 60%, #fff3b8 60%);
  padding: 0 4px;
  color: var(--headline-color);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ========================================
   ヒーロースライダー
   ======================================== */
#main-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 50px;
}

.slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-bg-light);
}

@media (min-width: 600px) {
  .slides {
    aspect-ratio: 16/7;
  }
}

/* スライド本体 */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ヒーローテキスト */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.3;
  font-weight: 700;
}

.hero-copy p {
  margin: 0 0 var(--spacing-md);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 500;
}

/* ヒーローボタン */
.hero-btn {
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 30px;
  padding: 12px 30px;
  text-shadow: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  font-size: 1.1em;
  border: 2px solid #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s, opacity 0.3s;
}

.hero-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* スライダーコントロール */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  transition: background 0.3s;
  z-index: 12;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-prev {
  left: var(--spacing-md);
}

.hero-next {
  right: var(--spacing-md);
}

/* インジケーター */
.hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
  gap: 12px;
  pointer-events: auto;
  z-index: 12;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  opacity: 0.8;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-dot[aria-pressed="true"] {
  background: #fff;
  opacity: 1;
}

/* ========================================
   スクロール矢印
   ======================================== */
.scroll-down {
  position: fixed;
  bottom: var(--hint-a);
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: var(--spacing-md);
  height: var(--spacing-md);
  border-right: 3px solid var(--color-text-dark);
  border-bottom: 3px solid var(--color-text-dark);
  opacity: 0.85;
  animation: hint 1.6s infinite;
  z-index: 900;
  transition: opacity 0.3s;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-down.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes hint {
  0%, 100% {
    bottom: var(--hint-a);
  }
  50% {
    bottom: var(--hint-b);
  }
}

/* ========================================
   グリッドレイアウト（特徴・サービス）
   ======================================== */
.features-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   カードスタイル（共通）
   ======================================== */
.card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--color-shadow);
  border: 2px solid #f9f9f9;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

/* 特徴カード */
.feature-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon {
  font-size: 3em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 10px;
}

.feature-box h3 {
  margin: 10px 0;
  color: var(--headline-color);
  font-weight: 700;
  font-size: 1.2em;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}

.feature-box p {
  font-size: 0.95em;
  text-align: left;
  margin: 0;
  line-height: 1.6;
}

/* サービスカード */
.service-box {
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-box h3 {
  margin: 0 auto 15px;
  color: var(--headline-color);
  font-weight: 700;
  font-size: 1.2em;
  border-bottom: 2px solid var(--accent-color);
  display: block;
  width: fit-content;
  padding-bottom: 5px;
  text-align: center;
}

.service-box p {
  font-size: 0.95em;
  text-align: left;
  margin: 0;
  line-height: 1.6;
}

/* ========================================
   サービスボタン
   ======================================== */
.service-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  background: var(--accent-color);
  color: var(--color-text-dark);
  font-weight: 800;
  text-align: center;
  padding: 14px 0;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(240, 184, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.05em;
}

.service-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(240, 184, 0, 0.5);
  background: #ffc400;
}

.service-btn::after {
  content: '→';
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s;
  font-family: Arial, sans-serif;
}

.service-btn:hover::after {
  transform: translateX(5px);
}

/* ========================================
   テーブル
   ======================================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.info-table thead th {
  background: #f9f9f9;
  font-weight: 600;
  width: auto;
  color: var(--headline-color);
  text-align: center;
}

.info-table tbody th {
  background: #f9f9f9;
  font-weight: 600;
  width: 25%;
  min-width: 120px;
  color: var(--headline-color);
}

.info-table caption {
  caption-side: top;
  font-weight: 700;
  color: var(--headline-color);
  margin-bottom: 10px;
  font-size: 1.2em;
}

/* 営業時間テーブル */
.hours-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hours-table td {
  text-align: center;
}

/* スクリーンリーダー専用キャプション */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ========================================
   メンバー紹介
   ======================================== */
.member {
  margin-bottom: 50px;
  background: #fff;
  padding: var(--spacing-md);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  text-align: left;
}

.member .img-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #f9f9f9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: var(--headline-color);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 5px;
}

.member h3 span {
  font-size: 0.7em;
  font-weight: normal;
  margin-left: 10px;
  display: inline-block;
  color: #fff;
  background: var(--color-text-medium);
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
}

.member p {
  margin: 0;
}

/* ========================================
   お知らせ
   ======================================== */
.news-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.news-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
}

.news-list .date {
  color: #999;
  margin-right: var(--spacing-md);
  font-weight: bold;
  width: 100px;
  flex-shrink: 0;
}

.news-list a {
  color: var(--text-color);
  text-decoration: none;
  flex: 1;
  transition: color 0.3s;
}

.news-list a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  text-align: left;
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: var(--spacing-md);
}

.faq-q {
  font-weight: 700;
  color: var(--headline-color);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  cursor: pointer;
}

.faq-q::before {
  content: 'Q.';
  color: var(--accent-color);
  font-size: 1.3em;
  margin-right: 10px;
  font-weight: 900;
}

.faq-a {
  font-size: 0.95em;
  line-height: 1.6;
  margin-left: 35px;
}

/* ========================================
   ボタン（汎用）
   ======================================== */
.button {
  display: inline-block;
  background: var(--headline-color);
  color: #fff;
  padding: 16px 50px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* ボタンバリエーション */
.btn-line {
  background: #06c755;
}

.btn-tel {
  background: #fff;
  color: var(--color-text-dark);
  border: 2px solid var(--color-text-dark);
}

.btn-recruit {
  background: var(--accent-color);
  color: var(--color-text-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(240, 184, 0, 0.4);
}

.btn-recruit:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* ========================================
   フォーカススタイル（アクセシビリティ）
   ======================================== */
a:focus,
button:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.button:focus,
.service-btn:focus,
.hero-btn:focus {
  outline: 3px solid var(--color-text-dark);
  outline-offset: 2px;
}

/* ========================================
   SNSアイコン
   ======================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.social-icons img {
  height: 44px;
  width: auto !important;
  transition: opacity 0.3s;
}

.social-icons img:hover {
  opacity: 0.8;
}

/* ========================================
   悩みセクション
   ======================================== */
.pain-section {
  background: var(--color-bg-yellow);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: 12px;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  border: 1px solid #faebcc;
}

.pain-list {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
  margin-top: var(--spacing-md);
  max-width: 600px;
  width: 100%;
}

.pain-list li {
  background: #fff;
  padding: 15px var(--spacing-md);
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 6px solid var(--accent-color);
  box-shadow: 0 2px 5px var(--color-shadow);
  font-weight: 700;
  position: relative;
}

.pain-msg {
  margin-top: 25px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.6;
}

/* ========================================
   CASEセクション
   ======================================== */
.cases-section {
  background: #f9f9f9;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--spacing-xl) 0;
}

.voice-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 840px;
  margin: 0 auto;
}

/* CASEカード本体 */
.case-card-new {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--color-shadow);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: row;
  padding: 30px;
  gap: 35px;
  position: relative;
  transition: transform 0.3s;
  align-items: center;
}

.case-card-new:hover {
  transform: translateY(-3px);
}

/* 画像エリア：幅220px固定、高さ160px固定（アスペクト比4:3） */
.case-img-side {
  width: 220px;
  min-width: 220px;
  height: 160px;
  flex-shrink: 0;
  position: relative;
}

.case-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 本文エリア */
.case-body-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.case-new-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e0e0e0;
  gap: 15px;
}

.case-badge {
  background: var(--accent-color);
  color: var(--color-text-dark);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.9em;
  box-shadow: 0 2px 5px rgba(240, 184, 0, 0.3);
}

.case-new-title {
  margin: 0;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--headline-color);
}

/* テキストの左寄せ強制 */
.case-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  text-align: left !important;
}

.case-row:last-child {
  margin-bottom: 0;
}

.case-row .icon {
  font-size: 1.5em;
  margin-right: 15px;
  margin-top: -2px;
  flex-shrink: 0;
}

.case-row p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95em;
  text-align: left !important;
}

/* 配色：悩み（落ち着いた色） */
.case-row.problem {
  color: var(--color-text-dark);
}

.case-row.problem .icon {
  color: var(--color-secondary);
}

.case-row.problem .highlight {
  color: var(--color-text-dark);
  font-weight: 700;
}

/* 配色：解決（温かい色） */
.case-row.solution {
  color: var(--color-text-dark);
}

.case-row.solution .icon {
  color: var(--accent-color);
}

.case-row.solution .highlight {
  
  font-weight: 700;
}

/* ========================================
   代表メッセージ
   ======================================== */
.message-box {
  background: #fff;
  padding: var(--spacing-lg) 30px;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  text-align: left;
  position: relative;
  margin-top: 30px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.message-box::before {
  content: 'Message';
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--accent-color);
  color: #fff;
  padding: 5px var(--spacing-md);
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.9em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.rep-profile-side {
  width: 150px;
  flex-shrink: 0;
  text-align: center;
}

.rep-img-small {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #f0f0f0;
  margin-bottom: 10px;
}

.rep-name-title {
  font-size: 0.9em;
  font-weight: bold;
  color: var(--headline-color);
  line-height: 1.4;
}

.message-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.message-content p:last-child {
  margin-bottom: 0;
}

/* メッセージトグル（要約版・詳細版） */
.message-short,
.message-full {
  line-height: 1.8;
}

.read-more,
.read-less {
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  text-decoration: underline;
  padding: 0;
  font-size: 1em;
  transition: opacity 0.3s;
}

.read-more:hover,
.read-less:hover {
  opacity: 0.8;
}

/* ========================================
   フロー（ご利用までの流れ）
   ======================================== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: left;
  margin-top: 30px;
}

@media (min-width: 900px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step {
  background: #fff;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.flow-step-num {
  display: block;
  background: var(--accent-color);
  color: #fff;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.flow-step h4 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: var(--headline-color);
}

.flow-step p {
  font-size: 0.9em;
  margin: 0;
  color: var(--color-text-light);
}

/* ========================================
   採用バナー
   ======================================== */
.recruit-banner {
  background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
  border: 2px dashed var(--accent-color);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: 12px;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.recruit-banner p {
  text-align: center;
  line-height: 1.8;
}

/* ========================================
   行動指針
   ======================================== */
.principles-box {
  background: #fff;
  padding: var(--spacing-lg) 30px;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  max-width: 750px;
  margin: 0 auto;
  text-align: left;
}

.principles-list {
  margin-left: var(--spacing-md);
}

.principles-list li {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* ========================================
   地図・お問い合わせ
   ======================================== */
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: var(--spacing-md);
  border: 1px solid #ddd;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-section {
  background: #f0f8ff;
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: 12px;
  margin-bottom: var(--spacing-xl);
}

.contact-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 30px auto;
}

/* ========================================
   モバイル固定CTA
   ======================================== */
.mobile-sticky-cta {
  display: none;
  transition: transform 0.3s ease;
}

/* ========================================
   モバイル対応（600px以下）
   ======================================== */
@media (max-width: 600px) {
  body {
    padding-bottom: 70px;
  }

  /* メッセージボックス・メンバー：縦積み */
  .message-box {
    flex-direction: column !important;
    align-items: center;
  }

  .member {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .rep-profile-side {
    width: 100%;
    margin-bottom: 15px;
  }

  .member .img-container {
    margin-bottom: 15px;
  }

  .member p {
    text-align: left;
  }

  /* モバイル固定CTA */
  .mobile-sticky-cta {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 950;
    display: flex;
    gap: 8px;
    height: 60px;
  }

  .cta-item {
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
    position: relative;
    overflow: hidden;
  }

  .cta-item:active {
    transform: scale(0.98);
  }

  .cta-sub {
    flex: 0 0 35%;
    background: #06c755;
    color: #fff;
    border: 1px solid #05b54d;
  }

  .cta-sub .icon {
    font-size: 1.2em;
    margin-bottom: 2px;
  }

  .cta-main {
    flex: 1;
    background: var(--accent-color);
    color: var(--color-text-dark);
    border: 2px solid #fff;
    font-size: 13px;
  }

  .cta-main .icon {
    display: none;
  }

  .badge-recruit {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff3b30;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
    font-weight: 800;
  }

  .arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0.6;
  }

  /* テーブル横スクロール */
  #hours {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #hours .info-table {
    table-layout: fixed;
    min-width: 500px;
  }

  #hours .info-table th,
  #hours .info-table td {
    font-size: 13px;
    padding: 8px;
  }

  /* ヒーロースライダー調整 */
  #main-image-container .hero-nav {
    bottom: 15px !important;
  }

  #main-image-container .hero-prev,
  #main-image-container .hero-next {
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }

  #main-image-container .hero-copy {
    padding: var(--spacing-md);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 80%);
  }

  .hero-copy h1 {
    font-size: 20px;
  }

  .hero-copy p {
    font-size: 13px;
    display: none;
  }

  .hero-copy .button {
    padding: 10px var(--spacing-md);
    font-size: 0.9em;
  }

  /* 悩みリスト */
  .pain-list li {
    font-size: 0.95em;
  }

  /* CASEセクション：縦積み + CASE 3画像修正 */
  .case-card-new {
    flex-direction: column;
    padding: 25px var(--spacing-md);
    gap: var(--spacing-md);
  }

  .case-img-side {
    width: 100%;
    height: 200px;
    min-width: auto;
  }

  .case-img-side img {
    object-fit: cover;
    object-position: center center;
  }

  .case-body-side {
    padding: 0;
  }

  .case-new-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  /* サービスボックス：カード間の余白 */
  .service-box {
    margin-bottom: var(--spacing-md);
  }

  .services-grid .service-box:last-child {
    margin-bottom: 0;
  }
  
  /* 行動指針：スマホで左寄せ（番号を左端に） */
  .principles-list {
    text-align: left;
    padding-left: 20px;
    margin-left: 0;
  }

  /* スクロール矢印位置調整 */
  :root {
    --hint-a: 85px;
    --hint-b: 75px;
  }
}
