/* ****************************************************************************************************
   * カスタムCSS（フロント） — 旧 WordPress カスタマイザー「追加CSS」(DB) から移行
   * 2026-06-02 §5完遂: dept-* / recruit-* 等のカスタムスタイルを DB(wp-custom-css) から
   *   本テーマファイルへ集約し git 管理 SSoT 化。functions.php で site-wide enqueue。
   *   移行完了後は管理画面「外観 > カスタマイズ > 追加CSS」を空にすること。
   *   ↓ ここから旧「追加CSS」全文（バイト忠実・改変なし）
**************************************************************************************************** */

.recruit-wrapper,
.dept-wrapper {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    box-sizing: border-box;
}

.dept-wrapper {
    padding-bottom: 60px;
}

.recruit-breadcrumb,
.dept-breadcrumb {
    font-size: 14px;
    color: #008f78;
    margin-bottom: 20px;
}

h1.recruit-main-header,
h1.dept-main-header {
    background-color: #eff2f5;
    border-top: 5px solid #00a693;
    padding: 20px 25px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 30px 0;
    box-sizing: border-box;
    display: block;
}

.recruit-intro,
.dept-intro {
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.8;
    display: block;
}

h2.recruit-sub-header,
h2.dept-sub-header {
    background-color: #d1f4ec;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 45px;
    margin-bottom: 25px;
    border-left: none;
    box-sizing: border-box;
}

table.recruit-table,
table.dept-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 15px;
    border: none;
}

table.recruit-table th,
table.recruit-table td,
table.dept-table th,
table.dept-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
    box-sizing: border-box;
}

table.recruit-table th,
table.dept-table th {
    color: #00a693;
    background-color: #fcfcfc;
    width: 28%;
    font-weight: bold;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    table.recruit-table tr,
    table.dept-table tr {
        display: block;
        width: 100%;
        margin-bottom: 25px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    }
    table.recruit-table th,
    table.recruit-table td,
    table.dept-table th,
    table.dept-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    table.recruit-table th,
    table.dept-table th {
        background-color: #d1f4ec;
        color: #005a4e;
        padding: 12px 15px;
        white-space: normal;
        border-bottom: 1px solid #bce0d9;
    }
    table.recruit-table td,
    table.dept-table td {
        padding: 18px 15px;
        background-color: #fff;
    }
}

.recruit-list {
    margin: 5px 0 0 0;
    padding-left: 1.4em;
}
.recruit-list li {
    margin-bottom: 5px;
}
.recruit-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.recruit-tag {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 6px 12px;
    border: 1px solid #00a693;
    border-radius: 30px;
    font-size: 13px;
}
.salary-bold {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00a693;
    font-size: 1.05em;
}
.annotation {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}
.highlight-text {
    color: #00a693;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

h3.dept-sub-section-header {
    border-left: 3px solid #00a693;
    padding-left: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #005a4e;
    margin-top: 35px;
    margin-bottom: 15px;
    scroll-margin-top: 20px;
}

.dept-toc {
    margin-bottom: 40px;
}

.dept-toc-title {
    font-size: 15px;
    font-weight: bold;
    color: #005a4e;
    margin-bottom: 10px;
}

.dept-toc ol {
    list-style: decimal !important;
    padding-left: 1.5em !important;
    margin: 0;
}

.dept-toc ol li {
    list-style: decimal !important;
    display: list-item !important;
    margin-bottom: 6px;
    font-size: 14px;
}

.dept-toc ol ol {
    list-style: decimal !important;
    padding-left: 1.4em !important;
    margin-top: 4px;
}

.dept-toc ol ol li {
    list-style: decimal !important;
    display: list-item !important;
}

.dept-toc ol li a {
    color: #005a4e;
    text-decoration: none;
}

.dept-toc ol li a:hover {
    text-decoration: underline;
}

.dept-wrapper ul {
    list-style: disc !important;
    padding-left: 1.5em !important;
    margin-bottom: 15px;
}

.dept-wrapper ul li {
    list-style: disc !important;
    display: list-item !important;
    margin: 4px 0;
}

.dept-wrapper ol {
    list-style: decimal !important;
    padding-left: 1.5em !important;
    margin-bottom: 15px;
}

.dept-wrapper ol li {
    list-style: decimal !important;
    display: list-item !important;
    margin: 4px 0;
}

.dept-wrapper ul + p,
.dept-wrapper ol + p {
    margin-top: -10px;
    margin-bottom: 25px;
}

.dept-citation {
    font-size: 0.85rem;
    color: rgba(51, 51, 51, 0.55);
    margin-left: 2em;
    margin-top: 8px;
    margin-bottom: 4px;
    line-height: 1.6;
}

.dept-citation a {
    color: rgba(51, 51, 51, 0.55);
    text-decoration: underline;
}

.dept-source {
    font-size: 0.85rem;
    color: rgba(51, 51, 51, 0.55);
    margin-left: 2em;
    margin-top: 8px;
    line-height: 1.6;
}

.dept-source a {
    color: rgba(51, 51, 51, 0.55);
    text-decoration: underline;
}

.dept-nav {
    margin-top: 40px;
    font-size: 15px;
}

.dept-nav a {
    color: #00a693;
    text-decoration: none;
    font-weight: bold;
}

.dept-nav a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .dept-wrapper {
        padding-bottom: 40px;
    }

    h3.dept-sub-section-header {
        font-size: 15px;
    }

    .dept-citation,
    .dept-source {
        margin-left: 1em;
    }
}

