/* --- 変数定義 --- */
:root {
  --primary-color: #2196F3; /* 信頼感を表現するブルー */
  --secondary-color: #64B5F6; /* 明るいライトブルー */
  --accent-color: #FF9800; /* 活発な印象を与えるオレンジ */
  --text-color: #333;
  --bg-color: #E8F4F8;
  --white-color: #ffffff;
  --gray-color: #757575;

  /* RGB値も変数として定義（RGBA()で使いやすくするため） */
  --primary-color-rgb: 33, 150, 243;
  --secondary-color-rgb: 100, 181, 246;
  --accent-color-rgb: 255, 152, 0;
}

/* --- 全体リセット --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- HTML要素の基本設定と全体背景画像 --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  background-image: url('images/pattern.png');
  background-repeat: repeat;
  background-size: auto;
  background-position: center center;
  background-color: var(--bg-color);
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: transparent;
  min-height: 100vh;
}

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

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- 各セクションの共通スタイルとアニメーション --- */
section {
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
  position: relative;
  overflow: hidden;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
}

/* --- ヘッダー内の既存ボタンの非表示（デスクトップ用） --- */
header .header-line-btn,
header .header-contact-btn {
  display: none;
}

/* --- お問い合わせプルダウンのスタイル --- */
.contact-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 25px;
  z-index: 1010;
}

