/****************** first-message ******************/
#message{
    margin-top: 110vh;
    width: 100vw;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
    font-size: 1.2em;
    z-index: 1;
    box-sizing: border-box;
    padding-top: 10vh;
    padding-bottom: 20vh;
}

#message h2,
#message p{
    width: 80vw;
    margin: 0 auto;
}


#message h2{
    font-size: 1.0em;
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    #message h2{
        font-size: 2.0em;
    }
}

#message p{
    line-height: 3;
    margin-bottom: 20px;
}


/****************** services ******************/
#services {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: var(--background-color);
    padding-top: 0;   
    padding-bottom: 0; 
    position: relative;
}
#services-container {
    margin: 0 auto;
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
}

.wave-top {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-top .shape-fill,
.wave-bottom .shape-fill {
    fill: var(--background-color);
}

.wave-bottom {
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* サービスコンテンツのスタイル */
.service-content {
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    align-items: center; /* 縦方向中央揃え */
    justify-content: center; /* 水平方向中央揃え */
    margin-top: 10vh; /* マージンを調整 */
    margin-bottom: 10vh; /* マージンを調整 */
    text-align: center; /* テキストを中央揃え */
}

.service-image {
    width: 80%; /* スマホでは写真の幅を広げる */
    margin-bottom: 20px; /* 写真とテキストの間に余白を追加 */
}

.service-image img {
    width: 100%;
    border-radius: 20px;
    height: auto;
    display: block;
}

.service-text {
    width: 80%; /* スマホでは文章の幅を広げる */
    background-color: #fff;
    border-radius: 20px;
    padding: 30px; /* 内側の余白を追加 */
    text-align: left;
}

.service-category {
    font-size: 16px;
    font-weight: 600; /* semibold */
    color: var(--text-color);
    margin-bottom: 10px;
}

.service-list {
    font-size: 14px;
    color: var(--text-color);
    list-style: disc; /* 箇条書きの記号をディスクに変更 */
    padding-left: 40px; /* 左側の余白を追加 */
}

@media screen and (min-width: 768px) {
    #services{
        padding-left: 0;
        padding-right: 0
    }
    #services-container{
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .service-content {
        flex-direction: row; /* PCでは横並び */
        align-items: flex-start; /* PCでは上揃え */
        justify-content: space-around; /* PCでは均等配置 */
        text-align: left; /* PCではテキストを左揃え */
        margin-top: 20vh; /* マージンを調整 */
        margin-bottom: 20vh; /* マージンを調整 */
    }
    .service-image {
        width: 25%; 
        margin-bottom: 0; 
    }
    .service-text {
        width: 60%; 
    }
    .service-category,
    .service-list {
        font-size: 24px;
    }
    
}


/* サービスのイメージのアニメーション */


/****************** why synapse ******************/
#why-synapse{
    margin-top: 20vh;
    margin-bottom: 10vh;
    position: relative; /* 相対配置に変更 */
}

#why-synapse .section-title{
    text-align: center;
}

#venn-container {
    width: 70%;
    max-width: 500px;
    margin: 10vh auto;
    position: relative; /* 絶対配置の基準点 */
}

#venn {
    width: 100%; /* 親要素いっぱいに広げる */
    height: auto;
    display: block; /* インライン要素の余白をなくす */
}

.venn-link {
    position: absolute; /* 絶対配置 */
    display: flex; /* flexboxに変更 */
    align-items: center; /* 垂直方向中央揃え */
    justify-content: center; /* 水平方向中央揃え */
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    width: 30%; /* venn-containerの大きさに合わせるために、適切な値を設定 */
    height: 30%; 
}

.venn-link:hover {
    text-shadow: 0px 0px 1px #ffffff;
}

.top-link {
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%); /* 水平方向中央揃え */
}

.left-link {
    bottom: 25%;
    left: 25%;
    transform: translate(-50%, 50%); /* 垂直方向中央揃え */
}

.right-link {
    bottom: 25%;
    right: 25%;
    transform: translate(50%, 50%); /* 垂直方向中央揃え */
}
@media screen and (min-width: 768px) {
    .venn-link {
        font-size: 24px;
    }
}

/****************** recruit ******************/
#recruit{
    padding: 5%;
    text-align: right;
}

#recruit p,
#recruit .section-title{
    text-align: left;
}

/****************** contact ******************/
#contact{
    padding: 5%;
    text-align: right;
}

#contact p,
#contact .section-title{
    text-align: left;
}
