@charset "UTF-8";


/* ---------------------------------------------------------
  全体スタイル
--------------------------------------------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333333;
  background-color: #FFF6F6;
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea {
  user-select: auto;
  -webkit-user-select: auto;
}

body.mode_signage {
  overflow: hidden;
  /* サイネージ版のみスクロール禁止 */
}

/* 2026/10/14 前田: サイネージモード時はマウスカーソルを非表示にする */
body.mode_signage,
body.mode_signage * {
  cursor: none !important;
}


/* ---------------------------------------------------------
  サイネージ版 共通スタイル調整（全ページ共通）
--------------------------------------------------------- */
body.mode_signage .span_header_title {
  font-size: 32px !important;
  font-weight: bold;
  color: #109DD0 !important;
}

body.mode_signage .p_guide_text {
  font-size: 32px !important;
  font-weight: bold;
  color: #1A202C !important;
}

@media (orientation: landscape) {
  body.mode_signage .span_header_title {
    font-size: 40px !important;
  }

  body.mode_signage .p_guide_text {
    font-size: 60px !important;
  }
}

body.mode_signage .div_app_header {
  justify-content: flex-start;
  padding-left: 32px;
  padding-right: 300px;
  background-color: #FFFFFF !important;
  border-bottom: 4px solid #109DD0 !important;
  box-shadow: 0 2px 10px rgba(16, 157, 208, 0.1) !important;
  min-height: 116px !important;
  height: 116px !important;
}

/* フッターを削除（上部に配置してヘッダーと統合） */
body.mode_signage .div_app_footer {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 60px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 24px 24px !important;
  z-index: 1200;
}

@media (min-width: 768px) {
  body.mode_signage .div_app_footer {
    height: 116px !important;
  }
}

body.mode_signage .button_nav {
  font-size: 24px !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  height: 100%;
  background: linear-gradient(180deg, #78BFDF 0%, #5FACD3 45%, #4593BD 100%) !important;
  color: #FFFFFF !important;
  border-top: 1px solid #99D4EF !important;
  border-left: 1px solid #78BFDF !important;
  border-right: 1px solid #367A9F !important;
  border-bottom: 3px solid #235874 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

body.mode_signage .button_nav:active,
body.mode_signage .button_nav.is_touch_pressed {
  background: linear-gradient(180deg, #377598 0%, #4A90B6 40%, #5EABD2 100%) !important;
  border-top: 2px solid #1E4D66 !important;
  border-left: 2px solid #2D698B !important;
  border-right: 1px solid #78BFDF !important;
  border-bottom: 1px solid #78BFDF !important;
}

@media (orientation: landscape) {
  body.mode_signage .button_nav {
    font-size: 28px !important;
    padding: 16px 40px !important;
  }
}

body.mode_signage button,
body.mode_signage input,
body.mode_signage .button_card {
  box-shadow: none !important;
  border: 1px solid #000000 !important;
  color: #333333 !important;
  border-radius: 0 !important;
}

body.mode_signage button * {
  color: inherit;
}

body.mode_signage .button_top_card,
body.mode_signage .button_card,
body.mode_signage .div_hospital_item {
  border-radius: 0 !important;
  border: 1px solid #000000 !important;
}

body.mode_signage .button_card.is_selected {
  border: 1px solid #000000 !important;
}

/* 次へ進むボタンや選択済みボタンなど、背景色が濃いボタンは文字色を白にする */
body.mode_signage .button_confirm:not(.is_disabled),
body.mode_signage .button_confirm:not(.is_disabled) *,
body.mode_signage .button_card.is_selected,
body.mode_signage .button_card.is_selected * {
  color: #FFFFFF !important;
}


/* ---------------------------------------------------------
  画面セクション
--------------------------------------------------------- */
.div_screen_section {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #F8F9FA;
  overflow: hidden;
}


/* ---------------------------------------------------------
  ヘッダー
--------------------------------------------------------- */
.div_app_header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E3F0F5;
  color: #476274;
  font-weight: bold;
  flex-shrink: 0;
  padding: 0 16px;
  z-index: 1100;
}

.span_header_title {
  font-size: 18px;
  letter-spacing: 0.05em;
}


/* ---------------------------------------------------------
  フッター（ナビゲーション）
--------------------------------------------------------- */
.div_app_footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #E3F0F5;
  flex-shrink: 0;
  padding: 0 16px;
  z-index: 1100;
}

.button_nav {
  background-color: #FFFFFF;
  color: #476274;
  border: 1px solid #476274;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}



/* ---------------------------------------------------------
  メインコンテンツ領域
--------------------------------------------------------- */
.div_content_area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* 地図等の拡張エリア */
.div_map_area {
  flex: 1;
  width: 100%;
  position: relative;
}


/* ---------------------------------------------------------
   TOP画面のUI分岐 (サイネージ vs 非サイネージ)
--------------------------------------------------------- */
.top_ui_signage {
  display: none;
}

.top_ui_sp {
  display: block;
}

body.mode_signage .top_ui_signage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

body.mode_signage .top_ui_sp {
  display: none;
}


/* ---------------------------------------------------------
   非サイネージ版 TOP画面 (LP風コーポレートデザイン)
--------------------------------------------------------- */
body:not(.mode_signage) .div_screen_section#div_screen_top {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  background-color: #FFFFFF;
}

/* 透過ヘッダー */
.lp_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.lp_logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  cursor: pointer;
}

/* ヒーローセクション */
.lp_hero {
  height: 100vh;
  background-color: #F8F9FA;
  background-image: none !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  overflow: hidden;
}

/* 非サイネージモードではスクロール時にヒーローを残す（パララックス効果） */
body:not(.mode_signage) .lp_hero {
  position: sticky;
  top: 0;
  z-index: 1;
}

.lp_hero::after {
  content: none;
}

.lp_hero_content {
  position: relative;
  z-index: 10;
  color: #333333;
  animation: fadeIn 2s ease-out;
}

.lp_hero_title {
  font-size: 4vw;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 24px 0;
  letter-spacing: 0.15em;
  color: #109DD0;
  text-shadow: none;
}

.lp_hero_sub {
  font-size: 1.2vw;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-shadow: none;
}

/* スクロールインジケーター */
.lp_scroll_indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.lp_scroll_indicator span {
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-weight: bold;
}

.lp_scroll_arrow {
  width: 1px;
  height: 40px;
  background-color: #333333;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* セクション共通 */
.lp_sections {
  background-color: #FFFFFF;
  position: relative;
  z-index: 10;
  padding: 80px 0 0 0 !important;
}

.lp_section_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 80px auto;
  padding: 0 40px;
}

