@charset "utf-8";

/* ================================================
   Empath LINE - カスタムCSS（v2 完全修正版）
   修正内容：セレクタをHTML構造に合わせ全面修正
   最終更新: 2026-03-22
================================================ */

/* --- CSS変数 上書き --- */
:root {
  --primary-color: #06C755;
  --base-inverse-color: #2d2d2d;
  --primary-inverse-color: #ffffff;
}

/* ==========================================================
   1. ヘッダー（タグ: <header>, <nav>）
========================================================== */

/* ヘッダーブロック チャコール背景 + グリーン下線 */
header {
  background-color: #2d2d2d !important;
  border-bottom: 3px solid #06C755 !important;
}

/* ロゴ グリーン */
#logo a,
#logo p a {
  color: #06C755 !important;
  font-weight: bold !important;
}

/* ナビリンク 白文字 */
header nav a,
header nav ul li a,
header > nav > ul > li > a {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.7rem !important;
}

/* ナビリンク ホバー グリーン */
header nav a:hover,
header nav ul li a:hover {
  color: #06C755 !important;
  opacity: 1 !important;
}

/* ヘッダー内CTAボタン（無料相談を申し込む）— style属性付きのみ対象 */
header nav li a[href="contact.html"][style] {
  background: #06C755 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem !important;
}

header nav li a[href="contact.html"][style]:hover {
  background: #04a844 !important;
}

/* ==========================================================
   2. ハンバーガーメニュー（#menubar_hdr, #menubar）
========================================================== */

#menubar_hdr span,
#menubar_hdr span::before,
#menubar_hdr span::after {
  background-color: #ffffff !important;
}

#menubar {
  background-color: #2d2d2d !important;
}

#menubar a {
  color: #ffffff !important;
  border-bottom: 1px solid #444444 !important;
}

#menubar a:hover {
  color: #06C755 !important;
  background-color: #3a3a3a !important;
}

/* ==========================================================
   3. ボディ・全体
========================================================== */

body {
  background-color: #f5f5f5 !important;
  color: #333333 !important;
}

/* ==========================================================
   4. CTAボタン（グリーン）
========================================================== */

.btn-cv,
.btn-line,
.c-btn,
header .btn,
#menubar .btn,
input[type="submit"],
button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 14px 32px !important;
  width: auto !important;
  min-width: auto !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  background-color: #06C755 !important;
  color: #ffffff !important;
  border: 2px solid #06C755 !important;
  border-radius: 4px !important;
  overflow: visible !important;
}

.btn-cv:hover,
.btn-line:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: #04a844 !important;
  border-color: #04a844 !important;
  color: #ffffff !important;
}

