:root {
  --primary: rgb(143 187 234);
  --secondary: rgb(240 171 165);
  --paper: rgb(255 255 255);
  --back: rgb(240 235 232);
  --ink: rgb(65 64 62);
  --muted: rgb(105 104 103);
  --line: rgb(221 221 221);
  --soft: rgb(247 247 247);
  --link: rgb(44 116 166);
  --shadow: 0 18px 34px rgb(65 64 62 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  background-color: var(--back);
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0) 93%, rgb(255 255 255) 100%),
    linear-gradient(90deg, rgb(255 255 255 / 0) 93%, rgb(255 255 255) 100%);
  background-size: 15px 15px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  min-height: 300px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgb(255 255 255 / 36%), rgb(255 255 255 / 56%)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26px;
  background-image:
    linear-gradient(135deg, transparent 13px, var(--back) 14px),
    linear-gradient(225deg, transparent 13px, var(--back) 14px);
  background-position: left bottom;
  background-size: 28px 28px;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 18px 54px;
}

.site-logo {
  display: inline-flex;
  justify-content: center;
  max-width: min(420px, 86vw);
}

.site-logo img {
  display: block;
  max-height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgb(255 255 255 / 80%));
}

.tagline {
  display: inline-block;
  margin: 0;
  padding: 2px 16px;
  color: var(--ink);
  font-size: 0.9rem;
  background-image: repeating-linear-gradient(45deg, var(--soft), var(--soft) 3px, rgb(255 255 255 / 78%) 0, rgb(255 255 255 / 78%) 6px);
}

.global-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  padding: 12px 18px 14px;
  background: rgb(255 255 255 / 88%);
  border-bottom: 1px solid rgb(221 221 221 / 70%);
}

