@charset "UTF-8";

/* ========================================
  一覧カード
======================================== */
.useful-page-title {
  margin-bottom: 1em;
  color: #266630;
  font-size: 3.4rem;
  font-weight: 700;
  text-align: center;
}
.useful-archive ul {
  border-top: 1px solid #ccc;
}
.useful-archive li a {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 15px 10px;
  border-bottom: 1px solid #ccc;
}
.useful-archive li a:hover {
  color: #266630;
}
.useful-archive li .useful-card__thumbnail,
.useful-archive li .useful-card__no-image {
  flex-shrink: 0;
  aspect-ratio: 150 / 113;
  width: 150px;
}
.useful-archive li .useful-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.useful-archive li .date {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}
.useful-archive li .useful-card__title {
  font-size: 2.0rem;
  font-weight: 700;
  line-height: 1.4;
}
.useful-card__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #666;
  font-size: 1.6rem;
  background: #eee;
}
.useful-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.useful-empty {
  padding: 40px 20px;
  font-size: 1.6rem;
  text-align: center;
}

@media (width < 769px) {
  .useful-page-title {
    font-size: 6vw;
  }
  .useful-archive li a {
    gap: 4vw;
    padding: 3vw 1vw;
  }
  .useful-archive li .useful-card__thumbnail,
  .useful-archive li .useful-card__no-image {
    width: 25vw;
    font-size: 3.4vw;
  }
  .useful-archive li .date {
    font-size: 3.4vw;
  }
  .useful-archive li .useful-card__title {
    font-size: 4vw;
  }
  .useful-empty {
    padding: 8vw 0;
    font-size: 4vw;
  }
}


/* ========================================
  ページネーション
======================================== */
.useful-pagination {
  margin-top: 60px;
}
.useful-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.useful-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 1.6rem;
  border: 1px solid #ccc;
  color: inherit;
  text-decoration: none;
}
.useful-pagination .page-numbers.current {
  border-color: #333;
  background: #333;
  color: #fff;
}

@media (width < 769px) {
  .useful-pagination {
    margin-top: 30px;
  }
  .useful-pagination .page-numbers {
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    font-size: 3.8vw;
  }
}


/* ========================================
  詳細ページ
======================================== */
.useful-single {
  padding: 40px 0;
}
.useful-container--narrow {
  max-width: 900px;
}
.useful-article__header {
  margin-bottom: 40px;
}
.useful-article__date {
  display: block;
  margin-bottom: 1em;
  font-size: 1.5rem;
}
.useful-article__title {
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  line-height: 1.4;
  word-break: break-word;
}
.useful-article__thumbnail {
  margin-bottom: 40px;
}
.useful-article__thumbnail img {
  width: 100%;
}

@media (width < 769px) {
  .useful-article__header {
    margin-bottom: 28px;
  }
  .useful-article__thumbnail {
    margin-bottom: 30px;
  }
  .useful-article__date {
    font-size: 4vw;
  }
}


/* ========================================
  WYSIWYG入力内容
======================================== */
.useful-entry-content {
  font-size: 1.6rem;
  line-height: 2;
  overflow-wrap: anywhere;
}
.useful-entry-content > *:last-child {
  margin-bottom: 0;
}
.useful-entry-content p {
  margin: 0 0 1.5em;
}

.useful-entry-content h1,
.useful-entry-content h2,
.useful-entry-content h3,
.useful-entry-content h4,
.useful-entry-content h5,
.useful-entry-content h6 {
  margin: 1em 0;
  font-weight: 700;
  line-height: 1.5;
}
.useful-entry-content h1 {
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
}
.useful-entry-content h2 {
  padding-bottom: 12px;
  border-bottom: 2px solid #333;
  font-size: 2.8rem;
}
.useful-entry-content h3 {
  padding-left: 14px;
  border-left: 4px solid #266630;
  font-size: 2.3rem;
}
.useful-entry-content h4 {
  font-size: 2.0rem;
}

.useful-entry-content ul,
.useful-entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}
.useful-entry-content ul {
  list-style-type: disc;
}
.useful-entry-content ol {
  list-style-type: decimal;
}
.useful-entry-content li {
  margin-bottom: 0.4em;
}

.useful-entry-content a {
  color: #266630;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.useful-entry-content figure {
  max-width: 100%;
  margin: 2em auto;
}
.useful-entry-content figcaption {
  margin-top: 8px;
  color: #777;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
}

.useful-entry-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid #999;
  background: #f7f7f7;
}
.useful-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.useful-entry-content table {
  display: block;
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  overflow-x: auto;
}
.useful-entry-content th,
.useful-entry-content td {
  padding: 12px 16px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}
.useful-entry-content th {
  background: #f3f3f3;
  font-weight: 700;
}

.useful-entry-content pre {
  font-size: 1.6rem;
  line-height: 1.7;
}

.useful-entry-content code {
  padding: 20px;
  color: #fff;
  background: #333;
  font-size: 1.4rem;
}

.useful-entry-content iframe,
.useful-entry-content video {
  max-width: 100%;
}

.useful-entry-content .wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

@media (width < 769px) {
  .useful-entry-content {
    font-size: 4vw;
  }
  .useful-entry-content h2 {
    font-size: 6.133vw;
  }
  .useful-entry-content h3 {
    font-size: 5.333vw;
  }
  .useful-entry-content h4 {
    font-size: 4.8vw;
  }
  .useful-entry-content figcaption {
    font-size: 3.467vw;
  }
  .useful-entry-content code {
    font-size: 3.733vw;
  }
  .useful-entry-content table {
    font-size: 3.733vw;
  }
  .useful-entry-content th,
  .useful-entry-content td {
    padding: 10px;
  }
}