/* btn1内のaリンク（CTA帯ボタン）*/
.btn1 a,
p.btn1 a {
  display: inline-block !important;
  padding: 14px 32px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* CTAボタン 中央寄せ（PC・モバイル共通） */
.r .btn1,
.r p.btn1,
.list .btn1,
.list p.btn1 {
  text-align: center !important;
}

/* ==========================================================
   5. カード（.list-grid1 .list）- HTMLはdiv.listを使用
========================================================== */

/* 白背景カード（通常セクション内） */
.list-grid1 .list {
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* 白カード内テキスト 黒 */
.list-grid1 .list h4,
.list-grid1 .list p {
  color: #333333 !important;
}

/* bg-black カード（お悩み・LINEでできることなど） */
.list-grid1 .list.bg-black {
  background-color: #111111 !important;
}

.list-grid1 .list.bg-black h4,
.list-grid1 .list.bg-black h4 *,
.list-grid1 .list.bg-black p {
  color: #ffffff !important;
  text-align: center !important;
}

.list-grid1 .list.bg-black p {
  color: #cccccc !important;
  text-align: center !important;
}

/* ==========================================================
   6. bg-primary-color（CTA帯セクション：グリーン背景）
========================================================== */

.bg-primary-color {
  background-color: #06C755 !important;
  color: #ffffff !important;
}

.bg-primary-color h2,
.bg-primary-color h3,
.bg-primary-color h4,
.bg-primary-color p,
.bg-primary-color span,
.bg-primary-color a,
.bg-primary-color li,
.bg-primary-color small {
  color: #ffffff !important;
}

/* bg-primary-color内のカードは白背景・黒テキストに */
.bg-primary-color .list-grid1 .list {
  background-color: #ffffff !important;
}

.bg-primary-color .list-grid1 .list h4,
.bg-primary-color .list-grid1 .list p {
  color: #333333 !important;
}

/* bg-primary-color内のCTAボタンは白ベース反転 */
.bg-primary-color .btn1 a,
.bg-primary-color .btn-cv,
.bg-primary-color .btn-line,
.bg-primary-color input[type="submit"] {
  background-color: #ffffff !important;
  color: #06C755 !important;
  border-color: #ffffff !important;
  font-weight: bold !important;
}

/* bg-primary-color セクションのテキスト装飾 */
.bg-primary-color > .c > p:not(.btn1) {
  margin-top: 1.5rem !important;
  font-size: 1.05rem !important;
  line-height: 2 !important;
  letter-spacing: 0.03em !important;
}

.bg-primary-color .btn1 a:hover {
  background-color: #e0e0e0 !important;
}

/* ==========================================================
   7. bg-inverse / ダーク背景セクション（チャコール）
========================================================== */

.bg-inverse,
.bg-dark,
[class*="bg-inverse"] {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.bg-inverse h2, .bg-inverse h3, .bg-inverse h4, .bg-inverse p,
.bg-inverse a, .bg-inverse span, .bg-inverse li,
.bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p,
.bg-dark a, .bg-dark span, .bg-dark li {
  color: #ffffff !important;
}

/* ==========================================================
   8. bg1（テンプレートではダーク背景 → 上書き）
========================================================== */

/* bg1: 本テンプレートでは --base-inverse-color(#2d2d2d)背景
   index.htmlの「お悩み」「選ばれる理由」セクションなどで使用
   → ダーク背景として維持し、白テキストにする */
.bg1 {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.bg1 h2, .bg1 h3, .bg1 h4, .bg1 p,
.bg1 a, .bg1 span, .bg1 li, .bg1 small {
  color: #ffffff !important;
}

/* bg1 内のカードは白背景・黒テキスト */
.bg1 .list-grid1 .list:not(.bg-black) {
  background-color: #ffffff !important;
}

.bg1 .list-grid1 .list:not(.bg-black) h4,
.bg1 .list-grid1 .list:not(.bg-black) p {
  color: #333333 !important;
}

/* bg1 内の bg-black カードはそのまま */
.bg1 .list-grid1 .list.bg-black {
  background-color: #111111 !important;
}

.bg1 .list-grid1 .list.bg-black h4,
.bg1 .list-grid1 .list.bg-black h4 *,
.bg1 .list-grid1 .list.bg-black p {
  color: #ffffff !important;
}

/* bg1 内の番号 白 */
.bg1 .num {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* bg1 内のアイコン画像フィルター解除 */
.bg1 .list-grid1 .list figure.icon {
  filter: none !important;
}

/* ==========================================================
   9. bg2 / bg3（明るいセクション背景）
========================================================== */

.bg2 {
  background-color: #f5f5f5 !important;
}

.bg3 {
  background-color: #ffffff !important;
}

/* ==========================================================
   10. 番号 01/02/03 グリーン・視認性UP
========================================================== */

.num,
.list-grid1 .list .num {
  color: #ffffff !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ==========================================================
   11. セクション見出し下線 グリーン
========================================================== */

h2::after,
h3::after,
.sec-title::after {
  background-color: #06C755 !important;
}

/* h2内のspan（サブタイトル英語） */
h2 span {
  color: #06C755 !important;
}

/* ダーク/グリーン背景内の見出しspan */
.bg1 h2 span,
.bg-primary-color h2 span,
.bg-inverse h2 span {
  opacity: 0.6 !important;
}

/* ==========================================================
   12. ページヒーロー帯（サブページ上部）チャコール
========================================================== */

.page-hero {
  background-color: #2d2d2d !important;
}

.page-hero h1,
.page-hero p,
.page-hero span {
  color: #ffffff !important;
}

/* ==========================================================
   13. FAQアコーディオン（プロフェッショナルデザイン）
========================================================== */

.bg-primary-color .faq {
  max-width: 800px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.bg-primary-color .faq dt {
  background: linear-gradient(135deg, #ffffff 0%, #fafffe 100%) !important;
  border-left: 4px solid #06C755 !important;
  color: #2d2d2d !important;
  border-radius: 8px !important;
  padding: 1.3rem 1.5rem 1.3rem 1.5rem !important;
  margin-bottom: 0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em !important;
}

.bg-primary-color .faq dt::before {
  color: #06C755 !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
  min-width: 2rem !important;
  background: rgba(6,199,85,0.1) !important;
  border-radius: 50% !important;
  width: 2rem !important;
  height: 2rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0.8rem !important;
  flex-shrink: 0 !important;
}

.bg-primary-color .faq dt:hover {
  background: linear-gradient(135deg, #f0faf4 0%, #e8f8ef 100%) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 18px rgba(6,199,85,0.15) !important;
}

.bg-primary-color .faq dt.open {
  background: #2d2d2d !important;
  color: #ffffff !important;
  border-left-color: #06C755 !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
  transform: none !important;
}

.bg-primary-color .faq dt.open::before {
  background: rgba(6,199,85,0.25) !important;
  color: #06C755 !important;
}

.bg-primary-color .faq dd {
  background: #fff !important;
  color: #555 !important;
  border-left: 4px solid #06C755 !important;
  border-radius: 0 0 8px 8px !important;
  padding: 1.5rem 1.5rem 1.5rem 4rem !important;
  margin-top: -1px !important;
  margin-bottom: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
  line-height: 1.9 !important;
  font-size: 0.95rem !important;
  border-top: 1px dashed rgba(6,199,85,0.3) !important;
}

/* ==========================================================
   14. 価格テーブル
========================================================== */

.ta1 th {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.ta1 th.active,
.ta1 td.active {
  background-color: rgba(6,199,85,0.08) !important;
}

.osusume,
.recommended {
  background-color: #06C755 !important;
  color: #ffffff !important;
}

/* price.html の bg1 内テーブル：テキスト修正 */
.bg1 .ta1 td {
  color: #333333 !important;
  background-color: #ffffff !important;
}

/* ==========================================================
   15. flowページ STEP丸アイコン
========================================================== */

.flow .circle,
.flow .step-label,
.flow .step-num {
  background-color: #06C755 !important;
  color: #ffffff !important;
}

/* ==========================================================
   16. テキストスライド
========================================================== */

.slide-wrap,
#slide {
  background-color: #2d2d2d !important;
  color: #06C755 !important;
}

/* ==========================================================
   17. フッター（タグ: <footer>）
========================================================== */

footer {
  background-color: #2d2d2d !important;
  color: #cccccc !important;
}

footer a {
  color: #cccccc !important;
}

footer a:hover {
  color: #06C755 !important;
}

footer .pr,
footer span.pr,
span.pr,
span.pr a {
  color: #888888 !important;
}

/* ==========================================================
   18. セクション交互 - .color-check（マーカー）
========================================================== */

.color-check,
.marker {
  background: linear-gradient(transparent 60%, rgba(6,199,85,0.3) 60%) !important;
}

/* ==========================================================
   19. reason.html「こんな方にピッタリ」チェックリスト
========================================================== */

/* .bg1 内の .c2 テキストブロック - 白文字を維持 */
.bg1 .c2 .text,
.bg1 .c2 .text ul,
.bg1 .c2 .text li {
  color: #ffffff !important;
}

/* .bg1 内の .c2 タイトル */
.bg1 .c2 .title h2,
.bg1 .c2 .title h2 span {
  color: #ffffff !important;
}

/* ==========================================================
   20. プロフィール丸画像（タイヤモチーフ）
========================================================== */

figure.profile-circle {
  border-radius: 50% !important;
  overflow: hidden !important;
  width: 200px !important;
  height: 200px !important;
  max-width: 200px !important;
  margin: 0 auto 1.5rem !important;
  position: relative !important;
  border: 3px solid #2d2d2d !important;
  box-shadow:
    0 0 0 8px rgba(45, 45, 45, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

figure.profile-circle img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ==========================================================
   21. ローディング画面
========================================================== */

#loading {
  background-color: #2d2d2d !important;
}

.progress-bar {
  background-color: #06C755 !important;
}

/* ==========================================================
   22. リンクテキスト（インライン・グリーン）
========================================================== */

a.inline-block {
  color: inherit !important;
}

/* ==========================================================
   23. service.html リッチメニューサンプル注釈
========================================================== */

.bg1 p[style*="color:#fff"] {
  color: #ffffff !important;
}

/* ==========================================================
   24. 特徴カード用アイコン
========================================================== */

.feature-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  object-fit: contain;
}

/* ==========================================================
   25. 修正2：お悩みセクション強調テキスト 赤文字
========================================================== */

.color-check {
  color: #e74c3c !important;
  background: none !important;
  -webkit-text-fill-color: #e74c3c !important;
}

/* ==========================================================
   26. 修正3：「詳しく見る」ボタンのホバー色修正
========================================================== */

.btn1 a.inline-block:hover,
p.btn1 a.inline-block:hover {
  background-color: #04a844 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* ==========================================================
   27. 修正4：ページTOPへ戻るボタン
========================================================== */

#scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: #06C755;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

#scroll-top-btn:hover {
  background-color: #04a844;
}

/* ==========================================================
   28. 修正7：ベーシックサブスク列（おすすめ列）グリーン背景
========================================================== */

.bg1 .ta1 td.recommend-col {
  background-color: #06C755 !important;
  color: #ffffff !important;
}

/* ==========================================================
   29. オプション単品メニュー（プロフェッショナルデザイン）
========================================================== */

.ta1.option-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  border-top: none !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.ta1.option-table tr {
  border-bottom: 1px solid #eee !important;
}

.ta1.option-table tr:last-child {
  border-bottom: none !important;
}

.ta1.option-table th {
  background: #2d2d2d !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.05em !important;
  padding: 1rem 1.5rem !important;
  text-align: left !important;
}

.ta1.option-table th:first-child {
  width: 65% !important;
}

.ta1.option-table th:last-child {
  width: 35% !important;
  text-align: right !important;
}

.ta1.option-table td {
  padding: 1.1rem 1.5rem !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 0.95rem !important;
  vertical-align: middle !important;
}

.ta1.option-table td:first-child {
  width: 65% !important;
  font-weight: 600 !important;
}

.ta1.option-table td:last-child {
  width: 35% !important;
  text-align: right !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #06C755 !important;
  white-space: nowrap !important;
}

.ta1.option-table tr:hover td {
  background: #f8fdf9 !important;
  transition: background 0.2s ease !important;
}

/* ==========================================================
   30. FAQ回答(dd)背景色（セクション13で統合管理）
========================================================== */
/* FAQ dd スタイルはセクション13で管理。ここは削除済み */

/* ==========================================================
   31. アイコン画像の背景透過修正
========================================================== */

.list img[src*="icons"],
.list.up img,
.feature-icon {
  background: transparent !important;
  background-color: transparent !important;
}

/* アイコン親要素の背景をリセット */
.list.up,
.list-grid1 .list {
  background-image: none !important;
}

/* ==========================================================
   32. inviewアニメーション確実表示
========================================================== */

.up.upstyle,
.list.up.upstyle,
.list-grid1 .list.up.upstyle {
  opacity: 1 !important;
  bottom: 0px !important;
  transform: translateY(0) !important;
}

.down.downstyle {
  opacity: 1 !important;
  top: 0px !important;
}

.blur.blurstyle {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: scale(1) !important;
}

/* .up の初期状態：位置だけアニメーション、opacity は常に1 */
.list.up,
.list-grid1 .list.up,
.up.list {
  opacity: 1 !important;
  transform: translateY(30px);
  transition: transform 0.8s ease 0.2s !important;
}

.list.up.upstyle,
.list-grid1 .list.up.upstyle,
.up.list.upstyle {
  transform: translateY(0) !important;
}

/* ==========================================================
   FINAL: 車アイコン・数字・feature-icon カラー設定
========================================================== */

/* --- 共通：全feature-iconサイズ --- */
img.feature-icon,
.feature-icon {
  width: 130px !important;
  height: 130px !important;
  min-width: 130px !important;
  min-height: 130px !important;
  display: block !important;
  margin: 0 auto 20px auto !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 50% !important;
  background-color: rgba(255,255,255,0.6) !important;
  padding: 12px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

/* --- 数字：num-wrapper外の直接.numのみ対象 --- */
.list > .num:only-child {
  position: absolute !important;
  top: -15px !important;
  right: -15px !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-block !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  z-index: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: none !important;
}

/* --- 車アイコン疑似要素：img要素に移行のため無効化 --- */
/* .num::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 180px !important;
  height: 112px !important;
  background-image: url('../images/icons/icon_car.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  z-index: -1 !important;
  opacity: 0.25 !important;
  pointer-events: none !important;
} */

/* 疑似要素を完全に無効化 */
.num::before {
  content: none !important;
  display: none !important;
}

/* --- .num の親要素に position: relative を付与 --- */
.list,
.list-grid1 .list,
.up.list {
  position: relative !important;
}

/* .feature-icon は常に表示 */
.feature-icon,
.list img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ================================================
   ダーク背景(bg1)：お悩み / LINEでできること
   → 車アイコン: 濃いグリーン / 数字: 白
   → feature-icon: 濃いグリーン
================================================ */
.bg1 .num::before {
  filter: sepia(1) saturate(10) hue-rotate(90deg) brightness(0.6) !important;
  opacity: 0.5 !important;
}

.bg1 .num,
.bg1 .list .num {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bg1 img.feature-icon,
.bg1 .feature-icon {
  filter: sepia(1) saturate(10) hue-rotate(90deg) brightness(0.6) !important;
  opacity: 1 !important;
}

/* bg1 内の白カード限定：数字を緑に */
.bg1 .list-grid1 .list:not(.bg-black) .num {
  color: #06C755 !important;
  -webkit-text-fill-color: #06C755 !important;
}

/* ================================================
   白・ライト背景(bg2 / bg3 / section無印)
   → 車アイコン: 薄グレー / 数字: 濃いグリーン
   → feature-icon: 濃いグリーン
================================================ */
.bg2 .num::before,
.bg3 .num::before,
section:not(.bg1):not(.bg-primary-color) .num::before {
  filter: brightness(0.5) !important;
  opacity: 0.12 !important;
}

.bg2 .num,
.bg3 .num,
section:not(.bg1):not(.bg-primary-color) .num {
  color: #04a844 !important;
  -webkit-text-fill-color: #04a844 !important;
}

.bg2 img.feature-icon,
.bg3 img.feature-icon,
section:not(.bg1):not(.bg-primary-color) img.feature-icon {
  filter: sepia(1) saturate(10) hue-rotate(90deg) brightness(0.55) !important;
  opacity: 1 !important;
}

/* ================================================
   グリーン背景(bg-primary-color)：導入するとこう変わる / CTA
   → 車アイコン: 白(透過) / 数字: 濃いグリーン(白カード内)
   → feature-icon: 濃いグリーン(白カード内)
================================================ */
.bg-primary-color .num::before {
  filter: brightness(0) invert(1) !important;
  opacity: 0.2 !important;
}

.bg-primary-color .list .num,
.bg-primary-color .num {
  color: #04a844 !important;
  -webkit-text-fill-color: #04a844 !important;
}

.bg-primary-color img.feature-icon,
.bg-primary-color .feature-icon {
  filter: sepia(1) saturate(10) hue-rotate(90deg) brightness(0.55) !important;
  opacity: 1 !important;
}

/* グリーン背景カード内のh4文字色 */
.bg-primary-color .list-grid1 .list h4 {
  color: #333333 !important;
}

/* ==========================================================
   38. ファーストビュー 左右分割レイアウト
========================================================== */

/* ヒーロー全体：背景画像を無効化し、ダーク背景に */
#mainimg {
  background-image: none !important;
  background: #1a1a1a !important;
  padding-top: 0 !important;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 520px !important;
}

/* 内部コンテナ：左右2カラムflex（テンプレートの absolute/column を解除） */
#mainimg > div,
#mainimg .hero-inner {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 520px !important;
  top: auto !important;
  left: auto !important;
  padding: 0 !important;
  height: auto !important;
}

/* 左側：テキストエリア */
#mainimg .hero-text {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  padding: 80px 40px 60px 6vw !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* サブタイトル */
#mainimg .hero-sub {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.25em !important;
  color: #06C755 !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

/* キャッチコピー */
#mainimg .hero-catch {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
  margin: 0 0 1.2rem 0 !important;
  text-shadow: none !important;
}

/* 説明文 */
#mainimg .hero-desc {
  font-size: 0.95rem !important;
  line-height: 2 !important;
  color: rgba(255,255,255,0.8) !important;
  margin-bottom: 2rem !important;
}

/* ボタンエリア */
#mainimg .hero-text .btn {
  display: flex !important;
  gap: 1rem !important;
  margin-top: 0 !important;
  font-size: 0.95rem !important;
}

/* 右側：画像エリア */
#mainimg .hero-image {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  height: 520px !important;
  overflow: hidden !important;
}

#mainimg .hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

/* --- モバイル対応 --- */
@media screen and (max-width: 768px) {
  #mainimg > div,
  #mainimg .hero-inner {
    flex-direction: column !important;
    min-height: auto !important;
  }

  #mainimg .hero-text {
    flex: none !important;
    max-width: 100% !important;
    padding: 100px 20px 40px 20px !important;
    text-align: center !important;
  }

  #mainimg .hero-text .btn {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  #mainimg .hero-catch {
    font-size: 1.4rem !important;
  }

  #mainimg .hero-image {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    overflow: hidden !important;
  }

  #mainimg .hero-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}

/* ==========================================================
   OVERRIDE: .num 位置を左上端に強制移動（最終上書き）
========================================================== */

.list-grid1 .list,
.list.up,
.list {
  position: relative !important;
  overflow: visible !important;
}

/* .num-wrapper内の.numはFINALセクションで制御 */
.list-grid1 .list > .num:not(.num-wrapper .num),
.list.up > .num:not(.num-wrapper .num),
.list > .num:not(.num-wrapper .num) {
  position: absolute !important;
  top: -10px !important;
  right: 50px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 10 !important;
  display: inline-block !important;
  font-style: italic !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================
   FINAL: num-wrapper アイコン独立配置
========================================================== */

/* アイコン: 横並び配置 */
.num-icon {
  width: 90px !important;
  height: auto !important;
  max-width: none !important;
  min-width: 90px !important;
  object-fit: contain !important;
  display: block !important;
  position: relative !important;
  right: auto !important;
  left: 16px !important;
  top: auto !important;
  transform: none !important;
  z-index: 0 !important;
  pointer-events: none !important;
  filter: none !important;
  opacity: 0.8 !important;
}

/* 数字: アイコンに重なるように配置 */
.num-wrapper > .num,
.list .num-wrapper .num,
.list-grid1 .list .num-wrapper .num {
  position: relative !important;
  z-index: 1 !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  font-style: italic !important;
  line-height: 1 !important;
  left: auto !important;
  top: -28px !important;
  transform: none !important;
  margin-left: -24px !important;
  margin-top: 0 !important;
  bottom: auto !important;
  right: auto !important;
  display: inline-block !important;
  letter-spacing: 0.05em !important;
}

/* num-wrapper: 車アイコン＋数字を横並び */
.num-wrapper {
  position: absolute !important;
  top: -60px !important;
  right: 10px !important;
  left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
  z-index: 10 !important;
  pointer-events: none !important;
  width: auto !important;
  height: auto !important;
  gap: 0 !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* --- ダーク背景(bg1) --- */
.bg1 .num-icon {
  filter: brightness(0) invert(1) !important;
  opacity: 0.7 !important;
}
.bg1 .num-wrapper .num {
  color: #06C755 !important;
  -webkit-text-fill-color: #06C755 !important;
}

/* --- 白・ライト背景 --- */
.bg2 .num-icon,
.bg3 .num-icon,
section:not(.bg1):not(.bg-primary-color) .num-icon {
  filter: sepia(1) saturate(10) hue-rotate(90deg) brightness(0.6) !important;
  opacity: 0.7 !important;
}
.bg2 .num-wrapper .num,
.bg3 .num-wrapper .num,
section:not(.bg1):not(.bg-primary-color) .num-wrapper .num {
  color: #06C755 !important;
  -webkit-text-fill-color: #06C755 !important;
}

/* --- グリーン背景(bg-primary-color) --- */
.bg-primary-color .num-icon {
  filter: sepia(1) saturate(10) hue-rotate(90deg) brightness(0.5) !important;
  opacity: 0.85 !important;
}
.bg-primary-color .num-wrapper .num {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ==========================================================
   スマホ: ファーストビュー画像見切れ 強制修正（最終上書き）
========================================================== */
@media (max-width: 768px) {

  #mainimg {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  #mainimg .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
  }

  #mainimg .hero-text {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    order: 1 !important;
    padding: 40px 20px 30px !important;
  }

  #mainimg .hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    flex: none !important;
    order: 2 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  #mainimg .hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    position: static !important;
  }
}

/* ==========================================================
   ローディング画面 - logo_loading.png 版
========================================================== */

#loading {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.8s ease, visibility 0.8s ease !important;
  animation: none !important;
}

/* style.css の旧ローディング要素を非表示 */
#loading .progress-container,
#loading .progress-bar {
  display: none !important;
}

