/* MVの文字位置調整 */
.mv--top__inner {
  padding-bottom: 5vh;                 /* スマホ → 下余白を可変 */
}

/* 500–580px帯：下余白を“多めに” */
@media (min-width: 500px) and (max-width: 580px){
  .mv--top__inner {
    padding-bottom: 8vh;
  }
}

/* 581–699px帯：さらに“多めに” */
@media (min-width: 581px) and (max-width: 699px){
  .mv--top__inner {
    padding-bottom: 10vh;
  }
}

/* PC */
@media (min-width: 700px) {
  .mv--top__inner {
    padding-left: 50px;
    padding-bottom: 0;                 /* PCでは下余白ゼロ */
	}
}




/* ========== お知らせ（共通） ========== */
.home-news{
  background: transparent;                  /* 薄ブルー削除 */
  padding: clamp(24px, 5vw, 48px) 0;
}

.home-news__title{
  text-align: center;
  margin: 0 0 clamp(16px, 3vw, 24px);
  letter-spacing: .06em;
}

/* 一覧ボタン（中央配置・グラデーション） */
.home-news__more{
  display: flex;
  justify-content: center;
  margin-bottom: clamp(16px, 4vw, 24px);
}
.home-news__more .wp-element-button{
  background: var(--wp--preset--gradient--blue-gradient, linear-gradient(135deg,#5bc0de 0%,#004aad 100%));
  color: #fff;
  border-radius: 9999px;
  margin-top: 10px;
  padding: 12px 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-news__more .wp-element-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

/* ========== 一覧（行レイアウト） ========== */
.home-news__list{
  display: flex;
  flex-direction: column;
}

/* 1行（区切り線は“下だけ”、間隔は均一） */
.home-news__item{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
  border-top: none !important;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* 日付 */
.home-news__date{
  min-width: 165px;
  font-variant-numeric: tabular-nums;
  opacity: .9;
}

/* カテゴリー（pill：角丸を弱める） */
.home-news__cat{
  display: flex;
  gap: 8px;
}
.home-news__cat a{
  display: inline-block;
  background: #005caa;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* タイトル（本文と同じサイズ/フォント + 右端▶︎） */
.home-news__ttl{
  flex: 1;
  padding-left: 0;
}
.home-news__ttl a{
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  padding-right: 18px;
}
.home-news__ttl a:hover{ text-decoration: underline; }
.home-news__ttl a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: .8;
}

/* 本文と同じフォント/サイズを強制上書き */
.home-news .wp-block-post-title.home-news__ttl,
.home-news .wp-block-post-title.home-news__ttl a,
.home-news .wp-block-post-title__link {
  font-family: var(--wp--preset--font-family--noto-sans-jp) !important;
  font-size: clamp(16px, 2vw, 16px) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: normal !important;
}

/* ========== スマホ最適化（〜768px） ========== */
@media (max-width: 768px){
  /* 行は横並びのまま、必要に応じて折り返し */
  .home-news__item{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 11px;
  }

  /* 1行目：日付＋カテゴリ */
  .home-news__date{
    min-width: auto;
    font-size: 14px;
    margin: 0;
    order: 1;
    flex: 0 0 auto;
  }
  .home-news__cat{
    order: 2;
    flex: 0 0 auto;
  }
  .home-news__cat a{
    font-size: 13px;
    padding: 4px 9px;
    border-radius: 4px;
  }

  /* 2行目：タイトル */
  .home-news__ttl{
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }
  .home-news__ttl a{
    display: block;
    font-size: 15px;
    line-height: 1.6;
    padding-right: 18px;
  }

  /* ボタンを下に移動 */
  .home-news__left{ display: contents; }
  .home-news{ display: flex; flex-direction: column; }
  .home-news__title{ order: 1; }
  .home-news__query{ order: 2; }
  .home-news__more{
    order: 3;
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }
}

/* ========== PC（≥769px）：見出し＋ボタン 左 ／ リスト 右 ========== */
@media (min-width: 769px){
  .home-news{
    display: grid;
    grid-template-columns: 230px 1fr;
    column-gap: 48px;
    align-items: center; /* 縦中央揃え */
  }

  /* 左カラム（見出し＋ボタンを縦並び） */
  .home-news__left{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .home-news__title{ margin: 0; text-align: left; }
  .home-news__more{ margin: 0; }

  /* 右カラム：リスト */
  .home-news__query{
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    max-width: none !important;
    width: 100%;
    justify-self: stretch;
  }

  .home-news__query .wp-block-post-template,
  .home-news__list{
    max-width: none !important;
    width: 100%;
  }

  /* 各行 */
  .home-news__item{
    width: 100%;
    gap: 16px;
    padding: 5px 0;
  }
}


/* aboutセクション */
.about-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.about-bg {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 90%;
}

.about-content h2 {
  color: #fefefe;
  font-size: clamp(20px, 4vw, 32px);
  margin-bottom: 35px;
}

.about-content p {
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.8;
  margin-bottom: 40px;
}


/* PCは最低高さ450pxを維持 */
@media (min-width: 768px) {
  .about-section {
    min-height: 450px;
  }

  /* 背景画像を cover にするのは PC だけ */
  .about-section picture,
  .about-section .about-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .about-section .about-bg {
    object-fit: cover;
    object-position: center;
  }
}






/* 共通カードデザイン */
.product-card {
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  padding: 16px;
  background-color: var(--wp--preset--color--custom-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 本文とボタンを上下に配置 */
  height: 100%; /* 各カード同じ高さに */
}

/* 見出し2・リード文・画像の中央揃え */
.wp-block-heading.has-text-align-center,
p.has-text-align-center,
.wp-block-image.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}




/* ========== Products Section 専用 ========== */

/* PCのみリード文で途中改行、SPは1行で表示 */
.products-section .lead-text .only-pc { display: none; }
@media (min-width: 768px) {
  .products-section .lead-text .only-pc { display: inline; }
}

/* 見出し・リード・画像の外側余白リセット（margin collapsing防止） */
.products-section .product-card .wp-block-heading { margin: 0; line-height: 1.3; }
.products-section .product-card > p:first-of-type { margin: 0; }
.products-section .product-card .wp-block-image { margin: 0; }

/* 余白はgapで一元管理（共通CSSのflex構造を活用） */
.products-section .product-card { gap: 12px; }

/* カードの高さ統一（親カラムの高さに追随） */
.products-section .wp-block-column > .product-card { height: 100%; }







/* ================================
   新着トピックス（TOPページ用）
   ※レイアウトは archive-topix と同一
   ※ボタンの見た目は共通CSSを使用（ここでは未定義）
================================ */

/* セクションの余白（必要なら） */
.top-topix { 
  padding: clamp(16px, 4vw, 24px) 0;
}

/* 見出しの中央寄せ（必要なら） */
.top-topix__title { 
  text-align: center;
  margin: 0 0 16px;
}

/* TOPページ専用：トピックスの左右余白を消す */
.top-topix .archive-topix__grid {
  padding:  0 0 30px 0;
}


/* ▼リスト並びは .archive-topix__grid の既存CSSをそのまま使う
   └ ここでは“件数の出し分け”のみ定義
*/

/* スマホ（〜1023px）：5件目以降は隠して4件表示 */
@media (max-width: 1023.98px){
  .top-topix .archive-topix__grid > li:nth-child(n+5){
    display: none;
  }
}

/* PC（1024px〜）：7件目以降は隠して6件表示（保険） */
@media (min-width: 1024px){
  .top-topix .archive-topix__grid > li:nth-child(n+7){
    display: none;
  }
}

/* PC時の横幅センター寄せ（アーカイブと同じ見た目に） */
@media (min-width: 1024px){
  .top-topix .archive-topix__grid{
    padding-left: 0;
    padding-right: 0;
    max-width: 1350px;
    margin: 0 auto;
  }
}
