/* ===========================================
   Homepage: Main Visual, Banners, Director, News,
   Service, Symptom, Point, Reason, Promo, Access
=========================================== */

/* Main Visual & Banners */
.main-visual { width: 100%; overflow: hidden; position: relative; }
.main-visual img { width: 100%; display: block; opacity: 0.8; }
.main-visual__overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 141px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-visual__overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #707375;
    mix-blend-mode: multiply;
}
.main-visual__catch {
    position: relative;
    font-size: clamp(18px, 2.5vw, 35px);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.3em;
    line-height: 1;
    margin: 0;
    text-align: center;
}
.top-banners { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-lg); margin: var(--spacing-2xl) auto; width: 90%; max-width: var(--container-width); }
.banner-box { width: 100%; max-width: 800px; text-align: center; }
.banner-box img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); width: 100%; transition: var(--transition-base); }

/* Director Section */
.director-section { background-color: var(--color-primary); color: var(--color-bg); padding: var(--spacing-3xl) 0; }
.director-section h2 { border-bottom-color: var(--color-bg); }
.director-inner { display: flex; align-items: center; gap: var(--spacing-2xl); }
.director-img { width: 40%; text-align: center; }
.director-img img { border: 5px solid var(--color-bg); }
.director-text { width: 60%; }
.director-text h2 { text-align: left; left: 0; transform: none; display: block; width: 100%; margin-bottom: var(--spacing-lg); }
.director-text h3 { font-size: 20px; margin-bottom: var(--spacing-lg); color: var(--color-bg); }
.director-text p { line-height: 2.0; margin-bottom: var(--spacing-xl); letter-spacing: 0.3px; }

/* News Section */
.news-section { background-color: var(--color-bg-light); }
.news-section h2 { margin-bottom: var(--spacing-xl); }
.news-list { background: var(--color-bg); padding: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04); }
.news-list li { border-bottom: 1px solid var(--color-border-light); padding: 0; display: block; margin: 0; }
.news-list li:last-child { border-bottom: none; }
.news-list li a { display: flex; align-items: center; padding: 20px 24px; gap: var(--spacing-lg); transition: background 0.2s ease; color: var(--color-text); }
.news-list li a:hover { background: rgba(121, 194, 204, 0.04); opacity: 1; }
.news-list .date { font-weight: 700; color: var(--color-primary); min-width: 110px; font-family: var(--font-number); letter-spacing: 0.5px; font-size: 14px; flex-shrink: 0; }
.news-list .title { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--color-text); }
.news-more-wrap { text-align: center; margin-top: var(--spacing-xl); }
.btn-news-more { display: inline-block; padding: 12px 48px; border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; transition: all 0.25s ease; }
.btn-news-more:hover { background-color: var(--color-primary); color: var(--color-bg); opacity: 1; }