.lp_section_image {
  flex: 1;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.lp_section_text {
  flex: 1;
}

.lp_section_h2 {
  font-size: 44px;
  font-weight: bold;
  color: #2C3E50;
  margin: 0 0 32px 0;
  border-bottom: 3px solid #109DD0;
  padding-bottom: 16px;
  display: inline-block;
}

.lp_section_p {
  font-size: 24px;
  line-height: 1.8;
  color: #333333;
  margin: 0 0 56px 0;
}

.lp_button {
  background-color: #109DD0;
  color: #FFFFFF;
  border: none;
  padding: 24px 64px;
  font-size: 26px;
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none !important;
}


/* フッター */
.lp_footer {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  text-align: center;
  padding: 20px 0 16px 0 !important;
  font-size: 11px !important;
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0 !important;
}

.p_sp_footer_copyright {
  margin: 0;
  color: #000000 !important;
  font-size: 11px !important;
  text-align: center;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
  .lp_header {
    padding: 0 20px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
  }





  .lp_hero {
    padding: 0 20px;
    text-align: center;
    justify-content: center;
  }

  .lp_hero::after {
    background: rgba(0, 0, 0, 0.4);
  }

  .lp_hero_title {
    font-size: 8vw;
  }

  .lp_hero_sub {
    font-size: 3.5vw;
  }

  .lp_section_item,
  .lp_section_reverse {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 24px;
  }

  .lp_section_item:last-of-type {
    margin-bottom: 20px !important;
  }

  .lp_section_h2 {
    font-size: 32px;
  }

  .lp_section_p {
    font-size: 18px;
    margin: 0 0 40px 0;
  }

  .lp_button {
    padding: 20px 48px;
    font-size: 22px;
  }

  .lp_section_image {
    width: 100%;
    height: 250px;
  }

  .lp_section_text {
    width: 100%;
    text-align: center;
  }

  .hide_on_sp {
    display: none !important;
  }
}

.p_guide_text {
  font-size: 18px;
  font-weight: bold;
  color: #476274;
  margin-bottom: 24px;
  text-align: center;
}


/* ---------------------------------------------------------
  ヒーローエリア (非サイネージ用)
--------------------------------------------------------- */
.div_hero_area {
  height: 200px;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.div_hero_overlay {
  background-color: rgba(227, 240, 245, 0.85);
  padding: 16px 32px;
  border-radius: 8px;
  text-align: center;
}

.div_hero_overlay h1 {
  margin: 0;
  font-size: 22px;
  color: #2C3E50;
}

.div_hero_overlay p {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: #476274;
}

body.mode_signage .div_hero_area {
  display: none;
  /* サイネージモードでは非表示 */
}


/* ---------------------------------------------------------
  ボタングリッド (グリッドレイアウト)
--------------------------------------------------------- */
.div_button_grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

.div_button_grid_1col {
  grid-template-columns: 1fr;
}

.div_button_grid_2col {
  grid-template-columns: repeat(2, 1fr);
}

/* サイネージ横画面時の表示レイアウト調整 */
@media (orientation: landscape) {

  /* 全体のコンテンツエリア幅を広げる（病院名検索画面以外） */
  body .div_screen_section:not(#div_screen_name_search) .div_content_area {
    max-width: 95vw;
  }

  /* 2026/09/03  TOP画面の「検索方法を選択してください」をヘッダー〜ボタンの高さ中心に配置 */
  body.mode_signage #div_screen_top .p_guide_text {
    margin-top: 72px !important;
    margin-bottom: 0 !important;
  }

  /* 1段のみの特大ボタン画面 (TOP, 手段選択) */
  body #div_screen_top .div_button_grid_1col {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 100%;
    height: 60vh;
    /* 2026/09/03  上部文字との間隔を均等化するためmargin-topを72pxに調整 */
    /* margin: 40px auto; */
    margin: 72px auto 40px auto !important;
  }

  body #div_screen_dept_method .div_button_grid_1col,
  body #div_screen_my_method .div_button_grid_1col {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 100%;
    height: 60vh;
    margin: 40px auto;
  }

  body #div_screen_top .button_top_card,
  body #div_screen_dept_method .button_top_card,
  body #div_screen_my_method .button_top_card {
    height: 100%;
    font-size: 40px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-weight: 900;
  }

  /* 複数項目の選択画面 (部位、診療科目、症状、地域など) のボタングリッド */
  body .div_screen_section:not(#div_screen_top):not(#div_screen_dept_method):not(#div_screen_my_method):not(#div_screen_name_search) .div_button_grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 100%;
    margin-top: 32px;
  }

  body .div_screen_section:not(#div_screen_top):not(#div_screen_dept_method):not(#div_screen_my_method):not(#div_screen_name_search) .button_card {
    min-height: 140px;
    font-size: 26px;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 基本カードボタン */
.button_card {
  background-color: #FFFFFF;
  color: #476274;
  border: 1px solid #C4D6DF;
  /* border-radius: 8px; */
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}


.button_card.is_selected {
  background-color: #109DD0;
  /* 2026/08/31  選択中のカード背景をテーマ青に変更 */
  color: #FFFFFF;
  border-color: #109DD0;
}

.button_card.is_disabled {
  background-color: #E0E0E0;
  color: #999999;
  border-color: #CCCCCC;
  cursor: not-allowed;
  pointer-events: none;
}

body.mode_signage .button_my_hospital {
  display: none !important;
}


/* ---------------------------------------------------------
  条件タグ
--------------------------------------------------------- */
/* 2026/08/27  すべてのモードでタグ表示を1行横スクロールに統一 */
.div_condition_tags {
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  justify-content: flex-start !important;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.div_condition_tags::-webkit-scrollbar {
  display: none;
}

.span_condition_tag {
  background-color: #525EA7;
  /* 2026/08/31  条件タグをアライアンスに調和した#525EA7に変更 */
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}


/* ---------------------------------------------------------
  病院名検索レイアウト
--------------------------------------------------------- */
body.mode_signage .div_content_name_search {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

body.mode_signage .div_search_left {
  flex: 1.5;
  /* キーボード幅を大きく */
  max-width: 65%;
  display: flex;
  flex-direction: column;
}

/* 検索結果を右端に寄せるための調整 */
body.mode_signage .div_search_right {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

/* 2026/09/03  医療機関名検索画面の該当件数の文字サイズを1.5倍（24px）に拡大（boldなし） */
.span_search_count,
#span_name_search_count {
  font-size: 24px !important;
}

/* サイネージモード全体で検索ボタンとキーボード幅表示ボタンを非表示にする（自動検索になるため） */
body.mode_signage #button_execute_search,
body.mode_signage .button_show_keyboard_mobile {
  display: none !important;
}

/* サイネージ縦置き時のレスポンシブ対応 */
@media (orientation: portrait) {
  body.mode_signage .div_content_name_search {
    flex-direction: column !important;
    align-items: center;
  }

  body.mode_signage .div_search_left {
    flex: none !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.mode_signage .div_search_right {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 24px;
    border-left: none !important;
    padding-left: 0 !important;
  }
}


/* ---------------------------------------------------------
  病院リストの詳細
--------------------------------------------------------- */
body.mode_signage .leaflet-control-attribution a {
  pointer-events: none !important;
  color: inherit !important;
  text-decoration: none !important;
}

.div_hospital_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.div_hospital_item {
  background-color: #FFFFFF;
  border: 1px solid #000000;
  /* 2026/08/31  検索結果の病院を囲む枠線を黒色に変更 */
  border-radius: 0;
  padding: 16px;
  cursor: pointer;
}


.h3_hospital_name {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #476274;
}

body.mode_signage .h3_hospital_name {
  font-size: 28px;
}

.p_hospital_info {
  margin: 4px 0;
  font-size: 14px;
  color: #666666;
}

.span_hospital_tag {
  display: inline-block;
  background-color: #E3F0F5;
  color: #476274;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 4px;
  margin-top: 4px;
}

/* 詳細画面 */
.div_detail_content {
  background-color: #FFFFFF;
  border: 1px solid #C4D6DF;
  border-radius: 8px;
  width: 100%;
  padding: 24px;
}

.h2_detail_name {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #476274;
  border-bottom: 2px solid #E3F0F5;
  padding-bottom: 8px;
}

.div_detail_row {
  display: flex;
  margin-bottom: 12px;
  font-size: 15px;
}

.span_detail_label {
  width: 100px;
  font-weight: bold;
  color: #5A8B9E;
  flex-shrink: 0;
}

.span_detail_value {
  flex: 1;
  color: #333333;
}

.div_detail_actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.button_detail_action {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}

.button_detail_action.button_my_hospital {
  background-color: #FFFFFF;
  color: #F5A623;
  border-color: #F5A623;
}

.button_detail_action.button_map_launch {
  background-color: #5A8B9E;
  color: #FFFFFF;
}

.div_qr_signage {
  display: none;
  text-align: center;
}

.p_qr_label {
  font-size: 14px;
  font-weight: bold;
  color: #476274;
  margin-top: 8px;
}

body.mode_signage .div_detail_actions {
  display: none;
}

body.mode_signage .div_qr_signage {
  display: block;
}

/* 2026/09/04  サイネージ時のアライアンスパートナーラベル拡大およびQRコード下文言スタイル */
body.mode_signage #div_detail_partner_badge {
  font-size: 28px !important;
  padding: 8px 22px !important;
  margin-bottom: 12px !important;
}

body.mode_signage .p_qr_label {
  font-size: 18px !important;
  color: #333333 !important;
  margin-top: 8px !important;
  font-weight: bold;
}


/* ---------------------------------------------------------
  検索画面レイアウト (2カラム対応)
--------------------------------------------------------- */
body.mode_signage .div_content_name_search {
  flex-direction: row;
  align-items: flex-start;
  max-width: 100%;
  width: 100%;
  gap: 24px;
  overflow: hidden;
  /* スクロール禁止 */
}

@media (orientation: landscape) {
  body.mode_signage .div_search_left {
    flex: 7;
    max-width: 70%;
    display: flex;
    flex-direction: column;
  }

  body.mode_signage .div_search_right {
    flex: 3;
    max-width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #C4D6DF;
    padding-left: 24px;
  }
}

body.mode_signage .div_search_right .div_hospital_list {
  overflow-y: auto;
  /* 右側のリストだけスクロール許可 */
  flex: 1;
}

.div_search_input_area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}

.input_hospital_name {
  width: 100%;
  font-size: 24px;
  padding: 16px;
  border: 1px solid #444444;
  outline: none;
}

.div_search_actions {
  display: flex;
  gap: 8px;
}

.button_search_action {
  flex: 1;
  padding: 16px;
  font-size: 18px;
  border-radius: 6px;
  background-color: #FFFFFF;
  border: 1px solid #476274;
  color: #476274;
  cursor: pointer;
}

/* 予測変換バー */
.div_prediction_bar {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 4px;
  height: 60px;
  white-space: nowrap;
}

.button_prediction {
  background-color: #FFFFFF;
  color: #476274;
  border: 1px solid #C4D6DF;
  border-radius: 16px;
  font-size: 14px;
  padding: 6px 16px;
  cursor: pointer;
}

/* トグルキーボード */
.div_toggle_keyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.button_toggle_key {
  aspect-ratio: 4 / 3;
  font-size: 24px;
  font-weight: bold;
  background-color: #FFFFFF;
  color: #476274;
  border: 1px solid #C4D6DF;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  touch-action: none;
  /* スマホフリック時スクロール防止 */
  user-select: none;
}

.button_toggle_key.is_action {
  background-color: #F0F5F9;
  font-size: 20px;
}

/* 非サイネージではキーボードと一部ボタンを非表示 */
body:not(.mode_signage) .div_keyboard_area,
body:not(.mode_signage) .button_delete_char {
  display: none !important;
}

/* 50音キーボード */
.div_50on_keyboard {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  width: 100%;
  margin: 0 auto;
}

.button_50on_key {
  aspect-ratio: 1 / 1.2;
  font-size: 16px;
  font-weight: bold;
  background-color: #FFFFFF;
  color: #476274;
  border: 1px solid #C4D6DF;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.button_50on_key.is_action {
  font-size: 12px;
  background-color: #F0F5F9;
}

.button_50on_key.is_empty {
  visibility: hidden;
  pointer-events: none;
}

/* サイネージ用キーボードサイズ拡大 */
body.mode_signage .button_50on_key {
  font-size: 36px;
  aspect-ratio: 1 / 0.75;
  /* はみ出し防止のため高さを抑える */
}

body.mode_signage .button_50on_key.is_action {
  font-size: 20px;
}


/* ---------------------------------------------------------
  フリック入力用ガイド
--------------------------------------------------------- */
.div_flick_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
}

.div_flick_overlay.is_active {
  display: block;
}

.div_flick_guide {
  position: absolute;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.flick_petal {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(240, 245, 249, 0.95);
  border: 1px solid #C4D6DF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #476274;
}

.flick_petal.is_center {
  top: 65px;
  left: 65px;
}

.flick_petal.is_left {
  top: 65px;
  left: 5px;
}

.flick_petal.is_up {
  top: 5px;
  left: 65px;
}

.flick_petal.is_right {
  top: 65px;
  left: 125px;
}

.flick_petal.is_down {
  top: 125px;
  left: 65px;
}

.flick_petal.is_active {
  background-color: #5A8B9E;
  color: #FFFFFF;
}


/* ---------------------------------------------------------
  スクリーンセーバー（サイネージ用）
--------------------------------------------------------- */
.div_screensaver {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 9999;
  cursor: pointer;
  overflow: hidden;
}

body.mode_signage .div_screensaver.is_active {
  display: block;
}

.div_floating_icon {
  position: absolute;
  opacity: 0.7;
  cursor: grab;
  user-select: none;
}

.div_floating_icon:active {
  cursor: grabbing;
}

/* 形状定義 */
.shape_circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.shape_square {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.shape_pill {
  width: 80px;
  height: 35px;
  border-radius: 17.5px;
}

.shape_plus {
  width: 60px;
  height: 60px;
  position: relative;
  background-color: transparent !important;
  pointer-events: none;
  /* 透過部分の当たり判定を除去 */
}

.shape_plus::before,
.shape_plus::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 4px;
  pointer-events: auto;
  /* 十字部分のみタッチ可能にする */
}

.shape_plus::before {
  top: 20px;
  left: 0;
  width: 60px;
  height: 20px;
}

.shape_plus::after {
  top: 0;
  left: 20px;
  width: 20px;
  height: 60px;
}

/* カラー定義 (全15色) */
.color_blue {
  background-color: #3498db;
  color: #3498db;
}

.color_green {
  background-color: #2ecc71;
  color: #2ecc71;
}

.color_red {
  background-color: #e74c3c;
  color: #e74c3c;
}

.color_yellow {
  background-color: #f1c40f;
  color: #f1c40f;
}

.color_purple {
  background-color: #9b59b6;
  color: #9b59b6;
}

.color_orange {
  background-color: #e67e22;
  color: #e67e22;
}

.color_teal {
  background-color: #1abc9c;
  color: #1abc9c;
}

.color_pink {
  background-color: #ff9ff3;
  color: #ff9ff3;
}

.color_lime {
  background-color: #a29bfe;
  color: #a29bfe;
}

.color_brown {
  background-color: #d35400;
  color: #d35400;
}

.color_cyan {
  background-color: #00d2d3;
  color: #00d2d3;
}

.color_magenta {
  background-color: #f368e0;
  color: #f368e0;
}

.color_navy {
  background-color: #34495e;
  color: #34495e;
}

.color_olive {
  background-color: #10ac84;
  color: #10ac84;
}

.color_maroon {
  background-color: #b33939;
  color: #b33939;
}

.div_screensaver_center {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 100%;
  z-index: 10;
}

.div_touch_icon {
  font-size: 140px;
  animation: bounce 2s infinite ease-in-out;
  margin-bottom: 24px;
}

.p_screensaver_text {
  font-size: 72px;
  font-weight: bold;
  color: #5A8B9E;
  margin: 24px 0 16px 0;
}

.p_screensaver_sub {
  font-size: 40px;
  color: #476274;
  margin: 0;
  font-weight: bold;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

/* JSで座標を管理するため初期配置のみ設定。left/topはJSでランダム配置するため不要だが念のため残す場合は削除。 */


/* ---------------------------------------------------------
  タッチエフェクト（サイネージ用）
--------------------------------------------------------- */
.touch_ripple {
  position: fixed;
  width: 60px;
  height: 60px;
  border: 4px solid rgba(144, 238, 144, 0.7);
  /* 淡い灰色 */
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
  z-index: 10000;
  animation: ripple_anim 0.5s ease-out forwards;
}

@keyframes ripple_anim {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}


/* ---------------------------------------------------------
  2026/09/02  「地図を表示」ボタンの右上配置（診療科目選択画面・サイネージ用）
  - 右端のインデントを上の「戻る」「TOP」ボタン（right: 24px）と完全に一致
  - 選択中エフェクト（拡大縮小・点滅）の削除
--------------------------------------------------------- */
/* ---------------------------------------------------------
  2026/09/04  「地図を表示」ボタンを地図画面のボタンと同一の位置・サイズ、
  およびTOP画面ボタンと同じ淡水色立体デザイン・同一色合いに変更
--------------------------------------------------------- */
body.mode_signage #div_screen_department .div_confirm_bar {
  position: absolute !important;
  /* 2026/09/04  地図画面のサブアクションバー内ボタン位置（ヘッダー116px + 余白12px + 中央揃えオフセット8px = top: 136px, right: 24px）と完全一致 */
  /* top: 112px !important; */
  /* top: 128px !important; */
  top: 136px !important;
  right: 24px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  display: flex !important;
  /* 2026/10/09 前田: タイトル文字との重なりを防止するため縦並び（地図を表示の下に一括解除）に変更 */
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  z-index: 1000;
}

/* 共通立体ボタンスタイル */
.button_confirm,
#button_dept_confirm,
body #button_dept_confirm,
body.mode_signage #button_dept_confirm,
body .div_screen_section #button_dept_confirm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-weight: bold !important;
  box-sizing: border-box !important;
  transition: all 0.1s ease !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  min-width: 190px !important;
  height: auto !important;
  text-align: center !important;
}

/* 有効状態（TOP画面調の淡水色立体グラデーション） */
.button_confirm:not(.is_disabled),
#button_dept_confirm:not(.is_disabled),
body.mode_signage #div_screen_department .button_confirm:not(.is_disabled),
body.mode_signage #button_dept_confirm:not(.is_disabled) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  color: #333333 !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 3px solid #2E5675 !important;
}

/* 2026/09/04  ボタン内のテキスト・spanが白文字になるのを防ぎ、確実に濃い文字色を適用 */
body.mode_signage #div_screen_department .button_confirm:not(.is_disabled) *,
body.mode_signage #button_dept_confirm:not(.is_disabled) *,
#button_dept_confirm:not(.is_disabled) span {
  color: #333333 !important;
  background: transparent !important;
}

