/* カラーの変更 */
:root {
  --sans-serif: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック",
    "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo,
    sans-serif;
  --blog-accent-color: #db9687; /* アクセントカラー */
  --blog-text-color: black; /* 本文カラー */
  --blog-heading-color: #686464; /* 見出しカラー */
  --blog-list-color: #595858;
  --blog-font-family: "Zen Maru Gothic", sans-serif;
  --blog-font-weight-normal: 400;
  --blog-font-weight-medium: 500;
  --blog-font-weight-bold: 700;
  --blog-font-weight-light: 300;
}

.container-fluid {
  background: #ebe5d8;
}

/* ブログヘッダー画像スタイル */
.blog-header {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.blog-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--blog-heading-color);
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.blog-title {
  width: 500px;
  margin: 0 auto;
}

.blog-title img {
  width: 100%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .blog-header {
    height: 300px;
  }

  .blog-title {
    width: 100%;
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-header {
    height: 200px;
  }

  .blog-title {
    font-size: 1.5rem;
  }
}

/* ブログコンテンツのスタイル */
.container {
  background: #ebe5d8;
  padding: 0;
  max-width: initial;
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: black;
  line-height: 1.8;
}

/* パンくずリスト */
.blog-breadcrumb {
  font-size: 14px;
  color: var(--blog-list-color);
  margin-bottom: 20px;
}

.blog-breadcrumb a {
  color: var(--blog-list-color);
  text-decoration: none;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row;
  gap: 20px;
  margin: 0 auto 20px;
}

.post-item {
  width: 360px;
  height: 360px;
  text-decoration: none;

  img {
    width: 100%;
    height: auto;
  }

  img:hover {
    opacity: 0.5;
    transform: translateY(0);
  }
}

.post-item:hover {
  opacity: 0.5;
}

.post-thumbnail {
  width: 360px;
  height: 240px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumbnail.no-image {
  background-color: #9c9c9c; /* グレーの色調を調整できます */
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-image-text {
  color: white;
  font-size: 20px;
}

/* メインタイトル */
.blog-main-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--blog-heading-color);
  font-family: var(--blog-font-family);
  font-weight: var(--blog-font-weight-bold);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 3em; /* フォールバック用 */
}

/* 投稿日 */
.blog-list-date {
  font-size: 14px;
  color: var(--blog-list-color);
}
.blog-date {
  font-size: 14px;
  color: var(--blog-list-color);
  margin-bottom: 30px;
}

/* 本文エリア */
.blog-body {
  line-height: 1.8;
  margin-bottom: 40px;
  width: 90%;
  margin: 0 auto;
  font-family: var(--sans-serif);

  img {
    margin-bottom: 20px;
  }
}

/* 見出し */
.blog-heading {
  font-size: 20px;
  font-weight: bold;
  padding-left: 15px;
  margin: 40px 0 20px;
  line-height: 1.4;
}

/* 記事内の見出し */
.blog-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 50px 0 25px;
  padding: 12px 0 12px 16px;
  border-left: 4px solid var(--blog-accent-color);
  line-height: 1.4;
  color: var(--blog-heading-color);
  font-family: var(--blog-font-family);
  font-weight: var(--blog-font-weight-bold);
}

/* 本文テキスト */
.blog-text {
  margin-bottom: 1.5em;
}

/* 記事一覧のタイトル */
.blog-list-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--blog-heading-color);
  font-family: var(--blog-font-family);
  font-weight: var(--blog-font-weight-bold);
}

.blog-list-title a {
  color: var(--blog-heading-color);
  font-family: var(--blog-font-family);
  font-weight: var(--blog-font-weight-bold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-list-title a:hover {
  color: var(--blog-accent-color);
  font-family: var(--blog-font-family);
  font-weight: var(--blog-font-weight-bold);
}

.back-button {
  display: inline-block;
  width: 300px;
  transition: opacity 0.3s ease;
  margin: 40px auto;
  font-size: 16px;
}

.back-button:hover {
  opacity: 0.8;
}

.back-button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination {
  text-align: center;
  margin: 40px auto;
  width: fit-content;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  font-size: 24px;
  font-family: var(--blog-font-family);
  color: var(--blog-heading-color);
  font-weight: bold;
}

/* 現在のページ */
.pagination .current {
  opacity: 1;
  text-decoration: underline;
}

/* ページ番号 */
.pagination a.page-numbers {
  opacity: 0.5;
}

/* ドット */
.pagination .dots {
  padding: 8px 4px;
}

/* ホバー時 */
.pagination a.page-numbers:hover {
  opacity: 1;
}

/* 前へ・次へを非表示 */
.pagination .prev,
.pagination .next {
  display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .blog-content {
    padding: 20px 15px;
  }

  .blog-main-title {
    font-size: 24px;
  }

  .blog-heading {
    font-size: 18px;
  }

  .blog-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-item {
    height: auto;
  }
}

/* フッター */
footer#body_footer {
  clear: both;
  font-family: Arial, Helvetica, sans-serif;
  background: white;
  margin-top: -5px;
}

#body_footer ul {
  margin: auto;
  max-width: 840px;
  margin: 0 auto;
  display: block;
  font-size: 12px;
  text-align: center;
}
#body_footer li {
  display: inline-block;
}

#body_footer dl > *,
#body_footer p,
#body_footer dl {
  margin: 0 auto;
}

p.pageup {
  font-size: 12px;
  text-align: right;
  margin: 5px 15px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

p.pageup a::before {
  margin-right: 5px;
  color: var(--blog-accent-color);
  font-size: 11px;
  content: "▲";
}

#link_1 {
  margin: 5px 15px;
}
#link_1 ul {
  text-align: right;
}
#link_1 li {
  margin-left: 10px;
  padding-left: 15px;
  background: url(../images/blog/point2.png) no-repeat 0 center;
  line-height: 100%;
}
#link_2 {
  padding: 5px 40px;
  border-bottom: 1px solid #ccc;
}
#link_2 li {
  padding-right: 10px;
  line-height: 1.6em;
}
#body_footer > div {
  padding: 15px 0;
  background-color: var(--blog-accent-color);
  border: 1px solid #fff;
  border-left: none;
  border-right: none;
  color: #fff;
  text-align: center;
  position: relative;
}
#body_footer h2 {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}
#body_footer > div::after {
  width: 100%;
  height: 1px;
  position: absolute;
  bottom: -2px;
  left: 0;
  content: "";
}
#body_footer div > *:not(h2),
#body_footer div > dl * {
  display: inline-block;
}

#body_footer dl * {
  background-color: var(--blog-accent-color);
}

dt.bf_tel {
  margin-left: 5px;
}
dt.bf_tel:after {
  margin-left: 4px;
  content: ":";
}

#body_footer > div.container {
  background-color: #fff;
  padding: 0;
}

/* コピーライト */
#copyright {
  display: block;
  font-size: 12px;
  line-height: 45px;
  text-align: center;
  background-color: #ebe5d8;
}

@media (min-width: 1250px) {
  .hero-left .plot-label {
    width: 75%;
  }

  .sales-status {
    padding-left: 10px;
  }
}

@media (max-width: 1080px) {
  .location-slider {
    padding: 0 32px 0 calc(100vw - 85vw);
  }

  .splide__progress {
    padding: 0 32px 0 calc(100vw - 85vw);
  }
}
