/*
 * 'NotoSerifJP' licensed under the SIL Open Font License
 * https://fonts.google.com/noto/specimen/Noto+Serif+JP（配布元のURL）
 */

@font-face {
  font-family: 'NotoSerifJP';
  font-display: block;
  src: url("../../NotoSerifCJKjp-Regular.woff") format("woff");
}


:root {
  --hcell-color: #00ffff;
}



body,
html {
  margin: 0;
  /* 解決するため */
  padding: 0;
  /* 入れておくと無難 */
  font-family: 'NotoSerifJP';
}

body {
  background-color: #191970;
  background-image: url("../../background.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  font-family: 'NotoSerifJP';
}

.header {
  display: flex;
  width: 100%;
  height: 6vw;
  align-items: center;
  background-color: #011734;
  margin-right: auto;
  margin-left: auto;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 10);
  font-family: 'NotoSerifJP';
  position: fixed;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform .4s ease;
  transition: transform .4s ease;
  transition: transform .4s ease, -webkit-transform .4s ease;
  z-index: 1;
}

.header img {
  width: 4.5vw;
}

.header--unpinned {
  -webkit-transform: translateY(-150%);
  transform: translateY(-150%);
}

.title {
  font-size: 3.1vw;
  text-shadow: 1px 2px 3px #808080;
  font-family: 'NotoSerifJP';
}

ul {
  overflow: hidden;
  list-style: none;
  margin: 0px 0px 0px 40vw;
  z-index: 20;
  font-family: 'NotoSerifJP';
}

ul li {
  display: inline-block;
  padding: 1vw 1vw 0.8vw 0.9vw;
  font-size: 2.2vw;
  font-family: 'NotoSerifJP';
  color: #e0ffff;
}



.main-panel {
  width: 700px;
  flex-grow: 1;
  background-color: #e0ffff;
  font-family: 'NotoSerifJP';
  margin: auto;
}



.top_picture img {
  width: 90%;
}

.top_picture {
  text-align: center;
}

.left-side-icon,
.right-side-icon {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.nayumi_icon {
  width: 8%;
  text-align: center;
}

.kaya_icon {
  width: 8%;
  text-align: center;
}

.nayumi_icon img {
  width: 100%;
  height: 100%;
  border: solid 1px #a86958;
  border-radius: 50%;
}

.kaya_icon img {
  width: 100%;
  height: 100%;
  border: solid 1px #332b37;
  border-radius: 50%;
}

.nayumi_icon p {
  margin: 0px;
  word-wrap: break-word;
  font-size: 85%;
}

.kaya_icon p {
  margin: 0px;
  word-wrap: break-word;
  font-size: 85%;
}

.bubble {
  max-width: 60%;
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  background: #f5f5f5;
  font-size: 100%;
  position: relative;
}

.bubble::before {
  content: "";
  width: 0;
  height: 0;
  border: 10px solid transparent;
  position: absolute;
}

.left-side-icon .nayumi_icon {
  float: left;
  margin-left: 10px;
}

.left-side-icon .bubble {
  margin: 10px 0 0 20px;
}

.left-side-icon .bubble::before {
  top: 15px;
  left: -20px;
  border-right-color: #f5f5f5;
}

.right-side-icon .kaya_icon {
  float: right;
  margin-right: 10px;
}

.right-side-icon .bubble {
  float: right;
  margin: 10px 20px 0 0;
}

.right-side-icon .bubble::before {
  top: 15px;
  right: -20px;
  border-left-color: #f5f5f5;
}

.mokuji {
  font-weight: bold;
}

.mokuji_box {
  border: thick double #778899;
  width: 80%;
  margin: auto;
  position: relative;
}

.mokuji_title {
  font-size: 120%;
  font-weight: bolder;
}


h2 {
  border-bottom: 2px solid black;
  width: 90%;
}

.formula {
  width: 80%;
  background-color: #fffffc;
  margin: auto;
  font-size: 100%;
  padding: 10px;
  border: groove 5px #333;
  font-family: 'NotoSerifJP';
}

.scroll {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
}

#top-link {
  cursor: pointer;
  font-family: 'NotoSerifJP';
}

