/* ============================================
   診療科・部門 ページCSS
   saikazo.org/department/ 完全再現
============================================ */

/* ========== ベース設定 ========== */
.sz-dept-wrapper {
    font-size: 1rem; /* rem基準 */
}

/* ========== カラー変数 ========== */
:root {
    --dept-primary: var(--color-primary);
    --dept-primary-light: var(--color-primary-light);
    --dept-accent: var(--color-accent);
    --dept-accent-coral: #f5a5a5;
    --dept-text: var(--color-text-main);
    --dept-text-light: var(--color-text-sub);
    --dept-text-muted: var(--color-text-muted);
    --dept-bg-cream: var(--color-bg-warm, #faf9f7);
    --dept-bg-gray: var(--color-bg-subtle);
    --dept-border: var(--color-border);
    --dept-border-light: var(--color-border-light);
    --dept-white: var(--color-surface);
}

/* ========== ページヒーロー ========== */
.sz-dept-hero {
    background: var(--dept-primary-light);
    padding: 80px 0 50px;
    position: relative;
}

.sz-dept-hero__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.sz-dept-hero__title {
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--dept-text);
    position: relative;
    padding-left: 30px;
    margin: 0;
}

.sz-dept-hero__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--dept-primary);
}

/* ========== セクション内ナビ（スティッキー） ========== */
.sz-dept-subnav {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: var(--dept-white);
    border-bottom: 1px solid var(--dept-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sz-dept-subnav__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.sz-dept-subnav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.sz-dept-subnav__item {
    flex-shrink: 0;
}

.sz-dept-subnav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    font-size: var(--font-size-sm);
    color: var(--dept-text);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.sz-dept-subnav__link::before {
    content: '▶';
    font-size: var(--font-size-xs);
    color: var(--dept-primary);
}

.sz-dept-subnav__link:hover,
.sz-dept-subnav__link.is-active {
    color: var(--dept-primary);
    border-bottom-color: var(--dept-primary);
    opacity: 1;
}

.sz-dept-subnav__link--accent {
    color: var(--dept-accent);
}

.sz-dept-subnav__link--accent::before {
    color: var(--dept-accent);
}

/* ========== メインレイアウト ========== */
.sz-dept-layout {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
}

.sz-dept-main {
    min-width: 0;
}

/* ========== 右サイドバー ========== */
.sz-dept-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sz-dept-sidebar__title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--dept-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dept-primary);
    position: relative;
    padding-left: 15px;
}

.sz-dept-sidebar__title::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--dept-primary);
    font-size: var(--font-size-xs);
}

.sz-dept-sidebar__nav {
    margin-bottom: 30px;
}

.sz-dept-sidebar__group {
    margin-bottom: 10px;
}

.sz-dept-sidebar__group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--dept-text);
    cursor: pointer;
    border-bottom: 1px solid var(--dept-border-light);
}

.sz-dept-sidebar__group-header::before {
    content: '→';
    margin-right: 8px;
    color: var(--dept-primary);
}

.sz-dept-sidebar__toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    color: var(--dept-primary);
    transition: transform 0.3s ease;
}

.sz-dept-sidebar__group.is-open .sz-dept-sidebar__toggle,
.sz-dept-sidebar__group-toggle[aria-expanded="true"] .sz-dept-sidebar__arrow {
    transform: rotate(180deg);
}

/* サイドバーグループトグル（テンプレート用） */
.sz-dept-sidebar__group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dept-border);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--dept-text);
    cursor: pointer;
    text-align: start;
}

.sz-dept-sidebar__arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--dept-primary);
    border-bottom: 2px solid var(--dept-primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.sz-dept-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.sz-dept-sidebar__group-toggle[aria-expanded="true"] + .sz-dept-sidebar__list {
    max-height: 1000px;
    opacity: 1;
}

.sz-dept-sidebar__item {
    border-bottom: 1px solid var(--dept-border-light);
}

.sz-dept-sidebar__item a {
    display: block;
    padding: 10px 0 10px 15px;
    font-size: var(--font-size-sm);
    color: var(--dept-text-light);
    position: relative;
}

.sz-dept-sidebar__item a::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--dept-text-muted);
}

.sz-dept-sidebar__item a:hover {
    color: var(--dept-primary);
    background: var(--dept-primary-light);
}

.sz-dept-sidebar__item--active a {
    color: var(--dept-primary);
    font-weight: 600;
    background: var(--dept-primary-light);
}

