/*
You can add your own CSS here.

Click the help icon above to learn more.
*/

/* ★★レスポンシブ対応fitty */
/* 親要素の幅を明確にする（または固定幅でもOK） */
/* 任意：最大幅を設定するとスマホで見切れにくくなる */
.fitty-container {
  width: 100%;
  max-width: 500px;
}

.elementor-widget-container {
  box-sizing: border-box;
}

.fitty-text {
  box-sizing: border-box;
  display: block;
  width: 100%;
  white-space: nowrap;     /* 改行を禁止 */
  overflow: hidden;        /* はみ出しを防ぐ */
  margin: 0;
  text-align: center;
}

/* ★★buttonきらっって */
.elementor-element.nyainy-btn {
  position: relative;
  box-shadow: 
    0px 5px 0px rgba(0, 0, 0, 0.25),
    inset 0px 3px 0px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);
  overflow: hidden !important;
  z-index: 1 !important;
}

.elementor-element.nyainy-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: nyainy-btn 2.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes nyainy-btn {
  0% {
    left: -100%;
  }
  25% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* テキストを光より前面に出す */
.elementor-element.nyainy-btn > * {
  position: relative;
  z-index: 3;
}

.elementor-element.nyainy-btn02 {
  position: relative;
  box-shadow: 
    0px 5px 0px rgba(0, 0, 0, 0.25),
    inset 0px 3px 0px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);
  overflow: hidden !important;
  z-index: 1 !important;
}

.elementor-element.nyainy-btn02::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: nyainy-btn 2.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes nyainy-btn02 {
  0% {
    left: -100%;
  }
  25% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* テキストを光より前面に出す */
.elementor-element.nyainy-btn02 > * {
  position: relative;
  z-index: 3;
}

/* ★★ポップアップ横幅サイズ設定 */
/* デスクトップとタブレット向け */
@media (min-width: 768px) {
  #popmake-3024,
  #popmake-5761,
  #popmake-5958 {
    width: 480px !important;
  }
}
/* スマホ向け */
@media (max-width: 767px) {
  #popmake-3024,
  #popmake-5761,
  #popmake-5958 {
    width: 95% !important;
  }
}

/* ★★form整形 */
/* CSS */
.RS2container01 {
  display: flex;           /* 子要素を横並びにする */
  align-items: center;     /* 縦方向の中央揃え */
  gap: 10px;               /* 画像とテキストの間隔（任意） */
}
.RS2container01 img {
  max-width: 50px !important;        /* 画像サイズ調整 */
  height: auto;
}
.RS2container01 p {
  margin-bottom: 0em !important;
  font-weight: 900; 
  color: #000; 
  font-family:
    "Hiragino Kaku Gothic Pro", 
    "ヒラギノ角ゴ Pro", 
    "メイリオ", 
    sans-serif;
}
.RS2formtext01 {
  flex: 1;                 /* テキスト部分を余白いっぱいに広げる */
}

.RS2formp01{
  color: #000; 
  margin-top: 1em;
}

.RS2button-group {
  display: grid;
  grid-template-columns: repeat(2, 45%);
  column-gap: 10px;
  row-gap: 0.5em;
  justify-content: center;
}

.RS2button-group2 {
  display: grid;
  grid-template-columns: 100%;
  column-gap: 10px;
  row-gap: 0.5em;
  justify-content: center;
}

.RS2button-group .RS2btn {
  /* セルいっぱいに広げる */
  width: 100%;
  padding: 0em 0.5em;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
  height: 5em;
  line-height: 1.3em;
}

.RS2button-group2 .RS2btninsurance {
  /* セルいっぱいに広げる */
  width: 100%;
  padding: 0em 0.5em;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
  height: 5em;
  line-height: 1.3em;
}

.RS2btn001 {
  padding: 1.5em 1.5em;
    margin: 1em;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
  display: block;
  margin-left: auto; 
  margin-right: 0;
}

.RS2formtextbox {
    margin-top: -1em;
    width: 100%;
    padding: .75em;
    background-color: lightgoldenrodyellow;
    font-size: .8em;
}

.RS2formfullbox {
  display: flex;
  width: clac(100% +30px);
  border-radius: 0 0 15px 15px;
  margin: 0 -15px -15px;
  padding: 10px 5px !important; 
  background-color: #004AAD; 
  display: block;
  flex-direction: column; 
  align-items: center; 
  text-align: center;
}

