@charset "utf-8";

:root {
  /* グリーンベース */
  /* --main-body-color: #fff7f1;
  --main-header-color: #34542c;
  --main-font-color: #1a1311;
  --main-border-color: #800000;
  --main-box-color: #fff0e9;
  --nav-background-color: #291a88cc;
  --article-title-color: #fff0e9;
  --article-title-backcolor: #5b5b2c;
  --header-font-color: #fff0e9;
  --footer-font-color: #fff0e9; */

  /* ブルーベース */

  /* --main-body-color: #fff0e2; */
  --main-body-color: #fff4ea;
  --main-header-color: #00061cde;
  --main-font-color: #1a1311;
  --main-border-color: #291a88cc;
  --nav-background-color: #fef682ed;
  --nav-font-color: #1a1311;
  --topimage-font-color: #fff0e9;
  --topimage-font-shadow-color: #fef682d3;
  --article-title-color: #fff0e9;
  --article-title-backcolor: #0d3263;
  --article-title-inside_backcolor: #ffe600;
  --header-font-color: #fff0e9;
  --footer-font-color: #fff0e9;
  --a-hover-color: #ffe605;
  --hamburger_backcolor: #ffffff99;
  --hamburger_color: #000000;
}

html {
  /* ページ内リンクでスクロールする際に、ヘッダーの高さを考慮して遷移させる。見えやすいように+10pxを追加 */
  scroll-padding-top: calc(100px + 10px);
}
body {
  /* 基本文字形式設定 */
  color: var(--main-font-color);
  font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Verdana, sans-serif;
  letter-spacing: 0.06em;
  line-height: 1.8;
  /*背景設定 */
  background-color: var(--main-body-color);
}

/* 初期設定 start*/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  vertical-align: bottom;
}
/* 初期設定 end*/

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: var(--header-font-color);
  background-color: var(--main-header-color);
  height: 100px;
  box-shadow: 0 3px 10px white;
  z-index: 999;
}

/* .toggle-menu-button {

  width: 100px;
} */

nav {
  width: 50%;
  position: absolute;
  top: 40px;
  left: 45%;
  /* border: solid #fff0e2; */
}

/* ナビゲーション */
#menu-btn,
.btn {
  display: none;
}

nav ul {
  display: flex;
  justify-content: space-between;
}

nav ul li a:hover {
  color: white;
  text-shadow: 0 0 10px var(--a-hover-color), 0 0 20px var(--a-hover-color),
    0 0 40px var(--a-hover-color), 0 0 48px var(--a-hover-color),
    0 0 160px var(--a-hover-color), 0 0 180px var(--a-hover-color),
    0 0 200px var(--a-hover-color);
  transition: 0.8s;
}