.contact-dropdown-btn {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-dropdown-btn:hover {
  background-color: #1976D2;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white-color);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  right: 0;
  top: calc(100% + 10px);
  animation: fadeInDropdown 0.2s ease-out forwards;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
  transition: background-color 0.2s, color 0.2s;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

/* LINEボタンのプルダウンスタイル */
.dropdown-content .dropdown-line-btn {
  background-color: var(--accent-color);
  color: var(--white-color) !important;
  font-weight: bold;
  text-align: center;
  padding: 12px 16px;
}

.dropdown-content .dropdown-line-btn:hover {
  background-color: #e68900;
}

/* メールのプルダウンスタイル */
.dropdown-content .dropdown-mail-btn {
  color: var(--primary-color);
  text-align: center;
}

.dropdown-content .dropdown-mail-btn:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

/* プルダウンが開いているときのスタイル */
.contact-dropdown.active .dropdown-content {
  display: block;
}

/* プルダウンのフェードインアニメーション */
@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ヘッダー --- */
header {
  background-color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

header h1 {
  font-size: 24px;
  font-weight: bold;
}

header h1 a {
  color: var(--primary-color);
}

header nav {
  display: flex;
  align-items: center;
}

header .nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

header .nav-links a {
  font-weight: bold;
}

.header-line-btn a {
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 25px;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 1500;
}

.hamburger-menu div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- メインビジュアル (#hero) --- */
#hero {
  background: linear-gradient(to right, rgba(var(--primary-color-rgb), 0.8), rgba(var(--secondary-color-rgb), 0.7)), url('images/sub.jpeg') center/cover;
  color: var(--white-color);
  text-align: center;
  padding: 120px 20px 100px;
  margin-top: 70px;
}

#hero h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

#hero .hero-buttons a {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: bold;
  margin: 5px;
  font-size: 1.2rem;
  color: black !important;
  /* ボタン上の文字色を黒に変更 */
  background-color: var(--accent-color);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

#hero .hero-buttons a:hover {
  transform: translateY(-3px);
}

/* 注意書きの文字を小さくするスタイル */
.disclaimer {
  font-size: 0.8em;
  /* 親要素の0.8倍のサイズ */
  display: block;
  /* 新しい行に表示するため */
  margin-top: 10px;
  /* 上部に少し余白 */
  opacity: 0.8;
  /* 少し薄くして目立たなくする（任意） */
}

/* --- 「選ばれる理由」(#about) セクション --- */
#about {
  background-color: rgba(var(--bg-color-rgb), 0.9);
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  background: rgba(var(--white-color-rgb), 0.9);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-icon-wrapper {
  margin-bottom: 20px;
  color: var(--primary-color);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible .feature-item:nth-child(1) .feature-icon-wrapper {
  color: var(--primary-color);
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.2s;
}

section.visible .feature-item:nth-child(2) .feature-icon-wrapper {
  color: var(--accent-color);
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: icon-bounce 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.4s;
  transition-delay: 0.4s;
}

section.visible .feature-item:nth-child(3) .feature-icon-wrapper {
  color: var(--secondary-color);
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.6s;
}

@keyframes icon-bounce {
  0%,
  100% {
    transform: scale(1, 1) translateY(0);
  }

  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }

  30% {
    transform: scale(0.9, 1.1) translateY(-20px);
  }

  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }

  57% {
    transform: scale(1, 1) translateY(-7px);
  }

  64% {
    transform: scale(1, 1) translateY(0);
  }
}

/* --- 「ご紹介できるお仕事の例」(#jobs) セクション --- */
#jobs {
  background-color: rgba(var(--white-color-rgb), 0.9);
  position: relative;
  overflow: hidden;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.job-card {
  background: rgba(var(--white-color-rgb), 0.9);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

section.visible .job-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

section.visible .job-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

section.visible .job-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.job-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.job-card ul {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.job-card ul li {
  margin-bottom: 8px;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.job-card ul li::before {
  content: '✓';
  color: var(--secondary-color);
  margin-right: 0.5em;
}

.job-card ul li:nth-child(2) strong {
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: 900;
  background-color: rgba(var(--primary-color-rgb), 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.job-card .tags {
  margin-top: auto;
}

.job-card .tags span {
  display: inline-block;
  background-color: var(--bg-color);
  color: var(--gray-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 3px;
}

.text-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

/* --- ミニ診断セクション (#quiz) --- */
#quiz {
  background-color: rgba(var(--bg-color-rgb), 0.9);
}

.quiz-box {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(var(--white-color-rgb), 0.95);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.quiz-box h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.quiz-box .quiz-intro {
  margin-bottom: 30px;
}

.quiz-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;
}

.quiz-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.quiz-step.exit {
  transform: translateX(-50px);
  opacity: 0;
}

.quiz-step h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.quiz-options {
  width: 100%;
  display: flex;
  /* 横並びにする */
  flex-direction: column;
  /* 縦並びのまま（各ボタンは横幅いっぱい） */
  align-items: center;
  /* ボタンを中央に寄せる */
  gap: 15px;
  /* ボタン間のスペース */
  margin-top: 20px;
  /* 質問とボタンの間のスペース */
  justify-content: center;
  /* 垂直方向の中央揃えを保証 */
}

.quiz-option {
  /* display: block; を削除または調整 */
  /* blockだと横並びにできないため */
  display: flex;
  /* もしくは flex-grow: 1; を使って幅を調整 */
  justify-content: center;
  /* テキストをボタンの中央に */
  align-items: center;
  /* テキストをボタンの垂直方向中央に */
  width: 80%;
  /* ボタンの幅を調整 (必要に応じてmax-widthも設定) */
  max-width: 300px;
  /* ボタンの最大幅 */
  background: rgba(var(--bg-color-rgb), 0.9);
  padding: 15px;
  /* margin-bottom: 10px; を gap で置き換えたので削除 */
  border-radius: 8px;
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, color 0.3s;
  position: relative;
  border: 1px solid #ccc;
  /* 枠線を追加して視認性を上げる */
}

.quiz-option:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.quiz-option.selected {
  background-color: var(--accent-color);
  color: var(--white-color);
  transform: scale(1.03);
}

.quiz-option.selected::after {
  content: '✔';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
}

#quiz-result {
  display: none;
  /* JSでblockに切り替え */
  opacity: 0;
  transform: scale(0.9);
  animation: zoomIn 0.5s ease-out 0.5s forwards;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#quiz-result h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

#quiz-result p {
  margin-bottom: 25px;
}

.result-card {
  border: 2px solid var(--accent-color);
  background: rgba(var(--white-color-rgb), 0.95);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

/* --- その他のセクション --- */
#flow {
  background-color: rgba(var(--white-color-rgb), 0.9);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.flow-step {
  background-color: rgba(var(--bg-color-rgb), 0.9);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.flow-step-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.flow-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

#voices {
  background-color: rgba(var(--bg-color-rgb), 0.9);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.voice-card {
  max-width: 100%;
  background-color: rgba(var(--white-color-rgb), 0.9);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
}

.voice-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.voice-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

#faq {
  background-color: rgba(var(--white-color-rgb), 0.9);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list dt {
  background-color: rgba(var(--secondary-color-rgb), 0.9);
  color: var(--white-color);
  padding: 15px;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
  margin-top: 20px;
  position: relative;
  padding-left: 45px;
}

.faq-list dt::before {
  content: 'Q';
  font-size: 1.5rem;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-list dd {
  background-color: rgba(var(--white-color-rgb), 0.95);
  padding: 20px;
  margin-bottom: 0;
  border-radius: 0 0 5px 5px;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding-left: 45px;
  position: relative;
}

.faq-list dt:first-child {
  margin-top: 0;
}

/* --- プライバシーポリシー (#privacy) セクションのスタイル修正 --- */
#privacy {
  background-color: var(--white-color);
  /* セクション全体の背景を不透明な白に */
}

/* アコーディオン全体のスタイル */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

/* 各項目を独立したカードにするスタイル */
.accordion-item {
  border: 1px solid #e0e0e0;
  /* カードに薄い枠線を追加 */
  border-radius: 12px;
  /* カードの角を丸くする */
  margin-bottom: 15px;
  /* 各カードの間に隙間をあける */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* 薄い影をつける */
  overflow: hidden;
  /* 中の要素が角丸からはみ出ないように */
  background-color: var(--white-color);
  /* カードの背景は白 */
}

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

/* 質問(ヘッダー)部分のスタイル */
.accordion-header {
  background: none;
  border: none;
  border-bottom: 1px solid #e9e9e9;
  /* 開いていない時に下線を引く */
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background-color 0.2s;
}

/* 開いているヘッダーのスタイル */
.accordion-header.active {
  background-color: #fdfdfd;
  border-bottom-color: transparent;
  /* 開いている時は下線を消す */
}

.accordion-header.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

/* 答え(コンテンツ)部分のスタイル */
.accordion-content {
  background-color: #f9fafb;
  /* 背景を薄いグレーに（FAQとデザインを合わせる） */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-content-inner {
  padding: 20px 25px;
  border-top: 1px solid #e9e9e9;
  /* コンテンツの上部に区切り線 */
}

/* --- ボタン類 --- */
.line-btn,
.line-btn-in-section,
.line-btn-in-quiz {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white-color) !important;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  font-size: 1.2rem;
}

.line-btn:hover,
.line-btn-in-section:hover,
.line-btn-in-quiz:hover {
  transform: translateY(-3px);
  opacity: 1;
}

#final-cta {
  background-color: rgba(var(--primary-color-rgb), 0.9);
  color: var(--white-color);
  text-align: center;
}

#final-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}



/* --- フッター --- */
footer {
  background-color: rgba(38, 50, 56, 0.95);
  color: var(--bg-color);
  text-align: center;
  padding: 40px 20px;
}

footer h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--white-color);
}

footer .footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

footer .footer-nav a {
  color: var(--bg-color);
}

footer .copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- 右下固定 LINE登録ボタン --- */
.floating-line-button {
  /* デスクトップでは非表示にし、モバイルで必要なら表示させる */
  display: none;
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 1000;
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: floating-pulse 2.5s infinite;
}

@keyframes floating-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* --- モバイルナビゲーション --- */
header .nav-links-mobile {
  display: none;
  /* 初期状態では非表示 */
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: var(--white-color);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  gap: 30px;
  z-index: 100;
}

/* JavaScriptで 'active' クラスが追加された時のスタイル */
header .nav-links-mobile.active {
  display: flex;
  /* Flexboxで表示 */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- スマホ限定キャンペーンセクション (#mobile-campaign) --- */
#mobile-campaign {
  display: none;
  padding: 25px 20px 10px;
  background-color: rgba(var(--bg-color-rgb), 0.9);
  opacity: 1;
  transform: none;
}

.campaign-link-wrapper {
  display: block;
  text-decoration: none;
}
.campaign-box-mobile {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(255, 128, 0, 0.9));
  color: var(--text-color);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--white-color);
  animation: campaign-pulse 1.8s infinite ease-in-out;
  position: relative;
}

.campaign-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.campaign-badge {
  background-color: #d32f2f;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: bold;
}

.campaign-sub-title {
  font-size: 1.0rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.campaign-sub-title .highlight-text {
  color: #d32f2f;
  font-size: 1.4rem;
  vertical-align: middle;
  margin: 0 4px;
}

.campaign-arrow {
  background-color: rgba(var(--white-color-rgb), 0.3);
  border-radius: 50px;
  padding: 8px 15px;
  font-weight: bold;
  display: inline-block;
  color: var(--text-color);
  font-size: 0.9rem;
}

.campaign-arrow::after {
  content: ' >';
  font-weight: bold;
}

@keyframes campaign-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

#work-style {
    background-color: rgba(var(--bg-color-rgb), 0.9);
}
.schedule-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(var(--white-color-rgb), 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.schedule-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 8px;
}
.day-header,
.time-label {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}
.time-label {
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bg-color-rgb), 0.9);
    border-radius: 5px;
    text-orientation: upright;
}
.schedule-item {
    border-radius: 5px;
    padding: 20px 10px;
    color: var(--white-color);
    font-weight: bold;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.schedule-item.main-job {
    background-color: rgba(189, 195, 199, 0.9);
}
/* .schedule-item.private-time */
.schedule-item.private-time {
    background-color: rgba(var(--secondary-color-rgb), 0.7);
}
/* .schedule-item.side-hustle セレクタをこちらに書き換え */
.schedule-item.side-hustle {
    background-color: rgba(var(--accent-color-rgb), 0.9);
    color: var(--text-color);

    animation:
        side-hustle-pulse 2.5s infinite ease-in-out,
        glow-pulse 2.5s infinite ease-in-out;

    transition: transform 0.3s ease-in-out;
}
.schedule-item.side-hustle:hover {
    transform: scale(1.08);
    cursor: pointer;
}
.schedule-legend {
    margin-top: 20px;
    text-align: center;
}
.legend-item {
    display: inline-block;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px;
    color: var(--white-color);
}
/* --- ホバーアニメーション --- */
.schedule-item.side-hustle:hover {
  transform: scale(1.08);
  cursor: pointer;
}

@keyframes side-hustle-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#continuation-rate {
  background-color: rgba(var(--white-color-rgb), 0.9);
  padding-bottom: 100px;
}

.comparison-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.chart-box {
  background-color: rgba(var(--bg-color-rgb), 0.9);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  width: 100%;
}

.chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 20px auto;
}

