/* =============================================
   天神屋 LP 共通CSS
   - 全LPで使い回すベース・ブランドスタイル
   ============================================= */

/* --- CSS変数（ブランドカラー・フォント） --- */
:root {
  --primary: #94214d;
  --primary-dark: #7a1b40;
  --accent: #92b269;
  --bg-cream: #fcf8ec;
  --bg-white: #FFFFFF;
  --border: #e0d8c8;
  --text-dark: #333333;
  --text-mid: #666666;
  --text-light: #999999;
  --gold: #d4a017;
  --silver: #a0a0a0;
  --bronze: #cd7f32;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-heading: 'Noto Serif JP', serif;
  --font-mono: 'Inter', sans-serif;
}

/* --- リセット --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: #f0ebe0;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* --- LPコンテナ --- */
.lp-container {
  width: 100%;
  margin: 0 auto;
  background: var(--bg-cream);
}

/* --- ヘッダー --- */
.header {
  background: var(--primary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-right {
  margin-left: auto;
}
.header img {
  height: 40px;
  width: auto;
}
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}
.header-right .label {
  font-size: 12px;
  color: rgba(255,255,255,0.73);
}
.header-right .phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-right .phone-row svg {
  width: 16px;
  height: 16px;
  color: #FFFFFF;
}
.header-right .phone-row span {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.5px;
}
.header-right .hours {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.header-order-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}
.header-order-btn svg {
  width: 20px;
  height: 20px;
}

/* --- カテゴリナビ --- */
.category-nav {
  background: var(--bg-white);
  display: flex;
  justify-content: space-around;
  padding: 14px 24px;
  gap: 8px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
}

/* --- セクション共通 --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.section-header svg { width: 26px; height: 26px; color: var(--gold); }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: bold;
  color: var(--text-dark);
}
.section-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.section-header .icon-accent { color: var(--accent); }
.section-header .icon-primary { color: var(--primary); }

.sub-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.sub-header svg { width: 20px; height: 20px; color: var(--primary); }
.sub-header h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-dark);
}

/* --- 商品カード（共通パーツ） --- */
.product-grid {
  display: flex;
  gap: 12px;
  width: 100%;
}
.product-card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card-img picture {
  display: contents;
}
.product-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-info .name {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
}
.product-card-info .price {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}
.product-card-info .price-small {
  font-size: 15px;
  color: var(--text-mid);
}

/* --- ランクバッジ --- */
.rank-badge {
  position: absolute;
  top: 6px; left: 6px;
  width: 28px; height: 28px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}
.rank-badge.gold { background: var(--gold); }
.rank-badge.silver { background: var(--silver); }
.rank-badge.bronze { background: var(--bronze); }

/* --- もっと見るリンク --- */
.more-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
}
.more-link a {
  font-size: 16px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.more-link svg { width: 16px; height: 16px; }

/* --- CTAボタン（共通） --- */
.cta-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}
.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}
.cta-btn.phone { background: var(--accent); }
.cta-btn.online { background: var(--primary); }
.cta-btn svg { width: 22px; height: 22px; }

