/* 和暮らしマーケット — 独自レイアウト */
:root {
  --ink: #1a1a1f;
  --paper: #f7f4ef;
  --accent: #c45c3e;
  --accent-soft: #e8a090;
  --sage: #5c6b5a;
  --gold: #b8956a;
  --shadow: 0 24px 60px rgba(26, 26, 31, 0.12);
  --radius: 4px;
  --font-display: "Shippori Mincho", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* 画像枠：必ず表示領域を確保 */
.img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e0dcd4;
  line-height: 0;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-wrap--hero {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.img-wrap--cat {
  aspect-ratio: 4 / 3;
  min-height: 180px;
}

.img-wrap--product {
  aspect-ratio: 1 / 1;
  min-height: 200px;
}

.img-wrap--about {
  aspect-ratio: 3 / 2;
  min-height: 220px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

/* —— ナビ：浮遊ピル —— */
.site-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(94%, 1100px);
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 26, 31, 0.08);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  font-size: 0.82rem;
}

.nav-links a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 28px;
  position: relative;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.3s;
}

/* —— ヒーロー —— */
.hero {
  min-height: auto;
  padding: calc(var(--nav-h) + 2.5rem) 4vw 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-vertical {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.12em;
  line-height: 1.35;
  color: var(--ink);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  width: fit-content;
}

.hero-copy {
  max-width: 32rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 92, 62, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero-badge {
  margin-top: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  max-width: 100%;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--accent-soft);
}

/* —— ベントーグリッド —— */
.section {
  padding: 5rem 4vw;
  position: relative;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* —— カテゴリグリッド —— */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 26, 31, 0.08);
  display: flex;
  flex-direction: column;
}

.category-card figcaption {
  padding: 1rem 1.15rem 1.15rem;
  font-size: 0.88rem;
  color: #555;
  flex: 1;
}

.category-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

/* —— 商品グリッド —— */
.products-strip {
  padding: 0 4vw 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.products-strip .section {
  padding-left: 0;
  padding-right: 0;
  padding-top: 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s;
}

.product-card .info {
  padding: 1.25rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.product-card .price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.product-card p {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.5rem;
}

/* —— 信頼バー —— */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 4vw;
  background: var(--ink);
  color: var(--paper);
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.trust-item p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.35rem;
}

/* —— 会社概要：ジグザグ —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-img {
  width: 100%;
  min-width: 0;
}

.about-text dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
  margin-top: 1.5rem;
}

.about-text dt {
  font-weight: 600;
  color: var(--sage);
}

.about-text dd {
  margin: 0;
}

.about-text p {
  margin-bottom: 1rem;
}

/* —— お問い合わせ —— */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info {
  font-size: 0.92rem;
}

.contact-info address {
  font-style: normal;
  margin: 1rem 0;
  line-height: 2;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: var(--paper);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e8f0e6;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* —— 法務ページ風セクション —— */
.legal {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem 3rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.legal h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal h3:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .updated {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

/* —— フッター —— */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 4vw 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-grid ul {
  list-style: none;
  font-size: 0.85rem;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 4vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2000;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.4s;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner button {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

/* —— レスポンシブ —— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: calc(var(--nav-h) + 2rem);
  }

  .hero-visual {
    order: -1;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .category-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85%, 300px);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
    text-align: center;
  }

  .legal {
    padding: 1.5rem;
  }

  .contact-wrap {
    padding: 1.5rem;
  }
}