#general-continuation-chart,
#cocolance-continuation-chart {
  width: 100% !important;
  height: 100% !important;
}

.chart-legend-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.chart-note {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 10px;
}

.chart-reason {
  margin-top: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.highlight {
  font-weight: bold;
  color: var(--primary-color);
}

/* --- セクション内パーツの背景を不透明な白に統一 --- */
.feature-item,
.job-card,
.flow-step,
.voice-card,
.quiz-box,
.chart-box,
.schedule-container,
.faq-item {
  background-color: var(--white-color);
}

/* --- 「ご利用の流れ」セクションの視覚化スタイル (ループ版) --- */
@keyframes icon-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1);
  }
}

@keyframes arrow-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* 既存の出現アニメーション */
@keyframes icon-bounce-in {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes arrow-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* セクションとステップの基本スタイル */
#flow {
  overflow: hidden;
}

.flow-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 60px;
}

.flow-step {
  flex-basis: 220px;
  position: relative;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: rgba(var(--bg-color-rgb), 0.9);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* アイコンと矢印の初期状態 */
.flow-step-icon {
  margin-bottom: 15px;
}

.flow-step-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.3s;
}

.flow-step:hover .flow-step-icon i {
  transform: scale(1.1);
}

/* デスクトップ版の右向き矢印のスタイル (::after) */
.flow-step:not(:last-child)::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--accent-color);
  position: absolute;
  top: 65px;
  right: -45px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.8s, transform 0.8s;
}