/* Column Section */
.column-section { background-color: #fff; }
.column-section h2 { margin-bottom: var(--spacing-lg); }
.column-section__en {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    opacity: 0.5;
    margin-bottom: 6px;
}
.column-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: var(--spacing-xl);
}
.column-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-light);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.column-card:hover {
    border-color: var(--color-primary-light);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 24px rgba(121, 194, 204, 0.1);
    opacity: 1;
}
.column-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fbfc 0%, #e4f4f6 100%);
}
.column-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.column-card:hover .column-card__thumb img {
    transform: scale(1.03);
}
.column-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fbfc 0%, #e4f4f6 100%);
}
.column-card__body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.column-card__date {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-pale);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.column-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
    border: none;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.column-card__excerpt {
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.column-more-wrap { text-align: center; }
.btn-column-more {
    display: inline-block;
    padding: 12px 48px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.btn-column-more:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    opacity: 1;
}

/* Service Menu */
.service-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-xl); }
.service-list li { width: 30%; display: flex; justify-content: center; }
.service-list a { width: 280px; height: 280px; min-width: 280px; min-height: 280px; border-radius: var(--radius-full); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--spacing-sm); text-align: center; transition: var(--transition-base); }
.service-list a:hover { opacity: 1; box-shadow: 0 8px 24px rgba(121, 194, 204, 0.2); }
.service-list li:nth-child(odd) a { background-color: var(--color-bg-gray); }
.service-list li:nth-child(even) a { background-color: var(--color-primary-hover); }
.service-list .icon-wrap { width: 45px; height: 45px; margin-bottom: var(--spacing-xs); }
.service-list .icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.service-name { display: block; font-size: 15px; font-weight: bold; color: var(--color-text); line-height: 1.3; margin-bottom: 2px; }
.service-en { display: block; font-size: 10px; color: #717171; letter-spacing: 1.5px; margin-bottom: var(--spacing-xs); text-transform: uppercase; }
.service-list p, .service-list .top-service-text { font-size: 11px; color: var(--color-text-muted); line-height: 1.7; margin: 4px 0 0; max-width: 190px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; } /* 円の内側に収まる幅で3行まで表示し、超える分は…で省略 */

/* Symptom Section */
.symptom-section { background-color: var(--color-bg-gray); }
.symptom-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }
.symptom-list li { margin: 0; }
.symptom-list a { display: flex; align-items: center; background-color: var(--color-bg); border: 1px solid var(--color-primary); border-radius: var(--radius-sm); padding: var(--spacing-md) var(--spacing-lg); height: 100%; color: var(--color-text); }
.symptom-list a:hover { background-color: #f0fbfc; border-color: var(--color-primary-dark); }
.symptom-icon { width: 45px; height: 45px; flex-shrink: 0; margin-right: var(--spacing-md); display: flex; justify-content: center; align-items: center; }
.symptom-icon img { width: 100%; height: 100%; object-fit: contain; }
.symptom-text { font-size: 13px; font-weight: bold; line-height: 1.5; text-align: left; }

/* Point Section */
.point-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--spacing-3xl) 4%; margin-top: 50px; }
.point-item { width: 48%; }
.point-img img { width: 100%; height: auto; display: block; }
.point-body { text-align: left; padding-top: var(--spacing-lg); }
.point-number { display: block; font-size: 44px; font-family: 'Inter', var(--font-primary); font-variant-numeric: tabular-nums; color: var(--color-primary-light); font-weight: 600; line-height: 1; margin-bottom: var(--spacing-sm); letter-spacing: 0.02em; }
.point-title { font-size: 18px; color: var(--color-primary); font-weight: bold; margin-bottom: var(--spacing-md); line-height: 1.5; border: none; padding: 0; }
.point-text { font-size: 14px; color: var(--color-text-muted); line-height: 1.8; text-align: justify; }

/* Reason Section */
.reason-section { background-color: var(--color-bg-gray); }
.reason-list { margin-top: 50px; }
.reason-item { display: flex; align-items: center; justify-content: flex-start; margin-bottom: var(--spacing-4xl); }
.reason-item:last-child { margin-bottom: 0; }
.reason-img { width: 45%; }
.reason-img img { width: 100%; height: auto; display: block; border-radius: var(--radius-xl); }
.reason-body { width: 50%; margin-left: var(--spacing-2xl); }
.reason-reverse { flex-direction: row-reverse; justify-content: flex-end; }
.reason-reverse .reason-body { margin-left: 0; margin-right: var(--spacing-2xl); }
.reason-title { font-size: 20px; color: var(--color-primary); font-weight: bold; margin-bottom: var(--spacing-lg); border: none; padding: 0; text-align: left; }
.reason-text { font-size: 14px; line-height: 1.8; text-align: justify; }

/* Promo Section */
.promo-section { width: 100%; }
.promo-flex { display: flex; width: 100%; }
.promo-col { width: 25%; }
.promo-text-box { background-color: var(--color-primary); color: var(--color-bg); display: flex; align-items: center; justify-content: center; text-align: center; }
.promo-inner { padding: var(--spacing-2xl) var(--spacing-lg); }
.promo-icon { width: 50px; height: auto; margin-bottom: var(--spacing-lg); }
.promo-inner h3 { font-size: 22px; font-weight: bold; line-height: 1.2; margin-bottom: var(--spacing-lg); }
.promo-inner h3 span { display: block; font-size: 14px; opacity: 0.8; margin-top: var(--spacing-xs); letter-spacing: 2px; font-family: var(--font-number); }
.promo-inner p { font-size: 13px; line-height: 1.8; margin-bottom: var(--spacing-xl); }
.btn-promo { display: inline-block; background-color: var(--color-bg); color: var(--color-primary); padding: 12px 50px; font-weight: bold; font-size: 14px; border-radius: var(--radius-sm); transition: var(--transition-base); }
.btn-promo:hover { background-color: var(--color-primary-pale); opacity: 1; }
.promo-img-box img { width: 100%; height: 100%; object-fit: cover; vertical-align: bottom; }

/* Access Info Section */
.access-info-section { background-color: var(--color-bg-light); padding: var(--spacing-4xl) 0; }
.access-info-flex { display: flex; justify-content: space-between; align-items: flex-start; }
.access-info-left { width: 62%; }
.access-head-wrap { display: flex; align-items: flex-end; gap: var(--spacing-xl); margin-bottom: 25px; flex-wrap: wrap; }
.access-clinic-name { font-size: 24px; color: var(--color-text-muted); line-height: 1.3; border: none; padding: 0; text-align: left; font-weight: bold; margin: 0; width: auto; position: static; transform: none; left: auto; }
.access-address { font-size: 13px; color: var(--color-text-muted); margin: 0 0 2px 0; line-height: 1.5; }

