/* style.css */

/* ==========================================
   リセット & 基本設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    /* 追従フッターの被り防止用パディング */
    padding-bottom: 70px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ==========================================
   レイアウト共通
   ========================================== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #c2410c;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    border-radius: 2px;
}

.section-title_wh {
    text-align: center;
    font-size: 2rem;
    color: #FFF;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 12px;
    text-shadow: 0px 0px 4px black;
}

.section-title_wh::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FFF;
    border-radius: 2px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #ea580c;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #c2410c;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.1rem;
}

.btn-line {
    background-color: #06c755;
    color: #ffffff;
}

.btn-white {
    background-color: #ffffff;
    color: #c2410c;
}

/* ダミー画像枠 */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background-color: #ffedd5;
    border: 2px dashed #fdba74;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9a3412;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    gap: 8px;
}

.image-placeholder.small {
    min-height: 160px;
}

.image-placeholder.full-img {
    border-radius: 0;
    min-height: 280px;
    background-color: #fed7aa;
}

/* ==========================================
   ヘッダー
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c2410c;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    color: #475569;
}

/* ==========================================
   ヒーローセクション (lycolyco.net スタイル)
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    background-color: #fff7ed;
    background-image: url('images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    padding: 40px 0 80px; /* 上部ロゴ用の余白調整 */
    overflow: hidden;
}

/* ヒーロー内中央ロゴスタイル */
.hero-logo-wrapper {
    text-align: center;
    margin-bottom: 4px;
}

.hero-logo-img {
    max-width: 360px; /* PCでのロゴ最大幅 */
    width: 100%;
    height: auto;
    display: inline-block;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ==========================================
   概要セクション（幅の基準ブロック）
   ========================================== */
.about-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.about-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(194, 65, 12, 0.1);
    border-top: 4px solid #ea580c;
    text-align: center;
}

.about-card h2 {
    color: #c2410c;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p + p {
    margin-top: 8px;
}

/* ==========================================
   郵送案内（テキスト＆画像横並びブロック）
   ========================================== */
.shipping-guide-section {
    padding-top: 40px;
    padding-bottom: 36px;
}

.shipping-guide-title-img {
    display: block;
    margin: 0 auto -24px;
    position: relative;
    z-index: 2;
}

.shipping-guide-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-top: 5px solid #dc2626;
    border-radius: 12px;
    padding: 44px 32px 32px;
    box-shadow: 0 6px 18px rgba(194, 65, 12, 0.06);
}

.shipping-guide-text {
    flex: 1 1 55%;
}