.sz-dept-sidebar__group-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 10px 0 10px 20px;
}

.sz-dept-sidebar__group.is-open .sz-dept-sidebar__group-list {
    display: block;
}

.sz-dept-sidebar__link {
    display: block;
    padding: 8px 0;
    font-size: var(--font-size-sm);
    color: var(--dept-text-light);
    position: relative;
    padding-left: 15px;
}

.sz-dept-sidebar__link::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--dept-text-muted);
}

.sz-dept-sidebar__link:hover,
.sz-dept-sidebar__link.is-active {
    color: var(--dept-primary);
    background: var(--dept-primary-light);
    opacity: 1;
}

/* サイドバー クイックリンク */
.sz-dept-sidebar__quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sz-dept-sidebar__quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.sz-dept-sidebar__quick-link:hover {
    border-color: var(--dept-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 1;
}

.sz-dept-sidebar__quick-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00a5a5;
    color: var(--dept-white);
    border-radius: 50%;
    margin-bottom: 10px;
}

.sz-dept-sidebar__quick-icon .material-symbols-outlined {
    font-size: 1.5rem;
}

.sz-dept-sidebar__quick-text {
    font-size: var(--font-size-xs);
    color: var(--dept-text);
    line-height: 1.4;
}

.sz-dept-sidebar__reserve {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sz-dept-sidebar__reserve:hover {
    border-color: var(--dept-primary);
    opacity: 1;
}

.sz-dept-sidebar__reserve-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dept-primary-light);
    color: var(--dept-primary);
    border-radius: 8px;
}

.sz-dept-sidebar__reserve-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--dept-text);
}

.sz-dept-sidebar__reserve-arrow {
    margin-left: auto;
    color: var(--dept-text-muted);
}

/* ========== セクション共通 ========== */
.sz-dept-section {
    margin-bottom: 60px;
}

.sz-dept-section__header {
    padding: 0 0 0.75rem;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--dept-primary);
}

.sz-dept-section__title {
    font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 500;
    color: var(--dept-primary);
    margin: 0;
}

.sz-dept-section__lead {
    font-size: var(--font-size-sm);
    color: var(--dept-accent);
    line-height: 1.8;
    margin-bottom: 40px;
}

.sz-dept-section__content {
    font-size: var(--font-size-sm);
    line-height: 2;
    color: var(--dept-text-light);
}

/* ========== ページ内リンク ========== */
.sz-dept-anchors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.sz-dept-anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 5px;
    font-size: var(--font-size-sm);
    color: var(--dept-text);
    transition: all 0.3s ease;
}

.sz-dept-anchor::before {
    content: '▶';
    font-size: var(--font-size-xs);
    color: var(--dept-primary);
    margin-right: 10px;
}

.sz-dept-anchor::after {
    content: '↓';
    color: var(--dept-text-muted);
}

.sz-dept-anchor:hover {
    border-color: var(--dept-primary);
    background: var(--dept-primary-light);
    opacity: 1;
}

/* ========== アコーディオン ========== */
.sz-dept-accordion {
    border-bottom: 1px dashed var(--dept-border);
}

.sz-dept-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
}

.sz-dept-accordion__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--dept-text);
}

.sz-dept-accordion__title::before {
    content: '●';
    color: var(--dept-primary);
    font-size: var(--font-size-xs);
}

.sz-dept-accordion__title--accent {
    color: var(--dept-primary);
}

.sz-dept-accordion__title--accent::before {
    display: none;
}

.sz-dept-accordion__title--accent .sz-dept-accordion__bar {
    width: 4px;
    height: 24px;
    background: var(--dept-primary);
    margin-right: 10px;
}

.sz-dept-accordion__toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sz-dept-accordion__toggle-line {
    width: 1px;
    height: 20px;
    background: var(--dept-border);
}

.sz-dept-accordion__toggle-icon {
    font-size: 1.25rem;
    color: var(--dept-primary);
    transition: transform 0.3s ease;
}

.sz-dept-accordion__toggle[aria-expanded="true"] .sz-dept-accordion__toggle-icon,
.sz-dept-accordion.is-open .sz-dept-accordion__toggle-icon {
    transform: rotate(45deg);
}

.sz-dept-accordion__content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 30px;
    font-size: var(--font-size-sm);
    line-height: 1.9;
    color: var(--dept-text-light);
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.sz-dept-accordion__toggle[aria-expanded="true"] + .sz-dept-accordion__content,
.sz-dept-accordion.is-open .sz-dept-accordion__content {
    max-height: 2000px;
    opacity: 1;
    padding: 0 0 30px 30px;
}

