@charset "utf-8";

:root {
  /* メイン */
  --main-font-color: #000000;

  /* ヘッダー */
  --main-header-background-color: #f0f0f0;
  /* ナビ */
  --nav-background-color: #f0f0f0eb;
  --nav-font-color: #000000;
  --nav-box-shadow-color: #ffffff;
  --nav-a-hover-background-color: #c7c7c7;
  --nav-a-hover-color: #026e71;
  --nav-a-hover-underbar-color: #000000;
  /* ハンバーガーメニュー */
  --hamburger_backcolor: #ffffff99;
  --hamburger_color: #000000;

  /* トップイメージ */

  /* トップイメージテキスト */
  --topimage-text-font-color: #000000;
  /* 円の色 */
  --circleLeft-color: #e74010;
  --circleRight-color: #0ab1b7;

  /* セクションボタン */
  --section-vertical-title-color: #0ab1b7;
  --section-title-underbar-color: #e74010;

  /* 経歴 */
  --biography-dt-background-color: #c9c7e0;
  --biography-dd-background-color: #f0f0fd;

  /* リンク */
  --link-font-color: #333333;

  /* フッター */
  --footer-font-color: #fff0e9;
  --footer-background-color: #919191;
}

html {
  /* ページ内リンクでスクロールする際に、ヘッダーの高さを考慮して遷移させる。さらに見えやすいように+10pxを追加 */
  scroll-padding-top: calc(100px + 10px);
  scroll-behavior: smooth; /* スムーズなスクロール [2] */
}
body {
  /* 基本文字形式設定 */
  color: var(--main-font-color);
  font-family: "Quicksand", "Zen Maru Gothic", 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 start */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: var(--nav-font-color);
  background-color: var(--main-header-background-color);
  height: 100px;
  box-shadow: 0 3px 10px var(--nav-box-shadow-color);
  z-index: 999;
}
.header-icon {
  height: 30px;
  margin: 35px 20px;
}
/* header end */

/* ナビゲーション satrt*/
nav {
  /* background-color: #5ccd4f; */
  width: 50%;
  position: absolute;
  top: 35px;
  left: 45%;
  font-size: 1.2rem;
}

#menu-btn,
.btn {
  display: none;
}

nav ul {
  display: flex;
  justify-content: space-between;
}

nav ul li {
  border-width: thin;
  padding: 5px 15px;
  opacity: 0.6;
}

nav ul li a {
  position: relative;
}

nav ul li a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--nav-a-hover-underbar-color);
  bottom: 5px;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

a:hover::after {
  visibility: visible;
  bottom: -10px;
  opacity: 1;
}
/* ナビゲーション end*/

/* topimage start*/
.topimage {
  position: relative;
  width: 100%;
  height: 100vh;
}

.topimage-name-top {
  position: absolute;
  font-family: "Raleway", "Quicksand", "Zen Maru Gothic";
  font-size: 5em;
  top: 20%;
  left: 10%;
}
.topimage-name-under {
  position: absolute;
  font-family: "Raleway", "Quicksand", "Zen Maru Gothic";
  font-size: 4em;
  top: 35%;
  left: 10%;
}
/* topimage end*/

/* トップイメージの円 start*/
.box {
  position: relative;
  top: 100px;
  height: calc(100vh - 100px);
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

/* 円右側 */
.circleRight {
  position: absolute;
  top: 20%;
  right: 0%;
  width: 40%;
  aspect-ratio: 1 / 1;
  background-color: var(--circleRight-color);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--circleRight-color) 80%, transparent),
    0 0 20px color-mix(in srgb, var(--circleRight-color) 70%, transparent),
    0 0 30px color-mix(in srgb, var(--circleRight-color) 60%, transparent),
    0 0 40px color-mix(in srgb, var(--circleRight-color) 50%, transparent),
    0 0 50px color-mix(in srgb, var(--circleRight-color) 40%, transparent),
    0 0 60px color-mix(in srgb, var(--circleRight-color) 30%, transparent),
    0 0 100px color-mix(in srgb, var(--circleRight-color) 20%, transparent),
    0 0 200px color-mix(in srgb, var(--circleRight-color) 10%, transparent);
  mix-blend-mode: color-dodge;
  animation: fluidAnimationRight 5s ease 0s 1 normal;
  animation-fill-mode: forwards;
}