#loading > img:not(.loading-logo-img) {
  display: none !important;
}

#loading.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.loading-logo-wrap {
  animation: logoFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.loading-logo-img {
  width: 220px;
  height: auto;
  display: block;
}

.loading-bubble {
  background: #06C755;
  border-radius: 20px 20px 20px 5px;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.35);
  animation: logoFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  opacity: 0;
}

.loading-dot {
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: dotBounce 1.3s ease-in-out infinite;
}

.loading-dot:nth-child(1) { animation-delay: 0s;    }
.loading-dot:nth-child(2) { animation-delay: 0.22s; }
.loading-dot:nth-child(3) { animation-delay: 0.44s; }

@keyframes logoFadeIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes dotBounce {
  0%, 55%, 100% { transform: translateY(0);    opacity: 1;    }
  28%            { transform: translateY(-9px); opacity: 0.65; }
}

@media (max-width: 768px) {
  .loading-logo-img {
    width: 160px;
  }
  .loading-bubble {
    padding: 11px 18px;
    gap: 6px;
  }
  .loading-dot {
    width: 8px;
    height: 8px;
  }
}

/* ==========================================================
   ヘッダーロゴ - style.css を直接修正済み(width:220px)
   custom.css での上書きは不要のためコメントアウト
========================================================== */
/* #logo img ルールは style.css 本体で管理 */

