/*
Theme Name: resilience nakai
Theme URI:
Template: lightning
Description:resilience nakai
Author:resilience nakai
Tags:
Version: 0.6.1
*/

.site-header {
    margin-bottom: 10px;
}

.global-nav-list li {
    margin: 0;
    list-style: none;
    line-height: 1.4;
    font-size: 14px;
    position: relative;
}

.global-nav-list .sub-menu li a:focus-within, .global-nav-list .sub-menu li a:hover {
    background-color: #17a2b8;
}

.page-header-title,
h1.page-header-title {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 1.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    text-shadow:0 1px 3px rgba(255,255,255,0.9),
    0 0 12px rgba(255,255,255,0.6);
	padding-left:10px;
}

.page-header-subtext {
	padding-left:20px;
	color: #757575;
}

/* ===================================================
   滋賀歯学会メニュー：存在感を高めるサイズアップ版
   =================================================== */

/* 1. PC表示 (992px以上) */
@media (min-width: 992px) {
    .menu-item.highlight-blue {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(to bottom, #3e88e1, #246ec7) !important;
        border-radius: 4px !important;
        margin: 2px 8px !important; /* 横の余白を少し増やして強調 */
    }
    .menu-item.highlight-blue a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* 余白と文字サイズを強調 */
        padding: 14px 30px !important; 
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        line-height: 1 !important;
    }
}

/* 2. スマホ・タブレット表示 (991px以下) */
@media (max-width: 991px) {
    .menu-item.highlight-blue {
        background: linear-gradient(to bottom, #3e88e1, #246ec7) !important;
        border-radius: 4px !important;
        margin: 10px 15px !important;
        display: block !important;
    }
    .menu-item.highlight-blue a {
        display: block !important;
        /* スマホでも大きく押しやすく */
        padding: 16px 25px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        text-align: left !important;
    }
}

/* 3. ホバー時の処理 */
.menu-item.highlight-blue:hover,
.menu-item.highlight-blue:hover a {
    background: linear-gradient(to bottom, #246ec7, #1d58a0) !important;
    border-radius: 4px !important;
}

/* ヒーロー上部の余白 */
@media (min-width: 992px) {
    .site-body {
        padding: 1rem 0 1rem;
    }
}

/* 明朝体アクセント */
.mincho-title {
    font-size: 32px;
    font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .mincho-title {
        font-size: 26px;
    }
}

.mincho-sub {
    font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ==========================================
   3PR ブロック（カラム・グループ）用の枠ごとホバーCSS
   ========================================== */

/* 通常時のブロックの状態 */
.omfs-hover-card {
  background: #ffffff !important;
  /* 初期状態の枠線：清潔感のある薄いグレー */
  border: 1px solid #e2e8f0 !important;
  
  /* 初期状態の影：ごく軽い自然な黒系の影 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
  
  /* 滑らかな動きの再現 */
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* マウスオン（ホバー）時のエフェクト */
.omfs-hover-card:hover {
  /* ① ブロック全体を上に4px滑らかに浮き上がらせる */
  transform: translateY(-4px) !important;
  
  /* ② 枠線の色を「濃いグレー」へ引き締め、選択されていることを強調 */
  border-color: #94a3b8 !important;
  
  /* ③ 青みは一切入れず、標準的な黒〜グレーの影をフワッと深くして立体感を演出 */
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  
  /* カーソルを指マークに */
  cursor: pointer;
}

/* 口腔外科疾患 背景 */
.CLINICAL-INDICATIONS-background {
  background: #ffffff !important;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 10%, #959fb3 100%) !important;
}

/* =====================================
   医局員紹介
===================================== */

.staff-card{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:30px;
  width:100%;
  margin-bottom:60px;
  align-items:start;
}

.staff-photo{
  width:240px;
  height:160px;
  border:1px solid #ddd;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.staff-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.no-photo{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#f5f7fa 0%,#e4e8f0 100%);
}

.no-photo-inner{
  text-align:center;
}

.no-photo-logo{
  display:block;
  font-weight:bold;
  color:#003366;
  letter-spacing:.1em;
  margin-bottom:8px;
}

.no-photo-text{
  display:block;
  color:#666;
  font-size:.85rem;
}

.staff-content{
  width:100%;
  min-width:0;
}

.staff-name{
  background:#003366;
  color:#fff;
  text-align:center;
  padding:18px;
  font-size:1.6rem;
  font-weight:700;
  border-radius:8px 8px 0 0;
}

.staff-name ruby{
  ruby-align:center;
}

.staff-name rt{
  font-size:.55em;
}

.staff-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.staff-table th{
  width:35%;
  background:#f5f7fa;
  text-align:left;
  font-weight:600;
  font-size:1rem;
  vertical-align:top !important;
}

.staff-table td{
  font-size:1rem;
  line-height:1.8;
}

.staff-list{
  margin:0;
  padding-left:20px;
}

.staff-list li{
  margin-bottom:4px;
}

/* タブレット */

@media (max-width:1024px){

  .staff-card{
    grid-template-columns:1fr;
  }

  .staff-photo{
    width:350px;
    height:233px;
    margin:0 auto;
  }

}

/* スマホ */

@media (max-width:767px){

  .staff-photo{
    width:280px;
    height:186px;
  }

  .staff-name{
    font-size:1.2rem;
  }

  .staff-table,
  .staff-table tbody,
  .staff-table tr,
  .staff-table th,
  .staff-table td{
    display:block;
    width:100%;
  }

  .staff-table th{
    border-bottom:none;
  }

}

/* 写真なしはタブレット・スマホで非表示 */

@media (max-width:1024px){

  .staff-photo.no-photo{
    display:none;
  }

}

/* =====================================
   関連病院
===================================== */

.hospital-card {
  background: #fbfbfb;
  border: 1px solid #e1e4e8;
  border-left: 5px solid #003366; /* 左端のラインで視覚的アクセント */
  padding: 20px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.hospital-cert {
  display: inline-block;
  font-size: 0.85rem;
  background: #f0f4f8;
  color: #4a5568;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* =====================================
   発表・論文案内
===================================== */

.card-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================================
   当科について　表
===================================== */
.table-profile {
    width: 80%;
    margin: 0 auto;
}

.table-profile table th {
    background-color: #a9a9a9;
}

/* =====================================
   医療機関の皆様へ
===================================== */
.section-title-oralsurgery {
    position: relative;
    border-left: 4px solid #1a365d;
    padding-left: 20px;
    padding-bottom: 2px;
    margin-bottom: 40px;
}

.section-title-oralsurgery::before {
    content: "";
    position: absolute;
    top: 0;
    left: -4px;
    width: 100px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(26, 54, 93, 0.04) 0%,
        rgba(26, 54, 93, 0) 100%
    );
    pointer-events: none;
}

.section-title-oralsurgery h3 {
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcdc;
    color: #1a365d;
    line-height: 1.4;
}

.oralsurgery-text-width80 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.oralsurgery-text-width90 {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================
   研修医・学生の皆様へ
===================================== */
@media (max-width: 781px) {
    .sp-hide {
        display: none !important;
    }
}

h3.h3-line-right {
    text-align: right !important;
    border-bottom: none !important;
}

h3.h3-line-right {
    text-decoration: underline;
    text-decoration-color: #999;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}