
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  line-height: 1.7;
  color: #111;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.min-h {
  min-height: 400px;
}


header, footer {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

footer {
  border-top: 1px solid #eee;
  border-bottom: none;
  margin-top: 40px;
}

/* ==============================
   グローバルナビ：均等幅レイアウト
================================= */

header nav {
  width: 100%;
}

header nav ul {
  display: flex;
  width: 100%;
  padding: 0;
  margin: 0;
}

header nav ul li {
  flex: 1;              /* ← 均等幅の核心 */
  list-style: none;
}

header nav ul li a {
  display: block;
  text-align: center;   /* ← テキスト中央 */
  padding: 14px 0;
  text-decoration: none;
  color: #111;
  border-left: 1px solid #e7e7e7;
}

header nav ul li:first-child a {
  border-left: none;
}

header nav ul li a:hover {
  background: #f6f6f6;
}

header nav ul li a {
  line-height: 60px;
  padding: 0;
}

header nav ul li.current-menu-item a {
  border-bottom: 3px solid #909090;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 16px;
}

nav a {
  text-decoration: none;
  color: #1f4bd6;
}

/* ==============================
   ヘッダー（二段構成）
================================= */

.site-header {
  border-bottom: 1px solid #eee;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.header-logo img {
  display: block;
  height: auto;
  max-width: 300px;
}

/* 上段右：お問い合わせ / Q&A */
.header-utility {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.header-utility__link {
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.header-utility__link:hover {
  text-decoration: underline;
}


/* スマホでは上段を縦、下段ナビを縦（必要なら） */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-utility {
    width: 100%;
    justify-content: flex-end;
  }

  .header-bottom nav ul {
    flex-direction: column;
  }

  .header-bottom nav ul li a {
    border-left: none;
    border-top: 1px solid #e7e7e7;
  }

  .header-bottom nav ul li:first-child a {
    border-top: none;
  }
}


/* ページイメージ */
.page-hero {
  background: #f6f6f6;
  border-bottom: 1px solid #e7e7e7;
  padding: 28px 0;
  margin-bottom: 24px;
}
.page-hero__title { margin: 0; font-size: 28px; }

/* お知らせ一覧 */

.news-section {
  margin-top: 40px;
}

.news-list {
  margin-top: 20px;
}

.news-item {
  margin-bottom: 12px;
}

.news-item time {
  color: #777;
  font-size: 14px;
  margin-right: 12px;
}

.news-item a {
  text-decoration: none;
  color: #111;
}

.news-item a:hover {
  color: #1f4bd6;
}

.news-more {
  margin-top: 20px;
}

.news-more a {
  display: inline-block;
  padding: 8px 16px;
  background: #A0A0A0;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.news-more a:hover {
  opacity: 0.85;
}



/*　サイドバー　箱*/

/* 2カラムレイアウト（右サイドバー） */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ローカルメニューは縦並び固定（グロナビのflexの影響を受けないようにする） */
.local-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;          /* ← flex等を打ち消す */
}

.local-menu__list > li {
  display: block;          /* ← inline化されていても縦並びに戻す */
  margin: 6px 0;
}

.local-menu__list > li > a {
  display: block;          /* ← クリック範囲も整う */
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #1f4bd6;
}

.local-menu__list > li > a:hover {
  background: #f6f6f6;
}

@media (min-width: 980px) {
  .layout--sidebar-right {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* サイドバーが下に落ちるのを防ぐ */
.sidebar {
  min-width: 0;
}
.content {
  min-width: 0;
}


/*　サイドバー　中身　*/
.sidebar { }

.local-menu {
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
  background: #fff;
}

.local-menu__title {
  margin: 0 0 10px;
  font-weight: 700;
}

.local-menu__title a { color: #111; text-decoration: none; }

.local-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.local-menu__list li { margin: 6px 0; }

.local-menu__list a {
  color: #1f4bd6;
  text-decoration: none;
}

.local-menu__list .current_page_item > a,
.local-menu__list .current_page_ancestor > a {
  font-weight: 700;
  text-decoration: underline;
}


/** お問い合わせ */
.f-rows {
    margin-bottom: 20px;
}

.f-rows span {
    display: inline-block;
    width: 160px;
}

/* 汎用CSS */

.u_line {
    border-bottom: solid 1px #A0A0A0;
}
