/* ========================================
   メディサポ トップページ用CSS
   WordPress テーマに追加して使用
   全セレクタを body.frontpage でスコープ
======================================== */

/* ========================================
   基本設定
======================================== */
:root {
  --main-orange: #f8a538;
  --yellow: #ffe100;
  --dark-blue: #1f3d74;
  --blue: #1f7ee9;
  --white: #ffffff;
  --text-dark: #333333;
  --gray: #f4f4f4;
}

body.frontpage {
  margin: 0;
  padding: 0;
}

body.frontpage * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.frontpage {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "Meiryo", "メイリオ", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

body.frontpage a {
  text-decoration: none;
  color: inherit;
}

body.frontpage ul {
  list-style: none;
}

body.frontpage img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ========================================
   Lightning テーマ リセット
   親テーマ・VK Blocks のスタイルを上書き
======================================== */
body.frontpage h1,
body.frontpage h2,
body.frontpage h3,
body.frontpage h4,
body.frontpage h5,
body.frontpage h6 {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text-dark);
  position: static;
}

body.frontpage h1::before,
body.frontpage h2::before,
body.frontpage h3::before,
body.frontpage h4::before,
body.frontpage h5::before,
body.frontpage h6::before,
body.frontpage h1::after,
body.frontpage h2::after,
body.frontpage h3::after,
body.frontpage h4::after,
body.frontpage h5::after,
body.frontpage h6::after {
  content: none !important;
  display: none !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.frontpage section {
  border: none !important;
  outline: none !important;
}

body.frontpage .entry-body,
body.frontpage .entry-content,
body.frontpage .main-section,
body.frontpage .site-body,
body.frontpage .site-body-container,
body.frontpage .vk_posts,
body.frontpage .main-body {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.frontpage p {
  margin-bottom: 0;
}

body.frontpage small {
  font-size: inherit;
}

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

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

body.frontpage .header-logo a {
  display: block;
}

body.frontpage .header-logo img {
  height: 40px;
  width: auto;
}

body.frontpage .nav-list {
  display: flex;
  gap: 30px;
}

body.frontpage .nav-list a {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

body.frontpage .nav-list a:hover {
  color: var(--main-orange);
}

/* ハンバーガーメニュー */
body.frontpage .hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

body.frontpage .hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.frontpage .hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

body.frontpage .hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

body.frontpage .hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ========================================
   メインビジュアル
======================================== */
body.frontpage .hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 600px;
  background-image: url('../images/frontpage/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding-top: 70px;
}

body.frontpage .hero-inner {
  width: 100%;
  padding: 0 5%;
}

body.frontpage .hero-content {
  padding: 3vw 4vw;
}

body.frontpage .hero-catch {
  display: inline-block;
  border: 2px solid var(--text-dark);
  border-radius: max(6px, 0.5vw);
  padding: max(8px, 0.8vw) max(15px, 1.5vw);
  margin-bottom: max(15px, 1.5vw);
}

body.frontpage .hero-catch p {
  font-size: max(14px, 1.2vw);
  font-weight: bold;
  color: var(--text-dark);
}

body.frontpage .hero-title {
  font-size: max(28px, 2.8vw) !important;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: max(8px, 0.8vw);
}

body.frontpage .hero-logo {
  margin-bottom: max(20px, 2vw);
}

body.frontpage .hero-logo img {
  height: max(70px, 8vw);
  width: auto;
}

body.frontpage .hero-points {
  margin-bottom: max(20px, 2vw);
}

body.frontpage .hero-points img {
  width: max(250px, 25vw);
  height: auto;
}

body.frontpage .hero-btn {
  display: inline-block;
  background-color: var(--main-orange);
  color: var(--white);
  font-size: max(16px, 1.4vw);
  font-weight: bold;
  padding: max(15px, 1.5vw) max(50px, 5.5vw);
  border-radius: max(6px, 0.5vw);
  transition: opacity 0.3s ease;
}

body.frontpage .hero-btn:hover {
  opacity: 0.8;
}

/* ========================================
   共通セクションスタイル
======================================== */
body.frontpage .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

body.frontpage .section-title {
  font-size: 32px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

body.frontpage .section-icon {
  width: 60px;
  height: auto;
}

/* ========================================
   こんなお悩みありませんか？
======================================== */
body.frontpage .problems {
  background-color: var(--white);
}

body.frontpage .problems-box {
  background-color: var(--gray);
  border-radius: 10px;
  padding: 50px 60px;
  padding-top: 70px;
  margin-top: -20px;
}

body.frontpage .problems-list {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

body.frontpage .problem-item {
  flex: 1;
  text-align: center;
}

body.frontpage .problem-image {
  margin-bottom: 20px;
}

body.frontpage .problem-image img {
  max-width: 200px;
  height: auto;
}

body.frontpage .problem-title {
  font-size: 20px !important;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.5;
}

body.frontpage .problem-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

/* ========================================
   メディサポでお悩み解決します
======================================== */
body.frontpage .solutions {
  background-image: url('../images/frontpage/solutions-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.frontpage .solutions .section-inner {
  padding-top: 100px;
  padding-bottom: 100px;
}

body.frontpage .solutions-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

body.frontpage .solutions-icon {
  width: 100px;
  height: auto;
}

body.frontpage .solutions-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 32px !important;
  font-weight: bold;
}

body.frontpage .solutions-title-text {
  position: relative;
  display: inline-block;
  padding: 0 30px !important;
  background: linear-gradient(transparent 60%, rgba(251, 236, 6, 0.6) 60%) !important;
}

body.frontpage .title-lines {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 3px;
}

body.frontpage .title-lines .line {
  display: block;
  width: 2px;
  background-color: var(--text-dark);
}

body.frontpage .title-lines-left .line-outer {
  height: 20px;
  transform: rotate(-40deg);
}

body.frontpage .title-lines-left .line-inner {
  height: 30px;
  transform: rotate(-30deg);
}

body.frontpage .title-lines-right .line-inner {
  height: 30px;
  transform: rotate(30deg);
}

body.frontpage .title-lines-right .line-outer {
  height: 20px;
  transform: rotate(40deg);
}

body.frontpage .solutions-list {
  display: flex;
  justify-content: center;
  gap: 50px;
}

body.frontpage .solution-item {
  flex: 0 0 280px;
}

body.frontpage .solution-circle {
  position: relative;
  width: 280px;
  height: 280px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

body.frontpage .solution-image {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
}

body.frontpage .solution-text {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 1.6;
}

/* ========================================
   メディサポの3つの特徴
======================================== */
body.frontpage .features {
  background-color: var(--white);
}

body.frontpage .features-title {
  font-size: 32px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

body.frontpage .features-title::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 3px !important;
  width: auto !important;
  background-image: repeating-linear-gradient(
    to right,
    var(--yellow),
    var(--yellow) 10px,
    transparent 10px,
    transparent 15px
  ) !important;
  background-color: transparent !important;
  border: none !important;
}

body.frontpage .features-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--main-orange);
  margin: 0 5px;
}

body.frontpage .features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

body.frontpage .feature-item {
  display: flex;
  align-items: center;
  gap: 50px;
}

body.frontpage .feature-item-reverse {
  flex-direction: row-reverse;
}

body.frontpage .feature-image {
  flex: 0 0 50%;
}

body.frontpage .feature-image img {
  width: 100%;
  height: auto;
}

body.frontpage .feature-content {
  flex: 1;
}

body.frontpage .feature-point {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}

body.frontpage .feature-title {
  font-size: 24px !important;
  font-weight: bold;
  margin-bottom: 15px;
}

body.frontpage .feature-text {
  font-size: 16px;
  line-height: 1.8;
}

/* ========================================
   サービス料金体系
======================================== */
body.frontpage .pricing {
  background-color: var(--white);
}

body.frontpage .pricing-title {
  font-size: 32px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

body.frontpage .pricing-title::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px !important;
  height: 4px !important;
  background-color: var(--blue) !important;
  background-image: none !important;
  border: none !important;
}

body.frontpage .pricing-box {
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
}

body.frontpage .pricing-box-yellow {
  background-color: #fbf8dc;
}

body.frontpage .pricing-box-orange {
  background-color: #faf0e8;
}

body.frontpage .pricing-box-title {
  font-size: 28px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
}

body.frontpage .pricing-cards {
  display: flex;
  justify-content: center;
  gap: 60px;
}

body.frontpage .pricing-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px 50px;
  text-align: center;
  flex: 0 0 45%;
  max-width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.frontpage .pricing-card-label {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

body.frontpage .pricing-card-price {
  font-size: 20px;
  font-weight: bold;
}

body.frontpage .price-large {
  font-size: 48px;
  font-weight: bold;
}

body.frontpage .price-blue {
  color: var(--blue);
}

body.frontpage .pricing-btn-wrap {
  text-align: center;
  margin: 60px 0;
}

body.frontpage .pricing-btn {
  display: inline-block;
  background-color: var(--main-orange);
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

body.frontpage .pricing-btn:hover {
  opacity: 0.8;
}

/* 対応診療科 */
body.frontpage .departments {
  background-color: var(--white);
  border: 2px solid #bab7b7 !important;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

body.frontpage .departments-title {
  font-size: 20px !important;
  font-weight: bold;
  margin-bottom: 15px;
}

body.frontpage .departments-text {
  font-size: 16px;
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto 25px;
  text-align: center;
}

body.frontpage .departments-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

body.frontpage .department-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.frontpage .department-circle span {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

body.frontpage .department-blue {
  background-color: #e3f5f9;
}

body.frontpage .department-gray {
  background-color: #dcdcdc;
}

body.frontpage .text-orange {
  color: var(--main-orange);
  font-size: 16px;
}

/* ========================================
   サービスの流れ
======================================== */
body.frontpage .flow {
  background-color: var(--white);
}

body.frontpage .flow-title {
  font-size: 32px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 140px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

body.frontpage .flow-title::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px !important;
  height: 4px !important;
  background-color: var(--blue) !important;
  background-image: none !important;
  border: none !important;
}

body.frontpage .flow-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 80px;
}

body.frontpage .flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 15px;
}

body.frontpage .flow-step-label {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px !important;
  border-radius: 5px;
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

body.frontpage .flow-step-label::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px !important;
  height: 20px !important;
  border: none !important;
}

body.frontpage .flow-step-label.step-1 {
  background-color: #ffec9e !important;
}

body.frontpage .flow-step-label.step-1::after {
  background-color: #ffec9e !important;
}

body.frontpage .flow-step-label.step-2 {
  background-color: #ffd97a !important;
}

body.frontpage .flow-step-label.step-2::after {
  background-color: #ffd97a !important;
}

body.frontpage .flow-step-label.step-3 {
  background-color: #f5b563 !important;
}

body.frontpage .flow-step-label.step-3::after {
  background-color: #f5b563 !important;
}

body.frontpage .flow-step-label.step-4 {
  background-color: #ed9455 !important;
}

body.frontpage .flow-step-label.step-4::after {
  background-color: #ed9455 !important;
}

body.frontpage .flow-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

body.frontpage .flow-step-dot.step-1 {
  background-color: #ffec9e;
}

body.frontpage .flow-step-dot.step-2 {
  background-color: #ffd97a;
}

body.frontpage .flow-step-dot.step-3 {
  background-color: #f5b563;
}

body.frontpage .flow-step-dot.step-4 {
  background-color: #ed9455;
}

body.frontpage .flow-line {
  position: absolute;
  top: 58px;
  left: 12.5%;
  right: 12.5%;
  height: 6px;
  background: linear-gradient(to right, #ffec9e, #ed9455);
  z-index: 1;
}

body.frontpage .flow-step-title {
  font-size: 20px !important;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 15px;
}

body.frontpage .flow-step-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

/* ========================================
   メディサポQ&A
======================================== */
body.frontpage .faq {
  background-color: var(--white);
}

body.frontpage .faq-title {
  font-size: 32px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

body.frontpage .faq-title::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px !important;
  height: 4px !important;
  background-color: var(--blue) !important;
  background-image: none !important;
  border: none !important;
}

body.frontpage .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

body.frontpage .faq-item {
  padding: 30px 0;
  border-bottom: 1px solid #bab7b7;
}

body.frontpage .faq-item:last-child {
  border-bottom: none;
}

body.frontpage .faq-question {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

body.frontpage .faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

body.frontpage .faq-label {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: bold;
  width: 30px;
}

body.frontpage .faq-q {
  color: #c54b4b;
}

body.frontpage .faq-a {
  color: var(--blue);
}

body.frontpage .faq-question-text {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
}

body.frontpage .faq-answer-text {
  font-size: 16px;
  line-height: 1.8;
}

body.frontpage .faq-answer-text p {
  margin-bottom: 5px;
}

body.frontpage .faq-answer-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   お問い合わせ
======================================== */
body.frontpage .contact {
  background: linear-gradient(to bottom, #2a5298, var(--dark-blue));
}

body.frontpage .contact .section-inner {
  padding: 50px 80px;
  display: flex;
  justify-content: flex-end;
}

body.frontpage .contact-box {
  background-color: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 30px 50px;
  gap: 30px;
  width: 80%;
  position: relative;
}

body.frontpage .contact-image {
  flex: 0 0 auto;
  position: absolute;
  left: -140px;
  bottom: 0;
}

body.frontpage .contact-image img {
  width: 250px;
  height: auto;
}

body.frontpage .contact-content {
  flex: 1;
  margin-left: 160px;
}

body.frontpage .contact-text {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 25px;
}

body.frontpage .contact-btn {
  display: inline-block;
  background-color: var(--main-orange);
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  padding: 20px 100px;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

body.frontpage .contact-btn:hover {
  opacity: 0.8;
}

/* ========================================
   フッター
======================================== */
body.frontpage .footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 40px 20px 20px;
}

body.frontpage .footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

body.frontpage .footer-info {
  line-height: 1.8;
}

body.frontpage .footer-company {
  font-weight: bold;
  margin-bottom: 10px;
}

body.frontpage .footer-address {
  font-size: 14px;
}

body.frontpage .footer-url a {
  color: var(--blue);
  text-decoration: underline;
}

body.frontpage .footer-url a:hover {
  opacity: 0.8;
}

body.frontpage .footer-business {
  line-height: 1.8;
}

body.frontpage .business-title {
  font-weight: bold;
  margin-bottom: 10px;
}

body.frontpage .business-list li {
  font-size: 14px;
}

body.frontpage .footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.frontpage .footer-copyright p {
  font-size: 12px;
}

/* ========================================
   料金プラン詳細モーダル
======================================== */
body.frontpage .modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 20px;
}

body.frontpage .modal-overlay.active {
  display: flex;
}

body.frontpage .modal-content {
  background-color: var(--white);
  border-radius: 20px;
  padding: 120px 40px 40px;
  max-width: 1100px;
  width: 100%;
  position: relative;
  margin: auto;
}

body.frontpage .modal-close {
  position: sticky;
  top: 0;
  float: right;
  background-color: var(--white);
  border: none;
  font-size: 36px;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
  padding: 5px 10px;
  z-index: 10;
  transition: opacity 0.3s ease;
  margin-top: -30px;
  margin-right: -10px;
}

body.frontpage .modal-close:hover {
  opacity: 0.6;
}

body.frontpage .modal-plans {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}

body.frontpage .modal-plan-card {
  flex: 1;
  border-radius: 15px;
  padding: 50px 25px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

body.frontpage .modal-plan-orange {
  border: 3px solid #fb8f02;
}

body.frontpage .modal-plan-blue {
  border: 3px solid #0b4dbf;
}

body.frontpage .modal-plan-badge {
  position: absolute;
  top: -70px;
  right: 0;
  background-color: #fbec02;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--text-dark);
  box-shadow: 0 0 0 5px var(--white);
}

body.frontpage .modal-plan-name {
  font-size: 24px !important;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 30px;
  padding-bottom: 15px !important;
  border-bottom: 3px solid #fb8f02 !important;
  color: #fb8f02;
}

body.frontpage .modal-plan-blue .modal-plan-name {
  border-bottom-color: #0b4dbf !important;
  color: #0b4dbf;
}

body.frontpage .modal-plan-name-large {
  font-size: 24px !important;
  border-bottom: none !important;
  text-align: left;
  line-height: 1.6;
}

body.frontpage .modal-plan-body {
  margin-bottom: 35px;
  padding-left: 20px;
  min-height: 220px;
}

body.frontpage .modal-plan-item-bold {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 5px;
}

body.frontpage .modal-plan-item-sub {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

body.frontpage .modal-plan-plus {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
  font-size: 0;
  line-height: 0;
}

body.frontpage .modal-plan-plus::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background-color: #999;
  clip-path: polygon(
    38% 0%, 62% 0%, 62% 38%, 100% 38%, 100% 62%, 62% 62%,
    62% 100%, 38% 100%, 38% 62%, 0% 62%, 0% 38%, 38% 38%
  );
}

body.frontpage .modal-plan-example {
  display: flex;
  flex-direction: column;
}

body.frontpage .modal-plan-example-label {
  font-size: 20px;
  font-weight: bold;
  position: relative;
  z-index: 1;
  margin-bottom: -18px;
}

body.frontpage .modal-plan-example-box {
  background-color: #faf8e3;
  border-radius: 10px;
  padding: 35px 15px 20px;
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
  min-height: 160px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.frontpage .modal-plan-price-result {
  font-size: 20px;
  font-weight: bold;
}

body.frontpage .modal-plan-note {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  margin-top: 8px;
}

body.frontpage .text-multiply {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: #999;
  clip-path: polygon(
    20% 0%, 50% 30%, 80% 0%, 100% 20%, 70% 50%, 100% 80%,
    80% 100%, 50% 70%, 20% 100%, 0% 80%, 30% 50%, 0% 20%
  );
  vertical-align: middle;
  margin: 0 8px;
  font-size: 0;
  line-height: 0;
}

body.frontpage .modal-plan-visit {
  margin-bottom: 25px;
}

body.frontpage .modal-plan-visit-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 20px 50px;
}

body.frontpage .modal-plan-visit-left {
  flex: 0 0 auto;
  padding-right: 50px;
  border-right: 3px solid #0b4dbf;
}

body.frontpage .modal-plan-visit-right {
  flex: 1;
}

body.frontpage .modal-notes {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

body.frontpage .modal-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

body.frontpage .modal-contact-btn {
  display: inline-block;
  background-color: var(--main-orange);
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  padding: 20px 100px;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

body.frontpage .modal-contact-btn:hover {
  opacity: 0.8;
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット用 */
@media screen and (max-width: 1024px) {
  body.frontpage .solutions {
    background-image: url('../images/frontpage/solutions-bg-tablet.jpg');
  }

  body.frontpage .contact-btn {
    padding: 18px 70px;
  }
}

/* スマホ用 */
@media screen and (max-width: 768px) {
  body.frontpage .solutions {
    background-image: url('../images/frontpage/solutions-bg-sp.jpg');
  }

  body.frontpage .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  body.frontpage .hamburger {
    display: flex;
  }

  body.frontpage .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  body.frontpage .header-nav.active {
    max-height: 400px;
    padding: 20px 0;
  }

  body.frontpage .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  body.frontpage .nav-list li {
    width: 100%;
    text-align: center;
  }

  body.frontpage .nav-list a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  body.frontpage .nav-list li:last-child a {
    border-bottom: none;
  }

  body.frontpage .hero-catch {
    border-color: var(--main-orange);
  }

  body.frontpage .hero-catch p {
    color: var(--main-orange);
  }

  body.frontpage .hero-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.5);
  }

  body.frontpage .hero-content {
    max-width: 100%;
  }

  body.frontpage .section-inner {
    padding: 50px 15px;
  }

  body.frontpage .section-title {
    font-size: 24px !important;
  }

  body.frontpage .problems-box {
    padding: 30px 20px;
  }

  body.frontpage .problems-list {
    flex-direction: column;
    gap: 40px;
  }

  body.frontpage .problem-text {
    text-align: center;
  }

  body.frontpage .solutions-title {
    font-size: 24px !important;
  }

  body.frontpage .solutions-title-text {
    padding: 0 40px !important;
    background: linear-gradient(transparent 80%, rgba(251, 236, 6, 0.6) 70%) !important;
  }

  body.frontpage .solutions-title-text::before,
  body.frontpage .solutions-title-text::after {
    height: 20px;
  }

  body.frontpage .solutions-list {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  body.frontpage .solution-item {
    flex: 0 0 auto;
  }

  body.frontpage .features-title {
    font-size: 22px !important;
  }

  body.frontpage .features-number {
    font-size: 36px;
  }

  body.frontpage .feature-item,
  body.frontpage .feature-item-reverse {
    flex-direction: column;
    gap: 30px;
  }

  body.frontpage .feature-image {
    flex: 0 0 auto;
  }

  body.frontpage .feature-title {
    font-size: 20px !important;
  }

  body.frontpage .pricing-title {
    font-size: 22px !important;
  }

  body.frontpage .pricing-box {
    padding: 25px 15px;
  }

  body.frontpage .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  body.frontpage .pricing-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    padding: 25px 20px;
  }

  body.frontpage .price-large {
    font-size: 36px;
  }

  body.frontpage .pricing-btn {
    padding: 15px 30px;
    font-size: 16px;
  }

  body.frontpage .departments {
    padding: 25px 15px;
  }

  body.frontpage .departments-text {
    font-size: 16px;
  }

  body.frontpage .departments-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 20px;
  }

  body.frontpage .department-circle {
    width: 120px;
    height: 120px;
  }

  body.frontpage .department-circle span {
    font-size: 14px;
  }

  body.frontpage .flow-title {
    font-size: 22px !important;
    margin-bottom: 40px;
  }

  body.frontpage .flow-steps {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    position: relative;
  }

  body.frontpage .flow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 15px;
    padding-left: 0;
    padding-bottom: 0;
    text-align: left;
    position: relative;
  }

  body.frontpage .flow-step::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
  }

  body.frontpage .flow-step.flow-step-line-1::before {
    background: linear-gradient(to bottom, #ffec9e, #ffd97a) !important;
  }

  body.frontpage .flow-step.flow-step-line-2::before {
    background: linear-gradient(to bottom, #ffd97a, #f5b563) !important;
  }

  body.frontpage .flow-step.flow-step-line-3::before {
    background: linear-gradient(to bottom, #f5b563, #ed9455) !important;
  }

  body.frontpage .flow-step:last-child::before {
    display: none !important;
  }

  body.frontpage .flow-step-label {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 8px 15px !important;
    font-size: 14px;
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    z-index: 2;
  }

  body.frontpage .flow-step-label::after {
    display: none !important;
  }

  body.frontpage .flow-step-dot {
    display: none;
  }

  body.frontpage .flow-line {
    display: none;
  }

  body.frontpage .flow-step-title {
    font-size: 16px !important;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin-top: 0;
  }

  body.frontpage .flow-step-text {
    grid-row: 2;
    grid-column: 2;
    padding-bottom: 30px;
    font-size: 14px;
  }

  body.frontpage .faq-title {
    font-size: 22px !important;
  }

  body.frontpage .faq-question-text {
    font-size: 16px;
  }

  body.frontpage .faq-answer-text {
    font-size: 14px;
  }

  body.frontpage .contact .section-inner {
    justify-content: center;
    padding: 20px 10px;
  }

  body.frontpage .contact-box {
    flex-direction: column;
    padding: 20px 15px;
    text-align: center;
    width: 100%;
  }

  body.frontpage .contact-image {
    position: relative;
    left: auto;
    bottom: auto;
  }

  body.frontpage .contact-content {
    margin-left: 0;
  }

  body.frontpage .contact-text {
    font-size: 16px;
  }

  body.frontpage .contact-btn {
    padding: 15px 30px;
    font-size: 16px;
  }

  body.frontpage .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* モーダル スマホ対応 */
  body.frontpage .modal-overlay {
    padding: 20px 10px;
  }

  body.frontpage .modal-content {
    padding: 40px 15px 25px;
  }

  body.frontpage .modal-plans {
    flex-direction: column;
    gap: 40px;
  }

  body.frontpage .modal-plan-card {
    padding: 45px 20px 25px;
  }

  body.frontpage .modal-plan-visit .modal-plan-card {
    padding: 30px 20px 25px;
  }

  body.frontpage .modal-plan-visit-inner {
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
  }

  body.frontpage .modal-plan-visit-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 15px;
    text-align: center;
  }

  body.frontpage .modal-plan-name-large {
    text-align: center;
  }

  body.frontpage .modal-notes {
    font-size: 11px;
  }

  body.frontpage .modal-contact-btn {
    padding: 15px 30px;
    font-size: 16px;
  }
}
