/* ==========================================================
   InuNeko - メインスタイルシート
   日本のペット用品ECサイトにふさわしい、清潔感・安心感・
   親しみやすさを表現したデザイン。
   ========================================================== */

:root {
  --inu-primary: #E8785A;      /* あたたかいテラコッタ */
  --inu-primary-dark: #D1633F;
  --inu-secondary: #4A7C6F;    /* 落ち着いたグリーン */
  --inu-accent: #F4A742;       /* やわらかいオレンジ */
  --inu-bg: #FBF8F4;           /* ソフトなオフホワイト */
  --inu-bg-alt: #F3EDE4;
  --inu-text: #3A3532;
  --inu-text-muted: #7A736C;
  --inu-border: #E7E0D6;
  --inu-white: #FFFFFF;
  --inu-danger: #D64545;
  --inu-radius: 16px;
  --inu-radius-sm: 10px;
  --inu-shadow: 0 4px 20px rgba(58, 53, 50, 0.06);
  --inu-shadow-hover: 0 10px 30px rgba(58, 53, 50, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  background-color: var(--inu-bg);
  color: var(--inu-text);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.section-subtitle {
  color: var(--inu-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ===== ボタン ===== */
.btn-inu-primary {
  background-color: var(--inu-primary);
  border-color: var(--inu-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  transition: all 0.2s ease;
}
.btn-inu-primary:hover, .btn-inu-primary:focus {
  background-color: var(--inu-primary-dark);
  border-color: var(--inu-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-inu-outline {
  background: transparent;
  border: 1.5px solid var(--inu-text);
  color: var(--inu-text);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.65rem 1.9rem;
  transition: all 0.2s ease;
}
.btn-inu-outline:hover {
  background: var(--inu-text);
  color: #fff;
}
.btn-inu-secondary {
  background-color: var(--inu-secondary);
  border-color: var(--inu-secondary);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.7rem 2rem;
}
.btn-inu-secondary:hover { opacity: 0.9; color: #fff; }

/* ===== ヘッダー ===== */
.top-bar {
  background: var(--inu-secondary);
  color: #fff;
}
.site-header {
  background: var(--inu-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand-logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--inu-primary);
  letter-spacing: 0.01em;
}
.main-nav .nav-link {
  font-weight: 600;
  color: var(--inu-text);
  padding: 0.5rem 1rem !important;
}
.main-nav .nav-link:hover { color: var(--inu-primary); }

.header-icons { gap: 0.9rem; }
.icon-link {
  position: relative;
  font-size: 1.15rem;
  color: var(--inu-text);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.icon-link:hover { background: var(--inu-bg-alt); color: var(--inu-primary); }
.cart-icon .cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--inu-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.search-form { width: 220px; }
.search-form .form-control { border-radius: 50px 0 0 50px; border-right: none; }
.btn-search { background: var(--inu-bg-alt); border: 1px solid #ced4da; border-radius: 0 50px 50px 0; }

/* ===== ヒーローセクション ===== */
.hero {
  background: linear-gradient(120deg, var(--inu-bg-alt) 0%, var(--inu-bg) 60%);
  padding: 4.5rem 0;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  color: var(--inu-text);
}
.hero p.lead {
  color: var(--inu-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  border-radius: var(--inu-radius);
  box-shadow: var(--inu-shadow-hover);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.2;
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: var(--inu-radius-sm);
  box-shadow: var(--inu-shadow);
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-badge i { color: var(--inu-accent); margin-right: 0.4rem; }

/* ===== 特徴バー ===== */
.features-bar {
  background: #fff;
  border-top: 1px solid var(--inu-border);
  border-bottom: 1px solid var(--inu-border);
  padding: 2rem 0;
}
.feature-item { text-align: center; padding: 0.5rem; }
.feature-item i {
  font-size: 1.6rem;
  color: var(--inu-primary);
  margin-bottom: 0.6rem;
}
.feature-item .feature-title { font-weight: 700; font-size: 0.95rem; }
.feature-item .feature-desc { font-size: 0.8rem; color: var(--inu-text-muted); }

/* ===== カテゴリー ===== */
.category-card {
  display: block;
  background: #fff;
  border-radius: var(--inu-radius);
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: var(--inu-shadow);
  transition: all 0.25s ease;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--inu-shadow-hover);
}
.category-card .cat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  background: var(--inu-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--inu-primary);
}
.category-card .cat-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.category-card .cat-desc { font-size: 0.78rem; color: var(--inu-text-muted); }

/* ===== 商品カード ===== */
.product-card {
  background: #fff;
  border-radius: var(--inu-radius);
  overflow: hidden;
  box-shadow: var(--inu-shadow);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--inu-shadow-hover);
}
.product-card .product-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--inu-bg-alt);
  overflow: hidden;
}
.product-card .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-inu { padding: 0.3em 0.7em; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.badge-discount { background: var(--inu-danger); color: #fff; }
.badge-new { background: var(--inu-secondary); color: #fff; }
.badge-best { background: var(--inu-accent); color: #fff; }
.badge-soldout { background: #9a9a9a; color: #fff; }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--inu-text);
  transition: all 0.2s;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--inu-primary); }
.wishlist-btn.active i { font-weight: 900; }

.product-info { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-cat-label { font-size: 0.72rem; color: var(--inu-secondary); font-weight: 700; margin-bottom: 0.2rem; }
.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--inu-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-rating { font-size: 0.78rem; color: var(--inu-accent); margin-bottom: 0.5rem; }
.product-rating .rating-count { color: var(--inu-text-muted); margin-left: 0.3rem; }
.product-price-row { margin-top: auto; margin-bottom: 0.7rem; }
.price-current { font-size: 1.15rem; font-weight: 800; color: var(--inu-primary); }
.price-mrp { font-size: 0.82rem; color: var(--inu-text-muted); text-decoration: line-through; margin-left: 0.4rem; }
.stock-status { font-size: 0.75rem; margin-bottom: 0.5rem; }
.stock-status.in-stock { color: var(--inu-secondary); }
.stock-status.low-stock { color: var(--inu-accent); }
.stock-status.out-stock { color: var(--inu-danger); font-weight: 700; }

.btn-add-cart {
  width: 100%;
  background: var(--inu-text);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-add-cart:hover { background: var(--inu-primary); color: #fff; }
.btn-add-cart:disabled { background: #cfcfcf; cursor: not-allowed; }

/* ===== セクション背景 ===== */
.section-alt { background: var(--inu-bg-alt); padding: 3.5rem 0; }
.section-plain { padding: 3.5rem 0; }

/* ===== パンくず ===== */
.breadcrumb-bar { background: transparent; padding: 1rem 0 0; font-size: 0.85rem; }
.breadcrumb-bar a { color: var(--inu-text-muted); }
.breadcrumb-bar a:hover { color: var(--inu-primary); }

/* ===== フィルターサイドバー ===== */
.filter-box {
  background: #fff;
  border-radius: var(--inu-radius);
  padding: 1.4rem;
  box-shadow: var(--inu-shadow);
  margin-bottom: 1.2rem;
}
.filter-box h6 { font-weight: 700; margin-bottom: 0.9rem; }
.filter-box .form-check { margin-bottom: 0.5rem; }
.filter-box .form-check-label { font-size: 0.88rem; color: var(--inu-text-muted); }

/* ===== カートページ ===== */
.cart-item-row {
  background: #fff;
  border-radius: var(--inu-radius-sm);
  padding: 1rem;
  box-shadow: var(--inu-shadow);
  margin-bottom: 0.9rem;
}
.cart-item-thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--inu-radius-sm);
  object-fit: cover;
  background: var(--inu-bg-alt);
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--inu-border);
  border-radius: 50px;
  overflow: hidden;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--inu-bg-alt);
  font-weight: 700;
}
.qty-control input {
  width: 42px;
  text-align: center;
  border: none;
  font-weight: 700;
}
.cart-summary-box {
  background: #fff;
  border-radius: var(--inu-radius);
  padding: 1.5rem;
  box-shadow: var(--inu-shadow);
  position: sticky;
  top: 100px;
}

/* ===== チェックアウト ===== */
.checkout-section {
  background: #fff;
  border-radius: var(--inu-radius);
  padding: 1.6rem;
  box-shadow: var(--inu-shadow);
  margin-bottom: 1.3rem;
}
.checkout-section h5 { font-weight: 800; margin-bottom: 1.1rem; }
.payment-option {
  border: 1.5px solid var(--inu-border);
  border-radius: var(--inu-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-option.selected { border-color: var(--inu-primary); background: #FFF6F3; }
.payment-option.disabled { opacity: 0.55; cursor: not-allowed; background: #f5f5f5; }
.payment-option .badge-soon {
  background: var(--inu-accent);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.25em 0.6em;
  border-radius: 50px;
  margin-left: 0.5rem;
}

/* ===== フォーム ===== */
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--inu-border);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--inu-primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 120, 90, 0.15);
}
.auth-card {
  background: #fff;
  border-radius: var(--inu-radius);
  box-shadow: var(--inu-shadow);
  padding: 2.5rem;
  max-width: 480px;
  margin: 3rem auto;
}

/* ===== 商品詳細 ===== */
.product-gallery-main {
  border-radius: var(--inu-radius);
  overflow: hidden;
  background: var(--inu-bg-alt);
  aspect-ratio: 1/1;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--inu-primary); }
.detail-tabs .nav-link { font-weight: 700; color: var(--inu-text-muted); }
.detail-tabs .nav-link.active { color: var(--inu-primary); border-bottom: 2px solid var(--inu-primary); }

/* ===== フッター ===== */
.site-footer { background: #2C2926; color: #C9C3BC; }
.footer-logo { color: #fff; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #C9C3BC; font-size: 0.85rem; }
.footer-links a:hover { color: var(--inu-accent); }
.footer-contact-link { color: #C9C3BC; }
.footer-contact-link:hover { color: var(--inu-accent); }
.footer-divider { border-color: rgba(255,255,255,0.1); }
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  margin-right: 0.5rem;
}

/* ===== モバイルナビ ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 1050;
}
.mobile-nav-inner { display: flex; justify-content: space-around; padding: 0.5rem 0; }
.mobile-nav-inner a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.65rem; color: var(--inu-text-muted); position: relative;
  gap: 2px;
}
.mobile-nav-inner a i { font-size: 1.1rem; }
.mobile-cart-link .cart-count {
  position: absolute; top: -6px; right: 4px;
  background: var(--inu-primary); color: #fff;
  font-size: 0.6rem; min-width: 15px; height: 15px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 991.98px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 62px; }
}

/* ===== 汎用 ===== */
.badge-cod { background: var(--inu-secondary); color: #fff; }
.text-primary-inu { color: var(--inu-primary) !important; }
.bg-soft { background: var(--inu-bg-alt); }
.rounded-inu { border-radius: var(--inu-radius) !important; }
.shadow-inu { box-shadow: var(--inu-shadow) !important; }

.legal-page h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.legal-page table { width: 100%; }
.legal-page table th { width: 30%; background: var(--inu-bg-alt); text-align: left; padding: 0.8rem; vertical-align: top; }
.legal-page table td { padding: 0.8rem; border-bottom: 1px solid var(--inu-border); vertical-align: top; }

.contact-method-card {
  background: #fff;
  border-radius: var(--inu-radius);
  box-shadow: var(--inu-shadow);
  padding: 1.6rem;
  height: 100%;
  text-align: center;
}
.contact-method-card i { font-size: 1.8rem; color: var(--inu-primary); margin-bottom: 0.8rem; }

.step-indicator { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2.5rem; }
.step-indicator .step { text-align: center; font-size: 0.8rem; color: var(--inu-text-muted); }
.step-indicator .step.active { color: var(--inu-primary); font-weight: 700; }
.step-indicator .step .step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--inu-bg-alt); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.4rem; font-weight: 700;
}
.step-indicator .step.active .step-num { background: var(--inu-primary); color: #fff; }
