@charset "utf-8";

.relative {
  position: relative;
}

.absolute {
  position: absolute;
  bottom: 100px;
  right:5px;
  width:35%;
}

.pamp {
    margin:3px 0;
    color: #fff;/*文字色*/
    background: #FFF;
    border-radius: 10px;/*角の丸み*/
	width:100px;
    text-align:center;
    padding: 1px
}

.banner01 {
  display: block;
  text-align: center;
}
.banner01__element {
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

	
/* ========================================
   診療科一覧：専用スタイル
   .department-section 内だけに適用
======================================== */

/* 見出しエリア */
.department-section .department-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 2px solid #dcecf0;
}

/* 見出しと英字 */
.department-section .department-heading__title {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.department-section .department-heading__title > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

/* 見出し：太字にしすぎない */
.department-section .department-heading__title h2 {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #344650;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 英字 */
.department-section .department-heading__title p {
  margin: 0;
  padding: 0;
  color: #68818b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

/* 見出しアイコン（HTMLに要素がある場合） */
.department-section .department-heading__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #eaf3f6;
}

.department-section .department-heading__icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* ========================================
   検索ボックス
======================================== */

.department-section .department-search {
  position: relative;
  flex: 0 1 280px;
  width: 280px;
  max-width: 45%;
  min-width: 0;
  margin: 0;
}

.department-section .department-search input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px 9px 38px;
  border: 1px solid #d8e4e8;
  border-radius: 22px;
  background: #f7fafb;
  color: #344650;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.department-section .department-search input::placeholder {
  color: #7c8d95;
  opacity: 1;
}

.department-section .department-search input:focus {
  border-color: #398354;
  outline: 2px solid #E0EEE4;
  outline-offset: 1px;
}

/* 検索アイコン */
.department-section .department-search__icon {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 11px;
  height: 11px;
  border: 1.5px solid #68858e;
  border-radius: 50%;
  pointer-events: none;
}

.department-section .department-search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: #68858e;
  content: "";
  transform: rotate(45deg);
}

