/* よくある質問セクション用スタイル */
.faq {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    color: #333;
}

/* 高級感のある背景設定 */
.faq-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.faq-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 245, 0.95) 25%, rgba(252, 252, 252, 0.9) 50%, rgba(248, 248, 248, 0.95) 75%, rgba(255, 255, 255, 1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    box-shadow: inset 0 0 70px rgba(212, 175, 55, 0.07);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 50% 25%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 75%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.faq h2 {
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    font-size: 2.2rem;
    color: #1a2942;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 1.2px;
}

.faq h2:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 80px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
    position: relative;
}

.faq-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #d4af37, rgba(212, 175, 55, 0.3));
    transition: height 0.4s ease;
    border-radius: 4px 0 0 4px;
}

.faq-item.active:before {
    height: 100%;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 28px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #d4af37, transparent);
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-question:after {
    width: 100%;
}

.faq-question h3 {
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a2942;
    margin: 0;
    padding-right: 30px;
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.02em;
}

.faq-item.active .faq-question h3 {
    color: #d4af37;
    transform: translateX(10px);
}

.faq-toggle {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.05);
}

.faq-toggle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #d4af37;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-toggle .minus {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.faq-item.active .faq-toggle .plus {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.faq-item.active .faq-toggle .minus {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.faq-answer {
    padding: 20px 30px;
    display: none;
    /* 初期状態は非表示 */
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
    display: block;
    /* アクティブ時は表示 */
}

.faq-answer p {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
    text-align: justify;
    transition: all 0.3s ease;
}

/* JavaScriptが無効な場合のフォールバックスタイル */
.no-js .faq-item .faq-answer {
    max-height: none;
    opacity: 1;
    padding: 0 30px 25px;
}

/* アニメーション高速化のためのハードウェアアクセラレーション設定 */
.faq-item,
.faq-question,
.faq-answer,
.faq-toggle span {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}