/* =========================================================
   components.css : 複数ページ共通コンポーネント
   - セクション見出し（英語ラベル＋和文）
   - Check ボタン（背景の薄い "Check" ＋白ピル＋矢印）
   - お知らせ行 / カテゴリタグ
   - カルーセル用ナビ（prev/next）
   施設子サイト（りじょう認定こども園）
   ========================================================= */

/* ===== section heading ===== */
.sec-head { line-height: 1; }
.sec-head__en {
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.45;
  color: var(--color-accent-mid);
}
.sec-head__ja {
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.35;
  color: var(--color-accent);
}

/* ===== Check ボタン（CTA） =====
   .more = ラッパ。背景に大きな薄い "Check"、その上に白ピル＋矢印 */
.more {
  position: relative;
  display: inline-block;
  padding-top: 30px; /* "Check" の高さ分 */
}
.more__check {
  position: absolute;
  top: -33px; /* ボタンより上に出す（XD変換ズレ補正） */
  left: 0;
  z-index: 2; /* ボタンより前面 */
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 80px;
  line-height: 0.9;
  color: #fdf1bc;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.more__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  max-width: 100%;
  height: 45px;
  padding-right: 36px;
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  background: var(--color-white);
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-accent);
  transition: opacity 0.2s;
}
.more__btn:hover { opacity: 0.75; }
.more__btn::after { /* 矢印（横線＋三角） */
  content: "";
  position: absolute;
  right: -28px;
  top: 50%;
  width: 45px;
  height: 1px;
  background: var(--color-accent);
  transform: translateY(-50%);
}
.more__btn::before {
  content: "";
  position: absolute;
  right: -28px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-accent);
  transform: translateY(-50%) rotate(45deg);
}

/* ===== お知らせ行（PC＝背景なし・上下区切り線） ===== */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 12px 24px;
  background: transparent;
  border-bottom: 1px solid #e3ddcd;
  transition: opacity 0.2s;
}
.news-row:first-child { border-top: 1px solid #e3ddcd; }
.news-row:hover { opacity: 0.7; }
.news-row__date {
  flex-shrink: 0;
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--color-text);
}
.news-row__ttl {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
}

/* ===== カテゴリタグ ===== */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 154px;
  height: 27px;
  padding-inline: 16px;
  border-radius: 14px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.tag--important { background: #fbeaea; color: #9e4b4b; } /* 大切なお知らせ */
.tag--event     { background: var(--color-accent-bg); color: var(--color-accent); }

/* ===== カルーセル ナビ（prev/next） ===== */
.car-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  background: var(--color-white);
  cursor: pointer;
  transition: opacity 0.2s;
}
.car-nav:hover { opacity: 0.7; }
.car-nav::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}
.car-nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.car-nav--next::before { transform: translateX(-2px) rotate(45deg); }

/* ===== レスポンシブ ===== */
@media (max-width: 750px) {
  .sec-head__en { font-size: 16px; }
  .sec-head__ja { font-size: 22px; }

  .more { padding-top: 0; }
  .more__check { display: none; }
  .more__btn { width: auto; min-width: 150px; padding-right: 30px; }
  /* SPは矢印（横線）を消して「>」シェブロンのみ。destyleが border-style:solid のため上右だけ太さ指定 */
  .more__btn::after { display: none; }
  .more__btn::before { right: 14px; width: 7px; height: 7px; border-width: 1.5px 1.5px 0 0; }

  /* お知らせ（SP＝白パネル＋行間の区切り線／日付→タグ→タイトル＋右に > ） */
  .news-list {
    gap: 0;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
  }
  .news-row {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 16px 36px 16px 16px;
    border: none;
    border-bottom: 1px solid #e3ddcd;
    border-radius: 0;
    background: var(--color-white);
  }
  .news-row:first-child { border-top: none; }
  .news-row:last-child { border-bottom: none; }
  .news-row::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--color-accent);
    border-right: 1.5px solid var(--color-accent);
    transform: translateY(-50%) rotate(45deg);
  }
  .news-row__date { color: #999; }
  .news-row__ttl { font-size: 14px; }
  .tag { min-width: 0; height: 22px; font-size: 11px; }
}
