/* GPU LP カスタムスタイル */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    line-height: 1.8;
}

/* FAQアコーディオン */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.3s ease;
}

/* 「だからこそ」アコーディオン */
.dakara-toggle {
    cursor: pointer;
}
.dakara-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.dakara.open .dakara-body {
    max-height: 800px;
}
.dakara-chevron {
    transition: transform 0.3s ease;
}
.dakara.open .dakara-chevron {
    transform: rotate(180deg);
}
/* 閉じている間はチェブロンを上下に揺らしてタップを促す */
.dakara:not(.open) .dakara-chevron {
    animation: dakaraBounce 1.7s ease-in-out infinite;
}
@keyframes dakaraBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .dakara:not(.open) .dakara-chevron { animation: none; }
    .dakara-body { transition: none; }
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 比較テーブル横スクロール（SP） */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 横スクロール可能を示すヒント（JSで .table-scroll を .table-scroll-box で包む） */
.table-scroll-box {
    position: relative;
}
/* スクロール可能時はヒント用の余白を表の下に確保（重なり防止） */
.table-scroll-box.is-scrollable {
    margin-bottom: 40px;
}
/* 右端フェード：まだ続きがあることを示す */
.table-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.92));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}
.table-scroll-box.is-scrollable:not(.at-end) .table-fade {
    opacity: 1;
}
/* スクロールヒントのピル */
.table-hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    padding: 5px 13px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(15, 32, 68, 0.85);
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}
.table-scroll-box.is-scrollable.at-start .table-hint {
    display: block;
    animation: tableHintPulse 1.7s ease-in-out infinite;
}
@keyframes tableHintPulse {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}
/* PCではテーブルが収まるため非表示 */
@media (min-width: 768px) {
    .table-hint,
    .table-fade {
        display: none !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .table-scroll-box.is-scrollable.at-start .table-hint {
        animation: none;
        opacity: 1;
    }
}

/* ヘッダーシャドウ（スクロール後） */
#header.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* モバイル固定CTAのpadding調整 */
@media (max-width: 767px) {
    body {
        padding-bottom: 72px;
    }
}

/* ステップフロー番号 */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ステップ縦線 */
.step-connector::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 2.5rem;
    bottom: -1rem;
    width: 1px;
    background-color: #e2e8f0;
}