/* --- アニメーションの適用 --- */
/* セクションが見えた時のアイコンアニメーション：出現 → ループ */
#flow.visible .flow-step-icon i {
  opacity: 1;
  transform: scale(1);
  animation:
    icon-bounce-in 1.0s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards,
    icon-float 3.0s ease-in-out infinite;
}

/* セクションが見えた時の右向き矢印アニメーション：出現 → ループ */
#flow.visible .flow-step:not(:last-child)::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  animation:
    arrow-fade-in 0.8s ease-out forwards,
    arrow-pulse 2.5s ease-in-out infinite;
}

/* 各要素のアニメーション遅延時間 */
#flow.visible .flow-step:nth-child(1) .flow-step-icon i {
  animation-delay: 0.3s, 1.3s;
}

#flow.visible .flow-step:nth-child(1)::after {
  animation-delay: 1.3s, 2.1s;
}

#flow.visible .flow-step:nth-child(2) .flow-step-icon i {
  animation-delay: 1.8s, 2.8s;
}

#flow.visible .flow-step:nth-child(2)::after {
  animation-delay: 2.8s, 3.6s;
}

#flow.visible .flow-step:nth-child(3) .flow-step-icon i {
  animation-delay: 3.3s, 4.3s;
}

#flow.visible .flow-step:nth-child(3)::after {
  animation-delay: 4.3s, 5.1s;
}

