/* Tokyo Archives - styles.css */

:root {
  --bg: #FAFAF7;
  --text: #1A1A1A;
  --text-soft: #555555;
  --text-muted: #999999;
  --accent: #7C0A02;
  --border: #E5E5E5;
  --section-bg: #F0EFEA;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', "Hiragino Mincho ProN", "ヒラギノ明朝 ProN W3", "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.85rem; margin-bottom: 1.25rem; margin-top: 3rem; }
h3 { font-size: 1.25rem; margin-bottom: 1rem; margin-top: 2rem; }

p, li {
  margin-bottom: 1rem;
  font-weight: 400;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ===== Header ===== */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 250, 247, 0.92);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  border-bottom: none;
}

.logo:hover { border-bottom: none; opacity: 0.7; }

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav li { margin-bottom: 0; }

nav a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: none;
  padding: 0.25rem 0;
  transition: opacity 0.15s ease;
}

nav a:hover {
  opacity: 0.55;
  border-bottom: none;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.lang-switch a {
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-bottom: none;
}

.lang-switch a.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

.lang-switch a:hover {
  color: var(--text);
  border-bottom: none;
}

/* ===== Main ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  min-height: 60vh;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 720px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ===== Hero (Home page) ===== */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta {
  display: inline-block;
  background: var(--text);
  color: var(--bg) !important;
  padding: 0.95rem 2.25rem;
  border: 1px solid var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--text);
  transition: all 0.2s ease;
}

.cta:hover {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}

/* ===== Info Table (used on About / Legal pages) ===== */
.info-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 760px;
  margin: 2rem 0;
}

.info-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
}

.info-table td:first-child {
  width: 38%;
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Inventory Grid ===== */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.item-card {
  border: 1px solid var(--border);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.item-image {
  background: var(--section-bg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.item-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.item-info h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.item-info p {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
  line-height: 1.6;
}

.item-info .reference-only {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Section Block ===== */
.section-block {
  margin: 3rem 0;
  max-width: 760px;
}

.section-block h2:first-child {
  margin-top: 0;
}

/* ===== Footer ===== */
footer {
  background: var(--section-bg);
  margin-top: 0;
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-inner p {
  margin-bottom: 0.4rem;
}

.footer-inner strong {
  color: var(--text);
  font-weight: 600;
}

.footer-divider {
  margin: 1.5rem 0;
  height: 1px;
  background: var(--border);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Notice Box ===== */
.notice-box {
  background: #FFFFFF;
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .header-inner {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 1.1rem;
    order: 3;
  }

  nav a {
    font-size: 0.72rem;
  }

  .lang-switch {
    margin-left: auto;
  }

  main {
    padding: 2.5rem 1.25rem 4rem;
  }

  h1 { font-size: 1.85rem; }
  .hero { padding: 3rem 0 2.5rem; margin-bottom: 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-tagline { font-size: 1rem; }
  h2 { font-size: 1.45rem; margin-top: 2rem; }
  h3 { font-size: 1.1rem; }

  .info-table td { font-size: 0.875rem; padding: 0.75rem 0.5rem; }
  .info-table td:first-child { font-size: 0.75rem; }

  .inventory-grid { gap: 1.25rem; grid-template-columns: 1fr; }

  footer { padding: 3rem 1.25rem 2rem; }
}
