@charset "UTF-8";
*{
    margin : 0 auto;
    padding: 0;
    font-size: 16px;
    text-decoration: none;
    list-style-type: none;
}
body {
    font-family: "M PLUS 1p","Noto Sans JP",sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    font-style: normal;
    line-height: 1.4em;
    animation: changeBackgroundColor 20s infinite;
    background-color: #ffffff;
}
    @keyframes changeBackgroundColor {
        0% { background-color: #ffffff; }
        /*
        50% { background-color: #c8e5f5; }
        */
        50% { background-color: #dbebf3; }
        100% { background-color: #ffffff; }
    }
h1,h2,h3,h4,h5,h6{
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
img{
    width: 100%;
}
/* fix anchor position */

#calc-wrapper{
    width: 100%;
    margin: 0 auto;
    padding-top: 10px;
}
#calc-container{
    width: 90%;
    max-width: 1200px;
    border-radius: 0.6em;
}
#calc-logo{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: transform 3.0s;
}

/* menu */
#menu {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
}
#menu ul {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: space-around;
    gap: 10px;
}
#menu a {
    padding: 5px 10px;
    font-family: "M PLUS 1p", sans-serif;
    font-size: 0.8rem;
    font-weight: bolder;
    line-height: 1.4rem;
    letter-spacing: 0.2em;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #ef9122;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block;
}

.hamburger-menu {
    width: 100%;
    max-width: 320px;
    display: block;
    position: fixed;
    top: 17%;
    left: 3%;
    z-index: 90;
}
.hamburger-menu-content {
    margin: 15px auto 0;
    padding: 20px;
    background-color: white;
    border-radius: 0.5em;
    position: absolute;
}
.hamburger-button {
    width: 50px;
    margin: 0;
    padding: 5px;
    color: #ffffff;
    font-weight: bolder;
    background-color: #ef9122;
    display: block;
    position: relative;
    border: 2px solid #ef9122;
    border-radius: 0.5em;
    font-size: 1.5rem;
}



/* clear button */
#clearButton{
    width: 50px;
    height: 50px;
    font-weight: bolder;
    color: #ffffff;
    background-color: #ef9122;
    border: none;
    border-radius: 50%;
    position: fixed;
    top: 8%;
    left: 3%;
    z-index: 100;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
    overflow:hidden
}
#menu a:hover,#clearButton:hover{
    color: #333;
    background-color: #eee;
}

/* menu end */
/* calc  */
h2{
    width: 60%;
    margin: 40px auto 15px;
    padding: 10px 0;
    font-size: 1.4rem;
    background-color: #ef9122;
    border-radius: 0.8em;
}
h3{
    width: 60%;
    margin-top: 10px;
    font-size: 1.0rem;
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
}
.how-to-use {
    width: 100%;
    margin: 0 auto;
}
#calc-contents{
    margin: 20px auto
}

/* swiper contents */
.swiper {
    width: 100%;
    max-width: 1000px;
    margin-top: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    background-color: rgba(218,241,252,0.500);
    border-radius: 0.6em;
}

.swiper-button-prev, .swiper-button-next {
    background-color: #ffffff;
    border-radius: 0.8em;
}
.con-section{
    width: 95%;
    margin: 0px auto;
    /*
    padding: 10px 10px 40px;
    */
    padding: 10px 0px 40px;
}

.con-workspace {
    pointer-events: none;
}
.con-workspace * {
    pointer-events: auto;
}

.con-workspace{
    width: 85%;
    margin-top: 20px;
    /*
    padding: 10px 5px 20px;
    */
    padding: 10px 0px 20px;
    background: #ffffff;
    text-align: center;
    border-radius: 0.6em;
}
.con-link{
    margin: 0px;
    padding: 3px 0;
    color: #ffffff;
    background-color: #ef9122;
    border-radius: 0.5em;
    transition: transform 0.5s;
    display: inline-block;
}
.con-label{
    margin: 10px 0px 0px;
    display: block;
}
.con-input{
    width: 90%;
    max-width: 350px;
    height: 40px;
    padding: 0 10px;
    font-size: 13px;
    border: 3px solid #c8e5f5;
    border-radius: 0.4em;
}
.con-textarea{
    width: 90%;
    min-width: 250px;
    max-width: 600px;
    max-height: 400px; /* 最大の高さを指定 */
    margin-top: 20px;
    padding: 10px 10px;
    font-size: 13px;
    line-height: 1.8em;
    border: 3px solid #c8e5f5;
    border-radius: 0.4em;
    /* 垂直方向のみリサイズ可能 */
    resize: vertical;
}
.con-input::placeholder,
.con-textarea::placeholder{
    /*
    font-family: "Yusei Magic", sans-serif;
    */
    font-family: "M PLUS 1p", sans-serif;
    font-weight: bold;
    font-style: normal;
    line-height: 1.6rem;
    letter-spacing: 1.1px;
}
.con-button{
    width: 100%;
    max-width: 150px;
    height: 110px;
    margin-top: 10px;
    font-weight: bold;
    color: #ffffff;
    background-color: #ef9122;
    border: 3px solid #c8e5f5;
    border-radius: 50%;
    position: relative;
    display: block;
    overflow: hidden;
    transition: transform 0.5s;
}
#calc-logo:hover,
.con-link:hover,
.con-button:hover,
.con-button:active {
    transform: scale(1.15);
}
/* con-button アニメーション */
@keyframes shiny {
    0% { left: -20%; }
    10% { left: 120%; }
    100% { left: 120%; }
}
.con-button::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 100%;
    transform: scale(2) rotate(20deg);
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .5) 100%, rgba(255, 255, 255, 0) 0%);
    animation-name: shiny;
    animation-duration: 7.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

