@charset "UTF-8";

/* ========== Base ========== */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 0.8em "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  line-height: 1.5;
}

p,
ul,
ol {
  margin: 0;
  padding: 0;
}

dt {
  font-weight: bold;
}

table {
  border-collapse: collapse;
}

th,
td {
  line-height: 1.5;
}

fieldset,
img {
  border: none;
}

em {
  font-style: normal;
  font-weight: bold;
}

hr {
  display: none;
}

/* links */
a {
  color: #D2691E;
  text-decoration: underline;
}

a:hover,
a:focus,
a:active {
  color: #FF8C00;
}

/* util */
.hide {
  position: absolute;
  left: -999px;
  width: 999px;
}

/* ========== Layout ========== */
/* いまのテンプレで使う .container を追加（旧 #container は未使用なら削除してOK） */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* サイトヘッダー/フッター（header.php で class="header" 想定） */
/* === ヘッダー === */
.site-header {
  /* 旧 .header を修正 */
  margin: 0;
  background: #fff;
}

/* === 言語切替バー === */
.language-switch {
  text-align: right;
  padding: 10px 20px;
  font-size: 14px;
  background: #000;
  color: #fff;
}

/* <ul><li>… に対応させる */
.language-switch ul {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  /* スペース */
  list-style: none;
  /* ● を消す */
  margin: 0;
  padding: 0;
}

.language-switch li {
  margin: 0;
  padding: 0;
}

/* 区切り線が欲しければこちらをON
.language-switch li + li { position: relative; padding-left: .75rem; }
.language-switch li + li::before { content: "|"; position: absolute; left: 0; top: 0; }
*/

/* リンク/現在地の見た目 */
.language-switch a,
.language-switch span[aria-current="true"] {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.language-switch a:hover {
  text-decoration: underline;
}

.language-switch span[aria-current="true"] {
  opacity: .7;
  /* 現在言語を薄く */
  cursor: default;
}

/* ヘッダーとロゴ */
.site-header {
  border-top: 4px solid #6495ED;
  border-bottom: 4px solid #6495ED;
  background: #fff;
}

.header-logo {
  text-align: center;
  padding: 10px 0;
}

.header-logo img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 300px;
  /* 画像幅上限 */
  width: 100%;
  /* 小さい画面での縮小 */
}

/* すでに .language-switch の見た目が content.css にあるならそのままでOK */

.site-footer {
  margin-top: 3rem;
  border-top: 4px solid #6495ED;
  background: #000;
  color: #fff;
  padding: 16px 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-link {
  text-align: center;
  margin-bottom: 6px;
  font-size: 0.95em;
}

.footer-copyright {
  text-align: center;
  font-size: 0.9em;
  opacity: .9;
}

.site-footer .footer-links ul {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.site-footer .footer-links li+li {
  position: relative;
  padding-left: .75rem;
}

.site-footer .footer-links li+li::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 0;
}

/* アクセシビリティ用ユーティリティ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  /* 連続表示回避 */
  border: 0 !important;
}

/* スキップリンク：通常は非表示、フォーカス時だけ見せる */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: .5rem .75rem;
  text-decoration: none;
  border-radius: .25rem;
}

.skip-link:focus {
  left: 0.5rem;
  /* 画面内に出す */
  top: 0.5rem;
  outline: 2px solid #fff;
}



/* 旧スタイル互換（必要なら残す。不要なら削除可）
#header { margin-bottom: 0; border-top: 4px solid #6495ED; border-bottom: 4px solid #6495ED; background:#fff; text-align:left; }
#footer { font-size: .9em; text-align: center; padding: 10px; background:#000; }
.headertitle { margin:0; padding:5px; font-size:2em; }
.headertitle a { color:#000; text-decoration:none; }
*/