@charset "UTF-8";

/* --- 基本設定 --- */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f4f7f9; /* 薄いグレー背景 */
}

/* コンテンツ幅を中央寄せにするためのコンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.site-logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0056b3; /* ITっぽい青 */
}

/* --- ヒーローセクション（トップ部分） --- */
.hero {
    background-color: #fff; /* 背景は白 */
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

/* PC表示：左右に並べる */
.hero-container {
    display: flex;
    align-items: center; /* 上下中央揃え */
    justify-content: space-between;
    gap: 40px;
}

/* テキストエリア */
.hero-content {
    flex: 1; /* 1の割合で幅を取る */
}

.hero-title {
    font-family: 'M PLUS Rounded 1c', sans-serif; /* 丸ゴシック（読み込み時のみ適用） */
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #2c3e50;
}

.title-sub {
    font-size: 1.2rem;
    color: #0056b3;
    font-weight: bold;
}

.hero-description {
    margin-bottom: 30px;
    color: #555;
}

.hero-description b {
    color: #0056b3;
    background: linear-gradient(transparent 60%, #dceeff 60%); /* マーカー線風 */
}

/* 画像エリア */
.hero-image {
    flex: 1.2; /* 画像を少し広めに取る */
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* 角を少し丸く */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* 影をつけて浮かせる */
}

/* --- ボタン --- */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ffc107; /* 目立つ黄色 */
    color: #333;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.3);
}
.btn-primary:hover {
    background-color: #ffdb4d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
}
.btn-secondary:hover {
    background-color: #e6f2ff;
}

/* --- スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse; /* 縦並びにして、画像を上にする */
        text-align: center; /* テキストを中央寄せ */
        gap: 30px;
    }
    .hero-image {
        text-align: center;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-buttons {
        justify-content: center; /* ボタンも中央寄せ */
    }
}

/* --- その他のスタイル --- */
.section-title {
    text-align: center;
    margin-top: 60px;
    color: #333;
}

/* --- ここから下を追記してください --- */

/* ヘッダーの調整（ナビゲーション追加） */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo a {
    text-decoration: none;
    color: inherit;
}
.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}
.site-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 5px 10px;
}
.site-nav a:hover,
.site-nav a.current {
    color: #0056b3;
}

/* 共通のセクション余白 */
.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ページヘッダー（一覧ページのタイトル部分） */
.page-header {
    background-color: #0056b3;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.page-header h1 {
    margin: 0;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* --- トップページ用：簡易マンガリスト --- */
.manga-list-simple {
    max-width: 800px;
    margin: 0 auto;
}
.manga-panel {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    margin-bottom: 20px;
}
.manga-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.panel-thumb {
    width: 150px;
    height: 120px;
    flex-shrink: 0; /* 幅を固定 */
}
.panel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせて切り取る */
    object-position: top; /* 上の方を表示 */
}
.panel-info {
    padding: 20px;
}
.panel-no {
    display: inline-block;
    background: #0056b3;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}
.panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* --- 一覧ページ用：マンガグリッド --- */
.manga-grid {
    display: grid;
    /* 画面幅に合わせてカラム数を自動調整（最低幅280px） */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* マンガカード */
.manga-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.card-thumb {
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s;
}
.manga-card:hover .card-thumb img {
    transform: scale(1.05); /* ホバーで少し拡大 */
}
.card-body {
    padding: 20px;
}
.card-no {
    color: #0056b3;
    font-weight: bold;
    font-size: 0.9rem;
}
.card-title {
    margin: 10px 0;
    font-size: 1.2rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.4;
}
.card-theme {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}
/* ダミーカード用 */
.manga-card.dummy {
    opacity: 0.6;
    pointer-events: none;
}

/* フッター */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* フッターを最下部に押しやる */
}
/* スマホ表示の調整 */
@media (max-width: 768px) {
    .panel-thumb {
        width: 100px;
        height: 100px;
    }
    .panel-title {
        font-size: 1rem;
    }
    .card-thumb {
        height: 150px;
    }
}
