/* =========================================================
   メディカルインフォメーション・カスタマーセンター（/service/medical-information/）専用
   2026-11 サービスページ修正で追加。このページだけで読み込む。
   ========================================================= */

/* ---------- 強み（ページ上部） ---------- */
.mi-lead {
  margin-top: 1.5rem;
}

/* ---------- 図と「詳しく見る」 ---------- */
/* 図の下の青い帯（img5.png）。図（img1.png）には手を加えず、別の画像で下に置く */
.mi-band {
  margin: 0 -0.625rem;
}
.mi-band img {
  display: block;
  width: 100%;
  height: auto;
}
.mi-band--bottom {
  margin-top: 1.5rem;
}
@media (width >= 48rem) {
  .mi-band {
    margin-left: 0;
    margin-right: 0;
  }
  .mi-band--bottom {
    margin-top: 1.75rem;
  }
}
.mi-figure {
  position: relative;
  margin: 2.5rem -0.625rem 0;
}
@media (width >= 48rem) {
  .mi-figure {
    margin: 2.25rem 0 0;
  }
}
.mi-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.mi-more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.mi-more::after {
  content: "";
  width: .45em;
  height: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
}
.mi-more:hover,
.mi-more:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

/* パソコン：図の上に重ねる（位置は図の大きさに対する割合） */
.mi-figure__buttons {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (width >= 48rem) {
  .mi-figure__buttons li {
    position: absolute;
    transform: translate(-100%, -100%);
  }
  .mi-figure__buttons .mi-more {
    padding: .4em .8em;
    font-size: .6875rem;
    box-shadow: 0 1px 4px rgba(38, 70, 139, .15);
  }
  /* パソコンでは「詳しく見る」だけを見せる（窓口名は読み上げ用に残す） */
  .mi-figure__buttons .mi-more .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* img1.png（2640×1656）の4つの箱の右下 */
  .mi-figure__buttons .is-pharma    { left: 26.6%; top: 38.9%; }
  .mi-figure__buttons .is-wholesale { left: 26.6%; top: 81.5%; }
  .mi-figure__buttons .is-patient   { left: 99.3%; top: 38.9%; }
  .mi-figure__buttons .is-medical   { left: 99.3%; top: 81.5%; }
}
/* スマホ：図の下に2列で並べる */
@media (width < 48rem) {
  .mi-figure__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin: 1rem .625rem 0;
  }
  .mi-figure__buttons .mi-more {
    width: 100%;
    justify-content: center;
    padding: .9em .5em;
    border-radius: .28125rem;
    font-size: .75rem;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .mi-figure__buttons .mi-more {
    display: block;
  }
  .mi-figure__buttons .mi-more .label {
    display: block;
  }
  .mi-figure__buttons .mi-more::after {
    display: inline-block;
    margin-left: .4em;
  }
}

/* ---------- 窓口のアコーディオン（採用ページと同じ見た目） ---------- */
.mi-acc {
  margin-top: 2.5rem;
}
@media (width >= 48rem) {
  .mi-acc {
    margin-top: 3rem;
  }
}
.mi-acc__detail {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  scroll-margin-top: 100px;
}
.mi-acc__detail + .mi-acc__detail {
  margin-top: -1px;
}
.mi-acc__summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2.75rem 1rem .25rem;
  list-style: none;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .05em;
}
.mi-acc__summary::-webkit-details-marker {
  display: none;
}
@media (width >= 48rem) {
  .mi-acc__summary {
    gap: 1rem;
    padding: 1.4rem 4rem 1.4rem .5rem;
    font-size: 1.25rem;
  }
}
.mi-acc__icon {
  flex: none;
  width: 2rem;
  display: flex;
  justify-content: center;
}
.mi-acc__icon img {
  width: auto;
  max-height: 1.75rem;
}
@media (width >= 48rem) {
  .mi-acc__icon {
    width: 2.75rem;
  }
  .mi-acc__icon img {
    max-height: 2.25rem;
  }
}
/* ＋／−の印 */
.mi-acc__summary::before,
.mi-acc__summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: .938rem;
  border-top: 2px solid var(--color-primary);
  transition: rotate .2s cubic-bezier(.33, 1, .68, 1);
}
@media (width >= 48rem) {
  .mi-acc__summary::before,
  .mi-acc__summary::after {
    right: 1.5rem;
  }
}
.mi-acc__summary::after {
  rotate: 90deg;
}
.mi-acc__detail[open] .mi-acc__summary::after {
  rotate: 180deg;
}
.mi-acc__contents {
  overflow: hidden;
  border-top: 1px dashed #d9d9d9;
  padding: .5rem .25rem 2rem;
}
@media (width >= 48rem) {
  .mi-acc__contents {
    padding: .5rem 1.5rem 2.5rem 4.25rem;
  }
}
.mi-acc__contents .heading-h3_2 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.mi-acc__close-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.mi-acc__close {
  position: relative;
  display: flex;
  align-items: center;
  width: 17.5rem;
  height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid #b5b5b5;
  background: #fff;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.mi-acc__close::before,
.mi-acc__close::after {
  content: "";
  position: absolute;
  right: 1.75rem;
  top: 50%;
  width: .75rem;
  border-top: 1px solid #333;
}
.mi-acc__close::before { rotate: -45deg; }
.mi-acc__close::after  { rotate: 45deg; }
