/* 
===================================
基本設定 / Reset
===================================
*/
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500&family=Noto+Sans+JP:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "游ゴシック Medium", "Yu Gothic Medium", YuGothic, sans-serif;
    color: #0D0D0D;
    line-height: 1.6;
    font-size: 16px;
    width: 100%;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #4BA6A6;
    transition: color 0.3s;
}

a:hover {
    color: #7ED9D0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 
===================================
共通スタイル
===================================
*/
.section-title {
    font-family: "游ゴシック", "Yu Gothic", YuGothic, "游ゴシック体", sans-serif;
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    color: #0D0D0D;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #595959;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 40%;
    height: 1px;
    background: #595959;
}

.en-title {
    display: block;
    font-size: 14px;
    color: #595959;
    margin-top: 5px;
    font-weight: normal;
}

/* 
===================================
ヘッダー
===================================
*/
.site-header {
    padding: 0 0 15px;
}

#top {
    transition: all 0.3s ease;
    background-color: #fff;
    z-index: 1000;
    box-shadow: none !important;
}

#top.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    animation: slideDown 0.3s ease;
}

#top .container {
    display: flex;
    align-items: center;
}

/* ロゴエリア */
.logo-area {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-600px);
    z-index: 1001;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 0 0 15px 15px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    justify-content: center;
}

.logo img {
    width: 200px;
    height: auto;
}

.sticky-logo {
    display: none;
    margin-right: 20px;
}

.sticky-logo img {
    width: 250px;
    vertical-align: middle;
}

#top.sticky .sticky-logo {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ヘッダー上部 */
.header-top {
    position: relative;
    background-color: #fff;
    padding: 20px 0;
}

.header-border {
    height: 5px;
    width: 100%;
    background-color: #7ED9D0;
    position: absolute;
    top: 0;
    left: 0;
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 200px;
}

.header-contact {
    text-align: right;
}

.clinic-title {
    margin-bottom: 10px;
}

.clinic-title h1 {
    font-size: 16px;
    font-weight: normal;
    color: #0D0D0D;
    text-align: right;
}

.tel {
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    font-weight: normal;
    color: #4BA6A6;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
}

.tel:before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #4BA6A6;
    margin-right: 8px;
}

.hours {
    font-size: 14px;
    color: #595959;
}

/* ヘッダーナビゲーション */
header {
    background-color: #fff;
    border-bottom: none !important;
}

.header-menu {
    padding-left: 200px;
    flex-grow: 1;
}

.header-menu ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    letter-spacing: -0.02em;
}

.header-menu li {
    margin: 0 20px;
}

.header-menu li:last-child {
    margin-right: 0;
}

.header-menu a {
    color: #595959;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    display: inline-block;
    letter-spacing: 0.5px;
}

.header-menu a:hover {
    color: #4BA6A6;
}

/* 
===================================
メインビジュアル
===================================
*/
.main-visual {
    width: 100%;
    height: 530px;
    position: relative;
    margin-top: -1px;
    margin: 0 auto;
}

.slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide-inner {
    width: 100%;
    height: 100%;
    transition: transform 5s ease, opacity 1s ease;
    opacity: 0;
    transform: scale(1.0);
}

.slide-inner.active {
    opacity: 1;
    transform: scale(1.1);
}

.slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.thumbnails {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    z-index: 10;
}

.thumbnail {
    width: 80px;
    height: 60px;
    margin-left: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #4BA6A6;
    transform: scale(1.1);
}

/* 
===================================
お知らせと診療時間
===================================
*/
.info-hours-section {
    padding: 70px 0;
}

.info-hours-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-block {
    width: 65%;
}

.hours-block {
    width: 32%;
}

/* お知らせ */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #ddd;
}

.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-list .date {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    background-color: transparent;
    color: #333;
    font-weight: normal;
    padding: 3px 0;
    margin-right: 10px;
}

.category {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
}

.category.notice {
    background-color: #4BA6A6;
}

.category.holiday {
    background-color: #D9A0AF;
}

.category.important {
    background-color: #e74c3c;
}

.news-list .title {
    font-size: 20px;
    font-weight: normal;
    display: block;
    margin-bottom: 10px;
    color: #4BA6A6;
}