.shipping-guide-text h3 {
    color: #b91c1c;
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.shipping-guide-text p {
    color: #333333;
    line-height: 1.8;
}

.shipping-guide-text p + p {
    margin-top: 10px;
}

.shipping-guide-media {
    flex: 1 1 45%;
    max-width: 440px;
}

.shipping-guide-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   ご利用の流れ
   ========================================== */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step-card {
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), url('images/step_bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding: 30px 20px;
    text-align: center;
}

.step-icon {
    color: #ea580c;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.step-card h3 {
    color: #c2410c;
    margin-bottom: 8px;
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* ==========================================
   買取対象セクション (3列化)
   ========================================== */
.target-section {
    background-color: #fff7ed;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.target-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.05);
    border: 1px solid #ffedd5;
}

.target-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #c2410c;
}

.post-buy-box {
    background-color: #ffffff;
    border: 2px solid #fdba74;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.post-buy-box h3 {
    color: #c2410c;
    margin-bottom: 8px;
}

/* 買取対象カード内の画像設定 */
.target-card-img {
    width: 100%;
    height: 160px; /* 画像の高さを統一（お好みで調整してください） */
    object-fit: cover; /* 枠に合わせて綺麗にトリミング表示 */
    border-radius: 8px; /* 角丸デザイン */
    display: block;
}

/* ==========================================
   お客様の声セクション (縦並び化 ＆ 先払い買取とは？の幅へ統一)
   ========================================== */
.voice-section {
    background-color: #432b29;
    background-image: url('images/voice_bg.jpg');
    background-repeat: no-repeat;
    background-position: center bottom 0;
    background-size: contain;
}

.voice-grid {
    display: grid;
    /* 3列から1列（縦並び）に変更 */
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    line-height: 2;
}

.voice-card {
    background-color: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 40px 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.voice-user {
    display: inline-block;
    color: #ea580c;
    font-weight: bold;
    font-size: 0.9rem;
}

.voice-title {
    color: #b91c1c;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* ==========================================
   よくある質問 (FAQ) (常時開いたフラットレイアウト)
   ========================================== */
.faq-section {
    background-color: #fff7ed;
}

.faq-list {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.04);
}

/* 質問タイトル部分 */
.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #c2410c;
    padding-bottom: 15px;
    border-bottom: 1px dashed #fdba74;
}

.faq-q-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ea580c;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* 回答部分（常に表示） */
.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 15px;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-a-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #dc2626; /* 赤色のAバッジ */
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.faq-a-content {
    flex: 1;
    padding-top: 3px;
}

.faq-a-content p {
    margin: 0;
}

/* スマホ表示対応 */
@media (max-width: 768px) {
    .faq-item {
        padding: 20px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .faq-q-badge,
    .faq-a-badge {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
}

/* ==========================================
   CTA・フッター
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, #c2410c 0%, #dc2626 100%);
    color: #ffffff;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.site-footer {
    background-color: #290d07;
    color: #fed7aa;
    padding: 40px 0 20px;
    text-align: center;
}

.site-footer h3 {
    color: #ffffff;
    margin-bottom: 6px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #fdba74;
}

/* ==========================================
   固定追従フッター（申込ボタンブロック）
   ========================================== */
.sticky-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(41, 13, 7, 0.94);
    backdrop-filter: blur(8px);
    padding: 10px 15px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.18);
    z-index: 9999;
}

.sticky-cta-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.sticky-btn:active {
    transform: scale(0.98);
}

.sticky-btn-line {
    background-color: #06c755;
}

.sticky-btn-web {
    background-color: #ea580c;
}

/* ==========================================
   レスポンシブ設定 (スマホ対応)
   ========================================== */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .main-nav {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-features li {
        justify-content: center;
    }

    .hero-visual {
        max-width: 80%;
        margin-top: 20px;
    }

    /* スマホ表示：画像を上・テキストを下 */
    .shipping-guide-box {
        flex-direction: column-reverse;
        padding: 22px;
        gap: 20px;
    }

    .shipping-guide-media {
        max-width: 100%;
        width: 100%;
    }

    .shipping-guide-text {
        width: 100%;
    }

    .shipping-guide-text h3 {
        font-size: 1.15rem;
    }

    .campaign-box {
        padding: 12px 15px;
    }

    .campaign-label {
        font-size: 0.85rem;
    }

    .campaign-text {
        font-size: 1.05rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .fullwidth-image-wrapper {
        width: 768px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .flow-steps,
    .target-grid {
        grid-template-columns: 1fr;
    }

    .voice-card {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .sticky-cta-container {
        flex-direction: row;
        gap: 8px;
    }

    .sticky-btn {
        font-size: 0.85rem;
        padding: 10px 5px;
    }

    .hero-bottom-bg {
        height: 420px; /* スマホ時の高さ調整 */
    }
    
    img.hero-foreground-img {
        max-height: 300px;
    }

    .header-container {
        height: 64px;
    }

    .hero-logo-img {
        max-width: 90%; /* スマホ時のロゴサイズ調整 */
    }

    .logo img {
        width: 90%;
    }

    .hero-section {
        max-height: 720px;
        background-position: center center;
    }
 
    /* --- お客様の声セクション：スマホ時の背景画像調整 --- */
    .voice-section {
        background-size: auto 240px; /* 画像の高さを約240pxに固定して縦幅を確保 */
        background-position: center top 0; /* 上部・中央揃え（左右を自動カット） */
    }
}