/* =========================================
   Affiliate Blocks - LP02 Section Block
   section-block.js class match version
========================================= */

.ab-section,
.ab-section * {
  box-sizing: border-box;
}

.ab-section {
  width: 100%;
  max-width: 960px;
  margin: 32px auto;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.ab-section-inner {
  position: relative;
  width: 100%;
  padding: 30px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
  border: 3px solid rgba(30, 136, 229, 0.22);
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.12);
  overflow: hidden;
}

.ab-section-inner::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(30, 136, 229, 0.08);
  pointer-events: none;
}

.ab-section-inner::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -120px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 152, 0, 0.10);
  pointer-events: none;
}

.ab-section-label,
.ab-section-title,
.ab-section-lead,
.ab-section-list,
.ab-section-bottom-text {
  position: relative;
  z-index: 1;
}

/* ラベル */
.ab-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #1565c0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(30, 136, 229, 0.13);
}

.ab-section-label::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #1e88e5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* 見出し */
.ab-section-title {
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: #111827;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

/* リード文 */
.ab-section-lead {
  margin: 0 0 22px !important;
  padding: 0 !important;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.85;
}

/* リスト */
.ab-section-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px !important;
  padding: 0 !important;
  list-style: none !important;
}

.ab-section-list-item {
  position: relative;
  margin: 0 !important;
  padding: 12px 14px 12px 44px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 136, 229, 0.18);
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.055);
}

.ab-section-list-item::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ff9800;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* 下部テキスト */
.ab-section-bottom-text {
  margin: 0 !important;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid rgba(30, 136, 229, 0.15);
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

/* 中央寄せ */
.ab-section.is-centered {
  text-align: center;
}

.ab-section.is-centered .ab-section-label {
  margin-left: auto;
  margin-right: auto;
}

.ab-section.is-centered .ab-section-lead {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ab-section.is-centered .ab-section-list {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ab-section.is-centered .ab-section-list-item {
  text-align: left;
}

.ab-section.is-centered .ab-section-bottom-text {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left;
}

/* デザイン：ブルー */
.ab-section.ab-section--blue .ab-section-inner {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
  border-color: rgba(30, 136, 229, 0.22);
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.12);
}

.ab-section.ab-section--blue .ab-section-label {
  color: #1565c0;
}

.ab-section.ab-section--blue .ab-section-label::before {
  background: #1e88e5;
}

.ab-section.ab-section--blue .ab-section-list-item::before {
  background: #1e88e5;
}

/* デザイン：オレンジ */
.ab-section.ab-section--orange .ab-section-inner {
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  border-color: rgba(255, 152, 0, 0.26);
  box-shadow: 0 12px 28px rgba(255, 152, 0, 0.12);
}

.ab-section.ab-section--orange .ab-section-inner::before {
  background: rgba(255, 152, 0, 0.10);
}

.ab-section.ab-section--orange .ab-section-inner::after {
  background: rgba(255, 87, 34, 0.09);
}

.ab-section.ab-section--orange .ab-section-label {
  color: #b45f00;
}

.ab-section.ab-section--orange .ab-section-label::before,
.ab-section.ab-section--orange .ab-section-list-item::before {
  background: #ff9800;
}

.ab-section.ab-section--orange .ab-section-list-item {
  border-color: rgba(255, 152, 0, 0.22);
}

.ab-section.ab-section--orange .ab-section-bottom-text {
  border-color: rgba(255, 152, 0, 0.20);
}

/* デザイン：グリーン */
.ab-section.ab-section--green .ab-section-inner {
  background: linear-gradient(180deg, #f1fff6 0%, #ffffff 100%);
  border-color: rgba(46, 175, 99, 0.26);
  box-shadow: 0 12px 28px rgba(46, 175, 99, 0.12);
}

.ab-section.ab-section--green .ab-section-inner::before {
  background: rgba(46, 175, 99, 0.10);
}

.ab-section.ab-section--green .ab-section-inner::after {
  background: rgba(30, 136, 229, 0.08);
}

.ab-section.ab-section--green .ab-section-label {
  color: #1b7f45;
}

.ab-section.ab-section--green .ab-section-label::before,
.ab-section.ab-section--green .ab-section-list-item::before {
  background: #2eaf63;
}

.ab-section.ab-section--green .ab-section-list-item {
  border-color: rgba(46, 175, 99, 0.22);
}

.ab-section.ab-section--green .ab-section-bottom-text {
  border-color: rgba(46, 175, 99, 0.20);
}

/* デザイン：シンプル */
.ab-section.ab-section--simple .ab-section-inner {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ab-section.ab-section--simple .ab-section-inner::before,
.ab-section.ab-section--simple .ab-section-inner::after {
  display: none;
}

.ab-section.ab-section--simple .ab-section-label {
  background: #f9fafb;
  color: #374151;
  box-shadow: none;
}

.ab-section.ab-section--simple .ab-section-label::before,
.ab-section.ab-section--simple .ab-section-list-item::before {
  background: #6b7280;
}

.ab-section.ab-section--simple .ab-section-list-item,
.ab-section.ab-section--simple .ab-section-bottom-text {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: none;
}

/* Gutenbergエディター内 */
.editor-styles-wrapper .ab-section {
  max-width: 960px;
}

.editor-styles-wrapper .ab-section-inner {
  outline: 1px dashed rgba(30, 136, 229, 0.18);
}

/* タブレット */
@media screen and (max-width: 900px) {
  .ab-section {
    max-width: 100%;
    margin: 28px auto;
  }

  .ab-section-inner {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .ab-section-title {
    font-size: clamp(24px, 4.8vw, 34px);
  }

  .ab-section-lead {
    font-size: 15px;
  }
}

/* スマホ */
@media screen and (max-width: 600px) {
  .ab-section {
    margin: 24px auto;
  }

  .ab-section-inner {
    padding: 22px 14px;
    border-width: 2px;
    border-radius: 18px;
  }

  .ab-section-label {
    margin-bottom: 10px;
    padding: 5px 12px;
    font-size: 12px;
  }

  .ab-section-title {
    margin-bottom: 12px !important;
    font-size: 24px;
    line-height: 1.42;
  }

  .ab-section-lead {
    margin-bottom: 18px !important;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  .ab-section.is-centered .ab-section-lead {
    text-align: left;
  }

  .ab-section-list {
    gap: 8px;
    margin-bottom: 18px !important;
  }

  .ab-section-list-item {
    padding: 10px 12px 10px 38px;
    font-size: 14px;
    line-height: 1.6;
  }

  .ab-section-list-item::before {
    left: 12px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .ab-section-bottom-text {
    padding: 14px 14px;
    font-size: 14px;
    line-height: 1.75;
  }
}

/* 狭いスマホ */
@media screen and (max-width: 420px) {
  .ab-section-inner {
    padding: 20px 12px;
  }

  .ab-section-title {
    font-size: 22px;
  }

  .ab-section-lead,
  .ab-section-list-item,
  .ab-section-bottom-text {
    font-size: 13px;
  }
}