@charset "utf-8";

body {
  /***	フォント関連設定	***/
  font-family: "游ゴシック", "Yu Gothic", "游ゴシック体", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;

  font-size: 112.5%;
  /* 18px */
  font-size: 125%;
  /* 20px */
  line-height: 1.7;
  /***	背景＆文字色設定	***/
  background: #f5f5f5;
  color: #222;
  font-feature-settings: "palt";
  text-align: justify;
}

/***	ヘッダー画像	***/

h2 {
  margin: 0 auto;
  text-align: center;
  padding: 0em 0;
}

h3 {

  padding: 1.5em 0;
}

a {
  cursor: pointer;
}

img {
  display: block;
  /*	ブロック要素としてふるまう：中揃えで表示	*/
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: bold;
}

/***　見出しの設定用　***/

/* --------------------------------------------------
背景設定
----------------------------------------------------- */

.bg {
  background-image: url("../images/bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg_white {
  background: #FFFFFF;
}



/*---	背景ここまで---*/

/* フッター設定 */
footer {
  margin: 0 auto;
  padding: 1em 0;
  background: #fff;
  color: #222;
  text-align: center;
  font-size: 75%;
}

footer a {
  color: #222;
  text-decoration: underline;
}

footer a:hover {
  color: #595959;
}

address {
  font-style: normal;
}


/* --------------------------------------------------
テキスト装飾
----------------------------------------------------- */
.bold {
  font-weight: bold;
}

.large {
  font-size: 120%;
}

.xlarge {
  font-size: 144%;
}

.xxlarge {
  font-size: 172.8%;
}

.small {
  font-size: 82.5%;
}

.xsmall {
  font-size: 62.5%;
}

.xxsmall {
  font-size: 56.25%;
}

.u {
  text-decoration: underline;
}

.red {
  color: red;
}

.pink {
  color: #e72444;
}

.white {
  color: #FFFFFF;
}

.underline {
  background: linear-gradient(transparent 70%, yellow 70%);
}

.highlight_blue {
  background-color: #000436;
  padding: 0.1em;
}

.highlight_white {
  background-color: #fff;
  padding: 0.1em;
}

.highlight {
  background-color: #fff266;
}

.redhigh {
  color: red;
  background-color: #fff266;
}

/***	テキスト装飾設定ここまで	***/

/* PC版のみ表示 */
.pc-only {
  display: block;
}

/* SP版のみ表示 */
.sp-only {
  display: none;
}

/* --------------------------------------------------
案件ごとのコンテンツ内容
----------------------------------------------------- */




/*
 *		class-name　案件ごとのコンテンツ内容　ここまで
 */

.deco {
  display: block;
  margin: 30px auto 0;
  margin-bottom: 20px;
  padding: 10px 6px 4px;
  width: 840px;
  max-width: 96%;
  height: 108px;
  border: 4px solid #cbcbcb;
  background: #fff;
  color: #333;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}

.deco::placeholder {
  color: #AAA;
}

.btn {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  animation-name: btn-animation;
  animation-iteration-count: infinite;
  animation-duration: 2s; 
}

.btn:hover {
  animation-duration: 0.8s;
  opacity: 0.8;
}

.optin {
  font-size: 0.9em;
  padding: 1.3em;
  text-align: center;
  color: #fff;
}

/***	form設定ここまで	***/


@keyframes btn-animation {
  0% {
    transform: translateY(0.5em);
  }

  50% {
    transform: translateY(-0.5em);
  }

  100% {
    transform: translateY(0.5em);
  }
}

/* 最大スケール ≈1.24 → ハロー幅は据え置き、速さ・濃さは .cta-tel-btn の変数で調整可 */
@keyframes cta-tel-ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: var(--cta-tel-ripple-opacity, 0.58);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.24);
    opacity: 0;
  }
}



@media screen and (max-width: 1024px) {
  /***	幅1024px以下に適用：ipad proなどの1024pxのものはスマホ表示	***/

  /* 文字サイズを小さくする場合 */

  body {
    font-size: 100%;

  }


  h2 {
    padding: 0.5em 0;
  }

  h3 {
    margin: 0 auto;
    text-align: center;
    padding: 0.5em 0;
    font-size: 1.2em;

  }

 

  /* --------------------------------------------------
案件ごとの設定
----------------------------------------------------- */



  /* 案件ごとの設定ここまで */


  /***	テキスト装飾設定	***/
  .xlarge {
    font-size: 125%;
  }

  .xxlarge {
    font-size: 150%;
  }

  /***　中央揃え　***/
  .center {
    text-align: center;
  }


  /* PC版のみ表示を非表示 */
  .pc-only {
    display: none;
  }

  /* SP版のみ表示を表示 */
  .sp-only {
    display: block;
  }

  /**formの設定 */

  
  
}

