/**
 * ブログ一覧・記事詳細・トップページ
 */

body .information_container .information_content .information_title {
  color: #3f2210;
  word-break: break-word;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

body .information_container .information_title-body {
  flex: 1;
  min-width: 0;
}

body .information_container .information_store {
  display: block;
  margin: 0 0 4px;
  font-size: 0.9em;
  color: #9a4b10;
  font-weight: 700;
}

body .information_container .information_title-text {
  display: block;
  line-height: 1.6;
}

@media screen and (max-width: 599px) {
  body .information_container .information_store {
    margin: 0 0 3px;
    font-size: 0.8em;
  }
}

main.blog-main {
  padding-bottom: 60px;
}

.blog-archive-panel,
.blog-single-panel {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* 店舗名 */
.blog-store-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #3f2210;
  margin: -10px 0 24px;
}

body .content_outer .content_background_main .blog-store-label {
  margin: -10px auto 24px;
}

/* 一覧 */
.blog-list {
  width: 90%;
  margin: 0 auto;
}

.blog-list .blog_item {
  padding: 18px 4px;
  border-bottom: 1px dashed rgba(127, 0, 0, 0.55);
}

.blog-list .blog_item:first-child {
  border-top: 1px dashed rgba(127, 0, 0, 0.55);
}

.blog-list .blog_item-date {
  font-size: 0.85rem;
  color: #7a5c42;
  margin: 0 0 8px;
}

.blog-list .blog_item-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
  position: static;
}

.blog-list .blog_item-title a {
  color: #3f2210;
  text-decoration: none;
}

.blog-list .blog_item-title a:hover {
  opacity: 0.75;
}

.blog-list .blog_item-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url(../images/icon-kaji_36x36.png);
  background-size: contain;
  vertical-align: middle;
  margin: 0 6px 2px 0;
}

.blog-list .blog_item-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4a3420;
  text-align: left;
}

.blog-list .blog_item-excerpt p {
  margin: 0;
}

.blog-list .blog_item-more {
  margin: 12px 0 0;
  text-align: left;
}

.blog-list .blog_item-more a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #9a4b10;
  text-decoration: none;
}

.blog-list .blog_item-more a:hover {
  text-decoration: underline;
}

.blog-list .blog_item--empty {
  padding: 28px 8px;
  text-align: center;
  color: #4a3420;
  line-height: 1.8;
}

.blog-list .blog_item--empty small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #7a5c42;
}

/* 記事詳細 */
.blog-single-panel .information_background_main {
  padding-bottom: 24px;
  margin-bottom: -14px;
}

.blog-single-panel .information_background_bottom {
  margin-top: -20px;
}

.blog-single {
  width: 90%;
  margin: 0 auto;
  text-align: left;
}

.blog-single__date {
  font-size: 0.9rem;
  color: #7a5c42;
  margin: 0 0 10px;
}

.blog-single__title {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(127, 0, 0, 0.45);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
  color: #3f2210;
  position: static;
  text-align: left;
}

.blog-single__thumbnail {
  margin: 0 0 24px;
}

.blog-single__thumbnail img {
  width: auto;
  max-width: 100%;
  height: auto;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(63, 34, 16, 0.12);
}

.blog-single__content {
  font-size: 1rem;
  line-height: 1.9;
  color: #3f2210;
}

.blog-single__content p {
  margin: 0 0 1.2em;
}

.blog-single__content h2,
.blog-single__content h3,
.blog-single__content h4 {
  margin: 1.6em 0 0.8em;
  color: #3f2210;
  line-height: 1.4;
}

.blog-single__content a {
  color: #9a4b10;
  word-break: break-word;
}

.blog-single__content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.2em;
}

.blog-single__content ul,
.blog-single__content ol {
  margin: 0 0 1.2em 1.4em;
}

.blog-single__back {
  width: 90%;
  margin: 36px auto 0;
  text-align: center;
}

.blog-single__back a {
  display: inline-block;
  padding: 12px 28px;
  background-color: #3f2210;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.blog-single__back a:hover {
  background-color: #5c3518;
}

/* ページネーション */
.blog-pagination {
  width: 90%;
  margin: 24px auto 0;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: #fff;
  border: 1px solid #c9b9a6;
  color: #3f2210;
  text-decoration: none;
  font-size: 0.9rem;
}

.blog-pagination .page-numbers.current {
  background-color: #3f2210;
  border-color: #3f2210;
  color: #fff;
}

