@charset "UTF-8";
/* CSS Document */
.blog {
  background: url(../../img/header-4.jpg) no-repeat center/cover;
}

.important {
  background: url(../../img/header-3.jpg) no-repeat center/cover;
}

h2 {
  text-align: justify;
  font-size: 2.5rem;
}
@media screen and (max-width: 767px) {
  h2 {
    font-size: 2.25rem;
  }
}

#blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem 3rem;
  margin-bottom: 5rem;
}
@media screen and (max-width: 991px) {
  #blog-list {
    gap: 4rem 2rem;
  }
}
@media screen and (max-width: 767px) {
  #blog-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}
@media screen and (max-width: 575px) {
  #blog-list {
    gap: 2.5rem;
    margin-bottom: 4rem;
  }
}
#blog-list .blog-content .main-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  aspect-ratio: 3/2;
}
#blog-list .blog-content .main-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 170, 231, 0.3);
  opacity: 0;
  transition: 0.3s;
}
#blog-list .blog-content .main-img img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  transition: 0.3s;
}
#blog-list .blog-content .category-time {
  display: inline-block;
  color: #00aae7;
  line-height: 1em;
  text-decoration: underline;
  margin-bottom: 0.75rem;
  transition: 0.3s;
}
#blog-list .blog-content .blog-title {
  font-size: 1.8rem;
  transition: 0.3s;
  line-height: 1em;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* ←2行まで */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (max-width: 575px) {
  #blog-list .blog-content .blog-title {
    font-size: 1.6rem;
  }
}

#blog-list a:hover .main-img::after {
  opacity: 1;
}
#blog-list a:hover .main-img img {
  transform: scale(1.1);
}
#blog-list a:hover .category-time,
#blog-list a:hover .blog-title {
  opacity: 0.7;
}

#important-list ul {
  margin-bottom: 4rem;
}
@media screen and (max-width: 575px) {
  #important-list ul {
    margin-bottom: 3rem;
  }
}
#important-list ul li {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid #c8c8c8;
  transition: 0.3s ease;
}
@media screen and (max-width: 991px) {
  #important-list ul li {
    padding: 2rem;
  }
}
@media screen and (max-width: 767px) {
  #important-list ul li {
    padding: 2rem 1.5rem;
  }
}
#important-list ul li:first-of-type {
  border-top: 1px solid #c8c8c8;
}
#important-list ul li a {
  display: block;
  position: relative;
}
#important-list ul li a::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #00aae7;
  font-size: 1.6rem;
  transition: 0.3s ease;
}
#important-list ul li a .important-content {
  display: flex;
  align-items: start;
  gap: 2rem;
  padding-right: 5rem;
}
@media screen and (max-width: 575px) {
  #important-list ul li a .important-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}
#important-list ul li a .important-content .category-time {
  white-space: nowrap;
  color: #00aae7;
  border-bottom: 1px solid #00aae7;
  line-height: 1em;
}
#important-list ul li a .important-content .important-title {
  flex: 1;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* ←2行まで */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#important-list li:hover {
  background: #ebebeb;
}
#important-list li:hover a::after {
  right: 0;
}

/* =========================
  レイアウト
========================= */
.single-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
@media screen and (max-width: 767px) {
  .single-layout {
    flex-direction: column;
  }
}
.single-layout .single-main {
  flex: 1;
}
@media screen and (max-width: 767px) {
  .single-layout .single-main {
    width: 100%;
  }
}
@media screen and (max-width: 575px) {
  .single-layout .single-main .post-nav .nav-numbers {
    display: none;
  }
}
.single-layout .single-sidebar {
  width: 250px;
}
@media screen and (max-width: 991px) {
  .single-layout .single-sidebar {
    width: 200px;
  }
}
@media screen and (max-width: 767px) {
  .single-layout .single-sidebar {
    width: 100%;
  }
}

/* =========================
  記事エリア
========================= */
.article-ttl {
  font-size: 2.5rem;
  font-weight: 500;
  text-align: justify;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
  position: relative;
}
.article-ttl::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 120px;
  height: 2px;
  background: #00aae7;
}

.meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 1rem;
}
.meta a {
  color: #00aae7;
  text-decoration: underline;
}
.meta a:hover {
  text-decoration: underline;
}

/* 画像 */
.main-img {
  margin-bottom: 20px;
}
.main-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本文 */
.content {
  line-height: 2;
  color: #333;
}
.content p {
  margin-bottom: 20px;
}

/* =========================
  前後ナビ
========================= */
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
@media screen and (max-width: 575px) {
  .post-nav {
    grid-template-columns: 1fr;
    row-gap: 15px;
    text-align: center;
  }
}
.post-nav .nav-prev {
  justify-self: start;
}
@media screen and (max-width: 575px) {
  .post-nav .nav-prev {
    order: 1;
    justify-self: center;
  }
}
.post-nav .nav-numbers {
  justify-self: center;
}
@media screen and (max-width: 575px) {
  .post-nav .nav-numbers {
    order: 2;
  }
}
.post-nav .nav-numbers a,
.post-nav .nav-numbers span {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  margin: 0 4px;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  line-height: 1em;
}
.post-nav .nav-numbers a:hover {
  background: #e5f6fd;
  text-decoration: underline;
  color: #00aae7;
}
.post-nav .nav-numbers .current {
  background: #00aae7;
  color: #fff;
}
.post-nav .nav-next {
  justify-self: end;
}
@media screen and (max-width: 575px) {
  .post-nav .nav-next {
    order: 3;
    justify-self: center;
  }
}
.post-nav .nav-prev a,
.post-nav .nav-next a {
  display: inline-block;
  padding: 0.5rem 3rem;
  border: 1px solid #00aae7;
  border-radius: 30px;
  color: #00aae7;
  text-decoration: none;
  transition: 0.3s;
}
.post-nav .nav-prev a:hover,
.post-nav .nav-next a:hover {
  background: #00aae7;
  color: #fff;
}

/* =========================
  サイドバー
========================= */
.sidebar-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}
.sidebar-inner ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}
.sidebar-inner ul li {
  margin-bottom: 0;
}
.sidebar-inner ul li a {
  color: #00aae7;
  text-decoration: underline;
  font-size: 14px;
}
.sidebar-inner ul li a::before {
  display: inline-block;
  content: "\f105"; /* Font Awesomeの > */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  color: #00aae7;
  text-decoration: none;
}
.sidebar-inner .cat-item a {
  color: #00aae7;
}

/* カレンダー */
#wp-calendar {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
#wp-calendar th {
  background: #e6e6e6;
}
#wp-calendar th,
#wp-calendar td {
  text-align: center;
  padding: 0.5rem;
  border: 1px solid #ddd;
  font-size: 1.2rem;
}
#wp-calendar th a,
#wp-calendar td a {
  color: #00aae7;
  text-decoration: underline;
}
#wp-calendar caption {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 400;
}
#wp-calendar #today {
  background: #00aae7;
  color: #fff;
}
#wp-calendar #today a {
  color: #fff;
}

/* =========================
  日付アーカイブ
========================= */
.category-block {
  display: block;
  padding: 2.5rem;
  border-radius: 20px;
}
.category-block:hover {
  background: #e5f6fd;
}
.category-block:hover .main-img::after {
  opacity: 1;
}
.category-block:hover .main-img img {
  transform: scale(1.1);
}

.archive-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
@media screen and (max-width: 767px) {
  .archive-item {
    flex-direction: column;
  }
}
.archive-item .main-img {
  width: 50%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  aspect-ratio: 3/2;
}
@media screen and (max-width: 767px) {
  .archive-item .main-img {
    width: 60%;
  }
}
@media screen and (max-width: 575px) {
  .archive-item .main-img {
    width: 100%;
  }
}
.archive-item .main-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 170, 231, 0.3);
  opacity: 0;
  transition: 0.3s;
}
.archive-item .main-img img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  transition: 0.3s;
}
.archive-item .excerpt {
  flex: 1;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* ←表示行数（好きに変えてOK） */
  -webkit-box-orient: vertical;
  overflow: hidden;
} /*# sourceMappingURL=blog.css.map */
