@charset "utf-8";

:root{
    --deepblue:#050a1e;
    --gold:rgb(241, 196, 15);
    --white:#f1f1f1;
    --black:#333333;
    --bg: #ebebeb;
}

a{
    cursor: pointer;
}


body{
    font-family: Shippori Mincho;
    color:var(--black);
    background-color:var(--deepblue);
}

main{
    margin: 0 auto ;
}
/* 各セクションのmargin-top */
.sec_margin_top{
    margin-top: 5rem;
}
/* セクションのコンテナ内margin-top */
.con_margin_top{
    margin-top: 2rem;
}
/* コンテナを中央揃えにする */
.w-container{
    width: 90%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
/* 各セクションのタイトル */
h2.sec_title {
    font-size: clamp(1.5rem, 0.7305rem + 3.1169vw, 2.25rem);
    text-align: center;
    width: 100%; 
    margin: 0 auto;
    color: var(--white);
    position: relative;
    margin-bottom: 0.2rem;
    font-weight: 300;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
}

h2.sec_title::before {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    color: #f4efd49f;
    font-size: clamp(3rem, 1.591rem + 4.55vw, 5rem);
    text-transform: uppercase;
    content: '';
    z-index: -1;
    width: 100%; 
    font-family: Cormorant;
    font-style: italic; 
    font-weight: bold;
}



/* loading画面 */
#loading {
    background-color:#061935;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    place-items: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}


/* --------------------ボタン-------------------- */

.btn {
    text-align: center;
}   

.fa-button{
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: var(--white);
    transition: 0.3s ease-in-out;
    font-weight: 500;
}

.fa-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(241, 196, 15, 0.4);
    transition: all 0.3s;
}
.fa-button:hover::before {
    opacity: 0;
    transform: scale(0.4, 0.4);
}
.fa-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s;
    border: 2px solid rgb(241, 196, 15, 0.7);
    transform: scale(1.2, 1.2);
}
.fa-button:hover::after {
    opacity: 1;
    transform: scale(1, 1);
}

/* --------------------header-------------------- */


.header {
    position: fixed;
    z-index: 10;
    width: 100%;

}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--white);
}


.header_nav ul {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header_nav li {
    padding: 0 1rem; 
}

.header_nav li > a {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
}

.header_nav li span{
    font-size: 0.8rem;
}
.header_nav li > a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background: var(--white);
    bottom: -1px;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform 0.3s;
}
.header_nav li > a:hover::after {
    transform: scale(1, 1);
}

/* Responsive Styles */
@media (max-width: 900px) {
    #menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 3;
        cursor: pointer;
    }

    #menu-btn span,
    #menu-btn span::before,
    #menu-btn span::after {
        content: "";
        height: 2px;
        width: 100%;
        border-radius: 3px;
        background: var(--white);
        position: absolute;
        transition: 0.2s;
    }

    #menu-btn span {
        top: 0;
    }

    #menu-btn span::before {
        top: 8px;
    }

    #menu-btn span::after {
        top: 16px;
    }

    #menu-btn.open span {
        top: 8px;
        transform: rotate(45deg);
    }

    #menu-btn.open span::before {
        opacity: 0;
    }

    #menu-btn.open span::after {
        top: 0;
        transform: rotate(-90deg);
    }

    .header_nav {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: -150%;
        right: 0;
        z-index: 2;
        background-color: #333333c0;
        transition: 0.5s;
    }

    .header_nav.open {
        top: 0;
    }

    .header_nav ul {
        display: flex;
        flex-direction: column;
        padding: 4rem 2rem;
    }

    .header_nav li {
        padding-bottom: 1.5rem;
        opacity: 0;
    }

    .header_nav.open ul li:nth-child(1) {
        animation: anim1 0.5s ease 0.2s forwards;
    }
    
    .header_nav.open ul li:nth-child(2) {
        animation: anim1 0.5s ease 0.3s forwards;
    }
    
    .header_nav.open ul li:nth-child(3) {
        animation: anim1 0.5s ease 0.4s forwards;
    }
    
    .header_nav.open ul li:nth-child(4) {
        animation: anim1 0.5s ease 0.5s forwards;
    }
    
    .header_nav.open ul li:nth-child(5) {
        animation: anim1 0.5s ease 0.6s forwards;
    }
    
    .header_nav.open ul li:nth-child(6) {
        animation: anim1 0.5s ease 0.7s forwards;
    }
    
    .header_nav.open ul li:nth-child(7) {
        animation: anim1 0.5s ease 0.8s forwards;
    }
    
    .header_nav.open ul li:nth-child(8) {
        animation: anim1 0.5s ease 0.9s forwards;
    }
    
    @keyframes anim1 {
        0% {
            opacity: 0;
            transform: translateX(-50%);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    
}

/* ----------------------------キラキラ--------------------------- */

#particles-js{ 
	position:fixed;/*描画固定*/
	z-index:-1;/*描画を一番下に*/
	width: 100%;
	height: 100%;
	background-color:var(--deepblue);/*背景色*/
}