/* 押下時（沈み込み） */
.button_confirm:active:not(.is_disabled),
.button_confirm.is_touch_pressed:not(.is_disabled),
#button_dept_confirm:active:not(.is_disabled),
#button_dept_confirm.is_touch_pressed:not(.is_disabled),
body.mode_signage #div_screen_department .button_confirm:active:not(.is_disabled),
body.mode_signage #div_screen_department .button_confirm.is_touch_pressed:not(.is_disabled),
body.mode_signage #button_dept_confirm:active:not(.is_disabled),
body.mode_signage #button_dept_confirm.is_touch_pressed:not(.is_disabled) {
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
}

/* 無効状態 */
.button_confirm.is_disabled,
#button_dept_confirm.is_disabled,
body.mode_signage #div_screen_department .button_confirm.is_disabled,
body.mode_signage #button_dept_confirm.is_disabled {
  background-color: #CCCCCC !important;
  color: #888888 !important;
  border: 1px solid #999999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* 2026/09/04  無効状態時のボタン内テキスト色 */
body.mode_signage #div_screen_department .button_confirm.is_disabled *,
body.mode_signage #button_dept_confirm.is_disabled *,
#button_dept_confirm.is_disabled span {
  color: #888888 !important;
  background: transparent !important;
}

/* アイコンスタイル */
#button_dept_confirm .img_btn_icon {
  height: 20px !important;
  width: auto !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
  flex-shrink: 0 !important;
}

/* サイネージモード時のサイズ調整（地図画面の「診療科目から検索」と完全一致） */
body.mode_signage #button_dept_confirm,
body.mode_signage #div_screen_department .button_confirm {
  padding: 12px 28px !important;
  font-size: 20px !important;
  min-width: 300px !important;
  border-radius: 5px !important;
}

/* 2026/10/09 前田: 一括解除ボタンのサイネージサイズ調整 */
body.mode_signage #button_dept_clear {
  min-width: 0 !important;
  width: 100% !important;
  padding: 8px 18px !important;
  font-size: 18px !important;
}

/* 2026/10/09 前田: 一括解除ボタンの通常モードサイズ調整 */
#button_dept_clear {
  min-width: 110px !important;
}

body.mode_signage #button_dept_confirm .img_btn_icon {
  height: 26px !important;
  width: auto !important;
}

/* ---------------------------------------------------------
  その他ユーティリティ
--------------------------------------------------------- */
.div_confirm_bar {
  display: flex;
  justify-content: center;
  align-items: center;
  /* 2026/10/09 前田: 一括解除ボタンと地図を表示ボタンの間隔を設定 */
  gap: 12px;
  padding: 16px;
  background-color: #FFFFFF;
  border-top: 1px solid #C4D6DF;
  flex-shrink: 0;
}

@keyframes pulseAttention {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(90, 139, 158, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(90, 139, 158, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(90, 139, 158, 0);
  }
}

.button_confirm {
  background-color: #5A8B9E;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.button_confirm:not(.is_disabled) {
  animation: none;
  /* エフェクト停止 */
}

.button_confirm.is_disabled {
  background-color: #CCCCCC;
  cursor: not-allowed;
}

.div_sub_action_bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #C4D6DF;
  flex-shrink: 0;
}

body.mode_signage .div_sub_action_bar {
  padding-right: 24px !important;
}

.button_sub_action {
  background-color: #F0F5F9;
  color: #476274;
  border: 1px solid #C4D6DF;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.div_map_area {
  flex: 1;
  width: 100%;
  position: relative;
}

body:not(.mode_signage) .div_screen_section {
  background-color: #F8F9FA;
}

/* ヘッダー */
body:not(.mode_signage) .div_app_header {
  background-color: #FFFFFF;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  border-bottom: none;
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  justify-content: flex-start;
  padding: 0 40px;
  box-sizing: border-box !important;
}

body:not(.mode_signage) .span_header_title {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  cursor: pointer;
}

body:not(.mode_signage) .header_title_main {
  font-size: 20px;
  font-weight: bold;
  color: #109DD0;
  letter-spacing: 0.05em;
}

body:not(.mode_signage) .header_title_sub {
  font-size: 14px;
  font-weight: bold;
  color: #525EA7;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

@media (max-width: 768px) {

  /* 2026/08/28  デフォルトの80px指定による上書きを防ぐため、後方にスマホ用統一スタイルを定義 */
  body:not(.mode_signage) .div_app_header {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  body:not(.mode_signage) .header_title_main {
    font-size: 15px !important;
  }

  body:not(.mode_signage) .header_title_sub {
    font-size: 11px !important;
    margin-top: 1px !important;
  }
}

/* コンテンツエリア */
body:not(.mode_signage) .div_content_area {
  background-color: transparent;
  padding: 20px 24px 20px 24px;
  overflow-y: auto;
}

body:not(.mode_signage) .p_guide_text {
  color: #2C3E50;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  border-bottom: 2px solid #109DD0;
  padding-bottom: 12px;
  display: inline-block;
}

/* ボタン（カード） */
body:not(.mode_signage) .button_card {
  border: none;
  box-shadow: none !important;
  /* border-radius: 12px; */
  font-weight: 300;
  color: #2C3E50;
  background-color: #FFFFFF;
  padding: 24px;
  transition: all 0.3s ease;
}

body:not(.mode_signage) .button_card.is_selected {
  background-color: #109DD0;
  color: #FFFFFF;
  box-shadow: none !important;
}

/* フッター */
body:not(.mode_signage) .div_app_footer {
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-top: none;
  padding: 12px 24px 16px 24px;
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body:not(.mode_signage) .div_footer_nav_buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.div_sp_copyright {
  display: none;
}

body:not(.mode_signage) .div_sp_copyright {
  display: block;
  color: #000000;
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
}

/* 2026/09/02  フッターコピーライト横のロゴ画像・リンクスタイル（文字サイズに合わせた高さ設定・別タブ遷移リンク） */
.a_footer_logo {
  display: inline-block;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  line-height: 1;
}

.a_footer_logo:hover {
  opacity: 0.8;
}

.img_footer_logo {
  height: 12px;
  width: auto;
  vertical-align: -1px;
  margin-right: 6px;
  display: inline-block;
}

body.mode_signage .div_sp_copyright,
body.mode_signage .p_sp_footer_copyright,
body.mode_signage .lp_footer,
body.mode_signage .a_footer_logo,
body.mode_signage .img_footer_logo {
  display: none !important;
}

body:not(.mode_signage) .button_nav {
  background-color: #F0F5F9;
  color: #109DD0;
  border: none;
  border-radius: 0 !important;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}


/* 2026/09/02  サブアクションバー（検索結果画面用）の左右パディングをヘッダー(PC:40px, スマホ:16px)と完全一致させてインデックスを揃える */
body:not(.mode_signage) .div_sub_action_bar {
  background-color: #F8F9FA;
  border-bottom: none;
  padding: 16px 40px;
  justify-content: flex-start;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  body:not(.mode_signage) .div_sub_action_bar {
    padding: 12px 16px !important;
  }
}

body:not(.mode_signage) .button_sub_action {
  border: none;
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

/* サイネージ縦画面（portrait）時のボタン特大化調整 */
@media (orientation: portrait) {

  /* 各ページのメインコンテンツを画面高さの大部分に広げる */
  body.mode_signage .div_screen_section:not(#div_screen_top):not(#div_screen_name_search) .div_content_area {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    justify-content: center;
    /* ボタン数が少ない時は画面中央に配置 */
  }

  /* ボタングリッドはコンテンツエリアを埋めるように広がりつつ、要素が多い場合はスクロールする */
  body.mode_signage .div_screen_section:not(#div_screen_top):not(#div_screen_name_search) .div_button_grid {
    flex: 1 0 auto;
    grid-auto-rows: 1fr;
    /* ボタンの縦幅を均等に最大化する */
    margin: 0;
    gap: 24px;
  }

  body.mode_signage .div_screen_section:not(#div_screen_top):not(#div_screen_name_search) .div_button_grid_1col {
    flex: 0 1 66%;
  }

  body.mode_signage .div_screen_section:not(#div_screen_top):not(#div_screen_name_search) .button_card {
    /* 2026/08/27  縦型サイネージ用ボタンサイズ調整（枠内に収める） */
    min-height: 120px;
    font-size: 38px;
    font-weight: bold;
    line-height: 1.2;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  body.mode_signage .button_search_action {
    font-size: 28px;
    font-weight: bold;
    padding: 24px;
  }
}

/* 2026/08/27  サイネージ用タグサイズ調整と高さ固定（ボタン圧縮防止） */
body.mode_signage .span_condition_tag {
  font-size: 18px !important;
  padding: 8px 20px !important;
  border-radius: 24px !important;
  display: inline-block;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

body.mode_signage .div_condition_tags {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

@keyframes markerScaleSignage {
  0% {
    scale: 1;
  }

  100% {
    scale: 1.05;
  }
}

body.mode_signage .signage-marker-anim {
  animation: markerScaleSignage 0.5s infinite alternate ease-in-out;
  transform-origin: bottom center;
}

body.mode_signage .div_map_popup {
  padding: 8px;
  text-align: center;
}

body.mode_signage .div_popup_title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

body.mode_signage .div_popup_address {
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

body.mode_signage .button_popup_detail,
.button_popup_detail {
  display: inline-block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  color: #109DD0 !important;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 2px solid #2E5675 !important;
  border-radius: 1px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

body.mode_signage .button_popup_detail:active,
body.mode_signage .button_popup_detail.is_touch_pressed,
.button_popup_detail:active,
.button_popup_detail.is_touch_pressed {
  transform: none !important;
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
  box-shadow: none !important;
}

#div_screen_map_wide .div_content_area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 8px !important;
  justify-content: flex-start !important;
}

body.mode_signage #div_screen_map_wide .div_content_area {
  padding-top: 12px !important;
  justify-content: flex-start !important;
}

/* 2026/08/27  地域選択画面の空のタグコンテナを非表示にして、ガイドテキストと地図の間の余白を解消する */
#div_screen_map_wide #div_wide_condition_tags {
  display: none !important;
}

/* ガイドテキストなどのブロックは左右の余白を維持 */
#div_screen_map_wide .div_content_area>div:first-child {
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-bottom: 4px !important;
}

body.mode_signage #div_screen_map_wide .div_content_area>div:first-child {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* 地図キャンバスとSVGの隙間調整 */
#div_screen_map_wide #div_region_map_canvas {
  margin-top: 4px !important;
  width: 100% !important;
}

#div_screen_map_wide #div_region_map_canvas svg {
  width: 100% !important;
  display: block;
}

.adj-pref-clickable {
  transition: filter 0.2s;
}

@media (orientation: portrait) {
  body.mode_signage #div_region_map_canvas {
    min-height: 83vh !important;
    height: 88vh !important;
  }

  body.mode_signage #div_city_map_canvas {
    min-height: 60vh;
    height: 65vh;
  }
}

@media (orientation: landscape) {
  body.mode_signage #div_region_map_canvas {
    min-height: 78vh !important;
    height: 83vh !important;
  }

  body.mode_signage #div_city_map_canvas {
    min-height: 70vh;
    height: 75vh;
  }
}

@media (max-width: 480px) {

  body:not(.mode_signage) #div_region_map_canvas,
  body:not(.mode_signage) #div_city_map_canvas {
    min-height: 50vh;
    height: 55vh;
  }

  body:not(.mode_signage) .p_guide_text {
    font-size: 18px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {

  body:not(.mode_signage) #div_region_map_canvas,
  body:not(.mode_signage) #div_city_map_canvas {
    min-height: 60vh;
    height: 65vh;
  }
}

/* 縦型サイネージ用 中間ルート（市区町村選択）の拡大処理 */
@media (orientation: portrait) {
  body.mode_signage #div_city_map_canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  body.mode_signage #div_city_map_canvas svg {
    transform: scale(1.3);
    transform-origin: center center;
  }

  body.mode_signage #div_city_map_canvas .city-text {
    font-size: 27px !important;
  }
}

/* 診療科目選択画面でスクロールできるようにする */
#div_screen_department .div_content_area {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  min-height: 0 !important;
}

#div_screen_department .div_button_grid {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  grid-auto-rows: auto !important;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

#div_screen_department .div_button_grid::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

