/* =============================
   全体のリセット・基本設定
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: #f2f0ec;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    overflow-x: clip;
}

/* =============================
   ヘッダー
============================= */
header {
    background-color: #f2f0ec;
    padding: 20px 40px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-header {
    width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f2f0ec;
}

/* 左エリア：ロゴ画像 */
.logo {
    flex-shrink: 0;
    margin-left: 100px;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    width: 150px;
    height: 150px;
    display: block;
}

/* 右エリア：タイトル＋ナビ */
.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 600px;
}

/* 上段：サイト名 */
.logo-title, .logo-sub {
    font-style: normal;
    color: #ff4d99;
    font-weight: bold;
    text-shadow: 
        0 0 5px rgba(255, 77, 153, 0.6),
        0 0 10px rgba(255, 77, 153, 0.4),
        2px 2px 8px rgba(11, 5, 183, 0.2);
}
.logo-title {
    font-size: 3.5rem;
}
.logo-sub {
    font-size: 2rem;
    margin-left: 1.5rem;
}

/* 下段：ナビ */
nav {
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s;
}

/* メニュー動作 */
nav ul li a:hover {
    color: #03ab62;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    background-color: #03ab62; 
    transform: scaleX(0); 
    transition: transform 0.3s;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* =============================
   メインコンテンツ
============================= */
main {
    background-color: #ffffff;
    width: 1000px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 8px;
    min-height: 300px;
}

h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 16px;
}

p {
    line-height: 1.8;
    margin-bottom: 12px;
}

/* =============================
   index.html
============================= */
.catchcopy {
    text-align: center;
    font-size: 200%;
    padding: 20px;
}

.top_image {
    text-align: center;
}

.top_image img {
    width: 100%;
    height: auto;
    display: block;
}

.intro {
    margin-top: 30px;
    margin-bottom: 50px;
}

.feature-author {
    text-align: right;
}

.feature h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 3px solid #99FF4D;
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* =============================
   口コミ(index.html)
============================= */
.reviews {
  margin-top: 40px;
  margin-bottom: 20px;
}
.reviews h2 {
  font-size: 24px;
  color: #333;
  border-bottom: 3px solid #99FF4D;
  display: inline-block;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.review-item {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-name {
  font-weight: bold;
  color: #333;
}
.review-star {
  color: #ffcc00;
}
.review-text {
  font-size: 14px;
  color: #555;
}

/* =============================
   商品グリッド（list.html）
============================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.product-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #ddd;
}

.product-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.product-price {
    color: #FF4D99;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card a {
    display: inline-block;
    background-color: #4D99FF;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.product-card a:hover {
    background-color: #2277dd;
}

/* =============================
   商品詳細（product.html）
============================= */
.product-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image img {
    width: 360px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #ddd;
}

.product-info {
    flex: 1;
}

.order-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FF4D99;
    margin-bottom: 8px;
}

.stock {
    color: #666;
    margin-bottom: 12px;
}

.farmer-link {
    margin: 12px 0;
}

.farmer-link a {
    color: #4D99FF;
    text-decoration: none;
    margin-left: 8px;
}

select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 16px;
}

.btn-cart {
    display: block;
    width: 100%;
    background-color: #03ab62;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-cart:hover {
    background-color: #028a4e;
}

/* =============================
   関連商品（product.html）
============================= */
.related-products {
    margin-top: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

/* =============================
   お問い合わせフォーム（contact.html）
============================= */
.page-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.required {
    color: #FF4D99;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background-color: #4D99FF;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #2277dd;
}

/* =================================================
   お問い合わせモーダル（contact.html 確認画面用）
   ================================================= */

#contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-confirm-message {
  text-align: center;
  font-weight: bold;
  margin-bottom: 25px;
  color: #333;
}

.modal-confirm-details {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #eee;
  text-align: left;
}

.confirm-row {
  margin-bottom: 15px;
  line-height: 1.5;
  color: #333;
}

.confirm-row:last-child {
  margin-bottom: 0;
}

.confirm-row strong {
  margin-right: 2px;
  color: #555;
  font-weight: bold;
  white-space: nowrap;
}

.content-layout {
  display: flex;
  align-items: flex-start;
}

.content-label {
  flex: 0 0 auto;
  margin-right: 5px;
}

.message-body {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  white-space: pre-wrap;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

#modal-back {
  background: #888;
  flex: 1; 
}
#modal-send {
  flex: 1;
}

/* --- 送信完了画面のレイアウト修正 --- */
.modal-thanks-container {
  text-align: center;
  padding: 10px 0;
}

