@charset "UTF-8";

/* =================================================================
   0. SCSS変数定義
   ================================================================= */
#FFFFFF: #f8f9fa;
rgba(58, 58, 59, 1): #333333;
rgba(0, 75, 158, 1): #007bff;
rgba(246, 246, 249, 1): #ffffff;
rgba(0, 75, 158, 1): #007bff;
rgba(90, 93, 96, 1): #551a8b;
$border_color: #e0e0e0;
$form_border_color: #87929D;
$light_text_color: #6c757d;


/* =================================================================
   1. 基本設定 (リセット, 基本タグ)
   ================================================================= */

/*! normalize.css v8.0.1 の一部を適用 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
  margin-bottom: 25px;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre,
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
textarea {
  overflow: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template,
[hidden] {
  display: none;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #f8f9fa;
  color: rgba(58, 58, 59, 1);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #005bac;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
}

.visibility-hidden,
.skip-navigation {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.skip-navigation:focus, .skip-navigation:active {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
}

/* =================================================================
   2. 共通コンポーネント
   ================================================================= */

.container {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
}
@media (min-width: 1160px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.dropdown-toggle:hover {
  text-decoration: none;
}
.dropdown-toggle[aria-expanded=true] + .dropdown-menu {
  display: block;
}
.dropdown-menu {
  background: #fff;
  border: 1px solid #d8dcde;
  border-radius: 3px;
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
  display: none;
  font-size: 14px;
  left: 0;
  margin-top: 1px;
  min-width: 170px;
  padding: 10px 0;
  position: absolute;
  z-index: 1000;
}
.dropdown-menu-end {
  left: auto;
  right: 0;
}
.dropdown-menu [role=menuitem] {
  color: #2f3941;
  cursor: pointer;
  display: block;
  padding: 7px 20px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.dropdown-menu [role=menuitem]:hover,
.dropdown-menu [role=menuitem]:focus {
  background: rgba(31, 115, 183, 0.08);
  text-decoration: none;
}

.search {
  display: flex;
  position: relative;
}
.search input[type=search] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid $form_border_color;
  border-radius: 30px;
  color: #666;
  flex: 1 1 auto;
  height: 40px;
  width: 100%;
  padding-left: 40px;
  padding-right: 50px; // clear-buttonのスペース
}
.search:focus-within input[type=search] {
  border-color: rgba(0, 75, 158, 1);
  outline: none;
}
.search .search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 15px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #777;
  pointer-events: none;
}
.search .clear-button {
  background-color: transparent;
  border: none;
  align-items: center;
  color: #777;
  cursor: pointer;
  display: none;
  justify-content: center;
  padding: 0 15px;
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
}
.search-has-value .clear-button {
  display: flex;
}

