@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sedan:ital@0;1&display=swap');
html,body{
    font-size: 62.5%;
    font-family: "Shippori Mincho","Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    background-color: #333333;
    color: #fff;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
h1,#tel>h3{
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
    clip-path: inset(0px 0px 99.9% 99.9%);
    overflow: hidden;
    height: 1px;
    width: 1px;
    padding: 0;
    border: 0
}
h2{
    font-size: 2.1rem;
    font-weight: 500;
    border-bottom: 1px solid #fff;
    margin-bottom: 1em;
}
h3{
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1em;
}
p,dt,dd,li{
    font-size: 1.6rem;
    line-height: 1.6;
}
section>p,
.yasu{
    font-family: "Sedan", serif;
    font-weight: 400;
}
small{
    font-size: 1.4rem;
}

button,
input,
select,
textarea {
  -webkit-appearance: auto;
  appearance: auto;
  border-width: 1px;
  background-color: #fff;
  font-size: 0.9em;
  padding: 0.4em;
}
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
  vertical-align: initial;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  background-color: #f0f0f0;
  border: solid 1px #666;
  border-radius: 3px;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover {
  background-color: #ddd;
  cursor: pointer;
}
::placeholder{
    color: #bbb;
}
  

header{
    display: grid;
    grid-template-columns: 16px 1fr 16px;
    grid-template-rows: 5dvh 80dvh 10dvh auto 5dvh;

    >p{
        display: none;
    }
    #top_bg{
        grid-column: 2/3;
        grid-row: 2/4; 
    }
    >div:last-of-type{
        grid-column: 1/4;
        grid-row: 3/5;
        background-color: rgba(255,255,255,0.2);
        backdrop-filter: blur(2px);
        box-shadow: 0px 2px 2px rgba(0,0,0,0.3);
        padding: 20px 18px 10px;

        >p{
            font-size: 1.4rem;
            line-height: 1.2;
            text-align: right;
            letter-spacing: 1px;
        }
        >p:first-of-type{
            font-size: 3vmax;
            line-height: 1;
            text-align: left;
            letter-spacing: 5px;
            padding-bottom: 5px;
            border-bottom: 1px solid #fff;
            margin-bottom: 5px;
            text-shadow: 0 1px 1px rgba(0,0,0,0.3);
        }
        >p:last-of-type{
            font-size: 1.2rem;
        }
    }
}
@media (min-width:768px){
    header{
        grid-template-columns: 7vw 1fr 7vw;
    
        >p{
            display: block;
            text-align: center;
            writing-mode: vertical-rl;
        }
        >p:first-of-type{
            transform: rotate(180deg);
            grid-column: 1/2;
            grid-row: 2/4;
            padding-right: 2.5vw;
        }
        >p:last-of-type{
            grid-column: 3/4;
            grid-row: 2/4; 
            padding-right: 2.5vw;
        }
        >div:last-of-type{
            padding: 20px 7vw 10px;    
        }
    }
}
main{
    padding: 8% 0 3%;
}
#vision_bg{
    padding: 25vmin 0;
    text-align: center;
}
#vision{
    background-image: url(../images/yasu-estate-ceo_a.jpg);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 71% auto;
    padding: 40vh 0 5vmin 11%;

    >p{
        text-align: right;
        font-size: 4.8rem;
        mix-blend-mode: difference;
        padding-right: 16px;
    }
    >div{
        background-color: rgba(255,255,255,0.75);
        padding: 10px;
        
        >h2{
            color: #333;
            border-bottom: 1px solid #333;
            margin-bottom: 0.7em;
        }
        >p{
            color: #333;
            margin-bottom: 0.5em;
        }
        >p:last-of-type{
            padding-top: 15px;
            text-align: right;

            span{
                padding-right: 10px;
            }
        }
    }
}
@media (min-width:768px){
    #vision_bg{
        padding: 20vmin 0;
        /* text-align: center; */
    }
    #vision_bg p{
        font-size: 2.4rem;
    }

    #vision{
        background-image: url(../images/yasu-estate-ceo_b.jpg);
        background-position: right top;
        background-size: 77% auto;
        padding: 10vw 0 5vmax 11%;

        >p{
            text-align: left;
            font-size: 9vw;
        }
        >div{
            width: 50%;
            padding: 15px;            
        }
    }
}

#auto-loop {
  display: flex;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 700;
  font-style: italic;
  font-size: 6rem;
  line-height: 2;
  color: rgba(255,255,255,0.2);
}

.auto-loop_item {
  transform: translateX(0);
  animation-name: scroll;
  animation-duration: 60s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}

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