.RS2formfullbox p{
  color: #ffffff;
   margin-bottom: 0.2em;
}

.RS2custom-btn {
  display: inline-block;                   /* インラインブロックにしてサイズ調整 */
  padding: 0.8em 1.2em;                    /* 上下・左右の余白 */
  background-color: #FFD145;               /* 指定の背景色 */
  border-radius: 6px;                      /* 少し丸みをつける */
  
  box-shadow:
    0px 5px 0px rgba(0, 0, 0, 0.25),       /* 外側の下向き影 */
    inset 0px 3px 0px rgba(255, 255, 255, 0.4),  /* 上側のインセットハイライト */
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);        /* 下側のインセットシャドウ */

  text-align: center;                      /* テキスト中央寄せ */
  cursor: pointer;                         /* ホバーでポインタ */
  user-select: none;                       /* テキスト選択不可 */
  
  /* 任意：フォント設定 */
  font-family: sans-serif;
  font-weight: 600;
  color: #000;
  line-height: 0em;
}

.RS2custom-btn .line1{
    font-size: 0.8em;
    padding: 0px;
    margin: 0px;
    line-height: 1.2em;
}

.RS2custom-btn .line2{
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
    font-size: 1.6em;
    padding: 0px;
    margin: 0px;
}

/* １行目／２行目をブロック化 */
.RS2custom-btn .line1,
.RS2custom-btn .line2 {
  display: flex;
  line-height: 1.2;
}

/* 電話アイコンと番号の間にすきまを */
.RS2custom-btn .line2 i {
  margin-right: 0.4em;
  vertical-align: middle;
}

/* ★★h付与 */
.RS2visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* ★★注意喚起部調整*/
.elementor-element-ac44a34 {
   margin-right: auto !important;
   margin-left: auto !important;
}

/* ★★footer*/
footer {
  background-color: #212529; /* 背景色（お好みで変更） */
  color: #fff;
  text-align: center;
  padding: 30px 15px;
  font-family: 'Helvetica', 'Arial', sans-serif;
}

.RS2footerline1 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.RS2footerline2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-top: 5px;
  margin-bottom: 15px;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

footer nav ul li {
  display: inline;
}

footer nav ul li::after {
  content: "｜";
  margin: 0 6px;
  color: #fff;
}

footer nav ul li:last-child::after {
  content: "";
}

footer nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

footer nav ul li a:hover {
  text-decoration: underline;
}

.RS2copyright {
  display: block;
  font-size: 12px;
  color: #ccc;
  margin-top: 10px;
}

/* ▼ 特定ポップアップのオーバーレイに余白を与える ▼ */
#pum-5761.pum-overlay ,
#pum-5958.pum-overlay{
  padding: 2em 0px 3em !important;  /* 上下に余白を追加 */
}

/* ▼ ポップアップ本体の位置リセット・中央表示に強制調整 ▼ */
#popmake-5761,
#popmake-5958{
  position: relative !important;
  top: auto !important;
  margin: 0 auto !important;
  padding-bottom: 0;
}

/* ▼ ポップアップ電話 ▼ */
.RS2phonepopup-text1 {
   color: #004AAD;
    line-height: 0.8em;
    padding: 20px;
}
.RS2phonepopup-text2 {
   color: #000;
   text-align: center;
    line-height: 0;
}
.RS2phonepopup-text3 {
   color: #919191;
   text-align: center;
   font-size: small;
}
.RS2phonepopupimg01 {
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.RS2phonepopupimg02 {
    width: 4em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.RS2phonepopup-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
  padding: 0.8em 1.2em;                    /* 上下・左右の余白 */
  background-color: #004AAD;               /* 指定の背景色 */
  border-radius: 6px;                      /* 少し丸みをつける */
  
  box-shadow:
    0px 5px 0px rgba(0, 0, 0, 0.25),       /* 外側の下向き影 */
    inset 0px 3px 0px rgba(255, 255, 255, 0.4),  /* 上側のインセットハイライト */
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);        /* 下側のインセットシャドウ */

  text-align: center;                      /* テキスト中央寄せ */
  cursor: pointer;                         /* ホバーでポインタ */
  user-select: none;                       /* テキスト選択不可 */
  
  /* 任意：フォント設定 */
  font-family: sans-serif;
  font-weight: 600;
  color: #000;
  line-height: 0em;
}
.RS2phonepopup-btn .RS2phonepopup-line1{
    font-size: 0.8em;
    padding: 0px;
    margin: 0px;
    line-height: 1.4em;
    color: #fff;
}

