/* =========================================
   Affiliate Blocks - LP04 Notice / Caution Block
========================================= */

.ab-notice,
.ab-notice * {
  box-sizing: border-box;
}

.ab-notice {
  --ab-notice-main: #ff9800;
  --ab-notice-main-dark: #e65100;
  --ab-notice-soft: rgba(255, 152, 0, 0.1);
  --ab-notice-border: rgba(255, 152, 0, 0.34);
  --ab-notice-text: #111827;
  --ab-notice-muted: #4b5563;
  --ab-notice-line: #e5e7eb;

  width: 100%;
  max-width: 920px;
  margin: 28px auto;
  padding: 0 12px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ab-notice-text);
}

.ab-notice--orange {
  --ab-notice-main: #ff9800;
  --ab-notice-main-dark: #e65100;
  --ab-notice-soft: rgba(255, 152, 0, 0.1);
  --ab-notice-border: rgba(255, 152, 0, 0.34);
}

.ab-notice--blue {
  --ab-notice-main: #1e88e5;
  --ab-notice-main-dark: #0d47a1;
  --ab-notice-soft: rgba(30, 136, 229, 0.1);
  --ab-notice-border: rgba(30, 136, 229, 0.3);
}

.ab-notice--red {
  --ab-notice-main: #e53935;
  --ab-notice-main-dark: #b71c1c;
  --ab-notice-soft: rgba(229, 57, 53, 0.1);
  --ab-notice-border: rgba(229, 57, 53, 0.3);
}

.ab-notice--simple {
  --ab-notice-main: #6b7280;
  --ab-notice-main-dark: #374151;
  --ab-notice-soft: #f3f4f6;
  --ab-notice-border: #d1d5db;
}

/* 本体 */
.ab-notice-inner {
  width: 100%;
  padding: 24px 22px;
  border: 3px solid var(--ab-notice-main);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--ab-notice-soft) 0%, #ffffff 46%, #ffffff 100%);
}

.ab-notice.has-shadow .ab-notice-inner {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.ab-notice.no-shadow .ab-notice-inner {
  box-shadow: none;
}

/* ヘッダー */
.ab-notice-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.ab-notice-main-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ab-notice-main);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 15px rgba(15, 23, 42, 0.18);
}

.ab-notice-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* ラベル */
.ab-notice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--ab-notice-main);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

/* タイトル */
.ab-notice-title {
  display: block !important;
  position: relative !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.ab-notice-title::before,
.ab-notice-title::after {
  content: none !important;
  display: none !important;
}

/* 説明文 */
.ab-notice-description {
  margin: 0 !important;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
}

/* リスト */
.ab-notice-list {
  display: grid;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ab-notice-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 13px;
  border: 1px solid var(--ab-notice-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045);
}

.ab-notice-item-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ab-notice-main);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.ab-notice-item-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 下部テキスト */
.ab-notice-bottom-text {
  margin: 16px 0 0 !important;
  padding: 14px 15px;
  border-radius: 14px;
  background: var(--ab-notice-soft);
  color: #374151;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

/* ボタン */
.ab-notice-button-wrap {
  margin-top: 18px;
  text-align: center;
}

.ab-notice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ab-notice-main) 0%, var(--ab-notice-main-dark) 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22), 0 12px 22px rgba(15, 23, 42, 0.18);
}

.ab-notice-button:hover {
  transform: translateY(1px);
  filter: brightness(1.02);
}

/* 注釈 */
.ab-notice-note {
  position: relative;
  margin: 14px 0 0 !important;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(107, 114, 128, 0.08);
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

/* 中央寄せ */
.ab-notice.is-centered {
  text-align: center;
}

.ab-notice.is-centered .ab-notice-head {
  justify-content: center;
}

.ab-notice.is-centered .ab-notice-list-item {
  text-align: left;
}

/* 表示スタイル：コンパクト */
.ab-notice-layout--compact .ab-notice-inner {
  padding: 18px 18px;
  border-width: 2px;
  border-radius: 18px;
}

.ab-notice-layout--compact .ab-notice-head {
  margin-bottom: 14px;
}

.ab-notice-layout--compact .ab-notice-main-icon {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.ab-notice-layout--compact .ab-notice-title {
  font-size: 21px;
}

.ab-notice-layout--compact .ab-notice-description,
.ab-notice-layout--compact .ab-notice-list-item {
  font-size: 14px;
}

.ab-notice-layout--compact .ab-notice-list {
  gap: 8px;
}

/* 表示スタイル：フラット */
.ab-notice-layout--flat {
  padding-left: 0;
  padding-right: 0;
}

.ab-notice-layout--flat .ab-notice-inner {
  padding: 20px 0;
  border: none;
  border-top: 3px solid var(--ab-notice-main);
  border-bottom: 1px solid var(--ab-notice-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.ab-notice-layout--flat .ab-notice-list-item {
  box-shadow: none;
  background: #ffffff;
}

.ab-notice-layout--flat .ab-notice-main-icon {
  box-shadow: none;
}

/* LP用セクション内 */
.ab-section-body .ab-notice {
  margin-top: 18px;
  margin-bottom: 18px;
}

.ab-section-body .ab-notice:first-child {
  margin-top: 0;
}

.ab-section-body .ab-notice:last-child {
  margin-bottom: 0;
}

/* 編集画面 */
.editor-styles-wrapper .ab-notice {
  margin-top: 24px;
  margin-bottom: 24px;
}

.editor-styles-wrapper .ab-notice-title {
  color: #111827;
}

.editor-styles-wrapper .ab-notice p {
  margin-top: 0;
}

.editor-button-preview {
  cursor: text;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .ab-notice {
    margin: 24px auto;
    padding: 0 10px;
  }

  .ab-notice-inner {
    padding: 20px 14px;
    border-width: 2px;
    border-radius: 18px;
  }

  .ab-notice-head {
    gap: 10px;
    margin-bottom: 16px;
  }

  .ab-notice-main-icon {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .ab-notice-label {
    margin-bottom: 6px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .ab-notice-title {
    font-size: 20px;
    line-height: 1.45;
  }

  .ab-notice-description {
    font-size: 14px;
    line-height: 1.75;
  }

  .ab-notice-list {
    gap: 8px;
  }

  .ab-notice-list-item {
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  .ab-notice-item-icon {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }

  .ab-notice-bottom-text {
    padding: 12px;
    font-size: 13px;
  }

  .ab-notice-button {
    max-width: 100%;
    min-height: 52px;
    font-size: 15px;
  }

  .ab-notice-note {
    padding: 10px;
    font-size: 11px;
  }
}

/* 狭いスマホ */
@media screen and (max-width: 420px) {
  .ab-notice {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ab-notice-inner {
    padding: 18px 12px;
  }

  .ab-notice-head {
    display: block;
  }

  .ab-notice-main-icon {
    margin-bottom: 10px;
  }

  .ab-notice.is-centered .ab-notice-main-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .ab-notice-title {
    font-size: 19px;
  }

  .ab-notice-description,
  .ab-notice-list-item {
    font-size: 13px;
  }
}