/* ==========================================
   FAQ Page
   ========================================== */
.faq-page {
    background-color: var(--color-bg-cream);
}

/* /homeから表示時（ヘッダー非表示）は上部固定ヘッダー分の余白が不要なため縮小 */
.page-content.faq-page.is-from-home {
    padding-top: 0;
}

/* [← ホームに戻る]バー（Bootstrapの container py-4 の代わりに専用クラスで余白を調整。
   左右のpaddingは .container のデフォルト値を維持するため上下のみ指定する） */
.faq-back-home-bar {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .faq-back-home-bar {
        padding-top: 1.5rem;
        padding-bottom: 0.35rem;
    }
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #011A27;
    margin-bottom: 1.25rem;
}

.faq-accordion-full .accordion-item {
    border: 1px solid #57b38a;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-accordion-full .accordion-item:hover {
    box-shadow: 0 2px 10px rgba(87, 179, 138, 0.2);
}

.faq-accordion-full .accordion-button {
    background-color: #57b38a;
    color: white;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    border: none;
    transition: background-color 0.2s ease;
}

.faq-accordion-full .accordion-button:not(.collapsed) {
    background-color: #46a07a;
    color: white;
    box-shadow: none;
}

.faq-accordion-full .accordion-button:hover {
    background-color: #46a07a;
}

.faq-accordion-full .accordion-button:focus {
    box-shadow: none;
    outline: none;
}

/* Toggle icon: replace Bootstrap chevron with +/- */
.faq-accordion-full .accordion-button::after {
    content: '+';
    background-image: none;
    width: auto;
    height: auto;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    color: white;
    transform: none !important;
    transition: content 0.2s ease;
    flex-shrink: 0;
}

.faq-accordion-full .accordion-button:not(.collapsed)::after {
    content: '−';
    background-image: none;
    transform: none !important;
}

.faq-accordion-full .accordion-body {
    padding: 1.25rem 1.5rem;
    color: #444;
    line-height: 1.7;
    background-color: #fff;
    border-top: 1px solid rgba(87, 179, 138, 0.2);
}

/* ==========================================
   iframe Container
   ========================================== */
.iframe-container {
    width: 100%;
    min-height: 800px;
    position: relative;
}

.content-iframe {
    width: 100%;
    height: 800px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background-color: white;
}

/* ==========================================
   Terms Content (利用規約等のスタイル)
   ========================================== */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #011A27;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #57b38a;
}

.terms-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.terms-text p {
    margin-bottom: 1rem;
}

.terms-text ol, .terms-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-text li {
    margin-bottom: 0.5rem;
}

.terms-text a {
    color: #57b38a;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.text-end {
    text-align: right;
}

.text-muted {
    color: #666;
}
