@charset "utf-8";

/* ==========================================================================
   お知らせ一覧(archive.php)・記事詳細(single.php) 2026リニューアル
   デザインカンプ: assets/_design/archive.png / single.png
   配色変数・.sec_title・パーティクル・CTA は home.css を共用
   ========================================================================== */

.hs_news_wrap .wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 0 10px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.hs_news_wrap .c_pink   { color: var(--c-pink); }
.hs_news_wrap .c_blue   { color: var(--c-blue); }
.hs_news_wrap .c_orange { color: var(--c-orange); }
.hs_news_wrap .c_green  { color: var(--c-green); }

/* カテゴリごとの色 */
.hs_news_wrap .is-orange { --cc: var(--c-orange); }
.hs_news_wrap .is-pink   { --cc: var(--c-pink); }
.hs_news_wrap .is-blue   { --cc: var(--c-blue); }
.hs_news_wrap .is-green  { --cc: var(--c-green); }

.hs_news_wrap .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ==========================================================================
   HERO → 下層ページ共通ヒーロー(page-hero.css / template-parts/page-hero.php)
   ========================================================================== */


/* ==========================================================================
   お知らせ一覧
   ========================================================================== */
#nw_list {
  position: relative;
  padding: 36px 0 70px;
  background: var(--c-cream2);
}
/* 上端のゆるい波形 */
#nw_list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 14C160 2 300 2 460 10s320 14 480 6 200-12 260-8V24H0z' fill='%23fff9ea'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

#nw_list .sec_title { margin-bottom: 26px; }

/* 絞り込みタブ */
.nw_tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 30px;
}
.nw_tabs li { flex: 0 1 196px; min-width: 0; }
.nw_tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(180,150,80,.12);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cc, var(--c-text));
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.nw_tabs .is-orange a { color: var(--c-text); } /* 「お知らせ」は文字色のみ黒(カンプ準拠) */
.nw_tabs .is-orange .ico { color: var(--c-pink); }
.nw_tabs a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(180,150,80,.18); }
.nw_tabs .ico { display: inline-flex; width: 26px; height: 26px; color: var(--cc); }
.nw_tabs .ico svg { width: 100%; height: 100%; }
.nw_tabs .is-current a,
.nw_tabs .is-all.is-current a {
  background: var(--cc, var(--c-orange));
  color: #fff;
  box-shadow: 0 8px 16px -10px rgba(253,148,5,.9);
}
.nw_tabs .is-current .ico { color: #fff; }

/* 記事リスト */
.nw_items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.nw_item a {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 12px 24px 12px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(180,150,80,.1);
  transition: transform .2s, box-shadow .2s;
}
.nw_item a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(180,150,80,.18); }

.nw_item_img {
  flex: 0 0 176px;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f0e6;
}
.nw_item_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.nw_item a:hover .nw_item_img img { transform: scale(1.05); }

.nw_item_body { flex: 1; min-width: 0; }

.nw_item_meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 6px;
}
.nw_item_meta time {
  font-size: 13px;
  letter-spacing: .06em;
  color: #666;
}
.nw_item_tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 22px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--cc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  white-space: nowrap;
}

.nw_item_title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
.nw_item a:hover .nw_item_title { color: var(--c-orange); }

.nw_item_text {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw_item_arrow {
  flex-shrink: 0;
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--c-pink);
}
.nw_item_arrow svg { width: 100%; height: 100%; }

.nw_empty {
  padding: 60px 0;
  font-size: 15px;
  text-align: center;
  color: var(--c-text);
}

/* ページ送り */
.nw_pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}
.nw_pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border: 1px solid #ece6d6;
  border-radius: 22px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: border-color .2s, color .2s;
}
.nw_pagination a.page-numbers:hover { border-color: var(--c-orange); color: var(--c-orange); }
/* common.css の旧ルール span.page-numbers.current(30×30・inline-block)の方が
   詳細度が高いため、形に関わるプロパティをここで明示的に上書きして正円にする */
.nw_pagination .page-numbers.current {
  display: flex;
  width: auto;
  height: 40px;
  padding: 0 4px;
  line-height: 1;
  border-color: var(--c-orange);
  background: var(--c-orange);
  color: #fff;
  font-weight: 700;
}
.nw_pagination .page-numbers.dots {
  border: 0;
  background: none;
  letter-spacing: .1em;
}
.nw_pagination .prev svg,
.nw_pagination .next svg { width: 16px; height: 16px; color: var(--c-pink); }
.nw_pagination .prev svg { transform: scaleX(-1); }