/* ==========================================================
   ファーストビュー 左カラム 緑アクセント
========================================================== */

#mainimg .hero-text {
  border-left: 4px solid #06C755 !important;
  padding-left: 24px !important;
  position: relative !important;
}

#mainimg .hero-text::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #06C755;
  border-radius: 50%;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  #mainimg .hero-text {
    border-left: 3px solid #06C755 !important;
    padding-left: 16px !important;
  }
}

/* ==========================================================
   feature-icon フィルター除去（フルカラー表示）
========================================================== */

img.feature-icon,
.feature-icon,
.bg1 img.feature-icon,
.bg1 .feature-icon,
.bg2 img.feature-icon,
.bg3 img.feature-icon,
.bg-primary-color img.feature-icon,
.bg-primary-color .feature-icon,
section img.feature-icon,
section:not(.bg1):not(.bg-primary-color) img.feature-icon {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}

/* ローディング非表示時のチラつき防止 */
#loading[style*="display:none"] {
  display: none !important;
}

/* ==========================================================
   無料相談・LINE相談 テキスト視認性改善
========================================================== */

/* オーバーレイを常時表示（ホバーで消えないように） */
.list-c2 .list::before {
  background: rgba(0,0,0,0.6) !important;
  transform: none !important;
  transition: background 0.3s ease !important;
}