.modal-thanks-icon {
  font-size: 3rem;
  color: #28a745;
  display: block;
  margin-bottom: 15px;
}

.modal-thanks-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.modal-thanks-text {
  text-align: left;
  display: inline-block;
  max-width: 420px;
  width: 100%;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.modal-home-btn {
  display: block;
  margin: 0 auto;
  width: 200px;
}

/* =============================
   カートページ（cart.html）
============================= */
.cart-container {
    margin-top: 20px;
}

.cart-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table thead {
    background-color: #99FF4D;
}

.cart-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.cart-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    border-top: none;
    border-left: none;
    border-right: none;
}

.cart-product-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product-inner img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #ddd;
    flex-shrink: 0;
}

.cart-product-inner span {
    font-weight: bold;
}

/* カートテーブル 列の text-align */
.cart-table th:first-child,
.cart-table td:first-child {
    text-align: left;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2),
.cart-table th:nth-child(3),
.cart-table td:nth-child(3),
.cart-table th:nth-child(4),
.cart-table td:nth-child(4),
.cart-table th:nth-child(5),
.cart-table td:nth-child(5) {
    text-align: center;
}

.cart-price {
    color: #666;
}

.cart-subtotal {
    font-weight: bold;
    color: #FF4D99;
}

/* ★ パターンC：ピンクアクセントのプルダウン */
.cart-quantity select {
    padding: 6px 32px 6px 12px;
    border-radius: 4px;
    border: 2px solid #FF4D99;
    background-color: #ffffff;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF4D99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.cart-quantity select:focus {
    outline: none;
    border-color: #dd2277;
    box-shadow: 0 0 0 3px rgba(255, 77, 153, 0.2);
}

.btn-delete {
    background-color: #ff4d4d;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background-color: #cc0000;
}

.cart-total {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    text-align: right;
}

.total-price {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.total-price span {
    color: #FF4D99;
}

.cart-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn-continue {
    display: inline-block;
    background-color: #ffffff;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-continue:hover {
    border-color: #99FF4D;
    color: #333;
}

.btn-checkout {
    display: inline-block;
    background-color: #4D99FF;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.btn-checkout:hover {
    background-color: #2277dd;
}

/* =============================
   支払いページ（checkout.html）
============================= */
.checkout-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
}

.checkout-form {
    flex: 1;
}

.checkout-form h2 {
    margin-top: 30px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #99FF4D;
}

.checkout-form h2:first-child {
    margin-top: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
}

.radio-label input {
    width: auto;
    margin: 0;
}

.checkout-summary {
    width: 300px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.checkout-summary h2 {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #99FF4D;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-name {
    color: #333;
}

.summary-price {
    font-weight: bold;
    color: #333;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
}

.summary-total .total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FF4D99;
    margin: 0;
}

.confirm-button {
    text-align: center;
    margin-top: 40px;
}

.btn-confirm {
    background-color: #FF4D99;
    color: #ffffff;
    border: none;
    padding: 16px 60px;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-confirm:hover {
    background-color: #dd2277;
}

/* =============================
   決済ロゴ（checkout.html）
============================= */
.payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-label:hover {
    border-color: #4D99FF;
}

.payment-text {
    font-weight: bold;
    min-width: 120px;
}

.card-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* =============================
   フッター
============================= */
footer {
    background-color: #99FF4D;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ★ベース追加：フィクション表記 */
.fiction{
    font-size: 0.9rem;
}

/* =============================
   SNSアイコン
============================= */
.sns-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.sns-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.sns-links a:hover {
    opacity: 0.7;
}

.sns-links i {
    font-size: 1.6rem;
}

.sns-facebook i {
    color: #1877F2;
}

.sns-instagram i {
    color: #E1306C;
}

.sns-x i {
    color: #ffffff;
}

/* =============================
   トップに戻るボタン
============================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FF4D99;
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.back-to-top::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(-45deg);
    margin-bottom: 5px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #fff;
    color: #FF4D99;
}

.back-to-top:hover::before {
    border-top: 2px solid #FF4D99;
    border-right: 2px solid #FF4D99;
}

/* =============================
   生産者詳細プロフィール セクション
============================= */
.farmer-detail {
    background-color: #ffffff;
    margin: 40px 0;
    padding: 50px 40px;
    border-radius: 12px;
    border: 2px solid #e8f5e9;
}

.farmer-detail h2 {
    font-size: 1.8rem;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 3px solid #99FF4D;
}

.farmer-detail-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 30px 0;
    border-bottom: 1px solid #e8f5e9;
}

.farmer-detail-card:last-child {
    border-bottom: none;
}

.farmer-detail-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #99FF4D;
    flex-shrink: 0;
    background-color: #ddd;
}

