@charset "UTF-8";

/* ============================================================
   電気化学会 グローバル化推進委員会 サイト共通スタイル

   本体サイト（electrochem.jp / WordPress テーマ "electrochem"）の
   配色・文字サイズ・余白に合わせてあります。
   本体サイトのデザインが変わらない限り、編集は不要です。

   本体から引き継いだ値:
     ネイビー #012240 ／ ブルー #104d95 ／ 本文 #333
     罫線 #ddd, #ccc ／ 背景 #f2f2f2 ／ 表の見出し #f6f6f6
     フッター #222 ／ 本文中リンク #4538e1
     基準 1rem = 10px（html font-size: 62.5%）／ 本文フォント: 游ゴシック系
   ============================================================ */

:root {
  --navy:   #012240;
  --blue:   #104d95;
  --text:   #333;
  --line:   #ddd;
  --line2:  #ccc;
  --gray:   #f2f2f2;
  --th-bg:  #f6f6f6;
  --link:   #4538e1;
  --dark:   #222;
}

/* ---------- リセットと基本（本体サイトに準拠） ---------- */

html {
  font-size: 62.5%;          /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body, div, p, h1, h2, h3, ul, ol, li, table, th, td,
header, footer, nav, section, article {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴPro W3",
               "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic",
               "メイリオ", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body { background: #fff; color: var(--text); }

ul, ol { list-style: none; }

a { text-decoration: none; transition: all .2s ease; }

a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */

.site__header {
  display: flex;
  width: 1100px;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 1.8rem 0;
}

.site__header .society {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: .3rem;
}

.site__header .society:hover { opacity: .8; }

.site__header .committee {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.3;
}

.site__header .committee .en {
  display: block;
  font-size: 1.2rem;
  font-weight: normal;
  color: #666;
  letter-spacing: 0.06em;
  margin-top: .2rem;
}

.site__header .box__function { display: flex; align-items: center; }

.site__header .box__function a {
  display: flex;
  width: 110px;
  height: 35px;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #fff;
  border-radius: 4px;
  margin-left: 1rem;
}

.site__header .box__function .toLang   { background: var(--navy); }
.site__header .box__function .toParent { background: var(--blue); }
.site__header .box__function a:hover   { opacity: .8; }

/* ---------- 目次バー（スクロールしても上に残ります） ---------- */

.gnav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: var(--blue);
}

.gnav .inner { display: flex; width: 1100px; margin: 0 auto; }

.gnav .inner a {
  display: flex;
  position: relative;
  height: 5rem;
  justify-content: center;
  align-items: center;
  padding: 0 3rem;
  font-size: 1.4rem;
  color: #fff;
}

/* 項目のあいだの縦罫（本体サイトと同じ体裁） */
.gnav .inner a::before {
  display: block;
  position: absolute;
  content: "";
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, .4);
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

.gnav .inner a:last-child::after {
  display: block;
  position: absolute;
  content: "";
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, .4);
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

.gnav .inner a:hover { background: rgba(255, 255, 255, .15); }

/* ---------- レイアウト ---------- */

.content { display: block; width: 760px; margin: 0 auto; }

.breadcrumbs {
  display: block;
  width: 100%;
  font-size: 1.3rem;
  color: var(--navy);
  padding: 2.5rem 0 2rem;
}

.breadcrumbs a { color: var(--navy); }
.breadcrumbs a:hover { opacity: .8; }

.main__content { display: block; width: 100%; margin-bottom: 6rem; }

/* ---------- 見出し ---------- */

.main__content h1 {
  display: block;
  width: 100%;
  font-size: 2.4rem;
  color: var(--navy);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.main__content h1 .en {
  display: block;
  font-size: 1.3rem;
  font-weight: normal;
  color: #666;
  letter-spacing: 0.06em;
  margin-top: .3rem;
}

/* 節の見出し。目次バーの高さぶん、飛び先の位置をずらしています */
.main__content h2 {
  display: block;
  position: relative;
  width: 100%;
  font-size: 2rem;
  color: var(--navy);
  font-weight: bold;
  border-bottom: 2px solid var(--line);
  padding-bottom: .5rem;
  margin: 5rem 0 1.5rem;
  scroll-margin-top: 6rem;
}

.main__content h2::after {
  display: block;
  position: absolute;
  content: "";
  width: 8rem;
  height: 2px;
  background: var(--blue);
  bottom: -2px;
  left: 0;
}

.main__content section:first-of-type h2 { margin-top: 3rem; }

/* 節の中の小見出し（帯） */
.main__content h3 {
  display: flex;
  width: 100%;
  align-items: center;
  background: var(--gray);
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: bold;
  padding: 1rem 1rem 1rem 1.5rem;
  margin: 3rem 0 1rem;
  border-left: 3px solid var(--blue);
}

/* ---------- 本文 ---------- */

.main__content p {
  display: block;
  width: 100%;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.8;
  text-align: justify;
}

.main__content p + p { margin-top: 1em; }

.main__content a { color: var(--link); }
.main__content a:hover { opacity: .8; }

.main__content strong { font-weight: bold; }

.main__content .dotted { font-size: 1.5rem; padding-left: 1.5em; margin: 1.5em 0; }
.main__content .dotted li { list-style: disc; line-height: 1.8; margin-bottom: .5rem; }

.main__content .note {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.8;
  margin-top: 1rem;
}

/* ---------- 表 ---------- */

.box__table { display: block; width: 100%; overflow-x: auto; margin-bottom: 1rem; }

.main__content table { width: 100%; border-collapse: collapse; }

.main__content table tr th {
  background: var(--th-bg);
  font-size: 1.3rem;
  font-weight: bold;
  text-align: left;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
}

.main__content table tr td {
  font-size: 1.3rem;
  text-align: left;
  vertical-align: top;
  padding: .8rem 1rem;
  border: 1px solid var(--line2);
}

.main__content table tr td .en { display: block; font-size: 1.2rem; color: #666; }

.main__content table .year { white-space: nowrap; }

/* ---------- 連絡先 ---------- */

.box__contact {
  background: var(--gray);
  border-left: 3px solid var(--blue);
  padding: 2rem;
}

.box__contact p { font-size: 1.4rem; line-height: 1.9; text-align: left; }

/* ---------- フッター ---------- */

footer { display: block; width: 100%; background: var(--dark); padding: 2.5rem 0; }

footer .inner { display: block; width: 1100px; margin: 0 auto; }

footer .links { display: flex; flex-wrap: wrap; gap: 0 2.5rem; margin-bottom: 1.5rem; }

footer .links a { font-size: 1.3rem; color: #fff; }
footer .links a:hover { opacity: .8; }

footer .copy { display: block; font-size: 1.3rem; color: #fff; opacity: .8; }

/* ---------- スマートフォン（本体サイトと同じ 767px で切替） ---------- */

@media screen and (max-width: 767px) {

  .site__header {
    width: 100%;
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .site__header .committee { font-size: 1.8rem; }
  .site__header .box__function { margin-top: 1rem; }
  .site__header .box__function a { width: 10rem; margin: 0 1rem 0 0; }

  /* 目次は2列に折り返します */
  .gnav .inner { width: 100%; flex-wrap: wrap; }
  .gnav .inner a {
    width: 50%;
    height: 4.4rem;
    padding: 0 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }
  .gnav .inner a::before { display: none; }
  .gnav .inner a:nth-child(even)::before {
    display: block;
    height: 100%;
    top: 0;
    transform: none;
  }
  .gnav .inner a:last-child::after { display: none; }

  .content { width: 100%; padding: 0 1.5rem; }
  .breadcrumbs { padding: 1.5rem 0; font-size: 1.2rem; }
  .main__content { margin-bottom: 3rem; }

  .main__content h1 { font-size: 1.8rem; }
  .main__content h2 { font-size: 1.6rem; margin-top: 4rem; scroll-margin-top: 10rem; }
  .main__content h3 { font-size: 1.4rem; }
  .main__content p,
  .main__content .dotted { font-size: 1.4rem; }

  footer .inner { width: 100%; padding: 0 1.5rem; }
  footer .links { flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