/* ========== 診療日程表 ========== */
.sz-dept-schedule {
    margin-bottom: 40px;
}

.sz-dept-schedule__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.sz-dept-schedule__table th,
.sz-dept-schedule__table td {
    padding: 15px 10px;
    text-align: start;
    border: 1px solid var(--dept-border);
}

.sz-dept-schedule__table thead th {
    background: var(--dept-primary);
    color: var(--dept-white);
    font-weight: 500;
}

.sz-dept-schedule__table tbody th {
    background: var(--dept-bg-gray);
    font-weight: 500;
}

.sz-dept-schedule__table tbody td {
    background: var(--dept-white);
}

.sz-dept-schedule__notes {
    margin-top: 20px;
    padding: 20px;
    background: var(--dept-bg-cream);
    border-radius: 8px;
}

.sz-dept-schedule__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--font-size-xs);
    color: var(--dept-text-light);
    margin-bottom: 10px;
}

.sz-dept-schedule__note:last-child {
    margin-bottom: 0;
}

.sz-dept-schedule__note::before {
    content: '●';
    color: #ff9800;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
    margin-top: 3px;
}

.sz-dept-schedule__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 8px;
    margin-top: 20px;
    font-size: var(--font-size-sm);
    color: var(--dept-text);
    transition: all 0.3s ease;
}

.sz-dept-schedule__link::after {
    content: '→';
    color: var(--dept-primary);
}

.sz-dept-schedule__link:hover {
    border-color: var(--dept-primary);
    opacity: 1;
}

/* ========== 医師紹介 ========== */
.sz-dept-doctors {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sz-dept-doctor {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--dept-border);
}

.sz-dept-doctor__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dept-primary-light);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.sz-dept-doctor__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sz-dept-doctor__info {
    flex: 1;
}

.sz-dept-doctor__positions {
    font-size: var(--font-size-xs);
    color: var(--dept-text-muted);
    margin-bottom: 5px;
}

.sz-dept-doctor__name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--dept-text);
}

.sz-dept-doctor__name-kana {
    font-size: var(--font-size-xs);
    color: var(--dept-text-muted);
    margin-left: 10px;
}

.sz-dept-doctor__toggle {
    font-size: 1.25rem;
    color: var(--dept-primary);
}

/* ========== よくご覧いただくページ ========== */
.sz-dept-popular {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--dept-border);
}

.sz-dept-popular__title {
    font-size: var(--font-size-lg);
    color: var(--dept-accent);
    margin-bottom: 30px;
}

.sz-dept-popular__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sz-dept-popular__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--dept-bg-cream);
    border-radius: 8px;
    font-size: var(--font-size-sm);
    color: var(--dept-text);
    transition: all 0.3s ease;
}

.sz-dept-popular__link::after {
    content: '→';
    color: var(--dept-primary);
}

.sz-dept-popular__link:hover {
    background: var(--dept-primary-light);
    opacity: 1;
}

/* ========== 一覧ページ用 ========== */
.sz-dept-list {
    padding: 60px 0;
}

.sz-dept-list__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.sz-dept-list__section {
    margin-bottom: 60px;
}

.sz-dept-list__header {
    margin-bottom: 30px;
}

.sz-dept-list__title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--dept-text);
}

.sz-dept-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.sz-dept-list__item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 5px;
    font-size: var(--font-size-sm);
    color: var(--dept-text);
    transition: all 0.3s ease;
}

.sz-dept-list__item:hover {
    border-color: var(--dept-primary);
    background: var(--dept-primary-light);
    opacity: 1;
}

.sz-dept-list__item::after {
    content: '→';
    margin-left: auto;
    color: var(--dept-primary);
}

/* ========== パンくずリスト ========== */
.sz-dept-breadcrumb {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 20px 40px;
}

.sz-dept-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-xs);
}

.sz-dept-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dept-text-muted);
}

.sz-dept-breadcrumb__item:not(:last-child)::after {
    content: '>';
    color: var(--dept-text-muted);
}

.sz-dept-breadcrumb__link {
    color: var(--dept-primary);
}

.sz-dept-breadcrumb__link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* ========== レスポンシブ (Mobile First) ========== */

/* Mobile base */
.sz-dept-layout {
    grid-template-columns: 1fr;
}

