/* ========================================
   RESET
======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  color: #20335e;
  background: #d9f0e5;
  line-height: 1.8;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

li {
  list-style: none;
}

/* ========================================
   LP
======================================== */

section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
}

/* ========================================
   画像セクション
======================================== */
.fv-cta {
  position: relative;
  /* z-index: 999; */
}
/* 男性画像 */
.cta-image-container {
  position: absolute;
  top: -18px;
  right: 2px;
  width: 22%;
  max-width: 80px;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   FV
======================================== */

.fv {
  width: 100%;
  position: relative;
  background: #e6f7f1;
}

.cta-web-container {
  position: absolute;
  top: 6%;
  right: 10%;
  display: flex;
  justify-content: flex-end;
}

.cta-web {
  display: inline-block;
  width: fit-content;
  font-size: clamp(0.8rem, 3.5vw, 1.8rem);
  padding: 0.3rem 0.8rem;
  line-height: 1.5;
  color: #ffffff;
  background-color: #f46a3a;
  border-radius: 5px;
  box-shadow: 0 6px 0 rgba(195, 63, 37, 100);
  box-shadow: none;
  border: none;
  white-space: nowrap;
  text-align: center;
}

@keyframes cta-web {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 6px 0 rgba(195, 63, 37, 100),
      0 6px 0 rgba(195, 63, 37, 100);
  }
  50% {
    transform: translateY(5px);
    box-shadow:
      0 1px 0 #f46a3a,
      0 2px 4px rgba(195, 63, 37, 0.1);
  }
}

.cta-web {
  animation: cta-web 1.5s infinite ease-in-out;
}

.fv-cta {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 0.25rem;
  background-color: #20335e;
}

/* ボタンを並べる親要素 */
.cta-button-wrapper {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}

/* ボタン共通設定 */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4.3rem;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  padding-left: 2rem;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  gap: 0.3rem;
  line-height: 1.4;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.cta-button:active {
  transform: translateY(2px);
  opacity: 0.85;
}

/* LINEボタン */
.cta-line {
  background: #4cc764;
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(21, 110, 0, 100);
}

/* LINEアイコン */
.cta-icon-img-line {
  position: absolute;
  right: 71%;
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  flex-shrink: 0;
}

.cta-icon-img {
  position: absolute;
  right: 73%;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}
/* 電話ボタン */
.cta-tel {
  background: #f46a3a;
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(195, 63, 37, 100);
}

.cta-text {
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  margin: 0;
  font-weight: 600;
}

/* LINE吹き出し */
.coment {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  display: inline-block;
  padding: 0.1rem 2rem;
  border: 2px solid #ffffff;
  border-radius: 5px;
  background-color: #4cc764;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  white-space: nowrap;
}

@keyframes coment {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.coment,
.tel-coment {
  animation: coment 2s infinite ease-in-out;
}

/* tel吹き出し */
.tel-coment {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  display: inline-block;
  padding: 0.1rem 1.2rem;
  border: 2px solid #ffffff;
  border-radius: 5px;
  background-color: #f05a3c;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  white-space: nowrap;
}

/* 吹出しの突起（外枠の白） */
.coment::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* 吹出しの突起（内側の緑） */
.coment::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #06c755 transparent transparent transparent;
}

.tel-coment::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.tel-coment::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #f05a3c transparent transparent transparent;
}

.cta-icon {
  margin-right: 8px;
  font-weight: 900;
}

/* ========================================
   SECTION CTA
======================================== */

.section-cta {
    padding: 0 1.25rem 1.5rem 1.25rem;
    text-align: center;
    background-color: #ffffff;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 58px;

  border-radius: 999px;

  background: #f05a3c;
  color: #ffffff;

  font-size: 1.25rem;
  font-weight: 600;

  box-shadow: 0 5px 0 rgb(166, 58, 37, 100);
}

@keyframes primary-button {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 5px 0 rgba(195, 63, 37, 100),
      0 5px 0 rgba(195, 63, 37, 100);
  }
  50% {
    transform: translateY(5px);
    box-shadow:
      0 5px 0 #f46a3a,
      0 5px 0 rgba(195, 63, 37, 0.1);
  }
}

.primary-button {
  animation: cta-web 2s infinite ease-in-out;
}

/* ========================================
   SECTION HEADING
======================================== */

.section-heading {
  padding: 0.75rem 0 0.15rem 1rem;
  text-align: center;
}

.section-heading span {
  display: block;
  color: #f05a3c;
  letter-spacing: 0.2em;
  font-size: 1rem;
  font-weight: 600;
}