.breadcrumbs {
  font-size: 14px;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.breadcrumbs li {
  color: $light_text_color;
}
.breadcrumbs li + li::before {
  content: ">";
  margin: 0 4px;
}
.breadcrumbs li a {
  color: #005bac;
}
.breadcrumbs li a:visited {
  color: rgba(90, 93, 96, 1);
}


/* ページネーション全体のコンテナ設定 */
.pagination {
  text-align: center; /* ボタンを中央揃え */
  margin-top: 40px;
}

/* 各ページへのリンクの基本スタイル */
.pagination a,
.pagination .current {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border-radius: 8px; /* 角を丸くする */
  background-color: #f0f2f5; /* 背景色 */
  color: #555; /* 文字色 */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease; /* アニメーション効果 */
  border: 1px solid #ddd;
}

/* マウスを乗せた時のスタイル */
.pagination a:hover {
  background-color: #007bff; /* 背景色を変更 */
  color: #ffffff; /* 文字色を白に */
  transform: translateY(-2px); /* 少し浮き上がる効果 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 影をつける */
}

/* 現在表示しているページのスタイル */
.pagination .current {
  background-color: #007bff; /* 背景色 */
  color: #ffffff; /* 文字色 */
  border-color: #007bff;
  cursor: default; /* クリックできないことを示す */
}

/* =================================================================
   3. レイアウト
   ================================================================= */

/* 3.1 ヘッダー */
.header {
  border-bottom: 1px solid $border_color;
  padding: 15px 0;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky; /* スクロールに追従して固定 */
  left: 0;
  width: 100%;
  background-color: #ffffff; /* スクロール時に背景が透けないように */
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(58, 58, 59, 1);
}
.logo img {
  max-height: 40px;
  margin-right: 12px;
}
.logo-text {
  font-weight: 600;
  font-size: 18px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: bold;
}
.nav-link {
  color: #555;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
  background-color: #f0f0f0;
  color: #000;
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn.btn-secondary {
  background-color: transparent;
  color: rgba(0, 75, 158, 1);
  border: 1px solid rgba(0, 75, 158, 1);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-weight: bold;
}
.btn.btn-secondary:hover {
  background-color: rgba(0, 75, 158, 1);
  color: rgba(246, 246, 249, 1);
  text-decoration: none;
}
.menu-button {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.menu-button .icon-close {
  display: none;
}

/* 3.2 フッター */
.footer {
  background-color: #ffffff; /* 背景を白に */
  color: #555; /* 基本の文字色を少し濃いグレーに */
  padding: 60px 0 30px; /* 上下の余白 */
  border-top: 1px solid #e9ecef; /* メインコンテンツとの区切り線 */
  font-size: 14px;
}
.footer-inner {
  display: grid;
  /* 画面幅に合わせてカラム数を自動調整 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px; /* カラム間の余白 */
  padding-bottom: 30px;
}
.footer-column {
  min-width: 0;
}
.footer-logo img {
  max-height: 50px;
}
.footer-description {
  line-height: 1.7;
  color: #6c757d;
}
.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #007bff; /* ホバー時にブランドカラーに */
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a svg {
  width: 24px;
  height: 24px;
}
.social-links a:hover {
  color: #007bff; /* ホバー時にブランドカラーに */
  transform: translateY(-2px); /* ホバー時に少し浮き上がる */
}
.social-links svg {
  width: 24px;
  height: 24px;
}
.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer .dropdown-toggle {
  color: #bdc3c7;
  border: 1px solid #4a6178;
  padding: 5px 10px;
  border-radius: 5px;
}
.footer .dropdown-toggle:hover {
  background-color: #34495e;
  color: #fff;
}
.footer .dropdown-menu {
  background-color: #34495e;
}
.footer .dropdown-menu a {
  color: #fff;
}
.footer .dropdown-menu a:hover {
  background-color: #2c3e50;
}

/* =================================================================
   4. 各ページのスタイル
   ================================================================= */

/* 4.1 ホームページ */
.hero-background {
  background-image: url('https://news.zeibit.ai/wp-content/uploads/2024/12/bg_banner_top.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  position: relative;
}
.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.hero-title {
  font-size: 36px;
  margin-bottom: 8px;
}
.hero-description {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}
.hero .search input[type=search] {
  height: 50px;
  padding-left: 20px;
  border-radius: 25px;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 16px;
}
.hero .search:focus-within input[type=search] {
  border-color: rgba(0, 75, 158, 1);
  outline: none;
}
.blocks-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; /* ボックス間の余白 */
  padding: 20px; /* 内側の余白 */
  background-color: #f9f9f9; /* 薄い背景色 */
  border-radius: 12px; /* 角丸 */
}
.blocks-item-link {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e0e3e6; /* 枠線を少しだけ濃くする */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04); /* 影を薄く追加 */
  justify-content: center; /* 垂直方向の中央揃え */
  align-items: center;     /* 水平方向の中央揃え */
  text-align: center;      /* テキストも中央に */
  padding: 50px 50px;      /* 内側の余白を調整 */
  height: 180px;           /* ボックスの高さを固定して揃える */
  color: #333;             /* 文字色をリセット */
  text-decoration: none;   /* 下線を削除 */
}
.blocks-item-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1); /* ホバー時の影を強調 */
  color: rgba(0, 75, 158, 1);
  text-decoration: none;
}
.blocks-item-icon {
  margin-bottom: 16px;
  color: #005bac;
}
.blocks-item-icon svg {
  width: 48px;  /* アイコンの幅を大きく */
  height: 48px; /* アイコンの高さを大きく */
  color: #005bac;
}
.blocks-item-title {
  font-size: 1.3rem; /* 文字サイズを少し大きく */
  font-weight: 500;
  margin: 0;   /* 余計な余白を削除 */
}
.blocks-item-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  flex-grow: 1;
}
.cta-section {
  border-radius: 16px; /* 角を少し丸くする */
  padding: 50px 40px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 80px; /* フッターとの間に80pxの余白を追加 */
  color: #333333; /* テキストは濃い色に */
  background: linear-gradient(135deg, #D7DDE8, #ffffff);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2); /* 影を追加 */
}
.cta-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333333;
}