/* 検索件数 */
.department-section .department-search__count {
  margin: 0 0 10px;
  color: #718188;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

/* スクリーンリーダー用ラベル */
.department-section .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ========================================
   診療科カード一覧
======================================== */

.department-section .department-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.department-section .department-list > li {
  min-width: 0;
}

.department-section .department-list > li[hidden] {
  display: none !important;
}

/* カード本体 */
.department-section .department-card {
  display: flex;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  min-height: 58px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e9ed;
  border-radius: 7px;
  background: #f5f9fb;
  color: #3d4d56;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

/* 左側のアイコン */
.department-section .department-card::before {
  content: "";
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e7f1f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8296' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* 診療科名：太字にせず、読みやすく */
.department-section .department-card__name {
  flex: 1 1 auto;
  min-width: 0;
  color: #3d4d56;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

/* 右側の円形矢印 */
.department-section .department-card__arrow {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  place-items: center;
  margin-left: auto;
  border: 1px solid #75b7c6;
  border-radius: 50%;
  transition:
    transform 0.55s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.department-section .department-card__arrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #368da2;
  border-right: 1.5px solid #368da2;
  transform: translateX(-1px) rotate(45deg);
  transition: border-color 0.25s ease;
}

/* ホバー時 */
.department-section .department-card:hover {
  border-color: #a9d5df;
  background: #eaf5f8;
}

.department-section .department-card:hover .department-card__arrow {
  transform: rotate(360deg);
  border-color: #55aabe;
  background-color: #red;
}

.department-section .department-card:hover .department-card__arrow::after {
  border-color: #fff;
}

/* キーボード操作時 */
.department-section .department-card:focus-visible {
  outline: 2px solid #1686a5;
  outline-offset: 2px;
}

/* ========================================
   タブレット
======================================== */

@media (max-width: 1000px) {
  .department-section .department-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========================================
   スマートフォン
======================================== */

@media (max-width: 600px) {
  .department-section .department-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .department-section .department-heading__title h2 {
    font-size: 21px;
  }

  .department-section .department-heading__title > div {
    gap: 8px;
	margin-bottom: 20px;
  }

  .department-section .department-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .department-section .department-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .department-section .department-card {
    gap: 6px;
    min-height: 54px;
    padding: 8px;
  }

  .department-section .department-card::before {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    background-size: 12px 12px;
  }

  .department-section .department-card__name {
    font-size: 12px;
  }

  .department-section .department-card__arrow {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}

/* 動きを減らす設定を使用している場合 */
@media (prefers-reduced-motion: reduce) {
  .department-section .department-card,
  .department-section .department-card__arrow,
  .department-section .department-card__arrow::after {
    transition: none;
  }
}

/* ========================================
   診療科一覧：病院サイト向け
   可読性・視認性を改善
======================================== */

/* 見出し */
.department-section .department-heading__title h2 {
  color: #29483A;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 英字 */
.department-section .department-heading__title p {
  color: #60786A;
  font-size: 11px;
  letter-spacing: 0.10em;
}

/* 見出し下の線 */
.department-section .department-heading {
  border-bottom: 2px solid #fff;
}

/* 検索ボックス */
.department-section .department-search input {
  background: #FFFFFF;
  border: 1px solid #C8D9CE;
  color: #29483A;
}

.department-section .department-search input::placeholder {
  color: #687A70;
}

/* 件数表示 */
.department-section .department-search__count {
  color: #53675B;
  font-size: 13px;
}

/* 一覧の区切り線 */
.department-section .department-list > li {
  border-top: 1px solid #D3E2D7;
}

/* 診療科名 */
.department-section .department-card__name {
  color: #29483A;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.015em;
}

/* アイコン背景 */
.department-section .department-card__icon {
  background: #E7F1E9;
}

/* SVGアイコン */
.department-section .department-card__icon svg {
  stroke: #246B45;
  stroke-width: 1.8;
}

/* 右側の矢印 */
.department-section .department-card__arrow {
  border-color: #80B394;
}

.department-section .department-card__arrow::after {
  border-color: #246B45;
}

/* ホバー時 */
.department-section .department-card:hover {
  background: #EDF5EF;
}

.department-section .department-card:hover
.department-card__arrow {
  background: #246B45;
  border-color: #246B45;
}

.department-section .department-card:hover
.department-card__arrow::after {
  border-color: #FFFFFF;
}

/* キーボード操作時 */
.department-section .department-card:focus-visible {
  outline: 2px solid #246B45;
  outline-offset: 2px;
}

/* 検索結果なしの表示 */
.department-section #department-no-results {
  color: #29483A;
  font-size: 14px;
  line-height: 1.8;
}

/* スマートフォン */
@media (max-width: 600px) {
  .department-section .department-heading__title h2 {
    font-size: 21px;
  }

  .department-section .department-card__name {
    font-size: 13px;
  }
}
	
/* ========================================
   診療科一覧：折り返し・角丸の線の修正
======================================== */

/* 診療科名をできるだけ1行で表示 */
.department-section .department-card {
  gap: 8px;
  padding: 10px 8px;
}

.department-section .department-card__name {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: 13px;
  letter-spacing: 1.2;
}

/* アイコンと矢印を縮ませない */
.department-section .department-card__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.department-section .department-card__arrow {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

/* カード上部の直線をなくし、角丸をきれいにする */
.department-section .department-list > li {
  border-top: none;
  border-bottom: none;
}

.department-section .department-list > li:nth-last-child(-n+5) {
  border-bottom: none;
}

/* カード自体に薄い緑の枠線を設定 */
.department-section .department-card {
  box-sizing: border-box;
  border: 1px solid #D3E2D7;
  border-radius: 7px;
  background: #FFFFFF;
}

/* ホバー */
.department-section .department-card:hover {
  border-color: #80B394;
  background: #EDF5EF;
}

/* スマートフォン */
@media (max-width: 600px) {
  .department-section .department-card {
    gap: 5px;
    padding: 8px 5px;
  }

  .department-section .department-card__name {
    font-size: 12px;
  }

  .department-section .department-card__icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }

  .department-section .department-card__arrow {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}
	
/* 診療科一覧：色味の最終調整 */
.department-section .department-card {
  border-color: #63a788;
}

.department-section .department-card__name {
  color: #29483A;
}

.department-section .department-card__icon svg {
  stroke: #398354;
}

.department-section .department-card__arrow {
  border-color: #A0C6AC;
}

.department-section .department-card__arrow::after {
  border-color: #398354;
}

/* 診療科一覧：見出しブロックの位置を修正 */ .department-section .department-heading { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; margin: 0 0 16px !important; padding: 0 0 14px !important; box-sizing: border-box !important; }

.department-section .department-headingtitle { display: flex !important; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; transform: none !important; }

.department-section .department-headingtitle > div { display: flex !important; flex-direction: row !important; align-items: baseline !important; justify-content: flex-start !important; flex-wrap: wrap !important; gap: 8px 12px !important; width: auto !important; margin: 0 !important; padding: 0 !important; transform: none !important; }

.department-section .department-headingtitle h2 { margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important; font-size: 25px !important; font-weight: 500 !important; line-height: 1.5 !important; color: #29483A !important; }

.department-section .department-headingtitle p { margin: 0 !important; }

/* 検索ボックス */ .department-section .department-search { flex: 0 1 280px !important; width: 280px !important; max-width: 45% !important; min-width: 0 !important; margin: 0 !important; }

@media (max-width: 600px) { .department-section .department-heading { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }

.department-section .department-headingtitle { flex: 0 0 auto !important; width: 100% !important; }

.department-section .department-headingtitle h2 { font-size: 21px !important; }

.department-section .department-search { width: 100% !important; max-width: 100% !important; } }

	
/* ======================================== スマートフォン：診療科一覧の見出しを整える ======================================== */ @media screen and (max-width: 600px) {

/* 見出しエリア */ .department-section .department-heading { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; margin: 0 0 16px !important; padding: 0 0 16px !important; border-bottom: 1px solid #D3E2D7 !important; }

/* 見出しタイトル */ .department-section .department-headingtitle { display: block !important; margin: 0 0 16px !important; padding: 0 !important; }

/* 見出しと英字を縦に配置 */ .department-section .department-headingtitle > div { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 3px !important; }

/* 診療科一覧 */ .department-section .department-headingtitle h2 { position: relative; margin: 0 !important; padding: 0 0 0 12px !important; border: none !important; background: transparent !important; color: #29483A !important; font-size: 23px !important; font-weight: 500 !important; line-height: 1.5 !important; letter-spacing: 0.04em !important; }

/* 見出し左のグリーンライン */ .department-section .department-headingtitle h2::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 0; width: 3px; border-radius: 2px; background: #398354; }

/* 英字 */ .department-section .department-headingtitle p { margin: 0 !important; padding-left: 12px !important; color: #718A78 !important; font-size: 10px !important; font-weight: 400 !important; letter-spacing: 0.14em !important; line-height: 1.6 !important; }

/* 検索ボックス */ .department-section .department-search { display: block !important; flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }

.department-section .department-search input { height: 46px !important; min-height: 46px !important; padding-left: 40px !important; border-radius: 8px !important; background: #F7FAF7 !important; }

/* 件数表示 */ .department-section .department-searchcount { margin: 0 0 14px !important; padding: 0 !important; color: #617367 !important; font-size: 12px !important; line-height: 1.8 !important; }

/* 一覧の開始位置 */ .department-section .department-list { margin-top: 0 !important; row-gap: 10px !important; } }
	
/* スマートフォン：件数表示と診療科一覧の間隔 */ @media screen and (max-width: 600px) { .department-section .department-searchcount { margin-bottom: 20px !important; }

.department-section .department-list { margin-top: 0 !important; } }	
	
/* スマートフォン：診療科一覧の見出し上に余白を追加 */ @media screen and (max-width: 600px) { .department-section .department-heading { margin-top: 24px !important; } }
	
/* 診療科一覧のゾーン全体 */
.department-section {
  background-color: #beedc4;
  padding: 20px;
  border-radius: 10px;
  margin: 40px auto;
  box-sizing: border-box;
  width: 100%;
}

/* スマートフォン */
@media (max-width: 600px) {
  .department-section {
    padding: 10px 16px;
    border-radius: 10px;
    margin: 24px auto;
  }
}
	

/* CSS Document */

