:root {
  --accent: #ff4081;
  --accent-strong: #ffd166;
  --text: #f4f1f5;
  --muted: #c9c1ce;
  --panel: rgba(19, 24, 48, 0.78);
  --panel-soft: rgba(28, 35, 66, 0.68);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --tap-target: 44px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 64, 129, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 4%, rgba(0, 212, 255, 0.12), transparent 32rem),
    linear-gradient(145deg, #121326, #101a35 58%, #0b2c47);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

a {
  color: #ff77a8;
  text-underline-offset: 0.22em;
}

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto 64px;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(9, 14, 32, 0.62);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.card {
  min-width: 0;
}

.page-header,
.hero {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 64, 129, 0.14), transparent 58%),
    linear-gradient(145deg, var(--panel), var(--panel-soft));
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.42rem 0.88rem;
  border: 1px solid rgba(255, 64, 129, 0.34);
  border-radius: 999px;
  background: rgba(255, 64, 129, 0.09);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.eyebrow-dot,
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 5px rgba(255, 64, 129, 0.12);
}

h1 {
  margin: 0.65em 0 0.5em;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.38;
}

.lead,
.lede {
  margin: 0 0 1rem;
  color: #e0dbe4;
  font-size: 1rem;
  line-height: 1.86;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-meta span {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 0.78rem;
}

.note,
.summary-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.05);
  color: #e6dfcf;
}

.toc,
.section {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--panel), var(--panel-soft));
}

.toc h2,
.toc-title {
  margin: 0 0 0.55rem;
  color: #ff8bb4;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.toc li {
  margin: 0.38rem 0;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 119, 168, 0.38);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.section h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(255, 64, 129, 0.28);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.48;
}

.section h3 {
  margin: 1.55rem 0 0.55rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--accent);
  font-size: 1.08rem;
  line-height: 1.5;
}

.section p,
.section li,
.faq-list dd {
  font-size: 1rem;
  line-height: 1.86;
}

.section p {
  margin: 0.82rem 0;
}

.faq-list dt {
  margin-top: 1.3rem;
  color: #ff8bb4;
  font-weight: 700;
}

.faq-list dd {
  margin: 0.35rem 0 0;
  color: #ded8e2;
}

.tags,
.cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: 0.68rem 1rem;
  border: 1px solid rgba(255, 119, 168, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  text-decoration: none;
}

@media (hover: hover) {
  .tag:hover,
  .btn:hover {
    border-color: #ff8bb4;
    background: rgba(255, 64, 129, 0.14);
  }
}

@media (max-width: 640px) {
  body {
    padding: 8px;
  }

  .wrap {
    margin-bottom: 32px;
    padding: 10px;
    border-radius: 16px;
  }

  .page-header,
  .hero,
  .toc,
  .section {
    padding: 16px 14px;
    border-radius: 14px;
  }
}
/* Column shared components moved out of templates. */
  .column-hero-shell {
    display: grid;
    gap: clamp(16px, 2.4vw, 28px);
    align-items: center;
    margin: clamp(18px, 2.6vw, 30px) 0 clamp(18px, 2.2vw, 24px);
  }

  .column-hero-copy {
    min-width: 0;
  }

  .column-hero-copy > :first-child {
    margin-top: 0;
  }

  .column-hero-copy > :last-child {
    margin-bottom: 0;
  }

  .column-hero-visual {
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .column-hero-visual-stage {
    position: relative;
    width: min(100%, clamp(220px, 24vw, 300px));
    padding: 14px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
      linear-gradient(145deg, rgba(7, 12, 30, 0.95), rgba(10, 18, 40, 0.9));
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
    isolation: isolate;
  }

  .column-hero-visual-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 14% 12%, rgba(141, 241, 255, 0.22), transparent 34%),
      radial-gradient(circle at 85% 86%, rgba(154, 241, 206, 0.14), transparent 28%);
    pointer-events: none;
  }

  .column-hero-visual-stage::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .column-hero-visual-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(4, 8, 20, 0.94);
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .column-hero-visual-frame::before {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 12px;
    width: 76px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.2));
    opacity: 0.82;
    z-index: 2;
  }

  .column-hero-visual-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
  }

  .column-hero-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 8;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.01);
  }

  @media (min-width: 980px) {
    .column-hero-shell {
      grid-template-columns: minmax(0, 1.22fr) minmax(220px, 300px);
      align-items: stretch;
    }

    .column-hero-visual {
      justify-content: flex-end;
      align-self: center;
    }
  }

  @media (max-width: 640px) {
    .column-hero-visual-stage {
      width: min(100%, 286px);
      padding: 12px;
      border-radius: 24px;
    }

    .column-hero-visual-stage::after {
      inset: 10px;
      border-radius: 18px;
    }

    .column-hero-visual-frame {
      border-radius: 18px;
    }
  }