.topimage {
  width: 100%;
  margin-top: 100px;
  height: calc(100vh - 100px);
  /* background-image: url(./img/topimg_green.png); */
  background-image: url(../img/topimg_blue.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.topimage-text {
  font-size: 80px;
  color: var(--topimage-font-color);
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  width: 100%;
  /* border: solid #fff0e2; */
  padding-left: 80px;
  padding-top: 100px;
  text-shadow: 1px 1px 10px var(--topimage-font-shadow-color);
}

section {
  /* border: solid #000; */
  min-width: 768px;
  width: 80%;
  margin: 50px auto 0;
}

.explanation {
  /* border: solid #000; */
  width: 80%;
  margin: 0 auto;
}

.profile,
.research,
.philosophy,
.books,
.access {
  /* 各メニューごとに余白を設定 */
  margin-bottom: 150px;
}

/* タイトルボックス start*/
.title_box {
  /* border: none; */
  width: 300px;
  padding: 5px;
  /* border-radius: 15px; */
  background-color: var(--article-title-backcolor);
  /* margin-top: 100px; */
  position: relative;
  /* margin: 0 auto; */
  margin-bottom: 30px;
}

.inside_box {
  position: absolute;
  width: 5%;
  height: 70%;
  top: calc(30% / 2);
  left: 5%;
  background-color: var(--article-title-inside_backcolor);
}

.title_box h2,
.title_box h4 {
  text-align: center;
  line-height: 1.2;
  color: var(--article-title-color);
}
/* タイトルボックス end*/

/* プロフィール */
section ul {
  /* border: solid; */
  display: flex;
  /* justify-content: space-between; */
}

.profile ul {
  align-items: center;
}
.profile-pic {
  /* border: solid; */
  flex-basis: 50%;
  /* width: 200px; */
  text-align: center;
}
.profile-name {
  /* border: solid; */
  flex-basis: 50%;
}

/* .profile-name h2 {
  background: linear-gradient(transparent 70%, yellow 70%);
} */

.profile img {
  /* align-items: center; */
  width: 250px;
  height: 250px;
}

.explanation .text_labo_contact {
  padding-top: 20px;
  text-align: center;
  font-size: small;
}

.books-pic img {
  width: 150px;
}
.books-pic {
  flex-basis: 20%;
  margin-bottom: 20px;
}
.books-desc {
  flex-basis: 80%;
  padding-left: 20px;
  margin-bottom: 20px;
}

.book-title {
  font-size: 20px;
  font-weight: bold;
}
.book-subtitle {
  font-size: 16px;
  font-weight: bold;
}

/* アクセス */
.access {
  /* border: solid; */
  align-items: center;
}

/* .google-map {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: block;
  margin-bottom: 16px;
  box-sizing: border-box;
  border: 4px solid #00026b;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
} */

.google-map iframe {
  width: 100%;
  min-height: 400px;
}

address {
  font-style: normal;
}
footer {
  /* max-width: 1200px; */
  color: var(--footer-font-color);
  background-color: var(--main-header-color);
  padding-top: 40px;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.left-margin {
  margin-right: 10px;
}
.copyright {
  padding-top: 30px;
  font-size: 10px;
}

.fadeIn {
  opacity: 0;
  /* transform: translate(0, 0px); */
  transition: all 2s;
}

.fadeIn.up {
  opacity: 1;
  /* transform: translate(0, 0); */
}

@media (max-width: 768px) {
  html {
    /* ページ内リンクでスクロールする際に、ヘッダーの高さを考慮して遷移させる。見えやすいように+10pxを追加 */
    scroll-padding-top: calc(60px + 10px);
  }

  header {
    /* width: 50%; */
    height: 60px;
    padding-top: 0;
  }

  section {
    /* border: solid #000; */
    min-width: auto;
    width: 95%;
  }

  .explanation {
    /* border: solid #000; */
    width: 95%;
  }
  .explanation ul {
    display: block;
  }

  .topimage {
    /* ヘッダーの高さを含める */
    margin-top: 60px;
  }

  .topimage-text {
    font-size: 50px;
    padding-left: 50px;
    padding-top: 100px;
  }

  /* ハンバーガーメニュー　start */
  .btn {
    width: 45px;
    height: 45px;
    background-color: var(--hamburger_backcolor);
    border-radius: 5px;
    position: fixed;
    top: 8px;
    right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
  }

  .btn span,
  .btn span::before,
  .btn span::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--hamburger_color);
    position: absolute;
    transition: 0.5s;
  }

  .btn span::before {
    top: -10px;
  }

  .btn span::after {
    top: 10px;
  }
  /* ハンバーガーメニュー　end */

  /* ハンバーガーメニューチェック　start */
  #menu-btn:checked ~ .btn span {
    background-color: transparent;
  }

  #menu-btn:checked ~ .btn span::before {
    top: 0;
    transform: rotate(45deg);
  }

  #menu-btn:checked ~ .btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  nav {
    /* 初期化 */
    position: static;
    width: auto;
  }

  .g-nav {
    /* ナビを用意 位置は画面外に設定*/
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--nav-background-color);
    color: var(--nav-font-color);
    z-index: 100;
    transition: 0.5s;
  }

  .g-nav li {
    margin-bottom: 40px;
  }

  #menu-btn:checked ~ .g-nav {
    left: 0;
  }

  main .topimage {
    height: calc(100vh - 60px);
  }

  main section ul {
    display: block;
  }

  main section li {
    width: 100%;
  }
  section ul li p {
    width: 90%;
  }

  .profile img {
    /* align-items: center; */
    width: 150px;
    height: 150px;
  }

  .books ul li {
    width: 100%;
  }
}
