@import url("https://fonts.googleapis.com/css?family=Kosugi+Maru&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DotGothic16&family=Rampart+One&family=RocknRoll+One&display=swap");

:root {
  --cocoon-text: #333;
  --cocoon-muted: #777;
  --cocoon-border: #e5e5e5;
  --cocoon-bg: #f7f7f7;
  --cocoon-key: #19448e;
  --cocoon-link: #1967a9;
  --wrap-width: 1256px;
  --main-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cocoon-text);
  background: var(--cocoon-bg);
  font-family: "Fira Code", "Kosugi Maru", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--wrap-width), calc(100% - 32px));
  margin: 0 auto;
}

.header-container {
  background: #fff;
  border-bottom: 1px solid var(--cocoon-border);
}

.header-in {
  padding: 28px 0 24px;
  position: relative;
  text-align: center;
}

.tagline {
  color: var(--cocoon-muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.logo {
  margin: 0;
  line-height: 1.2;
}

.site-name-text {
  color: #333;
  font-family: "Lobster Two", "Noto Sans JP", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
}

.site-name-text-link:hover {
  text-decoration: none;
}

.navi {
  border-top: 1px solid #f0f0f0;
}

.navi-in {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.navi-in a {
  color: #555;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
}

.language-switcher {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  position: absolute;
  right: 0;
  top: 10px;
}

.language-switcher a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #555;
  display: inline-flex;
  line-height: 1;
  padding: 4px;
}

.language-switcher a[aria-current="true"] {
  background: #f1f4f8;
  border-color: var(--cocoon-border);
  color: #333;
  font-weight: 700;
}

.language-flag {
  border: 1px solid #d4d9e0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  display: block;
  height: 14px;
  overflow: hidden;
  position: relative;
  width: 21px;
}

.language-flag-ja {
  background: radial-gradient(circle at center, #bc002d 0 28%, transparent 29%), #fff;
}

.language-flag-en {
  background:
    linear-gradient(#3c3b6e 0 54%, transparent 54%) 0 0 / 42% 54% no-repeat,
    repeating-linear-gradient(
      to bottom,
      #b22234 0,
      #b22234 7.69%,
      #fff 7.69%,
      #fff 15.38%
    );
}

.content {
  padding: 18px 0 34px;
}

.content-in {
  display: flex;
  justify-content: center;
}

.main {
  width: min(var(--main-width), 100%);
}

.breadcrumb {
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  padding: 12px 0 0;
}

.breadcrumb a {
  color: #777;
}

.ad-area {
  margin: 0 0 1.8em;
  text-align: center;
}

.ad-label {
  color: #999;
  font-size: 12px;
  margin-bottom: 4px;
}

.ad-wrap {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  min-height: 92px;
  padding: 12px;
}

.ad-placeholder {
  color: #888;
  font-size: 13px;
  padding: 24px 8px;
}

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

.entry-card-wrap,
.related-entry-card-wrap {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  color: inherit;
  display: block;
  transition: box-shadow .16s ease, transform .16s ease;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  text-decoration: none;
  transform: translateY(-1px);
}

.entry-card {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 180px;
}

.entry-card-thumb {
  background: #e9e9e9;
  margin: 0;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.entry-card-thumb-image {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.entry-card-thumb-image.no-image {
  align-items: center;
  color: #aaa;
  display: flex;
  font-size: 13px;
  justify-content: center;
}

.button-link {
  background: var(--cocoon-key);
  color: #fff;
  display: inline-block;
  line-height: 1;
  padding: 11px 16px;
}

.button-link:hover {
  color: #fff;
}

.site-search {
  display: grid;
  gap: 12px;
}

.search-label {
  font-weight: 700;
}

.search-input {
  border: 1px solid var(--cocoon-border);
  color: var(--cocoon-text);
  font: inherit;
  line-height: 1.4;
  padding: 10px 12px;
  width: 100%;
}

.search-status {
  color: var(--cocoon-muted);
  font-size: 14px;
  margin: 0;
}

.search-results {
  margin-top: 8px;
}

.search-result {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  color: inherit;
  display: block;
  padding: 16px 18px;
}

.search-result:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  text-decoration: none;
}

.search-result-title {
  color: #333;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.search-result-summary {
  color: #666;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 8px;
}

.search-result-date {
  color: #888;
  font-size: 13px;
}

.cat-label,
.entry-category {
  background: rgba(25, 68, 142, .88);
  color: #fff;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 7px;
}

.cat-label {
  left: 0;
  position: absolute;
  top: 0;
}

.entry-card-content {
  padding: 14px 18px 12px;
}

.entry-card-title {
  color: #333;
  font-family: "Fira Code", "Noto Sans JP", serif;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 8px;
}

.entry-card-snippet {
  color: #666;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.entry-card-meta {
  align-items: center;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.entry-card-categorys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.archive-header,
.article {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  margin-bottom: 1.8em;
  padding: 28px;
}

.archive-title,
.entry-title {
  font-family: "Fira Code", "Noto Sans JP", serif;
  line-height: 1.45;
  margin: 0 0 22px;
}

.archive-title {
  font-size: 28px;
}

.entry-title {
  font-size: clamp(28px, 4vw, 40px);
}

.eye-catch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.eye-catch {
  margin: 0;
  position: relative;
  width: 100%;
}

.eye-catch-image {
  display: block;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.date-tags {
  align-items: center;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.entry-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-term {
  background: #f1f4f8;
  border: 1px solid #dfe7f0;
  color: #526071;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
}

.toc {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  margin: 0 auto 1.8em;
  max-width: 640px;
  padding: 12px 18px;
}

.toc-checkbox {
  display: none;
}

.toc-title {
  cursor: pointer;
  display: block;
  font-weight: 700;
  text-align: center;
}

.toc-title::after {
  content: "[閉じる]";
  font-size: .8em;
  font-weight: 400;
  margin-left: .5em;
}

.toc-checkbox:not(:checked) + .toc-title::after {
  content: "[開く]";
}

.toc-content {
  padding-top: .6em;
}

.toc-checkbox:not(:checked) ~ .toc-content {
  display: none;
}

.toc-list {
  margin: 0;
}

.toc-list ol {
  margin-top: .2em;
}

.translation-notice {
  background: #fff8e5;
  border: 1px solid #ead8a7;
  color: #67552a;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1.8em;
  padding: 12px 14px;
}

.translation-notice strong {
  display: block;
  margin-bottom: 2px;
}

.entry-content > *,
.article p,
.article dl,
.article ul,
.article ol,
.article blockquote,
.article pre,
.article table,
.article .wp-block-image,
.article .wp-block-gallery,
.article .wp-block-media-text,
.article .speech-wrap,
.article .blogcard-wrap,
.article .wp-block-embed,
.article .wp-block-table {
  margin-bottom: 1.8em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: "Fira Code", "Noto Sans JP", serif;
  line-height: 1.45;
  margin: 2.2em 0 1.2em;
}

.entry-content h2 {
  border-left: 6px solid var(--cocoon-key);
  border-bottom: 1px solid var(--cocoon-border);
  font-size: 1.55em;
  padding: .25em .6em;
}

.entry-content h3 {
  border-bottom: 3px solid #e6edf7;
  font-size: 1.28em;
  padding-bottom: .25em;
}

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

.entry-content figure {
  margin-left: 0;
  margin-right: 0;
}

.entry-content figcaption,
.wp-element-caption {
  color: #777;
  font-size: 13px;
  text-align: center;
}

.wp-block-gallery .blocks-gallery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  list-style: none;
  padding: 0;
}

.blocks-gallery-item {
  margin: 0;
}

.blocks-gallery-item figure {
  height: 100%;
  margin: 0;
}

.blocks-gallery-item img,
.wp-block-jetpack-slideshow img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wp-block-jetpack-slideshow_container {
  overflow: hidden;
}

.wp-block-jetpack-slideshow_swiper-wrapper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-jetpack-slideshow_button-prev,
.wp-block-jetpack-slideshow_button-next,
.wp-block-jetpack-slideshow_button-pause,
.wp-block-jetpack-slideshow_pagination {
  display: none;
}

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

.wp-block-media-text {
  align-items: start;
  display: grid;
  gap: 1.2em;
  grid-template-columns: minmax(160px, 35%) 1fr;
}

.wp-block-media-text__media {
  margin: 0;
}

.wp-block-media-text__content > :last-child {
  margin-bottom: 0;
}

.entry-content table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--cocoon-border);
  padding: 8px 10px;
}

.entry-content pre {
  background: #1f2933;
  color: #edf2f7;
  font-family: "Fira Code", "DotGothic16", monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  padding: 16px;
  white-space: pre;
}

.entry-content code {
  font-family: "Fira Code", "DotGothic16", monospace;
}

.entry-content blockquote {
  background: #f8fbff;
  border-left: 5px solid #dfe7f0;
  color: #4b5563;
  margin-left: 0;
  margin-right: 0;
  padding: 16px 18px;
}

.entry-content blockquote cite {
  color: #777;
  display: block;
  font-size: 13px;
  margin-top: 10px;
}

.entry-content :not(pre) > code {
  background: #f0f3f6;
  border-radius: 3px;
  padding: .1em .35em;
}

.bold-red {
  color: #d93025;
  font-weight: 700;
}

.speech-wrap {
  display: grid;
  gap: 12px;
  grid-template-columns: 82px 1fr;
}

.speech-person {
  text-align: center;
}

.speech-icon {
  margin: 0 auto 4px;
}

.speech-icon-image {
  border: 2px solid #ddd;
  border-radius: 50%;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.speech-name {
  color: #777;
  font-size: 12px;
}

.speech-balloon {
  background: #fff;
  border: 2px solid #dedede;
  border-radius: 8px;
  font-family: "RocknRoll One", sans-serif;
  padding: 14px 16px;
  position: relative;
}

.speech-balloon p:last-child {
  margin-bottom: 0;
}

.blogcard-wrap {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  color: inherit;
  display: block;
  padding: 12px;
}

.blogcard {
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
}

.blogcard-thumbnail {
  align-items: center;
  background: #f3f3f3;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 72px;
}

.blogcard-title {
  font-family: "Rampart One", sans-serif;
  font-size: 18px;
}

.blogcard-snippet,
.blogcard-domain {
  color: #777;
  font-size: 13px;
}

.article-footer {
  border-top: 1px solid var(--cocoon-border);
  margin-top: 28px;
  padding-top: 18px;
}

.sns-follow {
  background: #f8fbff;
  border: 1px solid #dfe7f0;
  padding: 16px;
  text-align: center;
}

.sns-button {
  background: var(--cocoon-key);
  color: #fff;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  margin-top: 8px;
  padding: 9px 12px;
}

.under-entry-content {
  margin-bottom: 1.8em;
}

.related-entries {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  margin-bottom: 1.8em;
  padding: 20px;
}

.related-entry-heading {
  font-size: 20px;
  margin: 0 0 14px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-list .entry-card {
  grid-template-columns: 160px 1fr;
  min-height: 96px;
}

.related-list .entry-card-thumb {
  min-height: 96px;
}

.related-list .entry-card-title {
  font-size: 15px;
}

.related-list .entry-card-snippet {
  display: none;
}

.pager-post-navi {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.8em;
}

.pager-post-navi a {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  color: #333;
  display: block;
  padding: 14px;
}

.pager-post-navi span {
  color: #777;
  display: block;
  font-size: 12px;
}

.pager-post-navi strong {
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 24px 0;
}

.page-numbers {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  color: #333;
  min-width: 38px;
  padding: 6px 10px;
  text-align: center;
}

.page-numbers.current {
  background: var(--cocoon-key);
  color: #fff;
}

.term-cloud {
  background: #fff;
  border: 1px solid var(--cocoon-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px;
}

.tag-cloud-link {
  background: #f1f4f8;
  color: #333;
  padding: 6px 10px;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--cocoon-border);
  color: #777;
  padding: 28px 0;
  text-align: center;
}

.footer .site-name-text {
  font-size: 28px;
}

.navi-footer {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 10px 0;
}

.copyright {
  font-size: 12px;
  margin: 0;
}

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

  .wrap {
    width: min(100% - 20px, var(--wrap-width));
  }

  .content {
    padding-top: 10px;
  }

  .article,
  .archive-header,
  .related-entries {
    padding: 18px;
  }

  .entry-card,
  .related-list .entry-card {
    grid-template-columns: 120px 1fr;
    min-height: 108px;
  }

  .entry-card-thumb,
  .related-list .entry-card-thumb {
    min-height: 108px;
  }

  .entry-card-content {
    padding: 10px 12px;
  }

  .entry-card-title {
    font-size: 16px;
  }

  .entry-card-snippet {
    display: none;
  }

  .language-switcher {
    right: 0;
    top: 6px;
  }

  .pager-post-navi {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .navi-in {
    overflow-x: auto;
    justify-content: flex-start;
  }

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

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

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

  .speech-wrap {
    grid-template-columns: 1fr;
  }

  .wp-block-media-text {
    grid-template-columns: 1fr;
  }
}
