/*===================*
        home.php
*===================*/
.category-tabs {
  margin-bottom: 2rem;
  text-align: center;
}

.category-tabs ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 1rem;
}

.category-tabs li {
  display: inline-block;
}

.category-tabs a {
  text-decoration: none;
  color: #333;
  padding-inline: 1rem;
  border: 1px solid #ccc;
  border-radius: 30px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-tabs a:hover,
.category-tabs a:focus {
  background-color: #333;
  color: #fff;
}

.home-inner{
  margin-top: 10rem;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.6rem;
}

.post-card {
  background: #fff;
  border: 1px solid #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(219, 219, 219, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(104, 104, 104, 0.15);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.post-category {
  font-size: 0.84rem;
  margin: .4rem 1rem 0;
}

.post-category a {
  color: #9b9b9b;
  text-decoration: none;
  display: inline-block;
  padding-inline: 7px;
  padding-block:3px;
  border: 1px solid #9b9b9b;
  margin-right:3px;
  line-height: 100%;
  border-radius: 14px;
}

.post-category a:hover {
  background-color: #333;
  color: #FFF;
}

.post-title {
  font-size: 1rem;
  margin-inline: 1rem;
  padding-bottom:0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

/*===================*
       archive.php
/*===================*/
.archive-title {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  text-align: center;
}

.archive-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

/*===================*
       single.php
/*===================*/
.l-single .article__contents {
  width: min(900px, 100%);
  margin-inline: auto;
}

/* 直接指定できるもの */
.l-single .time {
  color: #333;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 20px;
}

.l-single .title {
  color: #333;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 30px;
}

.l-single .icatch {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.l-single img {
  width: 100%;
  height: 100%;
}

.l-single h2 {
  color: #333;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  padding: 12px 1rem;
  background: rgba(100, 100, 100, 0.07);
  margin-top:40px;
}

.l-single h3 {
  color: #333333;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px;
  padding-block: 7px;
  padding-left: 24px;
  position: relative;
  margin-top:40px;
}

.l-single h3::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #333333;
}

.l-single h4 {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  background: #333333;
  padding: 4px 10px;
  margin-top:40px;
}

.l-single p {
  color: #333333;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.l-single a {
  color: #333;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

@media (any-hover: hover) {
  .l-single a:hover {
    opacity: 0.7;
  }
}

.l-single .wp-block-image {
  /* WordPressだと.wp-block-image になります。 */
  width: 100%;
  height: auto;
}

.l-single ul, .l-single ol {
  padding-left: 40px;
}

.l-single li {
  color: #333;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
}

.l-single table {
  display: block;
  width: 100%;
  overflow-x: scroll;
}

.l-single table tbody {
  display: block;
  margin-inline: auto;
  max-width: 800px;
}

.l-single table tr {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #CCC;
}

.l-single table tr:last-of-type {
  border-bottom: 1px solid #CCC;
}

.l-single table th {
  flex: 1;
  padding-block: 14px;
  background: rgba(5, 0, 249, 0.07);
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
}

.l-single table td {
  flex: 1;
  align-self: center;
  padding-block: 16px;
  color: #333;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
