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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header-container-in,
.navi-in,
.content-in,
.footer-in {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.header-container-in {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  max-width: 58rem;
}

.site-name-text {
  margin: 0;
}

.navi-in {
  overflow-x: auto;
}

.navi-in > ul {
  min-width: max-content;
}

.content-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

#main,
#sidebar {
  min-width: 0;
}

#main {
  padding: clamp(24px, 3vw, 40px);
}

#main > .article {
  padding: 0;
}

.widget-body {
  color: var(--prism-ink-soft);
  font-size: 0.96rem;
}

.widget-body p:last-child {
  margin-bottom: 0;
}

.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.preview-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(112, 99, 184, 0.16);
  border-radius: 999px;
}

.prism-hero {
  --hero-galaxy: url("../prismaciel-observatory/images/galaxy-arc.svg");
  --hero-clouds: url("../prismaciel-observatory/images/cloud-band.svg");
  --hero-trees: url("../prismaciel-observatory/images/treeline.svg");
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff8ef;
  background:
    radial-gradient(circle at 86% 88%, rgba(216, 244, 255, 0.94), transparent 18%),
    radial-gradient(circle at 80% 82%, rgba(131, 217, 255, 0.84), transparent 26%),
    radial-gradient(circle at 12% 90%, rgba(255, 177, 110, 0.92), transparent 26%),
    radial-gradient(circle at 17% 76%, rgba(255, 121, 92, 0.48), transparent 32%),
    radial-gradient(circle at 50% 32%, rgba(39, 25, 93, 0.88), transparent 26%),
    linear-gradient(180deg, rgba(50, 34, 106, 0.88) 0%, rgba(31, 21, 71, 0.9) 24%, rgba(76, 59, 149, 0.72) 58%, rgba(212, 123, 101, 0.74) 86%, rgba(215, 244, 255, 0.92) 100%);
  border-radius: 28px;
  box-shadow: 0 26px 54px rgba(24, 17, 66, 0.2);
}

.prism-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--hero-galaxy),
    var(--hero-clouds),
    radial-gradient(ellipse 94% 28% at 38% -2%, transparent 56%, rgba(116, 226, 255, 0.54) 58%, rgba(255, 255, 255, 0.26) 59.4%, rgba(94, 141, 255, 0.5) 60.6%, transparent 63.5%),
    radial-gradient(ellipse 62% 16% at 48% 36%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.09) 36%, transparent 68%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 36%, rgba(255, 255, 255, 0.04) 50%, transparent 62%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.prism-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background:
    var(--hero-trees),
    linear-gradient(180deg, rgba(16, 11, 40, 0) 0%, rgba(10, 7, 24, 0.72) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.72;
  pointer-events: none;
}

.prism-hero > * {
  position: relative;
  z-index: 1;
}

.prism-hero h2 {
  margin: 0 0 0.8rem;
  font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.35;
}

.prism-hero p {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: rgba(255, 248, 232, 0.88);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  color: #fffdf6;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.scene-comparison {
  margin: 2rem 0 0;
}

.scene-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1rem;
}

.scene-preview {
  --scene-galaxy: none;
  --scene-clouds: none;
  --scene-trees: none;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 1.25rem;
  border: 1px solid rgba(112, 99, 184, 0.18);
  border-radius: 28px;
  box-shadow: 0 20px 36px rgba(29, 22, 75, 0.1);
  background:
    radial-gradient(circle at 86% 88%, rgba(216, 244, 255, 0.94), transparent 18%),
    radial-gradient(circle at 80% 82%, rgba(131, 217, 255, 0.84), transparent 26%),
    radial-gradient(circle at 12% 90%, rgba(255, 177, 110, 0.92), transparent 26%),
    radial-gradient(circle at 17% 76%, rgba(255, 121, 92, 0.48), transparent 32%),
    radial-gradient(circle at 50% 32%, rgba(39, 25, 93, 0.88), transparent 26%),
    linear-gradient(180deg, rgba(50, 34, 106, 0.88) 0%, rgba(31, 21, 71, 0.9) 24%, rgba(76, 59, 149, 0.72) 58%, rgba(212, 123, 101, 0.74) 86%, rgba(215, 244, 255, 0.92) 100%);
}

.scene-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--scene-galaxy),
    var(--scene-clouds),
    radial-gradient(ellipse 94% 28% at 38% -2%, transparent 56%, rgba(116, 226, 255, 0.54) 58%, rgba(255, 255, 255, 0.26) 59.4%, rgba(94, 141, 255, 0.5) 60.6%, transparent 63.5%),
    radial-gradient(ellipse 62% 16% at 48% 36%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.09) 36%, transparent 68%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 36%, rgba(255, 255, 255, 0.04) 50%, transparent 62%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.scene-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 40%, rgba(255, 255, 255, 0.64) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 18%, rgba(255, 255, 255, 0.74) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 46% 31%, rgba(255, 255, 255, 0.88) 0 1.5px, transparent 2.6px),
    radial-gradient(circle at 59% 18%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 12%, rgba(255, 255, 255, 0.72) 0 1.3px, transparent 2.3px),
    linear-gradient(124deg, transparent 0%, rgba(255, 255, 255, 0.28) 48%, transparent 50.4%);
  background-repeat: no-repeat;
  background-size: auto, auto, auto, auto, auto, auto, 14rem 14rem;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 78% 10%;
  opacity: 0.66;
  pointer-events: none;
}