#top-link:hover {
  color: black;
  background-color: white;
  font-family: 'NotoSerifJP';
}









.image-gallery {
  width: 100%;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'NotoSerifJP';
}

.image-container {
  display: inline-block;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  flex-basis: 45%;
  /* 画像の幅を調整（3つ並ぶので1つあたりの幅は全体の3分の1） */
  font-family: 'NotoSerifJP';
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
  font-family: 'NotoSerifJP';
}

.gallery-image:hover {
  opacity: 0.5;
  font-family: 'NotoSerifJP';
}

.image-description {
  text-align: center;
  font-size: 2vw;
}


.glaph img {
  width: 70%;
}

.glaph {
  text-align: center;
}

.before_article {
  text-align: center;
  font-size: 1.5vw;
}

.reference {
  width: 90%;
  margin: auto;
  word-wrap: break-word;
}

.copyright {
  color: #000;
  margin: auto;
  text-align: center;
  font-family: 'NotoSerifJP';
  font-size: 85%;
}



footer {
  width: 100%;
  background-color: #afeeee;
  margin: auto;
  font-family: 'NotoSerifJP';
}

.footer_title {
  color: #000;
  font-size: 150%;
  margin: auto;
  text-align: center;
}

.footer_title :hover {
  color: #008b8b;
}

.footer_menu {
  color: #000;
  font-size: 120%;
  margin: auto;
  text-align: center;
}

.footer_menu :hover {
  color: #008b8b;
}


.portrait {
  text-align: center;
}

.portrait img {
  width: 50%;
}

.portrait_name {
  text-align: center;
  width: 100%;
}

.search {
  width: 95%;
  text-align: right;
}

#timer_control{
  margin-bottom: 0px;
  width: 100%;
  margin: auto;
  font-family: 'NotoSerifJP';
}

#timer{
  padding-left: 20%;
  font-family: 'NotoSerifJP';
}

#controls {
  margin-bottom: 20px;
  font-family: 'NotoSerifJP';
}

#table {
  margin: auto;
  font-family: 'NotoSerifJP';
}

#h_cell {
  background-color: var(--hcell-color);
}

#a1 {
  border: solid 2px rgb(65,105,225);
}

#a2 {
  border: solid 2px rgb(210,105,30);
}

#tau1 {
  border: solid 2px rgb(65,105,225);
}

#tau2 {
  border: solid 2px rgb(210,105,30);
}

.c_parm {
  width: 80%;
  font-family: 'NotoSerifJP';
}

.glaph-gallery{
  width: 100%;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'NotoSerifJP';
}

.glaph-container {
  display: inline-block;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  flex-basis: 49.7%;
  font-family: 'NotoSerifJP';
}

.glaph-image {
  max-width: 100%;
  max-height: 100%;
  font-family: 'NotoSerifJP';
}


#swing {
  display: flex;
}

#swing_screen {
  border: 2px solid #000;
  margin: auto;
  position: relative;
}

#button_start {
  width: 80%;
  padding: 7px;
  cursor: pointer;
  font-size: 110%;
  background: #f0f8ff;
  border: 4px outset #333;
  border-radius: 10px;
  border-bottom: solid 4px #333;
  font-family: 'NotoSerifJP';
}

#button_start:hover {
  background-color: #fffafa;
  font-family: 'NotoSerifJP';
}

#button_start:active {
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  border-bottom: none;
}

#button_swing {
  width: 100%;
  padding: 7px;
  cursor: pointer;
  font-size: 110%;
  background: #ff4500;
  border: 4px outset #333;
  border-radius: 10px;
  border-bottom: solid 4px #333;
  font-family: 'NotoSerifJP';
}

#button_swing:hover {
  background-color: #ff7f50;
  font-family: 'NotoSerifJP';
}

#button_swing:active {
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  border-bottom: none;
}