/* FAQ専用スタイルシート (faq.css) */
/* 既存のテーマカラー（#f7b41e等）に合わせる */

.faq-container {
    padding: 80px 0;
    /* background-color: #fafafa; */
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.faq-header h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #f7b41e;
    border-radius: 2px;
}

.faq-header p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-top: 30px;
}

/* アコーディオン部分 */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    background: #fff;
    border: 3px solid #f2f2f2;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ffe6a3;
    box-shadow: 0 6px 20px rgba(247, 180, 30, 0.1);
}

.faq-item.active {
    border-color: #f7b41e;
    box-shadow: 0 8px 25px rgba(247, 180, 30, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: #fffaf0;
}

.question-text {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    width: 90%;
    line-height: 1.6;
}

.question-text .q-mark {
    background-color: #f7b41e;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    margin-right: 20px;
    /* box-shadow: 0 3px 8px rgba(247, 180, 30, 0.4); */
    padding-top: 6px;
}

/* ＋/−アイコンのアニメーション化 */
.faq-toggle {
    position: relative;
    width: 32px;
    height: 32px;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    font-size: 0;
    /* 元の文字「＋」を見えなくする */
    color: transparent;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    background-color: #f7b41e;
    transition: all 0.3s ease;
}

/* 横線 */
.faq-toggle::before {
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

/* 縦線 */
.faq-toggle::after {
    width: 3px;
    height: 14px;
    border-radius: 2px;
}

.faq-item.active .faq-toggle {
    background-color: #f7b41e;
    border-color: #f7b41e;
}

.faq-item.active .faq-toggle::before {
    background-color: #fff;
}

.faq-item.active .faq-toggle::after {
    background-color: #fff;
    transform: rotate(90deg);
    opacity: 0;
}


.faq-answer {
    display: none;
    padding: 0 30px 30px;
    background-color: #fffaf0;
}

.answer-inner {
    display: flex;
    align-items: flex-start;
    padding-top: 25px;
    border-top: 2px dotted #f7b41e;
}

.answer-inner .a-mark {
    background-color: #444;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    margin-right: 22px;
    transform: translateY(-1px);
    padding-top: 6px;
}

.answer-inner p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.faq-jirei-link {
    margin-top: 20px;
    padding-left: 58px;
}

.faq-jirei-link a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: #0066cc;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 102, 204, 0.3);
}

.faq-jirei-link a::after {
    content: "＞";
    font-size: 12px;
    margin-left: 8px;
}

.faq-jirei-link a:hover {
    background-color: #004c99;
    box-shadow: 0 5px 10px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}


/* カテゴリ別FAQカード（総合FAQの下部） */
.faq-categories {
    max-width: 1000px;
    margin: 100px auto 80px;
}

.faq-categories-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.faq-categories-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #f7b41e;
    margin: 15px auto 0;
    border-radius: 2px;
}

.faq-category-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.faq-category-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border: 3px solid #f5f5f5;
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    color: #333;
    position: relative;
    overflow: hidden;
}

.faq-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #f7b41e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.faq-category-card:hover {
    border-color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    text-decoration: none;
    color: #333;
}

.faq-category-card:hover::before {
    transform: scaleX(1);
}

.faq-category-icon {
    font-size: 48px;
    color: #f7b41e;
    margin-bottom: 20px;
    display: inline-block;
}

.faq-category-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}

.faq-category-desc {
    font-size: 14.5px;
    color: #666;
    line-height: 1.6;
}

/* 費用・工期テーブル（カテゴリ別FAQ） */
.faq-info-table-wrap {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.faq-info-table-title {
    background: linear-gradient(135deg, #f7b41e, #ff9900);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 20px;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

.faq-info-table {
    width: 100%;
    border-collapse: collapse;
}

.faq-info-table th,
.faq-info-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.6;
}

.faq-info-table th {
    width: 30%;
    background-color: #fdfdfd;
    color: #333;
    font-weight: bold;
    text-align: left;
    border-right: 1px solid #f0f0f0;
}

.faq-info-table td {
    width: 70%;
    color: #555;
    background-color: #fff;
}

.faq-info-table tr:last-child th,
.faq-info-table tr:last-child td {
    border-bottom: none;
}

/* CTAエリア */
.faq-cta-area {
    background-color: #fff9ed;
    padding: 60px 0;
    text-align: center;
}

.faq-cta-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.faq-cta-desc {
    font-size: 17px;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.7;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.faq-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 240px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.faq-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
}

.btn-tel {
    background-color: #222;
}

.btn-tel:hover {
    background-color: #000;
}

.btn-tel::before {
    content: "☎";
    margin-right: 12px;
    font-size: 22px;
}

.btn-form {
    background-color: #f7b41e;
}

.btn-form:hover {
    background-color: #e6a213;
}

.btn-form::before {
    content: "✉";
    margin-right: 12px;
    font-size: 24px;
}

.btn-line {
    background-color: #06C755;
}

.btn-line:hover {
    background-color: #05ae4a;
}

.btn-line::before {
    content: "📱";
    margin-right: 12px;
    font-size: 22px;
}

/* パンくずナビ */
.breadcrumb-faq {
    padding: 15px 0;
    background-color: #f0f0f0;
    font-size: 13.5px;
    color: #666;
}

.breadcrumb-faq a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-faq a:hover {
    color: #f7b41e;
}

.breadcrumb-faq span.separator {
    margin: 0 12px;
    color: #aaa;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .faq-header h1 {
        font-size: 20px;
        line-height: 1.6;
    }

    .faq-header h1 span {
        display: none;
    }

    .faq-header p {
        font-size: 15px;
        text-align: left;
        margin-top: 30px;
    }

    .faq-question {
        padding: 20px;
    }

    .question-text {
        font-size: 15px;
    }

    .question-text .q-mark {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 18px;
        margin-right: 12px;
        transform: translateY(-1px);
        padding-top: 5px;
    }

    .answer-inner .a-mark {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 18px;
        margin-right: 12px;
        transform: translateY(-1px);
        padding-top: 6px;
    }

    .answer-inner p {
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 20px 25px;
    }

    .faq-jirei-link {
        padding-left: 44px;
    }

    .faq-categories {
        margin: 0 auto 0;
    }


    .faq-categories-title {
        font-size: 16px;
    }

    .faq-category-card {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .faq-info-table th,
    .faq-info-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .faq-info-table th {
        padding-bottom: 8px;
        background-color: #fcfcfc;
        border-right: none;
        border-bottom: 1px dashed #ddd;
    }

    .faq-category-desc {
        text-align: left;
    }

    .faq-info-table td {
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .faq-category-name {
        font-size: 16px;
    }

    .faq-cta-btn {
        width: 100%;
        max-width: 320px;
    }

    .faq-info-table-title {
        line-height: 1.6;
    }

    .faq-info-table-wrap {
        margin: 0 auto 80px;
    }

    .faq-container {
        padding: 40px 0;
        /* background-color: #fafafa; */
    }

    .faq-category-grid {
        gap: 15px;
    }
}