/* --- box-sizingリセット: これが横幅はみ出しの主な解決策です --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- 基本リセットとフォント --- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f8f8; /* PC時の背景色（コンテンツの左右の余白部分） */
    color: #333;
    -webkit-text-size-adjust: 100%;
    text-align: center; /* コンテンツの中央揃えの基盤 */
    /* ↓【横スクロール防止】横方向のスクロールを強制的に非表示にする */
    overflow-x: hidden; 
}

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

/* --- 1. ヘッダー (Header) --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px; /* 上下を少し詰める */
    background-color: #fff;
    border-bottom: 1px solid #eee;
    
    /* PCでの中央配置と幅の制限 (768px) */
    max-width: 768px;
    margin: 0 auto;
    
    position: sticky; 
    top: 0;
    z-index: 1000;
}

/* 【★修正箇所★】ロゴ全体 (残りの文字) の色を設定 */
.header-logo {
    font-size: 20px;
    font-weight: bold;
    color: #5ca2a5; 
    text-decoration: none; 
    
    /* 最初の文字のスタイルを調整するために追加 */
    display: inline-flex; 
    align-items: baseline;
}

/* 【★追加箇所★】ロゴの最初の文字用のスタイル */
.logo-first-letter {
    color: #1a1a1a; 
    font-size: 24px; 
    font-weight: 900; 
    line-height: 1;
    margin-right: 1px;
}

.header-icons i {
    font-size: 20px;
    margin-left: 20px;
    color: #444;
}
/* アイコンとテキストを包むリンク */
.header-icons {
    display: flex;
    justify-content: flex-end; /* 右端に寄せる */
    align-items: center;       /* 上下中央を揃える */
    gap: 0px;
}

.header-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    /* ★ここがポイント：幅を固定することで、文字数に関わらず配置を安定させる */
    width: 53px; 
    flex-shrink: 0;           /* 画面が狭くなっても潰れないようにする */
}

/* アイコンのサイズ調整 */
.header-icon-item i {
    font-size: 19px;          /* 少しだけ大きくして視認性をアップ */
    height: 22px;             /* 高さを固定して文字との距離を一定にする */
    display: flex;
    align-items: center;      /* アイコンをその高さの中で中央に */
    justify-content: center;  /* 左右も中央に */
    color: #5ca2a5;
    width: 100%;
}

/* アイコン下のテキスト */
.header-icon-item span {
    font-size: 9px;
    font-weight: bold;
    color: #666;
    white-space: nowrap;
    
    /* ★文字を右寄りにずらす設定 */
    padding-left: 20px;      /* 左側に隙間を作って右へ押し出す */
    display: block;
    width: 100%;
    text-align: center;     /* 全体の中での位置を調整 */
}

/* ホバー時の色変化 */
.header-icon-item:hover i,
.header-icon-item:hover span {
    color: #3d6e70;
}
/* ローマ字部分専用のフォント指定 */
.logo-text-en {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: bold; /* 必要に応じて太さを調整してください */
}
.logo-small-text {
    font-family: inherit; /* ここはブラウザ標準や全体のフォントを引き継ぎます */
    font-size: 0.6em;    /* 必要に応じてサイズ調整 */
    margin-left: 5px;
}


/* ヘッダーロゴの小さい文字の部分のスタイル */
.header-logo .logo-small-text {
font-family: inherit;
    font-size: 0.6em; /* 親要素 (header-logo) の約65%のサイズにする */
    margin-left: 2px; /* クリルの前に少し間隔を空ける */
    vertical-align: super; /* わずかに上に揃えることで、より小さく見える効果を出す */
    color: #5ca2a5; /* メインのロゴより少し薄い色にしても良い */
}
/* --- 2. メインコンテンツ (Main Content) --- */
.main-content {
    /* PCでの中央配置と幅の制限 (768px) */
    max-width: 768px;
    margin: 0 auto; 
    text-align: left; /* コンテンツ内のテキストは左揃えに戻す */
    
    padding-bottom: 70px;
}

/* ヒーローセクション */
.hero {
    background-color: #fff;
    padding-bottom: 30px;
}

.hero-image-container {
    height: 300px;
    background-image: url('./img/20251214144307.jpg');
    background-size: cover;
    background-position: center;
}

.hero-text {
    padding: 20px;
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    /* コンセプトを強調するため、文字色を少し濃く */
    color: #333; 
}

.tagline {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 25px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
}

/* 【アクセントカラー: #5ca2a5】 */
.btn-primary {
    background-color: #5ca2a5;
    color: #fff;
    border: none;
}

/* カテゴリナビゲーション */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 15px 20px 10px;
    margin: 0;
}

.category-nav {
    background-color: #fff;
    margin-top: 10px;
}

.category-list {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    width: 80px;
    color: #444;
}

/* 【アクセントカラー: #5ca2a5, 薄い背景: #e6f5f6】 */
.category-item i {
    font-size: 24px;
    color: #5ca2a5;
    margin-bottom: 5px;
    background-color: #e6f5f6;
    padding: 10px;
    border-radius: 50%;
}

/* 特典バナー */
.guarantee-banner {
    background-color: #5ca2a5;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 700;
}

/* おすすめ商品カルーセル */
.product-carousel {
    background-color: #fff;
    margin-top: 10px;
}

.product-list {
    display: flex;
    overflow-x: scroll;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
}

/* --- 商品カルーセル内のカード --- */
.product-carousel .product-card {
    flex: 0 0 auto;
    width: 140px;
    margin-right: 15px;
    text-align: center;
    /* 商品カルーセル用として、borderやbackgroundは一旦ここでリセットまたはシンプルに */
    border: none;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    transition: none;
    min-height: auto;
}

.product-carousel .product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0 2px;
}

/* 【アクセントカラー: #5ca2a5】 */
.product-price {
    font-size: 14px;
    color: #5ca2a5;
    font-weight: 700;
}

.product-rating {
    font-size: 12px;
    color: #ffc107;
}
.product-carousel .product-card .product-manufacturer-name {
    font-size: 10px; /* 小さめ */
    color: #888; 
    margin-bottom: 3px;
    margin-top: 5px;
    font-weight: 500;
}

/* PCでのみ改行を入れるためのクラス */
@media (min-width: 768px) {
    .pc-only {
        display: block;
    }
}
@media (max-width: 767px) {
    .pc-only {
        display: none;
    }
}
/* --- 3. フッターナビゲーション (Bottom Navigation Bar) --- */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;

    /* PCでの中央配置と幅の制限 (768px) */
    left: 50%;
    transform: translateX(-50%);
    max-width: 768px; 
    width: 100%;
    
    height: 60px;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* 【アクセントカラー: #5ca2a5】 */
.nav-item.active {
    color: #5ca2a5;
}

/* ==================================== */
/* 4. フッターセクションのスタイル */
/* ==================================== */

/* フッター全体をラップするコンテナ */
footer {
    background-color: #1a1a1a; 
    color: #fff; 
    padding: 30px 0 20px;
    font-size: 14px;
    text-align: left; 
    
    /* max-widthを768pxに設定済み */
    max-width: 768px; 
    margin: 20px auto 0; 
}

/* フッター内のセクションを並べるコンテナ */
.footer-container {
    max-width: 768px; 
    margin: 0 auto;
    padding: 0 20px;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between;
}

/* 各セクションの幅（モバイルでは基本的に縦積み、幅を100%に近くする） */
.footer-section {
    width: 48%; 
    margin-bottom: 25px;
}

/* タイトル (h4) のスタイル */
.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    color: #f1f1f1; 
    border-bottom: 1px solid #333; 
    padding-bottom: 8px;
}

/* リスト (ul) のスタイル - 点を消して余白をなくす */
.footer-section ul {
    list-style: none; 
    padding: 0; 
    margin: 0;
}

/* リストアイテム (li) のスタイル */
.footer-section li {
    margin-bottom: 5px;
}

/* リンク (a) のスタイル */
.footer-section a {
    color: #ccc; 
    text-decoration: none; 
    display: block; 
    padding: 2px 0;
    transition: color 0.2s;
}

/* 【アクセントカラー: #5ca2a5】 */
/* マウスオーバー時のスタイル */
.footer-section a:hover {
    color: #5ca2a5; 
}