@media screen and (max-width: 599px) {
  /***	幅599px以下に適用：スマホ	***/
}

/*
 *		特商法
 */
.page_laws #wrapper {
  margin: 0 auto 2em;
  padding: 3em;
  width: 800px;
  background: #fff;
  max-width: 100%;
  font-size: 75%;
}

.page_laws #wrapper h2 {
  margin: 0 auto;
  font-size: 2em;
  text-align: center;
}

.page_laws #wrapper h3 {
  margin-top: 2em;
  font-size: 1.25em;
}

.page_laws #wrapper h4 {
  margin-top: 2em;
}

.page_laws table {
  margin: 1.5em auto;
  border-collapse: separate;
  border-spacing: 1px;
  background: #ccc;
}

.page_laws th {
  padding: 0.5em;
  width: 28%;
  border-top: 1px solid #fff;
  background-color: #EBEBEB;
}

.page_laws td {
  padding: 0.5em;
  font-size: 0.8em;
  background-color: #FFFFFF;
}

/* =========================================
   LP Template Logic ========================================= */

/* 最上段：PC＝logoheader ＋（telheader｜lineheader｜mailheader）／SP＝logo_sp ＋ *_sp
   ボタン群は幅に対して右詰め（cta-group を shrink + margin-left:auto）。高さは変数で調整 */
.site-header-bar {
  --header-bar-height: clamp(52px, 9.8vw, 76px);
  --header-cta-gap: 0.45rem;
  --header-cta-padding-x: 0.4rem;
  --header-cta-padding-y: 0.16rem;
  --header-inner-gap: clamp(0.4rem, 1.5vw, 1rem);
  --header-logo-img-max-h: calc(var(--header-bar-height) - 0.45rem);
  /* LINE・メール（正方形）の高さ上限 */
  --header-cta-img-max-h: calc(var(--header-bar-height) - 0.55rem);
  /* 電話（横長）— 大きくしたいときは --header-bar-height とあわせて上げる */
  --header-tel-img-max-h: calc(var(--header-bar-height) - 0.42rem);
  background: #fff;
  overflow: hidden;
  border-bottom: 0;
}

.site-header-bar__inner--pc {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-bar-height);
  gap: var(--header-inner-gap);
  padding: 0.3rem clamp(0.35rem, 1.2vw, 0.75rem);
  line-height: 0;
  box-sizing: border-box;
}

.site-header-bar__inner--sp {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-bar-height);
  gap: var(--header-inner-gap);
  padding: 0.28rem 0.35rem;
  line-height: 0;
  box-sizing: border-box;
}

.site-header-bar__logo,
.site-header-bar__sp-logo {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.site-header-bar__logo img,
.site-header-bar__sp-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--header-logo-img-max-h);
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.site-header-bar__cta-group {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: var(--header-cta-gap);
  margin: 0;
  margin-left: auto;
  padding: var(--header-cta-padding-y) var(--header-cta-padding-x);
  line-height: 0;
  box-sizing: border-box;
  background: #fff;
}

/* 電話に flex:1 を付けない＝横長ピルが左へ伸びず、3点まとめて右に寄る */
.site-header-bar__cta-link:first-child {
  flex: 0 0 auto;
}

.site-header-bar__cta-link:first-child img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--header-tel-img-max-h);
  margin: 0;
  object-fit: contain;
}

.site-header-bar__cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  line-height: 0;
}

.site-header-bar__cta-link:not(:first-child) img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--header-cta-img-max-h);
  margin: 0;
  object-fit: contain;
}

