/*-----------------------------------------------------
single.php
-----------------------------------------------------*/
.singlePage-hero {
  position: relative;
  height: 45vh;
  overflow: hidden;
}

.singlePage-hero__bg {
  position: absolute;
  inset: 0;
}

.singlePage-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.singlePage-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.l-single {
  width: 70%;
}

.l-2col {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 10rem;
}

.pageBlog {
  margin-top: 5rem;
}

.pageBlog__articleDate {
  font-size: 0.9rem;
}

.pageBlog__articleCategory {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.pageBlog__articleCategory span {
  color: #111;
  font-weight: 600;
}

.pageBlog__articleCategory span :hover {
  text-decoration: underline;
}

.pageBlog__articleTitle {
  margin-top: 3rem;
  font-size: 2cqw;
  font-weight: 800;
}

.pageBlog__articleText {
  margin-top: 3rem;
}

.pageBlog__articleText p {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05rem;
}

@media screen and (max-width: 950px) {
  .l-single {
    width: 60%;
  }

  .l-2col {
    margin-top: 7rem;
    gap: 2rem;
  }
}

@media screen and (max-width: 580px) {
  .l-single {
    width: 100%;
  }

  .l-2col {
    display: block;
  }

  .pageBlog {
    margin-top: 6rem;
  }

  .pageBlog__articleDate {
    font-size: 0.8rem;
  }

  .pageBlog__articleCategory {
    font-size: 0.8rem;
  }

  .pageBlog__articleTitle {
    font-size: 5.5cqw;
  }

  .pageBlog__articleText {
    margin-top: 1rem;
  }

  .pageBlog__articleText p {
    font-size: 0.8rem;
    line-height: 1.75;
  }
}

/*-----------------------------------------------------
category.php
-----------------------------------------------------*/
.l-category {
  width: 75%;
}

.category__title {
  margin-top: 5rem;
  font-weight: 600;
}

.l-category .card__list {
  margin-top: 2rem;
}

@media screen and (max-width: 580px) {
  .l-category {
    width: 100%;
  }
}


/*-------------------------------------------
sidebar.php
-------------------------------------------*/
#sidebar {
  /* margin-top: 3rem; */
  width: 30%;
}

#sidebar .side-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.author {
  text-align: center;
  margin-bottom: 60px;
}

.archive {
  text-align: center;
}

.archive div:nth-of-type(n + 2) {
  margin-top: 3rem;
}

.archive ul {
  border-bottom: solid  1px #777;
}
.archive li {
  font-size: 0.875rem;
  border-top: solid  1px #777;
  padding: 20px;
  text-align: left;
}

.archive div:last-child form {
  position: relative;
}

.archive select.postform {
  padding: 0.5rem 2rem;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
  border: 1px solid #EDF3F7;
  border-radius: 8px;
  background: linear-gradient(0deg, #ddd0c6, #fff); /* 上下の淡いグラデーション */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* 立体感を出す影 */
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  outline: none; /* デフォルトのフォーカス線を消す */
  appearance: none; /* ブラウザ標準の矢印を非表示にする */
  cursor: pointer;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.archive select.postform:hover,
.archive select.postform:focus {
  border-color: #636363;
  box-shadow: 0 3px 30px rgba(213, 123, 5, 0.2);
}

.recent-posts a,
.archive-list a {
  display: block;
  font-weight: 600;
}

.post-date {
  font-size: 0.75rem;
  color: #999;
}

.archive-list {
  border-bottom: solid 1px #777;
}

.archive-list li {
  font-size: 0.875rem;
  border-top: solid 1px #777;
  padding: 20px;
  text-align: left;
}

.archive-year {
  font-weight: bold;
  padding: 15px 20px;
  background: #f5f5f5;
}

.recent-posts li a,
.archive-list li a {
  display: block;
  width: 100%;
  height: 100%;
}

.recent-posts li a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.archive li,
.recent-posts li {
  cursor: pointer;
  transition: background 0.2s;
}

.archive li:hover,
.recent-posts li:hover {
  background: #f5f5f5;
}

@media screen and (max-width: 950px) {
  #sidebar {
    width: 40%;
  }
}

@media screen and (max-width: 580px) {
  #sidebar {
    margin: 5rem auto 0;
    width: 85%;
  }
}

/*-------------------------------------------
記事本文スタイル
-------------------------------------------*/
h3.wp-block-heading {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

h4.wp-block-heading {
  margin-top: 1.5rem;
  margin-bottom: -1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* 単体画像 */
.wp-block-image {
  width: 90%;
  /* margin: 0 auto; */
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カラム全体 */
.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wp-block-column {
  flex-basis: auto;
}

/* カラム内の画像は100%に戻す */
.wp-block-column .wp-block-image {
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.wp-block-column .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pageBlog__articleText p {
  font-size: 0.9rem;
}

.pageBlog__articleText p a {
  color: #070794;
  text-decoration: underline;
  font-weight: 600;
}

hr.wp-block-separator {
  margin: 4rem 0;
}

ul.wp-block-list {
  margin-top: 1rem;
}

ul.wp-block-list li {
  margin-top: 1rem;
  font-weight: 500;
}

ul.wp-block-list li:before {
  content: '● ';
}

@media screen and (max-width: 950px) {
  .wp-block-image {
    width: 100%;
  }
}

@media screen and (max-width: 580px) {
  .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .wp-block-image {
    width: 95%;
    margin: 0 auto;
  }
}

/*-------------------------------------------
文末cta
-------------------------------------------*/
.blog-cta {
  margin-top: 7.5rem;
  padding: 40px 32px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.blog-cta__label {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #010189;
  font-weight: 700;
}

.blog-cta__title {
  margin: 0 0 16px;
  font-size: 2.4rem;
  line-height: 1.5;
  color: #222;
}

.blog-cta__text {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.5rem;
  line-height: 2;
  color: #555;
}

.blog-cta__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.blog-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  transition: .3s;
}

.blog-cta__button--primary {
  background: #222;
  color: #fff;
  border: 1px solid #222;
}

.blog-cta__button--primary:hover {
  background: #010189;
  border-color: #010189;
  color: #fff;
}

.blog-cta__button--ghost {
  background: #fff;
  color: #222;
  border: 1px solid #cfcfcf;
}

.blog-cta__button--ghost:hover {
  border-color: #010189;
  color: #010189;
}

@media screen and (max-width: 767px) {
  .blog-cta {
    margin-top: 40px;
    padding: 32px 20px;
    border-radius: 12px;
  }

  .blog-cta__title {
    font-size: 2rem;
  }

  .blog-cta__text {
    font-size: 1.4rem;
    line-height: 1.9;
  }

  .blog-cta__links {
    gap: 12px;
  }

  .blog-cta__button {
    width: 100%;
    min-width: auto;
  }
}


