/* 
    Theme Name:Dgraph
    Theme URI:https://dgraph-web.com/
    Description:Dgraphコーポレートサイト
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Yellowtail&display=swap');

body{
    color: #2d2d2d;
    letter-spacing: 2px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

.title{
    text-align: center;
    font-size: 5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    font-family: "Yellowtail", cursive;
    font-weight: 400;
    font-style: normal;
}

.title span{
    display: block;
    padding-top: 10px;
    font-size: 0.8rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem;
}

.page-head{
    padding: 8rem 0 2rem;
}

.page-head h2{
    position: relative;
    text-align: left;
    border-bottom: 1px solid #2d2d2d;
    padding: 2rem 4rem;
    font-size: 6rem;
}

.bk_g{
    background-color: #f8f9f8;
}

table{
    width: 100%;
}

header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 3rem;
    z-index: 1000;
}

header .logo{
    width: 12rem;
}

header ul{
    display: flex;
}

header ul li{
    margin: 0 10px;
}

header ul li a{
    padding: 4px 10px;
}

.fv{
    background: url(img/fvbk.png) center / cover no-repeat;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fv_contents{
    padding: 0 2%;
}

.fv_contents span{
    margin-left: 8px;
}

.fv_contents h2{
    font-size: 3rem;
    line-height: 1.4;
    margin-top: 0.8rem;
}

.float_container{
    width: 50%;
    height: 100%;
    position: relative;
}

.floating-text {
    position: absolute;
    animation: float 6s infinite ease-in-out;
    white-space: nowrap;
}

.floating-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;   /* シャボン玉の大きさ */
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(255 255 255 / 40%), rgb(255 255 255 / 60%));
    border: 1px solid #fff;
    transform: translate(-50%, -50%);
    z-index: -1; /* テキストの後ろに */
    animation: bubble 6s infinite ease-in-out;
}

.co01{
    top: 30%;
    left: 20%;
}
.co02{
    top: 30%;
    left: 60%;
}
.co03{
    top: 50%;
    left: 40%;
}
.co04{
    top: 70%;
    left: 20%;
}
.co05{
    top: 70%;
    left: 60%;
}

/* ふよふよ動く基本アニメーション */
@keyframes float {
    0%   { transform: translateY(0px) scale(1); opacity: 0.8; }
    50%  { transform: translateY(20px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0px) scale(1); opacity: 0.8; }
}

/* シャボン玉のふよふよアニメーション */
@keyframes bubble {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%  { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
}

#news article{
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 1rem 0.4rem;
    margin-bottom: 1rem;
}

.news_time{
    margin-right: 1rem;
}

.news_title a{
    padding: 1rem 1.4rem;
    font-size: 1.2rem;
}

.news_title a:hover{
    opacity: 0.8;
}

.overview th,
.overview td{
    padding: 1rem 2rem;
    border: 1px solid #ccc;
}

.overview li{
    position: relative;
    padding-left: 1rem;
    margin-bottom: 10px;
}
.overview li::before{
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    top: 40%;
    left: 0;
    background-color: #2d2d2d;
}


.ft{
    background-color: #2d2d2d;
    padding: 30px;
}

.ft .logo{
    width: 300px;
}

footer{
    background-color: #2d2d2d;
    color: #ccc;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #ccc;
}

#single .news_title{
    font-size: 2rem;
    border-bottom: 1px solid #b2b2b2;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
}

#single{
    padding: 10rem;
}

#single .news_content{
    margin: 3rem 0;
}

@media screen and (max-width: 1000px) {
    nav{
        display: none;
    }
    .fv{
        height: 100vh;
        align-items: flex-start;
    }
    .fv_contents{
        padding: 10rem 20px;
        z-index: 5;
    }
    .fv_contents h2{
        font-size: 2rem;
    }
    .float_container{
        width: auto;
        position: initial;
    }
    .floating-text {
        font-size: 0.8rem;
    }
    .floating-text::before {
        width: 90px;
        height: 90px;
    }

    .co01{
        top: 50%;
        left: 10%;
    }
    .co02{
        top: 50%;
        left: 70%;
    }
    .co03{
        top: 65%;
        left: 40%;
    }
    .co04{
        top: 80%;
        left: 10%;
    }
    .co05{
        top: 80%;
        left: 70%;
    }

    .title{
        font-size: 4rem;
    }
    #news article{
        flex-direction: column;
        align-items: baseline;
    }
    .news_time{
        margin-right: 0;
        margin-bottom: 0.4rem;
    }
    .news_title a{
        padding: 1rem 0;
        font-size: 1.2rem;
    }
    table tr{
        display: flex;
        flex-direction: column;
    }
	#company th,
    .overview th{
        background-color: #e9e9e9;
    }
	#company th,
	#company td,
    .overview th, 
    .overview td{
        text-align: center;
        padding: 1rem;
    }
	#company td li,
    .overview td li{
        text-align: left;
    }
}