/* お問い合わせ先セクション (リストではない p タグのスタイル) */
.footer-contact p {
    margin: 5px 0;
    line-height: 1.5;
    color: #ccc;
}
/* お問い合わせ先セクションをモバイルで幅いっぱいに */
.footer-contact {
    width: 100%; 
    margin-bottom: 20px;
}


/* フッター最下部の著作権表示 */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333; 
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}


/* --- 商品詳細ページ (Product Detail) --- */
.product-detail {
    background-color: #fff;
}

/* 画像エリア */
.product-image-slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 情報ボックス */
.product-info-box {
    padding: 20px;
    border-bottom: 10px solid #f8f8f8;
}
.product-info-box .product-title-area {
    display: flex; /* Flexboxで子要素を横並びにする */
    align-items: baseline; /* テキストのベースラインを揃える */
    margin-bottom: 5px; /* 下の評価エリアとの間に適切な余白 */
    gap: 10px; /* 要素間のスペース */
    /* モバイルで全体が中央寄せにならないように左寄せを明示 */
    text-align: left; 
}

.product-info-box .product-maker {
    /* 以前の要求「小さくておしゃれなメーカー名」のスタイルを調整 */
    font-size: 14px; /* 小さく */
    color: #888; /* 控えめな色 */
    font-weight: 500;
    white-space: nowrap; /* 折り返しを防ぐ */
    margin-top: 0;
    margin-bottom: 0; /* Pタグのデフォルトマージンをリセット */
    flex-shrink: 0; /* 縮小させない */
}

.product-info-box .product-name-h1 {
    /* H1のデフォルトスタイルを維持しつつ、調整 */
    flex-grow: 1; /* H1が残りのスペースを使う */
    font-size: 24px; /* 適切なサイズ */
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: left; /* 商品名が左寄せになるように */
}
/* 【アクセントカラー: #5ca2a5】 */
.product-tagline {
    font-size: 14px;
    color: #5ca2a5;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-name-h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.product-rating {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.product-rating i {
    color: #ffc107;
}

/* 価格エリア */
.price-area {
    margin-bottom: 20px;
}

.sale-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 15px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* ▼▼▼ 【NEW】割引バッジのスタイル ▼▼▼ */
.discount-badge {
    background-color: #cc0000; /* 割引強調のための赤色 */
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discount-badge i {
    margin-right: 5px;
}
/* ▲▲▲ 【NEW】割引バッジのスタイル 終了 ▲▲▲ */

/* ▼▼▼ 【NEW】メーカー名/ブランド名スタイル (商品詳細ページ) ▼▼▼ */
.product-info-box .product-maker {
    font-size: 12px; /* 小さめ */
    font-weight: 500;
    color: #666; 
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    background-color: #f9f9f9; 
    letter-spacing: 0.5px;
}
/* ▲▲▲ 【NEW】メーカー名/ブランド名スタイル 終了 ▲▲▲ */


/* 【アクセントカラー: #5ca2a5, 薄い背景: #e6f5f6】 */
/* 保証バッジ */
.guarantee-badge {
    background-color: #e6f5f6;
    color: #5ca2a5;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* カートボタン */
.cart-section {
    text-align: center;
}

.btn-add-to-cart {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    border-radius: 8px;
}

/* --- オプション選択エリア (横並び修正箇所) --- */
.option-selection-area {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    
    /* Flexboxで横並びと折り返しを有効化 */
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: flex-start;
}

.option-selection-area h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    width: 100%; /* 見出しを幅いっぱいに */
}

.option-item {
    /* 2列表示のための幅計算 */
    width: calc(50% - 5px); 
    
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    align-items: center; 
    justify-content: center;
    
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 12px 5px; 
    transition: all 0.2s ease;
}

.option-item input[type="radio"] {
    /* ラジオボタン自体を非表示 */
    display: none;
}

/* 【アクセントカラー: #5ca2a5, 薄い背景: #e6f5f6】 */
/* 選択時の視覚効果を option-item 自体に適用 */
.option-item:has(input[type="radio"]:checked) {
    border-color: #5ca2a5; 
    background-color: #e6f5f6; 
}


.option-label-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center; 
    text-align: center;
    
    width: 100%;
    padding: 0; 
    border: none; 
}

/* 擬似要素によるカスタムラジオボタンのスタイル調整 */
.option-item input[type="radio"] + .option-label-content::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    /* 【修正】ラジオボタンを要素の上部に移動 */
    order: -1; 
    margin-right: 0;
    margin-bottom: 5px; 
    flex-shrink: 0;
}

/* 【アクセントカラー: #5ca2a5, 薄い背景: #e6f5f6】 */
/* 選択時のカスタムラジオボタンのスタイル */
.option-item input[type="radio"]:checked + .option-label-content::before {
    border-color: #5ca2a5;
    background-color: #5ca2a5;
    box-shadow: inset 0 0 0 4px #e6f5f6; 
}

/* 2列並びのためのマージン調整 */
.option-selection-area .option-item:nth-child(odd) {
    margin-right: 10px; 
}
.option-selection-area .option-item:nth-child(even) {
    margin-right: 0; 
}

.option-name {
    font-size: 13px; 
    font-weight: 600;
    color: #333;
}

.option-price-label {
    font-size: 16px; 
    font-weight: 700;
    color: #cc0000;
    margin-top: 2px;
}

.option-note {
    font-size: 11px; 
    color: #777;
    margin-top: 2px;
}
/* --- 店長のおすすめ (LINE風デザイン) --- */
.manager-recommendation {
    /* flex: 1 1 100% は削除し、tab-contentに自然に収まるように調整 */
    padding: 15px; /* タブコンテンツのデフォルトパディングに馴染むよう調整 */
    background-color: #f0f0f0; /* 薄いグレーの背景 */
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px; 
    text-align: left;
    width: 100%;
}

.recommendation-title {
    font-size: 20px;
    font-weight: bold;
    color: #5ca2a5;
    margin-bottom: 15px; /* マージンを少し調整 */
    border-bottom: 2px solid #5ca2a5;
    padding-bottom: 5px;
}

.chat-line {
    display: flex;
    align-items: flex-start; /* アバターと吹き出しの上端を揃える */
    gap: 15px;
}

.manager-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* 縮小させない */
    width: 60px; /* アバターの幅 */
}

.manager-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.manager-name {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    text-align: center;
}

.manager-bubble-container {
    position: relative;
    flex-grow: 1;
    max-width: calc(100% - 75px); /* アバター分のスペースを引く */
    margin-top: -12px;
}