h4 {
    margin: 10px auto;
}
.con-result, .con-history{
    width: 85%;
    padding: 10px;
    text-align: center;
    line-height: 2em;
    letter-spacing: 1.3px;
    background-color: #ffffff;
    border-radius: 0.6em;
}
.con-history li{
    margin: 10px auto;
    border-bottom: 5px dotted #c8e5f5;
}
.js-result{
    font-size: 1.3rem;
    font-weight: bold;
    /*
    text-decoration: underline;
    */
}

/* display result */
.display-result {
    display: none;
}
    @keyframes fadeIn {
        from {
        opacity: 0;
        }
        to {
        opacity: 1;
        }
    }
.display-result-show  {
    display: block;
    margin: 15px -5px;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    background-color: #ef9122;;
    animation: fadeIn 0.7s forwards;
}
/* display result end */

/* calc end */

/* footer */

hr {
    height: 1px;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer {
    margin: 0 0 30px;
    padding: 1rem;
    font-size: 15px;
    color: #4b5564;
    /*
    background: #fff;
    */
}

.footer__navi-heading {
  font-weight: 600;
}
.footer__logo {
  display: inline-block;
  margin-bottom: 2rem;
}
.footer__navi li {
  margin-bottom: 0.75rem;
}
.footer__social a {
  display: inline-block;
  width: 24px;
  opacity: 0.7;
}
.footer__social a:not(:last-child) {
  margin-right: 16px;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }

  .md-justify-between {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* footer end */

/* background image */
#background-area {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    animation: fadeIn 1.8s forwards;
}
.background-keisan-san{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 28%;
    background-position: top right;
    position: fixed;
    top: 3%;
    right: 0%;
    z-index: -10;
    transition: opacity 2.5s ease;
    animation: floating-y 3.0s ease-in-out infinite alternate-reverse;
}
    /* floating animation */
    @keyframes floating-y {
        0% {
        transform: translateY(0%);
        }
        100% {
        transform: translateY(3%);
        }
    }
/* background image end */

/* background video */
#video-area{
    position: fixed;
    z-index: -1;/*最背面に設定*/
    top: 0;
    right:0;
    left:0;
    bottom:0;
    overflow: hidden;
}
#video {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.77777778vh; /* 16:9 → 16 ÷ 9＝ 177.77% */
    height: 56.25vw; /* 16:9の → 9 ÷ 16 = 56.25% */
    min-height: 100%;
    min-width: 100%;
}
/* background video end*/

/* loading */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
#loading .cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #999 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}
#loading p {
    line-height: 40px;
    margin: 0 0 0 8px;
    text-align: center;
    color: #ddd;
}
@keyframes sp-anime {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}
#loading.is-hide {
    display: none;
}
/* loading end */


/* PC display */
.for-desktop {
    display: block;
    z-index: 10;
}
/* sp display */
.for-mobile {
    display: none;
    z-index: 10;
}


@media (max-width: 1600px) {
    #menu{
        display: none;
        margin: 0;
        padding: 0;
    }
    .background-keisan-san {
        background-size: 40%;
    }

}


/* for smartphone */

@media (max-width: 600px) {
    /* PC display */
    .for-desktop {
        display: none;
    }

    /* sp display */
    .for-mobile {
        display: block;
        margin: 0;
    }
    .for-mobile a{
        display: inline-block;
        max-width: 160px;
    }
    a.for-mobile {
        max-width: 160px;
    }
    .for-mobile img{
        width: 100%;
        max-width: 100px;
        margin: 0px auto 0 60px;
    }
    #calc-logo{
        display:none;
    }
    #clearButton{
        top: 4%;
        left: 3%;
    }
    .hamburger-menu {
        max-width: 300px;
        top: 15%;
        left: 3%;
    }
    #menu{
        display: none;
    }
    h2 {
        width: 90%;
        font-size: 1.2em;
    }
    h3 {
        width: 85%;
        font-size: 0.9rem;
    }
    #calc-contents {
        margin: 40px auto 20px;
    }
    .con-workspace, .con-label, .con-result, .con-history p{
        width: 90%;
        margin: 0 auto;
        font-size: 0.9em;
    }
    .con-input {
        width: 85%;
    }
    .md-flex.md-justify-between {
        margin: 0 auto;
        text-align: center;
    }
    .background-keisan-san{
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0%;
        right: 0%;
        background-repeat: no-repeat;
        background-size: 65%;
        background-position: top right;
    }
}
/* for smartphone end */