.farmer-detail-info h3 {
    font-size: 1.4rem;
    color: #2e7d32;
    margin-bottom: 10px;
}

.farmer-detail-profile {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.farmer-detail-quote {
    font-size: 1rem;
    color: #333;
    font-style: italic;
    background-color: #f0fce8;
    border-left: 4px solid #99FF4D;
    padding: 10px 16px;
    border-radius: 4px;
}

/* =============================
   商品カード ボタンエリア
============================= */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.btn-detail {
    display: block;
    background-color: #4D99FF;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-detail:hover {
    background-color: #2277dd;
}

/* =============================
   カートアイコン・バッジ
============================= */
.cart-icon-link {
    position: relative;
    display: inline-block;
    color: #333;
    font-size: 1.4rem;
    text-decoration: none;
}

.cart-icon-link:hover {
    color: #03ab62;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background-color: #ff4d4d;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

/* =============================
   トースト通知
============================= */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* =============================
   confirm.html 修正版
============================= */
.confirm-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.confirm-section h2 {
  font-size: 1.3rem;
  color: #2e7d32;
  padding-bottom: 8px;
  border-bottom: 2px solid #99FF4D;
  margin-bottom: 20px;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.confirm-table th {
  width: 160px;
  padding: 10px 16px;
  background-color: #f0fce8;
  border: 1px solid #ddd;
  font-weight: bold;
  color: #333;
  text-align: left;
}

.confirm-table td {
  padding: 10px 16px;
  border: 1px solid #ddd;
  color: #333;
}

/* 商品1件のレイアウト */
.confirm-item {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.confirm-item:last-child {
  border-bottom: none;
}

/* 画像エリア（サイズを240x200に固定） */
.confirm-item-image img {
  width: 240px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #ddd;
}

/* テキストエリア */
.confirm-item-text {
  flex: 1;
}

.confirm-item-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
}

.confirm-item-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #FF4D99;
  margin-bottom: 0;
}

/* 説明文エリア */
.confirm-item-desc {
  line-height: 1.6;
  background-color: #f9f9f9;
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 4px solid #99FF4D;
  margin-top: 8px;
}

/* 合計金額 */
.confirm-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 20px 0 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.confirm-total-price {
  font-size: 1.6rem;
  font-weight: bold;
  color: #FF4D99;
}

/* ボタン */
.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.btn-back {
  display: inline-block;
  background-color: #ffffff;
  color: #333;
  border: 2px solid #ddd;
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
}

.btn-back:hover {
  border-color: #99FF4D;
}

.confirm-item-header {
  display: flex;
  justify-content: space-between; 
  align-items: baseline; 
  margin-bottom: 10px;
}

/* --- ★ベース版：ホラー演出：キーワード装飾と超高速・断続振動演出 --- */

.keyword {
  color: inherit;
  display: inline-block;
}

/* 画面内のキーワード（赤く光り、時々ビクッと震える） */
.is-horror .keyword {
  color: #ff0000 !important;
  visibility: visible !important;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  font-family: sans-serif !important;
  animation: stutter-micro-shake 2.5s infinite;
}

/* オーバーレイ内の「あなたに決まりましタ」専用：純粋な超高速・断続振動 */
#punishment-overlay .keyword {
  z-index: 10002;
  position: relative;
  font-family: 'Shippori Mincho B1', serif !important;
  font-weight: 800;  
  font-size: 4rem;
  opacity: 1;
  
  text-shadow: 
    0 0 15px rgba(255, 0, 0, 1), 
    0 0 30px rgba(255, 0, 0, 0.8), 
    0 0 50px rgba(255, 0, 0, 0.6) !important;
  
  animation: horror-high-speed-stutter 0.8s infinite;
  filter: contrast(160%) brightness(130%);
}

/* 演出：「静止」から「超高速痙攣」へ移るアニメーション */
@keyframes horror-high-speed-stutter {
  0%, 50% { transform: translate(0, 0) skew(0deg); }
  51% { transform: translate(-1px, 2px) skew(-2deg); }
  55% { transform: translate(2px, -1px) skew(3deg); }
  59% { transform: translate(-2px, -2px) skew(-3deg); }
  63% { transform: translate(1px, 1px) skew(2deg); }
  67% { transform: translate(-2px, 2px) skew(-2deg); }
  71% { transform: translate(2px, -2px) skew(3deg); }
  75% { transform: translate(-1px, -1px) skew(-3deg); }
  79% { transform: translate(2px, 1px) skew(2deg); }
  83% { transform: translate(-2px, 2px) skew(-2deg); }
  87% { transform: translate(1px, -2px) skew(3deg); }
  91% { transform: translate(-1px, 1px) skew(-3deg); }
  95% { transform: translate(2px, -1px) skew(2deg); }
  96%, 100% { transform: translate(0, 0) skew(0deg); }
}

/* 画面内の文字用の断続的な微細振動 */
@keyframes stutter-micro-shake {
  0%, 85% { transform: translate(0, 0); }
  86% { transform: translate(0.5px, -0.5px); }
  90% { transform: translate(-0.5px, 0.5px); }
  94% { transform: translate(0.5px, 0.5px); }
  95%, 100% { transform: translate(0, 0); }
}

/* オーバーレイ自体の不気味な明滅 */
#punishment-overlay.active {
  animation: bg-flicker 4s infinite;
}

