/* ColorMaster Notes — 一覧・記事ページ共通スタイル
   既存サイト（index.html）のデザイントークンに合わせています。 */

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

:root {
  --bg:           #0b1524;
  --bg2:          #0f1c30;
  --card:         #131f32;
  --card-border:  rgba(255,255,255,0.08);
  --primary:      #a08cc8;
  --primary-light: rgba(160,140,200,0.18);
  --text:         #e8e8f0;
  --text-sub:     rgba(232,232,240,0.55);
  --radius:       16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.35);
  --font-serif:   'Shippori Mincho', serif;
  --font-sans:    'Zen Kaku Gothic New', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,21,36,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.nav-link {
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Notes Header ── */
.notes-header {
  padding: 120px 24px 56px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.notes-header .page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.notes-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}

.notes-header p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ── Notes Grid ── */
.notes-wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.note-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

a.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.note-category {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.note-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 10px;
}

.note-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  flex-grow: 1;
}

/* ── Article ── */
.article-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 0;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.5vw, 30px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}

.article-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-sub);
  padding-bottom: 60px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.5;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 30px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.85;
}

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

.article-body a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
}

.article-body a:hover { text-decoration: underline; }

/* ── In-article CTA ── */
.note-cta {
  background: linear-gradient(160deg, #1a1a3a 0%, #0f1c30 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin: 16px 0 64px;
}

.note-cta h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.note-cta p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-sub);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.btn-appstore svg { width: 20px; height: 20px; fill: var(--text-sub); flex-shrink: 0; }

.note-back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: none;
}

.note-back-link:hover { color: var(--primary); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

footer a {
  color: var(--text-sub);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

footer a:hover { color: var(--primary); }

.footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .notes-header { padding: 100px 20px 40px; }
  .article-container { padding: 100px 20px 0; }
  .note-cta { padding: 32px 22px; margin: 8px 0 48px; }
}
