/* ============================================================
   cta.css  —  CTAテンプレートパーツ統合版
   
   テーマ:
     A: .pcta           固定ページ用（ライトローズ）
     A: .pcta--dark     ネイビーダーク
     A: .pcta--line     グリーン（LINE）
     B: .ptcta          投稿/archive用（ネイビーダーク）
   
   写真入りCTA: .pcta--photo（両テーマで使用可）
   ============================================================ */

/* =============================================
   共通変数・ベース
   ============================================= */
.pcta,
.ptcta {
  width: 100%;
  padding: 68px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 上部ピンクライン（共通） */
.pcta::before,
.ptcta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--pink-main), var(--pink-deep));
  z-index: 2;
}

/* =============================================
   A. .pcta  固定ページ用（ライトローズ）
   ============================================= */
.pcta {
  background: linear-gradient(160deg, #fff0f5 0%, #ffe0ee 50%, #ffd6e5 100%);
}

/* SP用ヘッダー: PC時は非表示 */
.pcta-photo-sp-header { display: none; }

/* PC時: sp-headerの中身は非表示・通常表示 */
.pcta-hide-sp { display: block; }

/* 装飾円A：右下にはみ出す円 */
.pcta-inner::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(240,62,122,0.08);
  pointer-events: none;
}

/* 装飾円B：左端にはみ出す薄い大円 */
.pcta-inner::before {
  content: '';
  position: absolute;
  left: calc(-50vw + 24px);
  top: 50%;
  transform: translateY(-50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(240,62,122,0.07);
  pointer-events: none;
  z-index: 0;
}

/* 装飾円C：右上の中円 */
.pcta-inner::after {
  content: '';
  position: absolute;
  right: calc(-50vw + 80px);
  top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(240,62,122,0.12);
  pointer-events: none;
  z-index: 0;
}

.pcta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 26px;
}

.pcta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--pink-main);
  margin-bottom: 16px;
}

.pcta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.pcta-sub {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.9;
  margin-bottom: 0;
}

.pcta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

/* ボタン共通 */
.pcta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.pcta-btn--primary {
  background: linear-gradient(135deg, var(--pink-main), var(--pink-deep));
  color: #fff;
  box-shadow: 0 6px 20px rgba(240,62,122,0.35);
}
.pcta-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(240,62,122,0.45);
  color: #fff;
}

.pcta-btn--sub {
  background: transparent;
  color: var(--pink-main);
  border: 2px solid rgba(240,62,122,.4);
}
.pcta-btn--sub:hover {
  background: rgba(240,62,122,.06);
  border-color: var(--pink-main);
  color: var(--pink-main);
  transform: translateY(-2px);
}