.cta-description {
  margin-bottom: 30px;
  color: #555555;
  max-width: 500px; /* 横幅を制限して読みやすくする */
  margin-left: auto;
  margin-right: auto;
}
.cta-links {
  display: flex;         /* ★Flexboxを有効化 */
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center;     /* ★垂直方向の中央揃え（高さが揃う） */
  gap: 20px;             /* ボタン間の余白 */
  flex-wrap: wrap;       /* スマホ表示などで折り返す */
}
/* 両方のボタンに共通するスタイル */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;            /* ★高さを48pxに固定 */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.cta-button:hover {
  opacity: 0.85;
}

/* LINEボタンの画像 */
.line-button {
  padding: 0; /* 画像なので内側の余白は不要 */
}
.line-button img {
  height: 48px; /* ★高さを親要素に合わせる */
  display: block;
}

/* お問い合わせフォームボタン */
.form-button {
  padding: 0 25px; /* 左右の余白を調整 */
  background-color: #005bac; /* ブランドカラー */
  color: #ffffff;
  border: 1px solid #005bac;
}
.form-button svg {
  margin-right: 8px; /* アイコンとテキストの間の余白 */
}

/* 4.2 カテゴリーページ */
.category-container {
  text-align: center;
  margin-bottom: 40px;
}
.category-container .page-header h1 {
  font-size: 38px;
}
.category-container .page-header-description {
  font-size: 18px;
  color: #555;
  margin-top: 10px;
}
.section-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}
.category-container .section-tabs .section-tab-link {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #005bac;
  border-radius: 20px;
  color: #005bac;
  background-color: #ffffff;
  text-decoration: none;
  font-weight: 700; /* ★この値を500から700に変更 */
  transition: all 0.2s ease;
}

