/* ===================================
   カスタムスタイル - 細かい調整用
   =================================== */

/* このファイルは細かいカスタマイズやデザインの微調整用です
   大きな機能追加は他の専用ファイルに記述してください */

/* ===================================
   汎用クラス
   =================================== */

/* マージンリセット */
.u-m0 { margin: 0 !important; }
.u-mt0 { margin-top: 0 !important; }
.u-mb0 { margin-bottom: 0 !important; }
.u-ml0 { margin-left: 0 !important; }
.u-mr0 { margin-right: 0 !important; }

/* パディングリセット */
.u-p0 { padding: 0 !important; }
.u-pt0 { padding-top: 0 !important; }
.u-pb0 { padding-bottom: 0 !important; }
.u-pl0 { padding-left: 0 !important; }
.u-pr0 { padding-right: 0 !important; }

/* テキスト配置 */
.u-text-center { text-align: center !important; }
.u-text-left { text-align: left !important; }
.u-text-right { text-align: right !important; }

/* 表示・非表示 */
.u-hidden { display: none !important; }
.u-visible { display: block !important; }

/* ===================================
   微調整スタイル
   =================================== */

/* snb-アコーディオン */
.smb-accordion__item__title {
  background-color: transparent;
}
.wp-block-snow-monkey-blocks-accordion.smb-accordion {
  border: solid 1px #b9b9b9;
  border-radius: 10px;
}

.smb-accordion__item__title .smb-accordion__item__title__label strong {
  font-size: 1.4rem;
}

/* ===================================
   特定ページでの調整
   =================================== */

/* カテゴリーバッジ共通スタイル */
.taxonomy-category a[href*="/category/"] {
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ホバー共通 */
.taxonomy-category a[href*="/category/"]:hover {
  color: #FFF;
}

/* お知らせ - #00AA3B（緑） */
.taxonomy-category a[href*="/category/news/"] {
  color: #00AA3B;
  border: 1px solid #00AA3B;
}
.taxonomy-category a[href*="/category/news/"]:hover {
  background-color: #00AA3B !important;
}

/* 公益事業 - #FF9500（オレンジ） */
.taxonomy-category a[href*="/category/public-service/"] {
  color: #FF9500;
  border: 1px solid #FF9500;
}
.taxonomy-category a[href*="/category/public-service/"]:hover {
  background-color: #FF9500 !important;
}

/* 業務案内（service-news） - #8c04da（紫） */
.taxonomy-category a[href*="/category/service-news/"] {
  color: #8c04da;
  border: 1px solid #8c04da;
}
.taxonomy-category a[href*="/category/service-news/"]:hover {
  background-color: #8c04da !important;
}

/* 業務案内（business-guide） - #049ADA（青） */
.taxonomy-category a[href*="/category/business-guide/"] {
  color: #049ADA;
  border: 1px solid #049ADA;
}
.taxonomy-category a[href*="/category/business-guide/"]:hover {
  background-color: #049ADA !important;
}

/* トピック - #FF2D55（ピンク） */
.taxonomy-category a[href*="/category/topic/"] {
  color: #FF2D55;
  border: 1px solid #FF2D55;
}
.taxonomy-category a[href*="/category/topic/"]:hover {
  background-color: #FF2D55 !important;
}

/* 情報館（practical_tips / information） - #6155F5（紫） */
.taxonomy-category a[href*="/category/practical_tips/"],
.taxonomy-category a[href*="/category/information/"] {
  color: #6155F5;
  border: 1px solid #6155F5;
}
.taxonomy-category a[href*="/category/practical_tips/"]:hover,
.taxonomy-category a[href*="/category/information/"]:hover {
  background-color: #6155F5 !important;
}

/* 未分類 - #747474（グレー） */
.taxonomy-category a[href*="/category/uncategorized/"] {
  color: #747474;
  border: 1px solid #747474;
}
.taxonomy-category a[href*="/category/uncategorized/"]:hover {
  background-color: #747474 !important;
}

/* ===================================
   Newラベル（トップページお知らせ）
   =================================== */

/* 投稿タイトルの親要素をflexboxに */
.wp-block-post-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Newラベルのスタイル */
.new-label {
  display: inline-block;
  color: #d81c3f;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* 試験案内投稿ページでp-entry__headを非表示 */
.single-tests .p-entry__head {
  display: none !important;
}

/* 試験案内投稿ページでc-postContentのmargin-topを0に */
.single-tests .l-main__body > .c-postContent {
  margin-top: 0 !important;
}

/* アーカイブページの説明文スタイル */
.c-archiveDescription {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-left: 4px solid var(--ark-color--main);
  border-radius: 0 8px 8px 0;
}

.c-archiveDescription p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* ===================================
   レスポンシブ微調整
   =================================== */

/* お知らせセクション：カテゴリバッジの改行防止 */
.news-item .wp-block-post-terms a {
  white-space: nowrap !important;
}

/* お知らせセクション：782px〜951pxでの幅調整 */
@media (min-width: 782px) and (max-width: 951px) {
  /* 日付・カテゴリ部分の幅を広げる */
  .news-item > .wp-block-column:first-child {
    flex-basis: 35% !important;
  }
  
  /* タイトル部分の幅を狭める */
  .news-item > .wp-block-column:last-child {
    flex-basis: 65% !important;
  }
}