/* ホバー時：少し明るくするだけ（完全に消さない） */
.list-c2 .list:hover::before {
  transform: none !important;
  background: rgba(0,0,0,0.35) !important;
}

/* メインテキスト（無料相談・LINE相談）を大きく・明瞭に */
.list-c2 h4 .main-text {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.8),
    0 0 20px rgba(0,0,0,0.4) !important;
  letter-spacing: 0.05em !important;
  word-break: keep-all !important;
}

/* サブテキスト（まずは気軽に・LINEでも受付中） */
.list-c2 h4 .sub-text {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9) !important;
  letter-spacing: 0.15em !important;
  opacity: 0.9 !important;
}

/* ボタンテキストも白で明瞭に */
.list-c2 .btn1 a {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
  font-weight: 600 !important;
}

/* PC幅600px以上でサイズ拡大 */
@media screen and (min-width: 600px) {
  .list-c2 h4 .main-text {
    font-size: 3.5rem !important;
  }
  .list-c2 h4 .sub-text {
    font-size: 1.1rem !important;
  }
}

/* ==========================================================
   ファーストビュー テキスト中央寄せ（PC）
========================================================== */

@media (min-width: 769px) {
  #mainimg .hero-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  #mainimg .hero-catch {
    text-align: center !important;
  }

  #mainimg .hero-sub {
    text-align: center !important;
  }

  #mainimg .hero-desc {
    text-align: center !important;
  }

  #mainimg .hero-text .btn {
    justify-content: center !important;
  }

  /* 左の緑ボーダーを中央寄せに合わせて非表示にする */
  #mainimg .hero-text {
    border-left: none !important;
    padding-left: 40px !important;
  }

  /* 緑ドットも中央に */
  #mainimg .hero-text::before {
    margin: 0 auto 16px auto !important;
  }
}

