:root {
  --bg: #f8f6f3;
  --surface: #ffffff;
  --text: #2c2a28;
  --text-muted: #6b6560;
  --accent: #8b7355;
  --accent-light: #c4a882;
  --border: #e8e4df;
  --shadow: rgba(44, 42, 40, 0.08);
  --radius: 12px;
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--accent);
}

.nav-main {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-main a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  background: rgba(139, 115, 85, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

.page-section {
  display: block;
  padding: 64px 0 80px;
  scroll-margin-top: 72px;
  border-top: 1px solid var(--border);
}

.page-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

#page-detail {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 50%, var(--bg) 100%);
}

.hero {
  text-align: center;
  padding: 64px 24px 48px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.masonry {
  column-count: 3;
  column-gap: 24px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.masonry-item img {
  width: 100%;
  object-fit: cover;
}

.masonry-item .card-body {
  padding: 18px 20px;
}

.masonry-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.masonry-item .artist {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.masonry-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.detail-hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
}

.detail-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
}

.detail-meta {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.detail-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-specs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.detail-specs dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 24px;
}

.detail-specs dt {
  font-weight: 600;
  color: var(--text);
}

.detail-specs dd {
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 40px auto 0;
}

.contact-box p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 200;
  box-shadow: 0 -4px 24px var(--shadow);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 280px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(139, 115, 85, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .masonry {
    column-count: 2;
  }

  .detail-hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-main {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .nav-main a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .masonry {
    column-count: 1;
  }
}
