.p-blog-page {
  background: #fff;
}
.p-blog-page .l-container {
  max-width: 1240px;
}

.p-blog-hero {
  --sub-hero-image: url("../images/blog-hero-figma.jpg");
}

.p-blog-content {
  padding: 99px 0 118px;
}
.p-blog-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 827px) minmax(240px, 287px);
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
}
.p-blog-feature h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 94px;
  margin: 0 0 44px;
  border-radius: 10px;
  background: #2d6e8f;
  color: #fff;
  font-size: 36px;
  line-height: 1.45;
  text-align: center;
  padding: 0 20px;
}
.p-blog-rank-list {
  display: grid;
  gap: 41px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-blog-rank-card a {
  display: grid;
  grid-template-columns: minmax(260px, 388px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  color: #000;
}
.p-blog-rank-card figure {
  position: relative;
  width: 100%;
  aspect-ratio: 388 / 258;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}
.p-blog-rank-card img,
.p-blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-blog-rank-card figure span {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 57px;
  border-bottom-right-radius: 28.5px;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
}
.p-blog-rank-list li:nth-child(1) figure span {
  background: linear-gradient(180deg, #f9f1e0 0%, #eeddbb 9.13%, #d8c094 24.04%, #b39156 100%);
}
.p-blog-rank-list li:nth-child(2) figure span {
  background: linear-gradient(180deg, #e3e3e3 0%, #dedede 9.13%, #d1d1d1 24.04%, #8a8a8a 100%);
}
.p-blog-rank-list li:nth-child(3) figure span {
  background: linear-gradient(180deg, #83541e 0%, #8b571d 9.13%, #a37011 24.04%, #6c4110 100%);
}
.p-blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 27px 0 15px;
  font-size: 14px;
  line-height: 1.45;
}
.p-blog-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 103px;
  min-height: 30px;
  border: 1px solid #165e83;
  border-radius: 5px;
  color: #005f7b;
  padding: 2px 12px;
}
.p-blog-rank-card h3,
.p-blog-card h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 18px;
}
.p-blog-rank-card p:last-child,
.p-blog-card p:last-child {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.p-blog-feature--starter {
  margin-top: 74px;
}

.p-blog-starter-list {
  display: grid;
  gap: 41px;
}

.p-blog-sidebar {
  position: sticky;
  top: 120px;
}
.p-blog-search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 287px;
  height: 58px;
  border: 1px solid #2d6e8f;
  border-radius: 100px;
  padding: 0;
  background: #fff;
}
.p-blog-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.p-blog-search input {
  position: absolute;
  left: 25px;
  top: 16px;
  width: calc(100% - 82px);
  height: 26px;
  border: 0;
  outline: 0;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  padding: 0;
  background: transparent;
}
.p-blog-search input::placeholder {
  color: #dedede;
}
.p-blog-search button {
  position: absolute;
  right: 25px;
  top: 14px;
  width: 27px;
  height: 27px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.p-blog-search button img {
  display: block;
  width: 27px;
  height: 27px;
}
.p-blog-category {
  width: 100%;
  max-width: 287px;
  min-height: 246px;
  margin-top: 29px;
  border-radius: 10px;
  background: #f0f5f7;
  padding: 19px 34px;
}
.p-blog-category h2 {
  color: #165e83;
  font-size: 24px;
  line-height: 1.45;
  text-align: center;
  margin: 0 0 22px;
}
.p-blog-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-blog-category li {
  border-top: 1px solid #dedede;
}
.p-blog-category li:last-child {
  border-bottom: 1px solid #dedede;
}
.p-blog-category a {
  display: block;
  padding: 14px 15px;
  color: #000;
  font-size: 16px;
}

.p-blog-all {
  margin-top: 127px;
}
.p-blog-all header {
  text-align: center;
  margin-bottom: 58px;
}
.p-blog-all header p {
  color: #165e83;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
}
.p-blog-all h2 {
  font-size: 42px;
  line-height: 1.35;
  margin: 0;
}
.p-blog-all__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 18px;
}
.p-blog-card a {
  display: block;
  color: #000;
}
.p-blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 388 / 258;
  object-fit: cover;
}
.p-blog-card .p-blog-meta {
  margin-top: 15px;
}

.p-blog-pagination {
  grid-column: 1 / -1;
  margin-top: 56px;
}

.p-blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.p-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  border: 1px solid #165e83;
  border-radius: 10px;
  color: #165e83;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  padding: 0 14px;
}

.p-blog-pagination .page-numbers.current {
  background: #165e83;
  color: #fff;
}

.p-blog-contact {
  position: relative;
  min-height: 482px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.p-blog-contact__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/blog-contact-bg.png") center / cover no-repeat;
}
.p-blog-contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}
.p-blog-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 262px;
  height: 77px;
  border-radius: 5px;
  background: #fff;
  color: #005f7b;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
}

@media (max-width: 1023.98px) {
  .p-blog-content__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .p-blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 287px));
    gap: 24px;
    justify-content: center;
  }
  .p-blog-category {
    margin-top: 0;
  }
  .p-blog-all__grid {
    grid-template-columns: repeat(2, minmax(0, 388px));
    justify-content: center;
  }
}

@media (max-width: 899.98px) {
  .p-blog-rank-card a {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .p-blog-hero {
    --sub-hero-sp-height: 390px;
    --sub-hero-sp-image-right: -260px;
    --sub-hero-sp-panel-left: -250px;
  }
  .p-blog-all h2 {
    font-size: 30px;
  }
  .p-blog-content {
    padding: 48px 0 64px;
  }
  .p-blog-feature h2 {
    min-height: 72px;
    height: auto;
    font-size: 26px;
    margin-bottom: 32px;
    padding: 12px 18px;
  }
  .p-blog-rank-card a {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .p-blog-rank-card figure,
  .p-blog-card img {
    width: 100%;
    aspect-ratio: 388 / 258;
  }
  .p-blog-rank-list {
    gap: 36px;
  }
  .p-blog-meta {
    margin-top: 0;
  }
  .p-blog-sidebar {
    grid-template-columns: 1fr;
  }
  .p-blog-search,
  .p-blog-category {
    max-width: none;
    width: 100%;
  }
  .p-blog-all {
    margin-top: 72px;
  }
  .p-blog-all__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .p-blog-contact {
    min-height: 360px;
  }
  .p-blog-contact a {
    width: 220px;
    height: 64px;
  }
}
