/* ============================================
   Home 用のカスタムスタイル
   （トップページだけに効かせる）
   ============================================ */

/* コンテンツ領域の中だけを対象にするため .contents を噛ませる */
.home .contents {
  /* 必要なら全体背景などもここで指定 */
}

/* ============================================
   トップの各セクションを白い箱に
   ============================================ */

.home .contents .section.section-artists,
.home .contents .section.section-exhibitions,
.home .contents .section.section-journal,
.home .contents .section.section-news {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* セクションタイトル共通 */

.home .contents .section.section-artists .section-title,
.home .contents .section.section-exhibitions .section-title,
.home .contents .section.section-journal .section-title,
.home .contents .section.section-news .section-title {
  font-size: 1.4rem;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eee;
}

/* 一覧へのリンクを右寄せ */

.home .contents .section.section-artists .section-link,
.home .contents .section.section-exhibitions .section-link,
.home .contents .section.section-journal .section-link,
.home .contents .section.section-news .section-link {
  text-align: right;
}

/* セクション上の余白（Homeページの中だけ） */
.home .contents .section {
  padding-top: 4rem;
}

/* ============================================
   グリッド（xw-grid）
   ============================================ */

.home .contents .xw-grid {
  display: grid;
  gap: 1.25rem;
}

.home .contents .xw-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .home .contents .xw-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home .contents .xw-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   カード全体のスタイル（Home内のカードだけ）
   ============================================ */

.home .contents .xw-card {
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home .contents .xw-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home .contents .xw-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* カード内側の余白（Artists / Exhibitions / Journal） */

.home .contents .section-artists .xw-card__body,
.home .contents .section-exhibitions .xw-card__body,
.home .contents .section-journal .xw-card__body {
  padding: 1.5rem 1.5rem;
}

.home .contents .xw-card__title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
}

.home .contents .xw-card__meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.home .contents .xw-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* カードホバー（Artists / Exhibitions / Journal） */

.home .contents .section-artists .xw-card:hover,
.home .contents .section-exhibitions .xw-card:hover,
.home .contents .section-journal .xw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
}

/* 画像比率揃え */

.home .contents .section-artists .xw-card__media img,
.home .contents .section-exhibitions .xw-card__media img,
.home .contents .section-journal .xw-card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================
   セクションリード（説明文）
   ============================================ */

.home .contents .section-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0 0 1.8rem 0;
  color: #444;
}

@media (max-width: 640px) {
  .home .contents .section-lead {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

/* ============================================
   News（テキストリスト）のベーススタイル
   ============================================ */

.home .contents .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home .contents .news-list__item {
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.home .contents .news-list__item:last-child {
  border-bottom: none;
}

.home .contents .news-list__link {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}

.home .contents .news-list__date {
  font-size: 0.9rem;
  opacity: 0.7;
  white-space: nowrap;
}

.home .contents .news-list__title {
  font-size: 1rem;
  line-height: 1.6;
}

/* ホバーでタイトルだけ少し強調 */

.home .contents .news-list__link:hover .news-list__title {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .home .contents .section.section-news {
    padding: 2rem 1.4rem;
    margin: 2rem 0;
  }

  .home .contents .news-list__link {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Home 用：News の文字サイズ微調整
   （日付 1.4rem、タイトル 1.5rem）
   ============================================ */

.home .contents .section-news .news-list__link {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* 日付：1.4rem */
.home .contents .section-news .news-list__date {
  font-size: 1.4rem !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
  line-height: 1.3 !important;
}

/* タイトル：1.5rem */
.home .contents .section-news .news-list__title {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* ============================================
   ヒーローエリア（トップの一番上のブロック）
   hero-section / hero-section__inner / hero-section__visual / hero-section__text
   Home と Home v2（page-home-test）共通
   ============================================ */

/* 外枠 */
.home .contents .hero-section,
.page-template-page-home-test .contents .hero-section {
  margin: 0 0 3rem;
  padding: 3rem 3rem;
  border-radius: 24px;
  background: radial-gradient(
    circle at top left,
    #f4efe9 0,
    #ffffff 45%,
    #f3f3f3 100%
  );
}

/* 中身は左右2カラム（画像＋テキスト） */
.home .contents .hero-section__inner,
.page-template-page-home-test .contents .hero-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

/* 画像側 */
.home .contents .hero-section__visual img,
.page-template-page-home-test .contents .hero-section__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* テキスト側 */
.home .contents .hero-section__text,
.page-template-page-home-test .contents .hero-section__text {
  max-width: 620px;
  margin: 0 auto;
}

/* 小さい英語ラベル */
.home .contents .hero-eyebrow,
.page-template-page-home-test .contents .hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #777;
}

/* メインキャッチコピー */
.home .contents .hero-title,
.page-template-page-home-test .contents .hero-title {
  font-size: 2.2rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* リード文（説明文） */
.home .contents .hero-lead,
.page-template-page-home-test .contents .hero-lead {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 1.75rem;
  color: #555;
}

/* ボタンエリア */
.home .contents .hero-buttons,
.page-template-page-home-test .contents .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ボタンスタイル（最低限） */
.home .contents .c-btn-primary,
.home .contents .c-btn-outline,
.page-template-page-home-test .contents .c-btn-primary,
.page-template-page-home-test .contents .c-btn-outline {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.home .contents .c-btn-primary,
.page-template-page-home-test .contents .c-btn-primary {
  background: #111;
  color: #fff;
}

.home .contents .c-btn-primary:hover,
.page-template-page-home-test .contents .c-btn-primary:hover {
  background: #333;
}

.home .contents .c-btn-outline,
.page-template-page-home-test .contents .c-btn-outline {
  border: 1px solid #111;
  color: #111;
  background: #fff;
}

.home .contents .c-btn-outline:hover,
.page-template-page-home-test .contents .c-btn-outline:hover {
  background: #111;
  color: #fff;
}

/* スマホ向け（1カラムに） */
@media (max-width: 768px) {
  .home .contents .hero-section,
  .page-template-page-home-test .contents .hero-section {
    padding: 2.2rem 1.6rem;
    border-radius: 18px;
  }

  .home .contents .hero-section__inner,
  .page-template-page-home-test .contents .hero-section__inner {
    grid-template-columns: 1fr;
  }

  .home .contents .hero-title,
  .page-template-page-home-test .contents .hero-title {
    font-size: 1.8rem;
  }

  .home .contents .hero-section__text,
  .page-template-page-home-test .contents .hero-section__text {
    max-width: none;
  }
}