@keyframes bg-flicker {
  0%, 100% { background-color: rgba(0, 0, 0, 0.95); }
  98% { background-color: rgba(40, 0, 0, 0.98); }
}

/* =============================
   thanks.html
============================= */
.thanks-container {
    text-align: center;
    padding: 130px 20px;
    background-image: url('images/gameover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

/* 特別ルート時は背景画像を消す */
body.special-mode .thanks-container {
    background-image: none;
}

.thanks-icon {
    font-size: 5rem;
    color: #99FF4D;
    margin-bottom: 24px;
    display: none;
}

.thanks-title {
    font-size: 2rem;
    color: #ff4d99;
    margin-bottom: 20px;
}

.thanks-message {
    font-size: 1.1rem;
    color: #ff4d99;
    line-height: 2;
    margin-bottom: 30px;
}

.thanks-order-number {
    display: inline-block;
    background-color: #f0fce8;
    border: 1px solid #99FF4D;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 40px;
}

.order-number {
    font-weight: bold;
    color: #2e7d32;
    margin-left: 8px;
}

.thanks-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-thanks-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #333;
    border: 2px solid #ddd;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-thanks-home:hover {
    border-color: #99FF4D;
    color: #333;
}

.btn-thanks-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #03ab62;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.btn-thanks-list:hover {
    background-color: #028a4e;
}

/* ★ベース追加：反転時、トップへ戻るボタンを削除 */
body.special-mode #back-to-top {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =============================
   準備中画像（noimage）
============================= */
.noimage {
    width: 100%;
    height: 160px;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.noimage span {
    font-size: 1rem;
    color: #999;
    font-weight: bold;
}

/* product.html 用の大きい準備中 */
.product-image .noimage {
    width: 360px;
    height: 300px;
    border-radius: 8px;
}

/* =============================
   暗転オーバーレイ（大根ギミック）
============================= */
.btn-escape {
    position: relative;
    transition: all 0.3s ease-out;
    z-index: 1000;
}

#punishment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    color: #ff0000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
    font-family: serif;
}

#punishment-overlay.active {
    opacity: 1;
    visibility: visible;
}

.punishment-text {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 20px;
    animation: text-glitch 0.1s infinite;
}

@keyframes text-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* =============================
   やさいウォーク
============================= */
.vege-pop {
    position: fixed;
    bottom: 20px;
    right: -250px; 
    width: 200px;
    z-index: 9998;
    pointer-events: none;
    display: none;
}

.vege-pop.active {
    display: block;
    animation: vege-cross-screen 5s linear forwards;
}

@keyframes vege-cross-screen {
    0% {
        right: -250px;
    }
    100% {
        right: 100vw;
    }
}

#vege-img {
    width: 100%;
    height: auto;
}

/* =============================
   空カート表示（cart.html）
============================= */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart-message {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 30px;
}

.btn-empty-cart {
    display: inline-block;
    background-color: #03ab62;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.btn-empty-cart:hover {
    background-color: #028a4e;
}

/* =============================
   product.html カートボタン中央配置
============================= */
.order-box-btn {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    overflow: visible !important;
    position: relative;
}

.order-box-btn .btn-cart {
    width: 60%;
}

/* =============================
   checkout.html 水色ボタン
============================= */
.btn-confirm-blue {
    background-color: #4D99FF;
}

.btn-confirm-blue:hover {
    background-color: #2277dd;
}

/* =============================
   トップ画像+サイドバー（index.html）
============================= */
.top-wrapper {
    overflow: clip;
}

