/* --- Base Styles --- */
.franchise-page {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 16px;
}

@media screen and (min-width: 769px) {
  .sp {
    display: none !important;
  }

  .pc-hide {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .pc {
    display: none !important;
  }

  .sp-hide {
    display: none;
  }
}

/* 明朝体指定用のクラス */
.franchise-page .font-ming {
  font-family: "Noto Serif JP", serif !important;
}

/* ヒーローセクション専用の明るいデザイン */
.franchise-page .hero-section {
  background-color: #ffffff;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(0, 161, 233, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(246, 173, 85, 0.05) 0%,
      transparent 50%
    ),
    url("../img/franchise_bg01.jpg");
  background-size:
    100% 100%,
    100% 100%,
    cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

.franchise-page .hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8),
    rgba(244, 249, 255, 0.6)
  );
  z-index: 0;
}

/* 浮遊する装飾要素 */
.hero-floating-circle {
  position: absolute;
  border-radius: 50%;
  background: white;
  filter: blur(2px);
  z-index: 1;
  opacity: 0.6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.circle-1 {
  width: 40px;
  height: 40px;
  top: 15%;
  left: 10%;
  animation: float 6s infinite ease-in-out;
}
.circle-2 {
  width: 60px;
  height: 60px;
  bottom: 15%;
  right: 10%;
  animation: float 8s infinite ease-in-out reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 青い背景部分（ヒーロー以外） */
.franchise-page .bg-pale-blue {
  background-color: #f4f9ff;
  background-image: url("../img/franchise_bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.franchise-page .bg-pale-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(244, 249, 255, 0.4);
  z-index: 0;
}

.franchise-page .bg-pale-blue > div {
  position: relative;
  z-index: 1;
}

.franchise-page .bg-diff {
  background-image: url("../img/franchise_bg02.jpg");
  background-size: cover;
  background-position: center;
}

.franchise-page .bg-model {
  background-image: url("../img/franchise_bg03.jpg");
  background-size: cover;
  background-position: center;
}

.franchise-page .bg-step {
  background-image: url("../img/franchise_bg04.jpg");
  background-size: cover;
  background-position: center;
}

.franchise-page .text-primary {
  color: #003e92;
}
.franchise-page .bg-primary {
  background-color: #003e92;
}

.franchise-page .section-padding {
  padding: 100px 20px;
}

.franchise-page .section-padding.pt-more {
  padding: 180px 20px 100px;
}

/* --- HERO Circle Components --- */
.hero-benefit-circle {
  width: 240px;
  height: 240px;
  background: white;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 15px 45px rgba(0, 62, 146, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.hero-benefit-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 62, 146, 0.1);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-benefit-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 62, 146, 0.2);
}

.circle-content {
  text-align: center;
  z-index: 2;
}

.circle-label {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

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

.circle-unit-sub {
  font-size: 16px;
  font-weight: 900;
  color: #334155;
}

.circle-value {
  font-size: 84px;
  font-weight: 950;
  color: #003e92;
  line-height: 1;
  font-family: "Arial Black", sans-serif;
}

.circle-unit {
  font-size: 22px;
  font-weight: 900;
  color: #334155;
  margin-top: -5px;
}

/* --- CTA Button --- */
.cta-button-pop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
  color: #fff;
  padding: 24px 64px;
  border-radius: 100px;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(246, 173, 85, 0.4);
  border: none;
}

.cta-button-pop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transform: scale(0);
  transition: transform 0.5s ease;
}

.cta-button-pop:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 20px 50px rgba(246, 173, 85, 0.6);
}

.cta-button-pop:hover::before {
  transform: scale(1);
}

@media (max-width: 768px) {
  .franchise-page .section-padding {
    padding: 60px 16px;
  }
  .franchise-page .section-padding.pt-more {
    padding: 125px 16px 60px;
  }
  .franchise-page h2 {
    font-size: 2rem !important;
  }
  .franchise-page h3 {
    font-size: 1.5rem !important;
  }
  .franchise-page .hero-section {
    background-attachment: scroll;
    min-height: auto;
    max-height: 1080px;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-benefit-circle {
    width: 158px;
    height: 158px;
  }
  .circle-value {
    font-size: 56px;
  }
  .circle-label {
    font-size: 14px;
  }
  .circle-unit-sub {
    font-size: 14px;
  }
  .circle-unit {
    font-size: 16px;
  }
  .cta-button-pop {
    font-size: 18px;
    padding: 18px 25px;
    width: 100%;
  }
}

/* --- Components --- */
.franchise-page .title-under-line {
  position: relative;
  display: inline-block;
  width: 100%;
}

.franchise-page .title-under-line::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00a1e9;
  margin: 15px auto 0;
}

/* 追加：指定タイトルのための白い枠線（縁取り）設定 */
.franchise-page h3.font-ming:not(.text-white) {
  text-shadow:
    2px 2px 4px #fff,
    -2px 2px 4px #fff,
    2px -2px 4px #fff,
    -2px -2px 4px #fff,
    0 2px 4px #fff,
    0 -2px 4px #fff,
    2px 0 4px #fff,
    -2px 0 4px #fff;
}

.franchise-page .img-placeholder {
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* --- Animations --- */
.franchise-page section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
}

.franchise-page section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.franchise-page label {
  font-size: 14px;
}

/* --- CONTACT SECTION TRIANGLE DECORATION --- */
/* バナーとフォームの境界に下向き三角形を追加 */
.franchise-page #contact {
  position: relative;
}

.franchise-page #contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 150px 0 150px; /* 三角形のサイズ設定 */
  border-color: #ffffff transparent transparent transparent; /* 上のセクションと同じ白 */
  z-index: 20;
}

@media (max-width: 768px) {
  .franchise-page #contact::before {
    border-width: 25px 40px 0 40px; /* モバイル用のサイズ調整 */
  }
}

.contact-submit {
  width: 100%;
  background: #f6ad55;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.contact-submit:hover {
  background: #ed8936;
}

.contact-submit,
.contact-submit-back {
  width: 100%;
  padding: 1rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
}

.contact-submit {
  background: #f6ad55;
  color: #ffffff;
}

.contact-submit:hover {
  background: #ed8936;
}

.contact-submit-back {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.contact-submit-back:hover {
  background: #f9fafb;
}

@media (min-width: 768px) {
  .contact-submit,
  .contact-submit-back {
    width: auto;
    min-width: 220px;
  }
}

/* 確認画面では同意ブロックを非表示 */
.mw_wp_form_confirm .privacy-consent {
  display: none;
}
