:root {
  --sky-50: #f4fbff;
  --sky-100: #e7f5ff;
  --sky-300: #89d8ff;
  --sky-500: #1ea7ff;
  --sky-700: #0e6aa9;
  --mint: #86f7df;
  --blush: #ffd2e4;
  --berry: #ff7bac;
  --ink: #252525;
  --muted: rgba(10, 42, 68, 0.68);
  --line: rgba(14, 106, 169, 0.14);
  --line-strong: rgba(14, 106, 169, 0.26);
  --shadow: 0 18px 42px rgba(10, 42, 68, 0.1);
  --shadow-soft: 0 10px 24px rgba(10, 42, 68, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(134, 247, 223, 0.2), transparent 28%),
    radial-gradient(circle at 93% 5%, rgba(255, 210, 228, 0.34), transparent 24%),
    linear-gradient(170deg, var(--sky-50), #e4f6ff 52%, #f9fdff);
  font-family: "LINE Seed JP", var(--font-emoji), sans-serif;
  line-height: 1.65;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  content: "";
  filter: blur(8px);
  opacity: 0.16;
  pointer-events: none;
}

body::before {
  top: 22%;
  left: -72px;
  background: conic-gradient(from 160deg, var(--sky-300), var(--mint), var(--blush), var(--sky-300));
}

body::after {
  right: -76px;
  bottom: 12%;
  background: conic-gradient(from 60deg, var(--blush), var(--sky-300), var(--mint), var(--blush));
}

a {
  color: inherit;
}

.container {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px) 0 72px;
}

.page-head {
  position: relative;
  padding: 0 0 24px 20px;
  border-bottom: 1px solid var(--line);
}

.page-head::before {
  position: absolute;
  top: 2px;
  bottom: 25px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky-500), var(--mint), var(--berry));
  content: "";
}

.page-head h1 {
  margin: 12px 0 4px;
  color: rgba(10, 42, 68, 0.92);
  font-family: "Nunito", "LINE Seed JP", var(--font-emoji), sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.back {
  display: inline-flex;
  align-items: center;
  color: var(--sky-700);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.back:hover,
.back:focus-visible {
  color: var(--sky-500);
}

.cards {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(30, 167, 255, 0.34);
  box-shadow: var(--shadow);
}

.card:focus-visible {
  outline: 3px solid rgba(30, 167, 255, 0.32);
  outline-offset: 3px;
}

.thumb {
  min-height: 142px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(137, 216, 255, 0.7), rgba(134, 247, 223, 0.52)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 12px);
  background-position: center;
  background-size: cover;
}

.card > div:last-child {
  align-self: center;
  padding: 4px 10px 4px 0;
}

.meta {
  margin: 0 0 7px;
  color: var(--sky-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card h2 {
  margin: 0 0 7px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.45;
}

.card:hover h2,
.card:focus-visible h2 {
  color: var(--sky-700);
}

.card p:last-child {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  line-clamp:2;
  -webkit-line-clamp: 2;
}

.cards .empty,
.cards .error,
.article-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.article-wrap {
  width: min(1120px, calc(100% - 48px));
}

.article-wrap .page-head {
  padding-bottom: 18px;
}

.article-wrap .page-head::before {
  bottom: 19px;
}

.article-wrap .page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.article {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.article > h1 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.7vw, 2.35rem);
  line-height: 1.42;
  letter-spacing: 0.02em;
}

.article .cover {
  display: block;
  width: 100%;
  max-height: 560px;
  margin: 18px 0 22px;
  border-radius: 16px;
  object-fit: cover;
}

.article .body {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(37, 37, 37, 0.9);
  font-size: 1rem;
  line-height: 1.9;
}

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

.article .body > *:last-child {
  margin-bottom: 0;
}

.article .body h2,
.article .body h3 {
  margin: 1.7em 0 0.65em;
  color: rgba(10, 42, 68, 0.92);
  line-height: 1.45;
}

.article .body h2 {
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
}

.article .body h3 {
  font-size: 1.14rem;
}

.article .body .ql-size-small {
  font-size: 0.82em;
}

.article .body .ql-size-large {
  font-size: 1.28em;
}

.article .body .ql-size-huge {
  font-size: 1.62em;
}

.article .body .ql-align-center {
  text-align: center;
}

.article .body .ql-align-right {
  text-align: right;
}

.article .body .ql-align-justify {
  text-align: justify;
}

.article .body .cms-section-heading {
  margin: 1.7em 0 0.8em;
  padding: 0.55em 0.8em;
  background: var(--sky-300);
  color: rgba(10, 42, 68, 0.92);
  font-size: 1.28em;
  font-weight: 700;
}

.article .body .cms-divider,
.article .body hr {
  margin: 1.4em 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.article .body a {
  color: var(--sky-700);
  text-underline-offset: 0.15em;
}

.article .body img,
.article .body video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article .body .ql-align-center img {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.article .body .ql-align-right img {
  display: block;
  margin-left: auto;
}

.article .body blockquote {
  margin-inline: 0;
  padding: 0.2em 1em;
  border-left: 3px solid var(--sky-500);
  color: var(--muted);
  background: rgba(231, 245, 255, 0.54);
}

.article .body pre,
.article .body code {
  border-radius: 7px;
  background: var(--sky-50);
}

.article .body pre {
  max-width: 100%;
  padding: 14px;
  overflow-x: auto;
}

.article .body code {
  padding: 0.14em 0.32em;
}

@media (max-width: 620px) {
  .container,
  .article-wrap {
    width: min(94vw, 900px);
    padding-top: 24px;
  }

  .page-head {
    padding-left: 16px;
  }

  .card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .card > div:last-child {
    padding: 2px 4px 6px;
  }

  .article {
    padding: 18px 16px 22px;
    border-radius: 18px;
  }

  .article .body {
    margin-top: 20px;
    padding-top: 18px;
    font-size: 0.96rem;
  }
}
