@charset "UTF-8";

/* ミルハイア LP — 402px ベースのモバイルデザインを中央寄せで全デバイス対応 */

:root {
  --brand-purple: #7d2ebd;
  --brand-purple-dark: #5b1e93;
  --brand-yellow: #ffc400;
  --brand-yellow-deep: #f5a800;
  --brand-cream: #faf8f5;
  --text-dark: #1f1f1f;
  --req-red: #e5484d;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--brand-cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── LPカラム ─────────────────────── */
.lp {
  max-width: 500px;
  margin: 0 auto;
  background: var(--brand-cream);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
}

.sec {
  position: relative;
}

.sec img {
  width: 100%;
  height: auto;
}

/* デザイン上のセクション間余白（402px幅基準の%換算） */
.gap-16 { margin-top: 3.98%; }
.gap-18 { margin-top: 4.48%; }
.gap-20 { margin-top: 4.98%; }
.gap-34 { margin-top: 8.46%; }
.gap-45 { margin-top: 11.19%; }
.gap-46 { margin-top: 11.44%; }

/* ヒーロー内CTAボタン（画像内ボタンの上に透明リンクを重ねる）
   計測値: 新ヒーロー画像(1443x2563)のボタン = y 91.07%〜96.88% / x 5.8%〜93.2% */
.hero-cta-link {
  position: absolute;
  left: 7%;
  right: 8%;
  top: 91.5%;
  height: 7.3%;
  border-radius: 18px;
  display: block;
}

/* ─── クロージング下のお問い合わせ誘導（sec09画像下部から切り出してテキスト化） ─── */
.closing-lead {
  background: #fdfdfd;
  padding: 26px 4% 30px;
  text-align: center;
  font-size: clamp(16px, 4.4vw, 22px);
  font-weight: 900;
  color: #232338;
  line-height: 1.4;
}

.closing-lead em {
  font-style: normal;
  color: #3a26b4;
}

.closing-lead-slash {
  color: #3a26b4;
  font-weight: 700;
  margin: 0 8px;
}

/* ─── お問い合わせフォーム ─────────────── */
/* セクション画像の背景（白）と揃える。上の間隔は gap ではなく白背景内の padding で確保 */
.contact {
  background: #fdfdfd;
  padding: 0 5% 14%;
}

.form {
  background: #fff;
  border: 1px solid rgba(125, 46, 189, 0.25);
  border-radius: 16px;
  padding: 8% 6%;
  box-shadow: 0 4px 16px rgba(125, 46, 189, 0.08);
}

.form_item {
  margin-bottom: 20px;
}

.form_item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-purple-dark);
  margin-bottom: 6px;
}

.req,
.any {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  padding: 1px 8px;
  line-height: 1.6;
}

.req { background: var(--req-red); }
.any { background: #9b9b9b; }

.form_item input,
.form_item select,
.form_item textarea {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid #d9cbec;
  border-radius: 8px;
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
}

.form_item input::placeholder,
.form_item textarea::placeholder {
  color: #b3a8c4;
}

.form_item select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d2ebd' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form_item select:invalid {
  color: #9b9b9b;
}

.form_item textarea {
  min-height: 110px;
  resize: vertical;
}

.form_item input:focus,
.form_item select:focus,
.form_item textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(125, 46, 189, 0.12);
}

.form_item input.is-invalid,
.form_item select.is-invalid {
  border-color: var(--req-red);
  background: #fff6f6;
}

.form-error {
  display: none;
  font-size: 12px;
  color: var(--req-red);
  margin-top: 4px;
}

.submit-btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--brand-yellow) 0%, var(--brand-yellow-deep) 100%);
  border-radius: 999px;
  padding: 16px 10px;
  margin-top: 8px;
  box-shadow: 0 4px 0 rgba(180, 120, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.submit-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(180, 120, 0, 0.55);
}

.submit-btn:disabled,
.submit-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── よくあるご質問（sec08 画像→アコーディオン化） ─── */
.faq {
  background: linear-gradient(180deg, #f7f7f8 0%, #f0f1f1 100%);
  padding: 9% 5% 5%;
  overflow: hidden;
}

.faq::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 18px solid rgba(177, 160, 220, 0.32);
  pointer-events: none;
}

.faq-heading {
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: #232338;
  line-height: 1.3;
  margin-bottom: 14px;
}

