@import url("../common.css");

* {
  --my-color: #857351;
  --my-color-light: #bbaa8b;
  --my-font-color: #857351;
  --bgcolor-main-container: #fefefe;
  --rotate-time: 20s;
  --main-container-width: 80vw;
  --main-content-width: 78vw;
  --menu-width: calc(100vw - var(--main-container-width));
}

body {
  font-family: 'Noto Serif JP', serif, 'Shippori Mincho', serif, Verdana, Roboto, "Droid Sans", "游ゴシック", YuGothic, "メイリオ", Meiryo, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ＭＳ Ｐゴシック", sans-serif !important;
  background-color: #eee;
  color: #857351;
  margin: 0
}

.br-no-sp {
  display: none;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
  text-align: center;
  margin: 0px;
  font-weight: 300;
}

p {
  font-size: 20px;
}

a {
  color: var(--my-font-color);
  text-decoration: none;
}
a::before{
  font-size: 16px;
  content: "🔗";
}

.text-center {
  text-align: center;
}


.body-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.body-table {
  padding: 10px;
  margin: auto;
  color: var(--bgcolor-main-container);
  border: 2px solid var(--my-color) collapse;
}
.body-table th {
  background-color: var(--my-color-light);
}
.body-table td {
  background-color: var(--my-color);
}
.body-table th > p {
  padding: 2px 8px;
  margin: 2px;
  font-size: 16px;
}
.body-table td > p {
  padding: 8px;
  margin: 2px;
}

.hidden-start {
  visibility: hidden;
}

.flex-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.mb-2 {
  margin-bottom: 16px !important;
}

.main-content {
  width: var(--main-content-width);
  margin: 0 auto;
}

.width90 {
  width: 90%;
  margin: 0 auto;
}

.wspace16 {
  width: 1rem;
}

.main-text {
  font-size: 18px;
  width: var(--main-container-width);
  margin: 0 auto;
}

#top-img {
  position: fixed;
  height: 100vh;
  width: 100vw;
  top: 0;
  right: 0;
  background-image: url(/_img/zao.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat:  no-repeat;
  opacity: 0.9;
  transition: width .3s ease-in-out;
  will-change: top, opacity;
}
#top-img.active {
  width: var(--main-container-width);
}
#top-img-space {
  position: relative;
  height: 100vh;
  width: 100%;
  z-index: -1;
}

#site-name-outer {
  position: relative;
  width: calc(50% + 100px);
  top: 40%;
  left: calc(50% - 100px);;
}
#site-name {
  position: relative;
  white-space: nowrap;
  text-align: left;
  font-size: calc(2vw + 14px);
  color: var(--bgcolor-main-container);
  font-weight: 400;
  font-style: italic;
}
.site-name-fade-in {
  margin-left: 30vw;
  animation: site-name-fade-in 0.1s linear forwards;
}
@keyframes site-name-fade-in {
  100% {
    margin-left: 0px;
  }
}

#footstamp1 {
  display: none;
  position: absolute;
  top: calc(74% + 3vw);
  left: 45%;
  transform-origin:-90% 0;
  opacity: 0;
}
#footstamp1.active {
  display: block !important;
  animation: footstamp 8s linear infinite;
}
#footstamp2 {
  position: absolute;
  top: calc(74% + 3vw);
  left: 45%;
  translate: 20% 0;
  transform-origin:-110% 0;
  opacity: 0;
  transform: rotate(-42deg);
}
#footstamp2.active {
  display: block !important;
  animation: footstamp 8s 1s linear infinite;
}
#footstamp1 > img,
#footstamp2 > img {
  width: 48px;
}
#footstamp2 > img {
  rotate: 5deg;
}
#footstamp2 > img {
  rotate: 30deg;
  scale: -1 1;
}
@keyframes footstamp {
  0% {
    opacity: 1;
    rotate: 0deg;
  }
  16.7% {
    opacity: 1;
    rotate: 0deg;
  }
  24% {
    opacity: 0;
    rotate: 0deg;
  }
  24.9% {
    opacity: 0;
    rotate: -90deg;
  }
  25% {
    opacity: 1;
    rotate: -90deg;
  }
  41.7% {
    opacity: 1;
    rotate: -90deg;
  }
  49% {
    opacity: 0;
    rotate: -90deg;
  }
  49.9% {
    opacity: 0;
    rotate: -180deg;
  }
  50% {
    opacity: 1;
    rotate: -180deg;
  }
  66.7% {
    opacity: 1;
    rotate: -180deg;
  }
  74% {
    opacity: 0;
    rotate: -180deg;
  }
  74.9% {
    opacity: 0;
    rotate: -270deg;
  }
  75% {
    opacity: 1;
    rotate: -270deg;
  }
  91.7% {
    opacity: 1;
    rotate: -270deg;
  }
  99% {
    opacity: 0;
    rotate: -270deg;
  }
  99.9% {
    opacity: 0;
    rotate: -360deg;
  }
  100% {
    opacity: 1;
    rotate: -360deg;
  }
}