@media (orientation: portrait) {
  #div_screen_department .div_content_area {
    margin-top: 5vh;
  }

  #div_screen_department .div_button_grid {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (orientation: landscape) {

  body.mode_signage #div_screen_department .div_content_area {
    /* 2026/09/03  画面下部にしっかりスペースを空けるためpadding-bottomを84pxへ拡大 */
    /* padding-bottom: 56px !important; */
    padding-bottom: 84px !important;
    align-items: flex-start;
  }

  body.mode_signage #div_screen_department .div_button_grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-rows: repeat(5, 1fr) !important;
    grid-template-columns: none !important;
    grid-auto-columns: minmax(260px, 1fr) !important;
    /* 2026/09/03  下部余白拡大に伴い行間gapを10pxに微調整 */
    /* gap: 12px 16px !important; */
    gap: 10px 16px !important;
    width: max-content !important;
    max-width: 100%;
    margin: 0 !important;
    overflow-y: hidden !important;
    overflow-x: auto !important;
  }

  /* 2026/09/03  横型サイネージ時の診療科目ボタンサイズ調整（文字サイズ維持、下部余白拡大に伴い高さを低く調整） */
  body.mode_signage #div_screen_department .button_card {
    min-height: 0 !important;
    height: 100% !important;
    /* padding: 6px 14px !important; */
    padding: 4px 12px !important;
  }

  /* =========================================================
     2026/10/09 前田: 岐阜モード 横型サイネージ用 診療科目画面（縦6行×横10列・スクロールなし）
  ========================================================= */
  body.mode_signage.mode_gifu #div_screen_department .div_content_area {
    padding-bottom: 72px !important;
    align-items: stretch !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.mode_signage.mode_gifu #div_screen_department .div_button_grid {
    display: grid !important;
    /* 2026/10/09 前田: 縦並びから横方向並び（上3行白色、下3行緑色）に変更 */
    /* grid-auto-flow: column !important; */
    grid-auto-flow: row !important;
    grid-template-rows: repeat(6, 1fr) !important;
    grid-template-columns: repeat(10, 1fr) !important;
    grid-auto-columns: auto !important;
    gap: 6px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100% - 10px) !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.mode_signage.mode_gifu #div_screen_department .button_card {
    min-height: 0 !important;
    height: 100% !important;
    padding: 2px 4px !important;
    /* 2026/10/09 前田: 拡大前のフォントサイズ
    font-size: 14px !important;
    */
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-all !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
  }




  /* ---------------------------------------------------------
     Non-Signage Mode (Landscape) - 5 Columns, Vertical Scroll
  --------------------------------------------------------- */
  body:not(.mode_signage) #div_screen_department .div_content_area {
    padding-bottom: 24px;
    align-items: stretch;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body:not(.mode_signage) #div_screen_department .div_button_grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: none !important;
    width: 100% !important;
    margin: 0 !important;
    /* overflow-y: auto !important; */
    overflow-y: visible !important;
    overflow-x: hidden !important;
    flex: none !important;
    min-height: auto !important;
    height: auto !important;
  }
}

/* ---------------------------------------------------------
  2026/09/04  非サイネージモード 診療科目選択画面（#div_screen_department）
  タイトル部分（.p_guide_text）も含めてコンテンツエリア全体でスクロールするように変更
--------------------------------------------------------- */
body:not(.mode_signage) #div_screen_department .div_content_area {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body:not(.mode_signage) #div_screen_department .div_button_grid {
  overflow-y: visible !important;
  overflow-x: hidden !important;
  flex: none !important;
  min-height: auto !important;
  height: auto !important;
}


/* ---------------------------------------------------------
  Redesigned Hospital Detail Page
--------------------------------------------------------- */
#div_screen_detail {
  background: linear-gradient(135deg, #e3f0f5 0%, #c1dceb 100%);
}

/* ---------------------------------------------------------
  Redesigned Hospital Detail Page - Base Styles (Non-signage / Mobile / PC)
--------------------------------------------------------- */
.detail_redesign_area {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 16px !important;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
}

.div_detail_card {
  background: #fdfdfd;
  border: none !important;
  border-radius: 5px !important;
  width: 100%;
  height: 100%;
  flex: 1;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

.detail_hospital_name_box h2 {
  font-size: 32px;
  font-weight: 900;
  color: #332d2b;
  letter-spacing: 1px;
}

.detail_info_columns {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
  padding: 8px 0 24px 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.detail_info_columns::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.detail_col_left {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail_col_right {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 8px;
  border-top: 1px solid #CCCCCC;
  /* 2026/08/31  仕切り線を細く薄い黒に変更 */
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail_item_box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.detail_flex_column {
  flex-direction: column;
}

.detail_right_align {
  justify-content: flex-end;
}

.detail_margin_top {
  margin-top: 24px;
}

.detail_label {
  border: 1px solid #B0B0B0;
  /* 2026/08/31  ラベル枠線を細く薄い黒に変更 */
  padding: 4px 12px;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  margin-bottom: 8px;
  margin-right: 0;
  display: inline-block;
  align-self: flex-start;
  background-color: transparent;
  color: #333;
  letter-spacing: 1px;
}

.detail_bold_depts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail_pill {
  background-color: #FFFFFF;
  border: 1px solid #B0B0B0;
  /* 2026/08/31  枠線を細く薄い黒に変更 */
  padding: 6px 16px;
  font-size: 18px;
  font-weight: normal;
  color: #333;
}

.detail_normal_depts {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.detail_value {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

.detail_tel_value {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

/* 2026/08/31  非サイネージ版 詳細画面アクションボタン（My病院・MAP・HPをひらく）スタイル */
.div_detail_actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  flex-wrap: wrap;
}

body.mode_signage .div_detail_actions {
  display: none !important;
}

.button_detail_action {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 !important;
  /* 直角 */
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  text-align: center;
}

.button_my_hospital {
  background-color: #FFFFFF !important;
  color: #109DD0 !important;
  border: 1px solid #109DD0 !important;
}

.button_my_hospital:hover {
  background-color: #E3F2FD !important;
}

.button_map_launch {
  background-color: #5FACD3 !important;
  color: #FFFFFF !important;
  border: 1px solid #5FACD3 !important;
}

.button_map_launch:hover {
  background-color: #4A96BC !important;
}

.button_hp_launch {
  background-color: #109DD0 !important;
  color: #FFFFFF !important;
  border: 1px solid #109DD0 !important;
}

.button_hp_launch:hover {
  background-color: #0D84AF !important;
}

/* =========================================================
   2026/09/02  スクリーンセーバー波水面（高さ調整＆アニメーション定義）
========================================================= */
.screensaver_wave_container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.wave_layer {
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transform-origin: bottom center;
}

.wave_back {
  animation: wave_back_anim 20s infinite ease-in-out alternate;
}

.wave_middle {
  animation: wave_middle_anim 15s infinite ease-in-out alternate;
}

.wave_front {
  animation: wave_front_anim 10s infinite ease-in-out alternate;
}

@keyframes wave_back_anim {
  0% {
    transform: translateX(0) scaleY(1.0);
  }

  100% {
    transform: translateX(-25%) scaleY(1.1);
  }
}

@keyframes wave_middle_anim {
  0% {
    transform: translateX(-15%) scaleY(1.05);
  }

  100% {
    transform: translateX(-40%) scaleY(0.95);
  }
}

@keyframes wave_front_anim {
  0% {
    transform: translateX(-30%) scaleY(0.95);
  }

  100% {
    transform: translateX(-5%) scaleY(1.05);
  }
}

/* =========================================================
   2026/09/02  スクリーンセーバー遊泳魚アニメーション定義
========================================================= */
.screensaver_fish_layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.screensaver_fish {
  position: absolute;
  left: -200px;
  /* 初期待機時も画面外に配置 */
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* 尾びれのパタパタ揺れ */
.fish_tail {
  transform-origin: 64px 20px;
  animation: fish_tail_wiggle 0.28s infinite alternate ease-in-out;
}

/* 胸びれの揺れ */
.fish_fin {
  transform-origin: 26px 22px;
  animation: fish_fin_flutter 0.4s infinite alternate ease-in-out;
}

@keyframes fish_tail_wiggle {
  0% {
    transform: rotate(-14deg);
  }

  100% {
    transform: rotate(14deg);
  }
}

@keyframes fish_fin_flutter {
  0% {
    transform: rotate(-8deg);
  }

  100% {
    transform: rotate(10deg);
  }
}

/* 魚ごとの回遊設定（左→右）※マイナスdelayにより最初から画面内を遊泳 */
.fish_swim_l2r_1 {
  bottom: 18%;
  animation: swim_l2r_path_1 19s infinite linear;
  animation-delay: -6s;
}

.fish_swim_l2r_2 {
  bottom: 8%;
  animation: swim_l2r_path_2 14s infinite linear;
  animation-delay: -2s;
}

.fish_swim_l2r_3 {
  bottom: 11%;
  animation: swim_l2r_path_2 15s infinite linear;
  animation-delay: -1.2s;
}

/* 魚ごとの回遊設定（右→左）※水面（48%）を超えないよう最高位置を33%に調整 */
.fish_swim_r2l_1 {
  bottom: 25%;
  animation: swim_r2l_path_1 17s infinite linear;
  animation-delay: -11s;
}

.fish_swim_r2l_2 {
  bottom: 33%;
  /* 2026/09/02  水面飛び出し防止のため52%→33%に下げ */
  animation: swim_r2l_path_2 22s infinite linear;
  animation-delay: -16s;
}

/* 2026/09/03  鵜の潜水捕食ターゲット魚 (鵜の26秒サイクルと完全同期) */
.fish_swim_prey {
  bottom: 14%;
  animation: swim_prey_path 26s infinite linear;
}

/* 左から右へのサイン波遊泳パス (頭が右向き: scaleX(-1)) */
@keyframes swim_l2r_path_1 {
  0% {
    left: -120px;
    transform: scaleX(-1) translateY(0) rotate(0deg);
  }

  25% {
    transform: scaleX(-1) translateY(-16px) rotate(-4deg);
  }

  50% {
    transform: scaleX(-1) translateY(10px) rotate(3deg);
  }

  75% {
    transform: scaleX(-1) translateY(-12px) rotate(-3deg);
  }

  100% {
    left: calc(100% + 120px);
    transform: scaleX(-1) translateY(0) rotate(0deg);
  }
}

@keyframes swim_l2r_path_2 {
  0% {
    left: -120px;
    transform: scaleX(-1) translateY(0) rotate(0deg);
  }

  30% {
    transform: scaleX(-1) translateY(14px) rotate(4deg);
  }

  60% {
    transform: scaleX(-1) translateY(-10px) rotate(-3deg);
  }

  85% {
    transform: scaleX(-1) translateY(8px) rotate(2deg);
  }

  100% {
    left: calc(100% + 120px);
    transform: scaleX(-1) translateY(0) rotate(0deg);
  }
}

/* 右から左へのサイン波遊泳パス (頭が左向き: scaleX(1)) */
@keyframes swim_r2l_path_1 {
  0% {
    left: calc(100% + 120px);
    transform: scaleX(1) translateY(0) rotate(0deg);
  }

  25% {
    transform: scaleX(1) translateY(-14px) rotate(3deg);
  }

  50% {
    transform: scaleX(1) translateY(15px) rotate(-4deg);
  }

  75% {
    transform: scaleX(1) translateY(-8px) rotate(2deg);
  }

  100% {
    left: -120px;
    transform: scaleX(1) translateY(0) rotate(0deg);
  }
}

@keyframes swim_r2l_path_2 {
  0% {
    left: calc(100% + 120px);
    transform: scaleX(1) translateY(0) rotate(0deg);
  }

  35% {
    transform: scaleX(1) translateY(12px) rotate(-3deg);
  }

  70% {
    transform: scaleX(1) translateY(-15px) rotate(4deg);
  }

  100% {
    left: -120px;
    transform: scaleX(1) translateY(0) rotate(0deg);
  }
}

/* 2026/09/03  鵜の潜水捕食ターゲット魚の遊泳・被捕食パス (右から左へ泳ぎ、48%で鵜に捕食されて消滅) */
@keyframes swim_prey_path {
  0% {
    left: calc(100% + 80px);
    bottom: 14%;
    opacity: 0;
    transform: scaleX(1) scale(1) translateY(0);
  }

  6% {
    left: 96%;
    bottom: 15%;
    opacity: 0.85;
    transform: scaleX(1) scale(1) translateY(0);
  }

  20% {
    left: 82%;
    bottom: 13%;
    opacity: 0.85;
    transform: scaleX(1) scale(1) translateY(-6px);
  }

  32% {
    left: 72%;
    bottom: 15%;
    opacity: 0.85;
    transform: scaleX(1) scale(1) translateY(5px);
  }

  42% {
    left: 65%;
    bottom: 14%;
    opacity: 0.85;
    transform: scaleX(1) scale(1) translateY(-3px);
  }

  46% {
    /* 鵜が目の前に飛び込んできて魚が逃げようとビクッとする */
    left: 61.5%;
    bottom: 14%;
    opacity: 0.85;
    transform: scaleX(1) scale(1) rotate(-18deg);
  }

  48% {
    /* 鵜のくちばしにパクッと捕食されて消滅！ */
    left: 60%;
    bottom: 14%;
    opacity: 0;
    transform: scaleX(1) scale(0) rotate(45deg);
  }

  48.1%,
  100% {
    /* 次の周回まで消えたまま画面外へ */
    left: -200px;
    bottom: 0;
    opacity: 0;
    transform: scale(0);
  }
}

/* =========================================================
   2026/09/03  スクリーンセーバー 鵜（ウ）水面遊泳・潜水捕食アニメーション
========================================================= */
.screensaver_cormorant_layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.screensaver_cormorant_sub {
  position: absolute;
  width: 105px;
  height: 62px;
  left: -140px;
  bottom: 44%;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22));
  animation: cormorant_hunt_cycle 26s infinite ease-in-out;
}

/* 水面の波紋エフェクト */
/* 2026/09/03  水中潜水中（38.5%〜56.5%）は波紋を完全に非表示にする */
.cormorant_ripple_wrap {
  animation: cormorant_ripple_visibility 26s infinite ease-in-out;
}

@keyframes cormorant_ripple_visibility {

  0%,
  37.5% {
    opacity: 1;
    visibility: visible;
  }

  38.5%,
  56.5% {
    opacity: 0;
    visibility: hidden;
  }

  57.5%,
  100% {
    opacity: 1;
    visibility: visible;
  }
}

.cormorant_ripple {
  transform-origin: 55px 48px;
  animation: cormorant_ripple_pulse 1.8s infinite ease-out;
}

@keyframes cormorant_ripple_pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 2026/09/03  水面にもぐる瞬間の「ポチャ」水しぶき・波紋エフェクト */
.cormorant_dive_splash {
  position: absolute;
  left: calc(47% + 32px);
  bottom: calc(44% - 15px);
  width: 90px;
  height: 45px;
  pointer-events: none;
  z-index: 4;
  animation: cormorant_dive_splash_anim 26s infinite ease-out;
}

@keyframes cormorant_dive_splash_anim {

  0%,
  38% {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.2);
  }

  38.5% {
    opacity: 1;
    visibility: visible;
    transform: scale(0.5);
  }

  39.5% {
    opacity: 0.95;
    visibility: visible;
    transform: scale(1);
  }

  41% {
    opacity: 0;
    visibility: visible;
    transform: scale(1.5);
  }

  41.5%,
  100% {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.2);
  }
}

/* 水面の波紋リングの変形原点 */
.cormorant_splash_ring {
  transform-origin: 50px 35px;
}

/* 水滴飛沫のアニメーション（ポンッと跳ね上がる） */
.cormorant_splash_drop {
  animation: cormorant_splash_drop_anim 26s infinite ease-out;
}

.cormorant_splash_drop.drop1 {
  transform-origin: 43px 22px;
}

.cormorant_splash_drop.drop2 {
  transform-origin: 50px 14px;
}

.cormorant_splash_drop.drop3 {
  transform-origin: 57px 20px;
}

@keyframes cormorant_splash_drop_anim {

  0%,
  38% {
    opacity: 0;
    transform: translateY(12px) scale(0);
  }

  38.5% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  39.6% {
    opacity: 0.8;
    transform: translateY(-8px) scale(0.9);
  }

  40.8% {
    opacity: 0;
    transform: translateY(-4px) scale(0.2);
  }

  41.5%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0);
  }
}

/* 鵜の首・頭部アクション（通常揺れ・潜水・浮上・飲み込み） */
.cormorant_neck_head {
  transform-origin: 62px 41px;
  animation: cormorant_neck_motion 26s infinite ease-in-out;
}

@keyframes cormorant_neck_motion {

  0%,
  30% {
    /* 通常遊泳: コックリと首をわずかに振る */
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-3deg);
  }

  34% {
    /* 魚発見: 首をクイッと下げる */
    transform: rotate(10deg);
  }

  38%,
  45% {
    transform: rotate(55deg);
  }

  48% {
    /* 水中捕食: パクッと首を振る */
    transform: rotate(35deg);
  }

  /* 水面に上がっていく浮上時も首を胴体とまっすぐ一直線（55度）に伸ばす */
  51%,
  54% {
    transform: rotate(55deg);
  }

  58%,
  62% {
    /* 水面に浮上: 首を起こす */
    transform: rotate(4deg);
  }

  65%,
  68% {
    /* 魚を天に向けてゴクン！と飲み込む */
    transform: rotate(-48deg) translateY(-3px);
  }

  71% {
    /* 満足して首をブルッと戻す */
    transform: rotate(6deg);
  }

  75%,
  100% {
    /* 再び通常遊泳 */
    transform: rotate(0deg);
  }
}

