@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap');

:root {
  --sky: #d8f1fb;
  --sky-deep: #c5e8f7;
  --sand: #fbf5e8;
  --sand-deep: #f3e5c8;
  --paper: #fffdf8;
  --line: #6f6255;
  --text: #2d241d;
  --muted: #6b5e50;
  --shadow: rgba(98, 78, 56, 0.18);
  --shadow-strong: rgba(98, 78, 56, 0.28);
  --shadow-soft: 0 10px 18px rgba(98, 78, 56, 0.10);
  --shadow-soft-strong: 0 14px 24px rgba(98, 78, 56, 0.14);
  --shadow-soft-lift: 0 7px 14px rgba(98, 78, 56, 0.10);
  --ai: #d9f0ff;
  --job: #d7f1d7;
  --life: #ffe9a8;
  --yakokari: #ffd9bc;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8f1df 0%, #f5ead1 18%, #dff3fb 62%, #c5e8f7 100%);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  padding: 90px 30px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(104, 183, 223, 0.28);
}

.site-shell {
  position: relative;
  min-height: calc(100vh - 36px);
  overflow: visible;
}

.site-board {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 30px 60px 50px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-clip: padding-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 239, 0.96)),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
  box-shadow:
    0 0 0 1px rgba(111, 98, 85, 0.03),
    0 18px 32px rgba(111, 98, 85, 0.11);
}

.site-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7) 0 8%, transparent 9%),
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.5) 0 7%, transparent 8%),
    radial-gradient(circle at 18% 88%, rgba(255, 223, 168, 0.18) 0 13%, transparent 14%);
  pointer-events: none;
}

.site-main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  width: auto;
  height: 140px;
  flex: none;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-family: "Mochiy Pop One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
}

.brand-subtitle {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 1.45vw, 1.3rem);
  line-height: 1.4;
  font-weight: 500;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid rgba(111, 98, 85, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft-lift);
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-tag strong {
  color: var(--text);
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 16px 10px 14px;
  border: 2px solid rgba(111, 98, 85, 0.4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-strong);
}

.category-card.is-active {
  border-color: rgba(111, 98, 85, 0.58);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 230, 0.98));
  box-shadow: var(--shadow-soft-strong);
}

.category-card[aria-current="page"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 232, 0.98));
}

.category-icon {
  width: auto;
  height: 75px;
  margin-bottom: 2px;
}

.category-label {
  display: block;
  max-width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.02em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.section-card {
  position: relative;
  padding: 30px 18px;
  border: 2px solid rgba(111, 98, 85, 0.38);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.section-card + .section-card {
  margin-top: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.widget-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 18px;
  border: 2px solid rgba(111, 98, 85, 0.36);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover,
.post-card:focus-visible,
.post-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-strong);
}

.post-card:focus-visible {
  outline: 3px solid rgba(104, 183, 223, 0.5);
  outline-offset: 2px;
}

.post-card__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 186px;
  border-radius: 20px;
  background: #fff;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.post-card__tag {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(98, 78, 56, 0.10);
}

.post-card__tag--ai {
  background: var(--ai);
}

.post-card__tag--job {
  background: var(--job);
}

.post-card__tag--life {
  background: var(--life);
}

.post-card__tag--yakokari {
  background: var(--yakokari);
}

.post-card__title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.5;
  font-weight: 800;
}

.post-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.post-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid rgba(111, 98, 85, 0.4);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 14px rgba(98, 78, 56, 0.10);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.read-more:hover,
.read-more:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(98, 78, 56, 0.12);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pagination__item {
  display: inline-flex;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(111, 98, 85, 0.28);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 14px rgba(98, 78, 56, 0.08);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pagination__link:hover,
.pagination__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(98, 78, 56, 0.12);
}

.pagination__link[aria-current="page"] {
  background: var(--sand-deep);
}

.pagination__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pagination__item--ellipsis {
  align-items: center;
  min-height: 42px;
  padding: 0 6px;
  color: var(--muted);
  font-weight: 800;
}

.content-main {
  min-width: 0;
}

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

