html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

header {
    padding-top: 25px;
    padding-bottom: 10px;
}

footer {
    text-align: center;
    border-top: 1px solid black;
    padding-bottom: 10px;
}

h2 {
    border: 1px solid black;
    background-color: gray;
}

h3 {
    text-decoration: underline;
}

#loading {
    width: 100vw;
    height: 100vh;
    background-color: rgb(198, 196, 196);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

#loading-text {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    color: #999;
    width: 100px;
    height: 30px;
    margin: -7px 0 0 -45px;
    text-align: center;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 20px;
}

#loading-text::after {
    animation: txt 3s infinite;
    content: "";
}

@keyframes txt {
    0% {
        content: "Loading.";
    }
    40% {
        content: "Loading..";
    }
    60% {
        content: "Loading...";
    }
    100% {
        content: "Loading.";
    }
}

#loading-content {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 170px;
    height: 170px;
    margin: -85px 0 0 -85px;
    border: 3px solid white;
}

#loading-content:after {
  content: "";
  position: absolute;
  border: 3px solid gray;
  left: 15px;
  right: 15px;
  top: 15px;
  bottom: 15px;
}

#loading-content:before {
  content: "";
  position: absolute;
  border: 3px solid black;
  left: 5px;
  right: 5px;
  top: 5px;
  bottom: 5px;
}

#loading-content {
  border: 3px solid transparent;
  border-top-color: white;
  border-bottom-color: white;
  border-radius: 50%;
  -webkit-animation: loader 2s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 2s linear infinite;
}

#loading-content:before {
  border: 3px solid transparent;
  border-top-color: gray;
  border-bottom-color: gray;
  border-radius: 50%;
  -webkit-animation: loader 3s linear infinite;
    -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 3s linear infinite;
}

#loading-content:after {
  border: 3px solid transparent;
  border-top-color: black;
  border-bottom-color: black;
  border-radius: 50%;
  -webkit-animation: loader 1.5s linear infinite;
  animation: loader 1.5s linear infinite;
    -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
}

@keyframes loaders {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loader {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#after-loading {
    display: none;
}

.midashi {
    text-decoration: underline;
}

.index-min {
    background-color: white;
    border-radius: 2%;
    margin-top: 200px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    padding: 5px;
}

.index-max {
    background-color: white;
    border-radius: 2%;
    margin-top: 10px;
    margin-right: 30%;
    margin-left: 30%;
    margin-bottom: 10%;
    padding-bottom: 8px;
}

.index-max-list {
    width: fit-content;
    margin: auto;
}

.index-title {
    text-align: center;
    text-decoration: none;
}

.index-list {
    list-style-type: square;
}

.index-list-item-child {
    list-style-type: square ;
}

.index-list-item a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
}

.index-list-item a::after {
    background-color: black;
    bottom: -1px;
    content: "";
    height: 1.5px;
    left: 0;
    position: absolute;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 0.3s;
    width: 100%;
}

.index-list-item a:hover::after {
    transform: scale(1, 1);
}

.index-list-item a:hover {
    color: black;
}

.index-list-item-child-item a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
}

.index-list-item-child-item a::after {
    background-color: black;
    bottom: -1px;
    content: "";
    height: 1.5px;
    right: 0;
    position: absolute;
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform 0.3s;
    width: 100%;
}

.index-list-item-child-item a:hover::after {
    transform: scale(1, 1);
}

.index-list-item-child-item a:hover {
    color: black;
}

.affiliation-item a {
    color: black;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s;
}

.affiliation-item a:hover {
    color: rgb(171, 171, 171);
    text-decoration: underline;
}

.slide-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 10px;
}

.slide-wrapper-travel {
    display: flex;
    animation: slide-flow 50s infinite linear 1s both;
}

.slide-wrapper-diving {
    display: flex;
    animation: slide-flow 120s infinite linear 1s both;
}

.slide {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.travel-slide {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
}

@keyframes slide-flow {
    0% {transform: translateX(0);}
    100% {transform: translateX(-100%);}
}

.slide-paused:hover .slide-wrapper-diving,.slide-paused:hover .slide-wrapper-travel {
    animation-play-state: paused;
}

.left, .right {
    background-color: gray;
}

.main {
    margin-left: 10px;
    margin-right: 10px;
}

@media (min-width: 1000px) {
    .content {
        display: flex;
    }

    .left, .right {
        width: 20%;
    }

    .main {
        width: 60%;
    }

    .max {
        display: none;
    }

    .min {
        display: flex;
        justify-content: center;
    }

    .min-translate a {
        display: block;
        position: fixed;
        top: 0;
        right: 300px;
        background-color: gray;
        width: fit-content;
        height: fit-content;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
        text-decoration: none;
        color: white;
        transition: color 0.3s;
        z-index: 9000;
    }

    .min-translate a:hover {
        background-color: rgb(171, 171, 171);
    }

    .max-translate {
        display: none;
    }

    .index-min {
        display: block;
    }

    .index-max {
        display: none;
    }

    header {
        background-color: white;
    }
}

@media (max-width: 999px) {
    .min {
        display: none;
    }

    .max {
        display: flex;
        justify-content: center;
    }

    .min-translate {
        display: none;
    }

    .max-translate a {
        display: block;
        position: fixed;
        top: 0;
        right: 50px;
        background-color: white;
        width: fit-content;
        height: fit-content;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
        text-decoration: none;
        color: gray;
        transition: 0.3s;
        z-index: 9000;
    }

    .max-translate a:hover {
        background-color: rgb(219, 219, 219);
    }

    .index-min {
        display: none;
    }

    .index-max {
        display: block;
    }

    header {
        background-color: gray;
    }
}

#hobby p {
    text-decoration: underline;
}

