/* online/css/style.css */

.allergy-title-inner {
    background-image: url(../../img/base/title.jpg);
}

.online-main .bg-base {
    background-color: #f8f9fa;
}

.online-main .box-radius {
    border-radius: 20px;
}

.online-main .color-main {
    color: #036EB8;
}

/* Introduction Section app banner */
.online-app-bnr .bg-base {
    background-color: #f1f1f1;
}

.font-weight-bold {
    font-weight: bold;
}

/* Section common */
.section-header-centered {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header-centered::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: #036EB8;
    border-radius: 50%;
    margin: 10px auto 0;
    box-shadow: -15px 0 0 #A8D1E7, 15px 0 0 #A8D1E7;
}

/* Utilities (minimal) */
.online-main .d-flex { display: flex; }
.online-main .justify-content-between { justify-content: space-between; }
.online-main .align-items-center { align-items: center; }
.online-main .text-center { text-align: center; }
.online-main .text-end { text-align: right; }
.online-main .flex-1 { flex: 1; }
.online-main .mt-5 { margin-top: 3rem; }
.online-main .mb-4 { margin-bottom: 1.5rem; }
.online-main .mb-5 { margin-bottom: 3rem; }
.online-main .me-2 { margin-right: 1rem; }
.online-main .me-3 { margin-right: 1rem; }
.online-main .p-2 { padding: 0.5rem; }
.online-main .p-3 { padding: 1rem; }
.online-main .p-4 { padding: 1.5rem; }
.online-main .ps-4 { padding-left: 1.5rem; }
.online-main .list-unstyled { list-style: none; padding-left: 0; }

/* Introduction Section */
.online-intro-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
}

.intro-img {
    width: 35rem;
}

.intro-img img {
    width: 100%;
    height: auto;
}

.intro-main-lg {
    flex: 1;
    line-height: 1.8;
}

/* リスト共通 */
.g-list {
    margin: 1.5em 0;
    padding: 0 0 0 0.5em;
    list-style: none;
}
.g-list li {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.g-list li:last-child {
    margin-bottom: 0;
}
.g-dot {
    width: 8px;
    height: 8px;
    background: #036EB8;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* 対象患者リスト（2列レイアウト） */
.online-targets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2rem;
    margin-top: 1.5rem;
}
.online-targets-list li {
    width: calc(50% - 1rem);
}
@media (max-width: 575px) {
    .online-targets-list li {
        width: 100%;
    }
}

/* App Banner */
.online-app-bnr-content {
    display: flex;
    align-items: center;
    justify-content:space-around;
    background-color: #f1f1f1;
    padding: 30px;
}

.online-app-logo {
    margin-right: 2rem;
}

.online-app-text {
    margin-right: 3rem;
}

.online-app-links {
    display: flex;
}

/* Recommended for Section */
/* ... (existing grid styles are already vanilla) ... */

/* Fees Section */
.online-fees-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.online-fees-left {
    flex: 1.2;
}

.online-fees-right {
    flex: 1;
}

.online-fees-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.online-fee-table {
    width: 100%;
    border-collapse: collapse;
}

.online-fee-table th, 
.online-fee-table td {
    padding: 1.25rem 0.5rem;
    border-bottom: 1px solid #eee;
    font-weight: normal;
}

.online-fee-table th {
    text-align: left;
    color: #444;
}

.online-fee-notes {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.6;
    margin-top: 1em;
}

.online-fee-notes p {
    margin-bottom: 0.25rem;
}

.online-fee-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: #f1f1f1 !important;
    border-radius: 12px;
    margin-bottom: 1em;
}

.online-fee-label {
    color: #444;
}

.online-fee-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.online-fee-subtext {
    font-size: 1.5rem;
    color: #666;
}

/* Required Items Section */
/* ... (existing flex styles are already vanilla) ... */

/* Flow Section */
.online-flow-grid {
    display: flex;
    gap: 20px;
    align-items: center;
}

.online-flow-left {
    flex: 0 0 80%;
}

.online-flow-right {
    flex: 1;
}

.online-flow-imgs figure img {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 767px) {
    .online-intro-container {
        flex-direction: column;
        gap: 20px;
    }

    .intro-img {
        width: 100%;
        text-align: center;
    }
    .intro-img img{
        width: 70%;
        margin: 0 auto;
    }

    .online-app-bnr-content {
        flex-direction: column;
        text-align: center;
    }

    .online-app-logo, .online-app-text {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .online-app-links {
        justify-content: center;
    }

    .online-fees-grid, .online-flow-grid {
        flex-direction: column;
        gap: 30px;
    }

    .online-flow-right {
        display: none; /* Hide images on mobile as in original d-none d-md-block */
    }
    .online-fees-right,.online-fees-left {
    flex: 1;
    width: 100%;
}
}

/* Recommended for Section */
.online-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.online-recommend-capsule {
    background-color: #e5f4ff;
    border-radius: 50px;
    padding: 20px 30px;
    text-align: center;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    min-height: 80px;
}

.online-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width:900px;
}
.online-benefit-grid img{
    width: 100%;
}



@media (min-width: 768px) {
    .online-benefit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .online-benefit-item:nth-child(4),
    .online-benefit-item:nth-child(5) {
        grid-column: span 1.5; /* This doesn't work in standard grid, but we'll use auto-fill logic */
    }
}

/* Adjust grid for the bottom two items to be centered */
@media (min-width: 768px) {
    .online-benefit-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .online-benefit-item {
        width: calc(30% - 10px);
  }
}

@media (max-width: 767px) {
    .online-recommend-grid {
        grid-template-columns: 1fr;
    }
    .online-benefit-item {
        width: 100%;
    }
}

/* Fees Section */
.max-width-900 {
    max-width: 900px;
}

.online-fee-table {
    width: 100%;
    border-collapse: collapse;
}

.online-fee-table th,
.online-fee-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
}

.online-fee-table th {
    text-align: left;
    font-weight: 500;
}

/* Required Items Section */
.heading-bar {
    background-color: #e5f4ff !important;
}

.online-required-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.online-required-item {
    width: calc(33.333% - 20px);
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.online-required-item figure {
    margin-bottom: 15px;
}

.online-required-item p {
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .online-required-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .online-required-item {
        width: 100%;
    }
}

/* Flow Section */
.online-flow-list {
    position: relative;
}

.online-flow-item {
    display: flex;
    margin-bottom: 40px;
}

.online-flow-num {
    width: 50px;
    height: 50px;
    background-color: #036EB8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
    margin-right: 20px;
}

.online-flow-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.online-flow-content p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Symptoms Section */
.online-symptoms-box {
    border-top: 2px solid #036EB8;
    padding-top: 30px;
}

/* FAQ Section */
.online-faq-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #fff;
}

.online-faq-q {
    padding: 25px 30px;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-faq-q::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-top: -6px;
    margin-right: 5px;
}

details[open] .online-faq-q::after {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.online-faq-q::-webkit-details-marker {
    display: none;
}

.online-faq-a {
    padding: 0 30px 25px;
    background-color: #fff !important;
}

/* Global utility inside online-main */
.online-main .mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.online-main .max-width-1000 {
    max-width: 1000px;
}