#about{
    padding: 210px 0 30% 0;
    background-image: url(../images/about_bg.jpg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto 250px;

    >p{
        padding: 0 16px 20px 0;
        text-align: right;
        font-size: 4.8rem;
        mix-blend-mode: difference;
    }
    >div{
        display: flex;
        flex-flow: column nowrap;
        justify-content: flex-start;
        gap: 40px;

        >div{
            padding: 0 16px;

            dl{
                display: flex;
                flex-flow: row wrap;
                justify-content: flex-start;
                gap: 1em 3%;

                dt{
                    flex: 0 1 27%;
                    font-size: 1.4rem;
                }
                dd{
                    flex: 0 1 70%;
                    font-size: 1.4rem;

                    ul{
                        list-style-type: circle;
                        list-style-position: inside;
                    }
                }
            }
        }
        #map{
            width: 100%;
            height: 80vh;
            /* aspect-ratio: 4/3; */

            >iframe{
                width: 100%;
                height: 100%;
            }
        }
    }
}
@media (min-width:768px){
    #about{
        padding: 15% 0 10% 0;
        background-size: contain;

        >p{
            padding: 0 11% 20px 0;
            font-size: 9vw;
        }
        >div{
            flex-flow: row-reverse nowrap;
            justify-content: flex-end;
            gap: 3%;
            width: 89%;

            >div{
                padding: 0;
                flex: 0 1 35%;

                dl{
                    gap: 1.5em 3%;

                    dt{
                        font-size: 1.6rem;
                        letter-spacing: 1px;
                    }
                    dd{
                        font-size: 1.6rem;
                        letter-spacing: 1px;
                    }
                }
            }
            #map{
                flex: 0 1 62%;
                height: auto;
                aspect-ratio: 4/3;
            }
        }
    }
}
#contact{
    padding: 210px 0 30% 0;
    background-color: #D9D9D9;
    background-image: url(../images/contact_bg.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto 250px;
    
    >p{
        padding: 0px 16px 20px 0;
        text-align: right;
        font-size: 4.8rem;
        mix-blend-mode: difference;
    }
    >div{
        color: #333;
        padding: 0 16px;

        h2{
            border-bottom-color: #333;
        }

        #tel{

            >p{
                font-size: 1.4rem;
            }
            >ul{
                padding: 40px 0;
                li{
                    text-align: center;
                    
                    a{
                    font-size: 3.6rem;
                    }
                    span{
                        font-size: 1.4rem;
                    }
                }
            }
        }
        #mail{
            padding-bottom: 30px;
        }
        >form{

            >dl{
                display: flex;
                flex-flow: column nowrap;
                justify-content: flex-start;
                gap: 5px;
                padding-bottom: 40px;

                >dt{
                    background-color: #bbb;
                    padding: 2px 4px;
                    
                    small{
                        font-size: 1.2rem;
                        color: #f00;
                    }
                    small::before{
                        content:"※";
                    }
                }
                >dd{
                    padding: 2px 4px 20px;

                    li{
                        line-height: 1.8;
                    }
                }
            }
            input[type=text],
            input[type=email],
            textarea{
                width: 100%;
                border: 1px solid #666;
            }
            input[type=radio],
            input[type=checkbox]{
                margin-right: 4px;
                transform: scale(1.5);
            }
            input[type=submit]{
                background-color: #0059ff;
                padding: 20px;
                width: 100%;
                border-radius: 50px;
                text-align: center;
                color: #fff;
            }
            input[type=submit]:active{
                background-color: #00256a;
            }
            a{
                text-decoration: underline;
                color: #0059ff;
            }
        }
    }
}
#page_top{
    position: fixed;
    right: 15px;
    width: 55px;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;

    a{
        display: block;
    }
    i{
        font-size: 4rem;
    }
}

@media (min-width:768px){
    #contact{
        padding: 12% 0 5% 0;
        background-size: contain;
        
        >p{
            padding: 0px 0 20px 11%;
            text-align: left;
            font-size: 9vw;
        }
        >div{
            padding: 0;
                width: 78%;
                margin: 0 auto;
                display: flex;
                flex-flow: row nowrap;
                justify-content: center;
                gap: 3%;
    
            #contact_l{
                flex: 0 1 40%;
                >h2{
                    border-bottom-color: #333;
                }

                #tel{
        
                    >p{
                        font-size: 1.4rem;
                    }
                    >ul{
                        padding: 40px 0;
                        li{
                            text-align: center;
                            
                            a{
                            font-size: 3.6rem;
                            }
                            span{
                                font-size: 1.4rem;
                            }
                        }
                    }
                }
                #mail{
                    padding-bottom: 30px;
                }
            }
            >form{
                    flex: 0 1 57%;

                >dl{
                    display: flex;
                    flex-flow: row wrap;
                    justify-content: flex-start;
                    gap: 10px 1%;
                    padding-bottom: 40px;
    
                    >dt{
                        padding: 2px 4px;
                        flex: 0 1 33%;
                    }
                    >dd{
                        padding: 2px 4px;
                        flex: 0 1 66%;
    
                        li{
                            line-height: 1.8;
                        }
                    }
                }
                >p{
                    text-align: center;
                }
                input[type=submit]{
                    padding: 20px;
                    width: 50%;
                }
            }
        }
    }
    #page_top{
        cursor: pointer;
    }
}

footer{
    padding: 20px 16px 40px;

    >p:first-of-type{
        font-size: 2.4rem;
        letter-spacing: 2px;
        border-bottom: 1px solid #fff;
        margin-bottom: 5px;
    }
    >p:last-of-type{
        text-align: center;
    }
}

@media (min-width:768px){
    footer{
        padding: 20px 16px 40px;
        width: 78%;
        margin: 0 auto;
    }
}

.remodal{
    width: 90%;
    height: 80vh;
    overflow-y: auto;
    padding: 30px 15px;

    h3{
        border-bottom: 1px solid #bbb;
    }
    p{
        font-size: 1.4rem;
        text-align: left;
        margin-bottom: 1em;
    }
    h4{
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5em;
        text-align: left;
    }
}
