/* GITA — minimal flex layout */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #252525;
  --color-muted: #6a6f76;
  --color-accent: #ffb800;
  --color-border: #e8e8e8;
  --max-width: 1100px;
  --font: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

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

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.site-logo:hover { color: var(--color-text); }

/* Nav */
.site-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.site-nav__item--dropdown { position: relative; }

.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 200;
}

.site-nav__item--dropdown:hover .site-nav__sub,
.site-nav__item--dropdown:focus-within .site-nav__sub {
  display: block;
}

.site-nav__sub a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav__sub a:hover { background: var(--color-bg); }

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.site-main--wide { max-width: 100%; padding: 0; }

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-text); }

/* Content */
.content-block { margin-bottom: 2rem; }
.content-block h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.content-block h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.content-block p { margin: 0 0 1rem; }
.content-block dl { margin: 0 0 1.5rem; }
.content-block dt { font-weight: 700; margin-top: 1rem; }
.content-block dd { margin: 0.25rem 0 0 0; padding: 0; }
.content-block pre { white-space: pre-wrap; font-family: inherit; margin: 0; }

/* Hero / homepage */
.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-gallery img {
  width: 100%;
}

/* Product grid */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.product-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.product-card__image {
  aspect-ratio: 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.product-card__link {
  margin-top: auto;
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--color-text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  transition: opacity 0.15s;
}

.product-card__link:hover { opacity: 0.8; color: #fff; }

/* Product detail */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.product-detail__info { flex: 1 1 300px; }
.product-detail__info h1 { font-size: 1.35rem; margin: 0 0 1rem; }
.product-detail__price { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }

/* Blog */
.blog-container { width: 100%; }
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.blog-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem;
}
.blog-title { font-size: 1rem; margin: 0 0 0.5rem; }
.blog-title a { font-weight: 700; }
.blog-preview p { font-size: 0.9rem; color: var(--color-muted); margin: 0; }

/* Article wrapper */
.article-page {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.article-page h1 { font-size: 1.5rem; margin: 0 0 1.5rem; }

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  margin-top: auto;
}

.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--color-accent); }

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.site-footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  padding: 1rem 1.25rem;
  border-top: 1px solid #444;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .site-nav__sub {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: block;
  }

  .site-header { position: relative; }
  .site-header__inner { flex-wrap: wrap; }

  .product-detail { padding: 1.25rem; }
  .site-main { padding: 1.25rem; }
}
