@charset "UTF-8";

/* -- 以下は削除不可 変更は可能です -- */
#footer #csslink a,
#footer #csslink a:hover { text-decoration: none; }

/* -- 変更可能部分 配置とサイズ -- */
#footer #csslink {
  text-align: right;
  font-size: 80%;
  margin: 0;
  padding: 0 20px 5px 0;
}

/* -- 変更可能部分 色 -- */
#footer #csslink,
#footer #csslink a,
#footer #csslink a:hover { color: #006699; }

#footer #csslink,
#footer #csslink a,
#footer #csslink a:hover { background-color: #003366; }

/*----------------------------------------------------------
  レイアウト関係
----------------------------------------------------------*/

/*---------------------------------フォントサイズなど*/
body {
  text-align: center;
  font-size: 100%;
  font-family: "ヒラギノ角ゴ Pro W3", "メイリオ", Osaka, sans-serif;
  margin: 0;
  padding: 0;
}

/*---------------------------------ページ全体を包括*/
#wrapper {
  text-align: left;
  margin: 0px auto 0px auto;
  padding: 0px 0px 0px 0px;
}

/*---------------------------------ヘッダー部分*/
#header {
  margin: 0px 0px 0px 0px;
  padding: 10px 20px 5px 20px;
  background-color: #003366;
  color: #ffffff;
}

/*---------------------------------コンテンツ部分 サイドバー部分 包括*/
#container {
  width: 1200px;
  margin: 0px auto 0px auto;
  padding: 0px 0px 0px 0px;
  border-left: 1px solid #003366;
  border-right: 1px solid #003366;
}

/*---------------------------------コンテンツ部分*/
#contents {
  width: 999px;
  float: right;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  border-left: 1px solid #003366;
}

.contents-inner {
  margin: 20px 20px 20px 20px;
  padding: 0px 0px 0px 0px;
}

/*---------------------------------サイドバー部分*/
#sidebar {
  width: 200px;
  float: left;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

.sidebar-inner {
  margin: 20px 10px 20px 10px;
  padding: 0px 0px 0px 0px;
}

/*---------------------------------アンダーナビ部分*/
#undernavi {
  text-align: center;
  clear: both;
  margin: 0px 0px 0px 0px;
  padding: 5px 0px 5px 0px;
  border-top: 1px solid #003366;
}

/*---------------------------------フッター部分*/
#footer {
  text-align: center;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  background-color: #003366;
  color: #ffffff;
}

/*----------------------------------------------------------
  メニュー部分の指定
----------------------------------------------------------*/
.menu {
  margin: 0px 0px 20px 0px;
  padding: 0px 0px 0px 0px;
  list-style-type: none;
}

.menu li {
  display: inline;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

.menu li a {
  text-decoration: none;
  width: 170px;
  display: block;
  margin: 0px 0px 1px 0px;
  padding: 5px 5px 5px 5px;
  background-color: #cccccc;
  color: #000033;
  overflow: hidden;
}

.menu li a:hover {
  text-decoration: underline;
  background-color: #003366;
  color: #ffffff;
}

/*----------------------------------------------------------
  ヘッダー内の指定
----------------------------------------------------------*/

/* -- 見出し -- */
h1 {
  font-size: 150%;
  margin: 0px 0px 10px 0px;
  padding: 0px 0px 0px 0px;
}

/*----------------------------------------------------------
  コンテンツ内の指定
----------------------------------------------------------*/
h2 {
  font-size: 120%;
  margin: 0px 0px 10px 0px;
  padding: 0px 0px 0px 0px;
}

h3 { }

h4 { }

h5 { }

h6 { }

blue {
  color: #003399;
  font-weight:bold;
}

red {
  color: ff3300;
  font-weight:bold;
}

/* -- 文字 -- */
p {
  margin: 0px 0px 0.5em 0px;
  padding: 0px 0px 0px 0px;
  line-height: 1.5em;
}

/* -- リスト -- */
#contents ul { }

#contents ol { }

#contents li { }

/*----------------------------------------------------------
  アンダーナビ内の指定
----------------------------------------------------------*/
#undernavi p {
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

/*----------------------------------------------------------
  著作権表記
----------------------------------------------------------*/
#footer p {
  margin: 0px 0px 0px 0px;
  padding: 0.5em 0 0.5em 0;
}

/*----------------------------------------------------------
  Responsive layout additions (2026)
  The original styles above are retained to preserve the
  desktop appearance and template attribution.
----------------------------------------------------------*/

/* Keep the traditional 200px sidebar on desktop, but allow
   the overall layout to shrink on smaller screens. */
#container {
  width: 100%;
  max-width: 1202px;
  box-sizing: border-box;
}

#contents {
  width: calc(100% - 200px);
  box-sizing: border-box;
  min-width: 0;
}

/* Respect image width attributes without letting large research
   figures force horizontal scrolling on a narrow device. */
#contents img {
  max-width: 100%;
  height: auto;
}

/* Long URLs and publication titles must not enlarge the viewport. */
#contents {
  overflow-wrap: anywhere;
}

@media screen and (max-width: 768px) {
  #header {
    padding: 14px 16px 12px;
  }

  #header h1 {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  /* Stack navigation and article, with navigation first. */
  #container {
    display: flex;
    flex-direction: column;
    border-left: 0;
    border-right: 0;
  }

  #sidebar {
    order: 0;
    width: 100%;
    float: none;
    border-bottom: 1px solid #003366;
    box-sizing: border-box;
  }

  .sidebar-inner {
    margin: 12px 16px;
  }

  .sidebar-inner h2 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
  }

  .menu li {
    display: block;
    min-width: 0;
  }

  .menu li a {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    border-radius: 3px;
    overflow-wrap: anywhere;
  }

  #contents {
    order: 1;
    width: 100%;
    float: none;
    border-left: 0;
  }

  .contents-inner {
    margin: 20px 16px;
  }

  #contents ul,
  #contents ol {
    padding-left: 1.5em;
  }

  #undernavi {
    order: 2;
  }
}