.news-list .content {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.news-list .more {
    color: #D9A0AF;
    font-size: 16px;
    position: relative;
    padding-right: 15px;
}

.news-list .more::after {
    content: "→";
    position: absolute;
    right: 0;
    transition: transform 0.3s;
}

.news-list .more:hover::after {
    transform: translateX(5px);
}

.past-news {
    text-align: right;
    margin-top: 20px;
}

.past-news a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f8f8f8;
    color: #595959;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.past-news a:hover {
    background-color: #efefef;
}

/* 診療時間 */
.hours-table {
    width: 100%;
    min-width: 320px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.hours-table th, .hours-table td {
    padding: 12px 5px;
    text-align: center;
    font-size: 16px;
    white-space: nowrap;
}

.hours-table td {
    font-family: 'Quicksand', sans-serif;
}

.hours-table th {
    background-color: #4BA6A6;
    color: #fff;
    font-weight: normal;
}

.hours-table th:first-child {
    background-color: #3d8a8a;
}

.hours-table tr:nth-child(odd) {
    background-color: #f8f8f8;
}

.hours-table tr:nth-child(even) {
    background-color: #fff;
}

.hours-table td:first-child {
    background-color: #eaf8f7;
    font-weight: normal;
    color: #4BA6A6;
}

.hours-note {
    font-size: 16px;
    color: #595959;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}
.hours-note02 {
    text-decoration: underline;
    font-size: 16px;
    color: #595959;
    margin-top:5px;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

/* 
===================================
ごあいさつ
===================================
*/
.greeting-section {
    padding: 70px 0;
    background-color: #f3f9f9;
}

.greeting-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.greeting-text {
    flex: 1;
}

.greeting-text h3 {
    font-size: 28px;
    color: #4BA6A6;
    margin-bottom: 30px;
    font-weight: normal;
    position: relative;
    text-align: left;
    padding-bottom: 15px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(75, 166, 166, 0.3);
}

.greeting-text h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40%;
    height: 3px;
    background: linear-gradient(to right, #4BA6A6, rgba(75, 166, 166, 0.1));
}

.greeting-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.greeting-image {
    width: 40%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.greeting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.doctor-name {
    text-align: right;
    font-size: 18px;
    margin-top: 30px;
}

.doctor-position {
    color: #595959;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

/* 
===================================
診療科目セクション（新）
===================================
*/
.departments-section {
    padding: 70px 0;
    background-color: #f6faf6;
    background-image: linear-gradient(to bottom, #f6faf6, #f9fcf9);
}

.departments-wrapper {
    display: none;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.department-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
}

.department-card h3 {
    font-size: 24px;
    color: #4BA6A6;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.department-card h3:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 36px;
    margin-right: 15px;
    color: #4BA6A6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(126, 217, 208, 0.15);
    border-radius: 50%;
}

/* 診療科目アイコン設定 */
.department-card:nth-of-type(1) h3:before {
    content: "\f0fa"; 
}

.department-card:nth-of-type(2) h3:before {
    content: "\f787"; 
}

.department-card:nth-of-type(3) h3:before {
    content: "\f004";
}

.department-card:nth-of-type(4) h3:before {
    content: "\e1d7";
}

.department-card:nth-of-type(5) h3:before {
    content: "\f461"; 
}

/* 英語名のスタイル改良 */
.dept-en {
    display: inline-block;
    font-size: 13px;
    color: #666;
    font-weight: 400;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
    margin-left: 15px;
    padding: 3px 10px;
    border-radius: 20px;
    background-color: rgba(126, 217, 208, 0.1);
    vertical-align: middle;
    text-transform: uppercase;
    position: relative;
    top: -1px;
}

/* 
===================================
ドクター紹介
===================================
*/

.doctors-section {
    padding: 70px 0;
    background-color: #f1f8f6;
}

.department-group {
    margin-bottom: 50px;
}

.department-heading {
    font-size: 26px;
    color: #4BA6A6;
    padding: 15px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    font-weight: normal;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #4BA6A6;
}

.department-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(126, 217, 208, 0.15);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4BA6A6;
}

.department-icon::before {
    content: "\f0fa";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
}

.department-icon.skin::before {
    content: "\f461";
}

.doctors-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.doctors-container.dermatology {
    grid-template-columns: 1fr;
    max-width: calc(50% - 15px);
}

.doctor-profile {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-header {
    background: linear-gradient(135deg, #4BA6A6, #7ED9D0);
    padding: 25px;
    color: #fff;
    position: relative;
}

.doctor-title-wrap {
    position: relative;
    z-index: 2;
}

.doctor-header::before {
    content: "\f2bd"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 100px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 1;
}

.doctor-tag {
    display: inline-block;
    background-color: #D9A0AF;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    margin-left: 10px;
    font-size: 14px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.doctor-profile-name {
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: normal;
}

.doctor-profile-kana {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.doctor-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

/* 情報アイテム */
.doctor-info-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.doctor-info-title {
    font-size: 16px;
    color: #4BA6A6;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eaeaea;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.doctor-info-title::before {
    content: "▶";
    margin-right: 8px;
    color: #D9A0AF;
    font-size: 10px;
}

.doctor-info-text {
    margin: 0;
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.6;
}

.doctor-info-list {
    list-style: none;
    padding-left: 18px;
    margin: 0;
    flex-grow: 1;
}

.doctor-info-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.5;
}

.doctor-info-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #D9A0AF;
}

.doctors-container.dermatology .doctor-info-grid {
    flex-grow: 1;
}

.doctor-qualification {
    display: flex;
    flex-direction: column;
}

.doctor-qualification .doctor-info-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 
===================================
アクセス
===================================
*/
.access-section {
    padding: 70px 0;
    background-color: #f8f8f8;
}

.access-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.map {
    width: 60%;
    height: 0;
    padding-bottom: 70%;
    position: relative;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* アクセス改良 */
.access-info {
    width: 40%;
    padding: 30px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.access-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4BA6A6;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-weight: normal;
}

.access-info p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

.access-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4BA6A6;
    background-color: #f8f8f8;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: normal;
}

.access-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.access-info li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 16px;
}

.access-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 20px;
    color: #D9A0AF;
    top: -3px;
}

.access-logo {
    text-align: center;
    margin-bottom: 30px;
    margin-top: auto;
}

.access-logo img {
    max-width: 200px;
    height: auto;
}

.access-tel {
    font-family: 'Quicksand', sans-serif;
    font-size: 28px;
    color: #4BA6A6;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    display: block;
    position: relative;
    padding: 10px 0;
}

.access-tel:before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #4BA6A6;
}

.access-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.access-hours-table th, .access-hours-table td {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.access-hours-table th {
    color: #595959;
    font-weight: normal;
    border-bottom: 2px solid #595959;
}

.access-hours-table td {
    font-family: 'Quicksand', sans-serif;
}

.access-hours-title {
    font-size: 18px;
    color: #595959;
    text-align: center;
    margin-bottom: 10px;
    font-weight: normal;
}

/* 
===================================
フッター
===================================
*/
footer {
    background-color: #f8f8f8;
    color: #666;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 12px;
}

.to-top {
    width: 50px;
    height: 50px;
    background-color: #4BA6A6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background-color: #7ED9D0;
}

.to-top a {
    color: #fff;
    font-size: 24px;
}

/* 
===================================
アニメーション設定
===================================
*/
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.pop-in {
    animation: popIn 0.6s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 
===================================
レスポンシブ対応
===================================
*/
@media (max-width: 1200px) {
    .logo-area {
        left: 15px;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .logo-area {
        width: 200px;
    }
    
    .logo img {
        width: 150px;
    }
    
    .header-top-inner, .header-menu {
        padding-left: 220px;
    }
    
    .header-menu li {
        margin: 0 15px;
    }
    
    .header-top-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .info-block, .hours-block {
        width: 100%;
    }
    
    .hours-block {
        margin-top: 50px;
    }
    
    .hours-table {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .logo-area {
        position: static;
        width: 100%;
        border-radius: 0;
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }
    
    .logo img {
        width: 200px;
    }
    
    .header-top-inner, .header-menu {
        padding-left: 0;
    }
    
    .clinic-title h1 {
        text-align: center;
    }
    
    .header-menu {
        width: 100%;
        display: block;
    }
    
    .header-menu ul {
        justify-content: center;
        flex-wrap: wrap;
        display: flex;
        width: 100%;
    }
    
    .header-menu li {
        margin: 5px 10px;
        display: inline-block;
    }
    
    .main-visual {
        height: 400px;
    }
    
    .site-header {
        position: static;
    }
    
    nav {
        display: none;
    }
    
    header {
        background-color: #fff;
        padding: 10px 0;
        width: 100%;
        display: block;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .department-card h3 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dept-en {
        margin-left: 0;
        margin-top: 8px;
        font-size: 12px;
        display: inline-block;
    }
    
    .departments-wrapper {
        flex-direction: column;
    }
    
    .departments-list {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .departments-image {
        width: 100%;
        height: 250px;
    }
    
    .doctor-profile {
        flex-direction: column;
    }
    
    .doctor-image {
        width: 100%;
        height: 300px;
    }
    
    .map, .access-info {
        width: 100%;
    }
    
    .greeting-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .greeting-text {
        order: 2;
    }
    
    .greeting-image {
        width: 100%;
        max-width: 400px;
        max-height: 250px;
        margin: 0 auto;
        order: 1;
    }
}

@media (max-width: 480px) {

    .sticky-logo {
        display: none;
    }

    .tel {
        font-size: 22px;
    }
    
    .hours {
        font-size: 14px;
    }
    
    .main-visual {
        height: 300px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .news-list .title {
        font-size: 18px;
    }
    
    .doctor-info {
        padding: 20px;
    }
    
    .greeting-text h3 {
        font-size: 22px;
        text-align: center;
    }
    
    .greeting-text h3:after {
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
    }
    
    .doctor-name {
        text-align: center;
    }
}

/* セクション背景テキスト */
.greeting-section, .departments-section, .doctors-section, .access-section, .info-hours-section {
    position: relative;
    overflow: hidden;
}

.greeting-section::before, 
.departments-section::before, 
.doctors-section::before, 
.access-section::before,
.info-hours-section::before {
    font-family:Arial, Helvetica, sans-serif !important;
    content: attr(data-bg-text);
    position: absolute;
    top: 5%;
    right: 0%;
    transform: translateY(-50%);
    font-size: 10vw; 
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    white-space: nowrap;
    z-index: 0;
    letter-spacing: -0.05em;
    pointer-events: none;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .departments-section::before {
        font-size: 10vw; 
        top: 2%;
    }
}

/* 
===================================
お知らせ一覧・詳細ページ共通スタイル
===================================
*/

/* パンくずリスト */
.breadcrumb {
    background-color: #f8f8f8;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.breadcrumb-list li {
    font-size: 14px;
    color: #595959;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb-list a {
    color: #4BA6A6;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: #7ED9D0;
}

/* 
===================================
お知らせ一覧ページスタイル
===================================
*/
.news-list-section {
    padding: 50px 0 70px;
    position: relative;
}

/* カテゴリーフィルター */
.news-filter {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.news-filter ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.news-filter li {
    border-radius: 5px;
}

.news-filter a {
    display: inline-block;
    padding: 8px 20px;
    color: #FFFFFF;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.news-filter a:hover {
    background-color: #999;
}

.news-filter a.active {
    background-color: #4BA6A6;
    color: #fff;
}

.news-filter .active {
    font-weight: bold !important;
}

.news-filter .all {
    background-color: #7ED9D0;
    color: #fff;
}

.news-filter .notice {
    background-color: #4BA6A6;
    color: #fff;
}
.news-filter .holiday {
    background-color: #D9A0AF;
    color: #fff;
}
.news-filter .important {
    background-color: #e74c3c;
    color: #fff;
}

/* ニュースリスト */
.news-list.full-list {
    margin-bottom: 40px;
}

.news-list.full-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #ddd;
}


.news-item .news-more {
    text-align: right;
}

.more-link {
    display: inline-block;
    font-size: 13px;
    color: #0056b3;
    text-decoration: none;
}

.more-link:after {
    content: '→';
    margin-left: 3px;
}

.more-link:hover {
    text-decoration: underline;
}


/* ホバーアニメーション削除 */

.news-list.full-list a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ニュースリストのタイトル */
.news-list.full-list .title {
    color: #4BA6A6;
    font-size: 20px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-list.full-list a:hover .title {
    color: #7ED9D0;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f8f8;
    color: #595959;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination li.active a {
    background-color: #4BA6A6;
    color: #fff;
}

.pagination a:hover {
    background-color: #eee;
}

/* 
===================================
お知らせ詳細ページスタイル
===================================
*/
.news-detail-section {
    padding: 50px 0 70px;
    position: relative;
}

/* 記事ヘッダー */
.news-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.news-article-title {
    font-size: 28px;
    color: #4BA6A6;
    line-height: 1.4;
    font-weight: 500;
}

/* 記事コンテンツ */
.news-article-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.news-article-content p {
    margin-bottom: 20px;
}

.news-article-content h3 {
    font-size: 22px;
    color: #4BA6A6;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: normal;
}

.news-article-content ul {
    list-style: none;
    margin: 15px 0;
    padding-left: 20px;
}

.news-article-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.news-article-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4BA6A6;
    font-size: 18px;
}

/* 休診情報スタイル */
.holiday-info {
    background-color: #fff2f5;
    border: 1px solid #ffe5ea;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.holiday-info h3 {
    color: #D9A0AF;
    border-bottom: 1px dotted #D9A0AF;
    margin-top: 0;
}

.holiday-period {
    font-size: 20px;
    text-align: center;
    color: #333;
    font-weight: 500;
    margin: 15px 0 0;
}

/* 緊急時情報スタイル */
.emergency-info {
    background-color: #f5f5f5;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.emergency-info h3 {
    color: #595959;
    border-bottom: 1px dotted #595959;
    margin-top: 0;
}

/* シェアボタン */
.news-share {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-bottom: 40px;
}

.share-title {
    font-size: 16px;
    color: #595959;
    margin-bottom: 15px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
}

.share-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f8f8;
    color: #595959;
    font-size: 20px;
    transition: all 0.3s;
}

.share-buttons a:hover {
    background-color: #4BA6A6;
    color: #fff;
}

/* 前後の記事ナビゲーション */
.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.prev-link, .next-link, .back-link {
    display: flex;
    flex-direction: column;
    max-width: 200px;
}

.back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #eee;
}

.prev-link, .next-link {
    flex: 1;
}

.next-link {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: #595959;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 14px;
    color: #4BA6A6;
    transition: color 0.3s;
}

.prev-link:hover .nav-title, .next-link:hover .nav-title {
    color: #7ED9D0;
}

.next-link.disabled, .prev-link.disabled {
    opacity: 0.5;
    cursor: default;
}

.next-link.disabled .nav-title, .prev-link.disabled .nav-title {
    color: #999;
}

/* 関連記事 */
.related-news {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.related-title {
    font-size: 22px;
    color: #4BA6A6;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: normal;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ddd;
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s;
}

.related-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.related-post-title {
    font-size: 16px;
    color: #4BA6A6;
    font-weight: normal;
    transition: color 0.3s;
}

.related-list a:hover .related-post-title {
    color: #7ED9D0;
}

/* 
===================================
レスポンシブ対応
===================================
*/
@media (max-width: 768px) {
    .news-filter ul {
        justify-content: center;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .prev-link, .next-link, .back-link {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .back-link {
        order: -1;
        margin: 10px 0;
        padding: 10px 0;
    }
    
    .next-link {
        text-align: center;
    }
    
    .news-article-title {
        font-size: 24px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .news-list.full-list .title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .news-filter a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .news-article-title {
        font-size: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .related-news {
        padding: 20px;
    }
}

/* 20250519追加 レスポンシブ対応 */
@media (max-width: 992px) {
    .doctors-container, .doctors-container.dermatology {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .doctor-info-grid {
        grid-template-columns: 1fr;
    }
    
    .department-heading {
        font-size: 22px;
    }
    
    .doctor-profile-name {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .doctor-header {
        padding: 20px 15px;
    }
    
    .doctor-content {
        padding: 20px 15px;
    }
    
    .doctor-header::before {
        font-size: 80px;
        right: 10px;
    }
}

