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

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: #fffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav li {
    position: relative;
}

.nav li:not(:last-child)::after {
    content: '|';
    color: #e91e63;
    margin: 0 1rem;
    font-weight: 300;
    opacity: 0.6;
}

.nav a {
    text-decoration: none;
    color: #e91e63;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #fff;
    background: #e91e63;
    border-color: #e91e63;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* メインビジュアル */
.hero {
    background: url('../images/1.jpg') center/contain no-repeat;
    background-size: contain;
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    min-height: 500px;
}

/* ホーム以外のページのヒーローセクション */
body:not(.home) .hero {
    background: url('../images/1.jpg') center/cover no-repeat;
    background-size: cover;
    padding: 60px 0 40px;
    min-height: 200px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3) 0%, rgba(248, 187, 217, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* メインコンテンツ */
.main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e91e63;
}

/* クリニック情報 */
.clinic-info {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.note {
    background: #f0f8ff;
    padding: 1rem;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* 診療時間 */
.schedule {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.schedule-table th {
    background: #e91e63;
    color: white;
    font-weight: 500;
}

.schedule-table td:first-child {
    background: #f5f5f5;
    font-weight: 500;
}

.available {
    color: #4caf50;
    font-weight: bold;
}

.closed {
    color: #f44336;
    font-weight: bold;
}

.schedule-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* サービス */
.services {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.service-content h3 {
    color: #e91e63;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-content p {
    line-height: 1.6;
}

/* 医療連携 */
.medical-cooperation {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cooperation-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cooperation-item img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.cooperation-details h3 {
    color: #e91e63;
    margin-bottom: 1rem;
}

.cooperation-details ul {
    list-style: none;
}

.cooperation-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cooperation-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #e91e63;
    font-weight: bold;
}

/* 症例数 */
.case-statistics {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.statistics-content {
    text-align: center;
}

.statistics-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* サイドバー */
.sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 100;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #e91e63;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 1rem;
}

.hours p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.social-links h3 {
    color: #e91e63;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(225, 30, 99, 0.2);
}

.social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(225, 30, 99, 0.3);
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #a61e69 100%);
}

.social-icons i {
    width: 24px;
    font-size: 1.5rem;
    color: #fff;
}

/* フッター */
.footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #e91e63;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.template-credit {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* ページトップボタン */
.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.page-top:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

/* アクセスページのスタイル */
.access-info {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.access-table {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.access-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.access-label {
    min-width: 120px;
    font-weight: bold;
    color: #e91e63;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.access-value {
    flex: 1;
    line-height: 1.6;
}

.access-value ul {
    margin: 0;
    padding-left: 1.5rem;
}

.access-value li {
    margin-bottom: 0.5rem;
}

/* info.htmlページのスタイル */
.greeting {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.greeting-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.director-photo {
    width: 300px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.greeting-text {
    flex: 1;
    line-height: 1.7;
}

.greeting-text p {
    margin-bottom: 1.5rem;
}

.signature {
    text-align: right;
    font-weight: bold;
    color: #e91e63;
    margin-top: 2rem !important;
}

.profile {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.profile-content ul {
    list-style: none;
    padding-left: 0;
}

.profile-content>ul>li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    position: relative;
    padding-left: 1.5rem;
}

.profile-content>ul>li::before {
    content: '●';
    color: #e91e63;
    position: absolute;
    left: 0.5rem;
    top: 1rem;
}

.profile-content ul ul {
    margin-top: 0.5rem;
    padding-left: 0.8rem;
}

.profile-content ul ul li {
    margin-bottom: 0.5rem;
}

.qualifications {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.qual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.qual-card {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.qual-card h3 {
    color: #e91e63;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.qual-card ul {
    list-style: none;
    padding-left: 0;
}

.qual-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.qual-card li::before {
    content: '✓';
    color: #e91e63;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* etc.htmlページのスタイル */
.private-section {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.private-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.private-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    width: 300px;
}

.private-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.private-text {
    flex: 1;
    line-height: 1.7;
}

.private-text p {
    margin-bottom: 1.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .sidebar {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 2rem;
        right: auto;
        top: auto;
    }

    .main {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header .container {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.5rem 10px;
    }

    .logo img {
        height: 40px;
    }

    .nav ul {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .nav li {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav li:not(:last-child)::after {
        margin: 0 0.5rem;
        font-size: 1rem;
        display: inline-block;
    }

    .nav a {
        padding: 0.0rem 0.5rem;
        font-size: 1rem;
        white-space: nowrap;
        display: inline-block;
        width: auto;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .cooperation-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .schedule-table {
        overflow-x: auto;
    }

    .schedule-table table {
        min-width: 600px;
    }

    /* 新ページのレスポンシブ */
    .access-info,
    .greeting,
    .profile,
    .qualifications,
    .private-section {
        padding: 1.5rem;
    }

    .access-row {
        flex-direction: column;
        gap: 1rem;
    }

    .access-label {
        min-width: auto;
        text-align: left;
    }

    /* 地図のiframeの高さを調整 */
    .access-value iframe {
        height: 250px !important;
        min-height: 250px;
    }

    .greeting-content {
        flex-direction: column;
        gap: 2rem;
    }

    .director-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .qual-grid {
        grid-template-columns: 1fr;
    }

    .private-content {
        flex-direction: column;
        gap: 2rem;
    }

    .private-images {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .private-images img {
        width: calc(50% - 0.5rem);
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.3rem 8px;
    }

    .logo img {
        height: 35px;
    }

    .nav ul {
        gap: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

    .nav li {
        flex: 1;
        text-align: center;
    }

    .nav li:not(:last-child)::after {
        margin: 0 0.1rem;
        font-size: 0.9rem;
    }

    .nav a {
        padding: 0.4rem 1.0rem;
        font-size: 0.9rem;
        display: block;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* 地図のiframeの高さを小さい画面でも確保 */
    .access-value iframe {
        height: 200px !important;
        min-height: 200px;
    }

    .clinic-info,
    .schedule,
    .services,
    .medical-cooperation,
    .case-statistics,
    .access-info,
    .greeting,
    .profile,
    .qualifications,
    .private-section {
        padding: 1rem;
    }
}