/* ---- ネイビーダーク上書き ---- */
.pcta--dark {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pcta--dark::after {
  right: -80px; bottom: -80px; left: auto; top: auto;
  width: 380px; height: 380px;
  background: rgba(255,255,255,0.04);
}
.pcta--dark .pcta-inner::before {
  background: rgba(255,255,255,0.035);
}
.pcta--dark .pcta-inner::after {
  background: rgba(240,62,122,0.12);
}
.pcta--dark .pcta-eyebrow { color: rgba(240,62,122,.75); }
.pcta--dark .pcta-title   { color: #fff; }
.pcta--dark .pcta-sub     { color: rgba(255,255,255,.55); }
.pcta--dark .pcta-btn--primary {
  background: #fff;
  color: var(--pink-main);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.pcta--dark .pcta-btn--primary:hover { color: var(--pink-deep); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.pcta--dark .pcta-btn--sub {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 2px solid rgba(255,255,255,.25);
}
.pcta--dark .pcta-btn--sub:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* ---- LINE テーマ ---- */
.pcta--line {
  background: linear-gradient(160deg, #e8faf0 0%, #d1f5e0 50%, #b8efd0 100%);
}
.pcta--line::before { background: linear-gradient(to right, #06C755, #04a844); }
.pcta--line::after  { background: radial-gradient(circle, rgba(6,199,85,.08) 0%, transparent 70%); }
.pcta--line .pcta-eyebrow { color: #06C755; }
.pcta--line .pcta-title   { color: #1a3a2a; }

.pcta-btn--line {
  background: #06C755;
  color: #fff;
  box-shadow: 0 6px 20px rgba(6,199,85,0.35);
}
.pcta-btn--line:hover {
  background: #05b34c;
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(6,199,85,0.45);
}
.pcta-line-icon { width: 20px; height: 20px; flex-shrink: 0; }


/* =============================================
   ダークテーマ 写真入り .ptcta--photo
   ============================================= */
.ptcta--photo {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

/* 装飾円1：左端はみ出し大円（白薄め） */
.ptcta--photo::before {
  content: '';
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  z-index: 0;
  pointer-events: none;
}

/* 装飾円2：右上の中円（ピンクアクセント） */
.ptcta--photo::after {
  content: '';
  position: absolute;
  right: 300px;
  top: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(240,62,122,0.18);
  z-index: 0;
  pointer-events: none;
}

/* テキスト色 */
.ptcta--photo .ptcta-eyebrow { color: rgba(240,62,122,.85); }
.ptcta--photo .ptcta-title   { color: #fff; }
.ptcta--photo .ptcta-sub     { color: rgba(255,255,255,.65); }
.ptcta--photo .ptcta-btns    { justify-content: flex-start; margin-top: 32px; }

/* deco文字は非表示（写真と干渉するため） */
.ptcta--photo .ptcta-deco { display: none; }

/* 写真入りCTA  .pcta--photo
   1カラム：装飾円＋人物を右に絶対配置
   ============================================= */
.pcta--photo {
  padding: 0;
  text-align: left;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  background: linear-gradient(150deg, #fff5f8 0%, #fde8f0 60%, #fad5e6 100%);
}

/* 装飾円1：左端に大きくはみ出す薄い円 */
.pcta--photo::before {
  content: '';
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(240,62,122,0.09);
  z-index: 0;
}

/* 装飾円2：右上の中くらい・やや濃い円 */
.pcta--photo::after {
  content: '';
  position: absolute;
  right: 300px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(240,62,122,0.14);
  z-index: 0;
}

/* テキストエリア */
.pcta-photo-wrap {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 68px;
}

/* 右下の大きな装飾円（ライト） */
.pcta--photo .pcta-photo-wrap::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(240,62,122,0.08);
  z-index: 0;
  pointer-events: none;
}

.pcta-photo-content {
  max-width: 600px;
  padding: 68px 0;
}

.pcta--photo .pcta-eyebrow { color: var(--pink-main); }
.pcta--photo .pcta-title   { color: var(--navy); }
.pcta--photo .pcta-sub     { color: var(--gray-text); }
.pcta--photo .pcta-btns    { justify-content: flex-start; margin-top: 32px; }

/* テキストエリア左下のアクセント小円 */
.pcta-photo-content {
  position: relative;
}
.pcta-photo-content::after {
  content: '';
  position: absolute;
  left: -32px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(240,62,122,0.18);
  z-index: 0;
}

/* 人物：右側に絶対配置 */
.pcta-photo-img {
  position: absolute;
  right: calc(50% - 550px + 24px);
  bottom: 0;
  width: 360px;
  z-index: 3;
  pointer-events: none;
}

/* 人物背後：大きめ・存在感ある円（ライト） */
.pcta-photo-img::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-55%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(240,62,122,0.2);
  z-index: -1;
}

/* 人物左：小さいアウトライン円（ライト） */
.pcta-photo-img::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 30%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid rgba(240,62,122,0.35);
  z-index: -1;
}

/* ダークテーマ：人物背後円→白ベース */
.ptcta--photo .pcta-photo-img::before {
  background: rgba(255,255,255,0.07);
}
/* ダークテーマ：アウトライン円→白 */
.ptcta--photo .pcta-photo-img::after {
  border-color: rgba(255,255,255,0.22);
}
/* ダークテーマ：右下大円 */
.ptcta--photo .pcta-photo-img {
  /* 右下装飾円をbox-shadowで代用 */
}
/* ダークテーマ：テキスト左下アクセント円 */
.ptcta--photo .pcta-photo-content::after {
  background: rgba(255,255,255,0.06);
}
/* ダークテーマ：右下に大きな円（ピンクアクセント） */
.ptcta--photo .pcta-photo-wrap::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(240,62,122,0.12);
  z-index: 0;
  pointer-events: none;
}
/* ダークテーマ：写真にソフトなglow */
.ptcta--photo .pcta-photo-img img {
  filter: drop-shadow(0 8px 32px rgba(240,62,122,0.2));
}
/* ダークテーマ：タイトル幅を広げて改行を防ぐ */
.ptcta--photo .pcta-photo-content {
  max-width: 620px;
}

.pcta-photo-img img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -4px;
  filter: drop-shadow(0 8px 20px rgba(180,20,80,0.12));
}

/* ===== レスポンシブ ===== */
@media (max-width: 1200px) {
  .pcta-photo-img { right: 16px; width: 300px; }
  .pcta-photo-content { max-width: 460px; }
  .pcta--photo::after { right: 80px; }
}

@media (max-width: 900px) {
  .pcta-photo-img { width: 240px; }
  .pcta-photo-content { max-width: 380px; }
}

@media (max-width: 640px) {
  .pcta--photo {
    min-height: 0 !important;
    overflow: hidden;
    padding: 0;
    margin-top: -8px;
  }
  .pcta--photo::before,
  .pcta--photo::after { display: none; }
  .pcta--photo .pcta-photo-wrap::after { display: none; }

  /* SP上部ヘッダー表示 — 黄金比余白 */
  .pcta-photo-sp-header {
    display: block;
    padding: 16px 16px 10px;
    text-align: center;
  }
  .pcta-photo-sp-header .pcta-eyebrow,
  .pcta-photo-sp-header .ptcta-eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
  }
  .pcta-photo-sp-header .pcta-title,
  .pcta-photo-sp-header .ptcta-title {
    font-size: 26px;      /* 黄金比スケール: 10 × φ² ≈ 26.2 */
    line-height: 1.618;   /* φ */
    letter-spacing: 0.02em;
    margin: 0;
  }
  /* カラム内のタイトルは非表示 */
  .pcta-hide-sp { display: none !important; }

  /* 横並びグリッド: テキスト左・写真右 — 黄金比カラム */
  .pcta-photo-wrap {
    display: grid !important;
    grid-template-columns: 1fr 180px !important;
    align-items: flex-end !important;
    padding: 0 !important;
    min-height: unset !important;
    gap: 0 !important;
  }

  .pcta-photo-content {
    padding: 0 10px 16px 16px !important;  /* 余白小 / 余白中 */
    text-align: left !important;
    order: 1 !important;
  }

  /* eyebrow・titleはsp-header外（カラム内）のみ非表示 */
  .pcta--photo .pcta-photo-content .pcta-eyebrow,
  .pcta--photo .pcta-photo-content .pcta-title { display: none !important; }

  .pcta--photo .pcta-sub {
    font-size: 13px !important;
    line-height: 1.618 !important;
    margin-bottom: 10px !important;
  }

  .pcta--photo .pcta-btns {
    justify-content: flex-start !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;         /* 余白小 */
    margin-top: 10px !important;
    padding: 0 !important;
  }

  .pcta-btn,
  .btn-cta-sub {
    width: auto !important;
    font-size: 12px !important;
    padding: 10px 16px !important;  /* 余白小 / 余白中 */
    min-width: 0;
  }

  /* 写真: 右カラム */
  .pcta-photo-img {
    display: block !important;
    order: 2 !important;
    position: static !important;
    width: 180px !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 0;
    align-self: flex-end !important;
    opacity: 1 !important;
  }
  .pcta-photo-img img {
    width: 180px !important;
    height: auto !important;
    display: block !important;
    filter: none !important;
  }
  .pcta-photo-img::before,
  .pcta-photo-img::after { display: none; }
  .pcta-photo-content::after { display: none; }

  /* ダークテーマ（ptcta--photo）SP: ライトと同じ横並び */
  .ptcta--photo {
    padding: 0 !important;
    min-height: auto;
    overflow: hidden;
  }
  .ptcta--photo::before,
  .ptcta--photo::after { display: none; }
  .ptcta--photo .pcta-photo-wrap {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: flex-end;
    padding: 0;
    min-height: unset;
    gap: 0;
  }
  .ptcta--photo .pcta-photo-content {
    padding: 0 10px 16px 16px !important;
    text-align: left;
  }
  /* eyebrow・titleはsp-header外（カラム内）のみ非表示 */
  .ptcta--photo .pcta-photo-content .ptcta-eyebrow,
  .ptcta--photo .pcta-photo-content .ptcta-title { display: none !important; }
  .ptcta--photo .ptcta-sub {
    font-size: 13px !important;
    line-height: 1.618 !important;
    margin-bottom: 10px !important;
  }
  .ptcta--photo .ptcta-btns,
  .ptcta--photo .pcta-btns {
    justify-content: flex-start;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-top: 10px;
    padding: 0 !important;
  }
  .ptcta--photo .ptcta-btn,
  .ptcta--photo .pcta-btn,
  .ptcta--photo .btn-white,
  .ptcta--photo .btn-cta-sub {
    width: auto !important;
    font-size: 12px !important;
    padding: 10px 16px !important;
    min-width: 0;
  }
  .ptcta--photo .pcta-photo-img {
    display: block !important;
    width: 180px !important;
    margin: 0 !important;
    opacity: 1 !important;
    align-self: flex-end;
    line-height: 0;
  }
  .ptcta--photo .pcta-photo-img img {
    width: 180px;
    height: auto;
    filter: none;
  }
  .ptcta--photo .pcta-photo-wrap::after { display: none; }
}

/* =============================================
   B. .ptcta  投稿/archive用（ネイビーダーク）
   ============================================= */
.ptcta {
  background: var(--navy);
}

.ptcta-deco {
  position: absolute;
  right: -12px; bottom: -24px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(68px, 16vw, 180px);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 装飾円A：右下に大きく薄い */
.ptcta::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* 装飾円B：左端にはみ出す大円 */
.ptcta-inner::before {
  content: '';
  position: absolute;
  left: calc(-50vw + 24px);
  top: 50%;
  transform: translateY(-50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.035);
  pointer-events: none;
  z-index: 0;
}

/* 装飾円C：右上の中円 */
.ptcta-inner::after {
  content: '';
  position: absolute;
  right: calc(-50vw + 80px);
  top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(240,62,122,0.1);
  pointer-events: none;
  z-index: 0;
}

.ptcta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 26px;
}

.ptcta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(240,62,122,.75);
  margin-bottom: 16px;
}

.ptcta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 14px;
}

.ptcta-sub {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
}

.ptcta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.ptcta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform .2s, background .2s;
}

.ptcta-btn--primary {
  background: #fff;
  color: var(--pink-main);
}
.ptcta-btn--primary:hover { transform: translateY(-3px); color: var(--pink-deep); }

.ptcta-btn--sub {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 2px solid rgba(255,255,255,.25);
}
.ptcta-btn--sub:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   旧 .cta-section（トップページ互換）
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--pink-main) 0%, var(--pink-deep) 100%);
  text-align: center;
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: 'APPLY';
  position: absolute;
  right: -8px; bottom: -16px;
  font-size: 200px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: rgba(255,255,255,.06);
  line-height: 1;
  pointer-events: none;
}
.cta-section .section-inner { position: relative; z-index: 1; }
.cta-title { font-family: 'Noto Serif JP', serif; font-size: clamp(22px,4vw,36px); color: #fff; font-weight: 600; margin-bottom: 12px; }
.cta-sub   { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.9; }
.cta-btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--pink-main);
  font-size: 15px; font-weight: 700;
  padding: 15px 40px; border-radius: 42px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.22); color: var(--pink-main); }