#menu-btn {
  position: fixed;
  height: 40px;
  width: 40px;
  top: 3%;
  left: 3%;
  z-index: 1001;
}
#menu-btn .cls-2 {
  stroke: #857351;
}
#menu {
  position: fixed;
  top: calc(2.5vw + 20px);
  width: var(--menu-width);
  left: 0%;
  translate: -100% 0;
  z-index: 101;
  opacity: 0;
  transition: translate 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
#menu.active {
  translate: 0;
  opacity: 1;
}

#contents {
  position: relative;
  height: auto;
  width: 100%;
  left: 100%;
  translate: -100% 0;
  background-color: var(--bgcolor-main-container);
  transition: width 0.3s ease-in-out;
}
#contents.active {
  width: 80vw;
}

#profile {
  position: relative;
  height: 200px;
  width: 200px;
  border-radius:50%;
  background-image: url(../_img/profile.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

.comment-arrow {
  margin: auto 0;
  border: 6px solid var(--my-color);
  clip-path: polygon(0 50%, 100% 0, 100% 10%, 20% 50%, 100% 90%, 100% 100%);
  z-index: 3;
}
.comment-arrow-inner {
  position: relative;
  left: -10px;
  margin: auto 0;
  border: 6px solid var(--bgcolor-main-container);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  z-index: 4;
}
#comment {
  position: relative;
  padding: 8px;
  left: -12px;
  margin: auto 0;
  border-radius: 10px;
  border: solid 1px var(--my-color);
}
.inline-block {
  display: flex;
  margin: auto 0;
  flex-wrap: nowrap;
}

.fade-in {
  animation-fill-mode:both;
  -webkit-animation-fill-mode:both;
  -ms-animation-fill-mode:both;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  -ms-animation-duration: 1s;
  animation-name: fade-in;
  -webkit-animation-name: fade-in;
  visibility: visible !important;
}
@-webkit-keyframes fade-in {
  0% { opacity: 0; -webkit-transform: translateY(20px); }
  100% { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes fade-in {
  0% { opacity: 0; -webkit-transform: translateY(20px); -ms-transform: translateY(-20px); transform: translateY(20px); }
  100% { opacity: 1; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0); }
}

.width-max {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

p > a > svg {
  width: 60px;
  fill: var(--my-color);
  transform: rotate(45);
}

p.svg-rotate-flg {
  width: 100%;
}

.svg-rotate-flg {
  visibility: hidden;
}

.rotate-fade-in {
  -webkit-animation-fill-mode:both;
  -ms-animation-fill-mode:both;
  animation-fill-mode:both;
  -webkit-animation-duration: 1.5s;
  -ms-animation-duration: 1.5s;
  animation-duration: 1.5s;
  -webkit-animation-name: rotate-fade-in;
  animation-name: rotate-fade-in;
  visibility: visible !important;
}
@-webkit-keyframes rotate-fade-in {
  0% { -webkit-transform: translateX(70vw); }
  100% { -webkit-transform: translateX(0); }
}
@keyframes rotate-fade-in {
  0% { -webkit-transform: translateX(70vw); -ms-transform: translateX(-70vw); transform: translateX(70vw); }
  100% { -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); }
}

.svg-rotate {
  -webkit-animation: svg-rotete var(--rotate-time) linear infinite;
  -moz-animation: svg-rotete var(--rotate-time) linear infinite;
  -ms-animation: svg-rotete var(--rotate-time) linear infinite;
  -o-animation: svg-rotete var(--rotate-time) linear infinite;
  animation: svg-rotete var(--rotate-time) linear infinite;
}
@-webkit-keyframes svg-rotete {
  0% {-webkit-transform: rotate(0deg);}
  100% {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes svg-rotete {
  0% {-moz-transform: rotate(0deg);}
  100% {-moz-transform: rotate(360deg);}
}
@-ms-keyframes svg-rotete {
  0% {-ms-transform: rotate(0deg);}
  100% {-ms-transform: rotate(360deg);}
}
@-o-keyframes svg-rotete {
  0% {-o-transform: rotate(0deg);}
  100% {-o-transform: rotate(360deg);}
}
@keyframes svg-rotete {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

#higasa img {
  width: 10%;
  min-width: 150px;
  animation: higasa 5s ease-in-out infinite;
}

@keyframes higasa {
  0% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(10deg);
  }
}

#photo-location {
  color: #b3b1ae;
  text-align: right;
  padding-right: 3%;
}

#img-ai-with-humanness {
  width: 40%;
  min-width: 300px;
}