.global-nav a {
  color: var(--muted);
  font-family: "Klee One", "Yu Gothic", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  background-image:
    linear-gradient(90deg, rgb(240 171 165 / 30%) 3px, rgb(255 255 255 / 0) 10px),
    linear-gradient(90deg, rgb(240 171 165 / 50%), rgb(240 171 165 / 50%)),
    linear-gradient(270deg, rgb(240 171 165 / 30%) 5px, rgb(255 255 255 / 0) 10px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 22%;
  transition: background-size 0.25s ease;
}

.global-nav a:hover {
  background-size: 100% 22%;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 52px;
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.paper,
.widget {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.paper {
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 48px solid transparent;
  border-top-color: var(--back);
  box-shadow: 0 -7px 6px -9px var(--ink);
  pointer-events: none;
}

.paper::before {
  top: -58px;
  left: -62px;
  transform: rotate(135deg);
}

.paper::after {
  right: -62px;
  bottom: -58px;
  transform: rotate(315deg);
}

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

.list-title,
.archive-title,
.entry-title,
.article h2,
.article h3,
.article h4,
.widget-title,
.related-entry-heading,
.footer-title {
  font-family: "Klee One", "Yu Gothic", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.list-title,
.archive-title {
  display: inline-block;
  margin: 0 0 24px;
  padding: 5px 14px;
  background: rgb(255 255 255 / 85%);
  border-right: 2px dotted rgb(65 64 62 / 15%);
  border-left: 2px dotted rgb(65 64 62 / 15%);
  box-shadow: 0 0 5px rgb(65 64 62 / 20%);
}

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

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  min-height: 154px;
  padding: 14px;
  color: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 10px 0;
  background: rgb(255 255 255 / 70%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background: rgb(240 235 232 / 60%);
  box-shadow: 0 10px 18px -14px var(--ink);
}

.entry-card img {
  width: 220px;
  height: 126px;
  object-fit: cover;
  padding: 6px;
  background-image: repeating-linear-gradient(45deg, var(--soft), var(--soft) 3px, rgb(255 255 255 / 72%) 0, rgb(255 255 255 / 72%) 6px);
}

.entry-card-content {
  display: grid;
  align-content: start;
  gap: 8px;
}

.entry-card-title {
  padding-bottom: 6px;
  color: var(--ink);
  font-family: "Klee One", "Yu Gothic", sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.55;
  border-bottom: 1px dashed var(--line);
}

.entry-card-snippet,
.entry-card-meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.cat-label {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.2;
  background: rgb(143 187 234 / 90%);
  border-right: 2px dotted rgb(65 64 62 / 15%);
  border-left: 2px dotted rgb(65 64 62 / 15%);
  box-shadow: 0 0 5px rgb(65 64 62 / 20%);
  transform: rotate(-5deg);
}

.entry-card .cat-label {
  position: absolute;
  top: 8px;
  left: 7px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumbs > * + *::before {
  content: ">";
  margin-right: 7px;
  color: rgb(105 104 103 / 55%);
}

.article-header {
  display: grid;
  gap: 14px;
}

.article h1.entry-title {
  margin: 0;
  padding: 14px 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.45;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.eye-catch {
  margin: 26px 0;
}

.eye-catch img,
.wp-block-image img {
  display: block;
  margin-inline: auto;
  padding: 8px;
  background-image: repeating-linear-gradient(45deg, var(--soft), var(--soft) 3px, rgb(255 255 255 / 72%) 0, rgb(255 255 255 / 72%) 6px);
}

.entry-content {
  line-height: 1.85;
}

.entry-content > * + * {
  margin-top: 1.35em;
}

.article h2,
.related-entry-heading {
  position: relative;
  margin: 2.8em 0 1.25em;
  padding: 0.7em 1em;
  font-size: 1.45rem;
  line-height: 1.5;
  background: var(--back);
  border: solid 1px #777;
  border-radius: 2em 7em 5em 7em / 10em 3em 1em 1em;
  box-shadow: 0 0 1px 3px var(--back);
}

.article h2::before,
.article h2::after,
.related-entry-heading::before,
.related-entry-heading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: solid 1px #777;
}

.article h2::before,
.related-entry-heading::before {
  transform: rotate(-0.7deg);
  border-radius: 6em 6em 2em 9em / 2em 8em 9em 4em;
}

.article h2::after,
.related-entry-heading::after {
  transform: rotate(0.7deg);
  border-radius: 10em 8em 10em 5em / 5em 10em 6em 10em;
}

.article h3 {
  position: relative;
  margin: 2.5em 0 1.2em;
  padding: 0.5em 1em 0.5em 38px;
  font-size: 1.2rem;
  line-height: 1.55;
  border-bottom: 1px dotted #aaa;
}

.article h3::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 6px;
  width: 24px;
  height: calc(100% + 12px);
  background: rgb(240 171 165 / 38%);
  border-radius: 20px 40px / 60px 20px;
}

.article h4 {
  position: relative;
  margin: 2.1em 0 1em;
  padding-bottom: 0.42em;
  font-size: 1.06rem;
  border-bottom: 2px solid var(--line);
}

.article h4::before,
.article h4::after {
  content: "";
  position: absolute;
  left: 1em;
  width: 0;
  height: 0;
  border-style: solid;
}

.article h4::before {
  bottom: -14px;
  border-width: 14px 12px 0;
  border-color: var(--line) transparent transparent;
}

.article h4::after {
  bottom: -10px;
  border-width: 14px 12px 0;
  border-color: var(--paper) transparent transparent;
}

.marker-under {
  background: linear-gradient(transparent 58%, rgb(255 231 117 / 72%) 58%);
  font-weight: 600;
}

.fz-22px {
  font-size: 22px;
}

.fz-28px {
  font-size: 28px;
}

.fz-32px {
  font-size: 32px;
}

.has-text-align-center,
.aligncenter {
  text-align: center;
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 1.4em 0;
}

.wp-block-button {
  display: inline-flex;
}

.wp-block-button__link,
.entry-content button,
.share-strip a,
.share-strip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72em 1.35em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 5px 5px -2px rgb(65 64 62 / 20%);
  cursor: pointer;
}

.wp-block-button__link:hover,
.entry-content button:hover,
.share-strip a:hover,
.share-strip button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.has-watery-yellow-background-color {
  background-color: rgb(255 232 120);
}

.has-watery-red-background-color,
.has-red-background-color {
  background-color: rgb(240 171 165);
}

.has-watery-blue-background-color,
.has-blue-background-color {
  background-color: rgb(143 187 234);
}

.has-orange-background-color {
  background-color: rgb(245 173 92);
}

.has-black-color {
  color: var(--ink);
}

.blank-box,
.block-box {
  margin: 1.6em 0;
  padding: 1.2em;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 45%);
  box-shadow: 5px 5px 0 rgb(240 235 232 / 85%);
}

.wp-block-columns {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.wp-block-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.72em;
  border: 1px solid var(--line);
  vertical-align: top;
}

tr:nth-of-type(odd) {
  background-color: rgb(240 235 232 / 32%);
}

blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 1.3em 1.4em;
  overflow: hidden;
  background: rgb(240 235 232 / 45%);
  border: 0;
  box-shadow: 0 0 0 5px var(--paper) inset;
}

blockquote::before,
blockquote::after {
  position: absolute;
  color: rgb(143 187 234 / 32%);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  z-index: 0;
}

blockquote::before {
  content: "“";
  top: -10px;
  left: 10px;
}

blockquote::after {
  content: "”";
  right: 10px;
  bottom: -30px;
}

blockquote > * {
  position: relative;
  z-index: 1;
}

blockquote cite {
  display: block;
  margin-top: 1em;
  color: var(--muted);
  font-size: 0.86rem;
}

.rating-star {
  color: rgb(238 174 54);
  font-weight: 600;
}

.rating-star .fa-star::before {
  content: "★";
}

.rating-number {
  margin-left: 0.35em;
  color: var(--ink);
}

.micro-text {
  margin: 1.3em 0 0.35em;
  color: var(--muted);
  font-size: 0.92rem;
}

.toc {
  width: min(100%, 620px);
  margin: 28px auto;
  padding: 16px;
  counter-reset: toc;
  background:
    radial-gradient(circle, transparent 20%, #fafafa 20%, #fafafa 80%, transparent 80%, transparent),
    radial-gradient(circle, transparent 20%, #fafafa 20%, #fafafa 80%, transparent 80%, transparent) 25px 25px,
    linear-gradient(var(--back) 2px, transparent 2px) 0 -1px,
    linear-gradient(90deg, var(--back) 2px, #fafafa 2px) -1px 0;
  background-size: 50px 50px;
}

.toc-title {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  color: var(--paper);
  background: var(--primary);
  border-right: 2px dotted rgb(65 64 62 / 15%);
  border-left: 2px dotted rgb(65 64 62 / 15%);
  box-shadow: 0 0 5px rgb(65 64 62 / 20%);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.toc-list li {
  margin: 4px 0;
}

.toc-level-3 {
  padding-left: 1.4em;
}

.toc-list a {
  display: block;
  padding: 4px 6px;
  border-bottom: 1px solid rgb(143 187 234 / 45%);
}

.toc-list a:hover {
  transform: translateX(4px);
  text-decoration: none;
}

.timeline-box {
  margin: 1.8em 0;
  padding: 1em;
  border: 1px solid var(--line);
}

.timeline-title {
  font-family: "Klee One", "Yu Gothic", sans-serif;
  font-weight: 600;
}

.timeline {
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 0 0 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 104px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
}

.timeline-item-content {
  padding-left: 24px;
  border-left: 3px solid var(--back);
}

.timeline-item-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-item-title {
  font-weight: 600;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 2.6em 0;
  padding: 16px;
  background: var(--back);
  border-radius: 10px;
}

.share-strip span {
  margin-right: auto;
  font-family: "Klee One", "Yu Gothic", sans-serif;
  font-weight: 600;
}

.share-strip a,
.share-strip button {
  min-height: 38px;
  padding: 0.45em 0.9em;
  font-size: 0.82rem;
  background: var(--paper);
}

.related-list {
  margin-top: 2.6em;
  padding-top: 1em;
  border-bottom: 3px dashed var(--back);
}

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

.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 0.86rem;
}

.related-card img {
  width: 96px;
  height: 58px;
  object-fit: cover;
}

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

.widget {
  padding: 34px 18px 18px;
}

.widget::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  width: 92%;
  height: 10px;
  margin: auto;
  border-top: dotted 10px var(--back);
}

.widget-title {
  margin: 0 0 16px;
  padding-bottom: 6px;
  text-align: center;
  font-size: 1.02rem;
  border-bottom: 3px solid var(--paper);
  box-shadow: 0 3px 0 var(--back);
}

.widget p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.author-thumb {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
}

.author-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 6px;
  background-image: repeating-linear-gradient(45deg, var(--soft), var(--soft) 3px, rgb(255 255 255 / 72%) 0, rgb(255 255 255 / 72%) 6px);
  box-shadow: 0 5px 16px rgb(65 64 62 / 12%);
}

.widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.widget-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
}

.widget-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.site-footer {
  padding: 34px 18px 42px;
  text-align: center;
  color: var(--muted);
  background: rgb(255 255 255 / 65%);
  border-top: 1px solid rgb(221 221 221 / 72%);
}

.footer-title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

.site-footer p {
  margin: 0 0 10px;
}

.go-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50% 47% 53% 45%;
  box-shadow: 0 6px 18px rgb(65 64 62 / 18%);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.go-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

input[type="text"] {
  width: min(100%, 260px);
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  font: inherit;
}

@media (max-width: 980px) {
  .site-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 240px;
  }

  .container {
    width: min(100% - 20px, 1180px);
    margin-top: 22px;
  }

  .paper {
    padding: 20px 16px;
  }

  .entry-card {
    grid-template-columns: 1fr;
  }

  .entry-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  .related-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-item::before {
    left: 6px;
    top: 34px;
  }

  .timeline-item-content {
    margin-left: 12px;
  }

  .share-strip span {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .global-nav {
    gap: 4px 18px;
  }

  .site-logo img {
    max-height: 92px;
  }

  .tagline {
    font-size: 0.76rem;
  }

  .article h2 {
    padding: 0.62em 0.9em;
    font-size: 1.18rem;
  }

  .article h3 {
    font-size: 1.06rem;
  }

  .related-card {
    grid-template-columns: 82px 1fr;
  }

  .related-card img {
    width: 82px;
    height: 54px;
  }
}