/* くちばしの魚の出現・バタバタ跳ね・飲み込み */
.cormorant_caught_fish {
  transform-origin: 88px 15px;
  animation: cormorant_fish_catch 26s infinite ease-in-out;
}

@keyframes cormorant_fish_catch {

  0%,
  47.9% {
    opacity: 0;
    transform: scale(0);
  }

  48% {
    /* 魚を捕食した瞬間にくちばしに出現！（泳いでいた魚と完全に同サイズscale:1） */
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }

  51% {
    opacity: 1;
    transform: scale(1) rotate(12deg);
  }

  56% {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }

  62% {
    opacity: 1;
    transform: scale(1) rotate(6deg);
  }

  66% {
    /* 首を上に向けて飲み込む瞬間に消える */
    opacity: 0.8;
    transform: scale(0.6) translateY(5px);
  }

  68%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* 鵜全体の回遊・潜水ダイブ・浮上サイクル */
@keyframes cormorant_hunt_cycle {
  0% {
    left: -140px;
    bottom: 44%;
    transform: rotate(0deg);
  }

  15% {
    left: 18%;
    bottom: 45%;
    transform: rotate(-2deg);
  }

  30% {
    left: 36%;
    bottom: 44%;
    transform: rotate(2deg);
  }

  35% {
    left: 42%;
    bottom: 45%;
    transform: rotate(-4deg);
  }

  /* 2026/09/03  水中にもぐる際、進む方向（右下46〜48度）に頭が向くよう角度と軌道を調整 */
  /* 39% {
    left: 47%;
    bottom: 42%;
    transform: rotate(26deg);
  }
  44% {
    left: 53%;
    bottom: 18%;
    transform: rotate(34deg);
  } */
  38.5% {
    /* 頭から水中に急ダイブ！進む方向に頭が向く */
    left: 46%;
    bottom: 43%;
    transform: rotate(46deg);
  }

  41% {
    /* 水中深くへ一直線に突き進む */
    left: 49.5%;
    bottom: 30%;
    transform: rotate(48deg);
  }

  44% {
    /* 魚のいる水深へ */
    left: 53.5%;
    bottom: 18%;
    transform: rotate(42deg);
  }

  48% {
    /* 水中の魚を捕食 */
    left: 59%;
    bottom: 14%;
    transform: rotate(0deg);
  }

  53% {
    /* 水面に向かって急浮上 */
    left: 65%;
    bottom: 24%;
    transform: rotate(-32deg);
  }

  57% {
    /* 水面に顔を出す */
    left: 70%;
    bottom: 43%;
    transform: rotate(-10deg);
  }

  61% {
    /* 水面で落ち着く */
    left: 73%;
    bottom: 44%;
    transform: rotate(0deg);
  }

  66% {
    /* 魚を飲み込みながら少し上下に揺れる */
    left: 74%;
    bottom: 45%;
    transform: rotate(-5deg);
  }

  71% {
    left: 76%;
    bottom: 44%;
    transform: rotate(2deg);
  }

  85% {
    left: 88%;
    bottom: 45%;
    transform: rotate(-2deg);
  }

  100% {
    left: calc(100% + 140px);
    bottom: 44%;
    transform: rotate(0deg);
  }
}

/* ---------------------------------------------------------
  2026/09/04  病院詳細画面 診療科目カプセルバッジ表示
--------------------------------------------------------- */
.div_detail_bold_depts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px;
}

.span_detail_dept_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 2026/09/04  検索結果一覧のバッジ(.span_hospital_tag)と同じデザインに統一
  background-color: #F0F7FD;
  color: #1C3D5A;
  border: 1px solid #BCE0F5;
  border-radius: 6px;
  */
  background-color: #E3F0F5;
  color: #476274;
  border-radius: 4px;
  font-weight: bold;
  box-sizing: border-box;
  white-space: nowrap;
}

/* ---------------------------------------------------------
  2026/09/04  非サイネージモード（スマホ・PC）病院詳細画面のスクロール領域拡大
  - 病院情報枠（.detail_info_columns）のみの独立スクロールを解除
  - 下のアクションボタン（.div_detail_actions）まで含めたカード全体・画面全体でスクロール可能に
  - カード表示開始位置をヘッダーから下げて病院名被りを解消
--------------------------------------------------------- */
body:not(.mode_signage) .detail_redesign_area {
  /* align-items: flex-start !important; */
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 48px 32px 32px 32px !important;
  overflow-y: auto !important;
}

body:not(.mode_signage) .div_detail_card {
  height: auto !important;
  min-height: auto !important;
  flex: none !important;
  overflow: visible !important;
}

body:not(.mode_signage) .detail_info_columns {
  overflow-y: visible !important;
  flex: none !important;
  min-height: auto !important;
}

/* ---------------------------------------------------------
  非サイネージ版 (PC: 769px以上) レスポンシブ・文字拡大設定
--------------------------------------------------------- */
@media (min-width: 769px) {
  body:not(.mode_signage) .detail_redesign_area {
    /* padding: 32px !important; */
    padding: 48px 32px 32px 32px !important;
  }

  body:not(.mode_signage) .div_detail_card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 36px;
    border: 1px solid #B0B0B0;
    /* 2026/08/31  枠線を細く薄い黒に変更 */
  }

  body:not(.mode_signage) .detail_hospital_name_box h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-top: 4px;
  }

  body:not(.mode_signage) .detail_info_columns {
    flex-direction: row;
    gap: 36px;
    padding: 24px 0;
  }

  body:not(.mode_signage) .detail_col_left {
    flex: 1.1;
    border-right: 1px solid #CCCCCC;
    /* 2026/08/31  仕切り線を細く薄い黒に変更 */
    padding-right: 36px;
  }

  body:not(.mode_signage) .detail_col_right {
    flex: 1;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  body:not(.mode_signage) .detail_label {
    font-size: 16px;
    padding: 6px 14px;
    margin-bottom: 10px;
  }

  body:not(.mode_signage) .detail_value {
    font-size: 22px;
    line-height: 1.5;
  }

  /* 2026/09/04  科目数に応じたサイズ調整 (PC) */
  body:not(.mode_signage) .div_detail_bold_depts.div_detail_size_normal .span_detail_dept_badge {
    font-size: 17px;
    padding: 4px 12px;
  }

  body:not(.mode_signage) .div_detail_bold_depts.div_detail_size_medium .span_detail_dept_badge {
    font-size: 15px;
    padding: 3px 10px;
  }

  body:not(.mode_signage) .div_detail_bold_depts.div_detail_size_compact .span_detail_dept_badge {
    font-size: 13px;
    padding: 2px 8px;
  }

  body:not(.mode_signage) .detail_margin_top {
    margin-top: 32px;
  }

  body:not(.mode_signage) .div_detail_actions {
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
  }

  body:not(.mode_signage) .button_detail_action {
    padding: 14px 28px;
    font-size: 18px;
    min-width: 160px;
  }
}

/* ---------------------------------------------------------
  非サイネージ版 (スマホ: 768px以下) レスポンシブ設定
--------------------------------------------------------- */
@media (max-width: 768px) {
  body:not(.mode_signage) .detail_redesign_area {
    /* padding: 12px !important; */
    padding: 36px 16px 24px 16px !important;
  }

  body:not(.mode_signage) .div_detail_card {
    padding: 20px 16px;
  }

  body:not(.mode_signage) .detail_hospital_name_box h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  body:not(.mode_signage) .detail_info_columns {
    flex-direction: column;
    padding: 16px 0;
    gap: 20px;
  }

  body:not(.mode_signage) .detail_col_left,
  body:not(.mode_signage) .detail_col_right {
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
  }

  body:not(.mode_signage) .detail_col_right {
    border-top: 1px solid #CCCCCC;
    /* 2026/08/31  仕切り線を細く薄い黒に変更 */
    padding-top: 20px;
  }

  body:not(.mode_signage) .detail_label {
    font-size: 15px;
    padding: 4px 12px;
    margin-bottom: 8px;
  }

  body:not(.mode_signage) .detail_value {
    font-size: 19px;
    line-height: 1.5;
  }

  /* 2026/09/04  科目数に応じたサイズ調整 (スマホ) */
  body:not(.mode_signage) .div_detail_bold_depts {
    gap: 6px;
  }

  body:not(.mode_signage) .div_detail_bold_depts.div_detail_size_normal .span_detail_dept_badge {
    font-size: 14px;
    padding: 3px 10px;
  }

  body:not(.mode_signage) .div_detail_bold_depts.div_detail_size_medium .span_detail_dept_badge {
    font-size: 13px;
    padding: 2px 8px;
  }

  body:not(.mode_signage) .div_detail_bold_depts.div_detail_size_compact .span_detail_dept_badge {
    font-size: 12px;
    padding: 2px 6px;
  }

  body:not(.mode_signage) .detail_margin_top {
    margin-top: 20px;
  }

  body:not(.mode_signage) .div_detail_actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
  }

  body:not(.mode_signage) .button_detail_action {
    width: 100%;
    min-height: 48px;
    font-size: 18px;
    padding: 12px 16px;
  }

  body:not(.mode_signage) #div_detail_partner_badge {
    font-size: 16px !important;
    padding: 4px 12px !important;
  }
}

