/*
Theme Name: Ekuipp Store
Theme URI: https://store.ekuipp.co.jp
Author: Ekuipp株式会社
Description: Ekuipp株式会社 問屋型ECサイト(単独出品・見積依頼制)用テーマ
Version: 1.0
*/

/* ===========================
   CSS Variables (コーポレートサイトと統一)
=========================== */
:root {
  --navy: #0F2B5B;
  --navy-dark: #081A38;
  --blue: #1E73BE;
  --blue-light: #EBF4FF;
  --text: #1A1A1A;
  --text-light: #666666;
  --bg: #FFFFFF;
  --bg-gray: #F5F7FA;
  --border: #E0E5ED;
  --white: #FFFFFF;
  --green: #1E8E3E;
  --amber: #B7791F;
  --red: #C0392B;
  --max-width: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--bg-gray);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.8; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header
=========================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo__mark {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
}

.site-logo__text { font-weight: 700; color: var(--navy); font-size: 16px; }
.site-logo__sub { font-size: 12px; color: var(--text-light); }

.site-nav ul { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--text); font-size: 14px; font-weight: 500; }
.header-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 16px 24px; align-items: flex-start; gap: 16px; }
}

/* ===========================
   Section common
=========================== */
.section { padding: 56px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: .15em; color: var(--blue); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--navy); }

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: var(--white) !important; }
.btn--navy { background: var(--navy); color: var(--white) !important; }
.btn--outline { border-color: var(--navy); color: var(--navy) !important; background: var(--white); }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--disabled { background: var(--border); color: var(--text-light) !important; cursor: not-allowed; }

/* ===========================
   Hero
=========================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}
.hero__tag { color: var(--blue-light); font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; }
.hero__title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; }
.hero__desc { color: #C9D6E8; margin-bottom: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===========================
   Filter bar
=========================== */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-bar select, .filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ===========================
   Product grid / card
=========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(15,43,91,.12); }

.product-card__thumb { aspect-ratio: 4/3; background: var(--bg-gray); overflow: hidden; position: relative; }
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card__maker { font-size: 12px; color: var(--text-light); }
.product-card__title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.product-card__meta { font-size: 13px; color: var(--text-light); }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--blue); margin-top: auto; }
.product-card__footer { padding: 0 16px 16px; }

.status-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--white);
}
.status-badge--in_stock { background: var(--green); }
.status-badge--negotiating { background: var(--amber); }
.status-badge--sold { background: var(--red); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===========================
   Single product
=========================== */
.product-single {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 860px) { .product-single { grid-template-columns: 1fr; } }

.product-single__gallery-main { aspect-ratio: 4/3; background: var(--bg-gray); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.product-single__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-single__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-single__thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }

.product-single__maker { color: var(--text-light); font-size: 13px; }
.product-single__title { font-size: 24px; font-weight: 700; color: var(--navy); margin: 8px 0 16px; }
.product-single__price { font-size: 26px; font-weight: 900; color: var(--blue); margin-bottom: 16px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.spec-table th { width: 130px; color: var(--text-light); font-weight: 500; background: var(--bg-gray); }

.area-note { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ===========================
   Quote form
=========================== */
.quote-box { background: var(--bg-gray); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.quote-box__title { font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-row .required { color: var(--red); margin-left: 4px; font-size: 11px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-note { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.form-error { background: #FDECEA; color: var(--red); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.form-success { background: #EAF7ED; color: var(--green); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }

/* ===========================
   Footer
=========================== */
.site-footer { background: var(--navy-dark); color: #C9D6E8; padding: 40px 0; margin-top: 64px; }
.site-footer a { color: #C9D6E8; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-nav ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: #7E92B5; margin-top: 24px; text-align: center; }

/* ===========================
   Static page (tokushoho etc.)
=========================== */
.static-page { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.static-page table { width: 100%; border-collapse: collapse; }
.static-page th, .static-page td { text-align: left; padding: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.static-page th { width: 200px; color: var(--text-light); font-weight: 500; }
