html { scroll-behavior: smooth; }
body{
    position: relative; /* 絶対配置基準に */
    overflow-x: hidden;
    font-family: "Noto Sans JP", sans-serif;
}
img{
    display: block;
    max-width: 100%;
    height: auto;
}
p{
    line-height: 1.3rem;
    font-weight: normal;
}
ul{ list-style-type: none;}


/* background-parallax */
.content, .gallery, .parallax-kira, .parallax-cosmo1, .parallax-cosmo2, .parallax-cosmo3 {
    will-change: background-position;
}
.parallax-kira, .parallax-cosmo1, .parallax-cosmo2, .parallax-cosmo3{
    pointer-events: none;
    position: absolute;
    inset:0;
    background-size: 100%;
    background-repeat: repeat;
}
.parallax-kira {
    background: url(images/bg-star.png);
    background-size: 101%;
    z-index: -1;
    top: -10%;
}
.parallax-cosmo1{
    background: url(images/bg-cosmo1.png) no-repeat;
    background-size: 80%;
    z-index: -1;
    top: -7%;
    left: -23%;
}
.parallax-cosmo2{
    background: url(images/bg-cosmo2.png) repeat-y;
    background-size: 110%;
    z-index: -1;
    right: -10%;
    top: 10%;
}


@media screen and (max-width: 500px) {
.parallax-cosmo1{
    background-size: 150%;
    top: 0%;
}
.parallax-cosmo2{
    top: 0%;
}
.parallax-cosmo3{
    background-size: 120%;
    position: absolute;
    top: 0;
    right: -15%;
}
}

/* logo */
h1{
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    top: 0;
    z-index: 2;
}
h1 p:first-child{
    position: absolute;
    width: 100%;
    text-align: center;
    top: calc(50% - 25%);
}
h1 p:last-child{
    width: 100%;
    margin-top: -30px;
}
h1 p img{
    width: 90%;
    margin: 0 auto;
}

/* ALL */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

.content{
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(0deg, #263c9d 10%, #0c1318 45%, #006ed8 100%);
    background-size: contain;
    background-color: #000436;
    z-index: 0;
}
.content-wrap{
    position: relative;
    z-index: 1;
}
section{
    padding: 5% 0;
    overflow-y: hidden;}

section h2{
    position: absolute;
    left: 20px;
    z-index: 2;
}
section#kasou h2{
    left: auto;
    right: 20px;
}
section h3{
    padding: 2px 10px;
    font-size: 1em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgb(0 115 252) 0%, rgb(248 78 78) 100%);
    color: #FFF;
    display: inline-block;
}

.description{
    margin-bottom:30px;
    color: #ffffff;
    text-shadow: 2px 2px 3px #001952;
}
@media screen and (max-width: 700px) {
    h1 p:last-child {margin-top: -20px;}
    
    section h2{left: -5px;}
    section h2 img{ 
        width: 60%; 
        margin-right: auto;
    }
    section.infomation h2{
        left: auto !important;
        right: -22px !important;
    }
    section#kasou h2{
        left: auto !important;
        right: 0px !important;
    }
    section.infomation h2 img, section#kasou h2 img{
        margin-left: auto;
        margin-right: 0;
    }

}
@media screen and (max-width: 500px) {
    section h2 img{ 
        width: 40%;
    }
}

/*////////////////////// Mask Canvas ///////////////////////*/

.scroll-next{
  position: absolute;
  left: 50%;
  bottom: max(180px, calc(env(safe-area-inset-bottom) + 12px));
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;

  z-index: 1000;          /* パララックス層より前へ */
  pointer-events: auto;
}

.scroll-next img{
  width: 28px; height: auto; display:block;
  animation: bob 1.6s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes bob{
  0%,100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ホバーと押下 */
.scroll-next:hover { opacity: .9; }
.scroll-next:active { transform: translate(-50%, 1px); }

/* 動きが苦手設定の人にはアニメ停止 */
@media (prefers-reduced-motion: reduce){
  .scroll-next img{ animation: none; }
}

.visual-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 20px 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .background-image {
    /*background: url("images/h1-title2.png") no-repeat;
    background-size: 100%;
    background-position: center center;*/
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  #canvasWrapper {
    position: relative;
    width: 100%;
  }
  
  .maskedCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 1s ease;
    opacity: 0;
    z-index: 1;
  }
  
  #canvas1 {
    z-index: 2;
  }
  
  #canvas2 {
    z-index: 1;
  }  