/* ==========================================================
   無料相談・LINE相談 テキスト位置調整（無効化済み）
   背景位置は style.css で center center に統一
========================================================== */

/* ==========================================================
   スクロールテキスト 重なり解消
========================================================== */
/* margin-top負値を打ち消してCTAと重ならないようにする */
.text-slide-wrapper {
  margin-top: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 0 !important;
}

/* テキストの視認性（薄く・背景的に） */
.text-slide {
  background-color: transparent !important;
  color: #06C755 !important;
  opacity: 0.08 !important;
}
.text-slide span {
  color: #06C755 !important;
}

/* スマホでも文字切れしないように */
@media (max-width: 768px) {
  .text-slide {
    font-size: 12vw !important;
  }
}

/* ==========================================================
   代表プロフィール デザイン
========================================================== */

/* カード全体 */
.profile-card {
  display: flex !important;
  align-items: center !important;
  gap: 48px !important;
  padding: 40px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06) !important;
}

/* 画像 */
.profile-card figure.profile-circle {
  flex-shrink: 0 !important;
  align-self: center !important;
  margin: 0 !important;
}

/* テキストエリア */
.profile-body {
  flex: 1 !important;
}

/* 名前 */
.profile-name {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}
.profile-name-en {
  display: inline-block !important;
  margin-left: 12px !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: #999 !important;
  letter-spacing: 0.05em !important;
}

/* 肩書き */
.profile-title {
  font-size: 0.85rem !important;
  color: #06C755 !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #eee !important;
}

