/* =====================================================
   今村光一郎 公式サイト — style.css
   ===================================================== */

:root {
  --navy:       #0d1b2a;
  --slate:      #1e3a5f;
  --sky:        #4a9eda;
  --ice:        #cce9f9;
  --white:      #f8fafc;
  --offwhite:   #f1f5f9;
  --text:       #1a202c;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --gold:       #c9a84c;
  --gold-light: #f0d98d;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(13,27,42,0.12);
  --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}
a { color: var(--sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(13,27,42,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,158,218,0.18);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--gold) !important;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

/* ─── Hero ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  /* ネイビーグラデーションは最背面 */
  background: linear-gradient(155deg, var(--navy) 0%, var(--slate) 55%, #2c5f8a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
/* 写真レイヤー: グラデーションより手前、文字より奥 */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: 85%;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-en {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--sky);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.hero-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--ice);
  margin-bottom: 2rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero-tags {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-tags span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.hero-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  color: rgba(255,255,255,0.35);
  font-size: 1.4rem;
  animation: bounce 2.2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* ─── Section base ───────────────────────────────── */
.section { padding: 6rem 2rem; }
.section-light  { background: var(--offwhite); }
.section-dark   { background: var(--navy); color: var(--white); }
.section-accent { background: var(--slate); color: var(--white); }

.container { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-sub {
  color: rgba(255,255,255,0.65);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

/* ─── About ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo-wrap { text-align: center; }
.about-photo {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto 0.6rem;
}
.about-photo-caption {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}
.about-text p { margin-bottom: 1.1rem; color: var(--text-mid); }
.about-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.4rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.about-meta dt { font-weight: 600; color: var(--text); font-size: 0.83rem; letter-spacing: 0.04em; }
.about-meta dd { color: var(--text-mid); font-size: 0.9rem; }

/* ─── Timeline ───────────────────────────────────── */
.timeline {
  margin-top: 1rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(74,158,218,0.25);
}
.timeline-item {
  position: relative;
  padding: 0.4rem 0 2.2rem 1.6rem;
}
.timeline-dot {
  position: absolute;
  left: -0.55rem; top: 0.6rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-dot-active { background: var(--sky); box-shadow: 0 0 0 4px rgba(74,158,218,0.2); }
.timeline-date  { font-size: 0.78rem; color: var(--sky); letter-spacing: 0.12em; margin-bottom: 0.2rem; }
.timeline-title { font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.timeline-desc  { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.timeline-note  { color: rgba(255,255,255,0.45); font-size: 0.85rem; line-height: 2; }

/* ─── Cards ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(13,27,42,0.16); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--slate);
}
.card p { color: var(--text-mid); font-size: 0.85rem; line-height: 1.8; }

/* ─── Link Grid ──────────────────────────────────── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 0.8rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  text-align: center;
}
.link-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
  color: var(--gold-light);
}
.link-icon { font-size: 1.6rem; line-height: 1; }
.link-icon-x { font-family: serif; font-weight: 700; font-size: 1.5rem; color: #e7e7e7; }
.link-label { font-weight: 500; font-size: 0.92rem; color: var(--white); }
.link-handle { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.link-placeholder { opacity: 0.55; cursor: default; }
.link-placeholder:hover { transform: none; }

/* ─── Contact ────────────────────────────────────── */
.contact-container { text-align: center; }
.contact-desc {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.7);
  line-height: 2;
}
.contact-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.contact-btn:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}
.contact-email { margin-top: 1.2rem; color: rgba(255,255,255,0.38); font-size: 0.83rem; }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: #07101a;
  color: rgba(255,255,255,0.3);
  padding: 2.5rem 2rem;
}
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-name { font-family: 'Noto Serif JP', serif; color: rgba(255,255,255,0.5); margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; }
.footer-nav a { color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.footer-nav a:hover { color: var(--sky); }
.footer-copy { font-size: 0.75rem; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .section { padding: 4rem 1.25rem; }
  .cards { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { padding: 0.8rem 2rem; }
}
