body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-image: url('./img/bg/iStock-2112778884.jpg');
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(1, 73, 146, 0.85); /* 濃い青色のオーバーレイ */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* --- Fixed CTA Buttons --- */
.fixed-cta-button {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 1.5rem 0.75rem;
    color: white;
    font-weight: 700;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease-in-out;
    display: block;
}
.fixed-cta-button:hover {
    transform: translateX(-5px);
}

/* --- "Worries" Section --- */
.homebase-container {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}
.text-strong {
    position: relative;
    display: inline-block;
    font-weight: 900;
    color:#005bac;
}
.text-strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #ffffff;
    z-index: -1;
}
.text-highlight {
    color: #005bac;
    font-weight: bold;
}

/* --- "Testimonials" Section --- */
.testimonials-bg {
    background-image: url('./img/bg/iStock-2112778884.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.testimonials-bg::before {
    content: '';
    position: absolute;
    inset: 0;
}

/* --- "Sample" Section --- */
.custom-button-blue {
    background-color: #005F9E;
    color: white;
    padding: 0.75rem 5.5rem;
   /* border-radius: 0.25rem; */
    font-weight: 700;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.custom-button-blue:hover {
    background-color: #0a437d;
}

/* --- "Benefits" Section --- */
.highlight {
    font-weight: bold;
    color: #FBAD26;
}

/* --- "Flow" Section --- */
        /* カスタムクラス */
        .flow-container {
            display: grid;
            grid-template-columns: repeat(1, 1fr); /* モバイルでは1カラム */
            gap: 20px;
            padding: 2rem 1rem;
            max-width: 1200px;
            margin: auto;
        }

        .flow-step {
            background-color: white;
            padding: 2rem 1.5rem;
            text-align: center;
            position: relative;
        }
        
        /* 最後のステップを除くすべてのステップに下向き矢印を適用 (モバイル) */
        .flow-step:not(:last-child) {
             clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
        }


        /* PC表示用のスタイル (768px以上) */
        @media (min-width: 768px) {
            .flow-container {
                grid-template-columns: repeat(5, 1fr); /* PCでは5カラム */
                gap: 0.5rem; 
            }

            .flow-step {
                padding: 2.5rem 1rem;
                height: 100%; /* 高さを揃える */
                display: flex;
                flex-direction: column;
                justify-content: flex-start; /* コンテンツを上から配置 */
                align-items: center;
            }
            
            /* 最後のステップを除くすべてのステップに右向き矢印を適用 (PC) */
            .flow-step:not(:last-child) {
                clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
            }
             /* 最後のステップは通常の四角形 */
            .flow-step:last-child {
                clip-path: none;
            }
        }


/* --- "FAQ" Section --- */
/* アコーディオンの開閉を滑らかにするためのトランジション */
.answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.qa-item.active .answer-content {
    max-height: 500px; /* 十分な高さを設定 */
}
/* PC表示でのみ区切り線を表示 */
.qa-item-desktop-border {
    border-bottom-width: 1px;
}
/* スマホ表示では区切り線を非表示 */
@media (max-width: 767px) {
    .qa-item-desktop-border {
        border-bottom-width: 0;
    }
}

/* PC用の右側固定ボタンのスタイル */
.fixed-cta-button {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-weight: bold;
    padding: 1.5rem 0.75rem;
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    text-align: center;
    transition: opacity 0.3s ease;
}
.fixed-cta-button:hover {
    opacity: 0.85;
}
.fixed-cta-button span {
    display: inline-block;
    transform: rotate(180deg);
}