/* 本文 */
.profile-lead {
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #444 !important;
  margin-bottom: 12px !important;
}
.profile-lead strong {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

/* 強調メッセージ */
.profile-highlight {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
  padding: 16px 20px !important;
  background: #f8f9fa !important;
  border-left: 4px solid #06C755 !important;
  border-radius: 0 8px 8px 0 !important;
}

/* 下部エリア: ✅リスト(左) + CTA(右) 横並び */
.profile-bottom {
  display: flex !important;
  align-items: center !important;
  gap: 40px !important;
  margin-top: 8px !important;
}

/* 箇条書き */
ul.profile-points {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  flex: 1 !important;
}
ul.profile-points li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 6px 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: #444 !important;
}
ul.profile-points li strong {
  color: #1a1a1a !important;
}
.point-icon {
  flex-shrink: 0 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
.point-text {
  flex: 1 !important;
  min-width: 0 !important;
}

/* CTAボタン — ✅の右側 */
.profile-cta-wrap {
  flex-shrink: 0 !important;
  align-self: center !important;
}
a.profile-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #06C755 !important;
  color: #ffffff !important;
  padding: 18px 48px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border: 2px solid #06C755 !important;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.25) !important;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}
a.profile-cta:hover {
  opacity: 1 !important;
  transform: scale(1.05) !important;
  background-color: #ffffff !important;
  color: #06C755 !important;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.35) !important;
}

/* スマホ */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 28px 20px !important;
    gap: 20px !important;
  }
  .profile-card figure.profile-circle {
    margin: 0 auto !important;
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
  }
  .profile-name {
    font-size: 1.3rem !important;
  }
  .profile-name-en {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 4px !important;
  }
  .profile-title {
    font-size: 0.8rem !important;
    text-align: center !important;
  }
  .profile-title .sp-br {
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
  }
  .profile-lead {
    font-size: 0.88rem !important;
    text-align: left !important;
  }
  .profile-highlight {
    text-align: left !important;
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
  }
  .profile-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  ul.profile-points li {
    text-align: left !important;
    font-size: 0.85rem !important;
  }
  .profile-cta-wrap {
    display: flex !important;
    justify-content: center !important;
  }
  a.profile-cta {
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================
   ファーストビュー アニメーション
========================================================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-text .hero-sub {
  opacity: 0;
  animation: heroFade 0.6s ease-out 0.3s forwards;
}

.hero-text .hero-catch {
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.5s forwards;
}

.hero-text .hero-desc {
  opacity: 0;
  animation: heroFade 0.6s ease-out 0.8s forwards;
}

.hero-text .btn {
  opacity: 0;
  animation: heroFadeUp 0.6s ease-out 1.1s forwards;
}

/* ==========================================================
   お悩みカード 閉じ引用符の追加
========================================================== */
/* ==========================================================
   「こんな方にピッタリ」チェックリスト
========================================================== */
.foryou-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
}