/* ===== 引用ブロック（CSS-only アコーディオン・開閉アニメ両方向） ===== */
.dept-quote-box {
    background-color: #f8fbfa;
    padding: 10px 14px;
    margin: 0 0 6px 0.6em;
    border-radius: 2px;
}

.dept-quote-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.dept-quote-box label {
    cursor: pointer;
    display: block;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(51, 51, 51, 0.55);
    line-height: 1.5;
    text-align: left;
    user-select: none;
}

.dept-quote-box label::before {
    content: "\25B6";
    display: inline-block;
    color: #00a693;
    margin-right: 6px;
    font-size: 0.75em;
    transition: transform 0.25s ease;
}

.dept-quote-toggle:checked ~ label::before {
    transform: rotate(90deg);
}

.dept-quote-box label a {
    color: rgba(51, 51, 51, 0.55);
    text-decoration: underline;
}

.dept-quote-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
    margin-top: 0;
    opacity: 0;
}

.dept-quote-toggle:checked ~ .dept-quote-content {
    grid-template-rows: 1fr;
    margin-top: 8px;
    opacity: 1;
}

.dept-quote-content > blockquote {
    overflow: hidden;
    min-height: 0;
    background: none;
    border-left: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    color: rgba(51, 51, 51, 0.55);
    font-size: 12px;
    line-height: 1.5;
}

.dept-quote-content > blockquote p {
    margin: 0;
}

@media screen and (max-width: 768px) {
    .dept-quote-box {
        padding: 6px 9px;
        margin-left: 1em;
        font-size: 12px;
    }
    .dept-quote-content > blockquote {
        font-size: 12px;
    }
}

/* ----------------------------------------------------------------------------------------------------
   * ボタン
/* ------------------------------------------------------------------------------------------------- */

a.dept-btn,
a.dept-btn:link,
a.dept-btn:visited {
    display: inline-block;
    background-color: #00a693;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

a.dept-btn::after {
    content: "›";
    margin-left: 10px;
    font-weight: normal;
}

a.dept-btn:hover,
a.dept-btn:focus {
    background-color: #008f78;
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
}

/* ボタンを単独で配置するブロック（右寄せがデフォルト） */
.dept-btn-block {
    margin: 8px 0 56px;
    text-align: right;
}

.dept-btn-block.is-center { text-align: center; }
.dept-btn-block.is-left   { text-align: left; }

@media screen and (max-width: 768px) {
    .dept-btn-block {
        text-align: center;
        margin: 8px 0 36px;
    }
    .dept-btn-block a.dept-btn {
        display: block;
        padding: 12px 16px;
    }
 }

/* /department 目次 — 内科ブロック（v10・上下罫線でグルーピング） */
#page-nav .dept-nav-naika-block {
  margin: 0 20px !important;
  padding: 0 0 8px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e0e7e5 !important;
  width: auto !important;
}
#page-nav .dept-nav-naika-title {
  margin: 12px 0 0 0 !important;
  padding: 6px 0 9px 10px !important;
  background: transparent !important;
  color: #060606 !important;
  font-weight: bold !important;
  font-size: 14px !important;
  letter-spacing: 0.05em !important;
  border-top: 1px solid #e0e7e5 !important;
}
#page-nav .dept-nav-naika-title a {
  color: #060606 !important;
  text-decoration: none !important;
  display: inline-block !important;
}
#page-nav .dept-nav-naika-title a:hover {
  color: #19a283 !important;
  text-decoration: underline !important;
}

#page-nav ul.dept-nav-naika-sub {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  background: transparent !important;
  justify-content: flex-start !important;
}
#page-nav ul.dept-nav-naika-sub > li {
  width: 33% !important;
  font-weight: bold !important;
  font-size: 16px !important;
  padding: 0.5em 0 !important;
  position: relative !important;
  text-align: left !important;
}
#page-nav ul.dept-nav-naika-sub > li::before {
  display: none !important;
  content: none !important;
}
#page-nav ul.dept-nav-naika-sub > li > a {
  position: relative !important;
  display: block !important;
  text-align: left !important;
  padding-left: 2.25em !important;
  color: #19a283 !important;
}

@media (max-width: 768px) {
  #page-nav ul,
  #page-nav ul.dept-nav-naika-sub {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  #page-nav ul li,
  #page-nav ul.dept-nav-naika-sub > li {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 50% !important;
    max-width: 100% !important;
  }
  #page-nav ul li a,
  #page-nav ul.dept-nav-naika-sub > li > a {
    white-space: nowrap !important;
  }
  #page-nav .dept-nav-naika-block {
    margin: 0 10px !important;
  }
}


/* ****************************************************************************************************
   * 診療科ページ 図版（dept-figure）
   * 用途: 本文中の画像＋キャプション（例: 透析送迎の対象範囲図）。dept-wrapper 内で使用。
   * HTML: <figure class="dept-figure"><img ...><figcaption>...</figcaption></figure>
   * 2026-06-02 新設（/dialysis 送迎対象範囲図）。再利用可。
**************************************************************************************************** */

.dept-figure {
  margin: 16px 0 8px;
}

.dept-figure img {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.dept-figure figcaption {
  max-width: 680px;
  margin: 8px auto 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(6, 6, 6, 0.55);
  text-align: left;
}

@media screen and (max-width: 640px) {
  .dept-figure {
    margin: 12px 0 8px;
  }
}
