.product-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 100px;
    background-color: #fff8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .product-page {
    margin-top: 50px;
    margin-left: 12px;
    margin-right: 12px;
      max-width: 1000px;

      padding: 20px;
      background-color: #fff8f0;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .product-main {
        flex-direction: column;
        align-items: center; /* 縦軸だけでなく横軸中央 */
        justify-content: center; /* 追加で横方向中央も補強 */
        text-align: center;
    }

    .product-visual {
        width: 80%;
        max-width: 280px; /* 画像幅の上限も設定 */
        margin: 0 auto 16px auto; /* 左右自動で中央寄せ */
    }

     .product-info {
         min-width: 0;            /* 幅制限解除 */
         width: 90%;              /* 少し余白を残す */
     }
     .product-cover {
       text-align: center;
     }
}

/* 商品ビジュアル */
.product-visual {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.product-cover {
    max-width: 280px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #c8e6c9; /* 薄緑の枠 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
/* hoverはPC（768px以上）のみ */
@media (min-width: 769px) {
    .product-cover:hover {
        transform: scale(1.05) rotate(-2deg); /* わずかに傾けて遊び心 */
    }
}

/* 横並びにするための親コンテナ */
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* 表紙と情報の間隔 */
    align-items: flex-start;
    margin-bottom: 40px; /* 下との余白 */
}

/* 商品ビジュアル */
.product-visual {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 商品情報部分 */
.product-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* タイトル */
.product-title {
    font-size: 2.4em;
    margin: 20px 0 16px 0; /* 上に余白を追加して表紙と離す */
    line-height: 1.2;
    color: #2b3e2f;
}

/* サブタイトル */
.product-subtitle {
    font-size: 1.2em;
    margin: 16px 0 12px 0; /* 上下マージンでタイトルと購入ボタンとの間隔 */
    line-height: 1.4;
    color: #6a6a6a;
    border-bottom: 2px dashed #c8e6c9; /* 点線を下に追加 */
    padding-bottom: 8px; /* 点線と文字の間隔 */
}
/* 価格・購入ボタン */
.purchase-section {
    margin: 0; /* 上マージンを消してタイトル下にぴったり */
    display: flex;
    align-items: center;
    gap: 16px; /* ボタンと価格の間隔を少し詰める */
}
.price {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6f61; /* 優しい赤 */
}

.buy-button {
    padding: 10px 20px;
    background-color: #ffd97d; /* パステルオレンジ */
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.3s;
}

.buy-button:hover {
    transform: translateY(-3px);
    background-color: #ffca5c;
}

/* セクションタイトル */
.section-title {
    font-size: 1.5em;
    margin: 30px 0 10px;
    padding-bottom: 5px;
    color: #3e7d5e;
    border-bottom: 2px dashed #c8e6c9; /* 柔らかいライン */
}

/* 魅力ポイント */
.features-list {
    list-style: none;
    padding-left: 0;
}

.feature-item {
    margin-bottom: 10px;
    background-color: #e0f7fa;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
    font-weight: 500;
    color: #0F5474;
}

.feature-item::before {
    position: absolute;
    left: 10px;

}

/* 試し読みセクション */
.sample-section {
    margin: 40px 0;
}

/* 親の中央に合わせる */
.sample-viewer {
    width: 100%;            /* 親幅に合わせる */
    max-width: 100%;        /* 飛び出さない */
    margin: 0 auto;         /* 中央揃え */
    padding: 15px;
    box-sizing: border-box; /* paddingを幅に含める */
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    background-color: #fefefc;
    text-align: center;
    position: relative;
}

/* ページカード */
.sample-page {
    display: none;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 auto;
}


.sample-page.active {
    display: block;
}

.sample-page img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid #c8e6c9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* サンプル説明 */
.sample-note {
    font-size: 0.95em;
    margin-bottom: 12px;
}

/* コントロールボタン */
.sample-controls {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sample-button {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    background-color: #f0fff4;
    cursor: pointer;
    transition: 0.2s, transform 0.2s;
    font-size: 1em;
}

.sample-button:hover {
    background-color: #d8f0e0;
    transform: translateY(-2px);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .sample-viewer {
        border: none;
        padding: 0;
        background: none;
        box-shadow: none;
        width: 100%;
    }

    .sample-page {
        display: block;       /* 常に表示 */
        width: 95%;           /* product-page 幅に合わせる */
        margin: 20px auto;    /* 中央揃え */
        padding: 0;           /* 余白は画像側で調整 */
        box-sizing: border-box;
    }

    .sample-page img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .sample-controls {
        display: none; /* ボタン非表示 */
    }

    .sample-note {
        display: none; /* noteも非表示 */
    }
}

    .sample-note {
        font-size: 1em;
    }

    .sample-controls {
        gap: 8px;
    }

    .sample-button {
        padding: 12px 20px;
        font-size: 1.05em;
    }
}

/* キャラクター */
.character-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.character-item {
    text-align: center;
    width: 150px;
    transition: transform 0.3s;
}

.character-item:hover {
    transform: translateY(-5px);
}

.character-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.character-name {
    font-weight: bold;
    margin: 5px 0 0 0;
    font-family: "Comic Sans MS", cursive, sans-serif;
    color: #3e7d5e;
}

.character-description {
    font-size: 0.9em;
    color: #555;
}

/* 商品説明 */
.product-description {
    margin: 30px 0;
    line-height: 1.6;
    padding: 15px;
    background-color: #f0fff4;
    border-radius: 12px;

}
.description-text{
  color: #6b8e23;
}
/* 奥付全体 */
.product-meta {
    margin-top: 16px; /* サブタイトルとの間隔 */
    background-color: #f0fff4; /* 柔らかい薄緑背景 */
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px dashed #c8e6c9; /* 点線の枠で可愛く */
}

/* 奥付ブロック全体 */
.product-meta-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px; /* サブタイトルとの間隔 */
}

/* 各ブロック */
.meta-block {
    background-color: #f0fff4; /* 柔らかい薄緑 */
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed #c8e6c9;
    flex: 1 1 140px; /* 横幅最小140pxで伸縮 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ラベル */
.meta-label {
    font-size: 0.85em;
    color: #3e7d5e;
    font-weight: bold;
    margin-bottom: 4px;
}

/* 値 */
.meta-value {
    font-size: 0.95em;
    color: #555;
}
.reviews {
    margin-top: 40px;
}

.reviews h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #3e7d5e;
    text-align: center;
}

.review-card {
    background-color: #f0fff4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #c8e6c9;
    margin-right: 12px;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: bold;
    color: #3e7d5e;
    margin-bottom: 4px;
}

.review-stars {
    color: #ffb400;
}

.review-text {
    font-size: 0.95em;
    line-height: 1.4;
    color: #555;
}
.recommended-books {
    margin-top: 40px;
}

.recommended-books h2 {
    font-size: 1.8em;
    color: #3e7d5e;
    margin-bottom: 20px;
    text-align: center;
}

.book-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.book-card {
    background-color: #f0fff4;
    border-radius: 12px;
    padding: 12px;
    width: 200px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s;
}

.book-card:hover {
    transform: translateY(-4px);
}

.book-cover {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #c8e6c9;
    margin-bottom: 8px;
}

.book-title {
    font-size: 1em;
    font-weight: bold;
    color: #3e7d5e;
    margin-bottom: 4px;
}

.book-desc {
    font-size: 0.85em;
    color: #555;
    line-height: 1.3;
}
