@charset "UTF-8";
/*====================================================================
　　お知らせ整備（2026-11-20）
　　- ヘッダーのナビ（「お知らせ」追加で12項目になったため、幅に応じて詰める）
　　- カテゴリーのラベル
　　- お知らせ一覧（/news/・/news/category/{slug}/）
　　- お知らせ詳細（/news/{slug}/）
　　- トップの INFO（お知らせ）枠
　　色: ブランドのピンク #FA7591 / 濃いピンク #B25569 / 青 #74B3E6 / 文字 #3A3A38 / 補助 #8A857D / 枠線 #efefef
====================================================================*/
:root {
  --ybs-news-border: #efefef;
  --ybs-news-shadow: 0 8px 20px 0 rgba(0, 0, 0, .08);
  --ybs-news-text: #3A3A38;
  --ybs-news-muted: #8A857D;
}

/*--------------------------------------------------------------------
　　ヘッダーのナビ: 12項目が1行に収まるよう、画面幅に応じて余白と文字を詰める
　　（変更前から 1280px 以下では末尾が切れていた。SWELL のPC表示は 960px 以上）
--------------------------------------------------------------------*/
@media screen and (min-width: 960px) and (max-width: 1439px) {
  #gnav .c-gnav > .menu-item > a { padding-left: .7em; padding-right: .7em; }
}
@media screen and (min-width: 960px) and (max-width: 1279px) {
  #gnav .c-gnav > .menu-item > a { padding-left: .45em; padding-right: .45em; }
  #gnav .c-gnav > .menu-item > a .ttl { font-size: 14px; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  #gnav .c-gnav > .menu-item > a { padding-left: .35em; padding-right: .35em; }
  #gnav .c-gnav > .menu-item > a .ttl { font-size: 13px; letter-spacing: 0; }
}
@media screen and (min-width: 960px) and (max-width: 1099px) {
  #gnav .c-gnav > .menu-item > a { padding-left: .3em; padding-right: .3em; }
  #gnav .c-gnav > .menu-item > a .ttl { font-size: 12px; }
}
@media screen and (min-width: 960px) and (max-width: 1023px) {
  #gnav .c-gnav > .menu-item > a { padding-left: .15em; padding-right: .15em; }
}

