/* --- 基本設定 --- */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
html {
    scroll-behavior: smooth;
}
h1, h2 {
    margin: 0;
    padding: 0;
}

/* --- コンポーネント --- */
.benefit-box {
    border: 2px solid;
    border-radius: 0.8rem;
    padding: 1.8rem;
    padding-bottom: 2.2rem;
    text-align: center;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: transform 0.3s;
}

.benefit-box:hover {
    transform: translateY(-5px);
}

.step-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 1.5rem;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* --- タブボタンのスタイル（重要） --- */
.tab-button {
    background-color: #f3f4f6 !important; /* bg-gray-100 */
    color: #6b7280 !important;            /* text-gray-500 */
    border: none !important;              /* 基本のborderは消す */
    /* ↓ 常に4pxの下線を表示させて、ガタつきを防止する */
    border-bottom: 4px solid #d1d5db !important; /* 非アクティブ時の下線：濃いグレー (gray-300) */
    outline: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 「ご紹介した方」がアクティブな時 */
#tab-referrer-btn.active {
    background-color: #ea580c !important; /* 濃いオレンジ */
    color: #ffffff !important;
    border-bottom: 4px solid #c2410c !important; /* 下線で強調 */
}

/* 「ご紹介された方」がアクティブな時 */
#tab-referee-btn.active {
    background-color: #65a30d !important; /* 濃い黄緑 */
    color: #ffffff !important;
    border-bottom: 4px solid #4d7c0f !important; /* 下線で強調 */
}

/* ホバー（非アクティブ時のみ） */
#tab-referrer-btn:hover:not(.active) { color: #ea580c !important; background-color: #fff7ed !important; }
#tab-referee-btn:hover:not(.active) { color: #65a30d !important; background-color: #f7fee7 !important; }

/* --- ユーティリティ --- */
.fv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.fv-bg-image, .fv-bg-image-s { background-image: url('../images/funvest_referral_bg.jpg'); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-xxs { font-size: 10px; }

.fv-aspect-fand {
    position: relative;
    width: 100%;
    padding-top: 69.6%; /* 522/750 */
}
.fv-aspect-fand img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}

.fv-floating-shadow { box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1); }
.fv-point-title { display: block; min-height: 4rem; text-align: center; margin-bottom: 1rem; }

/* アコーディオン */
details[open] summary svg { transform: rotate(180deg); }
details summary svg { transition: transform 0.3s ease; }
summary { list-style: none; outline: none; }
summary::-webkit-details-marker { display: none; }

@media (max-width: 767px) {
    .fv-point-title { min-height: auto; margin-bottom: 0.5rem; }
    .custom-w-max { width: 100%; } /* スマホでは全幅 */
}
@media (min-width: 768px) {
    .custom-w-max { width: max-content; }
}

/* --- 特典ボックスの枠線色を固定 --- */

/* オレンジの枠線 */
.custom-border-orange {
    border-color: #ea580c !important; /* orange-600相当 */
}

/* 緑（ライム）の枠線 */
.custom-border-lime {
    border-color: #65a30d !important; /* lime-600相当 */
}

.appli_exec {
    position: fixed;
    top: 15vh;
    left: 80%;
    z-index: 200;
    background-color: rgba(16, 143, 234, 0.8);
    border-radius: 8px;
    width: 18%;
}
.appli_exec p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.2em 0;
    padding: 0.8em;
    font-size: 14px;
}

.custom-footer-companyname {
    font-size: 14px;
    display: block;
}

.custom-footer-address {
    font-size: 12px;
    display: block;
}

.sns-icon-offset{
    margin-top: -15px;
    margin-right: -15px;
}

/* 768px以上のPCサイズ */
@media (min-width: 768px) {
    .custom-footer-companyname {
    font-size: 16px;
    display: block;
}
    .custom-footer-address {
        font-size: 14px;
    }
}