/* 円左側 */
.circleLeft {
  position: absolute;
  top: 20%;
  left: 0%;
  width: 40%;
  aspect-ratio: 1 / 1;
  background-color: var(--circleLeft-color);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--circleLeft-color) 80%, transparent),
    0 0 20px color-mix(in srgb, var(--circleLeft-color) 70%, transparent),
    0 0 30px color-mix(in srgb, var(--circleLeft-color) 60%, transparent),
    0 0 40px color-mix(in srgb, var(--circleLeft-color) 50%, transparent),
    0 0 50px color-mix(in srgb, var(--circleLeft-color) 40%, transparent),
    0 0 60px color-mix(in srgb, var(--circleLeft-color) 30%, transparent),
    0 0 100px color-mix(in srgb, var(--circleLeft-color) 20%, transparent),
    0 0 200px color-mix(in srgb, var(--circleLeft-color) 20%, transparent);
  mix-blend-mode: color-dodge;
  animation: fluidAnimationLeft 5s ease 0s 1 normal;
  animation-fill-mode: forwards;
}

/* アニメーション　右の円 */
@keyframes fluidAnimationRight {
  0% {
    border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
    transform: translateX(0%) scale(0.7);
  }
  50% {
    border-radius: 20% 80% 42% 36%/60% 9% 50% 60%;
    transform: translateX(-15%) scale(0.8) rotate(-10deg);
  }
  100% {
    border-radius: 50% 60% 60% 70%/50% 60% 60% 70%;
    transform: translateX(-30%) scale(1.3) rotate(-15deg);
  }
}
/* アニメーション　左の円 */
@keyframes fluidAnimationLeft {
  0% {
    border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
    transform: translateX(0%) scale(0.7);
  }
  50% {
    bborder-radius: 57% 43% 19% 81% / 52% 69% 31% 48%;
    transform: translateX(5%) scale(0.9) rotate(10deg);
  }
  100% {
    border-radius: 70% 50% 60% 50%/70% 50% 60% 50%;
    transform: translateX(40%) scale(1.3) rotate(15deg);
  }
}
/* トップイメージの円 end*/

/* トップイメージのメッセージ start*/
.topimage-messagebox {
  position: absolute;
  top: 70%;
  height: 20%;
  margin-left: 30%;
  width: 60%;
  animation: blur 5s both ease-in;
}
.topimage-messagebox-text {
  margin: 2%;
  font-size: 1.1rem;
}

/* アニメーション　ぼかし表示 */
@keyframes blur {
  0%,
  50% {
    opacity: 0;
  }
  90% {
    opacity: 1;
    filter: blur(1px);
  }
  100% {
    filter: blur(0);
  }
}

/* トップイメージのメッセージ end*/

/* 各セクションの設定 */
section {
  min-width: 768px;
  width: 80%;
  margin: 0 auto;
}

.title {
  width: 80%;
  margin: 0 auto;
}

.explanation {
  width: 80%;
  margin: 0 auto;
  margin-top: 20px;
}

.biography {
  width: 80%;
  margin: 0 auto;
  margin-top: 20px;
}

.profile,
.research,
.practicelBody {
  /* 各メニューごとに余白を設定 */
  margin: 150px auto;
}

.practice-contents {
  margin-bottom: 100px;
}

.vertical-ttl {
  /* 各メニューの縦タイトルの設定 */
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  position: absolute;
  margin-left: -5%;
  color: var(--section-vertical-title-color);
  font-size: 3.5em;
  font-family: "Montserrat", "メイリオ", Meiryo, Verdana, sans-serif;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* タイトルボックス start*/
.section-ttl {
  position: relative;
  margin-bottom: 48px;
  font-size: 2em;
  font-weight: bold;
}
.section-ttl:after {
  position: absolute;
  bottom: -16px;
  left: 0;
  content: "";
  display: block;
  width: 76px;
  height: 8px;
  background-color: var(--section-title-underbar-color);
}
/* タイトルボックス end*/

/* 研究紹介 start*/

/* リンク start*/
.link {
  margin: 30px 5%;
}
.profile a,
.practicelBody a {
  position: relative;
}
.profile a::before,
.profile a::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 40px;
  height: 1px;
  background-color: var(--link-font-color);
}
.practicelBody a::before,
.practicelBody a::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 170px;
  height: 1px;
  background-color: var(--link-font-color);
}
.profile a::before,
.practicelBody a::before {
  width: 80px;
}
.profile a::after,
.practicelBody a::after {
  width: 14px;
  transform-origin: right center;
  transform: translate(65px, 0px) rotate(45deg);
}

/* 実践内容 end*/