.faq-heading-em {
  color: #3a26b4;
  border-bottom: 5px solid #fdc217;
  padding-bottom: 3px;
}

.faq-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 58%;
  margin: 0 auto 26px;
}

.faq-divider::before,
.faq-divider::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, rgba(45, 45, 75, 0), #2d2d4b);
}

.faq-divider::after {
  background: linear-gradient(90deg, #2d2d4b, rgba(45, 45, 75, 0));
}

.faq-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fdc217;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(40, 30, 90, 0.07);
  margin-bottom: 18px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  -webkit-tap-highlight-color: transparent;
}

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

.faq-badge-q,
.faq-badge-a {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.faq-badge-q {
  background: #fdc217;
  color: #232338;
}

.faq-badge-a {
  background: #422eaf;
  color: #fff;
}

.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  color: #232338;
  line-height: 1.55;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 3px solid #2f1ba8;
  border-bottom: 3px solid #2f1ba8;
  border-radius: 1px;
  margin-right: 6px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 22px;
  border-top: 1px solid #e9e9f1;
}

.faq-a p {
  flex: 1;
  font-size: 14px;
  line-height: 1.95;
  color: #33334a;
  padding-top: 7px;
}

/* ─── reCAPTCHA ───────────────────── */
/* 追従バッジは非表示（規約要件として .recaptcha-note の帰属表記をフォーム内に掲示） */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.7;
  color: #9b93a8;
  text-align: center;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* ─── フッター ────────────────────── */
.footer {
  background: #2a2140;
  color: #fff;
  text-align: center;
  padding: 24px 16px 90px;
  font-size: 11px;
}

.footer_links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.footer_links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer_links a:hover {
  text-decoration: underline;
}

/* ─── 追従CTA（クライアント提供コード） ─────────── */
.floating-banner {
  position: fixed;
  z-index: 99999;
  bottom: 24px;            /* 位置 */
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 17px 30px;
  border-radius: 9999px;   /* ピル型 */
  background: #f5df6d;     /* 画像の黄色 */
  color: #2b2b33;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);

  /* 初期状態：非表示＋少し下にずらす */
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity .7s ease,
              transform .7s cubic-bezier(.22,.61,.36,1),
              visibility .7s;
}
/* JSでこのクラスが付くと、じんわり浮き上がる */
.floating-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-banner.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.floating-banner:focus-visible { outline: 3px solid #2b2b33; outline-offset: 3px; }
.floating-banner__arrow { font-size: .85em; }

/* スマホ：左右12px空けた横長ボタン。1行固定 */
@media screen and (max-width: 560px) {
  .floating-banner {
    right: 12px; left: 12px; bottom: 12px;
    justify-content: center;
    padding: 15px 16px;
    letter-spacing: 0;
    white-space: nowrap;                 /* 折り返し禁止 */
    font-size: clamp(12px, 3.6vw, 15px); /* 画面幅に応じて縮小 */
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-banner { transition: opacity .2s linear; transform: none; }
  .floating-banner.is-visible { transform: none; }
}

/* ─── サンクスページ ───────────────── */
.thanks-body .lp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 正式デザイン画像（梶木氏支給 99_LE_upscale_gentle）をLP同様に画像で表示 */
.thanks-main {
  flex: 1;
}

/* 画像内の「お急ぎの方は」メールアドレス（焼き込み）に透明mailtoリンクを重ねる
   （アドレス実測: y93.0-95.7%） */
.thanks-mail-link {
  position: absolute;
  left: 20%;
  right: 7%;
  top: 92.6%;
  height: 4.2%;
  display: block;
}

.thanks-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 300px;
  margin: 8% auto 12%;
  font-size: 15px;
  font-weight: 900;
  color: var(--text-dark);
  text-decoration: none;
  background: linear-gradient(180deg, var(--brand-yellow) 0%, var(--brand-yellow-deep) 100%);
  border-radius: 999px;
  padding: 15px 10px;
  box-shadow: 0 4px 0 rgba(180, 120, 0, 0.55);
}

.thanks-back-arrow {
  font-size: 0.8em;
}

.thanks-back:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(180, 120, 0, 0.55);
}

.thanks-body .footer {
  padding-bottom: 28px;
}

@media (min-width: 500px) {
  .sp-br { display: none; }
}