@media screen and (max-width:700px) {
    .background-image { top:20px;}
}
@media screen and (max-width:500px) {
 #canvasWrapper { margin-bottom: 25%;}
}
/*////////////////////// section.lead ///////////////////////*/
section.lead{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Shippori Antique", sans-serif;
}
section.lead .leadtxt{
text-align: center;
    color: #ffffff;
    padding: 3% 5%;
    background-color: rgb(193 29 64 / 90%);
    letter-spacing: 0.05em;
    line-height: 1.8em;
    margin-bottom: 3%;
}
@media screen and (max-width:700px) {
section.lead .leadtxt{
    font-size: 90%;
    letter-spacing: normal;
    margin: 0 15px 15%;
    padding: 5%;
}
}
/*////////////////////// section.infomation ///////////////////////*/


section.infomation{
    color: #090f64;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    height: auto;
    display: flex;
    width: 100%;
    align-items: center;
    padding:5% 0;
    color: #FFF;
}

section.infomation h3{ 
    font-size: 1.8em;
    padding: 10px 20px;
    margin-top: 5px;
    display: inline-block;
 }

section.infomation .icons{
    display: inline-block;
    vertical-align: middle;
    margin-left: 5%;

}
section.infomation p.icon{
    display: inline-block;
    width: 30px;
    margin-right: 10px;
}

section.infomation .jisseki{
    display: block;
    margin-top: 10px;
    font-size: 90%;
}
section.infomation .jisseki a{
    color: #FFF;
}
section.infomation .jisseki::before{
    content: "";
    display: inline-block;
    background-image: url(images/icon-document.png);
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
    background-size: cover;
    vertical-align: middle;
    margin-right: 5px;
}
section.infomation .info{
    padding: 3% 3% 3% 180px !important;
    position: relative;
    width: 90%;
    margin: 0 auto;
    border-top: 3px solid #ff7577;
    border-bottom: 3px solid #ff7577;
    background: rgb(0 32 54 / 50%)
}
section.infomation .info-wrap{width: 100%;}
section.infomation .info-wrap .info-txt{
    padding-right: 12%;
    position: relative;
    font-size: .8em;
    line-height: 1.3rem;
    font-weight: normal;
    z-index: 2;
}
section.infomation .info-wrap .info-txt dl{
    border-left: 3px solid #ff7577;
    padding: 5px 20px;
    margin-bottom: 20px;
}
section.infomation .info-wrap .info-txt dt{
    font-size: 150%;
    margin-bottom: 10px;
}

section.infomation .profileimg{
    position: absolute;
    right: -8%;
    bottom: -20%;
    width: 25%;
    max-width: 100%;
    z-index: 2;
}

@media screen and (max-width: 700px) {
    section.infomation{
        height: auto;
        padding: 5% 0;
    }
    section.infomation .info{ padding: 5% !important; }
    section.infomation .info-wrap .info-txt{ display: block; }
    section.infomation .profileimg{
        width: 50%;
        bottom: 0;
        right: -22%;
        z-index: -1;
    }
}

@media screen and (max-width: 500px) {
    section.infomation .info-wrap .info-txt{
        line-height: 1.3em;
        padding-right: 5%;
    }
    section.infomation .info-wrap .info-txt p{ line-height: 1rem;}
    section.infomation .info-wrap .info-txt dl{padding:0 0 0 15px;}
    section.infomation h3{
        margin-bottom: 10px;
        padding: 8px 10px;
    }
    section.infomation .icons{margin: 0 10px 3%;}
}

/*////////////////////// section.gallery ///////////////////////*/

section.gallery {
    position: relative;
    z-index: 2;
}

section.gallery#sousaku .gallery-contents,
section.gallery#kasou .gallery-contents{
    position: relative;
    width: 90%;
    border-top: 3px solid #ff7577;
    border-bottom: 3px solid #ff7577;
    background: rgb(0 32 54 / 20%);
} 
section.gallery#sousaku .gallery-contents{ 
    margin-left: auto;
    border-left: 3px solid #ff7577;
    border-radius: 100px 0px 0px 100px;
    padding: 5% 5% 5% 8% !important;
}
section.gallery#kasou .gallery-contents{ 
    margin-right: auto;
    border-right: 3px solid #ff7577;
    border-radius: 0px 100px 100px 0px;
    padding: 5% 15% 5% 5% !important;
    min-height: 20vh;
}

