/* --- 1. ベースの設定 --- */
body {
    margin: 0;
    padding: 0;
    background-color: #111111; /* 背景は黒 */
    color: #ffffff;
    font-family: 'Lora', serif; /* 横線が太く画面でも超絶読みやすい高級明朝体 */
    text-align: center; /* すべて中央揃え */
    letter-spacing: 0.05em; /* 文字と文字の間の隙間を少し広げて読みやすくする */
}

/* 読み込んだ大文字小文字対応の高級フォント（Lora）を指定 */
h1, h2, h3, .buy-btn, .list-btn {
    font-family: 'Lora', serif;
    letter-spacing: 0.08em; /* 見出しやボタンはさらに少し間隔を開けてゆったりと見せる */
}

/* --- 2. トップ画像（一覧ページの最も大きなところ） --- */
.hero {
    background-image: url('images/hero_bg.webp'); /* スマホ表示用に軽量化・高速化した背景画像 */
    background-color: #222222;
    background-size: cover;
    background-position: center;
    padding: 150px 20px;
    border-bottom: 2px solid #d4af37; /* 金のフチ */
}

/* --- 3. タイトル帯（詳細ページ用の少し小さな見出し） --- */
.hero-small {
    background-color: #222222;
    padding: 80px 20px;
    border-bottom: 2px solid #d4af37;
}

.title {
    font-size: 50px;
    color: #d4af37;
    margin: 0;
}

.subtitle {
    font-size: 20px;
    margin-top: 10px;
}

/* --- 4. 一覧ページのリスト構成 --- */
.product-list {
    padding: 50px 20px;
}

/* 商品をくくる「箱」。この中に表紙やボタンが入ります */
.product-item {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    max-width: 500px; /* 大きくなりすぎるのを防ぐ */
    margin: 0 auto 40px; /* 中央揃え ＋ 下に余白 */
    padding: 30px;
    border-radius: 8px; /* 角丸 */
}

.product-item h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #d4af37;
}

/* 本の表紙（仮枠）のためのスタイル */
.product-cover {
    width: 200px;
    height: 280px;
    background-color: #333333;
    margin: 0 auto 20px;
    line-height: 280px; /* 仮の文字を中央に */
    color: #a0a0a0;
    border: 1px solid #555555;
}

/* 実際の表紙画像を綺麗に表示するためのスタイル追加 */
.product-cover-img {
    display: block;
    width: 240px;
    height: 320px;
    object-fit: cover; /* 画像が歪まないように切り取る */
    margin: 0 auto 20px; /* 中央揃え ＋ 下余白 */
    border-radius: 4px; /* 本の角のように少し丸める */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8); /* 立体的な本に見せる黒い影 */
    border: 1px solid #555555; /* 上質な枠線 */
}

/* 詳細ページへ飛ぶためのボタン */
.list-btn {
    display: inline-block;
    border: 1px solid #d4af37; /* 金色の細い枠線 */
    color: #d4af37;
    padding: 10px 20px;
    text-decoration: none; /* リンクの青い線を消す */
    border-radius: 3px;
}

.list-btn:hover {
    background-color: #d4af37; /* マウスを乗せたら背景が金色に */
    color: #111111; /* 文字は黒に反転 */
}

/* --- 5. 詳細ページのコンテンツ --- */

/* 戻るボタン */
.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #a0a0a0; /* 控えめなグレー */
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    color: #ffffff; /* 乗せたら白く光る */
    text-decoration: underline;
}

/* 説明文 */
.concept {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.concept h2, .gallery h2 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 20px;
}

/* サンプル枠（画像・動画）共通の設定 */
.gallery {
    padding: 0 20px 40px;
}

/* サンプル画像・動画の親ボックス (保護機能を追加) */
.gallery-item {
    position: relative; /* 子要素（透かし）を重ねるための基準 */
    display: inline-block;
    margin: 10px;
    user-select: none; /* テキスト選択禁止 */
    -webkit-user-drag: none; /* 画像のドラッグ禁止 */
}

/* 本物の画像・動画本体 */
.sample-image {
    display: block;
    width: 212px;
    height: 275px;
    background-color: #333333;
    border: 2px solid #d4af37;
    object-fit: cover;
    pointer-events: none; /* 直接画像を触れないようにする（右クリック保存対策） */
}

/* 画像の上に重なる「透明な壁」と「透かし文字」 */
.sample-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* 透明な層でクリックをガード */
    z-index: 10;
}

/* 「SAMPLE」という透かし文字 */
.sample-overlay::after {
    content: "SAMPLE";
    font-size: 32px;
    font-weight: bold;
    color: rgba(212, 175, 55, 0.4); /* 金色の薄い透明文字 */
    border: 2px solid rgba(212, 175, 55, 0.4);
    padding: 5px 15px;
    transform: rotate(-30deg); /* 斜めにする */
    pointer-events: none; /* 透かし自身はクリックを邪魔しない */
    user-select: none;
}

/* --- 6. 購入ボタン --- */
.buy-section {
    padding: 20px 20px 80px;
}

.buy-btn {
    display: inline-block;
    background-color: #d4af37;
    color: #111111; /* 黒文字で目立たせる */
    padding: 15px 40px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 5px;
}

.buy-btn:hover {
    background-color: #ffffff;
}

/* --- 7. フッター --- */
footer {
    padding: 20px;
    font-size: 12px;
    color: #888888;
    border-top: 1px solid #333333;
}

footer a {
    color: #aaaaaa;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #d4af37;
    text-decoration: underline;
}

/* --- 8. 法的文書用スタイル --- */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left; /* 規約文は左揃えが読みやすい */
    line-height: 1.8;
}

.legal-content h2 {
    color: #d4af37;
    font-size: 22px;
    margin-top: 30px;
    border-bottom: 1px solid #333333;
    padding-bottom: 5px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    color: #cccccc;
}

.legal-content ul {
    padding-left: 20px;
}

/* --- 9. FAQ セクション --- */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: left;
}

.faq-section h2 {
    color: #d4af37;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #d4af37;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

/* --- 10. バイラル・シェアセクション --- */
.share-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.share-btn.ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* --- 11. コミュニティ・リンク（ギャラリー代わりの誘導） --- */
.community-link {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.community-link p {
    color: #aaaaaa;
    margin-bottom: 20px;
}

.ig-link-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.2s;
}

.ig-link-btn:hover {
    transform: scale(1.05);
}