.btn-cta-sub {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: rgba(255,255,255,.85);
  font-size: 15px; font-weight: 700;
  padding: 15px 40px; border-radius: 42px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.35);
  transition: transform .2s, background .2s, border-color .2s;
}
.btn-cta-sub:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .pcta--photo .pcta-photo-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pcta--photo .pcta-photo-content {
    padding: 68px 0 26px;
    text-align: center;
  }
  .pcta--photo .pcta-btns { justify-content: center; }
  .pcta-photo-img {
    width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .pcta,
  .ptcta { padding: 64px 0 56px; }
  /* 写真入りは下余白ゼロで写真を底面に接地させる */
  .pcta--photo,
  .ptcta--photo { padding-bottom: 0 !important; }
  .pcta-btns,
  .ptcta-btns,
  .cta-btn-group { flex-direction: column; gap: 10px; padding: 0 20px; }
  .pcta-btn,
  .ptcta-btn,
  .btn-white,
  .btn-cta-sub { width: 100%; }
  .pcta-inner,
  .ptcta-inner { padding: 0 20px; }
  /* 写真入りダークCTAのボタンは幅auto */
  .ptcta--photo .ptcta-btn,
  .ptcta--photo .pcta-btn { width: auto; }
  /* SP時タイトルサイズ縮小 */
  .pcta-title,
  .ptcta-title { font-size: clamp(18px, 5.5vw, 24px); }
}
