:root {
  --iriya-single-bg: #fffafd;
  --iriya-single-ink: #413052;
  --iriya-single-deep: #2b1f45;
  --iriya-single-muted: #80708f;
  --iriya-single-purple: #8c6bb8;
  --iriya-single-lavender: #f3ecfb;
  --iriya-single-pink: #f8e7f1;
  --iriya-single-gold: #c99a45;
  --iriya-single-border: rgba(122, 95, 157, 0.16);
  --iriya-single-shadow: 0 18px 44px rgba(82, 58, 118, 0.12);
}

body.single-post {
  position: relative;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 221, 240, 0.72), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(217, 196, 244, 0.78), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(255, 238, 250, 0.82), transparent 36%),
    radial-gradient(circle at 90% 82%, rgba(236, 222, 250, 0.68), transparent 34%),
    linear-gradient(135deg, rgba(90, 62, 128, 0.1) 0%, rgba(255, 255, 255, 0) 34%, rgba(226, 174, 215, 0.16) 72%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #fff8fd 0%, #f9eefc 38%, #fff6fb 72%, #ffffff 100%);
  color: var(--iriya-single-ink);
}

body.single-post #content {
  padding: 0 0 64px;
}

.iriya-affiliate-disclosure-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.iriya-affiliate-disclosure {
  color: #8a8494;
  font-size: 0.78rem;
  line-height: 1.8;
}

.iriya-affiliate-disclosure summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #817a8b;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  background:
    repeating-linear-gradient(-45deg, rgba(122, 95, 157, 0.05) 0 3px, transparent 3px 7px),
    rgba(255, 255, 255, 0.64);
}

.iriya-affiliate-disclosure summary::-webkit-details-marker {
  display: none;
}

.iriya-affiliate-disclosure summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid #96909d;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.2s ease;
}

.iriya-affiliate-disclosure:not([open]) summary::before {
  transform: rotate(-90deg);
}

.iriya-affiliate-disclosure__body {
  padding: 14px 14px 0;
}

.iriya-affiliate-disclosure__body p {
  margin: 0;
  color: #8a8494;
  letter-spacing: 0.04em;
}

body.single-post #content-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
}

body.single-post .main,
body.single-post .content,
body.single-post .article,
body.single-post .entry-content,
body.single-post .under-entry-content {
  min-width: 0;
  background: transparent;
}

body.single-post .main {
  width: auto;
  padding: 0;
  border: 0;
}

body.single-post .article {
  position: relative;
  overflow: hidden;
  padding: 34px clamp(18px, 4vw, 42px) 42px;
  border: 1px solid var(--iriya-single-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--iriya-single-shadow);
}

body.single-post .article::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.single-post .article::before {
  top: 66px;
  right: 22px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(201, 154, 69, 0.38);
  border-radius: 50%;
  border-left-color: transparent;
  transform: rotate(-26deg);
  opacity: 0.7;
}

body.single-post .article-header {
  position: relative;
  z-index: 1;
}

body.single-post .cat-label,
body.single-post .entry-categories-tags a {
  border: 0;
  border-radius: 999px;
  color: #7a5fa2;
  background: #eadbf8;
}

body.single-post .entry-title {
  margin: 12px 0 14px;
  color: var(--iriya-single-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.82rem, 3vw, 2.55rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

body.single-post .date-tags,
body.single-post .post-date,
body.single-post .post-update,
body.single-post .breadcrumb {
  color: #8b7a9a;
  font-size: 0.86rem;
}

body.single-post .eye-catch-wrap {
  width: 100%;
  margin: 24px 0 10px;
}

body.single-post .eye-catch-wrap figure {
  width: 100%;
}

body.single-post .eye-catch,
body.single-post .eye-catch img {
  overflow: hidden;
  border-radius: 6px;
}

body.single-post .eye-catch img {
  width: 100%;
  height: auto;
}

body.single-post .entry-content {
  position: relative;
  z-index: 1;
  color: #51465f;
  font-size: 1rem;
  line-height: 2;
}

body.single-post .toc {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: 28px auto 34px;
  padding: 20px clamp(16px, 3vw, 32px) 22px;
  border: 1px solid rgba(139, 107, 184, 0.2);
  border-radius: 8px;
  color: #604f78;
  background:
    radial-gradient(circle at 92% 70%, rgba(230, 218, 248, 0.7), transparent 20%),
    linear-gradient(135deg, rgba(251, 246, 255, 0.96), rgba(255, 252, 255, 0.96));
  box-shadow: 0 12px 30px rgba(82, 58, 118, 0.08);
}

body.single-post .toc::before,
body.single-post .toc::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.single-post .toc::before {
  top: 16px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 154, 69, 0.46), transparent);
}

