/* =============================================================================
   daika_theme/assets/css/front-page.css
   ============================================================================= */

/*--------------------------------------
  Hero + 特集記事内コンテンツ中央揃え
--------------------------------------*/
.hero-featured-inner {
  width: 100%;
  max-width: none; /* ← 1200pxを解除 */
  padding: 0;
  margin: 0; /* ← autoを解除し、左寄せを防止 */
}
.hero-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;   /* ← 追加：中央に揃えるため */
  gap: 40px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;  /* ← 追加：全体中央揃え */
  margin-bottom: 60px;
}


/*--------------------------------------
  共通：カード内画像 16:9 切り抜き
--------------------------------------*/
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
	border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*--------------------------------------
  Layout Helpers
--------------------------------------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/*--------------------------------------
  Hero セクション
--------------------------------------*/
.site-header + .front-page .hero {
  margin-top: 40px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}
.hero-inner {
  display: flex;
  width: 100%;
  gap: 40px;
}
.hero-thumb {
  flex: 1 1 50%;
  overflow: hidden;
  border-radius: 8px;
}
.hero-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-content time,
.hero-content .category {
  color: #666;
  font-size: 0.875rem;
}
.hero-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
}
.hero-title a {
  color: #111;
  text-decoration: none;
}
.hero-excerpt {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}
.hero .btn-primary {
  width: fit-content;
}

/*--------------------------------------
  特集記事セクション
--------------------------------------*/
.featured {
  width: 100%;
  padding: 0 40px 0px;
  margin: 0 auto;
}
/* containerクラスによる制限を打ち消す */
.featured.container {
  max-width: 100%;
  padding: 0 40px 0px;
}

.featured .section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 32px;
  position: relative;
}
.featured .section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #111;
  margin: 8px auto 0;
}

/* PC：３列レイアウト */
@media screen and (min-width: 769px) {
  .featured .card-list {
    display: flex;
    justify-content: center;
    gap: 24px;
  }
  .featured .card-list .card {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  }
  .featured .card-list .card .card-content {
    padding: 16px;
    flex: 1;
  }
  .featured .card-list .card time,
  .featured .card-list .card .category {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 4px;
    display: block;
  }
  .featured .card-list .card-title {
    margin: 8px 0 0;
    font-size: 1rem;
  }
  .featured .card-list .card-title a {
    color: #0693e3;
    text-decoration: none;
  }
}

/*--------------------------------------
  新着記事セクション
--------------------------------------*/
.recent-posts {
  margin-bottom: 80px;
}
.recent-posts .section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 32px;
  position: relative;
}
.recent-posts .section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #111;
  margin: 8px auto 0;
}
/* PC：３列グリッド */
@media screen and (min-width: 769px) {
  .recent-posts .card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
  }
  .recent-posts .more-link {
    margin-top: 24px;
    text-align: right;
  }
}

/*--------------------------------------
  カテゴリから探すセクション
--------------------------------------*/
.category-nav {
  background: #0693e3;
  color: #fff;
}
.category-nav .section-title {
  text-align: center;
  font-size: 1.25rem;
  padding: 32px 0 16px;
}
.category-nav .cat-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.category-nav .cat-link {
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
}

/*--------------------------------------
  タグから探すセクション（背景あり）
--------------------------------------*/
.tag-cloud {
  background: #f5f7fa;
  padding: 80px 16px;
  margin-bottom: 80px;
  border-radius: 8px;
}

.tag-cloud .section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0;
  position: relative;
}
.tag-cloud .section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #111;
  margin: 8px auto 0;
}

/* タグ一覧（白背景ボックス） */
.tag-cloud .tags-wrapper {
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  margin: 32px auto 0;
  padding: 40px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tag-cloud .tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.tag-cloud-link {
  font-size: 0.875rem !important;
  color: #111 !important;
  text-decoration: none;
}

/*--------------------------------------
  資料請求セクション
--------------------------------------*/
.call-to-action {
  background-color: #0693e3;
  text-align: center;
  padding: 60px 16px;
  margin: 0;
}
.call-to-action .section-title {
  color: #111;
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
}
.call-to-action .section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #111;
  margin: 8px auto 0;
}
.call-to-action .btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background-color: #111;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity .2s ease;
}
.call-to-action .btn-primary:hover {
  opacity: .8;
}

/*--------------------------------------
  プレビュー画像 3 列
--------------------------------------*/
@media screen and (min-width: 769px) {
  .preview-images .image-list {
    display: flex;
    gap: 24px;
    justify-content: center;
  }
  .preview-images .image-item {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
  }
  .preview-images .image-item img {
    width: 100%;
    display: block;
  }
}

/*--------------------------------------
  SPスタイル (768px 以下)
--------------------------------------*/
@media screen and (max-width: 768px) {
  /* Hero: 縦並び */
  .hero {
    flex-direction: column-reverse;
    margin-bottom: 20px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 24px;
  }

  /* Swiper (特集記事) */
  .featured-swiper {
    position: relative;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
  }
  .featured-swiper .swiper-wrapper {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .featured-swiper .swiper-slide.card {
    width: 100% !important;
    box-sizing: border-box;
  }
  .featured-swiper .swiper-slide.card img {
    width: 100%;
    height: auto;
    display: block;
  }
  .featured-swiper .swiper-button-prev,
  .featured-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  .featured-swiper .swiper-button-prev { left: 8px; }
  .featured-swiper .swiper-button-next { right: 8px; }
  .featured-swiper .swiper-button-prev::after,
  .featured-swiper .swiper-button-next::after {
    font-size: 16px;
    color: #0693e3;
  }
  .featured-swiper .swiper-pagination {
    margin: 16px 0;
    text-align: center;
  }

  /* Swiper (プレビュー画像) */
  .preview-images .image-list { display: none; }
  .preview-images.swiper {
    padding: 0 16px;
    margin: 10px;
    box-sizing: border-box;
  }
  .preview-images.swiper .swiper-slide {
    width: 100% !important;
  }
  .preview-images.swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }


	
  /* 新着記事：縦並び */
  .recent-posts .card-list {
    display: block;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .recent-posts .card-list .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
  }
  .recent-posts .card-list .card img {
    width: 100%;
    height: auto;
    display: block;
  }
  .recent-posts .card-list .card:last-child {
    margin-bottom: 0;
  }
  .recent-posts .more-link {
    text-align: left !important;
    margin: 16px 16px 0;
  }
}
.tag-cloud,
.newsletter {
  background-color: #f5f7fa !important;
  position: relative;
  z-index: 0;
}

	/* 新着記事カードの角丸・影・白背景化 */
.recent-posts .card-list .card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.recent-posts .card-list .card .card-content {
  padding: 16px;
  flex: 1;
}

.recent-posts .card-list .card time,
.recent-posts .card-list .card .category {
  color: #666;
  font-size: 0.75rem;
  margin-bottom: 4px;
  display: block;
}

.recent-posts .card-list .card-title {
  margin: 8px 0 0;
  font-size: 1rem;
}

.recent-posts .card-list .card-title a {
  color: #0693e3;
  text-decoration: none;
}

.hero-inner.hero-feature {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  box-sizing: border-box;
}
.hero-inner.hero-feature .hero-thumb img {
  border-radius: 8px;
}


