/* ========== KNOTS織房 — Shared Styles ========== */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #6e6e6e;
  --accent: #2d5a4a;
  --accent-light: #4a8f75;
  --accent-ghost: rgba(45,90,74,0.06);
  --gold: #a68b4a;
  --line: rgba(28,28,28,0.08);
  --s0: clamp(0.9rem, 0.88rem + 0.15vw, 1rem);
  --s1: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --s2: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
  --s3: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --s4: clamp(2.8rem, 2rem + 3.5vw, 5rem);
  --space: clamp(2rem, 1.5rem + 2vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--s0);
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* ========== Navigation ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem var(--space);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250,249,246,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav .logo {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

nav .logo span { color: var(--accent-light); font-weight: 400; }

nav .nav-links { display: flex; gap: 0.5rem; }

nav .nav-links a {
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: all 0.3s;
}

nav .nav-links a:hover {
  color: var(--accent);
  background: var(--accent-ghost);
}

nav .nav-links a.active {
  color: #fff;
  background: var(--accent);
}

/* ========== Full Hero (Home only) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--space) * 3) var(--space) var(--space);
  position: relative;
  background: linear-gradient(160deg, #1c1c1c 0%, #2d5a4a 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 10%; right: 5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 5%; left: 8%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(166,139,74,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.knot-mark {
  width: 120px;
  height: auto;
  margin-bottom: 2.5rem;
  display: block;
}

.hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s4);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.hero .tagline {
  font-size: var(--s1);
  opacity: 0.75;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.9;
  margin-bottom: 3rem;
}

.hero-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-nav a {
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: all 0.3s;
}

.hero-nav a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.hero-nav a.primary {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.hero-nav a.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.35;
  writing-mode: vertical-rl;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, currentColor, transparent);
  margin: 0.8rem auto 0;
}

/* ========== Page Header (sub pages) ========== */
.page-header {
  padding: calc(var(--space) * 3) var(--space) calc(var(--space) * 1.5);
  text-align: center;
  background: linear-gradient(160deg, #1c1c1c 0%, #2d5a4a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -20%; right: -5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s3);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
}

/* ========== Layout ========== */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--space) * 1.5) var(--space);
  min-height: 40vh;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

h2 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s2);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s1);
  font-weight: 600;
  margin: 2.5rem 0 0.8rem;
}

.lead {
  font-size: var(--s1);
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}

p { margin-bottom: 1.2rem; }

.divider {
  width: 40px; height: 2px;
  background: var(--gold);
  margin: 2.5rem 0;
}

/* ========== Preview Grid (Home) ========== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.1);
  border-color: var(--accent-light);
}

.preview-card .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.preview-card h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.preview-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========== Cards ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: 4px;
  margin: 1.2rem 0;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.1);
}

.card h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ========== Quote Block ========== */
.quote-block {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
}

.quote-block p {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s1);
  line-height: 2;
  margin-bottom: 0.5rem;
}

.quote-block .source {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: "Noto Sans JP", sans-serif;
}

/* ========== Profile ========== */
.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info h2 { margin-bottom: 0.3rem; }

.profile-info .role {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem; top: 0.3rem; bottom: 0.3rem;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.3rem; top: 0.45rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-light);
}

.timeline-item .year {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.timeline-item p { margin-bottom: 0; }

/* ========== Tag List ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.tag {
  padding: 0.3rem 0.9rem;
  background: var(--accent-ghost);
  color: var(--accent);
  font-size: 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ========== Contact Grid ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-note {
  background: var(--accent-ghost);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ========== CTA Section ========== */
.cta-section {
  background: var(--ink);
  color: #fff;
  padding: calc(var(--space) * 1.8) var(--space);
  text-align: center;
  margin-top: calc(var(--space) * 2);
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section .lead {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.cta-button:hover {
  background: transparent;
  border-color: var(--accent-light);
  color: #fff;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: calc(var(--space) * 0.8) var(--space);
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a { color: var(--muted); }

/* ========== Responsive ========== */
@media (max-width: 600px) {
  nav { padding: 1rem; }
  nav .nav-links a {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .preview-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .page-header h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}

@media print {
  body { background: #fff; }
  nav { position: static; background: #fff; border-bottom: 1px solid #ddd; }
  .hero, .page-header {
    background: #1c1c1c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cta-section {
    background: #1c1c1c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@page { size: A4; margin: 15mm; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .preview-card { transition: none; }
}