/* --- CTAセクション --- */
.cta-section {
  background: var(--primary);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-lead {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
.cta-section .cta-buttons {
  width: 100%;
}
.cta-btn-outline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 24px;
  border-radius: 10px;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
}
.cta-btn-outline.phone-g {
  background: var(--accent);
  color: #fff;
}
.cta-btn-outline.online-w {
  background: #fff;
  color: var(--primary);
}
.cta-btn-outline svg { width: 22px; height: 22px; }
.cta-fax {
  font-size: 13px;
  color: rgba(255,255,255,0.73);
}

/* --- ボトムCTA --- */
.bottom-cta {
  background: var(--bg-white);
  padding: 36px 24px;
  display: flex;
  gap: 12px;
}
.bottom-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 120px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 24px 24px;
  text-decoration: none;
}
.bottom-cta-btn .label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bottom-cta-btn .label-row svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.bottom-cta-btn .label-row span {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
}
.bottom-cta-btn .label-row span.net-label {
  font-size: 32px;
}
.bottom-cta-btn.net-btn .label-row svg {
  width: 32px;
  height: 32px;
}
.bottom-cta-btn .phone-number {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
}
.bottom-cta-btn .phone-time {
  font-size: 11px;
  color: var(--text-light);
}
.bottom-cta-btn .net-label {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

/* --- フッター --- */
.footer {
  background: var(--primary-dark);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer img.logo {
  height: 40px;
  width: auto;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-info .co {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}
.footer-info .addr,
.footer-info .tel {
  font-size: 13px;
  color: rgba(255,255,255,0.73);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* =============================================
   PC対応（769px以上）
   ============================================= */
@media (min-width: 769px) {
  /* --- ヘッダー --- */
  .header {
    padding: 16px 40px;
  }
  .header img {
    height: 48px;
  }
  .header-right .phone-row span {
    font-size: 24px;
  }

  /* --- カテゴリナビ --- */
  .category-nav {
    padding: 20px 40px;
    gap: 16px;
  }
  .cat-icon {
    width: 64px;
    height: 64px;
  }
  .cat-icon svg { width: 28px; height: 28px; }
  .cat-label {
    font-size: 16px;
  }

  /* --- セクション共通 --- */
  .section-header h2 {
    font-size: 34px;
  }
  .section-header svg { width: 30px; height: 30px; }
  .sub-header h3 {
    font-size: 24px;
  }

  /* --- 商品カード --- */
  .product-card-img {
    aspect-ratio: 4 / 3;
  }
  .product-card-info .name {
    font-size: 20px;
  }
  .product-card-info .price {
    font-size: 18px;
  }

  /* --- ランクバッジ --- */
  .rank-badge {
    width: 32px; height: 32px;
    font-size: 16px;
  }

  /* --- CTAボタン --- */
  .cta-btn {
    padding: 22px 32px;
    font-size: 24px;
    border-radius: 12px;
  }
  .cta-btn svg { width: 24px; height: 24px; }

  /* --- CTAセクション --- */
  .cta-section {
    padding: 56px 48px;
    gap: 24px;
  }
  .cta-lead {
    font-size: 32px;
  }
  .cta-btn-outline {
    padding: 22px 32px;
    font-size: 24px;
    border-radius: 12px;
  }
  .cta-btn-outline svg { width: 24px; height: 24px; }

  /* --- ボトムCTA --- */
  .bottom-cta {
    padding: 48px 40px;
    gap: 20px;
  }
  .bottom-cta-btn {
    height: 140px;
    padding: 28px;
  }
  .bottom-cta-btn .phone-number {
    font-size: 32px;
  }
  .bottom-cta-btn .net-label {
    font-size: 32px;
  }

  /* --- フッター --- */
  .footer {
    padding: 56px 48px;
  }
  .footer img.logo {
    height: 48px;
  }
  .footer-info .co {
    font-size: 17px;
  }
  .footer-info .addr,
  .footer-info .tel {
    font-size: 15px;
  }
  .footer-links {
    gap: 28px;
  }
  .footer-links a {
    font-size: 14px;
  }
}

/* =============================================
   モバイル対応（480px以下）
   ============================================= */
@media (max-width: 480px) {
  /* --- ヘッダー --- */
  .header {
    padding: 10px 12px;
  }
  .header img {
    height: 30px;
  }
  .header-right .phone-row span {
    font-size: 16px;
  }
  .header-right .label {
    font-size: 10px;
  }
  .header-right .hours {
    font-size: 9px;
  }

  /* --- カテゴリナビ --- */
  .category-nav {
    padding: 10px 12px;
    gap: 6px;
  }
  .cat-icon {
    width: 44px;
    height: 44px;
  }
  .cat-icon svg { width: 20px; height: 20px; }
  .cat-label {
    font-size: 12px;
  }

  /* --- セクション共通 --- */
  .section-header h2 {
    font-size: 22px;
  }
  .section-header svg { width: 22px; height: 22px; }
  .sub-header h3 {
    font-size: 18px;
  }
  .sub-header svg { width: 16px; height: 16px; }

  /* --- 商品カード --- */
  .product-grid {
    gap: 8px;
  }
  .product-card-img {
    aspect-ratio: 4 / 3;
  }
  .product-card-info {
    padding: 6px 6px 8px;
    gap: 2px;
  }
  .product-card-info .name {
    font-size: 13px;
  }
  .product-card-info .price {
    font-size: 12px;
  }
  .product-card-info .price-small {
    font-size: 11px;
  }

  /* --- ランクバッジ --- */
  .rank-badge {
    width: 24px; height: 24px;
    font-size: 12px;
    top: 4px; left: 4px;
  }

  /* --- もっと見る --- */
  .more-link a {
    font-size: 14px;
  }

  /* --- CTAボタン --- */
  .cta-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .cta-btn {
    padding: 14px 16px;
    font-size: 18px;
    gap: 8px;
  }
  .cta-btn svg { width: 18px; height: 18px; }

  /* --- CTAセクション --- */
  .cta-section {
    padding: 28px 16px;
    gap: 14px;
  }
  .cta-lead {
    font-size: 22px;
  }
  .cta-btn-outline {
    padding: 14px 16px;
    font-size: 18px;
    gap: 8px;
  }
  .cta-btn-outline svg { width: 18px; height: 18px; }
  .cta-fax {
    font-size: 12px;
  }

  /* --- ボトムCTA --- */
  .bottom-cta {
    flex-direction: column;
    padding: 24px 14px;
    gap: 10px;
  }
  .bottom-cta-btn {
    height: auto;
    padding: 16px;
    gap: 4px;
  }
  .bottom-cta-btn .phone-number {
    font-size: 22px;
  }
  .bottom-cta-btn .net-label {
    font-size: 18px;
  }
  .bottom-cta-btn .label-row span {
    font-size: 14px;
  }

  /* --- フッター --- */
  .footer {
    padding: 28px 16px;
    gap: 14px;
  }
  .footer img.logo {
    height: 30px;
  }
  .footer-info .co {
    font-size: 13px;
  }
  .footer-info .addr,
  .footer-info .tel {
    font-size: 12px;
  }
  .footer-links {
    gap: 14px;
  }
  .footer-links a {
    font-size: 12px;
  }
}
