/* ==========================================================================
   Bootstrap reboot.scss によるヘッダー・フッターのスタイル破壊を完全無効化
   ========================================================================== */

/* 1. aタグのreboot強制上書き（下線やデフォルト色）を無効化 */
header a,
footer a {
  color: inherit !important;
  text-decoration: none !important;
  background-color: transparent !important;
}

/* 2. リスト要素（ul, ol, li）の余白やスタイルのリセット */
header ul,
header ol,
header li,
footer ul,
footer ol,
footer li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 3. 画像の縦位置（rebootの vertical-align: middle 干渉防止） */
header img,
footer img {
  vertical-align: bottom !important;
}

/* 4. 段落・見出しのマージン消去（rebootの margin-bottom: 1rem 干渉防止） */
header p,
header h1,
header h2,
header h3,
footer p,
footer h1,
footer h2,
footer h3,
footer h4 {
  margin-bottom: 0 !important;
}

/* 5. ヘッダー内ナビゲーションの横並び・文字サイズの完全死守 */
header nav.pc_only ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

header nav.pc_only ul li:not(.btnblock) > a {
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #003366 !important;
  line-height: 1.4 !important;
}

/* 6. ボタン内部の白丸アイコン・マスク画像が潰れるのを防止 */
header nav.pc_only ul li.btnblock a .box,
footer .footer_inner .btns .btnblock a .box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

header nav.pc_only ul li.btnblock a .box .mask,
footer .footer_inner .btns .btnblock a .box .mask {
  display: block !important;
}

/* ===================================================
   会社概要：主要代理店・納入先 マルチカラムリスト
=================================================== */
/* 会社概要テーブル：全項目の文字サイズを一覧と同じ 1rem に統一 */
.company_table th,
.company_table td {
    font-size: 1rem !important;
}

.partner_col_list {
    display: grid !important;
    /* PC時：横2列均等並び */
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 24px !important; /* 上下の間隔 16px、列の間隔 24px */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

.partner_col_list li {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #454545 !important; /* 他の項目と同じ文字色 */
    position: relative !important;
    padding-left: 14px !important; /* 行頭記号用の余白 */
    margin: 0 !important;
    word-break: break-all !important; /* 長い名称で枠を突き破らない対策 */
}

/* 行頭のスタイリッシュな角丸ドット記号 */
.partner_col_list li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: calc(0.85em - 2.5px) !important; /* 文字行の中央付近に配置（文字サイズに追従） */
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background-color: #003366 !important; /* ブランドネイビー */
    flex-shrink: 0 !important;
}

/* 「他」「その他」の末尾行だけドットを非表示にする調整（任意） */
.partner_col_list li:last-child {
    color: #666666 !important;
}

/* ---------------------------------------------------
   タブレット表示（1023px以下 〜 768px）
--------------------------------------------------- */
@media screen and (max-width: 1023px) {
    .partner_col_list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2列並びへ */
        gap: 14px 16px !important;
    }
}

/* ---------------------------------------------------
   スマートフォン表示（767px以下）
--------------------------------------------------- */
@media screen and (max-width: 767px) {
    .partner_col_list {
        /* スマホは病院名などの文字が長いため1列表示が最も見やすいです */
        grid-template-columns: 1fr !important;
        gap: 12px 0 !important;
    }
    .partner_col_list li {
        line-height: 1.6 !important;
        padding-left: 12px !important;
    }
    .partner_col_list li::before {
        top: calc(0.8em - 2px) !important;
        width: 4px !important;
        height: 4px !important;
    }
}