/* Time Table */
.time-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; color: var(--color-text-light); background: var(--color-bg); margin-bottom: var(--spacing-md); table-layout: fixed; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(121, 194, 204, 0.1); }
.time-table th, .time-table td { text-align: center; padding: 14px 0; vertical-align: middle; border-bottom: 1px solid var(--color-border-light); }
.time-table thead th { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: var(--color-bg); font-weight: 600; font-size: 13px; letter-spacing: 0.5px; border-bottom: none; }
.time-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.time-table thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.time-table thead th.time-label { font-size: 12px; letter-spacing: 1px; }
.time-table thead th.day-sat { background: linear-gradient(135deg, #4a9cc9 0%, #3a8cb9 100%); }
.time-table thead th.day-sun, .time-table thead th.day-holiday { background: linear-gradient(135deg, #e57373 0%, #d45f5f 100%); }
.time-table tbody tr { }
.time-table tbody tr:last-child td { border-bottom: none; }
.time-table td.time-slot { background-color: var(--color-bg-pale); font-weight: 600; color: var(--color-text); font-family: var(--font-number); font-size: 13px; letter-spacing: 0.3px; border-right: 1px solid var(--color-border-light); }
.time-table th:first-child, .time-table td:first-child { width: 26%; }
.time-table th:not(:first-child), .time-table td:not(:first-child) { width: 9.25%; }

/* Status Icons */
.status-open, .status-closed { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.status-open { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); box-shadow: 0 2px 4px rgba(121, 194, 204, 0.4); }
.status-closed { background-color: #ddd; position: relative; }
.status-closed::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 1px; background-color: #999; }

/* Schedule Table */
.clinic-schedule { max-width: var(--container-width); margin: 0 auto; padding: var(--spacing-3xl) var(--container-padding); }
.schedule-wrapper { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; }
.schedule-table th, .schedule-table td { padding: 12px 10px; border: 1px solid var(--color-border-light); }
.schedule-table thead th { background-color: var(--color-primary); color: #fff; font-weight: 500; font-size: 14px; }
.schedule-table tbody td:first-child { background-color: var(--color-bg-pale); font-weight: 500; text-align: left; white-space: nowrap; }
.schedule-table tbody td { color: var(--color-text); }
.holiday-note { font-size: 13px; color: var(--color-text-muted); margin-top: var(--spacing-md); }
.holiday-icon { display: inline-block; width: 8px; height: 8px; background-color: #e57373; border-radius: 50%; }

/* Right Side */
.access-info-right { width: 35%; text-align: center; display: flex; flex-direction: column; gap: var(--spacing-md); }
.access-tel-btn { text-decoration: none; color: var(--color-primary); display: flex; align-items: center; justify-content: center; pointer-events: none; margin-bottom: var(--spacing-sm); }
.tel-icon-svg { width: 30px; height: 30px; margin-right: var(--spacing-sm); color: var(--color-primary); }
.access-tel-number { font-size: 34px; font-family: var(--font-number); font-weight: bold; line-height: 1; white-space: nowrap; }
.btn-access-reserve, .btn-access-contact { display: block; width: 100%; padding: 18px; text-align: center; border-radius: var(--radius-md); font-weight: bold; font-size: 15px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); }
.btn-access-reserve { background-color: var(--color-secondary); color: var(--color-bg); }
.btn-icon { margin-right: var(--spacing-xs); }
.btn-icon-img { width: 20px; height: auto; vertical-align: middle; margin-right: 8px; margin-top: -3px; }
.btn-access-contact { background-color: var(--color-bg); color: var(--color-primary); border: 2px solid var(--color-primary-light); }
.btn-access-reserve:hover, .btn-access-contact:hover { opacity: 0.95; }

/* ===========================================
   Responsive (Mobile)
=========================================== */
@media (max-width: 767px) {
    /* Main Visual */
    .main-visual { height: 350px; }
    .main-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .main-visual__overlay { height: 80px; }
    .main-visual__catch { letter-spacing: 0.15em; line-height: 1.6; }
    .main-visual__catch-line { display: inline-block; } /* 「当院で守ります」を途中で折り返さない */

    /* Banners */
    .top-banners { flex-direction: column; align-items: center; }
    .banner-box { width: 100%; max-width: 400px; }

    /* Director */
    .director-inner { flex-direction: column; text-align: center; }
    .director-img, .director-text { width: 100%; }
    .director-img { margin-bottom: var(--spacing-lg); max-width: 250px; margin-left: auto; margin-right: auto; }
    .director-text h2 { text-align: center; }

    /* News */
    .news-list li a { flex-direction: column; align-items: flex-start; gap: var(--spacing-xs); padding: 16px 20px; }
    .news-list .date { min-width: auto; font-size: 13px; }
    .news-list .title { font-size: 14px; }

    /* Column Cards */
    .column-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .column-card {
        flex-direction: row;
        align-items: center;
    }
    .column-card__thumb {
        width: 100px;
        min-width: 100px;
        aspect-ratio: 1;
    }
    .column-card__body {
        padding: 14px 16px;
    }
    .column-card__title {
        font-size: 14px;
    }
    .column-card__excerpt {
        display: none;
    }

    /* Service List */
    .service-list { gap: var(--spacing-sm); }
    .service-list li { width: 47%; margin-bottom: var(--spacing-sm); }
    .service-list a { width: 100%; height: 80px; min-width: auto; min-height: auto; border-radius: var(--radius-md); padding: 0 var(--spacing-xs); display: grid; grid-template-columns: 45px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: var(--spacing-xs); row-gap: 0; text-align: left; }
    .service-list .icon-wrap { grid-row: 1 / 3; width: 40px; height: 40px; justify-self: center; margin-bottom: 0; }
    .service-name { font-size: 12px; line-height: 1.2; margin: 0; align-self: end; }
    .service-en { font-size: 9px; line-height: 1.1; margin: 0; align-self: start; color: var(--color-text-muted); }
    .service-list p, .service-list .top-service-text { display: none; }
    .service-list li:nth-child(4n+1) a, .service-list li:nth-child(4n+4) a { background-color: var(--color-bg-gray); }
    .service-list li:nth-child(4n+2) a, .service-list li:nth-child(4n+3) a { background-color: var(--color-primary-hover); }

    /* Symptom List */
    .symptom-list { grid-template-columns: 1fr; gap: var(--spacing-sm); }
    .symptom-list a { padding: var(--spacing-md); }
    .symptom-text { font-size: 12px; }

    /* Point Grid */
    .point-grid { display: block; margin-top: var(--spacing-xl); }
    .point-item { width: 100%; margin-bottom: 50px; }
    .point-item:last-child { margin-bottom: 0; }
    .point-number { font-size: 36px; text-align: center; }
    .point-title { text-align: center; font-size: 16px; }

    /* Reason Section */
    .reason-item { display: block; margin-bottom: 50px; }
    .reason-reverse { flex-direction: row; }
    .reason-img, .reason-body { width: 100%; }
    .reason-img { margin-bottom: var(--spacing-lg); }
    .reason-body { margin-left: 0; margin-right: 0; }
    .reason-title { font-size: 18px; text-align: center; }

    /* Promo Section */
    .promo-flex { flex-wrap: wrap; }
    .promo-col { width: 100%; }
    .promo-order-1 { order: 1; }
    .promo-order-2 { order: 2; }
    .promo-order-3 { order: 3; }
    .promo-order-4 { order: 4; }

    /* Access Info */
    .access-info-section { padding: 50px 0; }
    .schedule-table { font-size: 11px; }
    .schedule-table th, .schedule-table td { padding: 8px 2px; }
    .schedule-table thead th { font-size: 11px; }
    .schedule-table tbody td:first-child { font-size: 10px; }
    .access-info-flex { flex-direction: column; }
    .access-info-left, .access-info-right { width: 100%; }
    .access-head-wrap { display: block; text-align: center; margin-bottom: var(--spacing-xl); }
    .access-clinic-name { text-align: center; font-size: 20px; margin-bottom: var(--spacing-sm); line-height: 1.4; }
    .access-address { text-align: center; margin-bottom: var(--spacing-lg); }
    .time-table { margin-bottom: var(--spacing-lg); border-radius: var(--radius-md); }
    .time-table th, .time-table td { padding: 10px 0; font-size: 11px; }
    .time-table thead th { font-size: 11px; letter-spacing: 0; }
    .time-table td.time-slot { font-size: 11px; }
    .status-open, .status-closed { width: 8px; height: 8px; }
    .holiday-note { justify-content: center; }
    .access-tel-btn { background-color: var(--color-primary); color: var(--color-bg); padding: var(--spacing-md); border-radius: var(--radius-md); pointer-events: auto; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); }
    .tel-icon-svg { width: 24px; height: 24px; color: var(--color-bg); }
    .access-tel-number { font-size: 24px; color: var(--color-bg); }
    .btn-access-reserve, .btn-access-contact { padding: var(--spacing-md); font-size: 14px; }
}