body.single-post .toc::after {
  right: 22px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(201, 154, 69, 0.32);
  border-radius: 50%;
  border-left-color: transparent;
  transform: rotate(-26deg);
  opacity: 0.55;
}

body.single-post .toc-title {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: #60477e;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  background: none;
}

body.single-post .toc-title::before,
body.single-post .toc-title::after {
  content: none;
}

body.single-post .toc-content,
body.single-post .toc-list {
  margin: 0;
}

body.single-post .toc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-left: 1.35em;
}

body.single-post .toc-list,
body.single-post .toc-list ul,
body.single-post .toc-list ol {
  color: #8c6bb8;
}

body.single-post .toc-list ul,
body.single-post .toc-list ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 2px;
  padding-left: 1.25em;
}

body.single-post .toc-list li {
  margin: 0;
  color: #8c6bb8;
  line-height: 1.65;
}

body.single-post .toc-list a {
  color: #604f78;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.single-post .toc-list a:hover {
  color: #8c6bb8;
}

body.single-post .entry-content > *:first-child {
  margin-top: 0;
}

body.single-post .entry-content p {
  margin: 0 0 1.8em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  position: relative;
  margin-right: 0;
  margin-left: 0;
  border: 0;
  color: #4f3b73;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.04em;
  background: none;
}

body.single-post .entry-content {
  counter-reset: iriya-single-heading;
}

body.single-post .entry-content h2 {
  counter-increment: iriya-single-heading;
  margin-top: 3.7rem;
  margin-bottom: 1.25rem;
  padding: 14px 18px 14px 64px;
  border-bottom: 1px dashed rgba(172, 138, 200, 0.42);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.55;
  background: linear-gradient(90deg, rgba(239, 222, 249, 0.95), rgba(255, 255, 255, 0));
}

body.single-post .entry-content h2::before {
  content: counter(iriya-single-heading);
  position: absolute;
  top: 50%;
  left: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 154, 69, 0.28);
  border-radius: 50%;
  color: #7f62a7;
  font-family: Georgia, serif;
  font-size: 1.24rem;
  background: #f1e1fb;
  transform: translateY(-50%);
}

body.single-post .entry-content h2::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 154, 69, 0.72));
}

body.single-post .entry-content h3 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding: 1em;
  border-left: 10px solid #8c6bb8;
  color: #4f3b73;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  background: #fff;
  box-shadow: 2px 2px 5px rgba(82, 58, 118, 0.1);
}

body.single-post .entry-content h3::before {
  content: none;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 1.2rem 0 2rem;
  padding-left: 1.4em;
}

body.single-post .entry-content .toc-list ul,
body.single-post .entry-content .toc-list ol {
  margin: 0.35em 0;
}

body.single-post .entry-content li {
  margin: 0.35em 0;
}

body.single-post .entry-content strong {
  color: #32234d;
}

body.single-post .wp-block-image img,
body.single-post .entry-content img {
  border-radius: 6px;
}

body.single-post .sns-share,
body.single-post .sns-follow {
  border-top: 1px solid rgba(122, 95, 157, 0.12);
  padding-top: 22px;
}

.iriya-single-author__avatar {
  border-radius: 50%;
  background: #f5edf9 url("../../../archive/images/author.webp") center / cover no-repeat;
}

.iriya-single-author a,
.iriya-single-side-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #9d77c9, #7350a2);
  box-shadow: 0 10px 22px rgba(92, 61, 130, 0.16);
}

body.single-post .under-entry-content {
  margin-top: 28px;
}

body.single-post .related-entry-heading,
body.single-post .comment-title {
  color: #4f3b73;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

body.single-post #related-entries {
  margin-top: 42px;
}

body.single-post .related-entry-heading {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  color: #14253a;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.45;
  background: none;
}

body.single-post .related-entry-heading::before,
body.single-post .related-entry-heading::after {
  content: none;
}

body.single-post .related-entry-main-heading {
  display: block;
}

body.single-post .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.single-post .related-entry-card-wrap {
  display: block;
  overflow: hidden;
  width: auto !important;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(28, 66, 81, 0.12);
  border-radius: 8px;
  color: #10243d;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 14px 30px rgba(40, 62, 76, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.single-post .related-entry-card-wrap:hover {
  border-color: rgba(0, 141, 125, 0.28);
  box-shadow: 0 18px 36px rgba(40, 62, 76, 0.12);
  transform: translateY(-2px);
}