/* ---------------------------------------------------------
  Signage Mode (Landscape)
--------------------------------------------------------- */
@media (orientation: landscape) {
  body.mode_signage .detail_redesign_area {
    padding: 40px !important;
  }

  body.mode_signage .div_detail_card {
    padding: 40px;
    overflow: hidden;
  }

  body.mode_signage .div_detail_header_row {
    margin-bottom: 45px;
  }

  body.mode_signage .detail_hospital_name_box h2 {
    font-size: 84px;
    letter-spacing: 2px;
    /* 2026/09/04  2行時の行間を狭く設定 */
    line-height: 1.15;
  }

  /* 2026/09/04  2行になる長い病院名は0.8倍に縮小 (84px * 0.8 = 67.2px) */
  body.mode_signage .detail_hospital_name_box h2.h2_detail_name_compact {
    font-size: 67px;
  }

  body.mode_signage .detail_info_columns {
    flex-direction: row;
    padding: 16px 0 45px 0;
    justify-content: space-between;
    overflow-y: auto;
  }

  body.mode_signage .detail_col_left {
    flex: 0 0 65%;
    width: auto;
    padding-right: 30px;
    margin-bottom: 0;
  }

  body.mode_signage .detail_col_right {
    flex: 0 0 33%;
    width: auto;
    margin-top: 0;
    border-top: none;
    border-left: 1px solid #CCCCCC;
    /* 2026/08/31  仕切り線を細く薄い黒に変更 */
    padding-top: 0;
    padding-left: 45px;
    justify-content: flex-start;
  }

  body.mode_signage .detail_item_box {
    margin-bottom: 22px;
  }

  body.mode_signage .detail_margin_top {
    margin-top: 45px;
  }

  body.mode_signage .detail_label {
    font-size: 21px;
    padding: 6px 18px;
    margin-right: 0;
    margin-bottom: 14px;
    display: inline-block;
    align-self: flex-start;
  }

  body.mode_signage .detail_bold_depts {
    gap: 10px;
  }

  body.mode_signage .detail_pill {
    font-size: 60px;
    padding: 12px 36px;
    border-width: 1px;
    border-color: #B0B0B0;
  }

  body.mode_signage .detail_normal_depts {
    font-size: 32px;
    margin-top: 22px;
  }

  body.mode_signage .detail_value {
    font-size: 36px;
  }

  body.mode_signage .detail_tel_value {
    font-size: 36px;
    margin-top: 0;
  }

  /* 2026/09/04  サイネージ横画面 診療科目カプセルバッジ設定 */
  body.mode_signage .div_detail_bold_depts.div_detail_size_normal {
    /* 2026/09/04  gap: 12px; -> 14px */
    gap: 14px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_normal .span_detail_dept_badge {
    /* 2026/09/04  font-size: 28px; padding: 6px 18px; -> 30px, 8px 20px */
    font-size: 30px;
    padding: 8px 20px;
    /* 2026/09/04  border-radius: 8px; -> 4px */
    border-radius: 4px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_medium {
    /* 2026/09/04  gap: 10px; -> 12px */
    gap: 12px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_medium .span_detail_dept_badge {
    /* 2026/09/04  font-size: 22px; padding: 5px 14px; -> 26px, 6px 16px */
    font-size: 26px;
    padding: 6px 16px;
    /* 2026/09/04  border-radius: 6px; -> 4px */
    border-radius: 4px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_compact {
    /* 2026/09/04  gap: 8px; -> 10px */
    gap: 10px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_compact .span_detail_dept_badge {
    /* 2026/09/04  font-size: 18px; padding: 3px 10px; -> 24px, 5px 14px */
    font-size: 24px;
    padding: 5px 14px;
    /* 2026/09/04  border-radius: 6px; -> 4px */
    border-radius: 4px;
  }

  body.mode_signage .detail_col_left.div_detail_size_compact .detail_margin_top {
    margin-top: 18px;
  }

  body.mode_signage .detail_col_left.div_detail_size_medium .detail_margin_top {
    margin-top: 28px;
  }
}

/* ---------------------------------------------------------
  Signage Mode (Portrait)
--------------------------------------------------------- */
@media (orientation: portrait) {
  body.mode_signage .detail_redesign_area {
    padding: 30px !important;
  }

  body.mode_signage .div_detail_card {
    padding: 30px;
    overflow: hidden;
  }

  body.mode_signage .div_detail_header_row {
    margin-bottom: 30px;
  }

  body.mode_signage .detail_hospital_name_box h2 {
    font-size: 64px;
    letter-spacing: 1px;
    /* 2026/09/04  2行時の行間を狭く設定 */
    line-height: 1.15;
  }

  /* 2026/09/04  2行になる長い病院名は0.8倍に縮小 (64px * 0.8 = 51.2px) */
  body.mode_signage .detail_hospital_name_box h2.h2_detail_name_compact {
    font-size: 51px;
  }

  body.mode_signage .detail_info_columns {
    flex-direction: column;
    padding: 16px 0 30px 0;
    justify-content: space-around;
    overflow-y: auto;
  }

  body.mode_signage .detail_col_left {
    flex: 1 1 auto;
    width: 100%;
    padding-right: 0;
    justify-content: flex-start;
  }

  body.mode_signage .detail_col_right {
    flex: 1 1 auto;
    width: 100%;
    margin-top: 0;
    border-top: 1px solid #CCCCCC;
    /* 2026/08/31  仕切り線を細く薄い黒に変更 */
    border-left: none;
    padding-top: 16px;
    padding-left: 0;
    justify-content: flex-start;
  }

  body.mode_signage .detail_item_box {
    margin-bottom: 20px;
  }

  body.mode_signage .detail_margin_top {
    margin-top: 30px;
  }

  body.mode_signage .detail_label {
    font-size: 24px;
    padding: 8px 24px;
    margin-right: 0;
    margin-bottom: 12px;
    display: inline-block;
    align-self: flex-start;
  }

  body.mode_signage .detail_bold_depts {
    gap: 10px;
  }

  body.mode_signage .detail_pill {
    font-size: 48px;
    padding: 10px 30px;
    border-width: 2px;
  }

  body.mode_signage .detail_normal_depts {
    font-size: 28px;
    margin-top: 20px;
  }

  body.mode_signage .detail_value {
    font-size: 32px;
  }

  body.mode_signage .detail_tel_value {
    font-size: 32px;
    margin-top: 0;
  }

  /* 2026/09/04  サイネージ縦画面 診療科目カプセルバッジ設定 */
  body.mode_signage .div_detail_bold_depts.div_detail_size_normal {
    /* 2026/09/04  gap: 12px; -> 14px */
    gap: 14px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_normal .span_detail_dept_badge {
    /* 2026/09/04  font-size: 24px; padding: 6px 16px; -> 26px, 6px 16px */
    font-size: 26px;
    padding: 6px 16px;
    /* 2026/09/04  border-radius: 8px; -> 4px */
    border-radius: 4px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_medium {
    /* 2026/09/04  gap: 8px; -> 10px */
    gap: 10px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_medium .span_detail_dept_badge {
    /* 2026/09/04  font-size: 20px; padding: 4px 12px; -> 22px, 5px 12px */
    font-size: 22px;
    padding: 5px 12px;
    /* 2026/09/04  border-radius: 6px; -> 4px */
    border-radius: 4px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_compact {
    /* 2026/09/04  gap: 6px; -> 8px */
    gap: 8px;
  }

  body.mode_signage .div_detail_bold_depts.div_detail_size_compact .span_detail_dept_badge {
    /* 2026/09/04  font-size: 16px; padding: 3px 8px; -> 20px, 4px 10px */
    font-size: 20px;
    padding: 4px 10px;
    /* 2026/09/04  border-radius: 6px; -> 4px */
    border-radius: 4px;
  }

  body.mode_signage .detail_col_left.div_detail_size_compact .detail_margin_top {
    margin-top: 16px;
  }

  body.mode_signage .detail_col_left.div_detail_size_medium .detail_margin_top {
    margin-top: 22px;
  }
}

/* 2026/08/27  地図表示時の一瞬の残像・チラつきを防止するためのフェードイン設定 */
#div_result_map_canvas {
  transition: opacity 0.15s ease-in-out;
  opacity: 0;
}

#div_result_map_canvas.is_loaded {
  opacity: 1;
}

/* =========================================================
   2026/08/28  リニューアル用追加配色・UI定義
========================================================= */

/* メイン配色上書き用クラス定義 */
.theme-primary-color {
  color: #109DD0 !important;
}

.theme-primary-bg {
  background-color: #109DD0 !important;
}

.theme-sub-bg-light {
  background-color: #97DDE9 !important;
}

.theme-sub-bg-medium {
  background-color: #5FACD3 !important;
}

.theme-dark-bg {
  background-color: #525EA7 !important;
}

/* アライアンスパートナー・バッジ (検索結果等で使用) */
.span_partner_badge {
  display: inline-block;
  background-color: #525EA7;
  color: #FFFFFF;
  font-size: 18px;
  /* 2026/08/31  指示に基づき文字サイズを14pxから18pxへ拡大 */
  font-weight: bold;
  padding: 6px 16px;
  /* 文字拡大に合わせてパディングも調整 */
  border-radius: 4px;
  margin-bottom: 8px;
  text-align: center;
  border: none;
}

/* 2026/09/14  非サイネージモード時の一覧バッジの文字サイズ・枠サイズを縮小 */
body:not(.mode_signage) .span_partner_badge {
  font-size: 12px;
  padding: 3px 10px;
  margin-bottom: 6px;
}

/* スマホ用詳細画面HP遷移ボタン */
.button_hp_launch {
  transition: all 0.2s;
}

.button_hp_launch:hover {
  filter: brightness(0.9);
}

/* 非サイネージモードにおけるテキスト選択・ドラッグコピーの許可 */
body:not(.mode_signage) {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

body:not(.mode_signage) * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

body:not(.mode_signage) button,
body:not(.mode_signage) a,
body:not(.mode_signage) select,
body:not(.mode_signage) input {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* =========================================================
   2026/08/28  スクリーンセーバー波水面（Wavify代替）アニメーション定義
========================================================= */
.screensaver_wave_container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66.6%;
  /* 下2/3 */
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.wave_layer {
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transform-origin: bottom center;
}

.wave_back {
  animation: wave_back_anim 20s infinite ease-in-out alternate;
}

.wave_middle {
  animation: wave_middle_anim 15s infinite ease-in-out alternate;
}

.wave_front {
  animation: wave_front_anim 10s infinite ease-in-out alternate;
}

@keyframes wave_back_anim {
  0% {
    transform: translateX(0) scaleY(1.0);
  }

  100% {
    transform: translateX(-25%) scaleY(1.1);
  }
}

@keyframes wave_middle_anim {
  0% {
    transform: translateX(-15%) scaleY(1.05);
  }

  100% {
    transform: translateX(-40%) scaleY(0.95);
  }
}

@keyframes wave_front_anim {
  0% {
    transform: translateX(-30%) scaleY(0.95);
  }

  100% {
    transform: translateX(-5%) scaleY(1.05);
  }
}

/* =========================================================
   2026/08/31  サイネージ用詳細画面調整ルール
========================================================= */
body.mode_signage #button_launch_map {
  display: none !important;
  /* 2026/08/31  サイネージモード時はMAPボタンを非表示にする */
}

body.mode_signage .detail_pill {
  background-color: #FFFFFF !important;
  /* 2026/08/31  強調色を排除し、白背景を保証 */
  font-weight: normal !important;
  /* 2026/08/31  太字強調を排除 */
  border-color: #B0B0B0 !important;
  /* 2026/08/31  枠線を細く薄い黒に変更 */
}

/* =========================================================
   2026/09/02  岐阜モード用 診療科目絞込トリガー黒枠＆テーブル形式POPUP
========================================================= */
.button_gifu_dept_trigger,
#btn_gifu_dept_trigger,
button#btn_gifu_dept_trigger {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  /* 2026/09/02  枠線を黒色に変更 */
  /* 2026/09/04  「診療科目で絞込」ボタンの角丸を5pxに変更 */
  /* border-radius: 0 !important; */
  border-radius: 5px !important;
  padding: 8px 16px !important;
  font-size: 15px !important;
  font-weight: normal;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 180px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* ---------------------------------------------------------
  2026/09/04  地図画面 凡例枠（#div_gifu_legend）の改行防止とレスポンシブ自動縮小調整
--------------------------------------------------------- */
#div_gifu_legend {
  /* 2026/09/04  右下凡例枠の角丸を5pxに変更 */
  /* border-radius: 0 !important; */
  border-radius: 5px !important;
  /* 2026/09/04  右端インデントをTOPボタン(24px)と一致させる */
  right: 24px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}

#div_gifu_legend>div {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* 2026/09/04  非サイネージモード時のみ、凡例枠を画面右端に吸着し、下部のLeafletリンクに被らないようbottomを調整 */
body:not(.mode_signage) #div_gifu_legend {
  right: 0 !important;
  bottom: 22px !important;
  border-radius: 5px 0 0 5px !important;
  border-right: none !important;
}

/* スマホ・タブレット等（768px以下）での自動調整 */
@media (max-width: 768px) {
  #div_gifu_legend {
    right: 12px !important;
    bottom: 14px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    max-width: calc(100% - 24px) !important;
  }

  body:not(.mode_signage) #div_gifu_legend {
    right: 0 !important;
    bottom: 20px !important;
    border-radius: 5px 0 0 5px !important;
    border-right: none !important;
    max-width: calc(100% - 12px) !important;
  }

  #div_gifu_legend>div {
    font-size: clamp(10px, 2.8vw, 12px) !important;
    gap: 4px !important;
  }

  #div_gifu_legend .img_legend_pin {
    width: 12px !important;
    height: 20px !important;
  }

  #btn_gifu_help {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }
}

/* 極小画面（380px以下）での最適化 */
@media (max-width: 380px) {
  #div_gifu_legend {
    right: 8px !important;
    bottom: 10px !important;
    padding: 5px 8px !important;
    gap: 6px !important;
  }

  body:not(.mode_signage) #div_gifu_legend {
    right: 0 !important;
    bottom: 18px !important;
    border-radius: 5px 0 0 5px !important;
    border-right: none !important;
    max-width: 100% !important;
  }

  #div_gifu_legend>div {
    font-size: 10px !important;
    gap: 3px !important;
  }

  #div_gifu_legend .img_legend_pin {
    width: 10px !important;
    height: 17px !important;
  }

  #btn_gifu_help {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }
}