section.gallery ul{
    display: flex;
    flex-wrap: wrap;    
    margin-bottom: 7%;
}
section.gallery ul li{ width: 15%;}
section.gallery ul li a{
    display: block;
    filter: grayscale(100%);
    transition : .3s;
}
.thumb {
    object-fit: cover;
    height: 250px;
    width: 250px;
}

section.gallery ul li a:hover{
    filter: grayscale(0%);
}

@media screen and (max-width: 750px) {
.thumb {height: 100px;}
}
@media screen and (max-width: 500px) {
    section.gallery {min-height: auto;}
    section.gallery#sousaku .gallery-contents{ border-radius: 50px 0px 0px 50px;}
    section.gallery#kasou .gallery-contents{ border-radius: 0px 50px 50px 0px;}
    section.gallery ul li{ width: 33%;}
    .thumb {height: 85px;}

}

/*////////////////////// modal ///////////////////////*/

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .modal-content {
    position: relative;
    margin: 2% auto;
    padding: 20px;
    background: #fff;
    width: 90%;
    max-width: 860px;
    border-radius: 10px;
    text-align: center;
  }
  
  .modal-content img {
    max-width: 100%;
    max-height: 540px;
    display: inline-block;
  }
  
  .modal .close {
    position: absolute;
    top: 0px; right: 20px;
    font-size: 30px;
    cursor: pointer;
  }
  #modal-caption{
    font-size: .8em !important;
    padding-bottom: 8px !important;
  }

  @media screen and (max-width: 750px) {
    .modal .close{
        top: -5px;
        right: 5px;
    }
  }

@media screen and (max-width: 500px) {

}

/*////////////////////// MENU ///////////////////////*/
nav{
position: fixed;
  left:0; right:0; bottom:0;
  z-index: 5;
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none; /* 表示前はクリック無効 */
  transform: translateY(110%);
}
nav.show{ transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  bottom: 10px;}
nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
nav ul li{
    max-width: 120px;
    margin-left: 20px;
    line-height: 1em !important;
}
nav ul li a:hover img{
   scale: 120%;
   transition: .5s;
}

nav ul li:first-child{ margin-left: 0;}

@media screen and (max-width: 800px) {
    nav.show{ bottom: 20px;}
    nav ul li{
    max-width: 100px;
    margin-left:0;
}
}

@media screen and (max-width: 500px) {
    nav ul {
        margin: 120px 20px 0px;
        justify-content: flex-start;
    }
    nav ul li{
        max-width: 80px;
        margin-left: 5px;
    }
}
/*////////////////////// footer ///////////////////////*/

.copy{
    font-size:8px;
    padding:0 10px;
    width: 100%;
    letter-spacing: .1em;
    color: #ffffff;
    position: absolute;
    bottom: 0;
    line-height: .8rem;
}

footer{
    background-image: url(images/menubg.png);
    background-repeat: no-repeat;
    height: 220px;
    background-position: bottom;
    background-size: cover;
    position: relative;
}
@media screen and (max-width: 500px) {
    .copy{text-align: center;}
}
/*////////////////////// .page_top_btn ///////////////////////*/
.page_top_btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10000;
}

.page_top_btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    width: 150px;
}

.page_top_btn img {
    width: 100%;                  /* 親の幅に合わせる */
    height: auto;
    display: block;
}

.page_top_btn span {
    margin-top: -20px;
    line-height: 1.2em;
    text-shadow: 2px 2px 5px #070f70;
}

@media screen and (max-width: 800px) {
    .page_top_btn a {
        width: 80px;
    }
    .page_top_btn span {
        font-size: 90%;
    }
}

/*////////////////////// Shooting Stars ///////////////////////*/
#shooting-stars{
  position: fixed; inset: 0;
  pointer-events: none;          /* クリック透過 */
  z-index: -1;                    /* parallax(-1)より前、UIより後ろにしたければ 1～3 くらい */
}

/*////////////////////// COMMON ///////////////////////*/
.displaySpOn{ display: none !important; }
.displayPcOn{ display: block !important; }
.fwb{ font-weight: bold !important;}
.fsL{font-size: 120% !important;}
.fsS{font-size: 90% !important;}
.txtd-uL{text-decoration: underline;}
.txtd-Lt{text-decoration: line-through;}
.italic{transform: skewX(350deg); }
.txtbg-w{background-color: #FFF; color: #002036; padding: 0 2.5px; margin: 0 1px;}
.txtbg-b{background-color: #002036; color: #fff; padding: 0 2.5px; margin: 0 1px;}

@media screen and (max-width: 500px) {
    .displaySpOn{ display: block !important; }
    .displayPcOn{ display: none !important; }
}