/* 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: #1e40af;
    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-color: #3b82f6;
    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: #1e40af;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background-color: #2563eb;
    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: #1e40af;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.1rem;
}

.btn-line {
    background-color: #06c755;
    color: #ffffff;
}

.btn-white {
    background-color: #ffffff;
    color: #1e40af;
}

/* ダミー画像枠 */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background-color: #e2e8f0;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    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: #cbd5e1;
}

/* ==========================================
   ヘッダー
   ========================================== */
.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: #1e40af;
    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: #f4f7fc;
    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(0, 0, 0, 0.08);
    border-top: 4px solid #1e40af;
    text-align: center;
}

.about-card h2 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ==========================================
   ご利用の流れ
   ========================================== */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
}

.step-number {
    display: inline-block;
    background-color: #1e40af;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* ==========================================
   買取対象セクション (3列化)
   ========================================== */
.target-section {
    background-color: #f8fafc;
}

.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(0, 0, 0, 0.03);
}

.target-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #1e40af;
}

.post-buy-box {
    background-color: #ffffff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

/* 買取対象カード内の画像設定 */
.target-card-img {
    width: 100%;
    height: 160px; /* 画像の高さを統一（お好みで調整してください） */
    object-fit: cover; /* 枠に合わせて綺麗にトリミング表示 */
    border-radius: 8px; /* 角丸デザイン */
    display: block;
}

/* ==========================================
   お客様の声セクション (縦並び化 ＆ 先払い買取とは？の幅へ統一)
   ========================================== */
.voice-section {
    background-color: #1E4ACC;
    background-image: url('images/voice_bg.jpg');
    background-repeat: no-repeat;
    background-position: center top 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 #e2e8f0;
    border-radius: 12px;
    padding: 40px 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    width: 100%;
}

/* ==========================================
   よくある質問 (FAQ) (常時開いたフラットレイアウト)
   ========================================== */
.faq-section {
    background-color: #f8fafc;
}

.faq-list {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* 質問タイトル部分 */
.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #1e40af;
    padding-bottom: 15px;
    border-bottom: 1px dashed #cbd5e1;
}

.faq-q-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #1e40af;
    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: #ef4444; /* 赤色の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, #1e40af 0%, #1d4ed8 100%);
    color: #ffffff;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px;
    text-align: center;
}

/* ==========================================
   固定追従フッター（申込ボタンブロック）
   ========================================== */
.sticky-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    padding: 10px 15px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    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: #2563eb;
}

/* ==========================================
   レスポンシブ設定 (スマホ対応)
   ========================================== */
@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;
    }

    .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; /* 画像の高さを約320pxに固定して縦幅を確保 */
        background-position: center top 0; /* 上部・中央揃え（左右を自動カット） */
    }
}