@media screen and (max-width: 1024px) {
  .site-header-bar {
    --header-bar-height: clamp(48px, 13.5vw, 66px);
    --header-cta-gap: 0.28rem;
    --header-cta-padding-x: 0.26rem;
    --header-cta-padding-y: 0.1rem;
    /* SP：ロゴ幅を確保しつつ、右3ボタンのサイズ感をそろえる */
    --header-logo-img-max-h: 23px;
    --header-tel-img-max-h: clamp(40px, 12vw, 52px);
    --header-cta-img-max-h: clamp(30px, 8.8vw, 40px);
    /* 電話ボタンが使える横幅（動ける範囲） */
    --header-sp-tel-slot-max-w: clamp(150px, 43vw, 230px);
  }

  .site-header-bar__inner--pc {
    display: none;
  }

  .site-header-bar__inner--sp {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-right: 0.12rem;
  }

  .site-header-bar__inner--sp .site-header-bar__sp-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  /* SPは logoheader.png を採用。ロゴだけ height 指定でサイズ調整 */
  .site-header-bar__inner--sp .site-header-bar__sp-logo img {
    height: var(--header-logo-img-max-h);
    max-height: var(--header-logo-img-max-h);
    width: auto;
  }

  .site-header-bar__inner--sp .site-header-bar__cta-group--sp {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.22rem;
    padding-right: 0;
  }

  .site-header-bar__inner--sp .site-header-bar__cta-group--sp .site-header-bar__cta-link:first-child {
    justify-content: flex-end;
    flex: 0 1 var(--header-sp-tel-slot-max-w);
    width: var(--header-sp-tel-slot-max-w);
    max-width: var(--header-sp-tel-slot-max-w);
    min-width: 120px;
  }

  .site-header-bar__inner--sp .site-header-bar__cta-group--sp .site-header-bar__cta-link:first-child img {
    max-width: 90%;
    margin-left: auto;
    margin-right: 0;
  }
}

/* ---------- CTA（PC: cta.png 重ね／SP: cta_sp.png + ボタン画像3段） ---------- */
/* 位置・文字サイズはこのブロックの変数で調整 */
.cta-panel {
  --cta-clock-font-size: clamp(2.625rem, 6.3vw, 4.5rem);
  --cta-catch-font-size: clamp(1rem, 2.4vw, 1.75rem);
  --cta-headline-top: 3%;
  --cta-headline-left: 16%;
  --cta-headline-max-width: 52%;
  --cta-actions-width: min(760px, 80%);
  --cta-actions-bottom: 9%;
  --cta-actions-gap: 0.65rem;
  background: #1e40af;
}

.cta-panel__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1400px;
}

.cta-panel__bg {
  display: block;
  width: 100%;
  line-height: 0;
}

.cta-panel__bg img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  max-width: none;
}

.cta-panel__content {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.cta-panel__headline {
  position: absolute;
  top: var(--cta-headline-top);
  left: var(--cta-headline-left);
  max-width: var(--cta-headline-max-width);
  pointer-events: none;
  text-align: left;
}

.cta-panel__clock {
  display: block;
  margin: 0 0 0.35em;
  margin-left: clamp(0.75rem, 2.8vw, 2.25rem);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 700;
  font-size: var(--cta-clock-font-size);
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.02em;
}

.cta-panel__catch {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 700;
  font-size: var(--cta-catch-font-size);
  line-height: 1.35;
  color: #ffe41a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cta-panel__actions {
  position: absolute;
  left: 50%;
  bottom: var(--cta-actions-bottom);
  transform: translateX(-50%);
  width: var(--cta-actions-width);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--cta-actions-gap);
  pointer-events: auto;
}

.cta-panel__btn {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.cta-panel__btn img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  max-width: none;
}

/* CTA 電話ボタン：画像は固定、背面から波が重なって広がる（PC・SP共通） */
.cta-tel-btn {
  --cta-tel-ripple-duration: 1.05s;
  --cta-tel-ripple-opacity: 0.58;
  --cta-tel-ripple-bg: rgba(220, 38, 38, 0.55);
  position: relative;
  isolation: isolate;
}

.cta-tel-btn picture,
.cta-tel-btn img {
  position: relative;
  z-index: 1;
}

.cta-tel-btn::before,
.cta-tel-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  background: var(--cta-tel-ripple-bg);
  border-radius: 9999px;
  z-index: 0;
  pointer-events: none;
  animation: cta-tel-ripple var(--cta-tel-ripple-duration) ease-out infinite;
}

