@charset "UTF-8";

/* =============================================
アーカイブページ
============================================= */
.archive {
  padding-top: 60px;
}

.archive__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6em;
}

.archive__list {
  width: 90vw;
  max-width: 880px;
  margin: 30px auto;
}

.archive__item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--color-white);
  padding: 20px;
}

.archive__item:not(:last-of-type) {
  border-bottom: dashed 1px var(--color-gray);
}

.archive__date {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 12px;
  border: 1px solid;
  padding: 4px 10px;
  font-weight: 700;
  width: fit-content;
}

.archive__link {
  color: var(--color-navy);
  text-decoration: underline;
}

@media (hover: hover) {
  .archive__link:hover {
    text-decoration: none;
  }
}

.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 60px;
}

.wp-pagenavi .current {
  background: var(--color-navy);
  color: var(--color-white);
}

.wp-pagenavi .current,
.wp-pagenavi .larger,
.wp-pagenavi .smaller,
.nextpostslink,
.previouspostslink,
.wp-pagenavi .first,
.wp-pagenavi .last {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  text-align: center;
  display: block;
  font-weight: 700;
  margin: 0 5px;
  color: var(--color-black);
  background: var(--color-white);
  border-radius: 999em;
}

.wp-pagenavi .current {
  color: var(--color-white);
  background: var(--color-navy);
}

@media (max-width: 660px) {
  .archive__item {
    flex-direction: column;
    align-items: baseline;
    gap: 10px;
  }
}

/* カード型 */
.archive--card .archive__list {
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.archive--card .archive__item {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 0;
}

.archive--card .archive__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.archive--card .archive__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.archive--card .archive__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive--card .archive__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive--card .archive__heading {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.2em;
}

.archive--card .archive__link {
  text-decoration: none;
}

/* =============================================
詳細ページ
============================================= */

/* レイアウト */
.post {
  padding-top: 60px;
  word-break: break-word;
}

.post__inner {
  width: 90vw;
  max-width: 1020px;
  margin: 20px auto 60px;
  padding: 40px 100px;
  background: var(--color-white);
}

.post__title {
  font-size: 41px;
  font-weight: 700;
}

.post__meta {
  font-size: 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post__category {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4px 8px;
  font-weight: 700;
  display: flex;
  width: fit-content;
  justify-content: center;
  align-items: center;
}

.post__time {
  font-family: roboto;
  position: relative;
  padding-left: 20px;
  color: #8b8b8b;
}

.post__time::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  position: absolute;
  left: 0;
  background-repeat: no-repeat;
  background-size: 16px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(0,0,0,0.3)'%3E%3Cpath d='M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM13 12V7H11V14H17V12H13Z'%3E%3C/path%3E%3C/svg%3E");
}

.post__content {
  border-top: dashed 1px #cccccc;
  padding-top: 20px;
  margin-top: 20px;
}

.post__thumbnail {
  margin-bottom: 1.6em;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .post__inner {
    padding: 20px;
    margin: 20px auto 20px;
  }
  .post__title {
    font-size: 25px;
  }
}

/* 目次 */
#ez-toc-container {
  padding: 30px;
  background-color: var(--color-light-blue);
  border-left: solid 2px var(--color-navy);
}

.ez-toc-title.ez-toc-title {
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1;
}

.ez-toc-list {
  padding-left: 1em;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  list-style: decimal;
  text-align: left;
  margin-left: 3px;
  font-size: 16px;
  padding-right: 0;
}

.ez-toc-list ul {
  margin-top: 0;
}

.ez-toc-list li {
  padding: 10px 0 0;
  margin: 0;
  line-height: 1.4 !important;
}

.ez-toc-list li::marker,
.ez-toc-list li::before {
  display: none;
}

.ez-toc-list li a {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.ez-toc-list li ul {
  margin: 5px;
  padding: 0 0 0 15px;
}

@media screen and (max-width: 768px) {
  #ez-toc-container {
    padding: 20px;
  }
  .ez-toc-list li {
    padding: 7px 0 0;
  }
  .ez-toc-list li ul {
    margin: 0px;
    padding: 0 0 0 0px;
  }
}

/* パーツ */
.wp-block-heading.wp-block-heading {
  font-weight: 700;
  margin-top: 4em;
  margin-bottom: 1.6em;
}

