/* ============================================
   吹き出し
============================================ */

.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;
}

/* ============================================
   画像拡大
   ============================================ */

/* ============================================
   PALTEK Image Zoom
   image-zoom.css
   ============================================ */

/* --- 画像ラッパー --- */
.zoom-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* --- 虫眼鏡アイコン（右下） --- */
.zoom-trigger {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 5;
  pointer-events: none;
}

.zoom-wrapper:hover .zoom-trigger {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.08);
}

/* 虫眼鏡 SVG アイコン */
.zoom-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #444;
  stroke-width: 2;
  stroke-linecap: round;
}

/* --- 拡大画像コンテナ --- */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  /* ★ グレイアウト背景 追加のみ */
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.zoom-modal.is-active {
  display: flex;
}

/* --- 拡大画像インナー --- */
/* ★ ここは動作していた版のまま変更なし */
.zoom-modal-inner {
  position: fixed;
  pointer-events: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  max-width: 95vw;
  max-height: 92vh;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.10);
  border-radius: 2px;
  background: #fff;
  line-height: 0;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.zoom-modal.is-active .zoom-modal-inner {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- 拡大画像本体 --- */
.zoom-modal-img {
  display: block;
  max-width: 95vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 2px;
}

/* --- × 閉じるボタン --- */
.zoom-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  background-color: rgba(110, 110, 110, 0.85);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.zoom-close-btn:hover,
.zoom-close-btn:focus {
  background-color: rgba(70, 70, 70, 0.95);
  transform: scale(1.1);
  outline: none;
}

/* × アイコン */
.zoom-close-btn svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* --- 元の画像にカーソルを付ける --- */
.zoomable {
  cursor: zoom-in;
}

/* ============================================
   SP 対応（768px 以下）
   ============================================ */
@media screen and (max-width: 768px) {

  .zoom-trigger {
    width: 26px;
    height: 26px;
    bottom: 6px;
    right: 6px;
  }

  .zoom-trigger svg {
    width: 13px;
    height: 13px;
  }

  .zoom-modal-img {
    max-width: 96vw;
    max-height: 82vh;
  }

  .zoom-close-btn {
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
  }

  .zoom-close-btn svg {
    width: 12px;
    height: 12px;
  }

}
/* ============================================
   ブログ全体を囲む枠線を消す
   ============================================ */
	article {
		padding: 0;
		border-width: 0;
		border-style: none;
	}

	.ib {
		display: inline-block;
	}
/* ============================================
   目次
   ============================================ */

#articledetail nav.toc-blog-shared {
    background-color: #f8f9fa !important;
    padding: 25px !important;
    font-size: 1.05rem !important;
    margin-top: 2.5rem !important;
}

#articledetail nav.toc-blog-shared h2 {
    margin: 0 0 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e1e4e8 !important;
    border-left: 0 !important;
}

#articledetail nav.toc-blog-shared ul {
    margin-bottom: 0 !important;
    list-style: disc !important;
}

#articledetail nav.toc-blog-shared li a {
    color: #1E1E1E !important;
}

#articledetail nav.toc-blog-shared li a:hover {
    color: #00A2CB !important;
}

#articledetail nav.toc-blog-shared ul ul {
    list-style: none !important;
}

#articledetail nav.toc-blog-shared ul ul li {
    list-style: none !important;
    position: relative !important;
}

#articledetail nav.toc-blog-shared ul ul li::marker {
    content: "" !important;
}

#articledetail nav.toc-blog-shared ul ul li::before {
    content: "-" !important;
    position: absolute !important;
    left: -1rem !important;
}

/* ============================================
   h3のmt調整
   ============================================ */

   #articledetail h3{
    margin-top: 3rem;
   }

/* ============================================
   注釈
============================================ */
#articledetail .glossary-box {
    position: relative;
    width: 95%;
    margin: 2rem auto;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 1.2rem 1.2rem 1rem;
    color: #4a4a4a;
    box-sizing: border-box;
}

#articledetail .glossary-box--inline {
    display: inline-block;
    width: 100%;
    margin: 1rem 0 0.5rem;
}

#articledetail .glossary-box__title {
    position: absolute;
    top: -0.55rem;
    left: 1rem;
    background-color: #fff;
    padding: 0 0.4rem;
    font-size: 0.95rem;
    color: #4a4a4a;
    margin: 0;
    line-height: 1;
}

#articledetail .glossary-box--inline .glossary-box__title {
    display: block;
}

#articledetail .glossary-box__body {
    font-size: 0.9rem;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.7;
}

#articledetail .glossary-box--inline .glossary-box__body {
    display: block;
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    #articledetail .glossary-box {
        width: 100%;
        padding: 1rem;
    }

    #articledetail .glossary-box__title {
        font-size: 0.85rem;
    }

    #articledetail .glossary-box__body {
        font-size: 0.85rem;
    }
}