/* ===========================
   リセット・基本設定
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:       #3B5E2B;
  --color-primary-light: #7A9E5F;
  --color-accent:        #C8B89A;
  --color-accent-light:  #e0d0b8;
  --color-bg:            #F5F0E8;
  --color-bg-section:    #ebe4d6;
  --color-text:          #2C2C2C;
  --color-text-light:    #6a5f50;
  --color-white:         #ffffff;
  --color-border:        #ddd5c5;

  --font-main:   'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-mincho: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(60, 40, 20, 0.10);
  --shadow-hover: 0 6px 24px rgba(60, 40, 20, 0.18);
  --transition: 0.25s ease;

  --container-width: 1100px;
  --header-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   レイアウト共通
   =========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--bg { background-color: var(--color-bg-section); }

.section-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ===========================
   ボタン
   =========================== */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: bold;
  border: 2px solid var(--color-primary);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-submit {
  padding: 16px 48px;
  font-size: 1.05rem;
  width: 100%;
  max-width: 320px;
}

/* ===========================
   ヘッダー
   =========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: box-shadow var(--transition);
}

#header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo a {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-white);
  letter-spacing: 0.03em;
}

#globalNav ul { display: flex; gap: 32px; }

#globalNav a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

#globalNav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

#globalNav a:hover { color: var(--color-white); }
#globalNav a:hover::after { width: 100%; }

/* ハンバーガーボタン */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   ヒーロー
   =========================== */
.hero { padding-top: var(--header-height); }

.hero-image-placeholder {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* 背景画像を疑似要素に移して左右12.5%拡張→overflow:hiddenで電柱を非表示 */
.hero-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12.5%;
  right: -12.5%;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: 65% 45%;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  background: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-accent-light);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 24px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ===========================
   在庫案内
   =========================== */
.stock-notice {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  margin-top: -24px;
}

.stock-notice a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: bold;
}

/* ===========================
   商品紹介
   =========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-image--yukimochi2 { background: linear-gradient(135deg, #d8d0f0, #c0b8e0); }
.product-image--yukimochi5 { background: linear-gradient(135deg, #c8c0e8, #b0a8d8); }
.product-image--hinohikari { background: linear-gradient(135deg, #d4a83a, #b8881e); }

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.product-origin {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

/* 商品説明リスト */
.product-info {
  list-style: none;
  margin-bottom: 14px;
  flex: 1;
}

.product-info li {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
  padding-left: 1em;
  position: relative;
}

.product-info li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
}