/* トップページへ移動ボタン start*/
.back-to-top {
  position: fixed; /* 画面に固定  */
  bottom: 30px; /* 下からの位置  */
  right: 30px; /* 右からの位置  */
  height: 80px;
  width: 80px;
  z-index: 998; /* 最前面に表示 */
}
/* トップページへ移動ボタン end*/

.footerimg {
  width: 100%;
  background-image: url(../img/footerimg.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 30vh;
}

/* フッター start */
footer {
  color: var(--footer-font-color);
  background-color: var(--footer-background-color);
  padding-top: 40px;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-footer {
  height: 50px;
  margin: 20px;
}
.copyright {
  padding-top: 20px;
  font-size: 0.6rem;
}
/* フッター end */

/* セクションフィードイン */
.fadeIn {
  opacity: 0;
  transition: all 2s;
}
.fadeIn.up {
  opacity: 1;
}

/* 装飾 */
.underline {
  text-decoration-color: var(--books-underline-color);
  text-decoration-line: underline;
  text-decoration-thickness: 7px;
  text-underline-offset: -3px;
  text-decoration-skip-ink: none;
}

@media (max-width: 900px) {
  nav {
    width: 60%;
    left: 35%;
    font-size: 1.1rem;
  }
  .vertical-ttl {
    margin-left: -3%;
  }
}

@media (max-width: 768px) {
  html {
    /* ページ内リンクでスクロールする際に、ヘッダーの高さを考慮して遷移させる。見えやすいように+10pxを追加 */
    scroll-padding-top: calc(60px + 10px);
  }

  body {
    font-size: 14px;
  }

  header {
    width: 100vw;
    height: 60px;
    padding-top: 0;
  }
  .header-icon {
    display: none;
  }

  section {
    min-width: auto;
    width: 95%;
  }

  .title {
    width: 95%;
  }

  .explanation {
    width: 95%;
  }

  .explanation ul {
    display: block;
  }

  .biography {
    width: 95%;
  }

  .topimage {
    /* ヘッダーの高さをから開始 */
    margin-top: 60px;
  }

  .topimage-name-top {
    font-size: 3.1em;
    top: 3%;
    left: 5%;
  }
  .topimage-name-under {
    font-size: 3em;
    top: 10%;
    left: 5%;
  }

  .box {
    width: 100%;
    top: 0px;
    height: calc(100vh - 60px);
  }

  .circleRight {
    top: 20%;
    width: 50%;
  }

  .circleLeft {
    top: 20%;
    width: 50%;
  }

  @keyframes fluidAnimationRight {
    0% {
      border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
      transform: translateX(0%) scale(0.7);
    }
    50% {
      border-radius: 20% 80% 42% 36%/60% 9% 50% 60%;
      transform: translateX(-7%) scale(0.8) rotate(-10deg);
    }
    100% {
      border-radius: 50% 60% 60% 70%/50% 60% 60% 70%;
      transform: translateX(-15%) scale(1) rotate(-15deg);
    }
  }

  @keyframes fluidAnimationLeft {
    0% {
      border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
      transform: translateX(0%) scale(0.7);
    }
    50% {
      border-radius: 57% 43% 19% 81% / 52% 69% 31% 48%;
      transform: translateX(7%) scale(0.9) rotate(10deg);
    }
    100% {
      border-radius: 70% 50% 60% 50%/70% 50% 60% 50%;
      transform: translateX(15%) scale(1) rotate(15deg);
    }
  }

  .topimage-messagebox {
    top: 60%;
    margin-left: 20%;
    width: 70%;
  }
  .topimage-messagebox-text {
    font-size: 0.9em;
  }

  /* ハンバーガーメニュー　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: 997;
  }

  .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;
  }

  nav li {
    width: 200px;
    font-weight: bold;
    text-align: center;
    padding: 15px 0 15px;
  }

  nav ul li a:hover {
    text-shadow: none;
    /* transition: 0.8s; */
  }

  .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: 996;
    transition: 0.5s;
  }

  .g-nav li {
    margin-bottom: 40px;
  }

  #menu-btn:checked ~ .g-nav {
    left: 0;
  }

  main .topimage {
    height: calc(100vh - 60px);
  }

  /* タイトルボックス start*/
  .vertical-ttl {
    font-size: 2.5em;
    writing-mode: horizontal-tb;
    margin-left: 0;
    position: static;
  }

  /* トップページへ移動ボタン start*/
  .back-to-top {
    height: 60px;
    width: 60px;
  }
  /* トップページへ移動ボタン end*/

  .logo-footer {
    height: 30px;
    margin: 20px;
  }
  .iconfooter {
    height: 80px;
    margin: 10px;
  }
}