.top-with-sidebar {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.top-with-sidebar .top_image {
    width: 1000px;
    margin: 0 auto;
}

.top-with-sidebar .top_image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================
   左固定エリア（カウンター＋広告バナー）
============================= */
.left-fixed-area {
    position: fixed;
    left: 20px;
    top: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 220px;
    z-index: 1001;
}

.visitor-counter-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.visitor-counter-inner .counter-label {
    font-size: 0.8rem;
    color: #000;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.visitor-counter-inner .counter-display {
    background-color: #000;
    border: 2px solid #555;
    border-radius: 4px;
    padding: 6px 12px;
    width: 100%;
    text-align: center;
    box-shadow:
        inset 0 0 6px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 200, 0, 0.3);
    white-space: nowrap;
}

.visitor-counter-inner .counter-display span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff41;
    letter-spacing: 0.1em;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
}

.left-fixed-area .ad-banner {
    width: 100%;
    min-height: 190px;
    background-color: #e0e0e0;
    border: 2px dashed #bbb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.left-fixed-area .ad-label {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.65rem;
    color: #999;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1px 6px;
    border-radius: 3px;
}

.left-fixed-area .ad-text {
    font-size: 1.1rem;
    color: #999;
    font-weight: bold;
    margin: 0;
}

/* =============================
   広告バナー 画像・動画対応
============================= */
.left-fixed-area .ad-banner img,
.left-fixed-area .ad-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.left-fixed-area .ad-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

/* =============================
   product.html 数量プルダウン（▼付き）
============================= */
.order-box select {
    padding: 6px 32px 6px 12px;
    border-radius: 4px;
    border: 2px solid #FF4D99;
    background-color: #ffffff;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF4D99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.order-box select:focus {
    outline: none;
    border-color: #dd2277;
    box-shadow: 0 0 0 3px rgba(255, 77, 153, 0.2);
}

/* =============================
   list.html 商品カード追加スタイル
============================= */

/* 価格とプルダウンの横並び */
.product-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.product-price-row .product-price {
    margin-bottom: 0;
}

/* list.html用プルダウン（ピンクアクセント・▼付き） */
.list-quantity-select {
    padding: 4px 28px 4px 10px;
    border-radius: 4px;
    border: 2px solid #FF4D99;
    background-color: #ffffff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF4D99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    margin-bottom: 0;
}

.list-quantity-select:focus {
    outline: none;
    border-color: #dd2277;
    box-shadow: 0 0 0 3px rgba(255, 77, 153, 0.2);
}

/* =============================
   旬の野菜だより カード（index.html）
============================= */
.feature-messages {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.feature-card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #99FF4D;
}

.feature-card .feature-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.feature-card .feature-author {
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: bold;
    text-align: right;
    margin-bottom: 0;
}

/* =============================
   レスポンシブ調整（PC幅が少し狭い時に共通パーツを段階的に縮小）
   既存定義は壊さず、末尾に追記
============================= */

/* 1280px以下：少し狭いPC向け */
@media (max-width: 1280px) {
    .page-header {
        width: calc(100% - 40px);
        max-width: 1100px;
        gap: 18px;
    }

    main {
        width: calc(100% - 40px);
        max-width: 1000px;
    }

    .logo {
        margin-left: 40px;
    }

    .logo img {
        width: clamp(110px, 11vw, 150px);
        height: auto;
    }

    .left-fixed-area {
        transform: scale(0.85);
        transform-origin: top left;
    }

    .top-with-sidebar .top_image {
        width: 100%;
        max-width: 1000px;
    }

    /* list.html */
    .product-grid {
        gap: 20px;
    }

    /* product.html */
    .product-detail {
        gap: 24px;
    }

    .product-image img {
        width: 320px;
        height: 270px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* cart.html */
    .cart-table th,
    .cart-table td {
        padding: 10px 12px;
    }

    .cart-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* checkout.html */
    .checkout-container {
        gap: 24px;
    }

    .checkout-summary {
        width: 280px;
        padding: 20px;
    }

    /* confirm.html */
    .confirm-item {
        gap: 24px;
    }

    .confirm-item-image img {
        width: 220px;
        height: 180px;
    }

    /* thanks.html */
    .thanks-order-number {
        padding: 10px 24px;
    }

    .thanks-buttons {
        gap: 16px;
    }

    .btn-thanks-home,
    .btn-thanks-list {
        padding: 12px 24px;
    }

    /* contact.html */
    #modal-content {
        max-width: 520px;
        padding: 24px;
    }
}

