/* 音作りドットコム — brand stylesheet
   Palette / logo concept from design/moodboard.png (approved brand reference). */

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

:root {
  --navy: #0F172A;
  --cyan: #22D3EE;
  --orange: #F59E0B;
  --mint: #A7F3D0;
  --gray: #E5E7EB;
  --black: #111827;
  --white: #FFFFFF;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;

  --max-width: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-en), var(--font-jp);
  color: var(--black);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-mirror { transform: scaleX(-1); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand .logo-mark { width: 34px; height: 34px; flex: none; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--black);
}

.header-nav a { display: flex; align-items: center; gap: 6px; }
.header-nav a:hover { color: var(--navy); }
.header-nav .icon { color: var(--navy); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16213d 55%, var(--navy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(500px 260px at 10% 100%, rgba(245, 158, 11, 0.14), transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding: 76px 20px 64px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mint);
  background: rgba(167, 243, 208, 0.12);
  border: 1px solid rgba(167, 243, 208, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.35;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero h1 .accent { color: var(--cyan); }

.hero p.lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42em;
  margin: 0 auto 34px;
}

.hero-waveform {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 44px;
  margin: 0 auto 34px;
  color: var(--cyan);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover { background: #38dff5; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray);
  font-weight: 600;
  padding: 10px 18px;
}
.btn-ghost:hover { border-color: var(--navy); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}
.badge .icon { color: var(--cyan); }

/* ---------- Section shell ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: #F8FAFC; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.section-head .see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.section-head .see-all:hover { color: var(--cyan); }

.section-lede {
  color: #475569;
  margin: -14px 0 26px;
  max-width: 60em;
}

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--gray);
  background: var(--white);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-tile:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.category-tile .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tile .icon-badge .icon { font-size: 1.35rem; }
.category-tile .icon-badge.accent-cyan { color: var(--cyan); }
.category-tile .icon-badge.accent-orange { color: var(--orange); }

.category-tile span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
}

/* ---------- Article cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.card-thumb {
  height: 128px;
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.card-thumb .icon { width: 34px; height: 34px; color: var(--cyan); }

.card-thumb .bpm-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.tag-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gray);
  color: var(--navy);
}
.tag-chip.chip-cyan { background: rgba(34, 211, 238, 0.15); color: #0e7490; }
.tag-chip.chip-orange { background: rgba(245, 158, 11, 0.15); color: #92400e; }
.tag-chip.chip-mint { background: rgba(167, 243, 208, 0.35); color: #065f46; }

.card h3 {
  font-family: var(--font-jp);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.5;
}

.card p {
  font-size: 0.86rem;
  color: #475569;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

/* ---------- Article page ---------- */
.article-header {
  background: var(--navy);
  color: var(--white);
  padding: 44px 0 40px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--cyan); }

.article-header h1 {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 80px;
}

.article-body h2 {
  font-family: var(--font-jp);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--cyan);
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}

.article-body p { margin: 0 0 16px; color: #1f2937; }

.article-body ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.article-body ul li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px dashed var(--gray);
  color: #1f2937;
}
.article-body ul li:last-child { border-bottom: none; }

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.article-body strong {
  color: var(--navy);
  background: linear-gradient(transparent 60%, rgba(167, 243, 208, 0.55) 60%);
  font-weight: 700;
}

.article-body pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.article-body code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

.article-body .table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
}

.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  min-width: 420px;
}

.article-body th, .article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray);
  text-align: left;
  white-space: nowrap;
}

.article-body th {
  background: #F1F5F9;
  color: var(--navy);
  font-weight: 700;
}

.article-body tr:last-child td { border-bottom: none; }

.article-footnote {
  font-size: 0.82rem;
  color: #94a3b8;
  border-top: 1px solid var(--gray);
  padding-top: 18px;
  margin-top: 8px;
}

.article-cta {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.article-cta-box {
  background: #F0FDFA;
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-box p {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-jp);
}

/* ---------- Article index / list ---------- */
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  color: #475569;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 46px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-jp);
}
.footer-brand .logo-mark { width: 30px; height: 30px; }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  max-width: 32em;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Utility / responsive ---------- */
@media (max-width: 640px) {
  .header-nav .nav-label { display: none; }
  .hero .wrap { padding: 56px 20px 48px; }
  .section { padding: 40px 0; }
  .footer-top { flex-direction: column; }
}