#flow.visible .flow-step:nth-child(4) .flow-step-icon i {
  animation-delay: 4.8s, 5.8s;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    #mobile-campaign {
        display: block;
    }
    header .nav-links,
    .header-line-btn {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .hamburger-menu.active .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-menu.active .bar2 {
        opacity: 0;
    }
    .hamburger-menu.active .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    #hero h2 {
        font-size: 2rem;
    }

    /* floating-contact-dropdown (右下固定プルダウン) をスマホでのみ表示 */
    .floating-contact-dropdown {
        display: block;
    }
    /* floating-line-button (右下固定LINE登録ボタン) をスマホで表示したい場合は、以下を追加 */
    /* .floating-line-button { display: inline-block !important; } */
}
@media (max-width: 959px) {
    /* デスクトップ版の右向き矢印はスマホでは非表示 */
    .flow-step:not(:last-child)::after {
        display: none;
    }

    /* モバイル版の下向き矢印のスタイル (::before) */
    .flow-step:not(:last-child)::before {
        content: '\f078'; /* Font Awesomeの下矢印 (fa-chevron-down) のユニコード */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.8rem;
        color: var(--accent-color);
        position: absolute;
        bottom: -30px; /* ステップの下に配置 */
        left: 50%;
        transform: translateX(-50%); /* 中央寄せ */
        opacity: 1; /* スマホでは常に表示（アニメーションは必要であれば追加） */
    }

    /* モバイル時のフローステップの配置調整 */
    .flow-steps {
        flex-direction: column; /* 縦並びを強制 */
        align-items: center; /* 縦並びになったステップカードを中央寄せ */
        gap: 60px 20px; /* 縦方向のギャップを増やす */
    }

    /* 最後のステップの下には矢印を表示しない */
    .flow-step:last-child::before {
        display: none;
    }
}
@media (max-width: 768px) {
    .voices-grid {
        grid-template-columns: 1fr;
    }
    .voice-card {
        flex-direction: column;
        text-align: center;
    }
    .schedule-grid {
        grid-template-columns: 40px repeat(7, 1fr);
        gap: 4px;
    }
    .schedule-item {
        font-size: 0.8rem;
        padding: 5px;
        min-height: 60px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
    .time-label {
        font-size: 0.8rem;
    }
}


/* --- 「働き方イメージ」セクション改善スタイル --- */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(var(--accent-color-rgb), 0.8);
  }
}

/* --- 継続率グラフ強調スタイル (位置修正版) --- */
@keyframes soft-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

.cocolance-chart-container .chart-wrapper {
  position: relative;
}

.cocolance-chart-container .chart-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: 105%;
  background-image: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.5) 0%, rgba(var(--accent-color-rgb), 0) 70%);
  border-radius: 50%;
  animation: soft-glow 3s infinite ease-in-out;
  transform: translate(-50%, -50%);
}

#cocolance-continuation-chart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cocolance-chart-container .chart-legend-center {
  position: relative;
  z-index: 2;
  color: var(--accent-color);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* --- メール問い合わせボタンのスタイル --- */
.contact-button-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 80px;
}

.mail-contact-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color) !important;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  font-size: 1.2rem;
  text-decoration: none;
}

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

/* --- モーダルウィンドウのスタイル --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s forwards;
}

.modal-content {
  background-color: var(--white-color);
  margin: 10% auto;
  padding: 30px 40px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s forwards cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.close-button {
  color: var(--gray-color);
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

.modal-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
}

/* --- お問い合わせフォーム内の入力欄デザイン統一 --- */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-color);
  box-sizing: border-box;
  transition: border-color 0.3s;
}

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

/* フォーカス時のスタイルを全ての関連要素に適用 */
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* 送信するボタンを中央寄せにするスタイル */
.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* ラジオボタンとラベルの基本的なスタイル調整 */
.radio-group-loan label {
  margin-right: 15px;
  cursor: pointer;
}

/* 借入詳細セクションの初期状態 (非表示) */
.loan-details-section {
  display: none;
  padding-top: 15px;
  border-top: 1px dashed #eee;
  margin-top: 15px;
}

/* 「はい」のラジオボタンがチェックされたら、その次の兄弟要素 (.loan-details-section) を表示 */
#loan-yes:checked ~ .loan-details-section {
  display: block;
}

/* フォームの必須項目表示のスタイル */
.required {
  color: red;
  font-size: 0.8em;
  margin-left: 5px;
  white-space: nowrap;
}

