/*
  上のメニューを、画像ではなく文字で表示する（2026-11-30 追加）。
  見た目は元の画像（menu1.jpg・menu2.jpg ほか）に合わせている。
  パソコンの幅（981px 以上）だけに効かせる。スマホ・タブレットは responsive.css の文字ボタンのまま。
*/
/* 書体：Noto Sans JP（SIL Open Font License 1.1、fonts/OFL.txt）を自社のサーバーに置いて使う。
   メニューと見出しに出てくる文字だけに絞ったファイル（約180KB）。新しい見出しの文字を足したら作り直すこと（tools/make_font_subset.md）。 */
@font-face {
  font-family: "GLI Noto Sans JP";
  src: url("fonts/NotoSansJP-GLI-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
#menu ul li a, #menu .nav-sub,
h1.pagetitle, .content-entry h2, .content-entry h3, h5.side, .news-past summary {
  font-family: "GLI Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif !important;
}

.nav-sub { display: block; }

@media screen and (min-width: 981px) {
  #menu ul li a {
    background-image: none !important;
    text-indent: 0 !important;
    position: relative;
    box-sizing: border-box;
    height: 52px !important;
    margin-top: 5px;
    padding-top: 7px;
    text-align: center;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    font-weight: 500 !important;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.06em !important;
    color: #222 !important;
    text-decoration: none;
    background-color: #fff;
    border-left: 1px solid #f1f1f1;
    border-right: 1px solid #e4e4e4;
  }
  #menu ul li a::after {
    content: "";
    position: absolute;
    left: 4px; right: 4px; bottom: 0;
    height: 3px;
    background: #d8d8d8;
  }
  #menu ul li a:hover::after,
  #menu ul li a:focus::after { background: #3e6b4a; }
  #menu ul li a:focus { outline: 1px dotted #3e6b4a; }
  #menu .nav-sub {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #9a9a9a;
    margin-top: 1px;
  }
  /* 英語のメニューは1段 */
  ul#navigation1_en li a, ul#navigation2_en li a { font-size: 16px; padding-top: 14px; letter-spacing: 0 !important; }
}

/* スマホ・タブレットでは英語の小さな字を目立たせない */
@media screen and (max-width: 980px) {
  #menu .nav-sub { font-size: 10px; color: #6b8794; font-weight: normal; }
}

/* 言語の切り替え（国旗をやめて文字のボタン。2026-11-30） */
#language { width: auto !important; padding: 12px 0 0 0 !important; float: right; }
#lang-switch { font-size: 13px; line-height: 1; white-space: nowrap; }
#lang-switch a, #lang-switch .cur { display: inline-block; padding: 6px 10px; border-radius: 4px; }
#lang-switch a { color: #1c4a5e; text-decoration: none; border: 1px solid #c9d6dd; background: #fff; }
#lang-switch a:hover, #lang-switch a:focus { background: #eef4f7; }
#lang-switch .cur { font-weight: bold; color: #333; }
#lang-switch .sep { color: #aaa; margin: 0 2px; }
@media screen and (max-width: 980px) {
  #header-inner { position: relative; }
  #language { position: absolute !important; top: 14px; right: 12px; float: none !important; margin: 0 !important; padding: 0 !important; }
  #lang-switch { font-size: 14px; }
  #lang-switch a, #lang-switch .cur { padding: 9px 12px; }
}