#div_gifu_help_modal>div,
.div_gifu_help_modal_card,
.div_gifu_dept_modal_card {
  background: #FFFFFF !important;
  padding: 24px 20px 20px 20px !important;
  /* 2026/09/03  地図POPUPカードの角を5px丸くする */
  /* border-radius: 0 !important; */
  border-radius: 5px !important;
  width: 85%;
  max-width: 480px !important;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  /* max-height: 80vh !important; */
  max-height: 85vh !important;
  box-sizing: border-box !important;
}

/* 2026/09/04  地図ヘルプPOPUP タイトル固定・本文枠内スクロール・閉じるボタン固定 */
#div_gifu_help_modal h3 {
  flex-shrink: 0 !important;
}

#div_gifu_help_modal .div_gifu_help_body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

#div_gifu_help_modal>div>div:last-child {
  flex-shrink: 0 !important;
}

/* 2026/09/04  スマホ画面（768px以下）時のヘルプPOPUP最適化 */
@media (max-width: 768px) {

  #div_gifu_help_modal>div,
  .div_gifu_help_modal_card {
    padding: 20px 16px 16px 16px !important;
    width: 90% !important;
    max-height: 80vh !important;
  }

  #div_gifu_help_modal h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  #div_gifu_help_modal h4 {
    font-size: 15px !important;
  }

  #div_gifu_help_modal p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  #div_gifu_help_modal button {
    padding: 8px 24px !important;
    font-size: 15px !important;
  }
}

.div_gifu_dept_list,
#div_gifu_dept_list {
  max-height: 50vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  display: block !important;
  padding: 0 !important;
  border-top: 1px solid #E5E7EB !important;
  border-bottom: 1px solid #E5E7EB !important;
  scrollbar-width: none !important;
  /* 2026/09/02  スクロールバー非表示（Firefox） */
  -ms-overflow-style: none !important;
  /* 2026/09/02  スクロールバー非表示（IE, Edge） */
}

/* 2026/09/02  スクロールバー非表示（Chrome, Safari, WebKit） */
.div_gifu_dept_list::-webkit-scrollbar,
#div_gifu_dept_list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* テーブル形式POPUPスタイル */
.table_gifu_dept {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  margin: 0 !important;
}

.table_gifu_dept tr,
.tr_gifu_dept_row {
  border-bottom: 1px solid #E5E7EB !important;
  cursor: pointer !important;
  background-color: transparent !important;
}

.table_gifu_dept tr:last-child,
.tr_gifu_dept_row:last-child {
  border-bottom: none !important;
}

.table_gifu_dept td,
.td_gifu_dept_item {
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: #333333 !important;
  text-align: left !important;
  vertical-align: middle !important;
  background-color: transparent !important;
  border: none !important;
}

.table_gifu_dept tr.is_selected,
.table_gifu_dept tr.is_selected td,
.tr_gifu_dept_row.is_selected,
.tr_gifu_dept_row.is_selected td {
  background-color: #ABD2FA !important;
  color: #000000 !important;
  font-weight: bold !important;
}

.button_gifu_dept_item {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding: 10px 14px !important;
  border: none !important;
  border-bottom: 1px solid #E5E7EB !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: #333333 !important;
  font-size: 14px !important;
  font-weight: normal !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.button_gifu_dept_item:last-child {
  border-bottom: none !important;
}

.button_gifu_dept_item.is_selected {
  background-color: #ABD2FA !important;
  color: #000000 !important;
  font-weight: bold !important;
}

/* 2026/09/04  旧サイネージモード時ボタンサイズ調整（立体ボタン化に伴い無効化）
body.mode_signage .button_gifu_dept_trigger,
body.mode_signage #btn_gifu_dept_trigger {
  border: 1px solid #109DD0 !important;
  color: #109DD0 !important;
  padding: 12px 24px !important;
  font-size: 20px !important;
  min-width: 260px !important;
  border-radius: 5px !important;
}
*/
/* 2026/09/04  「診療科目から検索」ボタンをTOP画面ボタンと同じ淡水色立体デザイン・同一色合いに変更 */
.button_gifu_dept_trigger,
#btn_gifu_dept_trigger,
body #btn_gifu_dept_trigger,
body.mode_signage #btn_gifu_dept_trigger,
body .div_screen_section #btn_gifu_dept_trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  color: #333333 !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 3px solid #2E5675 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  min-width: 190px !important;
  transition: all 0.1s ease !important;
}

.button_gifu_dept_trigger .img_btn_dept_icon,
#btn_gifu_dept_trigger .img_btn_dept_icon {
  height: 20px !important;
  width: auto !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
  flex-shrink: 0 !important;
}

.button_gifu_dept_trigger:active,
.button_gifu_dept_trigger.is_touch_pressed,
#btn_gifu_dept_trigger:active,
#btn_gifu_dept_trigger.is_touch_pressed,
body #btn_gifu_dept_trigger:active,
body #btn_gifu_dept_trigger.is_touch_pressed,
body.mode_signage #btn_gifu_dept_trigger:active,
body.mode_signage #btn_gifu_dept_trigger.is_touch_pressed {
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
}

/* サイネージモード時のサイズ調整（高さは12pxパディングで維持し、横幅・フォント・アイコンを調整） */
body.mode_signage .button_gifu_dept_trigger,
body.mode_signage #btn_gifu_dept_trigger {
  padding: 12px 28px !important;
  font-size: 20px !important;
  min-width: 300px !important;
  border-radius: 5px !important;
}

body.mode_signage .button_gifu_dept_trigger .img_btn_dept_icon,
body.mode_signage #btn_gifu_dept_trigger .img_btn_dept_icon {
  height: 26px !important;
  width: auto !important;
}

body.mode_signage #div_gifu_help_modal>div,
body.mode_signage .div_gifu_dept_modal_card {
  /* 2026/09/03  地図POPUPカードの角を5px丸くする */
  /* border-radius: 0 !important; */
  border-radius: 5px !important;
}

body.mode_signage .div_gifu_dept_modal_card {
  max-width: 600px !important;
  padding: 28px 24px 20px 24px !important;
}

body.mode_signage .div_gifu_dept_list {
  max-height: 55vh !important;
}

body.mode_signage .table_gifu_dept td,
body.mode_signage .td_gifu_dept_item,
body.mode_signage .button_gifu_dept_item {
  padding: 14px 18px !important;
  font-size: 18px !important;
  border-radius: 0 !important;
}

/* =========================================================
   2026/09/02  非サイネージ用 病院名検索画面スタイル（白黒シンプル・角丸排除）
========================================================= */
body:not(.mode_signage) #div_screen_name_search .input_hospital_name {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px;
  padding: 12px 14px;
}

body:not(.mode_signage) #div_screen_name_search .input_hospital_name::placeholder {
  color: #888888;
}

body:not(.mode_signage) #div_screen_name_search .button_search_action {
  border-radius: 0 !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
  font-size: 16px;
  padding: 12px 24px;
}


/* =========================================================
   2026/09/02  非サイネージ用 TOPページ以外の全ボタン角丸排除（完全直角化）
========================================================= */
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) button,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_nav,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_card,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_confirm,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_search_action,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_detail_action,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_sub_action,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_prediction,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_toggle_key,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_show_keyboard_mobile,
/* 2026/09/04  「診療科目から検索」ボタンは角丸5pxを維持するため直角化から除外 */
/* body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_gifu_dept_trigger, */
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) .button_gifu_dept_item,
body:not(.mode_signage) .div_screen_section:not(#div_screen_top) #btn_gifu_help,
body:not(.mode_signage) .modal_overlay button,
body:not(.mode_signage) .modal_overlay .button_card,
body:not(.mode_signage) .button_popup_detail {
  border-radius: 0 !important;
}

/* =========================================================
   2026/09/02  診療科目選択画面（#div_screen_department）ボタン角丸排除（完全直角化）
========================================================= */
body:not(.mode_signage) #div_screen_department .button_card,
body:not(.mode_signage) #div_screen_department #div_department_buttons .button_card,
body:not(.mode_signage) #div_screen_department .button_confirm,
body:not(.mode_signage) #div_screen_department #button_dept_confirm,
body:not(.mode_signage) #div_screen_department .button_nav,
body:not(.mode_signage) .button_card {
  border-radius: 0 !important;
}

/* =========================================================
   2026/09/03  TOP画面ボタンの立体感デザイン（淡い水色トーン・ネイビーグレー影枠線、シャドウ不使用）
========================================================= */
body #div_screen_top .button_top_card,
body.mode_signage #div_screen_top .button_top_card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 3px solid #2E5675 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #333333 !important;
  cursor: pointer;
  transition: all 0.1s ease;
}


body #div_screen_top .button_top_card:active,
body #div_screen_top .button_top_card.is_touch_pressed,
body.mode_signage #div_screen_top .button_top_card:active,
body.mode_signage #div_screen_top .button_top_card.is_touch_pressed {
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  /* 2026/09/03  押下時もネイビーグレーの影枠線に連動 */
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
}

/* =========================================================
   2026/09/03  医療機関名検索画面のボタン群および検索結果カードの立体感デザイン（白ベース・角丸1px・シャドウ不使用）
========================================================= */

/* 1. アクションボタン（1文字消す、全文字削除） */
body #div_screen_name_search .button_search_action,
body.mode_signage #div_screen_name_search .button_search_action {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 2px solid #2E5675 !important;
  border-radius: 1px !important;
  box-shadow: none !important;
  color: #333333 !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

body #div_screen_name_search .button_search_action:active,
body #div_screen_name_search .button_search_action.is_touch_pressed,
body.mode_signage #div_screen_name_search .button_search_action:active,
body.mode_signage #div_screen_name_search .button_search_action.is_touch_pressed {
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
}

/* 2. 50音キーボード各キー */
body #div_screen_name_search .button_50on_key:not(.is_empty),
body.mode_signage #div_screen_name_search .button_50on_key:not(.is_empty) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FC 45%, #DCEBFA 100%) !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #7C9EB5 !important;
  border-bottom: 2px solid #2E5675 !important;
  border-radius: 1px !important;
  box-shadow: none !important;
  color: #333333 !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

body #div_screen_name_search .button_50on_key:not(.is_empty):active,
body #div_screen_name_search .button_50on_key:not(.is_empty).is_touch_pressed,
body.mode_signage #div_screen_name_search .button_50on_key:not(.is_empty):active,
body.mode_signage #div_screen_name_search .button_50on_key:not(.is_empty).is_touch_pressed {
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
}

/* 予測変換候補ボタン */
body #div_screen_name_search .button_prediction,
body.mode_signage #div_screen_name_search .button_prediction {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 2px solid #2E5675 !important;
  border-radius: 1px !important;
  box-shadow: none !important;
  color: #333333 !important;
  cursor: pointer;
}

