/* ブログ（静的な HTML）の見た目。アプリと同じ、深い紺の地と桃色の光 */
:root {
  --bg: #05060c;
  --panel: #0a0c17;
  --raised: #111426;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f7fb;
  --body: #d9dcea;
  --soft: #a5aac1;
  --faint: #6d7392;
  --accent: #ff3d8e;
  --accent-soft: #ff8cbc;
  --grad: linear-gradient(100deg, #ff2e88 0%, #f2155c 100%);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo,
    sans-serif;
  color-scheme: dark;
}

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

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 900px;
  background:
    radial-gradient(48% 40% at 20% 10%, rgba(255, 46, 136, 0.14), transparent 70%),
    radial-gradient(40% 38% at 85% 20%, rgba(80, 120, 255, 0.12), transparent 70%);
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: auto-phrase;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.b-wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.b-narrow {
  width: min(760px, 100% - 40px);
}

/* ---- 頭と足 ---- */

.b-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
}

.b-header .b-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.b-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.b-logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.b-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.b-link {
  padding: 8px 10px;
  color: var(--soft);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.b-link:hover {
  color: var(--text);
}

.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px -10px rgba(255, 46, 136, 0.75);
}

.b-btn:hover {
  filter: brightness(1.06);
}

.b-btn.large {
  min-height: 52px;
  padding: 10px 28px;
  border-radius: 12px;
  font-size: 15px;
}

.b-btn.ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.b-footer {
  margin-top: 120px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.b-footer .b-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.b-footer .b-logo {
  color: var(--text);
  font-size: 15px;
}

.b-footer .b-logo-mark {
  width: 20px;
  height: 20px;
}

/* ---- 一覧 ---- */

.b-hero {
  padding: 72px 0 36px;
}

.b-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.03em;
}

.b-hero p {
  max-width: 40em;
  margin-top: 14px;
  color: var(--soft);
  font-size: 16px;
}

.b-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.b-filter {
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.b-filter:hover {
  color: var(--text);
}

.b-filter[aria-pressed="true"] {
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: #fff;
}

.b-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-card[hidden] {
  display: none;
}

.b-card a {
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition:
    border-color 160ms,
    transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.b-card a:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.b-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.b-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 18px 20px;
}

.b-card strong {
  font-size: 17px;
  line-height: 1.5;
  word-break: auto-phrase;
}

.b-card-desc {
  color: var(--soft);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.b-card time {
  color: var(--faint);
  font-size: 12px;
}

.b-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}

/* ---- 記事 ---- */

.b-article {
  padding-top: 32px;
}

.b-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--faint);
  font-size: 13px;
}

.b-crumbs a {
  text-decoration: none;
}

.b-crumbs a:hover {
  color: var(--text);
}

.b-article h1 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.b-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

.b-eyecatch {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.b-toc {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.b-toc p {
  font-weight: 800;
}

.b-toc ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
  color: var(--soft);
}

.b-toc li {
  margin: 4px 0;
}

.b-toc a {
  text-decoration: none;
}

.b-toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* 本文。和文は行間を広めにとる */
.b-body {
  margin-top: 36px;
  color: var(--body);
  font-size: 16.5px;
  line-height: 2;
}

.b-body > * + * {
  margin-top: 1.4em;
}

.b-body h2 {
  margin-top: 2.6em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 24px;
  scroll-margin-top: 84px;
}

.b-body h3 {
  margin-top: 2em;
  color: var(--text);
  font-size: 19px;
}

.b-body h2 + *,
.b-body h3 + * {
  margin-top: 0.8em;
}

.b-body a {
  color: var(--accent-soft);
  text-underline-offset: 3px;
}

.b-body strong {
  color: var(--text);
}

.b-body ul,
.b-body ol {
  padding-left: 1.4em;
}

.b-body li + li {
  margin-top: 0.4em;
}

.b-body blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--soft);
}

.b-body .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.b-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
}

.b-body th,
.b-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.b-body th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  white-space: nowrap;
}

.b-body tr:last-child td {
  border-bottom: 0;
}

.b-body hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---- ストアミュージックの紹介 ---- */

.b-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 64px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(140deg, #ff2e88, #b866ff 50%, #5b8cff) border-box;
}

.b-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 90% at 100% 0%, rgba(255, 46, 136, 0.18), transparent 70%);
}

.b-cta-mark {
  width: 34px;
  height: 34px;
}

.b-cta h2 {
  font-size: 22px;
}

.b-cta p {
  color: var(--soft);
}

.b-cta .b-cta-price {
  color: var(--text);
  font-weight: 700;
}

.b-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.b-related {
  margin-top: 96px;
}

.b-related h2 {
  margin-bottom: 24px;
  font-size: 24px;
}

@media (max-width: 960px) {
  .b-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .b-wrap {
    width: calc(100% - 32px);
  }
  .b-header .b-wrap {
    gap: 6px;
  }
  .b-logo {
    font-size: 14px;
    gap: 6px;
  }
  .b-logo-mark {
    width: 22px;
    height: 22px;
  }
  .b-hide-s {
    display: none;
  }
  .b-link {
    padding: 8px 5px;
    font-size: 13px;
  }
  .b-btn {
    padding: 4px 10px;
  }
  .b-hero {
    padding-top: 40px;
  }
  .b-grid {
    grid-template-columns: 1fr;
  }
  .b-body {
    font-size: 16px;
    line-height: 1.95;
  }
  .b-body h2 {
    font-size: 21px;
  }
  .b-cta {
    padding: 24px 20px;
  }
  .b-cta-actions .b-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