.widget {
  padding: 18px;
  border: 2px solid rgba(111, 98, 85, 0.38);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.profile-card {
  text-align: center;
}

.profile-card__link {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.profile-card__link:hover,
.profile-card__link:focus-visible {
  outline: none;
}

.profile-card__link:hover .profile-name,
.profile-card__link:focus-visible .profile-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-avatar {
  width: min(180px, 68%);
  margin: 0 auto 0 55px;
}

.profile-name {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.category-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 2px solid rgba(111, 98, 85, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 12px rgba(98, 78, 56, 0.06);
  font-weight: 800;
}

.category-list a:hover,
.category-list a:focus-visible {
  box-shadow: 0 8px 16px rgba(98, 78, 56, 0.1);
  transform: translateY(-1px);
}

.category-list__icon {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
}

.category-list__label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  flex: 1;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.category-list__label--ai {
  background: var(--ai);
}

.category-list__label--job {
  background: var(--job);
}

.category-list__label--life {
  background: var(--life);
}

.category-list__label--yakokari {
  background: var(--yakokari);
}

.category-list__label--reset {
  background: rgba(255, 255, 255, 0.96);
}

.category-list__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: none;
}

[hidden] {
  display: none !important;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid rgba(111, 98, 85, 0.26);
  border-radius: 999px;
  background: #fffef9;
  color: var(--text);
  box-shadow: inset 0 2px 0 rgba(98, 78, 56, 0.06);
}

.search-form button {
  padding: 10px;
  border: 2px solid rgba(111, 98, 85, 0.26);
  border-radius: 999px;
  background: #fff6e1;
  box-shadow: 0 7px 14px rgba(98, 78, 56, 0.10);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid rgba(111, 98, 85, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 12px rgba(98, 78, 56, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
}

.pill--ai {
  background: var(--ai);
}

.pill--job {
  background: var(--job);
}

.pill--life {
  background: var(--life);
}

.pill--yakokari {
  background: var(--yakokari);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1.2rem;
}

.breadcrumb a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.breadcrumb__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__home-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.article-hero {
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid rgba(111, 98, 85, 0.36);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(216, 241, 255, 0.95), rgba(247, 250, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.article-hero img {
  width: min(100%, 320px);
  height: auto;
  max-height: 190px;
  margin: 0 auto;
  padding-top: 14px;
  object-fit: contain;
}

.article-hero__copy {
  padding: 18px;
}

.article-hero__copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.35;
  font-weight: 900;
}

.article-hero__copy p {
  margin: 0;
  color: var(--muted);
}

.profile-page {
  display: grid;
  gap: 16px;
}

.page-hero {
  overflow: hidden;
}

.page-hero--profile {
  display: grid;
  gap: 18px;
}

.page-hero__banner {
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(216, 241, 255, 0.96), rgba(255, 248, 235, 0.96));
}

.page-hero__banner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: center;
}

.page-hero__visual {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 2px solid rgba(111, 98, 85, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.92) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(216, 241, 255, 0.9), rgba(255, 248, 235, 0.95));
}

.page-hero__visual img {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.page-hero__content {
  min-width: 0;
}

.page-hero__content--center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 6px 12px;
  border: 2px solid rgba(111, 98, 85, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.page-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  font-weight: 900;
  font-family: "Mochiy Pop One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
}

.page-hero__lead {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.95;
}

.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-hero__content--center .page-hero__chips {
  justify-content: center;
}

.profile-copy-block {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 2.5;
}

.profile-copy-block--center {
  text-align: center;
}

.profile-copy-block p {
  line-height: 2.5;
}

.profile-copy-block p:last-child {
  margin-bottom: 0;
}

.profile-bullet-list {
  margin: 0;
  padding-left: 1.2em;
}

.profile-bullet-list li + li {
  margin-top: 6px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-fact {
  display: grid;
  gap: 4px;
  padding: 20px 25px;
  border: 2px solid rgba(111, 98, 85, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 14px rgba(98, 78, 56, 0.07);
}

.profile-fact__label {
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-fact__value {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.65;
}

.profile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-intro-combined {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.82fr);
  gap: 22px;
  align-items: center;
}

.profile-intro-visual {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 300px;
  background: transparent;
}

.profile-intro-visual img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.profile-category-grid--profile {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-category-card-block.section-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.profile-facts-card.section-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.profile-facts-card .section-heading {
  margin-bottom: 18px;
}

.profile-category-card-block .section-heading {
  margin-bottom: 18px;
}

.profile-category-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 100%;
  padding: 18px 14px 16px;
  border: 2px solid rgba(111, 98, 85, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.profile-category-item__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.profile-category-item h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.profile-category-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  text-align: center;
}

.profile-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 4px;
  text-align: center;
}

.profile-message p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.6;
}

.profile-message__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}

.profile-message__icon--right {
  width: 54px;
  height: 54px;
}

.profile-intro-card,
.profile-tone-card,
.profile-facts-card,
.profile-category-card-block,
.profile-links-card,
.profile-message-card {
  overflow: hidden;
}

.profile-facts-card .profile-facts {
  margin-top: 2px;
}

.profile-cta-row {
  justify-content: center;
}

.profile-links-card .profile-cta-row {
  margin-top: 18px;
  text-align: center;
}

.article-body {
  padding: 18px;
  border: 2px solid rgba(111, 98, 85, 0.36);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.article-body h2 {
  margin: 1.4em 0 0.55em;
  font-size: 1.35rem;
  font-weight: 900;
}

.article-body p,
.article-body li {
  color: var(--text);
  line-height: 1.9;
}

.article-body ul {
  padding-left: 1.25em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  overflow: hidden;
  border: 2px solid rgba(111, 98, 85, 0.32);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft-lift);
}

.related-card img {
  width: min(100%, 170px);
  height: auto;
  max-height: 118px;
  object-fit: contain;
  background: #fffdf8;
  margin: 0 auto;
}

.related-card__body {
  padding: 12px;
}

.related-card__body strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 35px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 10px 4px 0;
  text-align: center;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  font-size: 12px;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.page-transition__layer {
  position: absolute;
  left: -26vw;
  bottom: -36vh;
  width: 76vw;
  height: 76vw;
  min-width: 560px;
  min-height: 560px;
  clip-path: path("M 0 100 C 8 84 18 76 30 73 C 44 70 54 60 67 59 C 80 58 88 47 100 26 L 100 100 Z");
  background:
    radial-gradient(circle at 20% 44%, rgba(255, 255, 255, 0.9) 0 10px, transparent 11px),
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5) 0 8px, transparent 9px),
    radial-gradient(circle at 60% 18%, rgba(255, 255, 255, 0.5) 0 9px, transparent 10px),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.22) 0 8px, transparent 9px),
    linear-gradient(135deg, #46bff2 0%, #83dcff 42%, #2faae8 100%);
  box-shadow: 0 0 0 9999px rgba(75, 192, 246, 0.04);
  transform-origin: 0% 100%;
  transform: translate(-22%, 24%) scale(0.08) rotate(-4deg);
}