/* スクロール後の追従ヘッダー（ロゴと横並び）も同じ考え方で詰める */
@media screen and (min-width: 960px) and (max-width: 1439px) {
  .l-fixHeader .c-gnav > .menu-item > a { padding-left: .4em; padding-right: .4em; }
  .l-fixHeader .c-gnav > .menu-item > a .ttl { font-size: 13px; letter-spacing: 0; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  .l-fixHeader .c-gnav > .menu-item > a { padding-left: .2em; padding-right: .2em; }
  .l-fixHeader .c-gnav > .menu-item > a .ttl { font-size: 12px; }
}
@media screen and (min-width: 960px) and (max-width: 1023px) {
  .l-fixHeader .c-gnav > .menu-item > a { padding-left: .1em; padding-right: .1em; }
}

/*--------------------------------------------------------------------
　　カテゴリーのラベル（一覧・詳細・トップ共通）
--------------------------------------------------------------------*/
.ybs-newsCat,
.ybs-newsArchive .p-postList__cat,
.ybs-newsArchive .c-postThumb__cat {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  line-height: 1.5;
  padding: .1em 1em;
  border-radius: 30px;
  border: 1px solid #C9C5BE;
  color: #6E6A63;
  background: #fff;
  white-space: nowrap;
  letter-spacing: .03em;
  text-decoration: none;
}
.ybs-newsCat[data-cat="press"]   { color: #B25569; border-color: #F2B6C4; background: #FFF6F8; }
.ybs-newsCat[data-cat="media"]   { color: #3D7FB8; border-color: #B7D6F0; background: #F5FAFE; }
.ybs-newsCat[data-cat="event"]   { color: #2E8A68; border-color: #A9DCC6; background: #F3FBF7; }
.ybs-newsCat[data-cat="seminar"] { color: #9A6B1F; border-color: #EBD3A5; background: #FFFAF0; }
.ybs-newsCat[data-cat="info"]    { color: #6E6A63; border-color: #D8D4CC; background: #FAF9F7; }
a.ybs-newsCat:hover { opacity: .7; }

/*--------------------------------------------------------------------
　　お知らせ一覧
--------------------------------------------------------------------*/
.ybs-newsArchive .title_cont { margin-bottom: 2em; }

/* カテゴリーの絞り込み */
.ybs-newsCats ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  margin: 0 0 2.5em;
  padding: 0;
  list-style: none;
}
.ybs-newsCats a {
  display: inline-block;
  padding: .45em 1.2em;
  border-radius: 50px;
  border: 1px solid var(--ybs-news-border);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  color: var(--ybs-news-text);
  font-size: .9em;
  text-decoration: none;
}
.ybs-newsCats a.is-current {
  background: linear-gradient(to bottom, #FC94AB 0%, #FC94AB 25%, #F86886 75%, #F86886 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(248, 104, 134, .3);
}

/* SWELL のカード型一覧を法人サイトのトーンに（白地・淡い枠線・角丸・柔らかい影） */
.ybs-newsArchive .p-postList.-type-card {
  margin-left: -.75em;
  margin-right: -.75em;
}
.ybs-newsArchive .p-postList.-type-card .p-postList__item {
  padding-left: .75em;
  padding-right: .75em;
  margin-bottom: 1.5em;
}
.ybs-newsArchive .p-postList__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ybs-news-border);
  border-radius: 15px;
  box-shadow: var(--ybs-news-shadow);
  overflow: hidden;
  color: var(--ybs-news-text);
}
.ybs-newsArchive .p-postList__link:hover { opacity: 1; transform: translateY(-2px); transition: transform .25s; }
.ybs-newsArchive .p-postList__link:hover .p-postList__title { color: #B25569; }
.ybs-newsArchive .p-postList__thumb { margin: 0; }
.ybs-newsArchive .p-postList__thumb::before { padding-top: 56.25%; }
.ybs-newsArchive .p-postList__body {
  display: flex;
  flex-direction: column-reverse; /* 日付・カテゴリー → タイトル の順に見せる */
  justify-content: flex-end;
  padding: 1em 1.2em 1.3em;
}
.ybs-newsArchive .p-postList__title {
  font-size: 1rem !important;
  line-height: 1.6;
  margin: .5em 0 0 !important;
  font-weight: 700;
}
.ybs-newsArchive .p-postList__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3em .8em;
  margin: 0;
  color: var(--ybs-news-muted);
  font-size: .85rem;
}
.ybs-newsArchive .p-postList__meta .c-postTimes__posted { color: var(--ybs-news-muted); }
.ybs-newsArchive .p-postList__meta .c-postTimes__posted::before { display: none; }
.ybs-newsArchive .p-postList__cat::before { display: none; }
/* ページ送り */
.ybs-newsArchive .c-pagination { justify-content: center; margin-top: 1.5em; gap: .4em; }
.ybs-newsArchive .c-pagination .page-numbers {
  border-radius: 50%;
  border: 1px solid var(--ybs-news-border);
  background: #fff;
  color: var(--ybs-news-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}
.ybs-newsArchive .c-pagination .page-numbers.current {
  background: #FA7591;
  border-color: #FA7591;
  color: #fff;
}

/*--------------------------------------------------------------------
　　お知らせ詳細
--------------------------------------------------------------------*/
.ybs-newsSingle .l-mainContent__inner {
  max-width: 860px;
  margin: 0 auto;
}
.ybs-newsSingle .ybs-newsSingle__head { display: block; margin-bottom: 2em; }
.ybs-newsSingle__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4em 1em;
  margin: 0 0 .8em;
  color: var(--ybs-news-muted);
  font-size: .9rem;
}
#body_wrap .ybs-newsSingle .c-postTitle__ttl {
  font-size: 1.75em;
  line-height: 1.5;
  margin: 0;
  padding-bottom: .8em;
  border-bottom: 1px solid var(--ybs-news-border);
  color: var(--ybs-news-text);
}
.ybs-newsSingle .p-articleThumb { margin: 0 0 2.5em; }
.ybs-newsSingle .p-articleThumb__img {
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(40, 40, 60, .10);
  width: 100%;
  height: auto;
}
/* 本文: 見出しは法人サイトの見出しに合わせる（contents.css の #body_wrap h2 2em を本文内では抑える） */
.ybs-newsSingle .post_content { color: var(--ybs-news-text); line-height: 1.9; }
#body_wrap .ybs-newsSingle .post_content h2 {
  font-size: 1.4em;
  margin: 2.5em 0 1em;
  padding: .6em 0 .6em .9em;
  background: none;
  border: none;
  border-left: 5px solid #B25569;
  color: var(--ybs-news-text);
}
#body_wrap .ybs-newsSingle .post_content h2::before,
#body_wrap .ybs-newsSingle .post_content h2::after { display: none; }
#body_wrap .ybs-newsSingle .post_content h3 {
  font-size: 1.2em;
  margin: 2em 0 .8em;
  padding: 0 0 .4em;
  border-bottom: 2px solid #F5D3DA;
  color: var(--ybs-news-text);
}
#body_wrap .ybs-newsSingle .post_content h3::before { display: none; }
#body_wrap .ybs-newsSingle .post_content h4 { font-size: 1.05em; margin: 1.8em 0 .6em; }
.ybs-newsSingle .post_content a:not([class]) { color: #B25569; text-decoration: underline; }
.ybs-newsSingle .post_content .wp-block-image img,
.ybs-newsSingle .post_content figure img { border-radius: 8px; }
.ybs-newsSingle .post_content .wp-block-embed iframe { border-radius: 8px; }
.ybs-newsSingle__back { margin: 3.5em 0 1em; }

@media screen and (max-width: 768px) {
  #body_wrap .ybs-newsSingle .c-postTitle__ttl { font-size: 1.35em; }
  #body_wrap .ybs-newsSingle .post_content h2 { font-size: 1.2em; }
  #body_wrap .ybs-newsSingle .post_content h3 { font-size: 1.1em; }
  .ybs-newsCats ul { gap: .5em; margin-bottom: 1.8em; }
  .ybs-newsCats a { padding: .4em 1em; font-size: .85em; }
}

/*--------------------------------------------------------------------
　　トップ: INFO（お知らせ）
--------------------------------------------------------------------*/
.section_news { text-align: left; }
.section_news ul.news_cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5em;
  margin: 0 0 2.5em;
  padding: 0;
  list-style: none;
}
.section_news ul.news_cards li { margin: 0; }
.section_news ul.news_cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ybs-news-border);
  border-radius: 15px;
  box-shadow: var(--ybs-news-shadow);
  overflow: hidden;
  color: var(--ybs-news-text);
  text-decoration: none;
}
.section_news ul.news_cards a:hover { opacity: 1; transform: translateY(-2px); transition: transform .25s; }
.section_news ul.news_cards a:hover .news_cards__title { color: #B25569; }
.section_news .news_cards__thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F7F5F2;
}
.section_news .news_cards__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section_news .news_cards__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3em .8em;
  margin: 1em 1.2em 0;
  color: var(--ybs-news-muted);
  font-size: .85rem;
}
.section_news .news_cards__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: .5em 1.2em 1.3em;
  font-size: .98rem;
  line-height: 1.6;
}
.section_news > a.whitegrade_but { display: table; margin: 0 auto; }