.cta-tel-btn::after {
  animation-delay: calc(var(--cta-tel-ripple-duration) * 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .cta-tel-btn::before,
  .cta-tel-btn::after {
    animation: none;
    opacity: 0;
  }
}

.cta-panel__inner--sp {
  display: none;
}

.cta-panel__inner--pc {
  display: block;
}

@media screen and (max-width: 1024px) {
  .cta-panel {
    --cta-clock-font-size: clamp(2.25rem, 8.25vw, 3.375rem);
    --cta-catch-font-size: clamp(0.9rem, 3.2vw, 1.35rem);
    --cta-headline-top: 6%;
    --cta-headline-left: 7%;
    --cta-headline-max-width: 60%;
    --cta-actions-width: min(485px, 75%);
    --cta-actions-bottom: 8%;
    --cta-actions-gap: 0.5rem;
  }

  .cta-panel__inner--pc {
    display: none !important;
  }

  .cta-panel__inner--sp {
    display: block;
  }

  .cta-panel__inner--sp .cta-panel__actions.cta-panel__actions--sp-stack {
    gap: clamp(0.28rem, 1.2vw, 0.45rem);
    width: min(500px, 82%);
    /* 上の文言（時計・キャッチ）との間を空けてボタン群を下へ（数値を下げるほど下に寄る） */
    bottom: 4%;
  }
}

/* ---------- Q&A（bg/title は画像・本文はテキストアコーディオン） ---------- */
/* PC の余白・間隔（SP は下の @media で上書き） */
.lp-faq {
  --lp-faq-pad-top: 60px;
  --lp-faq-pad-bottom: 60px;
  --lp-faq-pad-inline: clamp(16px, 4vw, 48px);
  /* タイトル下〜先頭のQ：閉じた状態のコンパクトさと、すべて開いたときの密度のバランス用 */
  --lp-faq-title-to-list: 28px;
  --lp-faq-item-gap: 30px;
  --lp-faq-q-font: clamp(1.08rem, 1.45vw, 1.34rem);
  --lp-faq-a-font: clamp(1.02rem, 1.28vw, 1.22rem);
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: #153d8a;
  background-image: url("../images/q_a_bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #fff;
  box-sizing: border-box;
}

.lp-faq__inner {
  margin: 0 auto;
  max-width: 52rem;
  padding: var(--lp-faq-pad-top) var(--lp-faq-pad-inline) var(--lp-faq-pad-bottom);
  text-align: left;
  box-sizing: border-box;
}

.lp-faq__title-head {
  margin: 0 0 var(--lp-faq-title-to-list);
  text-align: center;
  font-size: 0;
  line-height: 0;
  font-weight: normal;
}

.lp-faq__title-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.lp-faq__item {
  margin-bottom: var(--lp-faq-item-gap);
  border: none;
}

.lp-faq__item:last-child {
  margin-bottom: 0;
}

.lp-faq__q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85em 1.15em;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, sans-serif;
  font-size: var(--lp-faq-q-font);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  background: #5aa4fc;
  border-radius: 9999px;
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

@media screen and (max-width: 1024px) {
  /*
   * SP の Q&A を狭くしたいとき（このブロック内だけ触る）:
   * 1) .lp-faq__inner に max-width を足す … 例: max-width: min(690px, 100%);
   * 2) --lp-faq-pad-inline を大きくする … 左右の余白が増え、本文が細く見える
   * 3) タイトル画像だけ小さく … .lp-faq__title-img { max-height: 40px; width: auto; }
   */
  .lp-faq {
    --lp-faq-pad-top: 33px;
    --lp-faq-pad-bottom: 60px;
    /* 背景端から Q&A ブロックまで左右 25px（本文の実効幅 ≒ 100vw − 50px） */
    --lp-faq-pad-inline: 25px;
    --lp-faq-title-to-list: 24px;
    --lp-faq-item-gap: 30px;
    --lp-faq-q-font: 1rem;
    --lp-faq-a-font: 1rem;
    background-image: url("../images/q_a_bg_sp.png");
  }

  .lp-faq__title-head {
    width: 85px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .lp-faq__title-head picture {
    display: block;
    width: 100%;
  }

  .lp-faq__title-img {
    width: 100%;
    height: auto;
  }

  .lp-faq__q {
    gap: 0.55rem;
    padding: 0.78em 0.95em;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .lp-faq__a {
    line-height: 1.62;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.lp-faq__q::-webkit-details-marker {
  display: none;
}

.lp-faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.25em;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.95;
}

.lp-faq__item[open] .lp-faq__q::after {
  transform: rotate(-135deg);
  margin-top: 0.2em;
}

.lp-faq__a {
  margin: 0.5rem 0 0;
  padding: 1em 1.15em 1.15em;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, sans-serif;
  font-size: var(--lp-faq-a-font);
  line-height: 1.75;
  color: #333;
  background: #fff;
  border-radius: 1rem;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: break-word;
}

.lp-faq__a p {
  margin: 0;
  min-width: 0;
}

/* 画像の実ピクセル幅（例: 986px）がビューポートより狭いと、左右に body の背景色が見える。
   幅100%で伸ばして隙間をなくす（拡大によるにじみは、書き出し幅を 1400px などに上げると改善） */
header .lp-section picture,
.lp-section picture {
  display: block;
  width: 100%;
}

header .lp-section img,
.lp-section img {
  width: 100%;
  max-width: none;
  height: auto;
}

/* SP版のみの画像をPC版で非表示 */
@media screen and (min-width: 1025px) {
  .lp-section picture.sp-only {
    display: none;
  }

}


/* ============================================================
   ★ フォームの調整（未使用）★
   現状 index に .form はありません。手順書どおりフォームを入れる案件では
   セクションと本ブロックを復元してください。
   ============================================================ */

/* 追従CTA（PC/SP）：吹き出し＋割引文言＋ tel/line/mail（PCは正方形＋電話伸長、SPは --flbtn-img-height） */
.flbtn {
  position: fixed;
  z-index: 9999;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(10px, 1.5vw, 18px);
  width: min(400px, calc(100vw - 28px));
  box-sizing: border-box;
  overflow: visible;
  padding: 0 10px 7px;
  border-radius: 12px;
  background: #2585ee;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.flbtn__head {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: clamp(1.05rem, 4.2vw, 1.45rem);
}

.flbtn__copy {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
  margin: 0;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 0.26em 0.95em 0.3em;
  border: 2px solid #0069d9;
  border-radius: 9999px;
  background: #fff;
  color: #0d3f93;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, "Yu Gothic", sans-serif;
  font-size: clamp(0.7rem, 2vw, 0.92rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 2px 0 rgba(13, 63, 147, 0.12));
}

.flbtn__copy strong {
  font-size: 1.15em;
  font-weight: 900;
}

.flbtn__copy::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #0069d9;
}

.flbtn__copy::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  z-index: 1;
}

.flbtn__promo {
  margin: 0 0 5px;
  padding: 0 2px;
  color: #ff1f1c;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, "Yu Gothic", sans-serif;
  font-size: clamp(0.76rem, 2.35vw, 0.9rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

.flbtn__promo-slash {
  color: #fff;
  font-weight: 900;
  text-shadow: none;
}

.flbtn__promo-num {
  font-size: 1.28em;
  font-weight: 900;
  vertical-align: -0.05em;
}

.flbtn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.flbtn__actions {
  --flbtn-img-height: clamp(48px, 10.5vw, 56px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

.flbtn__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  box-sizing: border-box;
}

/* 電話：残り幅いっぱい。LINE・メール：高さと同じ幅の正方形（参考デザイン） */
.flbtn__btn--tel {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
}

.flbtn__btn--line,
.flbtn__btn--mail {
  flex: 0 0 var(--flbtn-img-height);
  width: var(--flbtn-img-height);
  height: var(--flbtn-img-height);
}

.flbtn__btn--tel img {
  display: block;
  height: var(--flbtn-img-height);
  width: auto;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
}

.flbtn__btn--line img,
.flbtn__btn--mail img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
}

/* PC：吹き出しだけ改行しない（ボタン列は変更前の正方形レイアウトのまま） */
@media screen and (min-width: 1025px) {
  .flbtn__copy {
    white-space: nowrap;
    max-width: min(560px, calc(100vw - 32px));
  }
}

@media screen and (max-width: 1024px) {
  .flbtn {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    /* SP：左右に余白、下は少し厚めの帯 */
    padding: 0 clamp(10px, 4vw, 20px) calc(12px + env(safe-area-inset-bottom, 0px));
    background: #2585ee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  }

  .flbtn__head {
    padding-top: clamp(1.05rem, 5vw, 1.5rem);
  }

  .flbtn__copy {
    box-sizing: border-box;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 0.26em 0.95em 0.3em;
    font-size: clamp(0.68rem, 2.95vw, 0.86rem);
    white-space: nowrap;
    letter-spacing: -0.015em;
  }

  .flbtn__copy strong {
    font-size: 1.12em;
  }

  .flbtn__promo {
    margin-bottom: 4px;
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
  }

  .flbtn__actions {
    --flbtn-img-height: clamp(51px, 16vw, 51px);
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 電話ボタン：セル幅いっぱいに表示して左右の空きを減らす */
  .flbtn__btn--tel img {
    width: 100%;
    max-width: none;
    height: var(--flbtn-img-height);
    object-fit: contain;
  }

  footer {
    padding-bottom: 7.75rem;
  }
}

/* ---------- お問い合わせフォーム ---------- */
.contact {
  --contact-gutter: clamp(1rem, 4vw, 2rem);
  padding: var(--contact-gutter) var(--contact-gutter) clamp(2.5rem, 6vw, 4rem);
  background: #eceff4;
}

.contact__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.contact__title {
  margin: 0 0 var(--contact-gutter);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", Meiryo, "游ゴシック", "Yu Gothic", sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 700;
  text-align: center;
  color: #1e4a9e;
}

.contact__form {
  margin: 0;
}

.contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact__field {
  margin-bottom: 1.5rem;
}

.contact__field:last-of-type {
  margin-bottom: 1.75rem;
}

.contact__label-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55em 0.9em;
  background: #2b6bcc;
  border-radius: 2px 2px 0 0;
  box-sizing: border-box;
}

.contact__req {
  flex-shrink: 0;
  padding: 0.2em 0.65em;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #e53935;
  border-radius: 4px;
}

.contact__label {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  cursor: pointer;
}

.contact__input,
.contact__textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.85em 1em;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  background: #fff;
  border: 2px solid #2b6bcc;
  border-top: none;
  border-radius: 0 0 2px 2px;
  box-sizing: border-box;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: #999;
}

.contact__textarea {
  min-height: 8em;
  resize: vertical;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: 2px solid #5aa4fc;
  outline-offset: 0;
  z-index: 1;
  position: relative;
}

.contact__submit-wrap {
  text-align: center;
  margin-top: 0.25rem;
}

.contact__submit {
  min-width: 12rem;
  padding: 0.85em 2.5em;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #1e4a9e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.contact__submit:hover {
  opacity: 0.92;
}

.contact__submit:focus {
  outline: 2px solid #5aa4fc;
  outline-offset: 2px;
}

@media screen and (max-width: 1024px) {
  .contact__field {
    margin-bottom: 1.35rem;
  }

  .contact__label-row {
    padding: 0.5em 0.75em;
  }

  .contact__input,
  .contact__textarea {
    font-size: 16px;
  }
}

@media screen and (max-width: 599px) {
  .contact {
    --contact-gutter: 0.75rem;
    padding-bottom: clamp(1.25rem, 5vw, 1.75rem);
  }

  .contact__field {
    margin-bottom: 1.05rem;
  }

  .contact__field:last-of-type {
    margin-bottom: 1.15rem;
  }
}

.contact__field--radio {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  min-width: 0;
}

.contact__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85em 1em;
  background: #fff;
  border: 2px solid #2b6bcc;
  border-top: none;
  border-radius: 0 0 2px 2px;
  box-sizing: border-box;
}

.contact__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 calc(50% - 0.375rem);
  min-width: 7rem;
  margin: 0;
  padding: 0.65em 0.85em;
  font-size: 1rem;
  font-weight: 700;
  color: #1e4a9e;
  background: #f5f8fc;
  border: 2px solid #c5d4ef;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact__radio:has(input:checked) {
  background: #e8f1ff;
  border-color: #2b6bcc;
}

.contact__radio:has(input:focus-visible) {
  outline: 2px solid #5aa4fc;
  outline-offset: 2px;
}

.contact__radio input {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin: 0;
  accent-color: #2b6bcc;
  cursor: pointer;
}

.contact__radio-text {
  line-height: 1.4;
}

.contact--standalone {
  min-height: calc(100vh - 4rem);
}

.contact__lead {
  margin: -0.5rem 0 var(--contact-gutter);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
  color: #444;
}

.contact__back {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.contact__back a {
  color: #1e4a9e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact__back a:hover {
  opacity: 0.85;
}

body.page-contact {
  background: #eceff4;
}

.page-contact__wrapper {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0 2rem;
}

@media screen and (max-width: 599px) {
  .contact__field--radio {
    margin-bottom: 1.05rem;
  }

  .contact__radio {
    flex: 1 1 100%;
  }
}

/* ---------- サンクスページ ---------- */
body.page-thanks {
  background: #eceff4;
  min-height: 100vh;
}

.page-thanks__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

.page-thanks__main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  box-sizing: border-box;
}

.page-thanks__title {
  margin: 0 0 1em;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #1e4a9e;
  line-height: 1.45;
}

.page-thanks__lead {
  margin: 0 0 1.75em;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
  text-align: left;
}

.page-thanks__back {
  margin: 0;
}

.page-thanks__back a {
  color: #1e4a9e;
  font-weight: 700;
  text-decoration: underline;
}

.page-thanks__back a:hover {
  color: #2b6bcc;
}