/* --- Base & Variables --- */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
}

/* スマホ時のみボタン用の余白を作る */
@media (max-width: 767px) {
    body { padding-bottom: 80px; }
}

/* メインコンテンツ全体の下に余白を作り、フッターとの間隔を確保 */
main {
    padding-bottom: 80px;
}

@media (max-width: 767px) {
    /* 追従ボタンがあるため、さらに下に余白を追加 */
    main {
        padding-bottom: 120px;
    }
}

.l-container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* --- Quick Nav --- */
.p-quick-nav {
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
}
.p-quick-nav__items a {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
}

/* --- Floating CV --- */
.p-floating-cv {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    justify-content: center;
}

/* --- Steps Grid --- */
.p-steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.p-steps__item {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.p-steps__num {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

/* --- 利用者の声 --- */
.p-voice {
    /* セクション自体に上下余白を明示 */
    margin-top: 80px;
    margin-bottom: 80px;
}

.p-voice__slider {
    display: grid;
    gap: 20px;
    padding: 20px 5px;
}

/* スマホ表示 */
@media (max-width: 767px) {
    .p-voice__slider {
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .p-voice__slider::-webkit-scrollbar { height: 6px; }
    .p-voice__slider::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }
    .p-voice__slider::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 10px; }
}

/* PC表示 */
@media (min-width: 768px) {
    .p-voice__slider {
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
}

.p-voice__card {
    scroll-snap-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.p-voice__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.p-voice__icon {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.p-voice__rating { color: #f1c40f; font-size: 0.9rem; }

.p-voice__text {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.p-voice__user {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
}

/* --- Table & Common --- */
.c-star { color: #f1c40f; }
.c-badge--ranking {
    font-size: 0.7rem;
    background: #e74c3c;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}

/* --- Hero --- */
.p-hero {
    /* グラデーションの上に画像を重ねる手法（文字が読みやすくなります） */
    background: linear-gradient(rgba(45, 52, 70, 0.7), rgba(45, 52, 70, 0.7)), 
                url('./images/hero-bg.webp') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0; /* 少し高さを出しました */
    text-align: center;
}
.p-hero__title { font-size: 2rem; margin: 15px 0; }

/* --- 画像の基本設定 --- */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover; /* 枠に合わせてきれいに切り抜く */
}

/* --- ステップ画像 --- */
.p-steps__img {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee; /* 画像がない時の保険 */
}
.p-steps__img img {
    width: 100%;
    height: 100%;
}

/* --- 利用者の声アバター --- */
.p-voice__user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-voice__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}
.p-voice__avatar img {
    width: 100%;
    height: 100%;
}

/* --- Components --- */
.c-btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.c-btn--small {
    padding: 8px 15px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.85rem;
}

.c-btn--shiny {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.c-btn--shiny::after {
    content: "";
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: shiny 3s infinite;
}

@keyframes shiny {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* --- 比較表 --- */
.p-comparison__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.c-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.c-table th, .c-table td {
    padding: 20px 15px;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.c-table thead th {
    background: #fdfdfd;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 767px) {
    .is-sticky {
        position: sticky;
        left: 0;
        background: #fff !important;
        z-index: 2;
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    }
}

/* --- 見出し --- */
.c-heading-main {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.c-heading-main::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- ユーティリティ --- */
.u-mgy-50 {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
}
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.c-badge--primary {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- アコーディオン --- */
.c-accordion { max-width: 800px; margin: 0 auto; }
.c-accordion__item {
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}
.c-accordion__title {
    width: 100%; padding: 20px;
    text-align: left; background: none; border: none;
    font-size: 1.05rem; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.c-accordion__title::after {
    content: ""; width: 8px; height: 8px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg); transition: 0.3s;
}
.c-accordion__title.is-open::after { transform: rotate(-135deg); }
.c-accordion__title span {
  margin-right: auto;
}
.c-accordion__content { display: none; padding: 0 20px 20px; color: #666; }

.p-faq {
    margin-top: 80px;
    margin-bottom: 100px; /* フッターとの間を広めにとる */
}

/* 質問文の頭に「Q」のマークをつける（オプション） */
.c-accordion__title::before {
    content: "Q.";
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 回答文の頭に「A」のマークをつける（オプション） */
.c-accordion__content {
    position: relative;
    padding-left: 45px; /* スペースを空ける */
}

.c-accordion__content::before {
    content: "A.";
    position: absolute;
    left: 20px;
    top: 2px; /* 位置の微調整 */
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ホバー時の挙動を少し優しく */
.c-accordion__title:hover {
    color: var(--primary-color);
    background: #fffafa;
}

/* --- フッターの調整 --- */
.l-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0 100px;
    margin-top: auto; /* コンテンツが少ない場合でも下に配置 */
}