@charset "utf-8";

/* =========================================
   基本設定・カラー変数
   ========================================= */
:root {
  --grad: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
  --dark: #2d3436;
  --soft-bg: #f4f7f8;
  --orange: #ff9f43;
  --text-sub: #636e72;
  --sns-blue: #3897f0;
}

html { 
  scroll-behavior: smooth;
  /* PC画面の背景色（アプリの外側） */
  background-color: #dce1e3; 
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--soft-bg);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  
  /* --- 【重要】タブレットサイズ(800px)への統一設定 --- */
  max-width: 800px;
  margin: 0 auto;   /* 画面中央に配置 */
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.08); /* アプリのような影 */
  position: relative;
}

/* 全体設定：ボックスサイズ */
*, *::before, *::after { box-sizing: border-box; }

/* メインコンテンツ全体をヘッダーの高さ分だけ下げる */
main.container, .product-lp-main, .home-main, .cart-page, .checkout-page, .static-page-main {
  padding-top: 60px;
}

/* ページ内アンカーリンクのズレ防止 */
:target {
  scroll-margin-top: 70px;
}

/* =========================================
   ヘッダー (固定配置)
   ========================================= */
.header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: fixed;
  top: 0;
  
  /* 固定配置を中央のボディ幅(800px)に合わせる設定 */
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  z-index: 1000;
}

.header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ロゴ */
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-main {
  font-size: 0.9rem;
  font-weight: 300;
  color: #333;
  letter-spacing: 0.2em;
  line-height: 1.2;
}
.logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.45rem;
  font-weight: 900;
  color: #ccc;
  letter-spacing: 0.2em;
  margin-top: 2px;
}
.logo-main span.dot { color: var(--orange); font-weight: 400; margin-left: 1px; }
.brand-logo { font-family: 'Outfit'; font-weight: 900; font-size: 1rem; text-decoration: none; color: var(--dark); }
.brand-logo span { color: var(--orange); }