/* Column はお知らせの下に全幅で（2カラムの片側だったものを1列に） */
.section_11--column ul li { width: 100%; }
.section_11--column ul li h2::after { width: 2.5%; }

@media screen and (max-width: 1199px) {
  .section_news ul.news_cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 768px) {
  .section_news ul.news_cards { grid-template-columns: minmax(0, 1fr); gap: 1em; margin-bottom: 2em; }
  /* スマホは「サムネイル左・文字右」の横長カードで縦の長さを抑える */
  .section_news ul.news_cards a {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    border-radius: 12px;
  }
  .section_news .news_cards__thumb { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 6.5em; }
  .section_news .news_cards__meta { margin: .8em .9em 0; font-size: .78rem; }
  .section_news .news_cards__title { margin: .35em .9em .8em; font-size: .9rem; -webkit-line-clamp: 3; }
  .section_11--column ul li h2::after { width: 10%; }
}

/* -------------------------------------------------------------
 * サムネイルの収め方（2026-11-20 追加）
 * 16:9 から大きく外れる画像（書影・チラシなど縦長や正方形に近いもの、極端な横長）は、
 * 切り抜かずに全体を収める。判定は inc/news-20261120.php の小さなスクリプトが
 * 画像の width / height 属性から行い、.ybs-thumb--contain を付ける。
 * ----------------------------------------------------------- */
.ybs-newsArchive .p-postList__thumb,
.section_news .news_cards__thumb { background: #F4F2EE; }
.ybs-newsArchive .p-postList__thumb img.ybs-thumb--contain,
.section_news .news_cards__thumb img.ybs-thumb--contain {
  object-fit: contain;
  padding: 10px 0;
  box-sizing: border-box;
}
/* スマホの横長カード: 画像の縦横比でカードの高さが変わらないよう、画像を枠いっぱいに重ねる */
@media (max-width: 768px) {
  .section_news .news_cards__thumb { position: relative; }
  .section_news .news_cards__thumb img { position: absolute; inset: 0; }
  .section_news .news_cards__thumb img.ybs-thumb--contain { padding: 6px; }
}