/* ==========================================================================
   レスポンシブ(タブレット) ※デザインはPC版のみ支給のため暫定調整
   ========================================================================== */

@media all and (max-width: 768px) {

  /* タブは横スクロール */
  .nw_tabs {
    justify-content: flex-start;
    gap: 10px;
    margin: 0 -10px 24px;
    padding: 4px 10px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nw_tabs::-webkit-scrollbar { display: none; }
  .nw_tabs li { flex: 0 0 auto; }
  .nw_tabs a { height: 44px; padding: 0 22px; font-size: 14px; }
  .nw_tabs .ico { width: 22px; height: 22px; }

  .nw_item a { gap: 16px; padding: 12px 14px; }
  .nw_item_img { flex-basis: 150px; }
  .nw_item_title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}


/* ==========================================================================
   レスポンシブ(スマホ)
   ========================================================================== */
@media all and (max-width: 520px) {

  #nw_list { padding: 28px 0 50px; }
  .hs_news_wrap .sec_title { gap: 6px; }
  .hs_news_wrap .sec_title h2 { font-size: 20px; }
  .hs_news_wrap .sec_title_deco { width: 22px; height: 22px; flex-shrink: 0; }

  .nw_item a { align-items: flex-start; gap: 12px; padding: 12px 10px 12px 12px; }
  .nw_item_img { flex-basis: 96px; aspect-ratio: 4 / 3; }
  .nw_item_meta { gap: 10px; margin-bottom: 4px; }
  .nw_item_meta time { font-size: 11.5px; }
  .nw_item_tag { min-width: 0; height: 20px; padding: 0 10px; font-size: 11px; }
  .nw_item_title { font-size: 14px; letter-spacing: .02em; }
  .nw_item_text { display: none; }
  .nw_item_arrow { width: 16px; height: 16px; align-self: center; }

  .nw_pagination { gap: 6px; }
  .nw_pagination .page-numbers,
  .nw_pagination .page-numbers.current { min-width: 32px; height: 32px; font-size: 12px; }
}


/* ==========================================================================
   記事詳細(single.php)
   デザインカンプ: assets/_design/single.png
   ========================================================================== */
/* 本文エリア(クリーム背景+白カード) */
#nw_single {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  background: var(--c-cream2);
}
/* クリーム背景からそのまま CTA バナーへつなげる(home.css の上余白を解除) */
.hs_news_single #cta { margin-top: 0; }
#nw_single::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 14C160 2 300 2 460 10s320 14 480 6 200-12 260-8V24H0z' fill='%23fff9ea'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.ns_article {
  position: relative;
  max-width: 990px;
  margin: 0 auto;
  padding: 46px 54px 56px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(180,150,80,.12);
}

/* カテゴリ・日付・タイトル */
.ns_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.ns_tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 16px 0 12px;
  border-radius: 15px;
  background: var(--cc);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  white-space: nowrap;
}
/* common.css の * { color:#333 } で黒くなるため、アイコンにも白を明示 */
.ns_tag .ico { display: inline-flex; width: 16px; height: 16px; color: #fff; }
.ns_tag .ico svg { width: 100%; height: 100%; }
.ns_meta time {
  font-size: 13px;
  letter-spacing: .06em;
  color: #555;
}
.ns_title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--c-text);
}

/* アイキャッチ */
.ns_thumb {
  position: relative;
  margin-top: 26px;
  aspect-ratio: 3 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f0e6;
}
.ns_thumb img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 縦長・正方形に近い写真: 少し高さを取って全体を見せ、左右はぼかした同じ写真で埋める */
.ns_thumb.is-contain { aspect-ratio: 5 / 2; }
.ns_thumb.is-contain img { object-fit: contain; }
.ns_thumb_bg {
  position: absolute;
  inset: -24px;
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: .75;
}

/* 本文(管理画面で入力した HTML を装飾) */
.ns_content {
  margin-top: 26px;
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--c-text);
  overflow-wrap: anywhere;
}
.ns_content::after { content: ""; display: block; clear: both; }
.ns_content > :first-child { margin-top: 0; }
.ns_content p { margin: 0 0 .4em; }
.ns_content h2,
.ns_content h3,
.ns_content h4 {
  display: flow-root; /* 回り込み画像の横では見出しの帯も画像手前で止める */
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
}
.ns_content h2 {
  position: relative;
  margin: 2em 0 .9em;
  padding: 7px 16px 7px 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--c-pale-yellow) 60%, rgba(253,246,217,.35));
  font-size: 16px;
}
.ns_content h2::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M13 3c0 0-7 7.8-7 12.2a7 7 0 0 0 14 0C20 10.8 13 3 13 3z' fill='%23f36e8d' transform='rotate(-20 13 3)'/%3E%3Ccircle cx='6' cy='24' r='3.4' fill='%23fdbe1b'/%3E%3Ccircle cx='16' cy='27' r='2.6' fill='%2300a8e9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ns_content h3 {
  margin: 1.8em 0 .7em;
  padding-left: 12px;
  border-left: 4px solid var(--c-orange);
  font-size: 15.5px;
}
.ns_content h4 {
  margin: 1.6em 0 .5em;
  font-size: 15px;
  color: var(--c-orange);
}
.ns_content h2 img,
.ns_content h3 img { display: inline; vertical-align: -.15em; }

