.breadcrumbs {
  margin: 0;
}

/* パンくずリストの余白を削除 */
#breadcrumbs {
  margin: 0 !important;
}

@media screen and (min-width: 740px) {
  #breadcrumbs {
    margin: 0 !important;
  }
}

@media screen and (min-width: 1200px) {
  #breadcrumbs {
    margin: 0 !important;
  }
}

/* --- ベーススタイル --- */
.tips-wrapper {
  width: 100%;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #F9F4E9;
}

.tips-container {
  max-width: 1200px;
  padding: 0 30px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tips-container {
    padding: 0 5px;
  }
}

/* --- Hero Section (トップのメインビジュアル) --- */
.hero-section {
  padding: 55px 0 30px; /* 上下の余白を減らす */
  background-color: #F9F4E9;
}

/* 画像を消したため、ブロック表示に変更 */
.hero-grid {
  display: block;
  text-align: center;
}

/* テキストエリアの調整 */
.hero-text-area {
  width: 60%;
  max-width: 60%;
  margin: 0 auto;
  text-align: center;
}

.hero-main-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.hero-title-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-description {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #00A0B0;
  border-left: none;
}

/* --- Articles Section (記事一覧) --- */
.articles-section {
  padding: 20px 30px 30px;
  background-color: #F9F4E9;
}

.section-title {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 35px;
  font-weight: bold;
  color: #333;
  text-align: center;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 30px;
    font-size: calc(35px * 0.6);
    letter-spacing: 0.1em;
  }
}


/* 記事グリッド */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  box-shadow: 0 10px 25px rgb(0 0 0 / 10%);
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #F9F4E9;
}

.card-image::after {
  position: absolute;
  bottom: 0;
  left: 4%;
  width: 96%;
  height: 2px;
  content: '';
  background-color: rgb(100 100 100 / 30%);
}

.card-image::before {
  position: absolute;
  top: 4%;
  right: 0;
  width: 2px;
  height: 96%;
  content: '';
  background-color: rgb(100 100 100 / 30%);
}

.card-image img {
  width: 97%;
  height: 97%;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 5px;
  background-color: #F9F4E9;
}

.card-date {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #545251;
}

@media (max-width: 768px) {
  .card-date {
    font-size: calc(28px * 0.6);
  }
}

.card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  color: #545251;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .card-title {
    font-size: calc(32px * 0.6);
  }
}

/* --- Pagination (ページネーション) --- */
.pagination-area {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination {
  display: inline-flex;
  gap: 0;
  align-items: center;
  padding: 20px 30px;
  background-color: #F9F4E9;
  border-radius: 0;
}

.pagination .page-numbers {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.3s;
}

.pagination .page-numbers:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 1px;
  height: 60%;
  content: '';
  background-color: #ddd;
  transform: translateY(-50%);
}

.pagination .page-numbers.current {
  font-weight: bold;
  color: #fff;
  background: #E67A2E;
  border-radius: 8px;
}

.pagination .page-numbers:hover:not(.current) {
  font-weight: bold;
  color: #E67A2E;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-main-title {
    font-size: 32px;
  }

  .hero-text-area {
    width: 90%;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero-main-title {
    font-size: 26px;
  }
}