.page-transition__layer--front {
  left: -18vw;
  bottom: -24vh;
  width: 64vw;
  height: 64vw;
  background:
    radial-gradient(circle at 18% 36%, rgba(255, 255, 255, 0.98) 0 9px, transparent 10px),
    radial-gradient(circle at 29% 24%, rgba(255, 255, 255, 0.58) 0 8px, transparent 9px),
    radial-gradient(circle at 55% 14%, rgba(255, 255, 255, 0.56) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.26) 0 8px, transparent 9px),
    linear-gradient(135deg, #def8ff 0%, #8edcf9 34%, #46bdf0 100%);
  filter: saturate(1.05);
  transform: translate(-20%, 20%) scale(0.08) rotate(-4deg);
}

.page-transition__foam {
  position: absolute;
  left: -8vw;
  bottom: -3vh;
  width: 64vw;
  height: 20vh;
  clip-path: path("M 0 75 C 14 63 25 58 40 57 C 57 56 68 44 79 42 C 89 40 95 31 100 24 L 100 100 L 0 100 Z");
  background:
    radial-gradient(circle at 16% 70%, rgba(255, 255, 255, 0.98) 0 12px, transparent 13px),
    radial-gradient(circle at 30% 54%, rgba(255, 255, 255, 0.9) 0 11px, transparent 12px),
    radial-gradient(circle at 45% 56%, rgba(255, 255, 255, 0.96) 0 12px, transparent 13px),
    radial-gradient(circle at 59% 43%, rgba(255, 255, 255, 0.86) 0 11px, transparent 12px),
    radial-gradient(circle at 75% 34%, rgba(255, 255, 255, 0.9) 0 10px, transparent 11px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
  transform: translateY(100%);
  opacity: 0.95;
  filter: drop-shadow(0 4px 0 rgba(98, 78, 56, 0.05));
}

body.is-leaving .page-transition {
  opacity: 1;
}

body.is-leaving .page-transition__layer {
  animation: wave-cover 0.34s cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

body.is-leaving .page-transition__layer--front {
  animation-delay: 0.03s;
}

body.is-leaving .page-transition__foam {
  animation: foam-cover 0.34s cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

body.is-entering .page-transition {
  opacity: 1;
}

body.is-entering .page-transition__layer {
  animation: wave-reveal 0.30s cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

body.is-entering .page-transition__layer--front {
  animation-delay: 0.03s;
}

body.is-entering .page-transition__foam {
  animation: foam-reveal 0.30s cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

@keyframes wave-cover {
  0% {
    transform: translate(-22%, 24%) scale(0.08) rotate(-4deg);
  }
  70% {
    transform: translate(-8%, 10%) scale(1.12) rotate(-1deg);
  }
  100% {
    transform: translate(0%, 0%) scale(1.9) rotate(0deg);
  }
}

@keyframes wave-reveal {
  0% {
    transform: translate(0%, 0%) scale(1.9) rotate(0deg);
  }
  100% {
    transform: translate(-22%, 24%) scale(0.08) rotate(-4deg);
  }
}

@keyframes foam-cover {
  0% {
    transform: translateY(105%);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes foam-reveal {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(105%);
    opacity: 0;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border: 2px solid rgba(111, 98, 85, 0.4);
  border-radius: 999px;
  background: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 960px) {
  .article-layout,
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding: 12px;
  }

  .site-board {
    padding: 18px;
    border-radius: 28px;
  }

  .brand-bar {
    align-items: flex-start;
  }

  .brand-link {
    width: 100%;
  }

  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid,
  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-form {
    flex-direction: column;
  }

  .page-transition__layer {
    min-width: 460px;
    min-height: 460px;
    left: -40vw;
    bottom: -34vh;
    width: 92vw;
    height: 92vw;
  }

  .page-transition__layer--front {
    left: -32vw;
  }

  .page-transition__foam {
    width: 88vw;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px 10px 18px;
  }

  .site-board {
    padding: 14px 12px 16px;
    border-radius: 24px;
  }

  .site-header {
    gap: 14px;
    margin-bottom: 14px;
  }

  .brand-bar {
    gap: 10px;
  }

  .brand-link {
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .brand-mark {
    height: 90px;
  }

  .brand-title {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
  }

  .brand-subtitle {
    margin-top: 8px;
    font-size: 1.05rem;
  }

  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    min-height: 94px;
    padding: 12px 8px 10px;
  }

  .category-icon {
    height: 56px;
  }

  .category-label {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .content-grid,
  .article-layout {
    gap: 14px;
  }

  .section-card,
  .widget,
  .post-card,
  .article-body,
  .article-hero {
    border-radius: 18px;
  }

  .section-card,
  .widget,
  .article-body,
  .article-hero,
  .post-card {
    padding: 20px 14px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2,
  .section-heading h1,
  .section-heading h3,
  .widget-title {
    font-size: 1.6rem;
  }

  .post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .page-hero {
    padding: 16px;
  }

  .page-hero--profile {
    gap: 14px;
  }

  .page-hero__banner {
    padding: 12px 12px 0;
    border-radius: 20px;
  }

  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .page-hero__visual {
    padding: 14px;
    border-radius: 20px;
  }

  .page-hero__title {
    font-size: 1.8rem;
  }

  .page-hero__lead {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .breadcrumb {
    gap: 6px;
  }

  .profile-facts,
  .profile-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-category-grid--profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-category-card-block.section-card {
    padding: 0;
  }

  .profile-facts-card.section-card {
    padding: 0;
  }

  .profile-intro-combined {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .profile-intro-visual {
    min-height: 220px;
    padding: 8px 0 0;
  }

  .profile-message {
    gap: 12px;
  }

  .profile-message__icon {
    width: 52px;
    height: 52px;
  }

  .profile-message__icon--right {
    width: 46px;
    height: 46px;
  }

  .profile-category-item {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .profile-category-item__icon {
    width: 56px;
    height: 56px;
  }

  .profile-cta-row {
    flex-direction: column;
  }

  .post-card__thumb {
    min-height: 170px;
    border-radius: 16px;
  }

  .post-card__tag {
    left: 12px;
    top: 12px;
    font-size: 0.9rem;
    min-height: 26px;
    padding: 0 9px;
  }

  .post-card__title {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .post-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .read-more {
    padding: 7px 12px;
    font-size: 0.95rem;
  }

  .pagination {
    gap: 6px;
    margin-top: 14px;
  }

  .pagination__link,
  .pagination__item--ellipsis {
    min-height: 38px;
  }

  .sidebar {
    gap: 12px;
  }

  .profile-avatar {
    width: min(150px, 72%);
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }

  .category-list a {
    gap: 8px;
    padding: 5px 7px;
  }

  .category-list__icon {
    width: 28px;
    height: 28px;
  }

  .category-list__label {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.9rem;
  }

  .site-footer__inner {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