/* =========================================================
   2026/09/03  地図ページ等のモーダルPOPUP内「閉じる」ボタンの立体感デザイン（青ベース、角丸1px）
========================================================= */
.modal_overlay button,
#div_gifu_help_modal button,
#div_gifu_dept_modal button {
  background: linear-gradient(180deg, #32B3E4 0%, #109DD0 45%, #0D84B0 100%) !important;
  color: #FFFFFF !important;
  border-top: 1px solid #6DD3F7 !important;
  border-left: 1px solid #32B3E4 !important;
  border-right: 1px solid #095D7D !important;
  border-bottom: 2px solid #053D52 !important;
  /* 2026/09/03  地図POPUP閉じるボタンの角を5px丸くする */
  /* border-radius: 1px !important; */
  border-radius: 5px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

.modal_overlay button:active,
.modal_overlay button.is_touch_pressed,
#div_gifu_help_modal button:active,
#div_gifu_help_modal button.is_touch_pressed,
#div_gifu_dept_modal button:active,
#div_gifu_dept_modal button.is_touch_pressed {
  background: linear-gradient(180deg, #095D7D 0%, #0D84B0 40%, #109DD0 100%) !important;
  border-top: 2px solid #053D52 !important;
  border-left: 2px solid #095D7D !important;
  border-right: 1px solid #6DD3F7 !important;
  border-bottom: 1px solid #6DD3F7 !important;
}

/* =========================================================
   2026/09/03  地図画面凡例の「？」ボタンの立体感デザイン（青ベース、円形、シャドウ不使用）
========================================================= */
#btn_gifu_help,
body.mode_signage #btn_gifu_help {
  background: linear-gradient(180deg, #32B3E4 0%, #109DD0 45%, #0D84B0 100%) !important;
  color: #FFFFFF !important;
  border-top: 1px solid #6DD3F7 !important;
  border-left: 1px solid #32B3E4 !important;
  border-right: 1px solid #095D7D !important;
  border-bottom: 2px solid #053D52 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

#btn_gifu_help:active,
#btn_gifu_help.is_touch_pressed,
body.mode_signage #btn_gifu_help:active,
body.mode_signage #btn_gifu_help.is_touch_pressed {
  background: linear-gradient(180deg, #095D7D 0%, #0D84B0 40%, #109DD0 100%) !important;
  border-top: 2px solid #053D52 !important;
  border-left: 2px solid #095D7D !important;
  border-right: 1px solid #6DD3F7 !important;
  border-bottom: 1px solid #6DD3F7 !important;
}

/* =========================================================
   2026/09/03  横型サイネージ用 医療機関区分POPUPの横幅2倍拡大（max-width: 1000px）
========================================================= */
@media (orientation: landscape) {
  body.mode_signage #div_gifu_help_modal>div {
    max-width: 1000px !important;
    width: 85% !important;
    padding: 40px 48px !important;
  }

  body.mode_signage #div_gifu_help_modal h3 {
    font-size: 32px !important;
    margin-bottom: 28px !important;
  }

  body.mode_signage #div_gifu_help_modal h4 {
    font-size: 24px !important;
    margin-bottom: 10px !important;
  }

  /* 2026/09/04  横型サイネージ時のPOPUP内ピン画像サイズ調整 */
  body.mode_signage #div_gifu_help_modal .img_modal_pin {
    width: 20px !important;
    height: 33px !important;
  }

  body.mode_signage #div_gifu_help_modal p {
    font-size: 20px !important;
    line-height: 1.6 !important;
  }

  body.mode_signage #div_gifu_help_modal button {
    font-size: 22px !important;
    padding: 14px 44px !important;
    min-width: 160px !important;
  }
}

/* =========================================================
   2026/09/03  横型サイネージ用 診療科目選択画面の人差し指横スクロール案内アニメーション
========================================================= */
.div_dept_swipe_guide {
  display: none;
}

@media (orientation: landscape) {
  body.mode_signage .div_dept_swipe_guide {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500;
    pointer-events: none !important;
    display: none;
    align-items: center;
    justify-content: center;
  }

  body.mode_signage .div_dept_swipe_guide.is_animating {
    display: flex !important;
  }

  body.mode_signage .div_swipe_hand_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45));
    /* 2026/09/03  最初0.5秒間静止してから動かすため2.3sに調整 */
    animation: key_dept_swipe_hand 2.3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  }

  body.mode_signage .svg_swipe_hand {
    transform: rotate(-10deg);
  }

  /* 2026/09/03  最初の約0.5秒間(0%〜22%)はその場(450px)で静止し、その後滑らかにスワイプ */
  @keyframes key_dept_swipe_hand {
    0% {
      opacity: 0;
      transform: translateX(450px) scale(0.95);
    }

    5% {
      opacity: 1;
      transform: translateX(450px) scale(1);
    }

    22% {
      opacity: 1;
      transform: translateX(450px) scale(1);
    }

    80% {
      opacity: 1;
      transform: translateX(-280px) scale(1);
    }

    92% {
      opacity: 0.6;
      transform: translateX(-340px) scale(0.96);
    }

    100% {
      opacity: 0;
      transform: translateX(-380px) scale(0.92);
    }
  }
}

/* =========================================================
   2026/09/03  全ての立体ボタン押下時の沈み込みを離した後に0.1秒間残す設定
========================================================= */
body.mode_signage .button_nav,
body.mode_signage #div_screen_department .button_confirm,
body.mode_signage #button_dept_confirm,
body.mode_signage .button_popup_detail,
.button_popup_detail,
body #div_screen_top .button_top_card,
body.mode_signage #div_screen_top .button_top_card,
body #div_screen_name_search .button_search_action,
body.mode_signage #div_screen_name_search .button_search_action,
body #div_screen_name_search .button_50on_key:not(.is_empty),
body.mode_signage #div_screen_name_search .button_50on_key:not(.is_empty),
.modal_overlay button,
#div_gifu_help_modal button,
#div_gifu_dept_modal button,
#btn_gifu_help,
body.mode_signage #btn_gifu_help,
#btn_gifu_dept_trigger,
body.mode_signage #btn_gifu_dept_trigger {
  /* 指やマウスを離した後、0.1秒間沈み込み状態をキープしてから0.05秒で戻る */
  transition: all 0.05s ease 0.1s !important;
}

body.mode_signage .button_nav:active,
body.mode_signage .button_nav.is_touch_pressed,
body.mode_signage #div_screen_department .button_confirm:active:not(.is_disabled),
body.mode_signage #div_screen_department .button_confirm.is_touch_pressed:not(.is_disabled),
body.mode_signage #button_dept_confirm:active:not(.is_disabled),
body.mode_signage #button_dept_confirm.is_touch_pressed:not(.is_disabled),
body.mode_signage .button_popup_detail:active,
body.mode_signage .button_popup_detail.is_touch_pressed,
.button_popup_detail:active,
.button_popup_detail.is_touch_pressed,
body #div_screen_top .button_top_card:active,
body #div_screen_top .button_top_card.is_touch_pressed,
body.mode_signage #div_screen_top .button_top_card:active,
body.mode_signage #div_screen_top .button_top_card.is_touch_pressed,
body #div_screen_name_search .button_search_action:active,
body #div_screen_name_search .button_search_action.is_touch_pressed,
body.mode_signage #div_screen_name_search .button_search_action:active,
body.mode_signage #div_screen_name_search .button_search_action.is_touch_pressed,
body #div_screen_name_search .button_50on_key:not(.is_empty):active,
body #div_screen_name_search .button_50on_key:not(.is_empty).is_touch_pressed,
body.mode_signage #div_screen_name_search .button_50on_key:not(.is_empty):active,
body.mode_signage #div_screen_name_search .button_50on_key:not(.is_empty).is_touch_pressed,
.modal_overlay button:active,
.modal_overlay button.is_touch_pressed,
#div_gifu_help_modal button:active,
#div_gifu_help_modal button.is_touch_pressed,
#div_gifu_dept_modal button:active,
#div_gifu_dept_modal button.is_touch_pressed,
#btn_gifu_help:active,
#btn_gifu_help.is_touch_pressed,
body.mode_signage #btn_gifu_help:active,
body.mode_signage #btn_gifu_help.is_touch_pressed,
#btn_gifu_dept_trigger:active,
#btn_gifu_dept_trigger.is_touch_pressed,
body.mode_signage #btn_gifu_dept_trigger:active,
body.mode_signage #btn_gifu_dept_trigger.is_touch_pressed {
  /* 押した瞬間はディレイなし（0秒）で即座に沈み込む */
  transition: none !important;
}

/*-----------------------------------
2026/09/04  診療科目選択画面「複数選択可」案内テキスト
-----------------------------------*/
.span_dept_multiple_note {
  display: none;
  font-size: 14px;
  font-weight: normal;
  color: #666666;
  margin-left: 12px;
  vertical-align: middle;
}

body.mode_signage .span_dept_multiple_note {
  font-size: 20px;
  margin-left: 16px;
  color: #555555;
}

@media (orientation: landscape) {
  body.mode_signage .span_dept_multiple_note {
    font-size: 28px;
    margin-left: 20px;
  }
}

/* =========================================================
   2026/09/04  サイネージ限定 病院名検索画面のキー入力後30秒無操作タッチ案内指アイコン
========================================================= */
.div_search_touch_guide {
  display: none;
}

body.mode_signage .div_search_touch_guide {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  pointer-events: none !important;
  display: none;
  align-items: center;
  justify-content: center;
}

body.mode_signage .div_search_touch_guide.is_animating {
  display: flex !important;
}

body.mode_signage .div_search_touch_hand_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  /* 2026/09/04  指アイコン表示時間は2.5秒 */
  animation: key_search_touch_hand 2.5s ease-in-out forwards;
}

body.mode_signage .svg_search_touch_hand {
  transform: rotate(-10deg);
}

@keyframes key_search_touch_hand {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.85);
  }

  15% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }

  35% {
    transform: translateY(-16px) scale(1.03);
  }

  50% {
    transform: translateY(6px) scale(0.94);
  }

  65% {
    transform: translateY(-12px) scale(1.02);
  }

  80% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
}

/* =========================================================
   2026/10/09 前田: 岐阜モード 診療科目立体ボタンスタイル定義（標榜診療科名 / 追加分類候補）
========================================================= */

/* 1. 白色ボタン（標榜診療科名） */
body.mode_gifu #div_screen_department .button_card.button_card_standard {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FD 45%, #D4EAFB 100%) !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E1EFF9 !important;
  border-right: 1px solid #6A8FA8 !important;
  border-bottom: 2px solid #2E5675 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #2D3748 !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

body.mode_gifu #div_screen_department .button_card.button_card_standard:active,
body.mode_gifu #div_screen_department .button_card.button_card_standard.is_touch_pressed {
  background: linear-gradient(180deg, #C5E0F6 0%, #DCEDFB 40%, #EDF6FD 100%) !important;
  border-top: 2px solid #2E5675 !important;
  border-left: 2px solid #436F91 !important;
  border-right: 1px solid #9EC3DF !important;
  border-bottom: 1px solid #9EC3DF !important;
}

body.mode_gifu #div_screen_department .button_card.button_card_standard.is_selected {
  background: linear-gradient(180deg, #32B3E4 0%, #109DD0 45%, #0D84B0 100%) !important;
  border-top: 1px solid #78D4F5 !important;
  border-left: 1px solid #57C4ED !important;
  border-right: 1px solid #096587 !important;
  border-bottom: 2px solid #06455D !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
}

/* 2. 緑色ボタン（追加分類候補） */
body.mode_gifu #div_screen_department .button_card.button_card_additional {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F9F5 45%, #DCF3E7 100%) !important;
  border-top: 1px solid #FFFFFF !important;
  border-left: 1px solid #E3F8ED !important;
  border-right: 1px solid #6AA88A !important;
  border-bottom: 2px solid #286345 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #1F4D36 !important;
  cursor: pointer;
  transition: all 0.1s ease;
}

body.mode_gifu #div_screen_department .button_card.button_card_additional:active,
body.mode_gifu #div_screen_department .button_card.button_card_additional.is_touch_pressed {
  background: linear-gradient(180deg, #C7EED8 0%, #DCF5E7 40%, #EDFAF3 100%) !important;
  border-top: 2px solid #286345 !important;
  border-left: 2px solid #3A7F5B !important;
  border-right: 1px solid #A3DEC0 !important;
  border-bottom: 1px solid #A3DEC0 !important;
}

body.mode_gifu #div_screen_department .button_card.button_card_additional.is_selected {
  background: linear-gradient(180deg, #34D399 0%, #10B981 45%, #059669 100%) !important;
  border-top: 1px solid #6EE7B7 !important;
  border-left: 1px solid #34D399 !important;
  border-right: 1px solid #047857 !important;
  border-bottom: 2px solid #065F46 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
}

/* 3. 空白調整セル（不可視） */
body.mode_gifu #div_screen_department .button_card.btn_dept_empty {
  visibility: hidden !important;
  pointer-events: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}