@charset utf-8;

/* 基本設定 */
body {
    font-family: 'Segoe UI', 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8e21a;**
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h2, h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
}


h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

p.lead {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

p.tagline {
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff; /* メインカラー */
    text-align: center;
    margin-bottom: 30px;
}

iframe#pc {
    height: 15vh;
}

/* ボタンのスタイル */
.bigbtn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: #f8e21a; /* メインカラー */
    color: white;
    border: 2px solid #f8e21a;
}

.primary-btn:hover {
    background-color: #998b0b;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: #6c757d; /* サブカラー */
    color: white;
    border: 2px solid #6c757d;
}

.secondary-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.large-btn {
    padding: 18px 35px;
    font-size: 1.5em;
    animation: pulse 1.5s infinite; /* ボタンをアニメーションさせる */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ヘッダー/ヒーローセクション */
.hero-section {
     background: url('../img/hobby_hero.jpeg') no-repeat center center/contain; 
    color: #f8e21a;
    padding: 80px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section2 {
    background-color: #007bff; /* 背景画像を設定 */
    color: white;
    padding: 80px 0;
    text-align: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section2 h1 {
    color: white;
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section2 .tagline {
    color: #ffd700;
    font-size: 1.6em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.cta-buttons {
    margin-top: 40px;
}

.cta-buttons a {
    padding: 2.5% 10%;
}

/* セクション共通スタイル */
.section-padded {
    padding: 60px 0;
}

.bg-light {
    background-color: #f0f0f0;
}

/* 特徴グリッド */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1 1 calc(33% - 40px); /* 3列表示 */
    min-width: 280px;
}

.feature-item h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.4em;
}

/* 買取対象カテゴリー */
.item-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.category-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1 1 calc(33% - 40px); /* 3列表示 */
    min-width: 280px;
}

.category-item h3 {
    text-align: left;
    color: #007bff;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.category-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.category-item ul li::before {
    content: '▶'; /* 箇条書きのアイコン */
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 買取ステップ */
.step-by-step {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1 1 calc(33% - 60px); /* 3列表示 */
    min-width: 280px;
    position: relative;
    padding-top: 60px; /* 数字分のスペースを確保 */
}

.step-number {
    position: absolute;
    top: -25px; /* 上に飛び出すように */
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border: 3px solid #f0f0f0; /* 背景色に合わせてボーダー */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.step-item h3 {
    margin-top: 15px; /* 数字との間隔 */
    color: #007bff;
}

.note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #666;
}

/* 選ばれる理由 */
.reason-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.reason-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1 1 calc(33% - 40px); /* 3列表示 */
    min-width: 280px;
}

.reason-item h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.4em;
}

/* FAQ */
.faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    text-align: left;
    font-size: 1.2em;
    margin-bottom: 10px;
    cursor: pointer; /* クリック可能であることを示す */
    position: relative;
    padding-right: 30px;
    color: #007bff;
}

.faq-item p {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 20px; /* Qの文字の分だけインデント */
    display: block; /* 初期表示で表示、JavaScriptで制御することも */
}

/* ページ下部のCTA */
.cta-bottom {
    background-color: #007bff; /* メインカラー */
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-bottom h2, .cta-bottom p {
    color: white;
}

.cta-bottom h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-bottom .lead {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.cta-bottom .sub-text {
    margin-top: 20px;
    font-size: 1.1em;
    opacity: 0.9;
}

/* フッター */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.footer-nav ul {
    padding: 0;
    list-style: none;
    margin-top: 15px;
}

.footer-nav ul li {
    display: inline;
    margin: 0 10px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
}

.footer-nav ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ページトップ/固定バナーの基本スタイル */
#page_top {
    position: fixed; 
    bottom: -100px;  
    right: 20px;     
    z-index: 1; 
    opacity: 0;   
    transition: bottom 0.5s ease-out, opacity 0.5s ease-out; 
}

/* JavaScriptで追加されるクラス */
#page_top.show {
    bottom: 20px; 
    opacity: 1;  
}

/* バナー画像のスタイル (必要に応じて調整) */
#page_top .fix_line {
    display: block; 
    max-width: 370px;
    height: auto;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
    cursor: pointer;
}

/* スマートフォンでの表示調整 (任意) */
@media (max-width: 768px) {
    #page_top {
        right: 10px; 
    }
    #page_top .fix_line {
        max-width: 300px; 
    }
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1em;
    }
    .hero-section {
    background: url(http://localhost:55108/img/hobby_hero_sp.jpeg) no-repeat center bottom / 100%;
    height: auto;
    min-height: 425px;
    margin: 59px 0 0 0;
    padding: 238px 0 0 0;
}
    
    .hero-section2 {
        padding: 55px 0;
        min-height: 350px;
    }
    .hero-section2 h1 {
        font-size: 2.5em;
    }
    .hero-section2 .tagline {
        font-size: 1.2em;
    }
    .bigbtn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .large-btn {
        padding: 15px 30px;
        font-size: 1.3em;
    }
    .feature-item, .category-item,.reason-item {
        flex: 1 1 100%; /* 小さい画面では1列表示 */
        max-width: 400px; /* ある程度の幅制限 */
    }
    
    .step-item {
    flex: 1 1 100%;
    padding-top: 35px;
    max-width: 400px;
}
    
    .step-by-step {
        flex-direction: column; /* 縦並び */
        align-items: center;
    }
    .step-number {
        margin-bottom: 10px;
    }
    .faq-item p {
        padding-left: 0;
    }
    
    footer {
        padding: 10px 0;
    }
}