h2.wp-block-heading.wp-block-heading {
  font-size: 25px;
  margin: 80px 0 40px;
  line-height: 1.4;
  background-color: var(--color-light-blue);
  border-top: solid 1px var(--color-navy);
  border-bottom: solid 1px var(--color-navy);
  padding: 0.8em 1em;
  color: var(--color-navy);
}

h3.wp-block-heading.wp-block-heading {
  font-size: 22px;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-navy);
  margin: 60px 0 40px;
  line-height: 1.5;
  padding-bottom: 0.4em;
}

h4.wp-block-heading.wp-block-heading {
  font-size: 20px;
  margin: 40px 0 20px;
  line-height: 1.4;
}

h5.wp-block-heading.wp-block-heading {
  font-size: 18px;
  margin: 40px 0 20px;
}

.post__inner p {
  line-height: 2;
  margin-bottom: 1.6em;
}

.post__inner strong {
  background: linear-gradient(transparent 66%, #ffc34461 66%);
  padding: 0px 2px;
  font-weight: 700;
}

.post__inner a {
  color: var(--color-navy);
  text-decoration: underline;
}

@media (hover: hover) {
  .post__inner a:hover {
    text-decoration: none;
  }
}

.wp-block-image,
.wp-block-list,
.wp-block-table,
.wp-block-embed,
.wp-block-audio,
.wp-block-flexible-table-block-table,
.quotebox {
  margin: 1.6em 0;
}

.wp-block-list {
  padding: 20px 40px 20px 60px;
  position: relative;
  background: var(--color-light-blue);
  border: solid 1px var(--navy);
}

ol.wp-block-list {
  list-style: decimal;
}

.wp-block-list li {
  position: relative;
}

.wp-block-list li:not(:last-of-type) {
  margin-bottom: 0.6em;
}

ul.wp-block-list li::before {
  position: absolute;
  top: 0.54em;
  left: -18px;
  border-radius: calc(1px / 0);
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--color-gray);
}

.wp-block-list .wp-block-list {
  padding: 0.6em 0 0 1.3em;
  margin: 0;
}

.wp-block-list ul.wp-block-list li::before {
  top: 0.78em;
  border-radius: 0;
  height: 2px;
  width: 10px;
}

.wp-block-table thead,
.wp-block-table td,
.wp-block-table th,
.wp-block-flexible-table-block-table thead,
.wp-block-flexible-table-block-tabl td,
.wp-block-flexible-table-block-table th {
  border: 0;
  vertical-align: middle;
}

.wp-block-table,
.has-fixed-layout.has-fixed-layout {
  table-layout: auto !important;
}

.wp-block-table th,
.wp-block-flexible-table-block-table th {
  background-color: var(--color-navy) !important;
  color: var(--color-white) !important;
  font-weight: 700;
  border: solid 2px var(--color-white) !important;
  padding: 1rem 1.2rem;
  white-space: nowrap;
}

.wp-block-table td,
.wp-block-flexible-table-block-table td {
  background: var(--color-light-blue) !important;
  border: solid 1px var(--color-white) !important;
  padding: 1rem 1.2rem;
}

.wp-block-image {
  text-align: center;
}

.wp-block-image img {
  border: solid 1px var(--color-light-blue);
}

.wp-block-audio audio {
  block-size: revert;
}

