/* =================================
  Subpage 3 ('Info 2') Styles
  ================================= */

.content-heading {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.content-article {
    margin-bottom: 80px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.three-box-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 60px 0 20px;
}

.three-box-layout {
    display: grid;
    gap: 20px;
    margin: 40px 0;
    grid-template-columns: repeat(3, 1fr);
}

.three-box-layout .box {
    background-color: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.three-box-layout .box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 10px;
}

.three-box-layout .box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-blocks-container {
    margin: 40px 0;
}

.info-block {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.info-block p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.8;
}

.info-box-with-illust {
    position: relative;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
}

.info-box-with-illust h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.case-item {
    margin-bottom: 20px;
}

.case-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.info-box-illust {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
}

.info-box {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}
.info-box h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.info-box ul {
    padding-left: 20px;
}
.info-box li {
    margin-bottom: 10px;
}
.info-box li ul {
    padding-left: 25px;
    margin-top: 10px;
    list-style-type: disc;
}
.info-box li ul li {
    list-style-type: circle;
}
.info-box li ul li a {
    text-decoration: underline;
}
.info-box li ul li a:hover {
    color: var(--main-color);
}


.checklist {
    padding-left: 0;
    list-style: none;
    counter-reset: custom-counter;
}
.checklist > li {
    counter-increment: custom-counter;
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}
.checklist > li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: var(--main-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}



/* Footnote styles */
.footnote-ref {
    vertical-align: super;
    font-size: smaller;
    line-height: 0;
    cursor: pointer;
    color: var(--main-color);
    font-weight: bold;
    text-decoration: none;
}

.footnote-section {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.footnote-section ol {
    list-style: none;
    padding-left: 0;
}
.footnote-section li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}
.tooltip.visible {
    opacity: 1;
    visibility: visible;
}


@media (max-width: 768px) {
    .three-box-layout {
        grid-template-columns: 1fr;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .info-box-illust {
       display: none;
    }
}


