:root {
    --text-color: #1a1a1a;
    --border-color: #000000;
    --bg-color: #ffffff;
    --font-primary: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.top-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eeeeee;
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-logo {
    font-size: 1rem;
    font-weight: 500;
}

.top-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.top-nav a:hover {
    border-bottom: 1px solid var(--text-color);
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Clinic Intro */
.clinic-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.clinic-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.phone-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    background-color: #1a1a1a;
    padding: 5px;
    border-radius: 50%;
}

/* Timetable Section */
.timetable-section {
    margin-bottom: 3rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--border-color);
    min-width: 600px;
}

.timetable th,
.timetable td {
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 1.5rem 0.5rem;
    font-weight: 500;
    vertical-align: middle;
}

.timetable th {
    font-size: 1.1rem;
    padding: 1.2rem 0.5rem;
}

.timetable td {
    font-size: 1.1rem;
}

.time-cell {
    white-space: nowrap;
}

.small-text {
    font-size: 0.85rem;
    display: block;
    margin-top: 0.2rem;
}

/* Info Section */
.info-section {
    padding: 0 1rem;
}

.info-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-list li {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    list-style-type: none;
}

.info-list li::before {
    content: "・";
    position: absolute;
    left: -1.2rem;
}

/* Facility Notice Section */
.facility-notice {
    padding: 2rem 1rem;
    margin-top: 4rem;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
}

.notice-items {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.notice-suffix {
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.notice-footer {
    text-align: right;
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .clinic-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .timetable th,
    .timetable td {
        padding: 1rem 0.3rem;
        font-size: 1rem;
    }
    
    .timetable th {
        font-size: 1rem;
    }

    .info-list li {
        font-size: 1rem;
    }
}
