@charset "UTF-8";

/* --------------------------------
 * base
 * -------------------------------- */
* {
  box-sizing: border-box;
}

body, a {
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.1em;
}

/* --------------------------------
 * Demo Layout
 * -------------------------------- */
.prevention-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #6b90db;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

/* --- Benefits Section --- */
.benefits-section {
    background-color: #ecf7fb;
    padding: 50px 20px;
}
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.benefit-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 480px;
}
.benefit-item h3 {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* --- 5 Keywords Section --- */
.keywords-section {
    padding: 50px 0;
}
.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.keyword-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.keyword-card-img-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
}
.keyword-card-img-container img {
    width: 120px;
    height: 120px;
}
.keyword-card-content {
    padding: 25px;
    flex-grow: 1;
}
.keyword-card-content h4 {
    font-weight: bold;
    color: #6b90db;
    margin-top: 0;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #DB8F81;
    text-align: center;
    padding: 50px 20px;
    margin: 40px auto;
    border-radius: 8px;
}
.cta-section h2 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 25px;
}
.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #DB8F81;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button:hover {
    background-color: #f5f5ff5;
    color: #DB8F81;
}

/* --- Related Posts Section --- */
.related-posts-section {
    background-color: #ecf7fb;
    padding: 50px 20px;
}
/* --- TOP PAGE ADDITIONS --- */

/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.service-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}
.service-card h3 {
    font-weight: bold;
    color: #6b90db;
    font-size: 1.2em;
}
.service-card .btn {
    margin-top: 15px;
}

/* --- Patient Flow Timeline Section --- */
.timeline-section {
    padding: 50px 0;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #B2C2E1;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #6b90db;
    border: 4px solid #ecf7fb;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.right::after {
    left: -10px;
}
.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.timeline-content img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}
.timeline-content h4 {
    font-weight: bold;
    color: #6b90db;
}

/* --- Infection Control Grid --- */
.infection-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}
.infection-control-item img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}
.infection-control-item p {
    font-size: 0.9em;
    line-height: 1.4;
    color: #555;
}

/* --- Responsive adjustments for timeline --- */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 18px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0%;
    }
    .timeline-item.right::after, .timeline-item.left::after {
        left: 10px;
    }
}
/* --- Patient Flow Step-by-Step Style --- */
.flow-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    align-items: stretch;
}
.flow-step-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
}
.flow-step-card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}
.flow-step-card h4 {
    font-weight: bold;
    color: #6b9db0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
}
.flow-step-card h4 .step-number {
    display: inline-block;
    background-color: #6b90db;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 0.8em;
    margin-right: 10px;
    font-weight: bold;
}
/* --- Patient Flow Timeline V2 (Compact Version) --- */
.timeline-v2 {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}
.timeline-v2::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #B2C2E1;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-v2-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-v2-item.left {
    left: 0;
}
.timeline-v2-item.right {
    left: 50%;
}
.timeline-v2-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #6b90db;
    border: 4px solid #ecf7fb;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-v2-item.right::after {
    left: -10px;
}
.timeline-v2-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}
.timeline-v2-content .image-container {
    flex: 0 0 120px;
}
.timeline-v2-content .image-container img {
    width: 100%;
    border-radius: 4px;
}
.timeline-v2-content .text-container h4 {
    font-weight: bold;
    color: #6b90db;
    margin-top: 0;
    font-size: 1.2em;
}

/* --- Responsive adjustments for timeline V2 --- */
@media screen and (max-width: 768px) {
    .timeline-v2::after {
        left: 18px;
    }
    .timeline-v2-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .timeline-v2-item.left, .timeline-v2-item.right {
        left: 0%;
    }
    .timeline-v2-item.right::after, .timeline-v2-item.left::after {
        left: 10px;
    }
}
/* --- 02.html Cavity Page Additions --- */

/* --- Accordion for Tooth Structure --- */
.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.accordion-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b90db;
}
.accordion-header::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s;
}
.accordion-header.active::after {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}
.accordion-content-inner {
    padding: 20px;
}
.accordion-content-inner p, .accordion-content-inner b {
    margin-bottom: 1em;
}


/* --- Recurrence Reasons --- */
.recurrence-reasons {
    max-width: 800px;
    margin: 0 auto;
}
.reason-item {
    display: flex;
    flex-wrap: wrap; /* responsive */
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.reason-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.reason-item .reason-icon {
    flex: 1 1 150px;
    text-align: center;
}
.reason-item .reason-icon img {
    width: 100%;
    max-width: 150px;
}
.reason-item .reason-text {
    flex: 2 1 400px;
}
.reason-item .reason-text h4 {
    font-weight: bold;
    color: #6b90db;
    margin-bottom: 10px;
}
/* --- yoyaku.html Reservation Page Additions --- */
.reservation-section {
    padding: 40px 0;
}
.reservation-section h2.section-subtitle {
    text-align: center;
    font-weight: bold;
    color: #6b90db;
    padding: 10px;
    background-color: #ecf7fb;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 30px;
}
.reservation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.reservation-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.reservation-card-header {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}
.reservation-card-header h3 {
    font-weight: bold;
    color: #333;
    margin: 0;
    font-size: 1.5em;
}
.reservation-card-header h4 {
    color: #DB8F81;
    font-weight: bold;
    font-size: 1em;
    margin: 0;
}
.reservation-card-body {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    flex-grow: 1;
    align-items: flex-start;
}
.reservation-card-image {
    flex: 1 1 200px;
    text-align: center;
}
.reservation-card-image img {
    max-width: 100%;
    width: 200px;
    border: 1px solid #eee;
}
.reservation-card-image .btn {
    margin-top: 15px;
}
.reservation-card-text {
    flex: 2 1 300px;
}
/* --- Final Override for Reservation Card Alignment --- */
.reservation-card-body.align-start {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.reservation-card-body.align-start > div {
    /* This ensures child elements don't have conflicting alignment */
    margin-top: 0;
    margin-bottom: auto;
}