#wrapper{
	position: relative;/*描画を#particles-jsよりも上にするためposition:relative;を指定*/
	z-index: 1;/*z-indexの数字を大きくすることで描画を#particles-jsよりも上に*/
	width:100%;
	height: 100%;
}


/* --------------------メインビジュアル-------------------- */


.mainsec {
    background-image: url(../images/mainimage.jpg); 
    background-position: center;
    background-size: cover;
    height: 100vh; /* セクションを画面全体に広げる */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_text {
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* テキストに影をつけて読みやすくする */
}

.main_text h1 {
    font-size: clamp(3.75rem, 2.386rem + 6.82vw, 7.5rem);
    color: var(--white);
    margin-bottom: 0.5em;
    font-family: Cormorant;
    font-weight: 300;
    font-style: italic; /* キャッチコピーをイタリックにする */
}

.main_text p {
    font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
    color: var(--white);
    font-style: italic; /* キャッチコピーをイタリックにする */
}

/* メインセクションのスタイル */
.mainsec {
    position: relative;
    height: 100vh; /* セクションを画面全体に広げる */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6); /* 背景に薄い黒色を追加 */
}

/* 星空エリアのスタイル */
.stars {
    position: absolute;
    width: 100%;
    height: 50vh; /* 縦幅 */
    overflow: hidden;
    top: 10%; /* 上揃え */
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 20%);
     /* 上側の台形 */
}

/* 星のスタイル */
.star {
    position: absolute;
    display: block;
    background-color: #fff; /* 星の色 */
    border-radius: 50%;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.2); /* 星の影 */
    opacity: 0;
    animation: twinkle 3s infinite;
}

/* 星がキラキラ光るアニメーション */
@keyframes twinkle {
    0% {
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}


.shooting-star {
    position: absolute;
    width: 3px;
    height: 80px;
    background: linear-gradient(white, rgba(255, 255, 255, 0));
    animation: shooting 2s linear infinite;
    opacity: 0.75;
    top: 0;
    left: 90%;
    animation-delay: 0;
}


@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotate(-135deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateX(-20vw) translateY(20vh) rotate(-135deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-40vw) translateY(40vh) rotate(-135deg);
    }
}


/* --------------------NEWS-------------------- */



.news{
    background-color: var(--bg);
    padding: 1rem 0;
}

.news_container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.news_container h2{
    border-right: 1px solid var(--deepblue);
    width: 10rem;
    display: flex;
    align-items: center;
    color: var(--black);
    margin: 0;
}

.news_container li{
    padding: 0.5rem 0;
}


.news_container li a{
    display: flex;
}

time{
    padding: 0 2rem;
}

.news_tag{
    padding-right: 1rem;
}

@media screen and (max-width: 900px) {
    .news_container{
        flex-direction: column;
    }
    .news_container h2{
        border-right: none;
        width: 100%;
        align-items: center;
        justify-content: center;
    }
}
@media screen and (max-width: 600px) {
    .news_container li a{
        flex-direction: column;
    }
    time{
        padding: 0 ;
    }

}



/* --------------------施設紹介-------------------- */

.facilities .sec_title::before{
    content: 'Facilities';
}

.facilities {
    padding-top: 120px;
    padding-bottom: 120px;
}
.facilities_inner {
    max-width: 1280px;
    padding-right: 1rem;
    padding-left: 1rem;
}




.facilities_box{
    margin-top: 60px;
    counter-increment: number 1;
}

.fa_box_inner {
    display: flex;
}

.fa_box_textbox  {
    position: relative;
    background-color: rgba( 255, 255, 255, 0.45 );
    padding: 60px 72px 48px;
    margin-top: 50px;
    width: 100%;
    z-index: 1;
}

.fa_box_textbox::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 100%;
    top: 0;
    left: -150px;
    z-index: -1;
    background-color: rgba( 255, 255, 255, 0.45 );
}


.fa_box_title {
    text-align: left;
    font-size: 22px;
    line-height: calc(26.4/22);
    font-weight: 600;
    color: var(--black);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--black);
}



.fa_text {
    font-size: 16px;
    line-height: calc(27.2/16);
    font-weight: 400;
    color: var(--black);
    margin-top: 39px;
}

.fa_box_img {
    width: 100%;
    max-width: 600px;
    display: block;
    position: relative;
    z-index: 5;
    margin-right: auto;
    margin-left: auto;
}