/* 「※」を追加するための擬似要素 */
.required::before {
  content: "※";
}

/* --- モバイルナビゲーション内のアコーディオン形式問い合わせメニュー --- */
.mobile-contact-accordion-item {
  display: none;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.mobile-contact-accordion-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
  margin-top: 20px;
  position: relative;
}

.mobile-contact-accordion-header:hover {
  background-color: var(--accent-color);
}

.mobile-contact-accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.mobile-contact-accordion-header.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.mobile-contact-accordion-content {
  background-color: var(--bg-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-radius: 8px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.mobile-contact-accordion-content a {
  display: block;
  padding: 15px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  color: var(--text-color);
}

.mobile-contact-accordion-content a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.mobile-contact-accordion-content a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.mobile-contact-accordion-content a.mobile-line-link {
  background-color: var(--accent-color);
  color: var(--white-color) !important;
}

.mobile-contact-accordion-content a.mobile-line-link:hover {
  background-color: var(--accent-color);
}

.mobile-contact-accordion-content a.mobile-mail-link {
  background-color: var(--white-color);
  color: var(--primary-color) !important;
  border-top: 1px solid #eee;
}

.mobile-contact-accordion-content a.mobile-mail-link:hover {
  background-color: #f0f0f0;
}

/* プルダウンが開いているときのスタイル */
.mobile-contact-accordion-item.active .mobile-contact-accordion-content {
  max-height: 200px;
  padding: 0;
}

/* --- 右下固定のお問い合わせプルダウンボタン（スマホ専用） --- */
@keyframes floating-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

.floating-contact-dropdown {
  display: none;
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 1000;
  animation: floating-pulse 2.5s infinite;
}

.floating-dropdown-btn {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.floating-dropdown-btn:hover {
  background-color: var(--primary-color);
}

.floating-dropdown-content {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background-color: var(--white-color);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1001;
  animation: fadeInDropdown 0.2s ease-out forwards;
}

.floating-dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: bold;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.floating-dropdown-content a:hover {
  background-color: var(--bg-color);
}

.floating-dropdown-content .floating-line-link {
  background-color: var(--accent-color);
  color: var(--white-color) !important;
}

.floating-dropdown-content .floating-line-link:hover {
  background-color: var(--accent-color);
}

.floating-dropdown-content .floating-mail-link {
  background-color: var(--white-color);
  color: var(--primary-color) !important;
  border-top: 1px solid #eee;
}

.floating-dropdown-content .floating-mail-link:hover {
  background-color: #f0f0f0;
}

/* プルダウンが開いているときのスタイル */
.floating-contact-dropdown.active .floating-dropdown-content {
  display: block;
}

/* --- レスポンシブ対応の調整 --- */
@media (max-width: 992px) {
  #mobile-campaign {
    display: block;
  }

  header .nav-links,
  .header-line-btn {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .hamburger-menu.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger-menu.active .bar2 {
    opacity: 0;
  }

  .hamburger-menu.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  #hero h2 {
    font-size: 2rem;
  }
  
  /* デスクトップ版の問い合わせボタンを非表示にし、モバイル版のアコーディオンとフローティングボタンを表示 */
  .contact-dropdown {
    display: none;
  }

  .mobile-contact-accordion-item {
    display: block;
  }

  .floating-contact-dropdown {
    display: block;
  }
}


#achievements {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(45deg, #ffd89b, #19547b);
    background-size: 400% 400%;
    animation: gradient 10s infinite linear;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.achievement-metrics {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.metric-item {
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.main-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-number-wrapper {
    display: flex;
    align-items: flex-end; /* 数字と「人」を揃える */
}

.metric-item.highlight-box {
    background-color: #e0f2e0; /* 薄い緑色の背景 */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.metric-number {
    font-size: 8rem; /* さらに大きく */
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.metric-unit {
    font-size: 2rem;
    margin-left: 5px;
}

.metric-text {
    font-size: 1.5rem; /* 少し大きく */
    font-weight: bold;
    color: var(--text-color);
    margin-top: 10px;
}

.metric-sub-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.5;
}

.caution-message-box {
    margin-top: 40px;
    font-size: 1rem;
    color: #666;
    background-color: #fff8e1;
    border-left: 4px solid #fbc02d;
    padding: 20px;
    border-radius: 4px;
    display: inline-block;
    max-width: 600px;
    text-align: left;
}

@media (min-width: 768px) {
    .achievement-metrics {
        flex-direction: column;
        gap: 40px;
    }
}