.manager-bubble {
    background-color: #fff; /* 白い吹き出し */
    border-radius: 15px;
    padding: 12px 15px;
    line-height: 1.6;
    font-size: 15px;
    color: #333;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* 吹き出しの三角（擬似要素: beforeで作成） */
.manager-bubble::before {
    content: '';
    position: absolute;
    /* 変更前: top: 15px; */
    top: 15px; /* ★ここを修正: 値を小さくすることで、吹き出し全体が上に移動します */
    left: -6px; 
    width: 0;
    height: 0;
    /* 三角形の描画 */
    border: 6px solid transparent;
    border-right-color: #fff; /* 吹き出しと同じ色 */
    border-left: 0; /* 左側は不要 */
}
/* --- 詳細情報タブエリア --- */
.tabs-area {
    padding: 0 20px 20px;
    background-color: #fff;
}

.tab-nav {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.tab-button {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

/* 【アクセントカラー: #5ca2a5】 */
.tab-button.active {
    color: #5ca2a5;
    border-bottom: 2px solid #5ca2a5;
}

/* 【アクセントカラー: #5ca2a5】 */
.tab-content h2 {
    font-size: 20px;
    margin-top: 0;
    border-left: 4px solid #5ca2a5;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* --- 商品紹介内の画像スタイル (detail.phpの修正に合わせた) --- */
.product-feature-image-container {
    margin: 30px 0; /* 上下にスペースを空ける */
    text-align: center;
}

.product-feature-image {
    max-width: 100%; /* 親要素の幅を超えないように */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 影をつけて目立たせる */
}
/* ------------------------------------------------------------------- */
/* ================================================================= */
/* 商品詳細ページ (detail.php) の追加スタイル */
/* ================================================================= */

/* 商品紹介セクション内の見出しデザインを改善 (products_db.php の '###' から生成される h3 用) */
.product-section-heading {
    /* ベース */
    font-size: 18px; /* 標準的なサイズ */
    font-weight: 700;
    color: #333;
    padding: 10px 15px; /* 上下左右のパディング */
    margin: 30px 0 15px 0; /* 上下の余白を強調 */
    text-align: left; /* テキストを左寄せに設定 */
    
    /* デザインのハイライト */
    border-left: 6px solid #5ca2a5; /* 左側に太いアクセントライン */
    background-color: #f7fcfc; /* やや薄い背景色 */
    border-radius: 4px; /* 角を少し丸める */
}

/* 他の箇所で使われているh3のスタイルと競合しないように、明示的にクラスを付与することを推奨します。 */
/* ただし、もし既存のh3タグに特別なスタイルがなければ、このクラスを使うことでデザインが統一されます。 */

/* タブコンテンツ内のリスト */
.tab-content h3 {
    font-size: 16px;
    margin-top: 20px;
}

.tab-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 特長リスト */
.features-list, .ingredients-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.features-list li, .ingredients-list li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dotted #eee;
}

/* 【アクセントカラー: #5ca2a5】 */
.features-list li i {
    color: #5ca2a5;
    margin-right: 10px;
}

.ingredients-list li i {
    color: #3498db;
    margin-right: 10px;
}

/* =================================================================== */
/* ▼▼▼ 【NEW】口コミ (Review) 関連のスタイル ▼▼▼ */
/* =================================================================== */

/* 1. レビューサマリー (Review Summary) のスタイル */
.review-summary {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0; /* 区切り線 */
}

.review-summary .review-stars {
    color: #ffc107; /* 星の色 */
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px; /* 平均評価の数値のフォントサイズ */
}

.review-summary .review-stars i {
    font-size: 24px;
    margin-right: 2px;
}

.review-summary p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px;
}

.btn-write-review {
    display: inline-block;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* 2. 個別レビュー (Review Item) のスタイル */
.review-list {
    margin-top: 20px;
}

.review-item {
    border: 1px solid #e0e0e0;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 8px; /* 角を丸く */
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 浮き出た感じ */
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 5px;
}

.review-header strong {
    /* ユーザー情報 (年代・性別) */
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-item .review-stars {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffc107; /* 星の色 */
}

.review-item .review-stars i {
    color: inherit;
    margin-right: 1px;
}

.review-body {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* 3. ページネーション (Pagination) のスタイル */
.review-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 10px 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.page-link {
    display: block;
    padding: 8px 12px;
    margin: 0 4px 8px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, border-color 0.2s;
    min-width: 30px;
    text-align: center;
}

.page-link:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.page-link.active {
    background-color: #5ca2a5;
    border-color: #5ca2a5;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

.page-link.disabled {
    color: #aaa;
    border-color: #eee;
    background-color: #fafafa;
    cursor: default;
    pointer-events: none;
}

.page-link.dots {
    border: none;
    background: none;
    color: #666;
    font-size: 18px;
    line-height: 1;
    padding: 8px 0;
}

/* =================================================================== */
/* ▲▲▲ 【NEW】口コミ (Review) 関連のスタイル 終了 ▲▲▲ */
/* =================================================================== */
/* ================================================================= */
/* Q&Aセクションのスタイル (detail.php) */
/* ================================================================= */

.qa-list {
    margin-top: 20px;
    padding: 0 10px; /* 左右のパディングでリスト全体の見た目を調整 */
}

.qa-item {
    margin-bottom: 25px;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* ボーダーからはみ出さないように */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 質問（Q）のデザイン */
.qa-question {
    font-weight: 700;
    color: #333;
    padding: 15px 15px 15px 50px;
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    background-color: #f7fcfc; /* 質問の背景色 */
    position: relative;
}

.qa-question::before {
    content: "Q";
    font-size: 20px;
    color: #5ca2a5; /* Qのアクセントカラー */
    margin-right: 10px;
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* 回答（A）のデザイン */
.qa-answer {
    padding: 15px 15px 15px 50px;
    margin: 0;
    line-height: 1.7;
    color: #555;
    background-color: #ffffff; /* 回答の背景色 */
    border-top: 1px solid #e0e0e0; /* 質問との境界線 */
    position: relative;
    font-size: 15px;
}

.qa-answer::before {
    content: "A";
    font-size: 20px;
    color: #333;
    font-weight: 700;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/* =================================================================== */
/* ▲▲▲ Q&Aセクションのスタイル 終了 ▲▲▲ */
/* =================================================================== */
/* --- ★関連商品エリア（コンパクトブロック）★ --- */
/* セクション全体のコンテナを強調 */
.related-products {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f8f8; /* 背景色で区切る */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center; /* 中央寄せ */
}

/* タイトルのスタイル */
.related-products .section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* タイトルの下にアクセントライン */
.related-products .section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #007bff; /* メインカラー */
    margin-top: 5px;
}

/* 個別カードのスタイル (よりコンパクトに) */
/* detail.php内の関連商品カードにのみ適用されるよう、セレクタを強化 */
.product-card.related-card {
    display: inline-flex; /* Flexboxで中身を整理 */
    flex-direction: column;
    align-items: center;
    width: 200px; /* PCでの幅を固定 */
    max-width: 90%; /* スマホ対応 */
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    transition: box-shadow 0.2s;
    /* 元の.related-cardにあった不要なスタイルを上書き */
    min-height: auto;
    margin-top: 10px;
}

.product-card.related-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 関連商品の画像 */
.product-card.related-card img {
    width: 100px; /* 画像サイズを小さく */
    height: 100px;
    object-fit: cover;
    margin-right: 0; 
    margin-bottom: 10px;
    border-radius: 4px;
}

/* 関連商品の名前 */
.product-card.related-card .product-name {
    font-size: 0.9rem;
    color: #333;
    margin: 0 0 5px 0;
    text-align: center;
    height: 2.8em; /* 2行分の高さを確保 */
    overflow: hidden;
}

/* 関連商品の価格 */
.product-card.related-card .product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d9534f;
}

/* スマートフォンでの調整 */
@media (max-width: 600px) {
    .product-card.related-card {
        width: 100%; /* スマホでは全幅に */
        flex-direction: row; /* 横並びにする */
        text-align: left;
        padding: 15px;
        margin: 0 auto 15px;
    }
    .product-card.related-card img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    .product-card.related-card .card-info { /* card-infoを横並びの右側に配置 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
        padding: 0;
    }
    .product-card.related-card .product-name {
        text-align: left;
    }
}
/* ------------------------------------------------------------------- */


/* --- 買い物かごページ (Cart Page) --- */
.cart-page-container {
    background-color: #fff;
    padding: 20px;
}

.page-header-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* カートが空の場合のメッセージ */
.empty-cart-message {
    text-align: center;
    padding: 40px 0;
}

.cart-icon-large {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 15px;
}

/* カートアイテム一覧 */
.cart-item-card {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    position: relative;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
    text-align: left;
}

.item-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.item-price {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* 数量コントロール */
.item-controls {
    margin-top: 10px;
    font-size: 12px;
}

.quantity-input {
    width: 40px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin-right: 5px;
}

.btn-update, .btn-remove {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 5px;
}

.btn-remove {
    color: #cc0000;
    border-color: #cc0000;
}

.item-subtotal {
    font-weight: 700;
    font-size: 14px;
    position: absolute;
    right: 0;
    bottom: 15px;
}

/* 合計金額エリア */
.cart-summary {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    margin-top: 15px;
}

.total-label {
    font-size: 16px;
    font-weight: 700;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: #cc0000;
}

/* 【アクセントカラー: #5ca2a5】 */
.btn-checkout {
    width: 100%;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #5ca2a5;
    color: #fff;
    border: none;
}

/* Amazonボタンのスタイル */
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-amazon {
    /* Amazonのブランドカラー */
    background-color: #ff9900; 
    color: #fff;
    border: none;
    width: 100%;
    padding: 15px 0;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-amazon i {
    margin-right: 8px;
    font-size: 18px;
}
/* --- style.css の末尾に追加 --- */

/* --- 注文手続きページ (Checkout Page) --- */
.checkout-page {
    padding: 20px;
    background-color: #fff;
}

.checkout-form {
    padding-bottom: 30px;
}

.form-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.form-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.required {
    color: #cc0000;
    font-size: 12px;
    margin-left: 5px;
}

/* 支払い方法セクション */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: block;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.radio-option:hover {
    background-color: #f5f5f5;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

/* 【アクセントカラー: #5ca2a5】 */
.radio-option input[type="radio"]:checked + span {
    color: #5ca2a5;
}

.small-note {
    font-size: 12px;
    font-weight: 400;
    color: #777;
    margin: 5px 0 0 25px;
}

.note {
    font-size: 12px;
    color: #555;
    margin-bottom: 15px;
}

/* 注文内容のサマリー */
/* 【アクセントカラー: #5ca2a5】 */
.summary-section h2 {
    border-left: 4px solid #5ca2a5;
    padding-left: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-summary {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    /* ボタンとの間に余白を追加済み */
    margin-bottom: 20px; 
}

.item-line {
    margin-bottom: 5px;
    font-size: 13px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 5px;
}
.item-line:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.item-name-summary {
    font-weight: 400;
    color: #555;
}

.item-price-summary {
    font-weight: 600;
}

.agreement-text {
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* 【アクセントカラー: #5ca2a5】 */
.btn-checkout-submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    background-color: #5ca2a5;
    color: #fff;
    border: none;
    border-radius: 8px;
}
/* --- style.css の末尾に追加 --- */

/* --- order_confirm.php 用のスタイル --- */
/* 【アクセントカラー: #5ca2a5, 薄い背景: #e6f5f6】 */
.alert-box {
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #5ca2a5;
    background-color: #e6f5f6;
    color: #387038; 
    border-radius: 8px;
    font-size: 14px;
}

.alert-box strong {
    font-size: 16px;
    color: #1a1a1a;
}

.payment-instruction-section {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
    background-color: #f9f9f9;
}

.payment-instruction-section h2 {
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

/* PayPay QRコードエリア */
.paypay-qr-area {
    text-align: center;
    padding: 10px;
}

.paypay-qr-area h3 {
    color: #cc0000; /* PayPayのイメージカラー */
    font-size: 20px;
    margin-bottom: 15px;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background-color: #fff;
    border: 1px solid #ccc;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.qr-label {
    font-weight: 700;
    color: #1a1a1a;
}

.paypay-detail-note {
    text-align: left;
    margin-top: 20px;
    padding: 15px;
    border-top: 2px dashed #ff9900;
}

.paypay-detail-note ol {
    padding-left: 20px;
    font-size: 14px;
}

.paypay-detail-note li {
    margin-bottom: 8px;
}

/* 銀行振込エリア */
.bank-detail-box {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
}

.bank-detail-box p {
    margin: 5px 0;
    font-size: 14px;
}

.caution-note {
    font-size: 12px;
    color: #cc0000;
    margin-top: 10px;
}
/* ==================================== */
/* 1. 商品一覧ページ全体 (products.php) */
/* ==================================== */
.product-list-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-list-page h2 {
    font-size: 2.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.list-summary {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* ==================================== */
/* 2. 商品グリッドレイアウト */
/* ==================================== */
.product-grid {
    display: grid;
    /* デフォルトはスマートフォン向けに1列 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* カード間のスペース */
    list-style: none;
    padding: 0;
}

/* 768px以上の画面 (タブレット以上) */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3列表示 */
    }
}

/* 1024px以上の画面 (PC) */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4列表示 */
    }
}


/* ==================================== */
/* 3. 個別商品カードのデザイン (商品一覧: products.php用) */
/* ==================================== */
.product-list-page .product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* リンクの下線を消す */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 350px; /* 最低の高さを確保 */
    /* 商品一覧用の幅設定をグリッドに任せるため、カルーセル用の設定を上書き */
    width: auto;
    flex: 1 1 auto;
}

.product-list-page .product-card:hover {
    transform: translateY(-5px); /* ホバー時に少し浮き上がらせる */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 画像コンテナ */
.product-list-page .card-image-container {
    height: 60%;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.product-list-page .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像がボックスに合わせてトリミングされるように */
    display: block;
}

/* 情報エリア */
.product-list-page .card-info {
    padding: 15px;
    flex-grow: 1; /* 残りのスペースを埋める */
}

.product-list-page .product-tagline {
    font-size: 0.75rem;
    color: #007bff; /* ブランドカラーなど */
    margin-bottom: 5px;
    font-weight: bold;
}

.product-list-page .product-name-h3 {
    font-size: 1.1rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 評価スター */
.product-list-page .product-rating {
    font-size: 0.9rem;
    color: #ffc107; /* スターの色 */
    margin-bottom: 10px;
}

.product-list-page .product-rating span {
    color: #666;
    margin-left: 5px;
}

/* 価格 */
.product-list-page .product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d9534f; /* 目を引く価格の色 */
    margin-top: auto; /* 下部に寄せる */
}

/* 価格情報なしのスタイル */
.product-list-page .product-price:has(> .price-info-none) {
    color: #999;
    font-size: 1rem;
    font-weight: normal;
}

/* ▼▼▼ 【NEW】メーカー名/ブランド名スタイル (商品一覧ページ) ▼▼▼ */
.product-list-page .product-maker {
    font-size: 0.75rem; /* 小さめ */
    color: #555; 
    margin-bottom: 5px;
    font-weight: 500;
    /* アクセントカラーを薄く使う */
    border-left: 3px solid #5ca2a5; 
    padding-left: 8px;
    line-height: 1.2;
    opacity: 0.8;
}
/* ▲▲▲ 【NEW】メーカー名/ブランド名スタイル 終了 ▼▼▼ */

/* ======================================= */
/* ▼▼▼ 【NEW】マイページ用スタイル (mypage.php) ▼▼▼ */
/* ======================================= */
.address-edit-container {
    padding: 20px;
    background-color: #fff;
}
.register-container {
    padding: 20px;
    background-color: #fff;
}
.mypage-container {
    padding:20px;
}


/* 情報表示セクション (mypage-info) */
.mypage-info {
    background-color: #FFFFFF; /* 背景を白に変更 */
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.mypage-info .section-title {
    font-size: 20px;
    font-weight: bold;
    color: #5ca2a5; /* ヘッダーロゴの色に合わせて変更 */
    margin-top: 0;
    margin-bottom: 20px;
    border-left: 4px solid #5ca2a5;
    padding-left: 10px;
    padding-bottom: 0; /* 元の.section-titleのパディングをリセット */
    border-bottom: none; /* 元の.section-titleのボーダーをリセット */
}
/* お気に入りグリッド */
.favorite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
}
.favorite-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.fav-img-container img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.fav-info { padding: 8px; text-align: center; }
.fav-name { font-size: 11px; font-weight: bold; margin: 0; }
.fav-price { color: #5ca2a5; font-size: 12px; font-weight: bold; }
/* お気に入りカードを基準位置にする */
.favorite-card {
    position: relative; /* ボタン配置の基準 */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
}

/* 削除ボタンのスタイル */
.fav-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    z-index: 5; /* 画像より上に表示 */
}

.fav-delete-btn:hover {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

/* フォームの余計な隙間を消す */
.fav-delete-form {
    margin: 0;
    padding: 0;
}

/* 詳細リスト (dl) のスタイル */
.user-details-list {
    display: grid;
    /* 項目名(dt)と内容(dd)を2カラムで表示 */
    grid-template-columns: 160px 1fr; 
    gap: 15px 20px; /* 行間と列の間隔 */
    margin: 0;
    padding: 0;
}

.user-details-list dt {
    font-weight: bold;
    color: #555;
    text-align: right;
    padding-right: 10px;
}

.user-details-list dd {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.optional-text {
    font-size: 12px;
    color: #999;
}

/* 編集ボタンのコンテナ */
.edit-link-container {
    text-align: right;
    margin-top: 20px;
}

/* メニューセクション (mypage-menu) */
.mypage-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.menu-item {
    flex-basis: calc(50% - 7.5px); /* 2カラム表示 */
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #DDD;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.menu-item:hover {
    border-color: #5ca2a5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.menu-item i {
    font-size: 24px;
    color: #5ca2a5;
    margin-right: 15px;
}

.menu-item span {
    font-size: 16px;
    font-weight: 600;
}

/* ボタンの基本スタイル (既存のbtnクラスに合わせた修正) */
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px; /* 他のbtnに合わせる */
    text-decoration: none;
    font-weight: 600; /* 他のbtnに合わせる */
    cursor: pointer;
    text-align: center;
    background-color: #FFFFFF;
    color: #5ca2a5;
    border: 1px solid #5ca2a5;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e6f5f6; /* 薄い背景色に変更 */
}

/* スマホ対応 */
@media (max-width: 600px) {
    .mypage-menu {
        flex-direction: column;
    }
    .menu-item {
        flex-basis: 100%; /* スマホでは縦に並べる */
    }
    .user-details-list {
        /* スマホでは dt と dd を上下に並べる */
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .user-details-list dt {
        text-align: left;
        padding-right: 0;
        margin-top: 10px;
        color: #5ca2a5; /* 項目名を強調 */
    }
}
/* ======================================= */
/* ▲▲▲ 【NEW】マイページ用スタイル 終了 ▲▲▲ */
/* ======================================= */
/* ================================================================= */
/* ページトップへ戻るボタンのスタイル */
/* ================================================================= */
.scroll-to-top-button {
    /* 固定配置 */
    position: fixed;
    bottom: 70px; /* 画面下からの位置 */
    right: 10px; /* 画面右からの位置 */
    z-index: 1000;
    
    /* サイズと形状 */
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 円形にする */
    
    /* デザイン */
    background-color: #5ca2a5; /* アクセントカラー (見出しの色と統一) */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    
    /* 非表示設定とアニメーション */
    opacity: 0; /* 最初は非表示 */
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s; /* フェードイン・アウト */

    /* 中のアイコンとテキストの調整 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 10px;
    line-height: 1;
    padding: 0;
}

.scroll-to-top-button i {
    font-size: 16px;
    margin-bottom: 2px;
}

/* スクロール時にJSで付与するクラス */
.scroll-to-top-button.is-active {
    opacity: 1;
    visibility: visible;
}
/* ================================================================= */
/* ブログカードセクションのスタイル (index.php) */
/* ================================================================= */
/* ================================================================= */
/* ブログカードセクションのスタイル (index.php) - レスポンシブ3列対応 */
/* ================================================================= */
.featured-blog {
    padding: 20px 0;
}

.blog-card-list {
    display: flex;
    flex-wrap: wrap;       /* 折り返しを許可 */
    gap: 15px;            /* カード同士の隙間 */
    padding: 0 15px;      /* 左右に余白 */
    justify-content: flex-start; /* 左寄せ（中央寄せならcenter） */
}

.blog-card {
    display: flex;
    flex-direction: column; /* 画像が上、テキストが下 */
    /* ★計算式: (全体100% - 隙間15px * 2) / 3個 */
    width: calc((100% - 30px) / 3); 
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    background-color: #ffffff;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.blog-card-thumbnail {
    width: 100%;
    height: 140px; /* PCでの画像の高さを少し抑える */
    overflow: hidden;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* 比率を維持して切り抜き */
}

.blog-card-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    align-self: flex-start; /* タグの幅を中身に合わせる */
    font-size: 10px;
    color: #5ca2a5;
    border: 1px solid #5ca2a5;
    border-radius: 4px;
    padding: 1px 6px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 14px; /* 文字サイズを少し小さく調整 */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    /* 2行で切り捨て */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    /* 2行で切り捨て */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* --- レスポンシブ調整 --- */

/* タブレットサイズ（2列にする） */
@media (max-width: 600px) {
    .blog-card {
        width: calc((100% - 15px) / 2);
    }
}

/* スマホサイズ（1列にする） */
@media (max-width: 400px) {
    .blog-card {
        width: 100%;
    }
}
/* ======================================= */
/* ▼▼▼ 会社概要ページ (about.php) のスタイル ▼▼▼ */
/* ======================================= */

.about-page {
    /* .main-contentの制約 (max-width: 768px) の中で、左右にパディングを設定 */
    padding: 20px;
    background-color: #ffffff; /* ページ全体を白背景にする */
    margin: 0 auto;
}

.about-page .content-block {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0; /* 控えめなボーダー */
    border-radius: 8px;
    background-color: #f7f7f7; /* ブロックの背景は薄いグレー */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about-page .section-title {
    /* 既存の.section-titleを上書きし、より目立つデザインに */
    font-size: 20px; 
    font-weight: 700;
    color: #5ca2a5; /* アクセントカラーを使用 */
    border-left: 5px solid #5ca2a5;
    padding: 0 0 0 10px;
    margin-bottom: 20px;
    /* 既存の.section-titleの不要なスタイルをリセット/上書き */
    border-bottom: none; 
    
}

/* 代表メッセージ内の署名エリア */
.about-page .signature {
    margin-top: 25px;
    text-align: right;
    padding-right: 10px;
    font-style: italic;
    color: #666;
    font-size: 14px;
}
.about-page .signature strong {
    font-size: 16px;
    color: #333;
}
.about-page p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

/* 会社情報テーブルのスタイル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.company-table th, 
.company-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

.company-table th {
    width: 35%; /* 項目名を少し広く取る */
    background-color: #e6f5f6; /* アクセントカラーの薄い背景色 */
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

/* 沿革リストのスタイル */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* タイムライン風の点と線のデザイン */
.history-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #5ca2a5; /* 点の色 */
    z-index: 10;
}
.history-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3px; /* 点の中心に合わせる */
    top: 20px;
    bottom: -10px;
    width: 2px;
    background-color: #ddd; /* 線の色 */
    z-index: 5;
}

.history-list strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

/* スマートフォンでの調整 (768px以下の調整) */
@media (max-width: 768px) {
    .about-page {
        padding: 15px;
    }
    
    .company-table th, 
    .company-table td {
        display: block; /* スマホでは縦積み */
        width: 100%;
        padding: 8px 15px;
        box-sizing: border-box;
    }
    
    .company-table th {
        background-color: #f0f0f0; /* 項目名の背景を薄く */
        border-bottom: none;
        padding-top: 15px;
        font-size: 15px;
    }
    .company-table td {
        border-top: none;
        padding-bottom: 15px;
        font-size: 14px;
    }
    
    .company-table tr:first-child th {
        padding-top: 12px;
    }
    .company-table tr:last-child td {
        border-bottom: 1px solid #ddd;
    }
}
/* ======================================= */
/* ▼▼▼ お問い合わせページ (contact.php) のスタイル ▼▼▼ */
/* ======================================= */

.contact-page {
    padding: 20px;
    background-color: #fff;
}

.contact-page .intro-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
}

/* フォームセクションの流用 */
.contact-form .form-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #fcfcfc;
}
.contact-form .form-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 150px;
    resize: vertical; /* 縦方向のみリサイズ可能 */
}
.contact-form .form-group label {
    font-weight: 600;
}
.optional {
    color: #5ca2a5;
    font-size: 12px;
    margin-left: 5px;
}


/* プライバシーポリシー同意チェックボックス */
.privacy-agreement {
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}
.privacy-agreement input[type="checkbox"] {
    margin-right: 8px;
}
.privacy-agreement a {
    color: #5ca2a5;
    text-decoration: underline;
}

/* 送信ボタンのコンテナ */
.form-action {
    text-align: center;
}
/* 既存の .btn-primary スタイルを流用し、サイズを調整 */
.btn-submit {
    width: 80%;
    max-width: 400px;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
}


/* メッセージ表示エリア (送信成功/失敗など) */
.alert-box.success {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #4CAF50; /* 緑 */
    background-color: #E8F5E9; /* 薄い緑 */
    color: #387038; 
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
.alert-box.error {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #F44336; /* 赤 */
    background-color: #FFEBEE; /* 薄い赤 */
    color: #cc0000; 
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
/* ======================================= */
/* ▼▼▼ プライバシーポリシーページ (privacy.php) のスタイル ▼▼▼ */
/* ======================================= */

.privacy-page {
    /* .main-contentの制約 (max-width: 768px) の中で、左右にパディングを設定 */
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
}

.privacy-page .content-block {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    background-color: #f7fcfc; /* ややアクセントカラー寄りの薄い背景 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.privacy-page .section-title {
    /* about.phpと統一 */
    font-size: 20px; 
    font-weight: 700;
    color: #5ca2a5; 
    border-left: 5px solid #5ca2a5;
    padding: 0 0 0 10px;
    margin-bottom: 15px;
    border-bottom: none; 
}

.privacy-page p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

/* 定義リスト（dl）のスタイル */
.policy-list {
    margin-top: 15px;
}
.policy-list dt {
    font-size: 15px;
    font-weight: bold;
    color: #1a1a1a;
    border-left: 3px solid #5ca2a5;
    padding-left: 8px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.policy-list dd {
    margin-left: 0;
    padding-left: 15px;
    font-size: 14px;
    color: #555;
}
.policy-list dd ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
}
.policy-list dd li {
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 除外リスト（ul）のスタイル */
.exclusion-list {
    list-style-type: square;
    padding-left: 20px;
    margin-top: 10px;
}
.exclusion-list li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
    color: #555;
}

/* 注釈テキスト */
.note-item {
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 5px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

/* お問い合わせ情報のスタイル */
.contact-info p {
    line-height: 1.8;
}
.contact-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #5ca2a5;
}

/* 最終更新日 */
.last-updated {
    text-align: right;
    font-size: 12px;
    color: #999;
    padding-right: 10px;
    margin-top: -10px;
}
/* ======================================= */
/* ▼▼▼ 特定商取引法に基づく表記ページ (tokusho.php) のスタイル ▼▼▼ */
/* ======================================= */

.tokusho-page {
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
}

.tokusho-page .content-block {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    background-color: #fcfcfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tokusho-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.tokusho-table th, .tokusho-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    line-height: 1.6;
}

.tokusho-table th {
    width: 30%;
    background-color: #f7fcfc; /* プライバシーポリシーと色を合わせる */
    color: #333;
    font-weight: 700;
    vertical-align: top;
}

.tokusho-table td {
    width: 70%;
    color: #555;
    background-color: #fff;
}

.tokusho-table td ul {
    list-style: none; /* ここではリストマークを消すか、またはdisc/squareにする */
    padding-left: 0;
    margin: 5px 0;
}
.tokusho-table td li {
    margin-bottom: 5px;
}
.tokusho-table td p {
    margin-bottom: 5px;
}

.note-block {
    margin-top: 30px;
    padding: 15px;
    border-left: 5px solid #ffcc00;
    background-color: #fff8e1;
    font-size: 13px;
    color: #616161;
}
/* ======================================= */
/* ▼▼▼ ショッピングガイドページ (returns.phpなど) のスタイル ▼▼▼ */
/* ======================================= */

.guide-page {
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
}

.guide-page .content-block {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    background-color: #fcfcfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guide-page .section-title {
    font-size: 20px; 
    font-weight: 700;
    color: #5ca2a5; 
    border-left: 5px solid #5ca2a5;
    padding: 0 0 0 10px;
    margin-bottom: 15px;
    border-bottom: none; 
}

.guide-page .subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-page p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

/* ポリシーリスト（返品条件など） */
.guide-page .policy-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}
.guide-page .policy-list li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
    color: #555;
}

/* 除外リスト（受け付けられない場合） */
.guide-page .exclusion-list {
    list-style-type: square;
    padding-left: 20px;
    margin-top: 10px;
}
.guide-page .exclusion-list li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
    color: #cc0000; /* 注意を促すため色を赤系に */
    font-weight: 500;
}

/* お問い合わせ情報 */
.guide-page .contact-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #5ca2a5;
}
.guide-page .note-item {
    font-size: 13px;
    color: #999;
    border-top: 1px dotted #ccc;
    padding-top: 10px;
    margin-top: 10px;
}
/* ======================================= */
/* ▼▼▼ shipping.php / payment.php 固有のスタイル ▼▼▼ */
/* ======================================= */

/* --- shipping.php (送料・配送) 固有 --- */
.shipping-page .guide-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

.shipping-page .guide-table th, .shipping-page .guide-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.shipping-page .guide-table th {
    background-color: #e6f3f4; /* アクセントカラーの薄い色 */
    color: #333;
    font-weight: 700;
}

.shipping-page .shipping-note {
    text-align: center;
    font-weight: bold;
    color: #5ca2a5;
    margin: 15px 0;
}

.shipping-page .time-list {
    list-style-type: none;
    padding-left: 0;
    text-align: center;
}
.shipping-page .time-list li {
    font-size: 14px;
    margin-bottom: 5px;
}


/* --- payment.php (お支払い方法) 固有 --- */
.payment-list {
    margin-top: 15px;
}
.payment-list dt {
    font-size: 16px;
    font-weight: bold;
    color: #5ca2a5;
    border-bottom: 2px solid #5ca2a5;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 10px;
}
.payment-list dd {
    margin-left: 0;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.payment-list .card-icons {
    font-size: 2.5em; /* アイコンサイズを大きく */
    color: #777;
    margin: 10px 0;
}
.payment-list .fab {
    margin-right: 10px;
}

.payment-note {
    font-size: 13px;
    color: #777;
    border-left: 3px solid #ccc;
    padding-left: 8px;
    margin-top: 10px;
}
/* ======================================= */
/* ▼▼▼ サイトマップページ (sitemap.php) のスタイル ▼▼▼ */
/* ======================================= */

.sitemap-page {
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
}

.sitemap-page .content-block {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    background-color: #f7fcfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sitemap-page .section-title {
    font-size: 20px; 
    font-weight: 700;
    color: #5ca2a5; 
    border-left: 5px solid #5ca2a5;
    padding: 0 0 0 10px;
    margin-top: 30px;
    margin-bottom: 15px;
}
.sitemap-page .section-title:first-child {
    margin-top: 0;
}

.sitemap-list {
    list-style: none;
    padding-left: 0;
}
.sitemap-list > li {
    font-size: 16px;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}
.sitemap-list > li:before {
    content: "▶"; /* 階層を示す矢印 */
    position: absolute;
    left: 0;
    color: #5ca2a5;
    font-size: 10px;
    top: 5px;
}

.sitemap-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.sitemap-list a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* サブリスト（階層が深い場合） */
.sitemap-list .sub-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}
.sitemap-list .sub-list li {
    font-size: 14px;
    margin-bottom: 4px;
    position: relative;
    padding-left: 10px;
}
.sitemap-list .sub-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #999;
    top: 0;
}
/* ======================================= */
/* ▼▼▼ register.php 会員特典セクションのスタイル ▼▼▼ */
/* ======================================= */

.registration-benefits {
    background-color: #e6f3f4; /* アクセントカラーの薄い背景 */
    border: 1px solid #5ca2a5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefit-title {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.registration-benefits p {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 15px;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 30px; /* アイコン分のスペースを確保 */
    position: relative;
    color: #1a1a1a;
}

.benefit-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #5ca2a5; /* Sapurilabのテーマカラー */
    font-size: 18px;
}

.benefit-list li strong {
    color: #5ca2a5;
    font-weight: bold;
}/* ======================================= */
/* ▼▼▼ 商品名横のお気に入りボタン (Inline Favorite) ▼▼▼ */
/* ======================================= */

/* タイトルエリアをFlexboxにして横並び・中央揃えにする */
.product-title-area {
    display: flex;
    align-items: center; /* 上下中央揃え */
    gap: 10px; /* 商品名とボタンの間隔 */
    margin-bottom: 10px;
    flex-wrap: wrap; /* スマホなどで幅が狭い場合は折り返し */
}

.product-name-h1 {
    margin: 0; /* 余計なマージンを削除 */
    font-size: 24px;
    line-height: 1.3;
}

/* 小さなお気に入りボタンのスタイル */
.btn-fav-small {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%; /* 正円にする */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc; /* 通常時の色（グレー） */
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none; /* aタグの場合の下線消し */
    flex-shrink: 0; /* 縮小しないように固定 */
}

.btn-fav-small:hover {
    background-color: #f9f9f9;
    color: #ff6b6b; /* ホバー時は薄い赤 */
    border-color: #ff6b6b;
}

/* お気に入り登録済み（アクティブ）の状態 */
.btn-fav-small.active {
    color: #ff6b6b; /* 赤色 */
    border-color: #ff6b6b;
    background-color: #fff0f0; /* 薄い赤背景 */
}

/* フォーム自体の余白を消す */
.favorite-form-inline {
    margin: 0;
    padding: 0;
    display: inline-block;
}
/* ================================================================= */
/* 【追加】商品説明タブ（詳細情報）の装飾スタイル */
/* ================================================================= */

/* 商品紹介内の見出し (### 記法用) */
.product-section-heading {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding: 10px 15px;
    margin: 35px 0 15px 0;
    text-align: left;
    border-left: 6px solid #5ca2a5; /* テーマカラーのアクセント */
    background-color: #f7fcfc; /* 薄い背景色 */
    border-radius: 0 4px 4px 0;
}

/* 商品紹介内の画像スタイル */
.product-feature-image-container {
    margin: 25px 0;
    text-align: center;
}

.product-feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 段落テキストの調整 */
.tab-content p {
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
    text-align: left;
}

/* ----------------------------------------------------------------- */
/* 定義リスト (スペック表・成分表示などの HTMLタグ用) */
/* <dl>, <dt>, <dd> を表形式のようにデザインします */
/* ----------------------------------------------------------------- */
.tab-content dl {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 6px;
    overflow: hidden;
}

.tab-content dt {
    background-color: #f7fcfc; /* 見出しと同じ背景色 */
    padding: 12px 15px;
    font-weight: bold;
    color: #5ca2a5;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.tab-content dd {
    margin: 0;
    padding: 15px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border-bottom: 1px solid #eee;
}

/* リスト内の強調表示 */
.tab-content dd strong {
    color: #333;
}
/* ================================================================= */
/* 【追加】商品説明タブ内の ul / li リストの装飾 */
/* ================================================================= */

/* リスト全体の基本設定 */
.tab-content ul {
    list-style: none;      /* デフォルトの黒丸を消す */
    padding: 0;
    margin: 20px 0;
    background-color: #fff; /* 背景を白に */
}

/* 各リスト項目のスタイル */
.tab-content ul li {
    position: relative;
    padding: 12px 15px 12px 35px; /* 左側にアイコン用の余白を作る */
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
    background-color: #fdfdfd;   /* ほんの少しだけグレーにして区切りを出す */
    border-radius: 6px;
    border-left: 4px solid #5ca2a5; /* テーマカラーのアクセント線 */
    transition: background-color 0.3s ease;
}

/* リスト項目をホバーした時に少し色を変える（リッチ感） */
.tab-content ul li:hover {
    background-color: #f2f9f9;
}

/* 先頭のカスタムアイコン（チェックマーク） */
.tab-content ul li::before {
    content: '\f00c';            /* FontAwesomeのチェックアイコン(f00c) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5ca2a5;              /* テーマカラー */
    font-size: 14px;
}

/* リスト内の強調テキスト */
.tab-content ul li strong {
    color: #333;
    font-weight: 700;
    margin: 0 2px;
}

/* 補足：リストの中にさらにネスト（階層）がある場合 */
.tab-content ul ul {
    margin: 10px 0 0 10px;
    background-color: transparent;
}

.tab-content ul ul li {
    background-color: transparent;
    border-left: none;
    border-bottom: 1px dashed #eee;
    padding-left: 25px;
    font-size: 0.95em;
}

.tab-content ul ul li::before {
    content: '・'; /* 子リストはシンプルなドット */
    font-family: inherit;
    color: #999;
}
/* ================================================================= */
/* 「合わせて読みたい」：スマホ横幅いっぱい・2列タイルデザイン */
/* ================================================================= */

.product-blog-link {
    width: 100%;             /* ★強制的に親要素の幅100%に広げる */
    max-width: 100% !important; /* ★制限を強制解除 */
    margin: 40px 0;          /* 上下マージンのみ */
    padding: 0 10px;         /* 画面端との最低限の隙間だけ確保 */
    box-sizing: border-box;  /* パディングを含めて100%に計算 */
}

.product-blog-link .section-title {
    text-align: left;        /* タイトルを左寄せに（親のcenterを打ち消す） */
    padding-left: 5px;
    margin-bottom: 15px;
}

/* カードを包むコンテナ：ここが4分の1にならないよう100%にする */
.blog-card-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ★50%ずつ均等に広がる */
    width: 100%;                    /* ★コンテナを最大まで広げる */
    gap: 10px;                      /* カード同士の隙間 */
    justify-content: stretch;       /* 中身を強制的に引き伸ばす */
}

/* PCでは3列にする（768px以上のタブレット・PC） */
@media (min-width: 768px) {
    .product-blog-link {
        max-width: 800px !important; /* PCでは広がりすぎないよう制限 */
        margin: 40px auto;           /* 中央寄せ */
    }
    .blog-card-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* カード自体のスタイル */
.blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;             /* ★カード自体の幅も100%に */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    height: 100%;            /* 高さを揃える */
}

/* ★画像を正方形(1:1)にする設定 */
.blog-card-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 正方形 */
    overflow: hidden;
    background-color: #f8f8f8;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストエリアの調整：はみ出し防止 */
.blog-card-content {
    padding: 10px 8px;
    text-align: left;
    min-width: 0;            /* ★Grid内での文字溢れ防止の呪文 */
}

.blog-card-tag {
    display: inline-block;
    font-size: 9px;
    color: #5ca2a5;
    background: #f0f8f8;
    padding: 1px 5px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.blog-card-title {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: bold;
    color: #333;
    /* 2行制限 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.blog-card-excerpt {
    margin: 0;
    font-size: 11px;
    color: #888;
    /* 抜粋はスマホでは非表示、または1行 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 画像が万が一読み込めなくても枠を維持する */
.blog-card-thumbnail {
    background-color: #f0f4f4; /* サイトの色に近い薄い色 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 画像がない時、うっすらアイコンを表示させる（隠し技） */
.blog-card-thumbnail::after {
    content: '\f03e'; /* FontAwesomeの画像アイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 24px;
    color: #cbdadb;
    position: absolute;
    z-index: 1;
}

.blog-card-thumbnail img {
    position: relative;
    z-index: 2; /* 画像がある時はアイコンの上に重ねる */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.paypay-qr-area {
    background-color: #fff5f5; /* ほんのりPayPayカラー */
    border: 2px solid #ff0033;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.paypay-qr-area h3 {
    color: #ff0033;
    font-size: 18px;
    margin-bottom: 10px;
}

.qr-code-area img {
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* 親要素：ここを基準にバッジを配置 */
.cart-icon-wrapper {
    position: relative !important; /* 強制的に基準点にする */
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

/* バッジ本体：他への干渉を防ぐため詳細に指定 */
.header-cart-number {
    /* 配置の固定 */
    position: absolute !important;
    top: -2px !important;
    right: 8px !important;
    
    /* サイズの固定（ここがズレると楕円になります） */
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important; /* 文字を縦中央に */
    
    /* 見た目 */
    background-color: #ff3b30 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    text-align: center !important;
    border-radius: 50% !important; /* 正円にする */
    border: 1.5px solid #ffffff !important; /* 縁取り */
    
    /* 余計な装飾をリセット */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    z-index: 100 !important;
}
.order-history-container {
    padding: 20px;
    background-color: #fff;
}
.history-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.history-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}
.order-status {
    background: #5ca2a5;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}
.history-products {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}
.history-total {
    color: #ff4757;
    font-weight: bold;
    text-align: right;
}
/* --- AI診断ページ (Cart Page) --- */
.recommend-page {
    background-color: #fff;
    padding: 20px;
}
/* AI Diagnosis Styles */
.diagnosis-container {
    max-width: 800px;
    margin: 20px auto;
}

.diagnosis-form-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.diagnosis-result-card {
    margin-top: 40px;
    background: #fff;
    border: 2px solid #5ca2a5;
    border-radius: 15px;
    overflow: hidden;
}

.result-header {
    background: #5ca2a5;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.result-body {
    padding: 30px;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: #f8fbfb;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-label { color: #666; font-size: 14px; margin-bottom: 5px; }
.stat-value { font-size: 28px; font-weight: bold; color: #333; }
.stat-unit { font-size: 14px; }

/* MyPage Diagnosis Box */
.mypage-diagnosis-box {
    margin-top: 20px;
    border: 2px solid #5ca2a5;
    background: #f0f7f7;
    padding: 20px;
    border-radius: 12px;
}

.diag-summary {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
}

.diag-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.ai-menu-item {
    background-color: #f0f7f7 !important;
    border: 1px solid #5ca2a5 !important;
}
.ai-menu-item i, .ai-menu-item span {
    color: #5ca2a5 !important;
    font-weight: bold;
}
/* Diagnosis Page Layout */
.diag-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

.diag-title { text-align: center; margin-bottom: 30px; color: #333; }

/* Form Style */
.diag-form-wrapper {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.diag-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
}
.diag-inline-form .form-group { display: flex; flex-direction: column; }
.diag-inline-form .form-group label { font-size: 12px; margin-bottom: 5px; color: #666; }
.diag-inline-form input, .diag-inline-form select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.diag-submit-btn {
    background: #5ca2a5;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.diag-submit-btn:hover { background: #4a8a8d; }

/* Result Header Colors */
.diag-result-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}
.diag-result-header { color: #fff; padding: 20px; text-align: center; }
.status-low { background: #3498db; }
.status-normal { background: #2ecc71; }
.status-obese1 { background: #f1c40f; }
.status-obese2 { background: #e67e22; }

/* Stats Cards */
.diag-stats-container {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.diag-stat-card {
    flex: 1;
    min-width: 250px;
    background: #f8fbfb;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}
.diag-stat-card .label { color: #666; margin-bottom: 5px; font-size: 14px; }
.diag-stat-card .value { font-weight: bold; color: #333; margin: 0; }
.bmi-val { font-size: 42px; }
.bmr-val { font-size: 28px; }
.diag-stat-card .plus { color: #e74c3c; }
.diag-stat-card .minus { color: #3498db; }
.diag-stat-card .note { font-size: 11px; color: #888; margin-top: 5px; }

/* Advice & Products */
.diag-advice-section { padding: 0 30px 30px; }
.advice-content {
    border-left: 5px solid #5ca2a5;
    padding-left: 15px;
    margin-bottom: 30px;
}
.recommend-title { text-align: center; margin: 40px 0 20px; color: #333; }
.diag-product-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Product Card in Diagnosis */
.diag-product-card {
    width: 240px;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.diag-product-img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.diag-product-img-wrapper img { max-width: 100%; max-height: 150px; object-fit: contain; }
.diag-product-name { margin: 15px 0 5px; font-size: 16px; font-weight: bold; }
.diag-product-tagline { color: #666; font-size: 11px; height: 32px; overflow: hidden; }
.diag-product-price { color: #d63031; font-weight: bold; font-size: 20px; margin: 10px 0; }
.diag-product-btn {
    display: block;
    background: #5ca2a5;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}
/* MyPage AI Diagnosis Section */
.diagnosis-section {
    border: 2px solid #5ca2a5 !important;
    background: #f0f7f7 !important;
}

.diagnosis-summary-box {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px dashed #5ca2a5;
}

.diag-item {
    display: flex;
    flex-direction: column;
}

.diag-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.diag-val {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.diag-val small {
    font-size: 12px;
    margin-left: 2px;
}

.status-highlight {
    color: #5ca2a5;
}

.diagnosis-footer {
    padding: 15px 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.diag-nutrient {
    margin: 0;
    color: #444;
}

.diag-date {
    margin: 0;
    color: #999;
    font-size: 11px;
}

/* Empty State */
.diagnosis-empty {
    text-align: center;
    padding: 20px 0;
}

.diag-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    background: #5ca2a5;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.diag-btn:hover {
    background: #4a8a8d;
}

/* Bottom Menu AI Link */
.ai-menu-link {
    background-color: #f0f7f7 !important;
    border: 1px solid #5ca2a5 !important;
}

.ai-menu-link i, .ai-menu-link span {
    color: #5ca2a5 !important;
    font-weight: bold;
}
/* パーソナライズおすすめ枠 */
.personal-recommend-box {
    margin: 20px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.recommend-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ff4757; /* 目立つ赤系 */
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.recommend-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.recommend-img img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.recommend-text {
    flex: 1;
}

.recommend-text h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #333;
}

.recommend-reason {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.recommend-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d63031;
    margin-bottom: 10px;
}

.recommend-link-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #5ca2a5;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

/* スマホ表示対応 */
@media (max-width: 600px) {
    .recommend-content {
        flex-direction: column;
        text-align: center;
    }
}
/* ログインフォーム全体のコンテナ調整 */
.login-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

/* フォームグループの余白 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #444;
}

/* 入力欄のラッパー（アイコンを重ねるため） */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* アイコンの配置 */
.input-icon {
    position: absolute;
    left: 15px;
    color: #aaa;
    font-size: 1.1rem;
}

/* 入力欄本体の装飾（スマホ最適化） */
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px 15px 15px 45px; /* 左側にアイコン用の余白 */
    font-size: 16px; /* ★重要：iOSのズーム防止のため16px以上に設定 */
    border: 2px solid #e0e0e0;
    border-radius: 12px; /* 角を丸くしてモダンに */
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none; /* iOSのデフォルトスタイルをリセット */
}

/* フォーカス時の色（ブランドカラーに合わせる） */
.login-form input:focus {
    outline: none;
    border-color: #5ca2a5; /* ヘッダー等で使用している色 */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(92, 162, 165, 0.1);
}

/* ログインボタンの強化 */
.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    background: linear-gradient(135deg, #5ca2a5, #4a8d90);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(92, 162, 165, 0.3);
    transition: transform 0.2s ease;
}

.btn-login:active {
    transform: scale(0.98); /* タップした時に少し沈む演出 */
}

/* 新規登録リンク */
.register-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

.register-link a {
    color: #5ca2a5;
    text-decoration: none;
    font-weight: bold;
}
/* order_confirm.php 用のスタイル集 */

/* 1. 共通案内ボックス */
.checkout-status-alert {
    background: #f0f7f7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 5px solid #5ca2a5;
}

/* 2. PayPay送金セクション */
.paypay-container {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}

.paypay-total-amount {
    font-weight: bold;
    color: #ff0033;
    margin-bottom: 10px;
}

.paypay-qr-wrapper {
    margin: 20px 0;
}

.paypay-qr-image {
    width: 250px;
    border: 1px solid #ddd;
    padding: 10px;
}

.paypay-guide {
    text-align: left;
    display: inline-block;
    max-width: 300px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #555;
}

.paypay-guide ol {
    padding-left: 20px;
}

.btn-paypay-launch {
    display: inline-block;
    background-color: #ff0033;
    color: #fff !important;
    text-decoration: none !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 0, 51, 0.3);
    transition: transform 0.2s;
}

.btn-paypay-launch:active {
    transform: scale(0.95);
}

.paypay-icon-small {
    width: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

.paypay-app-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
}

/* 3. 銀行振込・PayPalエリア */
.bank-detail-box {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
}

.paypal-area {
    text-align: center;
    padding: 20px;
}

.paypal-instruction-text {
    margin-bottom: 15px;
    font-size: 14px;
}

/* 4. 注文サマリー */
.summary-section {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.summary-info-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.summary-final-price {
    color: #d63031;
    font-size: 20px;
    font-weight: bold;
}

.checkout-footer-nav {
    text-align: center;
    margin-top: 30px;
}
/* Instagram Section */
.instagram-section {
    margin: 40px auto;
    max-width: 500px;
    padding: 0 20px;
}

.instagram-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.insta-icon {
    font-size: 32px;
    margin-bottom: 10px;
    /* インスタカラーのグラデーション */
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insta-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: 0.05em;
}

.insta-text {
    color: #888;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.btn-insta {
    display: inline-block;
    padding: 10px 25px;
    background-color: #5ca2a5;
    color: #fff !important; /* aタグの色を白に固定 */
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-insta:hover {
    background-color: #4a8d90;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(92, 162, 165, 0.2);
}