.ns_content ul,
.ns_content ol { margin: .6em 0 1em; }
.ns_content ul li {
  position: relative;
  padding-left: 1.2em;
}
.ns_content ul li::before {
  content: "";
  position: absolute;
  left: .3em;
  top: .85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-text);
}
.ns_content ol { padding-left: 1.6em; list-style: decimal; }

.ns_content a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.ns_content a:hover { opacity: .7; }
.ns_content strong,
.ns_content b { font-weight: 700; }

.ns_content img { max-width: 100%; height: auto; }
.ns_content .alignright,
.ns_content .alignleft,
.ns_content .aligncenter,
.ns_content .wp-caption img { border-radius: 10px; }
.ns_content .alignright { float: right; max-width: 42%; margin: .4em 0 20px 36px; }
.ns_content .alignleft  { float: left;  max-width: 42%; margin: .4em 36px 20px 0; }
.ns_content .aligncenter { display: block; margin: 1em auto; }
.ns_content .wp-caption { max-width: 100%; }
.ns_content .wp-caption-text { margin-top: 4px; font-size: 12px; color: #777; text-align: center; }

.ns_content blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--c-yellow);
  border-radius: 0 10px 10px 0;
  background: var(--c-cream);
}
.ns_content table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ns_content th,
.ns_content td {
  padding: 10px 14px;
  border: 1px solid #ece6d6;
  text-align: left;
  vertical-align: top;
}
.ns_content th { background: var(--c-cream); font-weight: 700; }
.ns_content iframe { max-width: 100%; }

/* 一覧へ戻る */
.ns_back {
  margin-top: 50px;
  text-align: center;
}
.ns_back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 256px;
  max-width: 100%;
  height: 52px;
  border: 2px solid #cfe3ef;
  border-radius: 28px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-text);
  transition: border-color .2s, color .2s;
}
.ns_back a svg {
  width: 18px;
  height: 18px;
  color: var(--c-blue);
  transform: scaleX(-1);
  transition: transform .2s;
}
.ns_back a:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ns_back a:hover svg { transform: scaleX(-1) translateX(4px); }


@media all and (max-width: 768px) {

  #nw_single { padding-bottom: 60px; }
  .ns_article { padding: 34px 26px 44px; }
  .ns_title { font-size: 22px; }
  .ns_thumb,
  .ns_thumb.is-contain { aspect-ratio: 2 / 1; }
  .ns_content .alignright,
  .ns_content .alignleft { max-width: 45%; }
}

@media all and (max-width: 520px) {

  #nw_single { padding-bottom: 44px; }
  .ns_article { padding: 26px 16px 34px; border-radius: 14px; }
  .ns_meta { gap: 8px 12px; margin-bottom: 10px; }
  .ns_tag { height: 24px; padding: 0 12px 0 10px; font-size: 11.5px; }
  .ns_tag .ico { width: 14px; height: 14px; }
  .ns_meta time { font-size: 12px; }
  .ns_title { font-size: 19px; letter-spacing: .03em; }
  .ns_thumb,
  .ns_thumb.is-contain { margin-top: 18px; aspect-ratio: 16 / 9; border-radius: 8px; }

  .ns_content { margin-top: 20px; font-size: 14px; line-height: 1.9; letter-spacing: .02em; }
  .ns_content h2 { padding: 6px 12px 6px 38px; font-size: 15px; }
  .ns_content h2::before { left: 10px; width: 20px; height: 20px; margin-top: -10px; }
  .ns_content h3 { font-size: 14.5px; }
  /* 回り込み画像はスマホでは本文幅いっぱいに */
  .ns_content .alignright,
  .ns_content .alignleft { float: none; display: block; max-width: 100%; margin: 1em auto; }
  .ns_content table { display: block; overflow-x: auto; }

  .ns_back { margin-top: 36px; }
  .ns_back a { height: 48px; font-size: 13px; }
}