body.single-post .related-entry-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  line-height: 1.7;
  background: #fff;
}

body.single-post .related-entry-card-thumb {
  position: relative;
  overflow: hidden;
  width: 100% !important;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #f1edf4;
}

body.single-post .related-entry-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-post .related-entry-card .cat-label {
  position: static;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 0 0 14px;
  padding: 0 10px;
  border: 1px solid #008d7d;
  border-radius: 999px;
  color: #008d7d;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  background: #fff;
}

body.single-post .related-entry-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 !important;
  padding: 18px 18px 20px;
}

body.single-post .related-entry-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #10243d;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.single-post .related-entry-card-snippet,
body.single-post .related-entry-card-meta {
  display: none;
}

body.single-post .iriya-related-archive-link {
  margin: 28px 0 0;
  text-align: center;
}

body.single-post .iriya-related-archive-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #70518f;
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
}

body.single-post .iriya-related-archive-link a::before {
  content: "«";
  margin-right: 10px;
  font-size: 1rem;
  line-height: 1;
}

body.single-post .iriya-related-archive-link a:hover {
  color: #4f3b73;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.iriya-single-sidebar {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  background-color: transparent;
  background: transparent;
}

body.single-post #sidebar.iriya-single-sidebar,
body.single-post #sidebar.iriya-single-sidebar.nwa,
body.single-post .content #sidebar.iriya-single-sidebar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background-color: transparent;
  background-image: none;
  background: transparent;
  box-shadow: none;
}

.iriya-single-side-card,
.iriya-single-side-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--iriya-single-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--iriya-single-shadow);
}

.iriya-single-side-card {
  padding: 20px 18px;
}

.iriya-single-side-card h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: #60477e;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.16rem;
  line-height: 1.5;
  text-align: center;
  background: none;
}

.iriya-single-author {
  text-align: center;
}

.iriya-single-author__avatar {
  width: 112px;
  height: 112px;
  margin: 6px auto 14px;
  border: 1px solid rgba(139, 107, 184, 0.2);
}

.iriya-single-author h3 {
  margin: 0 0 10px;
  color: #5b4578;
  font-size: 1rem;
}

.iriya-single-author p {
  margin: 0 0 14px;
  color: #70637b;
  font-size: 0.86rem;
  line-height: 1.8;
  text-align: left;
}

.iriya-single-category-list,
.iriya-single-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iriya-single-category-list li + li,
.iriya-single-ranking li + li {
  border-top: 1px solid rgba(122, 95, 157, 0.12);
}

.iriya-single-category-list a {
  display: grid;
  grid-template-columns: 28px 1fr 12px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: #5c4b74;
  text-decoration: none;
}

.iriya-single-category-list a::after {
  content: ">";
  color: #9c83b6;
}

.iriya-single-category-list svg {
  width: 23px;
  height: 23px;
  fill: #b77ab5;
}

.iriya-single-ranking {
  counter-reset: iriya-side-rank;
}

.iriya-single-ranking a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  color: #51405f;
  text-decoration: none;
}

.iriya-single-ranking span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, #d8b055, #a77ac0);
}

.iriya-single-ranking strong {
  font-size: 0.9rem;
  line-height: 1.65;
}

.iriya-single-side-card__more {
  width: 100%;
  margin-top: 10px;
  font-size: 0.86rem;
}

.iriya-single-side-banner {
  display: block;
  line-height: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.iriya-single-side-banner:hover {
  box-shadow: 0 22px 48px rgba(82, 58, 118, 0.16);
  transform: translateY(-2px);
}

.iriya-single-side-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.iriya-single-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.iriya-single-tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(122, 95, 157, 0.12);
  border-radius: 999px;
  color: #8c6aa8;
  font-size: 0.82rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1023px) {
  body.single-post #content-in {
    grid-template-columns: 1fr;
  }

  body.single-post .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body.single-post #content {
    padding-top: 0;
  }

  body.single-post #content-in {
    width: min(100% - 22px, 1180px);
  }

  body.single-post .article {
    padding: 24px 14px 34px;
  }

  body.single-post .eye-catch-wrap {
    margin-right: 0;
    margin-left: 0;
  }

  body.single-post #related-entries {
    margin-top: 34px;
  }

  body.single-post .related-entry-heading {
    margin-bottom: 16px;
    font-size: 1.35rem;
  }

  body.single-post .related-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.single-post .related-entry-card-content {
    padding: 16px;
  }

  .iriya-single-sidebar {
    grid-template-columns: 1fr;
  }

  body.single-post .entry-content h2 {
    padding-left: 58px;
  }
}