.foryou-list li {
  background: rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid #06C755 !important;
  border-radius: 8px !important;
  padding: 1rem 1.2rem 1rem 3rem !important;
  position: relative !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #fff !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.foryou-list li::before {
  content: "\2713" !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #06C755 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

.foryou-list li:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================
   お悩みカード 引用符スタイル
========================================================== */
.list-grid1 .list h4.kazari::before {
  top: -30px !important;
  left: 0 !important;
  font-size: 48px !important;
  opacity: 0.18 !important;
}

.list-grid1 .list h4.kazari::after {
  content: "\201D";
  position: absolute;
  right: 0;
  bottom: -1.2rem;
  opacity: 0.18;
  font-size: 48px;
  line-height: 1;
  pointer-events: none;
}

/* お悩みカードにpadding-bottomを追加して引用符のスペース確保 */
.list-grid1 .list h4.kazari {
  padding-bottom: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* ==========================================================
   モバイル総合修正（全ページ共通）
========================================================== */
@media (max-width: 768px) {

  /* --- num-wrapper / num-icon モバイル縮小 --- */
  .num-wrapper {
    right: 5px !important;
    top: -14px !important;
  }
  .num-icon {
    min-width: 60px !important;
    width: 60px !important;
  }
  .num-wrapper .num {
    font-size: 1.4rem !important;
    margin-left: -14px !important;
  }

  /* --- bg-primary-color セクションのテキスト改行改善 --- */
  .bg-primary-color h2 {
    font-size: 1.25rem !important;
  }
  .bg-primary-color p {
    font-size: 0.88rem !important;
  }

  /* --- profile-cta モバイル --- */
  a.profile-cta {
    white-space: normal !important;
  }

  /* --- feature-icon モバイル --- */
  img.feature-icon,
  .feature-icon {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    padding: 8px !important;
  }

  /* --- Storyセクション 画像モバイル --- */
  .bg3 .list-normal1 figure {
    width: 100% !important;
    max-height: 250px !important;
    overflow: hidden !important;
  }
  .bg3 .list-normal1 figure img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
  }
  .bg3 .list-normal1 .text {
    padding: 1.5rem !important;
  }
  .bg3 .list-normal1 .text h4 {
    font-size: 1.2rem !important;
  }

  /* --- ピッタリセクション モバイル --- */
  .c2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .c2 .title {
    width: 100% !important;
    min-height: 0 !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
  }
  .c2 .title h2 {
    font-size: 1.1rem !important;
  }
  .c2 .text {
    width: 100% !important;
  }
}

/* ==========================================================
   ピッタリセクション: 左テキスト縦中央揃え
========================================================== */
.c2 {
  align-items: center !important;
}

.c2 .title {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px !important;
}

.c2 .title h2 {
  margin: 0 !important;
}

/* ==========================================================
   Storyセクション デザイン改善
========================================================== */
.bg3 .list-normal1 .list {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 30px rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.bg3 .list-normal1 .text {
  padding: 2.5rem !important;
}

.bg3 .list-normal1 .text h4 {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #2d2d2d !important;
  margin-bottom: 1.2rem !important;
  border-left: 4px solid #06C755 !important;
  padding-left: 1rem !important;
}

.bg3 .list-normal1 .text p {
  font-size: 1rem !important;
  line-height: 2 !important;
  color: #555 !important;
}

.bg3 .list-normal1 figure {
  margin: 0 !important;
  overflow: hidden !important;
}

.bg3 .list-normal1 figure img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ==========================================================
   テキスト装飾・強調スタイル
========================================================== */

/* セクション見出しh2のサブテキスト(span)を上付き表示 */
main h2 span {
  display: block !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  margin-bottom: 0.3rem !important;
  order: -1 !important;
}

/* h2をflexで並びを制御 */
main h2.c {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* カード内h4の強調 */
.list-grid1 .list h4 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  margin-bottom: 0.8rem !important;
}

/* marker強調テキスト */
.marker {
  background: linear-gradient(transparent 60%, rgba(6, 199, 85, 0.2) 60%) !important;
  padding: 0 4px !important;
}

/* お悩みカードの赤文字強調 */
.bg1 h4 strong,
.bg1 .list h4 strong {
  color: #ff6b6b !important;
}

/* 白背景セクションのリード文強調 */
section:not(.bg1):not(.bg-primary-color) p strong {
  color: #06C755 !important;
  font-weight: 700 !important;
}

/* グリーン背景セクションのリード文強調 */
.bg-primary-color p strong {
  color: #fff !important;
  font-weight: 800 !important;
  border-bottom: 2px solid rgba(255,255,255,0.5) !important;
  padding-bottom: 1px !important;
}

/* ==========================================================
   ABSOLUTE FINAL: num-wrapper内の数字を横並びに強制
   ※ 他の全.numルールを上書きする最終ルール
========================================================== */
div.num-wrapper > span.num,
.list div.num-wrapper > span.num,
.list-grid1 .list div.num-wrapper > span.num,
.bg1 div.num-wrapper > span.num,
.bg2 div.num-wrapper > span.num,
.bg3 div.num-wrapper > span.num,
.bg-primary-color div.num-wrapper > span.num,
section div.num-wrapper > span.num {
  position: relative !important;
  display: inline-block !important;
  transform: none !important;
  left: auto !important;
  top: -28px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  margin-left: -24px !important;
}

div.num-wrapper > img.num-icon,
.list div.num-wrapper > img.num-icon {
  position: relative !important;
  display: inline-block !important;
  transform: none !important;
  left: 16px !important;
  top: auto !important;
  right: auto !important;
  vertical-align: middle !important;
}

div.num-wrapper,
.list div.num-wrapper,
.list-grid1 .list div.num-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
}

/* ==========================================================
   オプション単品テーブル モバイル調整
========================================================== */
@media (max-width: 768px) {
  .ta1.option-table td:first-child {
    width: 60% !important;
    font-size: 0.85rem !important;
    padding: 0.9rem 1rem !important;
  }
  .ta1.option-table td:last-child {
    width: 40% !important;
    font-size: 0.9rem !important;
    padding: 0.9rem 1rem !important;
  }
  .ta1.option-table th {
    padding: 0.8rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* ==========================================================
   FAQ モバイル調整
========================================================== */
@media (max-width: 768px) {
  .bg-primary-color .faq dt {
    font-size: 0.9rem !important;
    padding: 1rem 1rem 1rem 1.2rem !important;
  }
  .bg-primary-color .faq dt::before {
    width: 1.6rem !important;
    height: 1.6rem !important;
    min-width: 1.6rem !important;
    font-size: 1rem !important;
    margin-right: 0.6rem !important;
  }
  .bg-primary-color .faq dd {
    padding: 1rem 1rem 1rem 3rem !important;
    font-size: 0.88rem !important;
  }
}

/* ==========================================================
   お問い合わせフォーム（プロフェッショナルデザイン）
========================================================== */

.contact-form-section {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.modern-form {
  max-width: 680px !important;
  margin: 0 auto !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06) !important;
  padding: 3rem !important;
}

.form-group {
  margin-bottom: 1.8rem !important;
}

.form-group label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #2d2d2d !important;
  margin-bottom: 0.5rem !important;
}

.form-group label .required {
  color: #e53e3e !important;
  font-size: 0.8rem !important;
  margin-left: 0.3rem !important;
}

.form-group input,
.form-group textarea {
  width: 100% !important;
  padding: 0.9rem 1rem !important;
  font-size: 0.95rem !important;
  color: #333 !important;
  background: #f8f9fa !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  outline: none !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #06C755 !important;
  box-shadow: 0 0 0 3px rgba(6,199,85,0.15) !important;
  background: #fff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab4c0 !important;
  font-size: 0.88rem !important;
}

.form-group textarea {
  resize: vertical !important;
  min-height: 140px !important;
}

.form-submit {
  text-align: center !important;
  margin-top: 2rem !important;
}

button.form-submit-btn[type="submit"] {
  display: inline-block !important;
  width: auto !important;
  background: linear-gradient(135deg, #06C755 0%, #04a844 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 1rem 3rem !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(6,199,85,0.3) !important;
}

.form-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(6,199,85,0.4) !important;
}

.form-note {
  font-size: 0.82rem !important;
  margin-top: 1rem !important;
  color: #999 !important;
}

@media (max-width: 768px) {
  .modern-form {
    padding: 1.5rem !important;
    margin: 0 1rem !important;
    border-radius: 12px !important;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 0.9rem !important;
    font-size: 0.9rem !important;
  }
  button.form-submit-btn[type="submit"] {
    display: block !important;
    width: 100% !important;
    padding: 1rem !important;
  }
}

/* ==========================================================
   FINAL MOBILE OVERRIDES（最終モバイル上書き）
========================================================== */
@media (max-width: 768px) {
  .c2 .title {
    min-height: 0 !important;
    width: 100% !important;
    padding: 1.5rem !important;
  }
  .bg3 .list-normal1 figure {
    width: 100% !important;
  }
}
