/* HiShack Inc. — base styles
   - Typography: Noto Sans JP (production-confirmed)
   - Reset + tokens + variant switcher header
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #fafaf7;
  --grid: #e7e5dd;
  --accent: #b8442e;
  --accent-soft: #f5e1dc;
  --tan: #f4f1e8;
  --font-base: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;

  /* Variant switcher header heights */
  --switcher-h-pc: 40px;
  --switcher-h-mobile: 36px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  /* offset for fixed switcher header */
  padding-top: var(--switcher-h-pc);
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 767px) {
  body {
    padding-top: var(--switcher-h-mobile);
    font-size: 14px;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ── 5-variant switcher header (fixed top) ───────────────────────────── */
.vswitcher {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--switcher-h-pc);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.vswitcher__label {
  font-weight: 500;
  opacity: 0.7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.vswitcher__buttons {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.vswitcher__btn {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250, 250, 247, 0.4);
  padding: 4px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-width: 44px;
}

.vswitcher__btn:hover {
  border-color: var(--paper);
}

.vswitcher__btn[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  font-weight: 700;
}

.vswitcher__variant-name {
  display: none;
  font-size: 11px;
  opacity: 0.6;
  margin-left: 8px;
}

@media (min-width: 1024px) {
  .vswitcher__variant-name { display: inline; }
}

@media (max-width: 767px) {
  .vswitcher {
    height: var(--switcher-h-mobile);
    padding: 0 10px;
    gap: 6px;
  }
  .vswitcher__label { display: none; }
  .vswitcher__buttons {
    gap: 4px;
    width: 100%;
  }
  .vswitcher__btn {
    flex: 1;
    padding: 6px 0;
    font-size: 12px;
    min-width: 0;
    min-height: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .vswitcher__label { font-size: 10px; }
  .vswitcher__btn { padding: 4px 10px; min-width: 36px; }
}

/* ── Page-level container ────────────────────────────────────────────── */
.page {
  min-height: calc(100vh - var(--switcher-h-pc));
}

.section {
  padding: 56px;
  border-bottom: 1px solid var(--ink);
}

.section--quiet { border-bottom: none; }
.section--dense { padding: 32px 56px; }
.section--sparse { padding: 88px 56px; }

@media (max-width: 1023px) {
  .section { padding: 40px 28px; }
  .section--dense { padding: 24px 28px; }
  .section--sparse { padding: 64px 28px; }
}

@media (max-width: 767px) {
  .section { padding: 32px 20px; }
  .section--dense { padding: 20px 20px; }
  .section--sparse { padding: 48px 20px; }
}

/* ── Utility ─────────────────────────────────────────────────────────── */
.mono { font-family: ui-monospace, 'SF Mono', 'Menlo', monospace; letter-spacing: 0.04em; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--ink-soft); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 4px 9px;
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }

/* placeholder image block */
.ph {
  position: relative;
  background: #eeece4;
  border: 1px solid var(--ink);
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,0,0,0.05) 12px 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  min-height: 160px;
}

.ph--dark { background: var(--ink); color: var(--paper); }
.ph--accent { background: var(--accent-soft); }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--3x4 { aspect-ratio: 3 / 4; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head__num {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  opacity: 0.6;
}

.section-head__en {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head__jp {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 767px) {
  .section-head__en { font-size: 20px; }
  .section-head__jp { font-size: 13px; }
}