.RS2phonepopup-btn .RS2phonepopup-line2{
  display: flex; 
  align-items: center; 
  justify-content: center; 
    font-size: 1.6em;
    padding: 0px;
    margin: 0px;
    color: #fff;
}

/* １行目／２行目をブロック化 */
.RS2phonepopup-btn .RS2phonepopup-line1,
.RS2phonepopup-btn .RS2phonepopup-line2 {
  display: flex;
  line-height: 1.2;
  justify-content: center;
}

/* 電話アイコンと番号の間にすきまを */
.RS2phonepopup-btn .RS2phonepopup-line2 i {
  margin-right: 0.4em;
  vertical-align: middle;
}

/* ▼ フォーム9問い合わせチェックボックス ▼ */

/* 1) 各リストアイテムをブロック表示＋余白 */
.RS2checkbox-wrapper .wpcf7-list-item {
  display: block;
  margin-bottom: 6px;
  color:#000 !important;
}

/* 2) チェックボックス本体は隠す */
.RS2checkbox-wrapper input[type="checkbox"] {
  display: none;
}

/* 3) ラベルテキスト部分をブロック化＋装飾 */
.RS2checkbox-wrapper .wpcf7-list-item-label {
  display: block;
  padding: 12px;
  font-size: 16px;
  color: #8c8c8c;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}

/* 4) チェックが入ったら背景＋境界色を変更 */
.RS2checkbox-wrapper input[type="checkbox"]:checked + .wpcf7-list-item-label {
    background-color: #004AAD;
    border-color: #004AAD;
    color: #fff;
}

.RS2next-btn{
  padding: 1.5em 1.5em;
    margin: 1em;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
  display: block;
  margin-left: auto; 
  margin-right: 0;
}

/* ▼ 離脱防止ポップアップ ▼ */

.insurance-popup {
  color: #333;
  text-align: center;
}

.insurance-popup-icon img {
  width: 200px;
  height: 250px !important;
  margin-bottom: -3em;
}

.insurance-popup-text {
  width: 100%;
}

.insurance-popup-text h2 {
  font-size: 20px;
  line-height: 1.5;
  color: #004AAD;
  margin-bottom: 15px;
}

.insurance-sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.insurance-button {
  display: inline-block;
  background-color: #004AAD;
  color: #fff;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  transition: background-color 0.3s;
}

.insurance-button:hover {
  background-color: #004AAD;
}

.insurance-button .small-line {
  display: block;
  font-size: 13px; /* ← 上の行を少し小さめに */
  font-weight: normal;
}

/* 入力エリア全体のスタイル */
.rs-check-form {
  background-color: #A7C7E6;
  border: 1px solid #d0e0ff;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
  font-family: sans-serif;
}

/* テキストボックス */
.rs-input {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    margin-top: 6px;
    margin-bottom: -1em;
    font-size: 16px;
}

/* チェックボックス */
.rs-checkbox-wrap label {
  font-size: 14px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  margin-bottom: -1em;
}

/* 送信ボタン */
.rs-submit-wrap .rs-submit {
    background-color: #004AAD;
    color: white;
    font-size: 16px;
    padding: 1em 1em;
    border: none;
    margin-bottom: -1em;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.rs-submit-wrap {
  margin-bottom: -1em;
}

.rs-submit-wrap .rs-submit:hover {
  background-color: #0056b3;
}

.custom-checkbox input[type="checkbox"] {
  margin: -1px 4px 0 0;
}

.required-badge {
  display: inline-block;
  background-color: #e74c3c; /* 赤色背景（色はお好みで調整可） */
  color: #fff; /* 文字色（白） */
  font-size: 0.75em; /* フォントサイズを少し小さく */
  padding: 2px 6px; /* 内側余白を設定（お好みで調整可） */
  border-radius: 12px; /* 角丸 */
  margin-left: 6px; /* 左のテキストとの間隔 */
  vertical-align: middle; /* 行内で縦方向中央揃え */
  line-height: 1; /* 高さ調整 */
}

.RS2textareaapo {
  height: 100px;
  border-radius: 6px;
  width: 95%;
  display: block;
  margin: 0 auto; /* 中央寄せ */
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;
}

/* service-listセクション全体のスタイル */
.service-list {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.service-list h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

/* カードを配置するグリッドコンテナ */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC表示：2列 */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* 各カードのスタイル */
.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* アイコンのスタイル */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* サービス名のスタイル */
.service-card h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
}

/* 説明文のスタイル */
.service-card p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 詳細ボタンのスタイル */
.card-link-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #007bff;
    color: #007bff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card-link-button:hover {
    background-color: #007bff;
    color: #fff;
}

/* レスポンシブ対応：スマートフォン表示 */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr; /* スマホ表示：1列 */
    }
}