/* カートアイコン & バッジ */
.header-cart { text-decoration: none; color: inherit; display: flex; align-items: center; }
.cart-icon-wrapper { position: relative; display: inline-block; padding: 5px; }
.icon-cart { width: 24px; height: 24px; stroke-width: 1.5px; }
.cart-badge {
    position: absolute; top: 0; right: 0;
    background-color: var(--orange); color: white;
    font-size: 10px; font-weight: bold; line-height: 1;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* =========================================
   トップページ (HOME)
   ========================================= */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/hero-bg5.jpg'); 
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.btn-shop-now {
    display: inline-block; background: #febd69; color: #111;
    padding: 12px 30px; border-radius: 8px; text-decoration: none;
    font-weight: bold; transition: 0.3s;
}
.btn-shop-now:hover { background: #f3a847; }

/* 修正後（左右に余白を追加） */
.category-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    /* 上下20px、左右1.5rem の余白を設定 */
    padding: 20px 1.5rem; 
    margin-bottom: 20px;
}
.cat-item {
    background: #fff; padding: 8px 20px; border-radius: 20px;
    white-space: nowrap; color: #444; text-decoration: none;
    font-size: 0.9rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cat-item.active { background: #232f3e; color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 0 1.5rem; }
.product-card { background: #fff; border-radius: 4px; overflow: hidden; transition: transform 0.2s; border: 1px solid #ddd; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-link { text-decoration: none; color: inherit; }
.product-img { height: 200px; padding: 20px; background: #fff; display: flex; align-items: center; justify-content: center; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { padding: 15px; border-top: 1px solid #f4f4f4; }
.product-name {
    font-size: 0.95rem; height: 2.8rem; overflow: hidden; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    color: #007185;
}
.product-rating { display: flex; align-items: center; gap: 4px; margin: 8px 0; min-height: 20px; }
.product-rating [data-lucide="star"] { width: 14px; height: 14px; color: #ccc; }
.product-rating [data-lucide="star"].fill { color: #ffa41c; fill: #ffa41c; }
.product-rating [data-lucide="star"].fill-half { color: #ffa41c; }
.rating-count { font-size: 0.85rem; color: #565959; margin-left: 4px; font-weight: bold; }
.no-review-label { font-size: 0.75rem; color: #007185; background: #e7f4f5; padding: 2px 6px; border-radius: 2px; }
.product-price { color: #0f1111; margin-bottom: 5px; }
.currency { font-size: 0.8rem; vertical-align: top; margin-top: 4px; display: inline-block; }
.amount { font-size: 1.5rem; font-weight: bold; }
.tax-label { font-size: 0.75rem; color: #565959; }
.delivery-label { font-size: 0.75rem; color: #565959; }

/* =========================================
   商品LP (Landing Page)
   ========================================= */
.hero-container { position: relative; width: 100%; overflow: hidden; line-height: 0; }
.hero-container img { width: 100%; height: auto; display: block; }
.hero-product-name {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px);
    padding: 8px 15px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: right; max-width: 85%;
}
.hero-product-name .product-title { font-size: 1.1rem; font-weight: 900; color: var(--dark); display: block; }

/* タブナビゲーション */
.product-master-tabs { display: flex; justify-content: center; background: #f8f8f8; position: sticky; top: 60px; z-index: 100; border-bottom: 1px solid #ddd; width: 100%; }
.m-tab-btn { flex: 1; max-width: 300px; padding: 15px; border: none; background: none; font-weight: bold; cursor: pointer; color: #888; transition: 0.3s; }
.m-tab-btn.active { color: #e47911; border-bottom: 3px solid #e47911; }
.m-tab-content { display: none; }
.m-tab-content.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* サムネイルナビ */
.thumb-nav { padding: 1rem 1.5rem; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.thumb-nav::-webkit-scrollbar { display: none; }
.thumb-item { flex: 0 0 75px; text-align: center; text-decoration: none; }
.thumb-item img { width: 75px; height: 75px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; }
.thumb-item span { display: block; font-size: 0.65rem; font-weight: 700; color: var(--dark); white-space: nowrap; }

/* クーポン */
.coupon-banner { margin: 2rem 1.5rem; background: #fff; border: 2px dashed var(--orange); border-radius: 12px; padding: 1.5rem; position: relative; overflow: hidden; }
.coupon-label { position: absolute; top: 0; left: 0; background: var(--orange); color: #fff; font-size: 0.65rem; font-weight: 900; padding: 4px 12px; border-bottom-right-radius: 8px; }
.coupon-inner { text-align: center; }
.coupon-price { font-size: 1.8rem; font-weight: 900; color: var(--orange); margin-bottom: 0.8rem; }
.coupon-code-box { display: inline-block; background: #fdf2f0; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; color: #333; }
.coupon-code-box .code { font-weight: 900; color: var(--orange); margin-left: 5px; }

/* おすすめセクション */
.recommend-box { background: #fff; margin: 0.5rem 1.5rem 1.5rem; padding: 1.5rem; border-radius: 16px; border: 1.5px solid #eee; }
.recommend-title-minimal { font-size: 0.85rem; font-weight: 900; color: var(--dark); text-align: center; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }
.recommend-title-minimal::before, .recommend-title-minimal::after { content: ""; flex: 1; height: 1px; background: #eee; }
.recommend-list { display: flex; flex-direction: column; gap: 10px; }
.recommend-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8rem; font-weight: 600; color: #555; }

/* 見出し & テキスト */
.sec-title { text-align: center; font-size: 1.1rem; font-weight: 300; color: #333; letter-spacing: 0.25em; margin: 4rem 0 2rem; position: relative; }
.sec-title::after { content: attr(data-en); display: block; font-family: 'Outfit', sans-serif; font-size: 0.55rem; font-weight: 900; color: #ddd; letter-spacing: 0.4em; margin-top: 6px; text-transform: uppercase; }
.sec-title span.dot { color: var(--orange); font-weight: 900; margin-left: 0.1em; }

.hero-txt { text-align: center; margin: 3rem 0; padding: 0 1.5rem; }
.hero-txt h2 { font-size: 1.25rem; font-weight: 300; color: #333; letter-spacing: 0.2em; line-height: 1.6; }

/* 特徴 & 動画 & 画像 */
.image-stack { display: flex; flex-direction: column; margin: 1rem 1.5rem; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); scroll-margin-top: 60px; }
.image-stack img { width: 100%; display: block; }

.video-section { padding: 0 1.5rem; margin-bottom: 4rem; }
.video-container { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.feature-row { display: flex; flex-direction: column; gap: 20px; padding: 0 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 20px; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.feature-item.reverse { flex-direction: row-reverse; }
.feature-img { width: 45%; cursor: zoom-in; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { width: 55%; padding: 1.2rem; }
.feature-body h4 { font-size: 0.95rem; font-weight: 900; color: var(--orange); margin-bottom: 0.5rem; }
.feature-body p { font-size: 0.8rem; color: var(--text-sub); }

.text-only-section { margin: 1rem 1.5rem; padding: 40px 20px; background: #fff; text-align: center; border-radius: 20px; }
.text-only-title { font-size: 1.3rem; color: #333; margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 10px; }
.text-only-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #FF8C00; }
.text-content { font-size: 1rem; line-height: 2; color: #555; text-align: left; display: inline-block; width: 100%; }

/* 成分 & 栄養 */
.ing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 1.5rem; }
.ing-item { background: #fff; padding: 1rem; border-radius: 20px; text-align: center; border: 1px solid #eee; }
.ing-item h5 { font-size: 0.8rem; color: var(--orange); font-weight: 900; }

#all-ingredients { padding: 0 1.5rem; margin-bottom: 4rem; }
.all-ingredients-card { background: #f9f9f9; border-radius: 12px; padding: 2rem; border: 1px solid #eee; }
.ing-label { font-size: 0.75rem; font-weight: 900; color: #999; letter-spacing: 0.1em; margin-bottom: 1rem; border-bottom: 1px solid #ddd; display: inline-block; }
.ing-text { font-size: 0.85rem; line-height: 1.8; color: #555; text-align: justify; margin-bottom: 1.5rem; }

.nutrition-table { background: #fff; margin: 0 1.5rem; padding: 1.5rem; border-radius: 20px; border: 1px solid #ddd; }
.nutrition-row { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 8px 0; font-size: 0.8rem; }

/* FAQ */
.faq-list { padding: 0 1.5rem; }
.faq-item { background: #fff; border-radius: 15px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); position: relative; }
.faq-check { display: none; }
.faq-q { padding: 1.2rem; font-weight: 900; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; cursor: pointer; }
.faq-a { max-height: 0; overflow: hidden; font-size: 0.8rem; color: var(--text-sub); padding: 0 1.2rem; transition: all 0.3s ease; opacity: 0; }
.faq-check:checked ~ .faq-a { max-height: 300px; padding: 1.2rem; opacity: 1; border-top: 1px dashed #eee; }
.faq-check:checked ~ .faq-q i { transform: rotate(180deg); }

/* 購入プラン */
.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 1.5rem 2rem; }
.p-card { background: #fff; border-radius: 15px; padding: 15px 10px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.p-card.popular { border: 2px solid var(--orange); }
.p-card.popular .plan-badge { background: var(--orange); color: #fff; }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; font-weight: 900; white-space: nowrap; }
.plan-title { font-size: 0.75rem; font-weight: 900; margin-bottom: 8px; color: var(--dark); }
.price { font-size: 1.2rem; font-weight: 900; color: var(--orange); }
.price span { font-size: 0.7rem; margin-left: 2px; }
.old-price { font-size: 0.65rem; text-decoration: line-through; color: #999; display: block; }
.btn-cart { background: var(--grad); color: #fff; border: none; padding: 8px; border-radius: 50px; font-size: 0.8rem; font-weight: 900; margin-top: 10px; width: 100%; cursor: pointer; }

/* フローティングボタン (800px対応) */
.floating-footer-btn {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  max-width: 800px; width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  z-index: 999;
  display: flex; justify-content: center; align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.f-btn {
  background: var(--grad); color: #fff; text-decoration: none; width: 100%; max-width: 400px; padding: 10px 0; border-radius: 100px; text-align: center; font-weight: 900; font-size: 1rem; box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); display: flex; align-items: center; justify-content: center; gap: 8px; border: none;
}
.floating-footer-btn.is-hidden { transform: translate(-50%, 100%); opacity: 0; pointer-events: none; }

/* 口コミ */
/* 修正後（左右に余白を追加） */
.review-summary-card { 
    display: flex; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    padding: 30px; 
    /* 上0、左右1.5rem、下30px の余白を設定 */
    margin: 0 1.5rem 30px; 
    align-items: center; 
    gap: 40px; 
}
.summary-left { text-align: center; border-right: 1px solid #eee; padding-right: 40px; }
.avg-number { font-size: 3rem; font-weight: bold; color: #333; line-height: 1; }
.avg-stars { color: #ffa41c; font-size: 1.2rem; margin: 10px 0; }
.review-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; padding: 0 10px; }
.pg-link { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; text-decoration: none; color: #333; border-radius: 4px; background: #fff; }
.pg-link.active { background: #232f3e; color: #fff; border-color: #232f3e; }

/* 修正後（余白をしっかり確保） */
.review-container { 
    max-width: 100%; 
    margin: 0 auto; 
    padding: 20px 1.5rem; /* 左右に1.5rem (約24px) の余白を追加 */
}

.review-entry { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    margin-bottom: 20px; /* カード同士の間隔も少し広げる */
    border: 1px solid #eee; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* 軽く影をつけて浮き上がらせる */
}
.entry-stars { color: #ffa41c; letter-spacing: 2px; }

/* =========================================
   買い物カゴ (Cart)
   ========================================= */
.cart-wrapper { margin: 0 auto; padding: 0 1.5rem 5rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid #f0f0f0; gap: 1rem; }
.cart-item-left { display: flex; align-items: center; gap: 1.2rem; flex: 1; }
.cart-thumb { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; background: #f9f9f9; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { display: block; font-weight: bold; font-size: 0.9rem; margin-bottom: 0.2rem; color: #333; }
.cart-item-price { color: #888; font-size: 0.8rem; }
.cart-item-right { text-align: right; }
.qty-control { display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; margin-bottom: 0.5rem; }
.qty-btns { display: flex; border: 1px solid #ddd; border-radius: 4px; height: 28px; background: #fff; }
.qty-btns a { width: 28px; text-align: center; text-decoration: none; color: #333; line-height: 26px; font-weight: bold; }
.qty-btns span { width: 32px; text-align: center; border-left: 1px solid #ddd; border-right: 1px solid #ddd; line-height: 26px; font-size: 0.85rem; }
.btn-remove { font-size: 0.7rem; color: #bbb; text-decoration: underline; }
.cart-subtotal { font-weight: 800; color: var(--orange); font-size: 1.05rem; }
.cart-summary { background: #fdfdfd; padding: 2rem; border-radius: 16px; margin-top: 2rem; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.9rem; color: #666; width: 100%; }
.summary-row .free { color: var(--orange); font-weight: bold; }
.summary-total { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid #eee; padding-top: 1.2rem; margin-top: 1.2rem; width: 100%; }
.total-amount { font-size: 1.8rem; font-weight: 900; color: var(--orange); }
.btn-checkout { display: block; width: 100%; max-width: 400px; background: #222; color: #fff; text-align: center; padding: 1.2rem; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; border: none; cursor: pointer; margin-top: 2rem; transition: 0.3s; }
.btn-checkout:hover { background: #000; transform: translateY(-2px); }
.cart-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 1rem; width: 100%; }
.btn-amazon { width: 100%; max-width: 400px; background: #FF9900; color: #232F3E; padding: 1rem; border-radius: 50px; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: bold; }
.btn-continue { color: #888; font-size: 0.85rem; padding: 0.5rem; text-decoration: none; }
.cart-empty { text-align: center; padding: 6rem 0; color: #999; }
.empty-icon { margin-bottom: 1rem; opacity: 0.3; }
.empty-icon i { width: 50px; height: 50px; }

/* =========================================
   注文手続き (Checkout)
   ========================================= */
/* Checkout Page */
.checkout-page { 
  padding-top: 60px; 
  padding-bottom: 80px;
  
  /* --- 【追加】左右に余白を入れる --- */
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* ついでに、スマホ表示時にサイドバー（注文内容）とフォームの間隔が詰まりすぎないよう調整 */
@media (max-width: 768px) {
    .checkout-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; /* スマホでは間隔を少し狭める */
    }
}
/* style.css */



/* 修正後（こうなればOK） */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    /* align-items: start; を削除しました */
}

.form-section { background: #fff; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; border: 1px solid #eee; }
.form-section h3 { font-size: 1.1rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #f9f9f9; padding-bottom: 1rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; font-weight: bold; margin-bottom: 0.5rem; }
.field label span { color: #ff4d4d; font-size: 0.7rem; margin-left: 5px; }
.field input, .field select { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-item { display: flex; align-items: center; padding: 1rem; border: 1px solid #eee; border-radius: 8px; cursor: pointer; transition: 0.2s; margin-bottom: 10px; }
.payment-item:has(input:checked) { border-color: #222; background: #f9f9f9; }
.payment-item input { margin-right: 12px; }
.summary-box { background: #222; color: #fff; padding: 2rem; border-radius: 16px; position: sticky; top: 80px; }
.summary-box h4 { margin-bottom: 1.5rem; border-bottom: 1px solid #444; padding-bottom: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.btn-confirm { width: 100%; background: var(--orange); color: #fff; border: none; padding: 1.2rem; border-radius: 50px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.summary-items { margin-bottom: 1.5rem; max-height: 300px; overflow-y: auto; }
.s-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #444; }
.s-item-info { flex: 1; }
.s-item-name { font-size: 0.75rem; color: #ccc; font-weight: bold; }
.s-item-qty { font-size: 0.7rem; color: #888; }
/* style.css 内の該当箇所を修正 */
/* 修正前：50px, border-radius 4px */
.s-item-img {
    width: 65px;         /* カート画面(70px)に近づけつつ、サイドバーに収まるサイズ */
    height: 65px;
    background: #f9f9f9; /* カートと同じ背景色 */
    border-radius: 8px;  /* カートと同じ角丸 */
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee; /* 薄い枠線を追加 */
}

/* ★重要：ここを追加・修正 */
.s-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 枠いっぱいに画像をトリミングして表示 */
    display: block;
}
/* =========================================
   確認画面 (Confirm)
   ========================================= */
.confirm-wrapper { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; margin-top: 2rem; }
.confirm-section { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; }
.confirm-table th { width: 100px; text-align: left; font-size: 0.85rem; color: #888; vertical-align: top; padding: 10px 0; }
.confirm-table td { padding: 10px 0; font-weight: bold; font-size: 0.95rem; }
.pay-instr { text-align: center; background: #f9f9f9; padding: 2rem; border-radius: 8px; }
.summary-card { background: #222; color: #fff; padding: 2rem; border-radius: 16px; text-align: center; position: sticky; top: 100px; }
.final-total { font-size: 2rem; font-weight: 900; color: var(--orange); margin: 1rem 0; }
.confirm-items-mini { text-align: left; font-size: 0.75rem; color: #ccc; margin: 1rem 0; border-top: 1px solid #444; padding-top: 10px; }
.confirm-items-mini p { margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================
   完了画面 (Thanks)
   ========================================= */
.thanks-container { max-width: 100%; margin: 0 auto; background: #fff; padding: 50px 40px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; border: 1px solid #eee; }
.thanks-icon { margin-bottom: 25px; display: inline-flex; justify-content: center; align-items: center; width: 80px; height: 80px; background: #e8f5e9; border-radius: 50%; }
.thanks-icon i { width: 40px; height: 40px; color: #4CAF50; }
.thanks-container h2 { font-size: 1.8rem; margin-bottom: 15px; color: #222; font-weight: 700; }
.thanks-msg { color: #666; line-height: 1.8; margin-bottom: 40px; font-size: 1rem; }
.instr-box { background: #f8f9fa; padding: 30px; border-radius: 16px; border: 1px solid #edf0f2; text-align: left; margin-bottom: 40px; }
.btn-home { display: inline-block; background: #222; color: #fff; text-decoration: none; padding: 16px 45px; border-radius: 50px; font-weight: bold; font-size: 1rem; transition: all 0.3s ease; }

/* =========================================
   静的ページ (特商法・プライバシー・問い合わせ)
   ========================================= */
.static-card { margin: 1rem 1.5rem; padding: 2.5rem; background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.static-title { font-size: 1.6rem; text-align: center; margin-bottom: 2.5rem; color: #333; font-weight: bold; }
.tokusho-row { display: flex; border-bottom: 1px solid #eee; padding: 1.5rem 0; }
.tokusho-label { width: 28%; font-weight: bold; color: #444; padding-right: 20px; }
.tokusho-content { width: 72%; color: #333; }
.privacy-content { line-height: 1.8; color: #444; text-align: left; }
.privacy-subtitle { font-size: 1.2rem; color: #333; margin: 2.5rem 0 1rem; padding-left: 10px; border-left: 4px solid #FF8C00; }
.contact-form { max-width: 600px; margin: 0 auto; }
.btn-submit { width: 100%; padding: 15px; background: #FF8C00; color: #fff; border: none; border-radius: 30px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 1rem; }

/* =========================================
   返金申請フォーム (Refund)
   ========================================= */
.refund-header { text-align: center; margin-bottom: 3rem; }
.refund-intro { color: #666; line-height: 1.8; font-size: 0.95rem; }
.date-info-box { background: #fff5f5; border: 1px solid #feb2b2; padding: 12px; border-radius: 8px; color: #c53030; font-weight: bold; text-align: center; margin-bottom: 1.5rem; }
.bank-section { background: #fffaf5; border-color: #f9e3d0; }
.bank-notice { font-size: 0.85rem; color: #c53030; margin-bottom: 1.5rem; }
.terms-scroll-box { background: #fff; border: 1px solid #ddd; padding: 20px; height: 300px; overflow-y: scroll; font-size: 0.85rem; color: #444; margin-bottom: 1.5rem; line-height: 1.8; border-radius: 8px; }
.terms-scroll-box h4 { font-size: 0.95rem; margin: 1.5rem 0 0.5rem; color: #000; border-left: 4px solid #FF8C00; padding-left: 8px; }
.form-check-group { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: #fff; border: 2px solid #FF8C00; border-radius: 10px; }

/* =========================================
   フッター & モーダル
   ========================================= */
footer { background: #fff; padding: 4rem 1.5rem 100px; text-align: center; border-radius: 50px 0 0 0; margin-top: 4rem; }
.footer-nav { margin-top: 20px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8rem; color: #666; text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover { color: var(--orange); text-decoration: underline; }

#zoom-modal { 
  display: none; position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 800px; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 2000;
  justify-content: center; align-items: center; 
}
#zoom-modal.active { display: flex; }
#zoom-modal img { max-width: 90%; max-height: 80%; border-radius: 10px; }

/* =========================================
   レスポンシブ (スマホ向け調整)
   ========================================= */
@media (max-width: 768px) {
    .checkout-grid, .confirm-wrapper { grid-template-columns: 1fr; }
    .review-summary-card { flex-direction: column; text-align: center; gap: 20px; }
    .summary-left { border-right: none; padding-right: 0; border-bottom: 1px solid #eee; padding-bottom: 20px; width: 100%; }
    .tokusho-row { flex-direction: column; }
    .tokusho-label { width: 100%; padding-right: 0; margin-bottom: 10px; }
    .feature-item { flex-direction: column !important; }
    .feature-img, .feature-body { width: 100%; }
}
/* =========================================
   お問い合わせページ専用 FAQ (Pure CSS)
   ========================================= */
.faq-check-section {
    width: 100%;
}

.faq-intro {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* チェックボックスは隠す */
.faq-check {
    display: none;
}

/* 枠のデザイン */
.faq-pure-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

/* 質問部分（クリックエリア） */
.faq-pure-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.faq-pure-q:hover {
    background: #fffaf5;
}

/* 回答部分（初期状態は閉じる） */
.faq-pure-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-pure-a-inner {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.8;
    border-top: 1px solid #f9f9f9;
    font-size: 0.9rem;
}

/* --- 開閉の仕組み（チェックされたら開く） --- */
.faq-check:checked ~ .faq-pure-a {
    max-height: 500px; /* 十分な高さを指定 */
}

.faq-check:checked ~ .faq-pure-q {
    background: #fffcf5;
    color: var(--orange); /* 文字色をオレンジに */
}

/* 矢印アイコンの回転 */
.faq-check:checked ~ .faq-pure-q i {
    transform: rotate(180deg);
}

.faq-pure-q i {
    transition: transform 0.3s ease;
    color: #ccc;
}

/* お問い合わせフォーム誘導エリア */
.faq-footer {
    text-align: center;
    background: #fffcf5;
    padding: 40px 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px dashed #f9e3d0;
}

.btn-outline {
    background: #fff;
    border: 2px solid #ddd;
    color: #666;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* フォーム本体の表示切り替えアニメーション */
.contact-form-wrapper {
    display: none;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}
.contact-form-wrapper.is-active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.static-title-sub {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.contact-notice {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
    color: #c53030;
}

.contact-notice h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-notice ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* スパム防止クイズ */
.spam-quiz {
    background: #fdf8f3;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f9e3d0;
}

/* ハニーポット（隠しフィールド） */
.hp-field {
    display: none;
}
/* =========================================
   お問い合わせページ専用 (FAQ & フォーム)
   ========================================= */

/* --- FAQ（アコーディオン） --- */
.faq-check-section {
    width: 100%;
}
.faq-intro {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-check { display: none; }

.faq-pure-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.faq-pure-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.faq-pure-q:hover { background: #fffaf5; }

.faq-pure-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}
.faq-pure-a-inner {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.8;
    border-top: 1px solid #f9f9f9;
    font-size: 0.9rem;
}

/* 開閉ロジック */
.faq-check:checked ~ .faq-pure-a { max-height: 500px; }
.faq-check:checked ~ .faq-pure-q { background: #fffcf5; color: var(--orange); }
.faq-check:checked ~ .faq-pure-q i { transform: rotate(180deg); }
.faq-pure-q i { transition: transform 0.3s ease; color: #ccc; }


/* --- お問い合わせフッター & フォーム誘導 --- */
.faq-footer {
    text-align: center;
    background: #fffcf5;
    padding: 40px 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px dashed #f9e3d0;
}
.btn-outline {
    background: #fff;
    border: 2px solid #ddd;
    color: #666;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}


/* --- フォーム本体ラッパー --- */
.contact-form-wrapper {
    display: none; /* 初期状態は非表示 */
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}
.contact-form-wrapper.is-active {
    display: block;
    animation: fadeIn 0.5s ease;
}


/* --- フォーム要素のデザイン --- */
.static-title-sub {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* フォームグループ (Checkoutの.fieldとは別名のクラスを使っているため定義が必要) */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-group label span {
    color: #e44;
    font-size: 0.7rem;
    margin-left: 8px;
    background: #fee;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    appearance: none; /* iOS等のデフォルトスタイル解除 */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}


/* --- 注意書きボックス --- */
.contact-notice {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
    color: #c53030;
}
.contact-notice h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-notice ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.7;
}


/* --- スパム防止・その他 --- */
.spam-quiz {
    background: #fdf8f3;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f9e3d0;
}

.hp-field {
    display: none;
}
/* =========================================
   成分検索エリア (index.php)
   ========================================= */
.search-section {
    padding: 0 1.5rem 4rem;
    background: #fff;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

/* 検索フォーム */
.ing-search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.ing-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    background: #f9f9f9;
    outline: none;
    transition: 0.3s;
}

.ing-input:focus {
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.ing-btn {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 0 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.ing-btn:hover {
    background: #000;
}

/* 検索結果メッセージ */
.result-msg {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

.result-msg .highlight {
    color: var(--orange);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 4px;
}

.no-result-text {
    text-align: center;
    color: #888;
    padding: 3rem 0;
    background: #f9f9f9;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .ing-search-form {
        flex-direction: column;
    }
    .ing-btn {
        justify-content: center;
        padding: 12px;
    }
}
/* =========================================
   サンクスページ & PayPayガイド 共通スタイル
   ========================================= */

/* --- ページレイアウト (thanks.php / paypay_guide.php) --- */
.thanks-page,
.pp-guide-page {
    padding: 80px 20px;
    text-align: center;
    background: #fdfdfd;
}

.thanks-container,
.pp-guide-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
}

/* サンクスアイコン & メッセージ */
.thanks-icon {
    font-size: 64px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: inline-block;
}

.thanks-msg,
.guide-intro {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ボタン類 */
.btn-home {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-home:hover {
    background: #444;
}

.btn-back-home {
    display: inline-block;
    margin-top: 20px;
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid #888;
    padding-bottom: 2px;
}
.btn-back-home:hover {
    color: #333;
    border-color: #333;
}


/* --- 支払い案内ボックス (銀行振込・代引き等) --- */
.payment-instructions {
    text-align: left;
    margin-top: 30px;
}

.instr-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.instr-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.bank-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.bank-card p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.bank-card span {
    color: #888;
    font-size: 0.9rem;
}

.total-line {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.notice {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}


/* =========================================
   PayPay専用デザイン (スマホアプリ風)
   ========================================= */
.pp-container {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

/* ヘッダー（赤） */
.pp-header {
    background: #FF0033;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.pp-logo-text {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-style: italic;
    margin-right: 5px;
}

.pp-body {
    padding: 25px 20px;
}

/* 金額表示 */
.pp-amount-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.pp-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 20px;
}

/* QRコードエリア */
.pp-qr-box {
    background: #f9f9f9;
    display: inline-block;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #ccc;
    margin-bottom: 25px;
}

.pp-save-hint {
    font-size: 0.75rem;
    color: #FF0033;
    font-weight: bold;
    margin-bottom: 8px;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pp-qr-img {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* アプリ起動ボタン */
.pp-btn-launch {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
    background: #FF0033;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 0, 51, 0.3);
    transition: transform 0.2s;
}

.pp-btn-launch:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 手順アコーディオンエリア */
.pp-steps-box {
    text-align: left;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
}

.pp-steps-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #333;
    position: relative;
}

.pp-steps-title::before,
.pp-steps-title::after {
    content: '-';
    color: #ccc;
    margin: 0 10px;
}

.pp-step {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.pp-step:last-child {
    margin-bottom: 0;
}

.step-num {
    background: #333;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-desc {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.step-desc strong {
    color: #FF0033;
}

.step-desc small {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* 疑似アイコン */
.pp-icon-mock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pp-icon-mock i {
    width: 14px;
    height: 14px;
}

.pp-footer-note {
    background: #fff5f5;
    color: #c53030;
    font-size: 0.8rem;
    padding: 10px;
    border-top: 1px solid #ffebeb;
}
/* =========================================
   最終確認ページ (Confirm Page)
   ========================================= */
.confirm-page {
    /* 画面全体の余白 */
    padding: 4rem 1.5rem;
    background: #fdfdfd; /* 背景を少しグレーにしてカードを際立たせる */
}

/* レイアウト枠 */
.confirm-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem; /* 左右のカラム間の余白 */
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

/* --- 左側：メインエリア --- */
.confirm-main {
    flex: 1; 
}

/* 各カードのデザイン（余白を追加） */
.confirm-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px; /* カード内側の余白 */
    margin-bottom: 30px; /* カード同士の縦の余白 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* ふんわり影をつける */
}

.confirm-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    color: #333;
}

/* テーブルの余白調整 */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
}
.confirm-table th {
    text-align: left;
    width: 30%;
    color: #888;
    padding: 12px 0;
    font-weight: normal;
    border-bottom: 1px solid #fafafa;
}
.confirm-table td {
    padding: 12px 0;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #fafafa;
}
.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
    border-bottom: none;
}


/* --- 右側：サイドバー（合計金額など） --- */
.confirm-aside {
    width: 340px;
    flex-shrink: 0;
}

.summary-card {
    position: sticky; /* スクロールしてもついてくる */
    top: 100px;
    background: #232f3e; /* ダークな背景 */
    color: #fff;
    padding: 30px; /* 内側の余白 */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.summary-card h4 {
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ddd;
}

.final-total {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffa41c; /* 金額を目立たせるオレンジ */
    margin-bottom: 5px;
    text-align: right;
}

.vat-info {
    font-size: 0.8rem;
    color: #bbb;
    text-align: right;
    margin-bottom: 25px;
}

.btn-back-link {
    display: block;
    text-align: center;
    color: #ccc;
    text-decoration: underline;
    margin-top: 20px;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.btn-back-link:hover {
    color: #fff;
}

/* PayPalボタン周りの案内 */
.pay-instr {
    text-align: center;
}
.pay-instr p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}
/* --- サイドバーの商品リスト（画像付き） --- */
.confirm-items-mini {
    margin: 1.5rem 0;
    border-top: 1px solid #444;
    padding-top: 15px;
}

.mini-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.mini-img {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいに画像を表示 */
}

.mini-info {
    flex: 1;
    overflow: hidden; /* 文字のはみ出し防止 */
}

.mini-name {
    font-size: 0.85rem;
    color: #eee;
    margin: 0 0 4px 0;
    line-height: 1.3;
    /* 長い商品名は2行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-qty {
    font-size: 0.75rem;
    color: #bbb;
    margin: 0;
}
/* --- レスポンシブ対応（スマホ用） --- */
@media (max-width: 850px) {
    .confirm-wrapper {
        flex-direction: column; /* 縦積みに変更 */
        gap: 20px;
    }
    .confirm-aside {
        width: 100%; /* 横幅いっぱいに */
        order: -1; /* 合計金額を先に表示したい場合は -1、後にしたい場合は削除 */
    }
    .summary-card {
        position: static; /* 固定解除 */
    }
    .confirm-page {
        padding: 2rem 1rem;
    }
}
/* インラインで追加するCSS（必要に応じてstyle.cssへ移動してください） */
.product-img { position: relative; }

/* SALEバッジ */
.card-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff0033;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-bottom-right-radius: 8px;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* セール価格表示 */
.price-row-sale {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-strike {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.price-sale-val {
    color: #ff0033;
    font-weight: bold;
    font-size: 1.2rem;
}
.price-sale-val .currency {
    font-size: 0.9rem;
    margin-right: 2px;
}
.sale-label {
    color: #ff0033 !important;
    font-weight: bold;
}
/* =========================================
   スムーズスクロール設定
   ========================================= */

/* 1. ページ全体をスムーズスクロールにする */
html {
    scroll-behavior: smooth;
}

/* 2. 固定ヘッダー分のズレを防止する 
   IDがついている要素（#plans, #ingredientsなど）すべてに適用
*/
[id] {
    /* ヘッダーの高さ + タブの高さ 分の余白を確保します。
      ここを調整して、停止位置をコントロールしてください。
    */
    scroll-margin-top: 130px; 
}

/* スマホはヘッダーが少し小さい場合があるので調整（任意） */
@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 100px;
    }
}/* メディアセクション用CSS */
.media-section { 
    /* 上下60px、左右20pxの余白を追加 */
    padding: 60px 20px; 
    background: #f8f9fa; 
}

.media-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
    
    /* 画面が広くても広がりすぎないように制限をかける */
    max-width: 1000px; 
    margin-left: auto;  /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
}

.media-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.media-date { 
    font-size: 0.8rem; 
    color: #888; 
    margin-bottom: 8px; 
}

.media-name { 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
    color: #232f3e; 
}

.media-text { 
    font-size: 0.9rem; 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

.media-link-text { 
    font-size: 0.85rem; 
    color: #0066c0; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    margin-top: auto; 
}

.media-link-text i { 
    width: 14px; 
}
