/* ===== RESET & BASE ===== */
:root {
  --bg: #FAF9F6;
  --card: #FFFFFF;
  --primary: #6B8DB6;
  --primary-hover: #5A7DA5;
  --primary-light: #E8EFF7;
  --accent: #E8846B;
  --accent-hover: #D4725A;
  --soft: #EEF2F7;
  --text: #2C2C2C;
  --text-secondary: #6B6B6B;
  --border: #E0D8D0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.10);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; color: var(--text); }

/* ===== HERO / PAGE HEADER ===== */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-size: 40px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.page-header p {
  font-size: 16px; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto; position: relative; z-index: 1;
}
.page-header .breadcrumb {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 16px; position: relative; z-index: 1;
}
.page-header .breadcrumb a { color: var(--primary); }
.page-header .breadcrumb span { margin: 0 6px; }

/* Gradient backgrounds for pages */
.header-home {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%);
  position: relative; z-index: 0;
}
.header-home::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,141,182,0.08) 0%, transparent 70%);
}
.header-home::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,107,0.06) 0%, transparent 70%);
}
.header-about { background: linear-gradient(135deg, #f0f4f8 0%, var(--bg) 100%); }
.header-about::before {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,141,182,0.06) 0%, transparent 70%);
}
.header-music { background: linear-gradient(135deg, #f8f0f0 0%, var(--bg) 100%); }
.header-music::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,107,0.08) 0%, transparent 70%);
}
.header-projects { background: linear-gradient(135deg, #f0f8f0 0%, var(--bg) 100%); }
.header-projects::before {
  content: ''; position: absolute; top: -120px; right: -60px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,182,120,0.06) 0%, transparent 70%);
}
.header-diary { background: linear-gradient(135deg, #f8f4f0 0%, var(--bg) 100%); }
.header-diary::before {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,170,130,0.08) 0%, transparent 70%);
}
.header-contact { background: linear-gradient(135deg, #f0f0f8 0%, var(--bg) 100%); }
.header-contact::before {
  content: ''; position: absolute; top: -100px; left: 50%;
  width: 400px; height: 400px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(107,141,182,0.06) 0%, transparent 70%);
}

/* ===== CONTENT ===== */
.content {
  max-width: 1120px; margin: 0 auto;
  padding: 60px 24px 80px;
}
.content-narrow {
  max-width: 800px; margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ===== SECTIONS ===== */
.section { margin-bottom: 64px; }
.section:last-child { margin-bottom: 0; }
.section-title {
  font-size: 24px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.section-title .icon { font-size: 22px; }
.section-desc {
  color: var(--text-secondary); margin-bottom: 32px;
  max-width: 560px; line-height: 1.7;
}

/* ===== HOME PAGE ===== */
.hero-avatar {
  width: 180px; height: 180px; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(107,141,182,0.25);
  margin: 0 auto 32px; position: relative; z-index: 1;
  border: 4px solid #fff;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-title {
  font-size: 56px; font-weight: 800; letter-spacing: -1px;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.home-title small {
  display: block; font-size: 22px; font-weight: 400;
  color: var(--text-secondary); letter-spacing: 0; margin-bottom: 4px;
}
.home-sub {
  font-size: 15px; color: var(--primary); font-weight: 500;
  margin-bottom: 12px; position: relative; z-index: 1;
}
.home-quote {
  font-size: 17px; color: var(--text-secondary);
  font-style: italic; margin-bottom: 40px;
  position: relative; z-index: 1;
}

/* ===== NAV CARDS (HOME) ===== */
.nav-cards {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; max-width: 1120px; margin: -40px auto 0;
  padding: 0 24px; position: relative; z-index: 2;
}
.nav-card {
  background: var(--card); border-radius: var(--radius);
  padding: 32px 20px; text-align: center;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.nav-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.nav-card .icon { font-size: 36px; margin-bottom: 12px; }
.nav-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.nav-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 48px; align-items: start;
}
.about-photo {
  aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--soft), #d8e4f0);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-text { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.9; }
.info-table { margin-bottom: 24px; }
.info-table dt {
  font-size: 12px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.info-table dd {
  font-size: 15px; margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag {
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--soft); color: var(--primary);
  font-size: 13px; font-weight: 500;
}
.favorites { display: flex; flex-wrap: wrap; gap: 16px; }
.fav-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
}
.fav-item .emoji { font-size: 18px; }

/* Personality cards */
.personality-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.personality-card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.personality-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.personality-card .icon { font-size: 32px; margin-bottom: 12px; }
.personality-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.personality-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== MUSIC PAGE ===== */
.instrument-box {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px;
}
.instrument-thumb {
  width: 160px; height: 120px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  background: var(--soft);
  display: flex; align-items: center; justify-content: center;
}
.instrument-thumb img { width: 100%; height: 100%; object-fit: cover; }
.instrument-thumb .placeholder { font-size: 48px; }
.instrument-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.instrument-info p { font-size: 14px; color: var(--text-secondary); }

.songs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.song-card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.song-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.song-card .num { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.song-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.song-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.song-card .badge {
  display: inline-block; margin-top: 12px; padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 11px;
  background: var(--primary-light); color: var(--primary); font-weight: 500;
}

/* Discography table */
.disc-table {
  width: 100%; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.disc-table thead { background: var(--soft); }
.disc-table th {
  padding: 14px 20px; text-align: left; font-size: 13px;
  font-weight: 600; color: var(--text-secondary);
}
.disc-table td {
  padding: 14px 20px; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.disc-table tr:last-child td { border-bottom: none; }
.disc-table .album-icon { font-size: 20px; }

/* ===== PROJECTS PAGE ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.project-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-thumb {
  height: 200px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .gradient-bg {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; font-size: 64px;
}
.gradient-1 { background: linear-gradient(135deg, #e8d5f5, #f5e6d3); }
.gradient-2 { background: linear-gradient(135deg, #d5e8f5, #e6f5e8); }
.gradient-3 { background: linear-gradient(135deg, #f5e6d3, #f5d5d5); }
.gradient-4 { background: linear-gradient(135deg, #d5f5e8, #e8d5f5); }
.project-body { padding: 24px; }
.project-body h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.project-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.project-body .tags { margin-top: 12px; }
.project-body .tag { background: var(--soft); color: var(--primary); }

/* ===== DIARY PAGE ===== */
.diary-list { display: flex; flex-direction: column; gap: 24px; }
.diary-card {
  background: var(--card); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.diary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.diary-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.diary-date { font-size: 13px; color: var(--text-secondary); }
.diary-tag {
  padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: 11px; background: var(--primary-light); color: var(--primary); font-weight: 500;
}
.diary-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.diary-card .excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.diary-card .read-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--primary);
}
.diary-sidebar {
  background: var(--card); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin-bottom: 40px;
}
.diary-sidebar h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.diary-sidebar .month-list { list-style: none; }
.diary-sidebar .month-list li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.diary-sidebar .month-list li:last-child { border-bottom: none; }
.diary-sidebar .month-list a { color: var(--text); }
.diary-sidebar .month-list a:hover { color: var(--primary); }
.diary-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 24px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-weight: 500; margin-bottom: 24px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--card); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.social-link:hover { transform: translateY(-2px); background: var(--primary); }
.social-link:hover svg { color: #fff; }
.social-link svg { width: 20px; height: 20px; color: var(--text-secondary); transition: color 0.2s; }
.contact-card {
  background: var(--card); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); text-align: center;
}
.contact-card img {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  box-shadow: var(--shadow);
}
.contact-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--text-secondary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.faq-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== BUTTON ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; border: none;
  cursor: pointer; transition: all 0.25s; position: relative; z-index: 1;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(232,132,107,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,132,107,0.4);
  text-decoration: none;
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
  text-decoration: none;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center; padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
  margin-top: auto;
}
.footer span { margin: 0 8px; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); margin: 0 12px; font-size: 13px; }
.footer-links a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .nav-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; margin-bottom: 24px; }
  .songs-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .diary-layout { grid-template-columns: 1fr; }
  .personality-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .home-title { font-size: 36px; }
  .home-title small { font-size: 16px; }
  .hero-avatar { width: 120px; height: 120px; }
  .page-header h1 { font-size: 28px; }
  .content { padding: 40px 20px 60px; }
  .section-title { font-size: 20px; }
  .songs-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250,249,246,0.95); backdrop-filter: blur(10px);
    padding: 16px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .instrument-box { flex-direction: column; text-align: center; }
  .personality-grid { grid-template-columns: 1fr; }
  .disc-table { font-size: 13px; }
  .disc-table th, .disc-table td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .home-title { font-size: 28px; }
  .header-home { min-height: auto; padding: 120px 20px 80px; }
  .page-header { padding: 100px 20px 40px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .diary-card { padding: 20px; }
  .nav-cards { grid-template-columns: 1fr; }
}