.column-loader-spinner {
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: column-spin 1s linear infinite;
    margin: 0 auto 15px;
  }

  @keyframes column-spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

.column-editor-beat {
  position: relative;
  width: min(100%, 780px);
  margin: 1.45rem auto 0;
  padding: 1.05rem 1.1rem 1.05rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 64, 129, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 64, 129, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 14, 32, 0.92), rgba(22, 33, 62, 0.72));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.column-editor-beat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ff4081, #ffd700);
}

.column-editor-beat__eyebrow {
  margin: 0 0 0.35rem !important;
  color: #ffd700 !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.column-editor-beat__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 850;
  line-height: 1.55 !important;
}

.column-editor-beat__body {
  margin: 0.42rem 0 0 !important;
  color: #dbe3ee !important;
  font-size: 0.9rem !important;
  line-height: 1.72 !important;
}

.column-section-jump {
  position: relative;
  display: block;
  margin: 1.15rem 0 0;
  padding: 0.82rem 0.95rem 0.86rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-left: 4px solid #ffd700;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 64, 129, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(141, 241, 255, 0.035));
  color: #dbe3ee;
  font-size: 0.9rem;
  line-height: 1.74;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.column-section-jump__label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-right: 0.48rem;
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.column-section-jump__label::before {
  content: ">";
  color: #ff5a84;
  filter: drop-shadow(0 0 7px rgba(255, 90, 132, 0.42));
}

.column-section-jump__text {
  color: #dbe3ee;
}
.column-next-step .badge span:last-child {
  color: #ffd700;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.column-next-step h2 {
  margin-top: 0;
}

.column-next-step__subhead {
  color: #fff4cc;
}

@media (max-width: 640px) {
  .column-editor-beat {
    margin-top: 1.1rem;
    padding: 0.9rem 0.95rem 0.9rem 1.05rem;
    border-radius: 14px;
  }

  .column-editor-beat__title {
    font-size: 0.92rem !important;
  }

  .column-editor-beat__body {
    font-size: 0.82rem !important;
    line-height: 1.62 !important;
  }

  .column-section-jump {
    margin-top: 0.95rem;
    padding: 0.72rem 0.8rem 0.76rem 0.88rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.66;
  }

  .column-section-jump__label {
    display: flex;
    margin: 0 0 0.26rem;
    font-size: 0.72rem;
  }
}
/* Column dynamic modules moved out of API response. */
.column-next-step {
    --column-work-width: clamp(150px, 20vw, 178px);
    margin-top: 2.75rem;
    padding: 1.4rem;
    border-radius: 22px;
    background:
      radial-gradient(circle at top right, rgba(141, 241, 255, 0.12), transparent 34%),
      linear-gradient(160deg, rgba(4, 8, 22, 0.96), rgba(8, 14, 32, 0.92));
    border: 1px solid rgba(141, 241, 255, 0.16);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }

  .column-next-step__lead {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #a8b7cb;
  }

  .column-next-step__group {
    margin-top: 1.4rem;
  }

  .column-next-step__subhead {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.8rem;
    font-size: 0.94rem;
    font-weight: 800;
    color: #f7fbff;
    letter-spacing: 0.02em;
  }

  .column-next-step__subhead::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5a84, #8df1ff);
    box-shadow: 0 0 16px rgba(141, 241, 255, 0.38);
  }

  .column-next-step__rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
  }

  .column-next-step__column-card {
    display: block;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .column-next-step__column-card:hover {
    transform: translateY(-2px);
    border-color: rgba(141, 241, 255, 0.38);
    background: rgba(141, 241, 255, 0.08);
    color: inherit;
  }

  .column-next-step__column-name {
    margin: 0 0 0.35rem;
    font-size: 0.96rem;
    font-weight: 800;
    color: #8df1ff;
  }

  .column-next-step__column-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #a8b7cb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .column-next-step__works {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.1rem 0.1rem 0.45rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .column-next-step__works::-webkit-scrollbar {
    height: 6px;
  }

  .column-next-step__works::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
  }

  .column-next-step__work {
    display: block;
    position: relative;
    flex: 0 0 var(--column-work-width);
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    background: #05070f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }

  .column-next-step__work:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 90, 132, 0.4);
    color: inherit;
  }

  .column-next-step__work-media {
    position: relative;
    overflow: hidden;
    background: #000;
  }

  .column-next-step__work-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top;
    display: block;
    transition: transform 0.25s ease;
  }

  .column-next-step__work:hover .column-next-step__work-media img {
    transform: scale(1.04);
  }

  .column-next-step__work-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.2rem 0.6rem 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.06));
  }

  .column-next-step__work-title {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }

  .column-next-step__work-meta {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-top: 0.35rem;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    color: #eef6ff;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .column-inline-ref {
    width: min(100%, 430px);
    margin: 1.45rem auto;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  }

  .column-inline-ref__image {
    display: block;
    background: #000;
    text-decoration: none;
  }

  .column-inline-ref__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: #000;
    display: block;
    transition: transform 0.25s ease;
  }

  .column-inline-ref:hover .column-inline-ref__image img {
    transform: scale(1.03);
  }

  .column-inline-ref__caption {
    padding: 0.55rem 0.65rem 0.7rem;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #a8b7cb;
    overflow-wrap: anywhere;
  }

  .column-inline-ref__caption a {
    color: #eef6ff;
    font-weight: 700;
    text-decoration: none;
  }

  .column-inline-ref__caption a:hover {
    color: #8df1ff;
    text-decoration: underline;
  }

  .column-next-step__people {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.05rem 0.05rem 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .column-next-step__person {
    flex: 0 0 92px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    scroll-snap-align: start;
  }

  .column-next-step__person-avatar {
    width: 78px;
    height: 78px;
    margin: 0 auto 0.4rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 90, 132, 0.45);
    background: rgba(0, 0, 0, 0.75);
  }

  .column-next-step__person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .column-next-step__person-name {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .column-next-step__makers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
  }

  .column-next-step__maker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .column-next-step__maker:hover {
    transform: translateY(-1px);
    border-color: rgba(141, 241, 255, 0.38);
    color: inherit;
  }

  .column-next-step__maker-name {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .column-next-step__maker-count {
    flex-shrink: 0;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    color: #8df1ff;
    background: rgba(141, 241, 255, 0.14);
    border: 1px solid rgba(141, 241, 255, 0.26);
  }

  @media (max-width: 640px) {
    .column-next-step {
      padding: 1.1rem 1rem;
      border-radius: 18px;
    }

    .column-next-step__rail {
      grid-template-columns: 1fr;
    }

    .column-next-step__work {
      flex-basis: min(46vw, 166px);
    }

    .column-next-step__work-title {
      font-size: 0.76rem;
    }

    .column-inline-ref {
      margin: 1.2rem 0;
      border-radius: 14px;
    }

    .column-next-step__people {
      gap: 0.75rem;
    }
  }
/* Column editorial final overrides. */
/* Column inline-style replacements. */
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.footer-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.column-loader {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.column-loader__text {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