.category-container .section-tabs .section-tab-link:hover,
.category-container .section-tabs .section-tab-link.active {
  background-color: #005bac;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 91, 172, 0.2);
}
.section-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.section-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.section-card-title {
  margin: 0 0 20px;
  font-size: 22px;
}
.section-card-title a {
  color: #212529;
}
.section-card-title a:hover {
  color: rgba(0, 75, 158, 1);
}
.article-list {
  margin: 0;
  padding: 0;
}
.article-list-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f5;
  position: relative;
}
.article-list-item:last-child {
  border-bottom: none;
}
.article-list-link {
  display: flex;
  align-items: center;
  color: #555;
  transition: color 0.2s ease;
}
.article-list-link:hover {
  color: rgba(0, 75, 158, 1);
  text-decoration: none;
}
.article-list-icon {
  margin-right: 12px;
  color: #005bac;
  flex-shrink: 0;
}
.article-promoted {
  background-color: #FFFFFF;
  margin: 0 -25px;
  padding: 0 25px;
}
.badge-promoted {
  position: absolute;
  top: 14px;
  right: 10px;
  background-color: #ffc107;
  color: rgba(58, 58, 59, 1);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* 4.3 記事ページ */
.article-page-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  /* ↑ 上の行は変更せず、↓以下のmax-widthを追加 */
  max-width: 1400px; /* コンテナの最大幅を広げる */
  margin: 0 auto; /* 中央揃えを維持 */
  gap: 50px;
  align-items: flex-start;
}
.article-sidebar {
  position: sticky;
  top: 100px;
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}
.sidenav-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.collapsible-sidebar-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidenav-item {
  display: block;
  padding: 10px 12px;
  margin-bottom: 5px;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sidenav-item:hover {
  background-color: #f0f2f5;
  color: #000;
}
.sidenav-item.current-article {
  background-color: #005bac;
  color: #ffffff;
  font-weight: 500;
}
.sidenav-item.current-article:hover {
  background-color: #004a8c;
}
.see-more-link {
  margin-top: 10px;
  font-weight: 500;
  color: rgba(0, 75, 158, 1);
}
.sidebar-search {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}
.article-main .sub-nav {
  margin-bottom: 25px;
}
.article-page-container .article-main {
  background-color: #ffffff; /* 記事エリアの背景を白に */
  padding: 30px 40px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
}
.article-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0px;
}
.article-title {
  font-size: 1.8rem; /* 40px相当 */
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* ★記事本文のスタイル (読みやすさ向上) */
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.article-body h2,
.article-body h3,
.article-body h4 {
  font-weight: 600;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.4;
}
.article-body h2 {
  font-size: 1.8rem;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #e9ecef;
}
.article-body h3 {
  font-size: 1.4rem;
}
.article-body p, .article-body ul, .article-body ol {
  margin-bottom: 1.2em;
}
.article-body a {
  color: #005bac;
  text-decoration: underline;
}
.article-body a:hover {
  text-decoration: none;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.article-body ul, .article-body ol {
  padding-left: 1.5em;
}

.article-cta {
  margin-top: 10px;
  padding: 30px;
  text-align: center;
  background-color: #f8f9fa; /* 背景を薄いグレーに */
  border-radius: 8px;
}
/* CTA内のテキスト色を濃い色に戻す */
.article-cta .cta-title {
  color: #212529;
}

.article-cta .cta-description {
  color: #555;
}

.article-container > footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

/* 添付ファイル */
.article-attachments-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}
.attachments {
  list-style: none;
  padding: 0;
}
.attachment-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: background-color 0.2s ease;
}
.attachment-item:hover {
  background-color: #f8f9fa;
}
.attachment-icon {
  margin-right: 12px;
  color: #555;
}
.attachment-item a {
  font-weight: 500;
  text-decoration: none;
}
.attachment-meta {
  margin-left: auto;
  font-size: 12px;
  color: #888;
  padding-left: 15px;
}
/* CTA */
.article-cta {
  margin-top: 50px;
}

