/* ============================================
   吹き出し
============================================ */

.speech-block {
  display: flex;
  align-items: center;
  margin: 2em 0;
}

/* ---- 配置modifier ---- */
.speech-block--center {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.speech-block--left {
  margin-left: 0;
  margin-right: auto;
  width: fit-content;
}

/* ---- 画像エリア ---- */
.speech-block__image {
  flex-shrink: 0;
  width: clamp(120px, 30%, 500px);
}

.speech-block__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- 通常版：吹き出し（画像左 / 吹き出し右） ---- */
.speech-block--normal .speech-block__balloon {
  position: relative;
  background-color: #e8f6fd;
  border-radius: 16px;
  padding: 1.8em 2em;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  margin-left: 36px;
  margin-right: auto;
}

.speech-block--normal .speech-block__balloon::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpolygon points='24,0 24,24 0,12' fill='%23e8f6fd'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* ---- 反転版：吹き出し（画像右 / 吹き出し左） ---- */
.speech-block--reverse .speech-block__balloon {
  position: relative;
  background-color: #e8f6fd;
  border-radius: 16px;
  padding: 1.8em 2em;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  margin-right: 36px;
  margin-left: auto;
}

.speech-block--reverse .speech-block__balloon::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpolygon points='0,0 0,24 24,12' fill='%23e8f6fd'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* ---- レイアウト ---- */
.speech-block--normal {
  flex-direction: row;
}

.speech-block--normal .speech-block__image {
  margin-right: 12px;
}

.speech-block--reverse {
  flex-direction: row-reverse;
}

.speech-block--reverse .speech-block__image {
  margin-left: 12px;
}

/* ---- リスト ---- */
.speech-block__balloon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.speech-block__balloon ul li {
  margin: 0;
  padding: 0.3em 0;
  list-style: none;
}

/* -----------------------------------------
   吹き出しSP（768px以下）
----------------------------------------- */
@media (max-width: 768px) {

  .speech-block {
    flex-direction: column !important;
    align-items: center;
  }

  /* SP では配置指定を無効化して常に中央寄せ */
  .speech-block--center,
  .speech-block--left {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .speech-block__image {
    width: 100% !important;
    max-width: 500px;
    margin: 0 !important;
    order: 2;
  }

  .speech-block--normal .speech-block__balloon,
  .speech-block--reverse .speech-block__balloon {
    width: 100% !important;
    max-width: 500px;
    order: 1;
    margin: 0 0 36px 0 !important;
    padding: 1.2em 1.4em !important;
  }

  /* SP：しっぽ下向き */
  .speech-block--normal .speech-block__balloon::after,
  .speech-block--reverse .speech-block__balloon::after {
    top: auto !important;
    bottom: -23px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpolygon points='0,0 24,0 12,24' fill='%23e8f6fd'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: contain !important;
  }
}

/* ===========================
   カード
=========================== */

/* ------------------------
   カードラッパー・矢印
------------------------ */
.card-wrap {
  display: block;
  text-align: center;
}

.card-wrap::after {
  content: '';
  display: block;
  width: 40px;
  height: 47px;
  background-image: url('https://www.paltek.co.jp/dcms_media/image/arrow01.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 2rem auto 0;
}

.card-wrap--no-arrow::after {
  display: none;
}

.card-wrap--no-arrow {
  margin-bottom: 3rem;
}

/* ------------------------
   カード
------------------------ */
.card {
  position: relative;
  border: 1px solid #00a0c6;
  background-color: #ffffff;
  padding: 30px 20px 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: calc(1.7em + 3rem);
  margin-top: 16px;
  text-align: left;
}

.card__label {
  position: absolute;
  top: -16px;
  left: 16px;
  background-color: #00a0c6;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 32px;
  line-height: 1.6;
}

.card__body {
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
}

/* ------------------------
   カード（角丸）
------------------------ */
.card--rounded {
  border-radius: 12px;
}

.card--rounded .card__label {
  border-radius: 4px;
}

/* ------------------------
   カードレスポンシブ
------------------------ */
@media (max-width: 768px) {
  .card-wrap::after {
    width: 40px;
    height: 47px;
    margin-top: 1.5rem;
  }

  .card-wrap--no-arrow {
    margin-bottom: 2rem;
  }

  .card {
    padding: 26px 14px 16px;
    min-height: calc(1.7em + 3rem);
    margin-top: 14px;
  }

  .card__label {
    font-size: 12px;
    padding: 3px 24px;
    top: -13px;
    left: 12px;
  }

  .card__body {
    font-size: 14px;
  }
}
/* ------------------------
   えんぴつリストマーク
------------------------ */
.box-blue-list {
    border: 2px solid #00A0E9;
    padding: 1.5rem;
}

.box-blue-list ul {
    padding-left: 0;
    margin-left: 0;
}

.box-blue-list li {
    list-style: none !important;
    position: relative;
    padding-left: 40px;
    margin-left: 0;
    margin-bottom: 7px;
    line-height: 1.7;
    color: #2c3e50;
    font-weight: bold;
}

.box-blue-list li:last-child {
    margin-bottom: 0;
}

.box-blue-list li::before {
    content: "\f044";
    position: absolute;
    left: 8px;
    top: -1.5px;
    font-weight: 900;
    font-size: 1.05em;
    font-family: "Font Awesome 5 Free";
    color: #00A0E9;
}


/* ------------------------
   ハイライトマーカー（青）
------------------------ */
.key-highlight {
text-decoration: underline;
text-decoration-thickness: 0.5em;
text-decoration-color: rgba(0, 174, 224, 0.2);
text-underline-offset: -0.2em;
text-decoration-skip-ink: none;
}