.scene-preview--asset {
  --scene-galaxy: url("../prismaciel-observatory/images/galaxy-arc.svg");
  --scene-clouds: url("../prismaciel-observatory/images/cloud-band.svg");
  --scene-trees: url("../prismaciel-observatory/images/treeline.svg");
}

.scene-preview__treeline {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background:
    var(--scene-trees),
    linear-gradient(180deg, rgba(16, 11, 40, 0) 0%, rgba(10, 7, 24, 0.72) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.72;
}

.scene-preview__label,
.scene-preview__card {
  position: relative;
  z-index: 1;
}

.scene-preview__label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.78rem;
  color: #fffdf6;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  background: rgba(18, 12, 46, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.scene-preview__card {
  margin-top: 6.5rem;
  max-width: 18rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(29, 22, 75, 0.12);
}

.scene-preview__card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #251f53;
}

.scene-preview__card p {
  margin: 0;
  color: #47406f;
  font-size: 0.94rem;
  line-height: 1.7;
}

.entry-grid {
  display: grid;
  gap: 18px;
}

.entry-card-wrap {
  display: block;
}

.entry-card-thumb {
  min-height: 180px;
}

.prism-thumb {
  position: relative;
  overflow: hidden;
  min-height: 188px;
}

.prism-thumb::before,
.prism-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
}

.prism-thumb::before {
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.22) 0%, transparent 38%, rgba(255, 255, 255, 0.08) 100%);
}

.prism-thumb::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 54%, rgba(255, 255, 255, 0.52) 0 1px, transparent 2px);
  opacity: 0.7;
}

.thumb-spectrum {
  background:
    radial-gradient(circle at 18% 22%, rgba(116, 203, 255, 0.74), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(255, 178, 125, 0.72), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(255, 159, 193, 0.28), transparent 20%),
    linear-gradient(130deg, #7dd1ff 0%, #b5e9ff 22%, #ffd6b7 42%, #9f88ff 66%, #22174e 100%);
}

.thumb-cloud {
  background:
    radial-gradient(circle at 22% 64%, rgba(255, 255, 255, 0.52), transparent 18%),
    radial-gradient(circle at 48% 50%, rgba(255, 255, 255, 0.34), transparent 16%),
    linear-gradient(140deg, #9fe2ff 0%, #d9f3ff 28%, #ffe0d1 46%, #8a80ea 68%, #2a1d63 100%);
}

.thumb-lab {
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 241, 194, 0.4), transparent 14%),
    linear-gradient(132deg, #8fd8ff 0%, #d7f2ff 26%, #fde0c4 44%, #7a70d9 66%, #1a123f 100%);
}

.thumb-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 3px, transparent 3px, transparent 34px),
    linear-gradient(132deg, #8fd0ff 0%, #c6efff 24%, #ffd6bb 46%, #ac8eff 72%, #261851 100%);
  background-size: 100% 34px, cover;
}

.entry-card-content {
  display: grid;
  gap: 10px;
}

.entry-card-meta,
.post-meta-row,
.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.9rem;
}

.entry-card-snippet {
  margin: 0;
}

.article-header {
  margin-bottom: 1.6rem;
}

.article-header .entry-title {
  margin-bottom: 0.7rem;
}

.lede {
  font-size: 1.05rem;
  color: #40396f;
}

.notice-box {
  margin: 1.6rem 0;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(112, 99, 184, 0.18);
  border-radius: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.8rem 0 2rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(112, 99, 184, 0.18);
  border-radius: 18px;
}

.stat-label {
  margin-bottom: 0.35rem;
  color: var(--prism-ink-soft);
  font-size: 0.88rem;
}

.stat-value {
  color: #241d52;
  font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.25rem;
}

.archive-stack {
  display: grid;
  gap: 18px;
}

.archive-item {
  padding: 1.25rem 1.3rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(112, 99, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(35, 26, 82, 0.08);
}

.archive-item h2 {
  margin: 0.75rem 0 0.45rem;
  padding: 0;
  font-size: 1.36rem;
  background: none;
  border: 0;
  box-shadow: none;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list a {
  text-decoration: none;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.72rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #2d71d3 0%, #8751d2 100%);
  border-radius: 999px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding-left: 14px;
  border-left: 2px solid rgba(112, 99, 184, 0.24);
}

.timeline-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #261f54;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 24px;
}

.footer-copy {
  color: rgba(255, 248, 232, 0.78);
  font-size: 0.92rem;
}

@media screen and (max-width: 960px) {
  .content-in {
    grid-template-columns: 1fr;
  }

  .scene-comparison-grid {
    grid-template-columns: 1fr;
  }

  #sidebar {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .header-container-in,
  .footer-in {
    width: min(1240px, calc(100% - 20px));
  }

  .content-in {
    width: min(1240px, calc(100% - 20px));
  }

  #main {
    padding: 18px;
  }

  .prism-hero {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .scene-preview {
    min-height: 280px;
  }

  .entry-card-thumb,
  .prism-thumb {
    min-height: 154px;
  }
}