/* 4.4 検索結果ページ */
.search-page-container {
  display: grid;
  margin-top: 40px;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* --- サイドバー --- */
.search-results-sidebar {
  position: sticky;
  top: 100px;
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}
.filters-in-section:not(:last-child) {
  margin-bottom: 30px;
}
.sidenav-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px;
  color: #333;
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidenav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 5px;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sidenav-item:hover {
  background-color: #e9ecef;
  color: #000;
}
.filter-count {
  color: #888;
}
/* ★現在のフィルターのスタイル */
.sidenav-item.current {
  background-color: #005bac;
  color: #ffffff;
  font-weight: 500;
}
.sidenav-item.current .filter-name,
.sidenav-item.current .filter-count {
  color: #ffffff;
}

.search-results-main .search-header {
  margin-bottom: 30px;
}
.search-results-main .search-container {
  margin-bottom: 20px;
}
.search-results-title {
  font-size: 1.8rem; /* 28px相当 */
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-result-item {
  border-bottom: 1px solid #e9ecef;
}
.search-result-link {
  display: block;
  padding: 25px 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.search-result-link:hover {
  background-color: #f8f9fa;
}
.search-result-title {
  font-size: 1.25rem; /* 20px相当 */
  color: #005bac;
  margin: 0 0 12px;
}
.search-result-snippet {
  color: #555;
  margin-bottom: 12px;
}
.search-result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px; /* 縦と横の隙間 */
  font-size: 12px;
  color: #6c757d;
}
.search-result-meta .search-result-breadcrumbs {
  padding: 0;
  margin: 0;
}
.search-result-breadcrumbs {
  list-style: none; /* マーカーを非表示にする */
  padding-left: 0;  /* 左側の余白をリセット */
  margin: 0;        /* 上下の余白もリセット */
}
.search-result-meta .search-result-breadcrumbs li {
  color: $light_text_color;
}
.search-result-votes {
  display: flex;
  align-items: center;
  gap: 4px;
}
.no-results-message {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}
.no-results-message h3 {
  font-size: 22px;
}
.no-results-message ul {
  list-style-position: inside;
  text-align: left;
  display: inline-block;
  margin-top: 20px;
}

/* 4.5 セクションページ */
.section-container .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.page-header-title {
  flex-grow: 1;
}
.page-header h1 {
  font-size: 38px;
  margin-bottom: 5px;
  color: #212529;
}
.page-header-description {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
}
.section-subscribe .button {
  background-color: transparent;
  color: rgba(0, 75, 158, 1);
  border: 1px solid rgba(0, 75, 158, 1);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.section-subscribe .button:hover,
.section-subscribe .button[data-selected="true"] {
  background-color: rgba(0, 75, 158, 1);
  color: rgba(246, 246, 249, 1);
}
.article-list-wrapper {
  margin-top: 40px;
}
.article-list-title {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}
.article-list-detailed {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}
.article-list-detailed .article-list-item {
  border-bottom: 1px solid #e9ecef;
}
.article-list-detailed .article-list-item:last-child {
  border-bottom: none;
}
.article-list-detailed .article-list-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: rgba(58, 58, 59, 1);
  transition: background-color 0.2s ease;
}
.article-list-detailed .article-list-link:hover {
  background-color: #FFFFFF;
  text-decoration: none;
}
.article-list-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.article-list-left .article-list-icon {
  color: rgba(0, 75, 158, 1);
}
.article-list-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: $light_text_color;
}
.article-list-right .badge-promoted {
  background-color: #ffc107;
  color: rgba(58, 58, 59, 1);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.article-list-item.article-promoted > .article-list-link {
  background-color: #fffaf0;
}
.section-empty {
  text-align: center;
  padding: 40px;
  color: $light_text_color;
}

/* 4.7 リクエストページ */
.request-container {
  display: grid;
  grid-template-columns: 1fr 320px; /* メイン(会話)とサイドバーの幅 */
  gap: 50px;
  align-items: flex-start;
}
.request-main {
  flex: 1 0 auto;
  order: 1;
  min-width: 0;
}
.request-sidebar {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  flex: 1 0 auto;
  order: 2;
  padding: 20px 0;
}
.request-details {
  border-bottom: 1px solid #ddd;
  font-size: 0;
  margin: 0;
  padding-bottom: 20px;
}
.request-details:last-child {
  border: 0;
}
.request-details dt, .request-details dd {
  display: inline-block;
  vertical-align: top;
  font-size: 13px;
  margin: 20px 0 0 0;
}
.request-details dd {
  padding: 0 10px;
  width: 60%;
}
.request-details dt {
  color: $light_text_color;
  width: 40%;
}
.request-attachments dt, .request-attachments dd {
  width: 100%;
}
.request-attachments dd {
  margin: 10px 0 0 0;
}
.request-form textarea {
  min-height: 120px;
}

/* 4.8 通知 */
.notification {
  border: 1px solid;
  display: table;
  font-size: 12px;
  padding: 13px 15px;
  width: 100%;
  color: #555;
  margin-bottom: 15px;
  border-radius: 4px;
}
.notification a {
  color: #158ec2;
  font-weight: bold;
}
.notification-icon, .notification-text, .notification-dismiss {
  display: table-cell;
  vertical-align: middle;
}
.notification-text {
  padding: 0 15px;
  width: 100%;
}
.notification-error {
  background: #ffeded;
  border-color: #f7cbcb;
}
.notification-notice {
  background: #dbf3ff;
  border-color: #b5e0f5;
}
.notification-alert {
  color: #ad5e18;
  background: #fff8ed;
  border-color: #fcdba9;
}

/* =================================================================
   5. レスポンシブ対応
   ================================================================= */

@media (max-width: 991px) {
  /* ハンバーガーメニューを表示 */
  .menu-button {
    display: block;
    z-index: 1001;
  }
  /* ナビゲーションメニューをスライドイン形式に */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav-menu.is-active {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-list li {
    width: 100%;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 10px;
  }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  /* 2カラムレイアウトを1カラムに */
  .article-page-container,
  .search-page-container,
  .request-container {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .article-sidebar,
  .search-results-sidebar {
    position: static;
    order: 1; /* メインコンテンツの下に表示 */
    margin-top: 40px;
  }
  .article-main {
  background-color: #ffffff; /* ★記事エリアの背景を白に */
  padding: 30px 40px;      /* 内側に余白を追加 */
  border: 1px solid #e9ecef;
  border-radius: 12px;
}
  .request-main {
    order: 0;
  }
  .request-sidebar {
    order: 1;
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  /* フッターを縦積みに */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-title,
  .page-header h1,
  .article-title {
    font-size: 28px;
  }
}

/* 共通のユーティリティクラスとして追加 */
.text-center {
  text-align: center;
}

/* =================================
   カテゴリーページ
   ================================= */

/* --- 上部ナビゲーション (パンくずリストと検索) --- */
.sub-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* スマホ表示などで折り返す */
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 50px;
}
.sub-nav .breadcrumbs {
  margin: 0; /* breadcrumbsの余白をリセット */
  list-style: none; /* マーカー（数字や点）を非表示にする */
}
.sub-nav .search-container {
  min-width: 250px;
}


/* --- ページヘッダー (カテゴリータイトル) --- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e9ecef;
}
.page-header-title {
  flex-grow: 1;
}
.page-header h1 {
  font-size: 2.2rem; /* 36px相当 */
  margin-bottom: 5px;
}
.page-header-description {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 10px;
}

/* --- セクションタブ (ページ内リンク) --- */
.section-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}
.section-tab-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 20px; /* 角を丸くしてカプセル型に */
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
/* --- セクションタブ --- */
.section-tab-link:hover,
.section-tab-link.active {
  background-color: #007bff;
  border-color: #007bff;
  color: #ffffff;
}


/* --- セクションカードのコンテナ --- */
.section-list-container {
  display: grid;
  /* 画面幅に応じてカラム数を自動調整 */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}


/* --- 個々のセクションカード --- */
.section-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-top-color: #005bac;
  border-radius: 8px; 
  padding: 25px 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.section-card-title {
  margin: 0 0 20px;
  font-size: 1.5rem; /* 24px相当 */
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f5;
}
.section-card-title a {
  color: #212529;
  text-decoration: none;
}
.section-card-title a:hover {
  color: #007bff;
}


/* --- 記事リスト --- */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-list-item {
  padding: 12px 5px; /* 少し左右の余白を追加 */
  border-bottom: 1px solid #f8f9fa;
  position: relative;
}
.article-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.article-list-item:first-child {
  padding-top: 5px;
}

.article-list-link {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.article-list-link:hover {
  color: #007bff;
  transform: translateX(4px);
}
.article-list-icon {
  margin-right: 12px;
  color: #007bff;
  flex-shrink: 0;
}

/* --- 注目記事バッジ --- */
.article-promoted {
  background-color: #fffaf0;
  margin: 5px -15px;
  padding: 12px 15px;
  border-radius: 8px;
}
.badge-promoted {
  position: absolute;
  top: 14px;
  right: 5px;
  background-color: #ffc107;
  color: #212529;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}


/* --- カードフッター (すべて表示リンク) --- */
.section-card-footer {
  margin-top: 20px;
  text-align: right;
}
.see-all-articles {
  font-weight: 600;
  color: #005bac;
  text-decoration: none;
}
.see-all-articles:hover {
  text-decoration: underline;
}

/* --- カテゴリーが空の場合 --- */
.category-empty {
  text-align: center;
  padding: 50px 20px;
  color: #6c757d;
  background-color: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
}

/* --- ボタン関連 --- */
.btn {
  display: inline-block;
  padding: 12px 28px; /* 内側の余白を調整 */
  border-radius: 8px; /* 角を少し丸くする */
  font-size: 16px;
  font-weight: 600; /* 文字を少し太く */
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent; /* 枠線はデフォルトで透明に */
  transition: all 0.3s ease; /* アニメーションを滑らかに */
}

.btn-primary {
  background-color: #005bac; /* ブランドカラー */
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #004a8c; /* 少し暗い色に変化 */
  color: #ffffff;
  transform: translateY(-2px); /* 少し浮き上がる */
  box-shadow: 0 4px 15px rgba(0, 91, 172, 0.2); /* ブランドカラーに合わせた影 */
}

/* =================================
   新規リクエスト（お問い合わせフォーム）ページ
   ================================= */

/* --- ページ上部の区切り線 --- */
.container-divider {
  height: 8px;
  background-color: #005bac; /* ブランドカラー */
  margin-bottom: 50px;
}

/* --- ページタイトル --- */
.new-request-page h1 { /* h1に限定するため親クラスを追加 */
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}
.follow-up-hint {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #6c757d;
  margin-top: 10px;
}
.follow-up-hint a {
  color: #005bac;
}

/* --- フォーム全体のスタイル --- */
.form {
  max-width: 750px; /* フォームの最大幅を設定 */
  margin-bottom: 80px;
}
.form .form-field {
  margin-bottom: 30px;
}
.form .form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.ck-voice-label {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
/* --- 入力フィールド (input, textarea) --- */
.form .form-field input[type="text"],
.form .form-field input[type="email"],
.form .form-field textarea,
.form .form-field .nesty-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form .form-field textarea {
  min-height: 150px;
  resize: vertical;
}

/* ★フォーカス時のスタイル */
.form .form-field input[type="text"]:focus,
.form .form-field input[type="email"]:focus,
.form .form-field textarea:focus,
.form .form-field .nesty-input:focus {
  border-color: #005bac;
  box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.15);
  outline: none;
}

/* --- 添付ファイルのアップロードエリア --- */
.upload-dropzone {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  color: #6c757d;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.upload-dropzone[aria-busy="false"]:hover {
  border-color: #005bac;
  background-color: #f8f9fa;
}


/* --- 送信ボタン --- */
.form footer {
  text-align: center; /* ★中央揃えに変更 */
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}
/* Zendeskが生成するinput[type=submit]にボタンスタイルを適用 */
.form input[type="submit"] {
  width: 100%;      /* ★横幅を親要素に合わせて100%に設定 */
  max-width: 400px; /* ★ただし、最大幅を400pxに制限 */
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  background-color: #005bac;
  color: #ffffff;
}
.form input[type="submit"]:hover {
  background-color: #004a8c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 91, 172, 0.2);
}

#main-content.error-page {
  text-align: center; /* または Flexbox のスタイル */
}

/* ====== カスタムフッター用のスタイル ====== */
.custom-footer-content {
  padding: 20px 0;
}
.custom-footer-content {
  display: flex;
  flex-direction: column; /* 子要素を縦に並べる */
  align-items: flex-start; /* 子要素を左揃えにする */
  gap: 15px;             /* 上下の要素の間に15pxの間隔を空ける */
  padding: 20px 0;
}

.logo-security {
  height: 18px;
}

.footer-section-links {
  padding-top: 0;
}

.footer-section-seals {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding-bottom: 20px;
}