/* =========================
   Blog Header
========================= */

.blog-header {
  position: relative;
  background-image: url("../images/blog-header-bg.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center bottom, left top;
  background-size: cover;
  padding-bottom: 20px;
}

.header-blog__inner {
  max-width: 1100px;
  margin-top: 0;
  padding: 30px;
  padding-bottom: 100px;
}
.blog-header__logo {
  padding-top: 70px;
  text-align: center;
}
.blog-header__logo img {
  max-width: 333px;
}
.blog-header .header__nav-item a {
  color: #000;
}
.blog-header .header__nav-item--cta a {
  background: #ff7bac;
  color: #fff;
  padding: 0.7rem 3rem;
}

@media (max-width: 768px) {
  .blog-header {
    padding-bottom: 0;
    background-size: cover;
  }
  .blog-header__logo {
    padding-top: 50px;
  }
  .blog-header__logo img {
    max-width: 225px;
  }
  .header-blog__inner {
    padding: 55px;
    padding-bottom: 0px;
  }
}

/* ========== Blog Post Detail (flex) ========== */
.post-detail {
  padding-top: 120px;
  padding-bottom: 150px;
}

.post-detail__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: content-box;
}

.post-detail__title {
  position: relative;
  font-size: var(--font-xl3);
  font-weight: bold;
  color: var(--red);
  text-align: center;
  margin-bottom: 120px;
}
.post-detail__dot img {
  position: absolute;
  max-width: 200px;
  top: -60%;
  left: 65%;
  transform: translateX(-50%);
  z-index: -1;
}

.post-detail__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* 左カラム（本文） */
.post-detail__main {
  flex: 1 1 auto;
}

.post-detail__item {
  margin-bottom: 60px;
}

.post-detail__date {
  font-size: var(--font-sm);
  letter-spacing: 0.01em;
}
.post-detail__ttl {
  font-size: var(--font-sm);
  font-weight: normal;
  letter-spacing: 0.01em;
  margin-top: 20px;
}

.post-detail__text-box {
  height: 300px;
  border: 1px solid #444;
  background: #fafafa;
  margin-bottom: 150px;
  padding: 1rem;
}
.post-detail__btn {
  text-align: right;
}

/* 一覧へボタン */
.post-detail__btn a {
  min-width: 500px;
  display: inline-block;
  text-align: center;
  background: var(--lightgreen);
  color: var(--white);
  padding: 2rem;
  font-weight: normal;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.post-detail__btn a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 右カラム（サイド） */
.post-detail__side {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 180px;
}
.post-detail__side-title {
  font-size: var(--font-md);
  font-weight: normal;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}
.post-detail__side-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
}
.post-detail__side-title--blue::after {
  background: var(--blue);
}
.post-detail__side-title--green::after {
  background: var(--lightgreen);
}
.post-detail__side-title--orange::after {
  background: var(--orange);
}

.post-detail__side-list li {
  padding: 1rem;
  padding-left: 2.5em;
}

/* = Responsive = */
@media (max-width: 992px) {
  .post-detail__inner {
    gap: 28px;
  }
  .post-detail__side {
    flex-basis: 240px;
  }
  .post-detail__dot {
    height: 100px;
  }
  .blog-header .header__nav-item--cta a {
    padding: 0.7rem 2rem;
  }
}
@media only screen and (max-width: 899px) {
  .post-detail__inner {
    gap: 90px;
  }
  .post-detail__inner {
    flex-direction: column;
  }
  .post-detail__side {
    flex-basis: auto;
    gap: 90px;
    width: 100%;
  }
  .post-detail__main {
    width: 100%;
  }
  .post-detail__item {
    margin-bottom: 40px;
  }
  .post-detail__text-box {
    margin-bottom: 60px;
  }
  .post-detail__btn {
    text-align: center;
  }
  .post-detail__btn a {
    min-width: 400px;
    padding: 1rem;
  }
  .post-detail__side-title {
    max-width: 95%;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .post-detail__dot img {
    max-width: 120px;
  }
  .post-detail__title {
    margin-bottom: 60px;
  }
  .post-detail__btn a {
	font-size: 16px;
    min-width: unset;
    width: 70%;
  }
}
@media only screen and (max-width: 499px) {
  .post-detail__dot img {
    max-width: 80px;
    top: -30%;
    left: 70%;
  }
  .post-detail__label {
    min-width: 90px;
  }
  .post-detail {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .post-detail__ttl {
    font-size: 20px;
  }
  .post-detail__text-box p {
     font-size: 16px;
   }
  .post-detail__side-list li {
     font-size: 15px;
	 font-weight: 500;
  }
}

/* ===== Blog Archive (home.php) ===== */

.blog-archive__container {
  margin-top: 100px;
  margin-bottom: 250px;
}
.blog-archive__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: content-box;
}
.blog-archive__title {
  font-size: var(--font-l);
  font-weight: bold;
  color: var(--red);
  text-align: center;
  margin-bottom: 60px;
}
.blog-archive__item:first-child {
  border-top: 1px solid #c7c7c7;
}
.blog-archive__item:last-child {
  border-bottom: 1px solid #c7c7c7;
}

.blog-archive__item + .blog-archive__item {
  border-top: 1px solid #c7c7c7;
}

.blog-archive__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2rem 0;
  color: inherit;
}

.blog-archive__badge {
  min-width: 23%;
  font-size: var(--font-sm);
  padding: 0.5rem;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
}

.blog-archive__date {
  flex: 0 0 auto;
  min-width: 7.5rem;
  font-size: var(--font-sm);
  color: #666;
}

.blog-archive__post-title {
  flex: 1 1 auto;
  font-size: var(--font-md);
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.blog-archive__pagination {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-archive__pagination .page-numbers {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #ddd;
}
.blog-archive__pagination .page-numbers.current {
  background: #ff7bac;
  color: var(--white);
  border-color: #ff7bac;
}

@media (max-width: 767px) {
  .blog-archive__container {
    margin-top: 70px;
    margin-bottom: 120px;
  }
  .blog-archive__link {
    flex-wrap: wrap;
    gap: 8px;
    padding: 1.5rem 0;
  }
  .blog-archive__badge {
    order: 1;
    padding: 0.3rem 0.5rem;
  }
  .blog-archive__date {
    order: 2;
    min-width: 0;
  }
  .blog-archive__post-title {
    order: 3;
    width: 100%;
  }
  .blog-archive__title {
    font-size: 22px;
    margin-bottom: 35px;
  }
  .blog-archive__pagination {
    margin-top: 40px;
  }
}
@media only screen and (max-width: 399px) {
  .blog-archive__title {
    font-size: 20px;
  }
}
