/* 基本の設定 */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #fefefe;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}
.center-image {
    display: block;
    margin: 0 auto;
    width: auto; /* 必要に応じてサイズを調整 */
}
.highlight-link {
    display: inline-block;
    font-size: 18px; /* フォントサイズを大きめに */
    font-weight: bold;
    color: #ffffff; /* テキストカラーを白に */
    background-color: #8B5E83; /* 目立つ背景色を設定 */
    padding: 10px 15px; /* パディングを追加してボタンのように */
    text-decoration: none; /* 下線を削除 */
    border-radius: 5px; /* 角を少し丸める */
    transition: background-color 0.3s; /* ホバー時のアニメーション */
}

.highlight-link:hover {
    background-color: #734267; /* ホバー時の背景色 */
}

/* リンクのスタイル（全ページ共通） */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #8B5E83;
    text-decoration: underline;
}

/* container の幅を画面全体に合わせる */
.container {
    max-width: 100%; /* ページ全体の幅に広げる */
    padding: 0;      /* 余白をなくす */
    margin: 0 auto;  /* 中央揃え */
    text-align: center;
    box-sizing: border-box;
}
/* angelheart画像のスタイル */
.angelheart-image {
    display: block;
    width: 100%;     /* 画像を画面幅いっぱいに */
    height: auto;    /* 高さは自動で調整 */
    margin: 0 auto;
}
/* angelheart2画像のスタイル */
.angelheart2-image {
    display: block;
    width: 80%;         /* 画面の80%幅に設定 */
    max-width: 600px;   /* 最大幅を500pxに設定（必要に応じて調整） */
    height: auto;       /* 縦横比を保つ */
    margin: 0 auto;     /* 中央揃え */
}

/* タイトル画像 */
.top-title-image, .title-image {
    display: block;
    width: 100%;
    max-width: 600px; /* 必要に応じて最大幅を指定 */
    height: auto;
    margin: 0 auto; /* 上下の余白を 0 に設定 */
    margin-bottom: 5px; /* 画像の下に少し余白を残す */
}

/* アイテムリスト */
.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* アイテム画像 */
.top-item-image, .item-image {
    width: 100%;
    max-width: 500px; /* アイテム画像の最大幅を広く設定 */
    height: auto;
    object-fit: cover;
    margin: 0 auto;
}

/* 商品詳細ページのセクションレイアウト */
.item-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    box-sizing: border-box;
    text-align: left;
}

/* 商品内容のスタイル */
.item-content {
    max-width: 600px; /* 幅を広げる */
    flex-grow: 1;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 天使の名前（タイトル）のフォントサイズ */
.item-title {
    font-size: 30px; /* フォントサイズをさらに大きく設定 */
    color: #8B5E83;
    font-weight: bold;
    text-align: center;
}

/* 説明テキスト */
.description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 全幅のテキストセクション */

.text-section {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    box-sizing: border-box;
    text-align: center; /* 中央に揃える */
}

.text-section p, .text-section h3 {
    text-align: left; /* pやh3タグだけ左揃え */
}



/* テキストセクション内のリンクのスタイル */
.text-section a {
    display: inline-block;       /* ブロック要素として扱い、余白を設定しやすく */
    color: #8B5E83;              /* リンクの文字色 */
    font-weight: bold;           /* 太字で強調 */
    font-size: 1.1em;            /* 少し大きめのフォントサイズ */
    padding: 10px 15px;          /* 内側の余白 */
    border: 2px solid #8B5E83;   /* リンクを囲むボーダー */
    border-radius: 8px;          /* 角を少し丸める */
    text-decoration: none;       /* 下線を消す */
    transition: background-color 0.3s, color 0.3s; /* ホバー時のスムーズな変化 */
}

.text-section a:hover {
    background-color: #8B5E83;   /* ホバー時の背景色 */
    color: #fff;                 /* ホバー時の文字色を白に変更 */
}
/* 背景セクションのスタイル */
.background-section {
    background-color: #f0f4f8;
    padding: 20px;
    margin: 40px auto;
    max-width: 1000px; /* 最大幅を広く設定 */
    border-left: 4px solid #8B5E83;
    box-sizing: border-box;
    border-radius: 8px;
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
}

.background-section h4 {
    color: #8B5E83;
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* 基本の .notice 要素のスタイル */
.notice {
    font-size: 12px;
    color: #888;
    text-align: center; /* テキストを中央揃え */
    margin-top: 40px;
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;           /* フレックスボックスを使用 */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center;     /* 垂直方向に中央揃え */
}

/* 疑似要素でテキストを追加 */
.notice::before {
    content: "";
    display: inline-block;
}

/* フッター */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    margin-top: 60px;
}

.footer-link {
    color: black;
    text-decoration: none;
}

.footer-link:hover {
    color: blue;
    text-decoration: underline;
}

/* ページナビゲーションのスタイル */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 200px;
}

.page-number {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    transition: background-color 0.3s, color 0.3s;
}

.page-number.active {
    background-color: #ddd;
    color: #333;
}

.page-number:hover {
    background-color: #f0f0f0;
    color: #8B5E83;
}

/* スマホ表示での調整 */

/* 画面幅が768px以下の場合に適用するスタイル（スマホ表示） */
@media (max-width: 768px) {
    /* コンテナの幅を広げる */
    .container {
        max-width: 100%; /* 幅を画面幅いっぱいに */
        padding: 10px; /* コンテンツの左右の余白を少し狭くする */
    }

    /* 背景セクションの幅を広げる */
    .background-section {
        max-width: 100%;
        padding: 10px;
        margin: 20px auto; /* 背景セクションの上下の余白を少しだけ残す */
    }


    .item-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-section {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .top-item-image, .item-image {
        max-width: 100%; /* モバイルでは画面幅いっぱいに表示 */
    }

    .item-content {
        padding: 0 10px;
    }

    .top-item-image {
        max-width: 100%; /* 画像が小さくならないように調整 */
    }
}