#hobby li {
    margin-bottom: 5px;
}

.none {
    list-style: none;
}

.none a {
    background-color: white;
    color: black;
    border: 3px solid gray;
}

.none a:hover {
    background-color: gray;
}

.information-img {
    width: 300px;
    height: 200px;
    display: inline-block;
    margin-right: 10px;
    margin-top: 20px;
}

#sports p {
    margin-top: 30px;
}

#sports li {
    margin-bottom: 10px;
}

.baseball {
    display: flex;
}

.cricket {
    display: flex;
}

.sports-explain {
    width: 50%;
}

.sports-frame {
    position: relative;
    width: 50%;
    height: 250px;
    overflow: hidden;
    margin-top: 80px;
    margin-right: 30px;
    margin-left: 30px;
}

@media screen and (max-width: 767px){
    .sports-frame{
       width: 100%;
       height: 200px;
    }
}

.baseball-01, .baseball-02, .baseball-03{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.cricket-01, .cricket-02, .cricket-03{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.baseball-01{
    background-image: url('../img/sports/baseball/baseball11.JPG');
    animation: slide-animation-01 24s infinite;
}

.baseball-02{
    background-image: url('../img/sports/baseball/baseball8.JPG');
    animation: slide-animation-02 24s infinite;
}

.baseball-03{
    background-image: url('../img/sports/baseball/baseball7.JPG');
    animation: slide-animation-03 24s infinite;
}

.cricket-01 {
    background-image: url('../img/sports/cricket/cricket3.JPG');
    animation: slide-animation-01 24s infinite;
}

.cricket-02 {
    background-image: url('../img/sports/cricket/cricket4.JPG');
    animation: slide-animation-02 24s infinite;
}

.cricket-03 {
    background-image: url('../img/sports/cricket/cricket2.JPG');
    animation: slide-animation-03 24s infinite;
}

@keyframes slide-animation-01 {
    0% {opacity: 1; transform: scale(1.0);}
    30% {opacity: 1;}
    40% {opacity: 0; transform: scale(1.15);}
    90% {opacity: 0}
    100% {opacity: 1; transform: scale(1.0);}
}

@keyframes slide-animation-02 {
    0% {opacity: 0;}
    30% {opacity: 0; transform: scale(1.1);}
    40% {opacity: 1;}
    60% {opacity: 1;}
    70% {opacity: 0; transform: scale(1.0);}
    100% {opacity: 0;}
}

@keyframes slide-animation-03 {
    0% {opacity: 0;}
    60% {opacity: 0;  transform: scale(1.0);}
    70% {opacity: 1;}
    90% {opacity: 1;}
    100% {opacity: 0; transform: scale(1.1);}
}

.cricketwebsite {
    background-color: gray;
    border: 2px solid gray;
    border-radius: 60px;
    color: white;
    display: block;
    font-weight: bold;
    max-width: 200px;
    padding: 15px 40px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.cricketwebsite:hover {
    background-color: white;
    color: gray;
}

.sns {
    list-style: none;
}

.sns-list {
    border-radius: 5px;
}

@media (min-width: 1000px) {
    .sns {
        position: relative;
        top: 50%;
        right: 10%;
    }
}

@media (max-width: 999px) {
    .sns {
        display: flex;
    }

    .sns-list {
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}

#page-top {
    position: fixed;
    right: 10px;
    bottom: 20px;
    height: 50px;
    text-decoration: none;
    font-weight: bold;
    transform: rotate(90deg);
    font-size: 90%;
    line-height: 1.5rem;
    color: black;
    padding: 0 0 0 35px;
    border-top: solid 1px;
    transition: all 1s ease;
    transition: color 0.3s;
    width: fit-content;
}

#page-top::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    width: 15px;
    border-top: solid 1px;
    transform: rotate(35deg);
    transform-origin: left top;
}

#page-top:hover {
    color: #625d5df7;
}