.section-heading h2 {
  color: #20335e;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

/* ========================================
   FLOW
======================================== */

.flow {
  background: #f3faf7;
}

.flow-list {
  padding: 0 18px;
}

.flow-item {
  position: relative;

  display: flex;
  gap: 15px;

  padding: 22px 15px;

  margin-bottom: 12px;

  background: #ffffff;

  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(25, 55, 80, 0.07);
}

.flow-number {
  flex: 0 0 64px;

  color: #f05a3c;

  font-size: 10px;
  font-weight: 800;

  text-align: center;
}

.flow-number strong {
  display: block;

  margin-top: -3px;

  font-size: 27px;
  line-height: 1;
}

.flow-content {
  flex: 1;
}

.flow-content h3 {
  margin-bottom: 7px;

  font-size: 16px;
  font-weight: 900;
}

.flow-content p {
  color: #5d6674;

  font-size: 13px;
  line-height: 1.8;
}

/* ========================================
   REASONS
======================================== */

.reasons {
  background: linear-gradient(180deg, #ffffff 0%, #effaf6 100%);
}

.reason-list {
  padding: 0 18px;
}

.reason-card {
  position: relative;

  padding: 28px 22px 25px;

  margin-bottom: 14px;

  background: #ffffff;

  border-radius: 16px;

  border: 1px solid #dceee7;

  box-shadow: 0 6px 18px rgba(30, 60, 80, 0.06);
}

.reason-number {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  margin-bottom: 12px;

  border-radius: 50%;

  background: #e4f7ef;
  color: #1e8a68;

  font-size: 14px;
  font-weight: 900;
}

.reason-card h3 {
  margin-bottom: 8px;

  color: #17243a;

  font-size: 19px;
  font-weight: 900;
}

.reason-card p {
  color: #626b76;

  font-size: 13px;
  line-height: 1.8;
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
  padding-top: 1rem;
  width: 100%;
  color: #ffffff;
}

.cta-small {
  font-size: 13px;
  font-weight: 700;
}

.cta-inner h2 {
  margin: 12px 0 15px;

  font-size: 25px;
  line-height: 1.5;
  font-weight: 900;
}

.cta-time {
  margin-bottom: 22px;

  font-size: 15px;
  font-weight: 800;
}

.cta-time small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================
   VOICE
======================================== */

.voices {
  background: #f4faf8;
}

.voice-card {
  padding: 25px 20px;
  margin: 0 18px 16px;

  background: #ffffff;

  border-radius: 15px;

  box-shadow: 0 5px 18px rgba(20, 60, 60, 0.07);
}

.voice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 15px;
}

.voice-head span {
  color: #f05a3c;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.voice-head strong {
  font-size: 13px;
}

.voice-card h3 {
  margin-bottom: 13px;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
}

.voice-card p {
  margin-bottom: 12px;

  color: #5e6670;

  font-size: 13px;
  line-height: 1.9;
}

.voice-card small {
  display: block;

  color: #8a929b;

  font-size: 10px;
  line-height: 1.7;
}

/* ========================================
   FAQ
======================================== */

.faq {
  padding-bottom: 1rem;

  background: #ffffff;
}

.faq-icon {
  padding: 0.1rem 0.2rem;
}

.faq-item {
  margin: 0 18px 10px;
  border: 1px solid #dfe5e8;
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  padding: 18px 17px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  flex: 0 0 auto;
  color: #f05a3c;
  font-size: 1rem;
  font-weight: 300;
}

.faq-answer {
  position: relative;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  padding: 18px 17px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.faq-icon {
  display: flex;
  justify-content: flex-end;
}

/* ========================================
   CONTACT
======================================== */

.form-title-image {
  display: inline-flex;
  justify-content: center;
  width: 75%;
}

.contact {
  padding: 10px 18px 100px;
  background: #d9f0e5;
  background-image:url(image/Rectangle\ 300.jpg);
  background-repeat: repeat;
  background-size: 100%;
  width: 100%;
  max-width: 800px;
}

.contact .section-heading {
  padding-left: 0;
  padding-right: 0;
}

.contact-lead {
  text-align: center;
  color: #20335e;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.sub-text {
  color: #f05a3c;
}

.contact-sub {
  margin: 7px 0 20px;
  color: #20335e;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.contact-points {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.contact-points span {
  flex: 1;
  padding: 2px 1px;
  background: #ffffff;
  border-radius: 7px;
  color: #f65434;
  background-color: #ffffff;
  border: solid 1.5px #f65434;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
}

.contact-form {
  padding: 1.375rem 1.125rem;
  background: #ffffff;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 0.1rem;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  margin-left: 5px;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
  border-radius: 5px;
  margin: 0.3rem;
}

.form-group label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  background-color: #f05a3c;
  color: #ffffff;
  font-size: 0.5rem;
  padding: 0.1rem 0.75rem;
  border-radius: 5px;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question-text {
  display: flex;
  align-items: center;
  text-align: left;
}

.faq-icon {
  margin-left: auto;
}

.question-icon {
  display: inline-flex;
  align-items: center;
  color: #ffffff !important;
  background-color: #20335e;
  padding: 1px 0.5rem 2px 0.5rem;
  margin-right: 0.5rem;
  border-radius: 5px;
  font-weight: 600 !important;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  background: #f7f9fa;
  border: 1px solid #dce2e5;
  border-radius: 7px;
  outline: none;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #20335e;
  background: #ffffff;
}

#situation,
#company {
  color: #20335e;
  font-weight: 600;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 20px;
  color: #69727b;
  font-size: 11px;
}

.privacy input {
  width: 16px;
  height: 16px;
}

.submit-button {
  width: 100%;
  height: 3.625rem;
  border: none;
  border-radius: 999px;
  background: #f05a3c;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(240, 90, 60, 0.25);
}

/* 送信ボタン */
/* 送信ボタンのデフォルト（グレーアウト状態） */
#submitBtn {
  background-color: #cccccc !important;
  color: #666666 !important;
  opacity: 0.7;
  pointer-events: none;
  transition: background-color 0.3s, opacity 0.3s;
}
/* 必須項目が埋まったとき（有効状態） */
#submitBtn.is-active {
  background-color: #ff3b30 !important;
  color: #ffffff !important;
  opacity: 1;
  pointer-events: auto;
}
/* エラー時の入力欄枠線 */
input.input-error, select.input-error {
  border-color: #ff3b30 !important;
}
/* エラーメッセージ（文字サイズ調整済み） */
.field-error-msg {
  color: #ff3b30 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  margin-top: 4px !important;
  font-weight: bold !important;
  display: none;
}

