﻿@import url('https://fonts.googleapis.com/css2?family=Kaisei+HarunoUmi:wght@500&display=swap');

:root{
    --ao: #004799;
}

.hvr_bg_color3:hover {
    background-color: var(--ao);
}

.border_color3 {
    border-color: var(--ao);
}

#main_img:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    background-image: url(./Dup/img/copy.png), url(./Dup/img/hito.png), url(./Dup/img/catch.png), url(./Dup/img/sakana.png), url(./Dup/img/nami.png);
    background-position: 97% 10%, 95% 100%, 17% 50%, 42% 20%, center;
    background-repeat: no-repeat;
    -webkit-transform: translate(-50% , -50%);
    transform: translate(-50% , -50%);
    background-size: 90px , max(50%, 400px), max(30%, 300px), max(45%, 300px), cover;
    pointer-events: none;
}

/*#main_img span {
        display: block;
    transform: rotate(0deg) translate(0%, -30%);
    right: -30%;
    position: absolute;
    z-index: -1;
    width: 130%;
    pointer-events: none;
    animation: bgiLoop 100s linear infinite;
}
*/

#main_img span {
        display: block;
        transform: rotate(0deg);
        right: -500px;
        position: absolute;
        z-index: -1;
        width: 1700px;
        pointer-events: none;
        animation: bgiLoop 100s linear infinite; 
        transform-origin: center;
        top: -500px;
}

#main_img {
    overflow: hidden;
}

@keyframes bgiLoop {
    0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

#intro h2 {
    font-family: 'Kaisei HarunoUmi', serif !important;
    text-align: center;
    font-size: max(30px, 3vw);
    margin-bottom:150px;
}

#contents2 h3{
    font-family: 'Kaisei HarunoUmi', serif !important;
    font-size: max(20px, 2vw);
}

#intro .inu > span{
    display: block;
    max-width: 540px;
    margin: 100px auto 80px;
    width: 60%;
    transform: translateX(15px);
    position: relative;
}


.inu{
        /*background-image: url(./Dup/img/inu.png);*/
    background-position: center right;
    background-repeat: no-repeat;
        background-size: min(15%, 180px);
}

#intro {
    padding: 5% 0;
    background-image: url(./Dup/img/sita_nami.png);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    padding-bottom: 150px;
    position: relative;
}

#cms > div{
    background-image: url(./Dup/img/sita_nami.png);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    padding-bottom: 150px;
}

#intro h2:after{
    display: none;
}

#contents2 > div {
    background-color: rgba(6, 37, 167, 0.3);
    padding: 30px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
    text-align: center;
}

#header h1{
        width: 85%;
    /* min-width: 100px; */
    margin: auto;
    margin-bottom: 30px;
}

#contents1{
    margin-bottom: 0;
}

#intro h3, #contents1 h4{
        font-family: 'Kaisei HarunoUmi', serif !important;
    font-size: max(20px, 2vw);
        font-weight: bold;
}



#page_title {
    background-position: top center;
}

.mail_contact{
    display: none;
}

.sc_anime.left_anime2.active, #page_title.active p {
    color: #004799;
}

.linkStyle{
color: #29a9e0;
font-weight: bold;
}

#body{
        background-image: url(./Dup/img/tex.jpg);
}

#intro .inu > span:before{
        content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: -80%;
    left: -80%;
    background-image: url(./Dup/img/kumo.png);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 90%;
    pointer-events: none;
    z-index: 1;
}

#intro > div.d_flex{
    padding: 0 5%;
}

#intro figure{
    position: relative;
}

#intro figure:before{
        content: "";
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    top: -50px;
    left: -50px;
    background-image: url(./Dup/img/uma.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.pager{
    margin-bottom: 100px;
}

#top_cms{
    background-image: url(./Dup/img/neko1.png);
    background-position: 10% 100%;
    background-repeat: no-repeat;
    background-size: 130px;
}

.banner2{
      bottom: 0px;
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);
    max-width: 320px;
}

/* ---------- タブレット ---------- */
@media screen and (max-width: 768px){
#header h1 {
    max-width: 150px;
        margin-bottom: 0;
}

#main_img {
    height: calc(100vh - 200px);
    min-height: 500px;
}

#cms{
    margin-bottom: 0;
}

}

/* ---------- スマートフォン ---------- */
@media screen and (max-width: 667px){
#header h1 {
    max-width: 110px;
}

#main_img {
    height: calc(100vh - 150px);
}

#main_img:before {
        background-position: 97% 10%, 95% 100%, 0% 20%, 90% 20%, center;
    background-size: 70px, clamp(270px, 50%, 400px), max(30%, 200px), max(45%, 300px), cover;
    pointer-events: none;
}

#contents2 > div {
    background-color: rgba(6, 37, 167, 0.8);
}

#intro figure:before {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -20px;
}

#intro h2 {
    margin-bottom: 30px;
}

#intro {
    background-image: none;
    padding-bottom: 20px;
    position: relative;
}

.pager {
    margin-bottom: 0px;
    padding-top: 0;
}

#cms > div {
    background-image: none;
    padding-bottom: 0px;
}

#cms {
    margin-bottom: 50px;
}

}