.blog-pagination .page-numbers:hover {
  background-color: #ede4d6;
}

/* 固定ページのブログタブ（page-blog.php） */
body .content_outer .blog_wrapper.blog-list .blog_item h2,
body .content_outer .blog_wrapper.blog-list .blog_item h2 a {
  color: #3f2210;
  position: static;
  text-align: left;
}

body .content_outer .blog_wrapper.blog-list .blog_item > p,
body .content_outer .blog_wrapper.blog-list .blog_item p {
  color: #4a3420;
}

body .content_outer .blog_wrapper.blog-list .blog_item h2 a {
  text-decoration: none;
}

body .content_outer .blog_wrapper.blog-list .blog_item h2 a:hover {
  opacity: 0.75;
}

/* ブログ一覧 — 羊皮紙背景の隙間をなくす */
body .content_outer.content_outer--blog-linked .content_class--visible .content_background_top {
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  width: 100%;
  aspect-ratio: 1000 / 60;
}

body .content_outer.content_outer--blog-linked .content_class--visible .content_background_main {
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  width: 100%;
  margin: -3px 0 -14px;
  padding: 30px 0 8px;
}

body .content_outer.content_outer--blog-linked .content_class--visible .content_background_bottom {
  background-image: url(../images/backimg_bottom_1000x60.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 60;
  margin: -20px 0 0;
  line-height: 0;
  font-size: 0;
}

body .content_outer.content_outer--blog-linked .blog_wrapper {
  margin-bottom: 0;
  padding-bottom: 0;
}

body .content_outer.content_outer--blog-linked .blog-list .blog_item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

body .content_outer.content_outer--blog-linked .blog-list .blog_item-more {
  margin-bottom: 0;
}

body .content_outer.content_outer--blog-linked .blog-pagination {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* トップページのブログサムネイル（左→右の日付順、上詰め） */
body.home .blog .blog_flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  align-items: start;
  width: 90%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

body.home .blog .blog_flex .blog_thumbnail {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.home .blog .blog_flex .blog_thumbnail > a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

body .blog .blog_flex .blog_thumbnail {
  width: 100%;
  max-width: none;
}

body .blog .blog_flex .blog_thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

body.home .blog .blog_flex .blog_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .blog .blog_flex .blog_thumbnail .blog_thumbnail_title {
  background-color: rgba(63, 34, 16, 0.88);
  padding: 12px;
}

body .blog .blog_flex .blog_thumbnail .blog_thumbnail_store {
  font-size: 0.7rem;
  color: #e8c9a0;
  margin: 0 0 4px;
}

body .blog .blog_flex .blog_thumbnail .blog_thumbnail_title h3,
body .blog .blog_flex .blog_thumbnail .blog_thumbnail_title p {
  color: #fff;
}

body .blog .blog_flex .blog_thumbnail .blog_thumbnail_title p {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 4px;
}

body .blog .blog_flex .blog_thumbnail .blog_thumbnail_title h3 {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

body.home .blog .blog_flex .blog_thumbnail .blog_thumbnail_title h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.4em * 2);
  margin: 0;
}

@media screen and (min-width: 769px) {
  body.home .blog .blog_flex {
    grid-template-columns: repeat(3, 1fr);
  }

  body.home .blog .blog_flex .blog_thumbnail:nth-child(10) {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  body.home .blog .blog_flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
    align-items: start;
  }

  body.home .blog .blog_flex .blog_thumbnail {
    width: 100%;
    margin: 0;
  }

  body.home .blog .blog_flex .blog_thumbnail img {
    width: 100%;
  }

  .blog-archive-panel,
  .blog-single-panel {
    width: 100%;
    margin-top: 24px;
  }

  .blog-single__title {
    font-size: 1.15rem;
  }

  .blog-list .blog_item-title {
    font-size: 1rem;
  }

  .blog-single__content img {
    width: auto;
    max-width: 100%;
  }

  .blog-single__thumbnail img {
    width: auto;
    max-width: 100%;
  }
}

@media screen and (max-width: 599px) {
  main.blog-main h2.blog_item-title,
  main.blog-main h2.blog-single__title {
    font-size: 1.05rem !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
  }

  body .content_outer.content_outer--blog-linked .content_class--visible .blog_wrapper {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  body .content_outer.content_outer--blog-linked .content_class--visible .blog-list .blog_item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}