input, select, textarea {
  font-size: 16px !important;
}

/* プライバシーポリシーモーダル */
/* モーダルのスタイル */
.modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        padding: 20px;
        box-sizing: border-box;
      }
      .modal-content {
        background-color: #ffffff;
        width: 100%;
        max-width: 600px;
        max-height: 80vh;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        overflow: hidden;
      }
      .modal-header {
        padding: 15px 20px;
        background-color: #f7f7f7;
        border-bottom: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .modal-header h3 {
        margin: 0;
        font-size: 16px;
        color: #333;
      }
      .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        line-height: 1;
      }
      .modal-body {
        padding: 20px;
        overflow-y: auto;
        font-size: 14px;
        line-height: 1.6;
        color: #333;
        text-align: left;
      }
      .modal-body h4 {
        margin-top: 15px;
        margin-bottom: 5px;
        font-size: 14px;
        color: #111;
      }

      .privacy-link {
  color: #0066cc; 
  text-decoration: underline; 
  cursor: pointer; 
}

.privacy-link:hover {
  opacity: 0.7; 
}
/* ========================================
   FIXED CTA
======================================== */

.fixed-cta {
  position: fixed !important;
  z-index: 2147483647 !important;

  /* 非表示時は画面下に大きく退避（男性画像の頭飛び出し防止） */
  bottom: -300px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: 100%;
  max-width: 800px;

  padding-bottom: 0.5rem;

  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.12);
  background-color: rgba(32, 51, 94, 0.85);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: bottom 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

/* 男性画像 */
.fixed-image-container {
  position: absolute;
  top: -30px;
  right: 5px;
  width: 22%;
  max-width: 80px;
}

.fixed-button-wrapper {
  display: flex;
  margin: 0.75rem 0.5rem 0.25rem 0.5rem;
  gap: 0.5rem;
}

/* 表示状態 */
.fixed-cta.is-visible {
  bottom: env(safe-area-inset-bottom, 0px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ① 下から上スクロール時（メニューバー縮小）：0の位置 */
.fixed-cta.is-visible.is-scroll-up {
  bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* ② 上から下スクロール時（メニューバー拡大）：隠れないよう上に浮かせる */
.fixed-cta.is-visible.is-scroll-down {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
}

.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50%;
  height: 58px;

  color: #ffffff;

  font-size: 0.9rem;
  font-weight: 700;
}

.fixed-tel {
  background: #20335e;
}

.fixed-line {
  background: #06c755;
}

/* ========================================
   PC
======================================== */

@media screen and (min-width: 768px) {
  body {
    background: #dfe9e5;
  }

  .lp {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}