/* 背景画像のレイアウト */
.cta-wrap {
  position: relative;
  overflow: hidden;
}

.cta-bg,
.cta-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-bg img {
  object-fit: cover;         /* 画像をトリミングして全面表示 */
}

/* コンテンツを前面に */
.cta-inner {
  position: relative;
  z-index: 1;
  padding: 28px 22px;
  text-align: center;
  color: #fff;
}

/* 既存テキストの見た目を少しだけ強化 */
.cta-lead {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* 電話ボタン */
.cta-btn {
    display: inline-block;
    margin-top: 60px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    background: #DF1D2D;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cta-btn .line1 { font-size: clamp(14px, 1.9vw, 18px); }
.cta-btn .line2 { font-size: clamp(20px, 3vw, 24px); display: flex; align-items: center; gap: 8px; }

/* 閉じるボタン */
.cta-close {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: -1em;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

/* モバイルの余白最適化 */
@media (max-width: 480px) {
  .cta-inner { padding: 22px 16px 0px; }
}

.pum-container, .pum-theme-default-theme .pum-container {
    padding: 10px 15px 0 !important;
}

a.cta-btn {
    position: relative;
    display: inline-flex
;
    align-items: center;
    gap: .1em;
    padding: 0.75em 1.5em;
    border-radius: 9999px;
    background: linear-gradient(to bottom, #e53342, #b81623);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: transform 0.55s ease, box-shadow 0.55s ease;
    isolation: isolate;
}

/* ホバー時：少し持ち上げ＆影強調 */
a.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.25);
}

/* クリック時：押し込み感 */
a.cta-btn:active {
  transform: translateY(0);
  box-shadow:
    0 3px 6px rgba(0,0,0,0.25) inset;
}

/* 発光エフェクト（ボタン外側） */
a.cta-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(223,29,45,0.6), transparent 60%);
  filter: blur(12px);
  opacity: .9;
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* 外周リング（淡く広がる） */
a.cta-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(223,29,45,0.8);
  opacity: .8;
  transform: scale(1);
  animation: ring 2.8s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes ring {
  0%   { transform: scale(1);    opacity: .8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* 動きを減らす環境に配慮 */
@media (prefers-reduced-motion: reduce) {
  a.cta-btn::before,
  a.cta-btn::after {
    animation: none;
    opacity: .6;
  }
}

/* 基本設定 */
body {
  background: #fff;
  color: #000;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.8;
  padding: 2em;
}

/* メインタイトル h1 */
.heading-29 {
  display: inline-block;
  position: relative;
  margin: 1.75em 0 .875em 1.75em;
  color: #333;
  line-height: 1;
}
.heading-29::before {
  position: absolute;
  bottom: -.875em;
  left: -1.75em;
  z-index: -1;
  width: 3.5em;
  height: 3.5em;
  border-radius: 50%;
  background: #bbdbfb;
  content: '';
}

/* セクション見出し h2 */
.heading-21 {
  position: relative;
  padding: .5em .7em .4em;
  border-bottom: 3px solid #004AAD;
  color: #333;
}
.heading-21::before,
.heading-21::after {
  position: absolute;
  left: 30px;
  bottom: -15px;
  width: 30px;
  height: 15px;
  clip-path: polygon(0 0,100% 0,50% 100%);
  content: '';
}
.heading-21::before {
  background-color: #004AAD;
}
.heading-21::after {
  bottom: -11px;
  background-color: #fff;
}

/* CTAボックス */
.cta {
  background: #004AAD;
  color: #fff;
  padding: 1em;
  text-align: center;
  border-radius: 8px;
}
.cta a {
  color: #FFD145;
  font-weight: bold;
}

/* リンク */
a {
  color: #004AAD;
}