@charset "UTF-8";

body{
    /* min-height: 1920px; */
    min-width: 1280px;
    background-color: #FFFFFF;
    overflow: visible;
}

img{
    width: 100%;
}

a{
    text-decoration: none;
}


*{
    margin: 0;
    padding: 0;

}

.container{
    width: 100%;
    margin: 0 auto;
}

/* ヘッダー */
.header{
    width: 100%;
    background-color: #A9C6D9;
    border-radius: 50px;
    max-width: 1354px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 41px auto;
    height: 70px;
}

.main-title{
    width: 336px;
    height: 301px;
    margin:15px 0;
    padding: 40px;
}


.main-title img{
    width: 70%;
    padding: 35px;
}

.nav{
    width: 70%;
}

.nav ul{
    display: flex;
    list-style: none;
    margin-left: 60%;
    font-size: 15px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.nav li a{
    margin-left: 20px;
    color: #24292E;
}

.nav li a:hover{
    opacity: 0.7;
}

.mainvisual{
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mainvisual img{
    width: 80%;
    min-width: 1920px;
    height: 600px;
    object-fit: cover;
}

/* leaf */
canvas {
    position: absolute;
    top: 0;
    left: 0;
  }


  #leaf-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
  }

.block {
    position: relative;
    width: 200px;
    height: 200px;
    margin: auto;
}

.circleText {
    position: absolute;
    left: 841px; /* 右に移動 */
    top: -106px;   /* 下に移動 */
    transform: scale(1.5); /* サイズを縮小 */
    animation: rotation 18s linear infinite;
}

.circleText__text {
    font-size: 16px;
    fill: black;
    letter-spacing: 0.05em;
}


@keyframes rotation {
    0% {
    transform: rotate(0deg);
    }
    100% {
    transform: rotate(360deg);
    }
}
/* View Compiled */

.content_title{
    opacity: 0; /* ✅ 最初は透明にする */
    text-align: center;
    width: 486px;
    margin: 120px auto;
    font-size: 64px;
    font-family: "Kaisei Decol", serif, sans-serif; /* ✅ フォールバック追加 */
    font-weight: 400;
    font-style: normal;
    position: relative;
    transform: translateY(20px); /* 少し下から始める */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.content_title.show {
    opacity: 1;
    transform: translateY(0);
}

.content_title::after{
    content: '';
    background-color: #24292E;
    height: 1px;
    position: absolute;
    bottom: -5px;  /* 文字と線の間隔を調整 */
    left: 0;
    width: 0%;     /* 初期状態で非表示 */
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.content_title.show::after {
    width: 100%;   /* 線が左から右に広がる */
}


.about_content{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.content_img{
    width: 200px;
    height: 200px;
    margin-right: 30px;
    /* overflow: hidden; 画像がはみ出さないようにする */
}

.about_content{
    position: relative;
}


.content_text{
    display: grid;
    place-items: center;
    background-color: #FBF9F9;
    width: 500px;
    height: 300px;
    font-family: "Karma", serif;
    font-weight: 600;
    font-style: normal;
}

.content_img img {
    position: absolute;
    top: -5.875rem; /* -94px → rem換算 */
    right: 60.1875rem; /* 979px → rem換算 */
    width: 12.5rem; /* 200px → rem換算 */
    height: 12.5rem; /* 200px → rem換算 */
    border-radius: 50%;
    object-fit: cover;
}



.nav_bicycle ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* ✅ 画面幅が狭いときに折り返せる */
    margin: 0 auto;
    width: 100%;
    list-style: none;
    padding: 0;
}

.nav_bicycle ul li {
    width: calc(25% - 12px); /* ✅ 4列で間隔を考慮 */
    margin-right: 47px;
}

.nav_bicycle img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.bicycle_text {
    width: 85%; /* ✅ 画面サイズに応じて調整 */
    max-width: 400px; /* ✅ 最大幅を指定 */
    height: 200px;
    background-color: #f2f2f2;
    text-align: center;
    border-radius: 16px;
    margin-top: -50px;
    padding: 20px; /* ✅ 余白を追加 */
    opacity: 1;
    position: relative;
    z-index: 10;
    margin-left: 50px;
}

.bicycle_text h2{
    font-family: "Karma", serif;
    font-weight: 700;
    font-style: normal;
}

.bicycle_text p{
    font-family: "Karma", serif;
    font-weight: 600;
    font-style: normal;
}

button{
    display: block;
    margin: 0 auto;
    background: rgba(109, 128, 140, 1);
    color: #fff;
    font-weight: bold;
    margin-top: 8px;
    border: none;
    padding: 10px;
    box-shadow: inset;
    border-radius: 50px;
}
.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    align-items: center;
    background-color:rgba(36, 41, 46, 0.8);
    
}

.modal-design {
    background-image: url(../img/green.jpg);
    background-blend-mode: screen;
    background-position:center;
    background-repeat: no-repeat;
    background-size: 110%;
    background-color:lightgray;
    padding: 40px;
    width: 50%;
    height: 50%;
    text-align: center;
    margin: 227px auto;
    border-radius: 50px;
    position: relative;
}

/* 追加 */
.modal-design {
    opacity: 0;
    visibility: hidden; /* 初期状態で非表示 */
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.modal[style*="display: flex"] .modal-design {
    opacity: 1;
    visibility: visible; /* 表示状態 */
}


.modal_text{
    color: #313131;
    opacity: .7;
    z-index: 10; 
    font-size: 18px;
    background-color: rgba(0,0,0, 0.2);
    backdrop-filter: blur(2.5px);
    text-align: center;
    height: 400px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    display: grid;
    place-items: center; 
    height: 50vh;
}




.close {
    color: #24292E;
    position: absolute;
    right:33px;
    top: 12px;
    font-size: 25px;
    cursor: pointer;
}

.block_green{
    width: 300px;
    height: 300px;
    animation: leafFloat 3s ease-in-out infinite alternate;
    transform-origin: center;
    position: absolute;
    top: 49%;
    left: 654px;
    z-index: 400;
}

@keyframes leafFloat {
    0% {
        transform: rotate(-15deg) translate(-10px, -5px);
    }
    50% {
        transform: rotate(15deg) translate(10px, 5px);
    }
    100% {
        transform: rotate(-15deg) translate(-10px, -5px);
    }
}

.block_green img{
    width: 200px;
    height: auto;
}

.contant{
    background-image: url(../img/green2.jpg);
    background-color: #A9C6D9;
    background-blend-mode: overlay;
    backdrop-filter: blur(10px);
    height: 90vh;
    width: 100vw;
    margin-top: 100px;
    -webkit-clip-path:ellipse(80% 100% at 50% 100%);
    clip-path: ellipse(80% 100% at 50% 100%);
    background-repeat: no-repeat;
    background-size: cover; /* 調整1 */
    background-position: center ; /* 調整2 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.contant-text{
    position: absolute;
    top:  0;                    
    bottom:  0;                 
    left:  0;                  
    right:  0;                  
    margin:  auto; 
    padding: 150px;              
}

.btn{
    height: auto;
    font-size: 24px;
    text-align: center;
    margin-top: 100px;
    margin-left: 60px;
}


.btn a {
    background: #eee;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    text-decoration: none;
    z-index: 1;
}

.btn a::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    transition: 0.4s;
    background: rgba(206, 232, 242, 0.65);
    z-index: -1; 
}


.btn a:hover::before {
    top: 0;
    left: 0;
}

.btn a:hover {
    text-decoration: none;
    background-color: #b3d9ff;
}



.footer{
    height: 101px;
    text-align: center;
    font-size: 10px;
    background-color: #6D808C;
    display: grid;
    place-items: center;
}

.footer p{
    font-size: 16px;
}

#backToTop{
    position: fixed;
    right: 37px;
    bottom: 100px;
    height: 50px;
    text-decoration: none;
    font-weight: bold;
    transform: rotate(90deg);
    font-size: 90%;
    line-height: 1.5rem;
    color: #737373;
    padding: 0 0 0 72px;
    border-top: solid 1px;
    cursor: pointer;
    opacity: 0; /* 🔥 最初は非表示 */
    visibility: hidden; /* 🔥 表示切り替え */
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

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


.backToTop a{
    text-align: left;
    font-size:32px;
    color: #333;
}

.backToTop a:hover{
    opacity: .7;
    color: #fff;

}
