/* CTAセクション - 最適化版 */
.cta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 背景の装飾パターン */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cta h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    border-radius: 2px;
}

.cta p {
    font-size: 1.1rem;
    color: #ecf0f1 !important;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ハイライト文字の改善 */
.cta .highlight {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    margin: 0 5px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    text-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta .highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* ボタンコンテナ */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* プライマリボタン（LINEボタン） */
.cta .btn-primary {
    background: linear-gradient(135deg, #06c755, #04a348);
    color: #ffffff;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.3);
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta .btn-primary:hover::before {
    left: 100%;
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 199, 85, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-primary i {
    font-size: 1.3rem;
}

/* セカンダリボタン（お問い合わせボタン） */
.cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    padding: 18px 35px;
    border: 3px solid #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.cta .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    transition: width 0.3s ease;
    z-index: 1;
}

.cta .btn-secondary:hover::before {
    width: 100%;
}

.cta .btn-secondary:hover {
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.cta .btn-secondary span,
.cta .btn-secondary i {
    position: relative;
    z-index: 2;
}

.cta .btn-secondary i {
    font-size: 1.2rem;
}

/* LINEフローティングCTA - 修正版 */
.line-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.line-cta-button {
    background: linear-gradient(135deg, #06c755, #04a348);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
    white-space: nowrap; /* 文字の改行を防ぐ */
}

.line-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 199, 85, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.line-cta-button i {
    font-size: 1.4rem;
    flex-shrink: 0; /* アイコンのサイズを固定 */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cta {
        padding: 80px 0;
    }
    
    .cta h2 {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .cta p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .cta .btn-primary,
    .cta .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .cta .highlight {
        padding: 3px 10px;
        font-size: 0.95rem;
        margin: 0 3px;
    }
    
    .line-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .line-cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* モバイルでも文字を表示 */
    .line-cta-button span {
        display: inline; /* display: none; を削除 */
    }
    
    .line-cta-button i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .cta p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .cta .btn-primary,
    .cta .btn-secondary {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .cta .highlight {
        display: inline;
        padding: 2px 8px;
        font-size: 0.9rem;
        margin: 0 2px;
    }
    
    .line-cta {
        bottom: 10px;
        right: 10px;
    }
    
    .line-cta-button {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .line-cta-button i {
        font-size: 1.1rem;
    }
}

/* 非常に小さい画面での調整 */
@media (max-width: 400px) {
    .line-cta-button {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .line-cta-button i {
        font-size: 1rem;
    }
}

/* アクセシビリティの向上 */
@media (prefers-reduced-motion: reduce) {
    .line-cta {
        animation: none;
    }
    
    .cta .btn-primary::before,
    .cta .btn-secondary::before {
        transition: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .cta {
        background: #000000;
    }
    
    .cta h2,
    .cta p {
        color: #ffffff !important;
    }
    
    .cta .btn-secondary {
        border-color: #ffffff;
        background: #000000;
    }
    
    .cta .highlight {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* ====== CTAの特典リボンを強調 ====== */
.elegant-cta .bonus-note{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  margin-top:14px;
  padding:10px 16px;
  border-radius:999px;
  border:2px solid var(--accent);
  background: linear-gradient(135deg, #fff, #ffeceb);
  color: var(--accent);
  font-weight:800;
  line-height:1;
  box-shadow: 0 8px 22px rgba(231,76,60,.18), inset 0 -3px 0 rgba(0,0,0,.05);
  position:relative;
  isolation:isolate;            /* シャインを上に出す */
}

/* 左右に小さなリボンの“ツメ” */
.elegant-cta .bonus-note::before,
.elegant-cta .bonus-note::after{
  content:"";
  position:absolute;
  top:50%;
  width:14px;height:14px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
  z-index:-1;
}
.elegant-cta .bonus-note::before{ left:-7px; }
.elegant-cta .bonus-note::after { right:-7px; }

.elegant-cta .bonus-note .gift-icon{
  width:28px;height:28px;
  border-radius:50%;
  display:grid;place-items:center;
  background: var(--accent);
  color:#fff;
  box-shadow:0 4px 12px rgba(231,76,60,.35);
  flex:0 0 28px;
}
.elegant-cta .bonus-note .gift-icon i{ font-size:14px; }

/* 金額をグラデ文字＋シャイン */
.elegant-cta .bonus-note .bonus-amount{
  position:relative;
  background: linear-gradient(90deg, var(--accent), #d35400);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  padding:0 .1em;
}
.elegant-cta .bonus-note .bonus-amount::after{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: skewX(-25deg) translateX(-120%);
  animation: shine 2.4s linear infinite;
  border-radius:12px;
  pointer-events:none;
  mix-blend-mode: screen;
}
@keyframes shine {
  to { transform: skewX(-25deg) translateX(120%); }
}

/* ふわっと目立つパルス */
.elegant-cta .bonus-note{ animation:pulseBadge 2.6s ease-out infinite; }
@keyframes pulseBadge{
  0%   { box-shadow:0 0 0 0 rgba(231,76,60,.25), inset 0 -3px 0 rgba(0,0,0,.05); }
  70%  { box-shadow:0 0 0 16px rgba(231,76,60,0), inset 0 -3px 0 rgba(0,0,0,.05); }
  100% { box-shadow:0 0 0 0 rgba(231,76,60,0), inset 0 -3px 0 rgba(0,0,0,.05); }
}

/* レスポンシブ：小さめにしてツメは隠す */
@media (max-width: 576px){
  .elegant-cta .bonus-note{
    padding:8px 12px;
    font-weight:800;
    font-size:.95rem;
  }
  .elegant-cta .bonus-note::before,
  .elegant-cta .bonus-note::after{ display:none; }
  .elegant-cta .bonus-note .gift-icon{ width:24px;height:24px; }
}
/* リンク化したときの体裁 */
.elegant-cta .bonus-note{
  cursor: pointer;
  text-decoration: none;
}

/* visited でも色を変えない */
.elegant-cta .bonus-note:link,
.elegant-cta .bonus-note:visited{
  color: var(--accent);
}

/* ホバー/フォーカスで少し持ち上げて強調 */
.elegant-cta .bonus-note:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(231,76,60,.28), inset 0 -3px 0 rgba(0,0,0,.05);
}
.elegant-cta .bonus-note:focus-visible{
  outline: 3px solid rgba(231,76,60,.35);
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* 旧のLINEボタンは非表示にしておきたい場合 */
.elegant-cta .cta-button{ display:none; }


/* --- CTA（スマホ最適化） ---------------------------------- */
@media (max-width: 600px){

  /* container の横パディングを消す */
  .cta .container{
    padding-left: 0;
    padding-right: 0;
  }

  /* CTAパネルを画面一杯に（フルブリード） */
  .cta .cta-content{
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* 角丸を残したい場合は次の1行を削除/コメントアウト */
    border-radius: 0;
  }

  /* 見出しを1行で収める（可変サイズ＋折返し禁止） */
  .cta .cta-title{
    /* 画面幅に応じて縮む。必要なら数値を微調整してOK */
    font-size: clamp(20px, 6.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;         /* ← 改行させない */
    padding-left: 16px;          /* 端のノッチ対策で少しだけ内側に */
    padding-right: 16px;
  }
}

/* ===== FAQと最後のCTAをフル幅（左右余白ゼロ）にする ===== */

/* モバイル優先。PCでもフル幅にしたい場合は @media を外してOK */
@media (max-width: 768px){

  /* セクション自体をフルブリード化（背景も端まで） */
  #faq.faq-section,
  .cta{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* セクション内の .container の左右パディングを0に */
  #faq.faq-section .container,
  .cta .container{
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* FAQ内のラッパーも念のため余白をリセット */
  #faq .faq-container,
  #faq .faq-list{
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Q&Aの各項目が左右に寄らないよう幅を100%に */
  #faq .faq-item{
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
}
/* ========== アマギフPill ========== */
/* 共通：1行レイアウト（PC～タブレット） */
.bonus-pill{
  display:flex; align-items:center; justify-content:center;
  gap:.6rem; flex-wrap:wrap;
  padding:.9rem 1.2rem;
  border-radius:999px;
  border:2px solid #e67a73;
  background:linear-gradient(180deg,#fff7f4,#ffe9e4);
  color:#d35400; font-weight:700; text-decoration:none;
  font-size:clamp(13px,3.6vw,16px);
}
.bonus-pill .fa-gift{ font-size:1.1em; margin-right:.25rem; }

/* 各チャンクは途中改行させない（“円”だけ落ちるのを防ぐ） */
.bonus-pill .bp-chunk{
  white-space:nowrap;
  word-break:keep-all;
  line-height:1;
}
.bonus-pill .bp-amt{ font-weight:800; letter-spacing:.02em; }

/* スマホ：2段レイアウトに強制して整列（<=420px） */
@media (max-width:420px){
  .bonus-pill{
    display:grid;
    grid-template-columns: auto 1fr 1fr;   /* [icon][左][右] */
    grid-template-rows: auto auto;        /* 2段 */
    grid-template-areas:
      "icon left left"
      "icon amt  right";
    gap:.4rem .6rem;
    padding:.7rem .9rem;
  }
  .bonus-pill .fa-gift{ grid-area:icon; }
  .bonus-pill .bp-left{  grid-area:left;  justify-self:start; }
  .bonus-pill .bp-amt{   grid-area:amt;   justify-self:center; }
  .bonus-pill .bp-right{ grid-area:right; justify-self:end; }
}
/* 2行固定バージョン */
.bonus-pill{
  display:flex; align-items:center; justify-content:center;
  gap:.6rem; flex-wrap:wrap;
  padding:.9rem 1.2rem;
  border-radius:999px;
  border:2px solid #e67a73;
  background:linear-gradient(180deg,#fff7f4,#ffe9e4);
  color:#d35400; font-weight:700; text-decoration:none;
  font-size:clamp(13px,3.6vw,16px);
  line-height:1.1;
}
.bonus-pill .fa-gift{ font-size:1.1em; }

/* ←ここから2行レイアウト */
.bonus-pill--2line{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  grid-template-areas:
    "icon l1"
    "icon l2";
  column-gap:.6rem;
  row-gap:.2rem;
  padding:.8rem 1rem;
}
.bonus-pill--2line .fa-gift{ grid-area:icon; }
.bonus-pill--2line .bp-line1{ grid-area:l1; white-space:normal; }
.bonus-pill--2line .bp-line2{ grid-area:l2; white-space:normal; font-weight:800; }

/* モバイルで「仲介手数料0円で、理想の新生活をスタートしませんか」の行間を詰める */
@media (max-width: 576px){
  .elegant-cta .cta-title{
    margin-bottom: .6rem;   /* タイトル下の余白も少しだけ短縮 */
  }
  .elegant-cta .cta-description{
    line-height: 1.25;      /* ← 行間を狭く（既存1.6前後 → 1.25） */
    margin: .3rem 0 .8rem;  /* 段落の上下余白も軽く圧縮 */
    /* 必要ならフォントも微調整
    font-size: 0.95rem;
    */
  }
}


/* 2行固定のギフトCTA */
.cta-gift{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:680px;
  margin:16px auto 0;
  padding:16px 20px;
  border-radius:999px;
  background:#fff5f2;
  border:3px solid #f3c6ba;
  box-shadow:0 10px 24px rgba(231,76,60,.15);
  text-decoration:none;
}
.cta-gift .gift-icon{
  flex:0 0 44px;
  width:44px;height:44px;border-radius:50%;
  background:#E74C3C;color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
}
.cta-gift .txt{ flex:1; text-align:center; line-height:1.15; }
.cta-gift .line1{ display:block; font-weight:700; font-size:1rem; color:#c0392b; }
.cta-gift .line2{ display:block; font-weight:800; font-size:1.25rem; letter-spacing:.02em; color:#c0392b; }

@media (min-width:768px){
  .cta-gift{ padding:18px 28px; gap:14px; max-width:720px; }
  .cta-gift .line1{ font-size:1.05rem; }
  .cta-gift .line2{ font-size:1.35rem; }
}
/* ── 2行化のための最低限 ───────────────── */
.elegant-cta .bonus-note{
  display: inline-flex;       /* 既存 */
  align-items: center;        /* 既存 */
  gap: .55rem;                /* 既存 */
  flex-wrap: wrap;            /* ← これで折り返し許可 */
  justify-content: center;    /* 折り返し時に中央揃え */
}

/* 改行専用のダミー要素。PCでは無効 */
.elegant-cta .bonus-note .sp-break{
  display: none;
  flex-basis: 100%; /* ここで次の要素を改行側に送る */
  height: 0;
}

/* スマホだけ改行を有効化 */
@media (max-width: 576px){
  .elegant-cta .bonus-note .sp-break{ display: block; }
}
@media (max-width: 576px){
  .elegant-cta .cta-description{ line-height: 1.25; }
}

/* 1) アイコンを非表示にする */
.elegant-cta .bonus-note .gift-icon{
  display: none !important;
}

/* 2) バッジの横幅を絞る（中央寄せ） */
.elegant-cta .bonus-note{
  max-width: 520px;     /* PC上限幅 */
  width: 100%;
  margin-inline: auto;  /* 中央配置 */
  padding: 12px 20px;   /* 横の余白も少し詰める */
  gap: .5rem;           /* 要素間の間隔も詰める */
}

/* 3) スマホはさらに小さく */
@media (max-width: 576px){
  .elegant-cta .bonus-note{
    max-width: 320px;   /* スマホ上限幅 */
    padding: 10px 16px;
  }
}