/* 1180px以下：さらに詰まりやすいPC幅 */
@media (max-width: 1180px) {
    header {
        padding: 16px 20px;
    }

    .page-header {
        width: calc(100% - 20px);
        gap: 14px;
    }

    main {
        width: calc(100% - 20px);
        padding: 32px 24px;
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        width: clamp(95px, 10vw, 130px);
    }

    .header-right {
        width: auto;
        min-width: 0;
    }

    .left-fixed-area {
        transform: scale(0.72);
        transform-origin: top left;
        left: 10px;
        top: 110px;
    }

    .top-with-sidebar {
        max-width: 100%;
        width: calc(100% - 20px);
    }

    .top-with-sidebar .top_image {
        width: 100%;
        max-width: 1000px;
    }

    /* list.html */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .product-card {
        padding: 14px;
    }

    .product-buttons {
        gap: 8px;
    }

    .btn-detail,
    .btn-cart {
        font-size: 0.9rem;
    }

    /* product.html */
    .product-detail {
        gap: 20px;
    }

    .product-image img {
        width: 280px;
        height: 240px;
    }

    .order-box {
        padding: 16px;
    }

    /* cart.html */
    .cart-table th,
    .cart-table td {
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .btn-delete {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .cart-total {
        padding: 20px;
    }

    /* checkout.html */
    .checkout-container {
        gap: 20px;
    }

    .checkout-summary {
        width: 250px;
        padding: 18px;
    }

    .payment-label {
        padding: 10px 12px;
        gap: 10px;
    }

    .payment-text {
        min-width: 96px;
    }

    /* confirm.html */
    .confirm-table th,
    .confirm-table td {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .confirm-item {
        gap: 20px;
        margin-bottom: 28px;
    }

    .confirm-item-image img {
        width: 200px;
        height: 165px;
    }

    .confirm-buttons {
        gap: 16px;
        flex-wrap: wrap;
    }

    /* thanks.html */
    .thanks-container {
        padding: 100px 20px;
    }

    .thanks-title {
        font-size: 1.8rem;
    }

    .thanks-order-number {
        padding: 10px 20px;
        margin-bottom: 32px;
    }

    /* contact.html */
    #modal-content {
        max-width: 480px;
        padding: 22px;
    }

    .modal-buttons {
        gap: 8px;
    }
}

/* 1080px以下：固定バナーの干渉を防ぎつつ各ページをさらに収める */
@media (max-width: 1080px) {
    .page-header {
        width: calc(100% - 20px);
    }

    main {
        width: calc(100% - 20px);
    }

    .logo-title {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }

    .logo-sub {
        font-size: clamp(1.2rem, 2.4vw, 1.8rem);
        margin-left: 0.8rem;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 4px 6px;
    }

    .left-fixed-area {
        display: none;
    }

    .top-with-sidebar {
        width: calc(100% - 20px);
    }

    .top-with-sidebar .top_image {
        width: 100%;
        max-width: 1000px;
    }

    /* index.html */
    .feature-messages {
        flex-direction: column;
    }

    .farmer-detail-card {
        gap: 20px;
    }

    /* list.html */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-price-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* product.html */
    .product-detail {
        align-items: flex-start;
    }

    .product-image img {
        width: 260px;
        height: 220px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* cart.html */
    .cart-buttons {
        justify-content: center;
    }

    .btn-continue,
    .btn-checkout {
        width: auto;
    }

    /* checkout.html */
    .checkout-container {
        flex-direction: column;
    }

    .checkout-summary {
        width: 100%;
        position: static;
    }

    /* confirm.html */
    .confirm-item {
        align-items: flex-start;
    }

    .confirm-total {
        gap: 16px;
    }

    /* thanks.html */
    .thanks-buttons {
        justify-content: center;
    }

    /* contact.html */
    #modal-content {
        width: 100%;
        max-width: 460px;
    }
}

/* =========================================
   第二段階レスポンシブ対応（スマホ）
========================================= */

/* =========================================
   900px以下
========================================= */
@media (max-width: 900px) {
    .page-header {
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        gap: 6px;
    }

    .logo-title {
        font-size: clamp(1.8rem, 4.8vw, 2.6rem);
        line-height: 1.2;
    }

    .logo-sub {
        font-size: clamp(1rem, 2.8vw, 1.5rem);
        margin-left: 0.5rem;
    }

    nav {
        padding: 12px 0 8px;
    }

    nav ul {
        gap: 10px 12px;
    }

    main {
        padding: 28px 20px;
    }

    .feature-messages {
        gap: 16px;
    }

    .farmer-detail {
        padding: 36px 24px;
    }

    .farmer-detail-card {
        gap: 18px;
    }

    .product-grid {
        gap: 14px;
    }

    .product-detail {
        gap: 18px;
    }

    .related-grid {
        gap: 14px;
    }
}

/* =========================================
   768px以下
========================================= */
@media (max-width: 768px) {

    /* ---------- 共通 ---------- */
    header {
        padding: 14px 12px;
    }

    .page-header {
        width: 100%;
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-left: 0;
    }

    .logo a {
        display: flex;
        justify-content: center;
    }

    .logo img {
        width: clamp(96px, 24vw, 120px);
        height: auto;
    }

    .header-right {
        width: 100%;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .header-title {
        width: 100%;
        text-align: center;
    }

    .logo-title {
        display: inline-block;
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    .logo-sub {
        display: inline;
        font-size: clamp(0.95rem, 4vw, 1.3rem);
        margin-left: 0.35rem;
    }

    nav {
        width: 100%;
        padding: 8px 0 0;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    nav ul li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    .cart-icon-link {
        font-size: 1.25rem;
    }

    .cart-badge {
        top: -8px;
        right: -10px;
        width: 18px;
        height: 18px;
        font-size: 0.68rem;
    }

    main {
        width: calc(100% - 16px);
        margin: 16px auto;
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    p {
        line-height: 1.7;
    }

    .back-to-top {
        width: 64px;
        height: 64px;
        right: 16px;
        bottom: 16px;
        font-size: 0.9rem;
        padding: 8px;
    }

    .sns-links {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .sns-links a {
        font-size: 0.92rem;
    }

    .sns-links i {
        font-size: 1.3rem;
    }

    /* ---------- index.html ---------- */
    .catchcopy {
        font-size: 140%;
        padding: 12px 0 4px;
    }

    .intro {
        margin-top: 20px;
        margin-bottom: 32px;
    }

    .feature-messages {
        flex-direction: column;
        gap: 14px;
    }

    .feature-card {
        padding: 16px;
    }

    .farmer-detail {
        padding: 28px 16px;
        margin: 28px 0;
    }

    .farmer-detail h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .farmer-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 20px 0;
    }

    .farmer-detail-card img {
        width: 120px;
        height: 120px;
    }

    .farmer-detail-info {
        width: 100%;
    }

    .farmer-detail-info h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .farmer-detail-profile,
    .farmer-detail-quote {
        font-size: 0.95rem;
    }

    .reviews {
        margin-top: 28px;
    }

    .reviews h2 {
        margin-bottom: 20px;
    }

    .review-item {
        padding: 14px;
    }

    .review-header {
        gap: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .review-text {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    /* ---------- list.html ---------- */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 16px;
    }

    .product-card img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .product-price-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .list-quantity-select {
        min-width: 92px;
    }

    .product-buttons {
        gap: 10px;
    }

    .btn-detail,
    .btn-cart {
        width: 100%;
    }

    /* ---------- product.html ---------- */
    .product-detail {
        flex-direction: column;
        gap: 20px;
    }

    .product-image,
    .product-info {
        width: 100%;
    }

    .product-image img,
    .product-image .noimage {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .product-image .noimage {
        min-height: 240px;
    }

    .order-box {
        padding: 16px;
    }

    .order-box-btn .btn-cart {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-grid .product-card {
        padding: 12px;
    }

    /* ---------- contact.html ---------- */
    .contact-form {
        max-width: 100%;
    }

    #modal-content {
        max-width: 100%;
        padding: 20px 16px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    /* ---------- checkout.html ---------- */
    .checkout-container {
        flex-direction: column;
        gap: 20px;
    }

    .checkout-summary {
        width: 100%;
        position: static;
        padding: 18px 16px;
    }

    .btn-confirm {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* ---------- confirm.html ---------- */
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table th {
        border-bottom: none;
    }

    .confirm-item {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .confirm-item-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .confirm-item-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .confirm-total {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .confirm-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-back,
    .btn-confirm {
        width: 100%;
        text-align: center;
    }

    /* ---------- thanks.html ---------- */
    .thanks-container {
        padding: 72px 16px;
    }

    .thanks-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .thanks-message,
    #main-thanks-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .thanks-order-number {
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 28px;
    }

    .thanks-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-thanks-home,
    .btn-thanks-list {
        justify-content: center;
        width: 100%;
    }

    /* 特別演出の表示域確保 */
    #horror-end-image img {
        width: 125%;
        height: 125%;
        object-position: center top;
    }

    body.special-mode #result-special h2 {
        font-size: clamp(2.2rem, 11vw, 4rem) !important;
        line-height: 1.2;
    }
}

/* =========================================
   560px以下
========================================= */
@media (max-width: 560px) {

    /* ---------- 共通 ---------- */
    .page-header {
        gap: 10px;
    }

    .logo img {
        width: clamp(84px, 26vw, 104px);
        height: auto;
    }

    .logo-title {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }

    .logo-sub {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: clamp(0.88rem, 4.8vw, 1.1rem);
    }

    nav ul {
        gap: 6px 8px;
    }

    nav ul li a {
        font-size: 0.88rem;
        min-height: 38px;
        padding: 6px 8px;
    }

    main {
        width: calc(100% - 12px);
        padding: 20px 12px;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    footer {
        padding: 16px 12px;
    }

    .back-to-top {
        width: 58px;
        height: 58px;
        font-size: 0.8rem;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        width: calc(100% - 24px);
        max-width: 320px;
        white-space: normal;
        text-align: center;
        padding: 10px 14px;
    }

    /* ---------- index.html ---------- */
    .catchcopy {
        font-size: 120%;
    }

    .feature-card {
        padding: 14px 12px;
    }

    .feature-card .feature-text {
        font-size: 0.9rem;
    }

    .farmer-detail {
        padding: 24px 12px;
    }

    .farmer-detail-card img {
        width: 104px;
        height: 104px;
    }

    .review-item {
        padding: 12px;
    }

    .review-text {
        font-size: 0.88rem;
    }

    /* ---------- list.html ---------- */
    .product-card {
        padding: 14px 12px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price-row {
        flex-direction: column;
        gap: 8px;
    }

    .list-quantity-select {
        width: 100%;
        max-width: 220px;
    }

    .btn-detail,
    .btn-cart {
        min-height: 44px;
        font-size: 0.92rem;
    }

    /* ---------- product.html ---------- */
    .product-image .noimage {
        min-height: 200px;
    }

    .order-box {
        padding: 14px 12px;
    }

    .price {
        font-size: 1.2rem;
    }

    .farmer-link a {
        display: inline-block;
        margin-left: 0;
        margin-top: 4px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    /* ---------- contact.html ---------- */
    #modal-content {
        padding: 16px 12px;
    }

    /* ---------- checkout.html ---------- */
    .checkout-summary {
        padding: 16px 12px;
    }

    .payment-label {
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }

    .payment-text {
        min-width: 0;
    }

    .payment-logo {
        height: 24px;
    }

    /* ---------- confirm.html ---------- */
    .confirm-section {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .confirm-table th,
    .confirm-table td {
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .confirm-item-desc {
        padding: 10px 12px;
    }

    .confirm-total {
        font-size: 1rem;
    }

    .confirm-total-price {
        font-size: 1.3rem;
    }

    /* ★ベース追加：スマホ時のオーバーレイキーワード縮小 */
    #punishment-overlay .keyword {
        font-size: 1.5rem;
    }

    /* ---------- thanks.html ---------- */
    .thanks-container {
        padding: 56px 12px;
    }

    .thanks-order-number {
        font-size: 0.92rem;
        padding: 10px 12px;
    }

    #horror-end-image img {
        width: 138%;
        height: 138%;
    }

    body.special-mode #result-special h2 {
        font-size: clamp(1.8rem, 10vw, 3rem) !important;
    }

    /* ---------- cart.html ---------- */
    .cart-container {
        overflow-x: auto;
    }

    .cart-table {
        min-width: 640px;
    }

    .cart-total {
        text-align: left;
        padding: 18px 12px;
    }

    .cart-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-continue,
    .btn-checkout {
        width: 100%;
        text-align: center;
    }

    .empty-cart {
        padding: 40px 12px;
    }
}

/* =============================
   ★進行度UI（右上固定ボックス）
============================= */
.progress-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.92);
    border: 2px solid #99FF4D;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    min-width: 100px;
    pointer-events: none;
}

.progress-count {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* --- 進行度UI レスポンシブ --- */

/* PC用：スマホ文言は隠す */
.progress-count .sp-only {
    display: none;
}

/* 1080px以下 */
@media (max-width: 1080px) {
    .progress-status {
        top: 16px;
        right: 16px;
        padding: 6px 10px;
        min-width: 80px;
    }

    .progress-count {
        font-size: 0.78rem;
    }
}

/* 768px以下 */
@media (max-width: 768px) {
    .progress-status {
        top: 12px;
        right: 10px;
        padding: 5px 8px;
        min-width: 48px;
        border-width: 1.5px;
        border-radius: 6px;
    }

    .progress-count {
        font-size: 0.72rem;
    }

    .progress-count .pc-only {
        display: none;
    }

    .progress-count .sp-only {
        display: inline;
    }
}

/* 560px以下 */
@media (max-width: 560px) {
    .progress-status {
        top: 10px;
        right: 8px;
        padding: 4px 6px;
        min-width: 42px;
    }

    .progress-count {
        font-size: 0.68rem;
    }
}