.wp-block-embed iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.wp-block-image :where(figcaption),
.wp-block-audio :where(figcaption),
.wp-block-embed :where(figcaption) {
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.wp-block-separator {
  border-top: 1px dashed var(--color-gray);
  margin: 80px 0;
}

.pointbox {
  border: solid 1px var(--color-navy);
  background-color: var(--color-light-blue);
  padding: 1em;
  margin: 1.6em 0;
  line-height: 2;
}

.pointtext {
  text-decoration: underline;
  text-decoration-color: #ffc34461;
  text-underline-offset: -4px;
  text-decoration-thickness: 12px;
  text-align: center;
  line-height: 2;
  font-weight: 700;
  font-size: 25px;
  margin: 1.6em auto;
}

.wp-block-buttons {
  margin: 1.6em auto;
}

.wp-block-button {
  text-align: center;
  width: 100%;
}

.wp-block-button__link {
  cursor: pointer;
  font-weight: 700 !important;
  display: block;
  margin-inline: auto;
  padding: 1em 1.2em;
  width: fit-content;
  background: var(--color-yellow) !important;
  color: var(--color-black-on-yellow) !important;
  filter: drop-shadow(0px 3px 0px rgb(32 33 33 / 0.1));
  text-decoration: none !important;
  border-radius: 0;
}

.accordion {
  margin: 1.6em 0;
}

.accordion__heading {
  display: list-item;
  cursor: pointer;
  background: #f6f6f6;
  border-bottom: solid 2px var(--color-gray);
  padding: 1em;
}

.accordion[open] .accordion__heading {
  background: #ffd007;
  font-weight: 700;
}

.accordion__text {
  background-color: #f6f6f6;
  padding: 1em;
}

/*アコーディオンのアニメーション*/
details::details-content {
  transition: height 0.4s, opacity 0.4s, content-visibility 0.4s allow-discrete;
  height: 0;
  opacity: 0;
  overflow: clip;
  background-color: #f0f2ff;
}

details[open]::details-content {
  opacity: 1;
}

details[open] .icon {
  transform: rotate(180deg);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    /* height:0（数値型） → auto（文字型） へのアニメーションを許可 */
    interpolate-size: allow-keywords;
  }

  details[open]::details-content {
    height: auto;
  }
}

/* height:0 → auto へのアニメーションが未対応のブラウザ向け */
@supports not (interpolate-size: allow-keywords) {
  details[open]::details-content {
    height: 150px;
    overflow-y: scroll;
  }
}

/*END アコーディオンのアニメーション*/

.post-textarea {
  width: 100%;
  background: #f6f6f6;
  padding: 1em;
  min-height: 140px;
}

.image-text-box__item {
  display: flex;
  gap: 50px;
}

.image-text-box__item--reverse {
  flex-direction: row-reverse;
}

.image-text-box__item:not(:last-of-type) {
  margin-bottom: 60px;
}

.image-text-box__image-wrapper,
.image-text-box__text {
  width: calc(50% - 25px);
}

.image-text-box__heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.image-text-box__description {
  margin-bottom: 1em;
}

.quotebox {
  background: #f6f6f6;
  padding: 1em;
  line-height: 1.8;
}

.quotebox__caption {
  margin-top: 10px;
  font-size: 12px;
}

@media screen and (max-width: 768px) {
  h2.wp-block-heading.wp-block-heading {
    font-size: 22px;
    padding: 0.8rem 1rem;
  }

  h3.wp-block-heading.wp-block-heading {
    font-size: 20px;
    margin: 50px 0 30px;
  }

  h4.wp-block-heading.wp-block-heading {
    font-size: 18px;
    margin: 40px 0 20px;
  }

  h5.wp-block-heading.wp-block-heading {
    font-size: 16px;
  }

  .wp-block-list {
    padding: 1em 1em 1em 2em;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 0.4rem 0.6rem;
  }

  .image-text-box__item {
    flex-direction: column;
    gap: 20px !important;
  }

  .image-text-box__item:not(:last-of-type) {
    margin-bottom: 30px;
  }

  .image-text-box__image-wrapper,
  .image-text-box__text {
    width: 100% !important;
  }

  .image-text-box__heading {
    font-size: 18px;
    margin-bottom: 10px;
  }
}

/* 著者ボックス */
.author-box__profile {
  background-color: var(--color-light-blue);
  display: flex;
  padding: 24px;
  margin-bottom: 20px;
}

.author-box__image {
  text-align: center;
  padding-right: 20px;
}

.author-box__image img {
  max-width: 80px;
  border-radius: 100%;
  border: 1px solid var(--color-navy);
  padding: 2px;
}

.author-box__name.author-box__name {
  display: flex;
  align-items: center;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.author-box__label {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 12px;
  border: 1px solid;
  padding: 1px 10px;
}

.author-box__description.author-box__description {
  font-size: 14px;
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .author-box__profile {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
  }

  .author-box__image {
    padding-right: 0;
  }

  .author-box__image img {
    max-width: 80px;
  }

  .author-box__name {
    flex-direction: column;
    align-items: baseline;
    gap: 6px;
  }

  .author-box__description.author-box__description {
    font-size: 12px;
    line-height: 1.8;
  }
}