/* =========================================
   リセットCSSと基本設定
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   サイト全体の設定（PCでスマホサイズに固定）
   ========================================= */
#app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: hidden;
}

/* =========================================
   1. ヘッダー（上部固定: 48px）
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 48px;
    background-color: #ffffff;
    z-index: 100;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    display: flex;
    justify-content: center;  /* ← 中央寄せに変更 */
    align-items: center;
    height: 100%;
    padding: 8px 24px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex-grow: 1;
    cursor: pointer;
    color: inherit;
}

/* ロゴ中央にするための追加クラス */
.center-logo {
    justify-content: center; /* ← 子要素(SVG)を中央に */
}

.header-logo-svg {
    z-index: 6;
    align-self: center;
    min-width: 112px;
    max-width: 112px;
    order: 1;
    width: 112px;
    flex-grow: 1;
    margin: 0 auto;          /* ← 中央寄せ */
    height: 24px;
    border-radius: 0px;
    display: flex;
    align-items: center;
}

.header-logo-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* （存在しても害はないが、ボタン自体はHTMLから削除済み）
.login-button { ... } */

/* =========================================
   2. メインコンテンツ
   ========================================= */
.content {
    /* padding-topを0にリセットし、ヒーローセクションをヘッダーの下に配置 */
    padding-top: 0; 
    /* ★修正: padding-bottom をフッターの高さ分（60px）に調整 */
    padding-bottom: 60px;
    background-color: #ffffff;
    /* min-height の計算も調整 (100vh - ヘッダー48px - フッター60px) */
    min-height: calc(100vh - 48px - 60px); 
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Voicy メインビジュアル スライダー (全幅にフィット) --- */
.voicy-hero-section {
    width: 100%; 
    max-width: 480px; 
    margin: 0 auto; 
    
    /* ★修正点1: ヘッダー（48px）の分だけ下に下げる */
    margin-top: 48px;
    
    height: 250px; 
    position: relative; 
    margin-bottom: 20px;
    
    overflow: hidden; 
}

/* Swiperコンテナの幅を親コンテナ（.voicy-hero-section）の領域全体に合わせる */
.voicy-hero-section.swiper-container {
    width: 100%;
    margin-left: 0; 
    margin-right: 0;
}

.voicy-hero-section .swiper-slide {
    width: 100% !important; 
    padding: 0;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

.voicy-hero-section .hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block; 
}

/* 各スライドの背景画像（添付画像を使用） */
.voicy-hero-section .slide-1 {
    background-image: url("img/main_slider_1.jpg");
}
.voicy-hero-section .slide-2 {
    background-image: url("img/main_slider_2.jpg");
}
.voicy-hero-section .slide-3 {
    background-image: url("img/main_slider_3.jpg");
}


/* ページネーションのスタイル */
.hero-pagination {
    position: absolute; 
    bottom: 10px !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5; 
    display: block !important; 
}

.hero-pagination .swiper-pagination-bullet {
    background: #1d9bf0; 
    opacity: 0.4;
    margin: 0 4px;
    width: 8px;
    height: 8px;
/* 白フチを追加 */
    box-shadow: 0 0 0 2px #ffffff; 
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ------------------------------------------------ */

/* =========================================
   2-2. スライダーセクション (note, X, Base Shop)
   ========================================= */
.slider-section {
    padding-top: 20px;
    padding-bottom: 10px;
}

/* 見出しと「もっと見る」 */
.heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    padding: 0;
}

.more-link {
    font-size: 12px;
    color: #1d9bf0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.more-link i {
    font-size: 10px;
    margin-left: 5px;
}

/* Base Shopのスライダーの下余白をゼロにする */
.content .slider-section:last-of-type {
    padding-bottom: 0;
}

/* Swiperのカスタム */
.swiper-container {
    margin-left: -15px;
    width: calc(100% + 15px);
    overflow: visible; 
}

.swiper-slide {
    display: block;
    width: 250px;
    height: auto;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 15px;
    cursor: pointer;
}

.swiper-wrapper {
    box-sizing: content-box;
}

/* カード内要素 */
.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 10px 0;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-source {
    font-size: 12px;
    color: #888;
    padding: 5px 10px 10px;
}

/* ページネーションを非表示（ヒーローセクション以外） */
.swiper-pagination {
    display: none;
}

/* --- Voicyカードのスタイル調整 (チャンネル一覧風) --- */
.swiper-boicy .swiper-slide {
    width: 140px; 
    border-radius: 4px;
    box-shadow: none;
    background: transparent; 
}

/* Voicyカード内の画像の高さを幅と同じくらいにし、正方形のイメージに */
.card-boicy img {
    height: 140px;
    border-radius: 4px;
}

/* Voicyカードのタイトルは画像の下にすぐ配置 */
.card-boicy .card-title {
    font-weight: 400; 
    padding: 5px 0 0; 
    font-size: 13px;
    -webkit-line-clamp: 3;
}

/* Voicyカードのソース（チャンネル名）は控えめに */
.card-boicy .card-source {
    font-size: 10px;
    color: #505559;
    padding: 2px 0 5px;
}
/* ------------------------------------------------ */

/* =========================================
   2-3. コピーライトセクション
   ========================================= */
.copyright-section {
    width: 100%;
    /* ★修正: 下パディングを増やし、フッターとの間にスペースを設ける */
    padding: 20px 0 30px; 
    text-align: center;
    background-color: #ffffff;
    margin-left: -15px;
    margin-right: -15px;
}

.copyright-section a {
    font-size: 12px;
    color: #505559;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

/* =========================================
   3. フッター（下部固定: 1層構造: 60px）
   ========================================= */
.footer-fixed { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    max-width: 480px; 
    margin: 0 auto; 
    z-index: 100; 
    background-color: #ffffff; 
}
/* ★削除: .footer-infoのスタイルは、HTMLから要素を削除したため不要 */
/* .footer-info { display: flex; justify-content: center; align-items: center; height: 40px; padding: 0 24px; font-size: 12px; background-color: rgba(255,255,255,0.7); backdrop-filter: blur(2px); border-top: 1px solid #eee; }
.footer-info .info-link { color: #505559; margin-right: 10px; word-break: break-word; }
.footer-info .info-icon i { font-size: 14px; color: #505559; } */
.bottom-nav { 
    height: 60px; /* ★修正なし: 元々60px */
    border-top: 1px solid #e0e0e0; 
}
.bottom-nav .nav-list { display: flex; justify-content: space-around; height: 100%; list-style: none; }
.bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 0; flex-grow: 1; row-gap: 4px; padding: 8px 0 6px; color: #505559; cursor: pointer; text-align: center; }
.bottom-nav .nav-item i { font-size: 24px; margin-bottom: 0; order: 1; }
.bottom-nav .nav-item span { font-size: 14px; font-weight: 400; line-height: 1.6; flex-grow: 0; flex-shrink: 0; width: auto; color: inherit; order: 2; margin: 0; white-space: nowrap; overflow: visible; word-break: break-word; }
/ .bottom-nav .nav-item.active { color: #1d9bf0; } /