.sz-dept-sidebar {
    position: static;
    order: -1;
}

.sz-dept-sidebar__nav {
    display: none;
}

.sz-dept-hero {
    padding: clamp(5rem, 12vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.sz-dept-hero__title {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
}

.sz-dept-subnav__inner {
    padding: 0 15px;
}

.sz-dept-subnav__link {
    padding: 12px 15px;
    font-size: var(--font-size-xs);
}

.sz-dept-layout {
    padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem);
}

.sz-dept-anchors {
    grid-template-columns: 1fr;
}

.sz-dept-popular__grid {
    grid-template-columns: 1fr;
}

.sz-dept-sidebar__quick {
    grid-template-columns: 1fr;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .sz-dept-layout {
        grid-template-columns: 1fr 220px;
        gap: 32px;
        padding: 40px 32px;
    }

    .sz-dept-sidebar {
        position: sticky;
        top: 80px;
        order: 0;
    }

    .sz-dept-sidebar__nav {
        display: block;
    }

    .sz-dept-anchors {
        grid-template-columns: repeat(2, 1fr);
    }

    .sz-dept-popular__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .sz-dept-layout {
        grid-template-columns: 1fr 280px;
        gap: 60px;
        padding: 60px 40px;
    }

    .sz-dept-sidebar {
        position: sticky;
        top: 100px;
        order: 0;
    }

    .sz-dept-sidebar__nav {
        display: block;
    }

    .sz-dept-anchors {
        grid-template-columns: repeat(3, 1fr);
    }

    .sz-dept-popular__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== FAQ セクション ========== */
.sz-dept-faq {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sz-dept-faq__item {
    border: 1px solid var(--dept-border);
    border-radius: 8px;
    overflow: hidden;
}

.sz-dept-faq__question {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background: var(--dept-bg-cream);
    border: none;
    cursor: pointer;
    text-align: start;
}

.sz-dept-faq__q {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--dept-primary);
    color: var(--dept-white);
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.sz-dept-faq__text {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--dept-text);
}

.sz-dept-faq__toggle {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.sz-dept-faq__toggle::before,
.sz-dept-faq__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--dept-primary);
    transition: transform 0.3s ease;
}

.sz-dept-faq__toggle::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.sz-dept-faq__toggle::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.sz-dept-faq__question[aria-expanded="true"] .sz-dept-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.sz-dept-faq__answer {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.sz-dept-faq__question[aria-expanded="true"] + .sz-dept-faq__answer {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

.sz-dept-faq__a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--dept-accent);
    color: var(--dept-white);
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.sz-dept-faq__answer-text {
    flex: 1;
    font-size: var(--font-size-sm);
    line-height: 1.8;
    color: var(--dept-text-light);
}

/* ========== 特長・設備リスト ========== */
.sz-dept-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sz-dept-feature-list__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--dept-text-light);
}

.sz-dept-feature-list__check {
    color: var(--dept-primary);
    font-weight: bold;
}

.sz-dept-equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.sz-dept-equipment-list__item {
    padding: 10px 15px;
    background: var(--dept-bg-cream);
    border-radius: 5px;
    font-size: var(--font-size-sm);
    color: var(--dept-text);
}

.sz-dept-equipment-list__item::before {
    content: '•';
    color: var(--dept-primary);
    margin-right: 8px;
}

.sz-dept-diseases {
    font-size: var(--font-size-sm);
    line-height: 2;
    color: var(--dept-text-light);
}

/* ========== 一覧ページレイアウト ========== */
.sz-dept-list-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 60px 40px;
}

.sz-dept-list-section {
    margin-bottom: 60px;
}

.sz-dept-list-section__title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--dept-text);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.sz-dept-list-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: var(--dept-primary);
}

.sz-dept-list-section__desc {
    font-size: var(--font-size-sm);
    color: var(--dept-text-light);
    margin-bottom: 30px;
}

.sz-dept-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.sz-dept-list-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 8px;
    text-decoration: none;
    transition: transform var(--transition-hover), box-shadow var(--transition-hover), border-color var(--transition-hover);
}

.sz-dept-list-card:hover {
    border-color: var(--dept-primary);
    box-shadow: var(--shadow-card-hover);
    transform: var(--hover-lift-md);
}
.sz-dept-list-card:active {
    transform: var(--active-scale);
}

.sz-dept-list-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dept-primary-light);
    border-radius: 50%;
    color: var(--dept-primary);
}