.product-price {
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.price-note {
  font-size: 0.78rem;
  font-weight: normal;
  color: var(--color-text-light);
}

.price-sub {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: -10px;
  margin-bottom: 14px;
}

/* ボタンをカード最下部に固定 */
.product-body .btn-secondary {
  margin-top: auto;
  display: block;
  width: 100%;
}

/* 商品注記 */
.products-footnote {
  margin-top: 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===========================
   送料セクション
   =========================== */
/* PC：sp専用要素を非表示 */
.sp-br { display: none; }
.shipping-line2-sp { display: none; }

.shipping-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.shipping-body p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 0;
}

.shipping-body strong { color: var(--color-primary); }

.shipping-details {
  margin-top: 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shipping-details summary {
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  background: var(--color-bg);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.shipping-details summary::before {
  content: '▶';
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.shipping-details[open] summary::before { transform: rotate(90deg); }
.shipping-details summary::-webkit-details-marker { display: none; }

.shipping-table-wrap {
  padding: 16px 12px 20px;
}

.shipping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(10px, 1.8vw, 14px);
  table-layout: fixed;
}

.shipping-table th,
.shipping-table td {
  padding: 8px 6px;
  border: 1px solid var(--color-border);
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
}

/* 列幅の配分 */
.shipping-table col:nth-child(1) { width: 14%; }
.shipping-table col:nth-child(2) { width: 42%; }
.shipping-table col:nth-child(3) { width: 15%; }
.shipping-table col:nth-child(4) { width: 15%; }
.shipping-table col:nth-child(5) { width: 14%; }

.shipping-table thead th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
}

.shipping-table tbody tr:nth-child(even) { background-color: var(--color-bg); }

.shipping-table tbody tr.row-kyushu { background-color: #e8f5e9; font-weight: bold; }

.shipping-table td:nth-child(2) {
  text-align: left;
  word-break: break-all;
  line-height: 1.5;
}

/* ===========================
   こだわり
   =========================== */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.commitment-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.commitment-item:hover { transform: translateY(-4px); }

.commitment-item h3 {
  font-family: var(--font-mincho);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  line-height: 1.5;
}

.commitment-item h3::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 8px;
}

.commitment-item p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===========================
   注文方法
   =========================== */
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}

.order-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.order-icon svg { width: 52px; height: 52px; }

.order-card h3 {
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.order-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.order-card .btn-secondary { width: 100%; }

/* ===========================
   お問い合わせフォーム
   =========================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

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

.required {
  display: inline-block;
  background-color: #d94040;
  color: var(--color-white);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: normal;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-main);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 94, 43, 0.15);
  background-color: var(--color-white);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a5f50' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { text-align: center; margin-top: 8px; }

.form-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(11px, 1.5vw, 13px);
  color: var(--color-text-light);
  line-height: 1.8;
}

.form-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===========================
   フッター
   =========================== */
.footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 40px 0;
}

.footer-inner { text-align: center; }

.footer-logo {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  margin-bottom: 20px;
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ===========================
   レスポンシブ
   =========================== */

/* タブレット（〜1024px）*/
@media (max-width: 1024px) {
  .commitment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* タブレット（〜900px）*/
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid .product-card:last-child {
    grid-column: span 2;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .order-grid {
    max-width: 600px;
  }
}

/* スマホ（〜768px）*/
@media (max-width: 768px) {
  .section { padding: 48px 0; }

  .nav-toggle { display: flex; }

  #globalNav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background-color: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
  }

  #globalNav.is-open { display: block; }
  #globalNav ul { flex-direction: column; gap: 0; }
  #globalNav ul li { border-bottom: 1px solid rgba(255,255,255,0.15); }
  #globalNav ul li:last-child { border-bottom: none; }
  #globalNav a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
  }

  /* ヒーロー：スマホでは背景なし・text-shadowのみで視認性確保 */
  .hero-image-placeholder { min-height: 80vh; }
  .hero-overlay { background: transparent; }

  /* 商品：1カラム */
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .product-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* 注文方法：1カラム */
  .order-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* こだわり：2カラム（スマホでも2列で読みやすく） */
  .commitment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .commitment-item {
    padding: 20px 16px;
  }

  .commitment-item h3 {
    font-size: 0.9rem;
  }

  .commitment-item p {
    font-size: 0.82rem;
  }

  /* 送料 */
  .shipping-body { padding: 20px 16px; }
  .shipping-intro {
    font-size: 10px;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .sp-br { display: inline; }
  .shipping-line2-pc { display: none; }
  .shipping-line2-sp { display: inline; }
  .shipping-table-wrap { padding: 12px 8px 16px; }

  /* 送料表：九州行の「送料無料」を折り返し禁止 */
  .shipping-table tbody tr.row-kyushu td:nth-child(3),
  .shipping-table tbody tr.row-kyushu td:nth-child(4),
  .shipping-table tbody tr.row-kyushu td:nth-child(5) {
    white-space: nowrap;
    font-size: 10px;
  }

  /* ご注文方法カード説明文 */
  .order-card p { font-size: 12px; }

  /* Instagramセクション説明文 */
  .instagram-lead { font-size: 12px; }

  /* フォーム */
  .contact-form { padding: 28px 20px; }
  .btn-submit { max-width: 100%; }

  /* 商品注記 */
  .products-footnote { font-size: 0.78rem; }

  /* ヒーロー：スマホ調整 */
  .hero-image-placeholder {
    min-height: unset;
    height: 70vh;
  }
  .hero-image-placeholder::before { background-position: center 15%; }
  .hero-overlay {
    padding: 30px 20px 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .hero-text { text-align: left; }
  .hero-sub {
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.5);
  }
  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.5);
  }
  .hero-desc {
    font-size: 0.8rem;
    margin-bottom: 16px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.5);
  }
}

/* 小型スマホ（〜480px）*/
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .hero-title { font-size: 1.5rem; }

  /* こだわり：小型では1カラムに */
  .commitment-grid {
    grid-template-columns: 1fr;
  }

  .contact-form { padding: 24px 14px; }

  /* 送料表：超小型でも9pxまで下げて1画面に */
  .shipping-table {
    font-size: clamp(9px, 2.2vw, 11px);
  }
  .shipping-table th,
  .shipping-table td { padding: 6px 4px; }
}