.fa_box_img img {
    aspect-ratio: 600 / 400;
    height: auto;
    object-fit: cover;
    box-shadow: 0px 0px 25px 1px #ffffff;
}


.fa_box_button {
    margin-top: 40px;
}

.fa_box_number::before {
    position: absolute;
    font-size: 3rem;
    letter-spacing: 0.1em;
    line-height: calc(84/70);
    color: var(--white);
    right: 25px;
    font-weight: 100;
    content: "0"counter(number) " ";
    top: 0;
}

.fa_box_number::before {
    right: 50px;
    top: -50px;
}

.facilities_box:nth-child(even) .fa_box_inner {
    flex-direction: row-reverse;
}


.facilities_box:nth-child(even) .fa_box_textbox::before {
    left: initial;
    right: -150px;
}


.facilities_box:nth-child(even) .fa_box_number::before {
    right: initial;
    left: 50px;
}

@media screen and (max-width: 900px) {
    .facilities_inner {
        margin-right: auto;
        margin-left: auto;
        max-width: 600px;
    }
    .fa_box_inner {
        display: block;
    }
    .fa_box_textbox {
        padding: 2rem 1rem;
    }
    .fa_box_textbox::before {
        display: none;
    }
    .fa_box_title {
        text-align: center;
    }
    .fa_box_img {
        max-width: 500px;
    }
}



/* --------------------アクティビティ-------------------- */

.activity .sec_title::before{
    content: 'Activity';
}

.activity-container{
    width: 100%;
    padding: 2rem 1rem;
}

.card_list {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 背景が下から出現＋テキスト */

.cardlist_item {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

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

.mask img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mask::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* マスクの背景色 */
    transition: top 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.mask:hover::before {
    top: 0;
    opacity: 1;
}

.card_title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    font-size: 2rem;
}

.mask:hover .card_title {
    opacity: 1;
}


/* =============================================
SPはここから
============================================= */
@media (max-width: 900px) {
    .card_list {
    max-width: 400px;
    grid-template-columns: repeat(1, 1fr);
}

/* ボタン */
.btn a::after {
    position: absolute;
    right: 15px;
}

.btn a:hover::after {
    right: 10px;
}
}


/* --------------------map-------------------- */

.map .sec_title::before{
    content: 'Map';
}

iframe{
    display: block;
    width: 80%;
    height: 300px;
    margin: 0 auto;
}

/* --------------------アクセス-------------------- */

.access .sec_title::before{
    content: 'Access';
}
.table {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    text-align: center; 
    color: var(--white);
}

table {
    table-layout: fixed;
    width: 100%; 
    margin: 0 auto; 
}

table tr {
    border-bottom: 1px solid #b5b1b1;
}

table th,
table td {
    padding: 1rem 0;
    border: none;
}

table th {
    width: 30%;
}

.table td {
    width: 50%;
    text-align: left;
}

/* sp */
@media (max-width: 900px) {
    table th,
    table td {
        width: 100%;
        display: block;
    }

    table th {
        width: 100%;
    }

    .table td {
        padding: auto;
        width: 100%;
        text-align: center;
    }
}




/* --------------------footer-------------------- */
.footer {
    background-color: #5050503e;
    color: #fff;
    padding: 2rem;
}

.footer_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    width: 90%;
    margin: 0 auto;
    
}

.footer-content {
    width: 100%;
}

.footer_nav {
    margin-bottom: 1.5rem;
}

.footer_nav ul{
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer_nav li {
    padding: 0.5rem;
}


.footer_nav li:last-child {
    padding-bottom: 0;
}

.footer_nav li > a {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
}

.footer_nav li span{
    font-size: 0.8rem;
}

.sns-container {
    display: flex;
    margin-bottom: 1.5rem;
    margin: 0 auto;
    width: 30%;
    justify-content: center;
}

.sns-container .sns_list {
    padding-right: 1rem;
}

.sns_list i {
    font-size: 30px;
}

.footer-container-image {
    width: 50%;
    margin: auto;
}

small{
    display: block;
    width: 100%;
    color: #fff;
    padding: 0.8rem;
    text-align: center;
}


@media (max-width: 900px) {
    footer {
        padding: 1.5rem 0 0;
    }

    .footer-container {
        display: flex;
        flex-wrap: wrap-reverse;
        justify-content: center;
        gap: 2rem;
        margin: 2rem auto;
    }

    .footer-content {
        width: 100%;
        order: 1; 
    }

    .footer_nav {
        margin-bottom: 1.5rem;
    }

    .footer_nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer_nav .li {
        padding: 0.5rem;
    }

    .sns-container {
        justify-content: center;
    }

    .sns_list {
        padding: 0 0.5rem;
    }

    .footer-container-image {
        width: 100%;
        order: 3; 
    }
}