/* ================================================================
   診療科アコーディオン（details/summary - JS不要）
   モバイルでデフォルト閉じ、lg(768px)以上で常時展開
   ================================================================ */
.sz-dept-accordion {
    border-block-start: 1px solid var(--color-border-light);
    padding-block: var(--spacing-md);
}

.sz-dept-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: var(--spacing-sm) 0;
    min-block-size: 3rem;
    list-style: none;
}

.sz-dept-accordion__summary::-webkit-details-marker {
    display: none;
}

.sz-dept-accordion__summary .sz-dept-section__title {
    margin: 0;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
}

.sz-dept-accordion__icon {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-hover);
    flex-shrink: 0;
}

.sz-dept-accordion[open] .sz-dept-accordion__icon {
    transform: rotate(180deg);
}

.sz-dept-accordion__body {
    padding-block-start: var(--spacing-sm);
}

/* lg（768px）以上：常時展開、サマリーを通常見出しスタイルに */
@media (min-width: 768px) {
    .sz-dept-accordion {
        border: none;
        padding-block: var(--spacing-lg);
    }

    .sz-dept-accordion__summary {
        pointer-events: none;
    }

    .sz-dept-accordion__icon {
        display: none;
    }

    .sz-dept-accordion__body {
        display: block;
    }
}

.sz-dept-list-card__icon svg {
    width: 28px;
    height: 28px;
}

.sz-dept-list-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sz-dept-list-card__content {
    flex: 1;
    min-width: 0;
}

.sz-dept-list-card__title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--dept-text);
    margin-bottom: 5px;
}

.sz-dept-list-card__subtitle {
    font-size: var(--font-size-xs);
    color: var(--dept-text-muted);
    margin-bottom: 8px;
}

.sz-dept-list-card__desc {
    font-size: var(--font-size-sm);
    color: var(--dept-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sz-dept-list-card__arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--dept-primary);
    transition: transform 0.3s ease;
}

.sz-dept-list-card:hover .sz-dept-list-card__arrow {
    transform: translateX(5px);
}

.sz-dept-list-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--dept-text-muted);
    font-size: var(--font-size-sm);
}

/* よくご覧いただくページ */
.sz-dept-popular {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--dept-bg-cream);
}

.sz-dept-popular__title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--dept-accent);
    margin-bottom: 30px;
    text-align: center;
}

.sz-dept-popular__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.sz-dept-popular__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: var(--dept-white);
    border: 1px solid var(--dept-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sz-dept-popular__link:hover {
    border-color: var(--dept-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.sz-dept-popular__icon {
    font-size: 1.25rem;
}

.sz-dept-popular__text {
    font-size: var(--font-size-sm);
    color: var(--dept-text);
}

/* ========== レスポンシブ対応 (Mobile First) ========== */
.sz-dept-list-container {
    padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem);
}

.sz-dept-list-grid {
    grid-template-columns: 1fr;
}

.sz-dept-list-section__title {
    font-size: var(--font-size-lg);
}

.sz-dept-popular {
    padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem);
}

.sz-dept-popular__grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .sz-dept-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sz-dept-popular__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sz-dept-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sz-dept-popular__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Wearable (≤279px): 診療科ページ最小表示 ========== */
@media (max-width: 279px) {
    /* サイドバー非表示 */
    .sz-dept-sidebar {
        display: none;
    }

    /* グリッド1列 */
    .sz-dept-list-grid,
    .sz-dept-popular__grid {
        grid-template-columns: 1fr;
        gap: var(--space-watch-sm, 0.25rem);
    }

    /* コンテナパディング縮小 */
    .sz-dept-list-container {
        padding: var(--space-watch-md, 0.5rem);
    }

    .sz-dept-list-section {
        margin-bottom: var(--space-watch-md, 0.5rem);
    }

    /* カードコンパクト */
    .sz-dept-card {
        padding: var(--space-watch-sm, 0.25rem);
    }

    .sz-dept-card__icon {
        display: none;
    }

    .sz-dept-card__name {
        font-size: var(--font-watch-sm, 0.75rem);
    }

    .sz-dept-card__desc {
        font-size: var(--font-watch-xs, 0.625rem);
    }

    /* スケジュールテーブル非表示 */
    .sz-dept-schedule {
        display: none;
    }

    /* ドクター写真非表示 */
    .sz-dept-doctor__photo {
        display: none;
    }

    .sz-dept-doctor__name {
        font-size: var(--font-watch-sm, 0.75rem);
    }
}


