@charset "UTF-8";

/* ヒーローエリア */
#heroarea {
    position: relative;
}

/* スライドショー */

.slider img {
    width: 100%;
    height: 60Vh;
    display: block;
}

.message-container {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 46.429vw + 131.429px, 800px);
    height: 250px;
    background-color: #ffffffd2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    box-shadow: 0px 0px 26px 8px rgba(17,17,26,0.08);
    padding: 0 5px;
} 

h1 {
    color: var(--mainblue);
    margin-bottom: 20px;
    font-size: clamp(24px, 19.345px + 1.455vw, 40px);
    text-align: center;
}

.message-container p {
    text-align: center;
    font-size: clamp(14px, 0.536vw + 12.286px, 20px);
}

.onayami-text {
    font-size: clamp(24px, 0.714vw + 21.714px, 32px);
    color: var(--mainblue);
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

/* スクロールダウン */
.scroll-down-container {
    height: 150px;
}

.scroll-down {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #809ee2;
    font-size: clamp(10px, 0.357vw + 8.857px, 14px);
    text-decoration: none;
    margin-top: 10px;
}

.gradient-line {
    width: 1px;
    height: clamp(50px, 2.679vw + 41.429px, 80px);
    background: linear-gradient(to bottom, transparent, #809ee2);
    margin-inline:auto;
}

/* お悩み */
.onayami-container {
    margin: 0 auto;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.onayami-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.onayami-hukidashi {
    position: relative;
    background: white;
    border: 2px solid var(--gray);
    padding: 15px 20px;
    width: fit-content;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
}

.onayami-hukidashi:before {
    content: "";
    position: absolute;
    left: 30px;
    bottom: -7px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #2c3e50;
    background: white;
    transform: rotate(45deg);
}

.onayami-hukidashi:nth-child(2):before {
    left: revert;
    right: 30px;
    transform: rotate(-45deg);
}

.onayami-hukidashi p {
    font-size: clamp(14px, 0.536vw + 12.286px, 20px);
}

.onayami-container img {
    width: clamp(100px, 67.949px + 8.547vw, 150px);
} 

.onayami-answer {
    padding: 20px 30px;
    background-color: var(--subblue);
    max-width: 1000px;
    margin: 50px auto;
    font-size: clamp(14px, 0.536vw + 12.286px, 20px);
    font-weight: bold;
}

.onayami-answer span {
    background: linear-gradient(transparent 50%, rgba(116, 155, 226, 0.596) 50%);
}

.scroll_fadein{
  opacity: 0;
}
.fadein_animation_start{
  animation-name: fadein_animation;
  animation-delay: 0.3s;
  animation-duration: 1s;
  animation-fill-mode: both;
}
@keyframes fadein_animation{
  0% {
    opacity: 0;
  }
  100%{
    opacity: 1;
    transform: translate(0);
  }
}
.slideright{
  transform: translateX(50px);
}
.slideleft{
  transform: translateX(-50px);
}

/* 特徴 */
#feature {
    max-width: 1440px;
    margin: 100px auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#feature img {
    width: clamp(250px, 23.438vw + 175px, 400px);
}

#feature ul {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

#feature ul li {
    display: flex;
    align-items: center;
    gap: 60px;
}

#feature ul .reverse {
    flex-direction: row-reverse;
}

.feature-text-box p:first-child {
    font-size: 18px;
    font-weight: bold;
    color: var(--mainblue);
    margin-bottom: 10px;
}

.feature-text-box p:last-child {
    font-size: clamp(14px, 0.536vw + 12.286px, 20px);
}

#works {
    margin: 100px auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#works .works-list {
    margin-top: clamp(30px, 15.000px + 4.688vw, 60px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 50px;
}

#works .works-list li a img {
    width: 400px;
}

#works .works-list li a {
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 15px -5px #777777;
    border-radius: 20px;
}

#works .works-list li a + p {
    font-size: 14px;
    text-align: center;
}

#works .works-list li a::before,
#works .works-list li a::after {
    content: "";
    display: block;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    margin: auto;
    transition: .3s cubic-bezier(0.45, 0, 0.55, 1);
    opacity: 0;
}

#works .works-list li a::before {
    background: rgba(100, 126, 134, 0.6);
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

#works .works-list li a::after {
    color: #fff;
    content: "詳しくみる";
    font-size: 22px;
    font-weight: bold;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    bottom: 0;
    right: 0;
}

#works .works-list li a:hover::before,
#works .works-list li a:hover::after {
    opacity: 1;
}

#works .works-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#works .works-list li .works-label {
    color: #fff;
    background-color: #2c3e50;
    font-size: 12px;
    padding: 3px 6px;
    font-weight: bold;
    text-align: center;
    width: 200px;
}

#works h2 + p {
    font-size: clamp(14px, 0.536vw + 12.286px, 20px);
    margin-top: 10px;
}

#works .bt-common {
    margin-top: clamp(30px, 15.000px + 4.688vw, 60px);
    font-size: 18px;
    width: 150px;
    text-align: center;
    z-index: 1;
} 

/* トップページのみのお問い合わせボタンエリア */
.cta {
    background-color: var(--subblue);
    margin-bottom: clamp(100px, 85.714px + 4.464vw, 150px);
}
.cta-inner{
    margin: 0 auto;
    width: 80%;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cta-inner p {
    font-size: clamp(14px, 11.000px + 0.938vw, 20px);
}

.cta-bt-container {
    display: flex;
    gap: 100px;
}

.cta-inner .bt-common {
    font-size: clamp(16px, 13.714px + 0.714vw, 24px);
    width: clamp(250px, 207.143px + 13.393vw, 400px);
    text-align: center;
    z-index: 1;
}

/* ======================================================================================================================================== */
/* ================================サービスと制作の流れ===================================================================================== */
/* ======================================================================================================================================== */
#service {
    margin: 100px auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h3 {
    font-size: clamp(18px, 15.000px + 0.938vw, 24px);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
    background-color: var(--subblue);
    margin: 60px 0 30px;
}

#service .service-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#service .service-list p {
    margin-bottom: 30px;
    font-size: clamp(14px, 12.000px + 0.625vw, 18px);
}

#service .service-list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(30px, 15.000px + 4.688vw, 60px);
}

#service .service-list ul li {
    width: clamp(280px, 245.000px + 10.938vw, 350px);
    height: clamp(200px, 150.000px + 15.625vw, 300px);
    border: 3px solid var(--mainblue);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(30px, 20.000px + 3.125vw, 50px);
    
}

#service .service-list ul li h4 {
    margin-bottom: 20px;
}

#service .flow ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

#service .flow ul li {
    display: flex;
    width: 80%;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 10;
}

#service .flow ul li img {
    width: 100px;
}

#service .flow ul li .flow-text-box h4 {
    margin-bottom: 5px;
}

#service .flow ul li::before {
    background: var(--mainblue);
    left: 50px;
    content: '';
    height: 100%;
    position: absolute;
    width: 4px;
    bottom: -70px;
    z-index: -100;
}

#service .flow ul li:last-child::before {
    content: none;
}

.flow-text-box p {
    font-size: clamp(14px, 12.000px + 0.625vw, 18px);
}



/* ======================================================================================================================================== */
/* ================================制作実績================================================================================================= */
/* ======================================================================================================================================== */


/* ページネーション */
#pagination {
    display: flex;
    margin-top: 50px;
    gap: 10px;
}

#pagination li {
    background-color: rgb(240, 240, 240);
    color: var(--mainblue);
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pagination li:hover {
    background-color: var(--mainblue);
    color: #fff;
}

#pagination li.active {
    background-color: var(--mainblue);
    color: #fff;
}

/* ======================================================================================================================================== */
/* ================================よくある質問============================================================================================= */
/* ======================================================================================================================================== */


#faq {
    margin: 100px auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#faq ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 50px 0;
}

#faq ul li {
    background-color: var(--subblue);
    padding: 20px 30px;
    border-radius: 30px;
}

.faq-box {
    display: grid;
    grid-template-columns: 50px auto;
    margin-bottom: 20px;
}

.faq-text {
    align-self: center;
    font-size: clamp(14px, 0.357vw + 12.857px, 18px);
}


.faq-circle {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--mainblue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.faq-circle.outline {
    background-color: var(--subblue);
    border: 2px solid var(--mainblue);
    color: var(--mainblue);
}

/*================ デモサイト ===========================*/

#demo {
    width: 70%;
    margin: 100px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(0.875rem, 0.804rem + 0.357vw, 1.125rem);
}

.demosite-link {
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    border: 3px dotted var(--subblue);
    padding: 10px 20px;
}

.demosite-link a {
    border-radius: revert;
}

.demo {
    display: flex;
    margin-bottom: 100px;
}

iframe {
    width: 90%;
    height: auto;
    border: 1px solid #2c3e50;
    overflow-y: hidden;
}

.form-box {
    margin-left: 10px;
}

input[type="text"] {
    width: 250px;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    width: 250px;
    height: 300px;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
}

/*================ お問い合わせ同意書 ===========================*/
.contact {
    margin: 0 auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-agreement {
    margin: clamp(20px, 12.759px + 2.586vw, 50px);
    display: flex;
    gap: 50px;
}

.bt-agreement a {
    text-align: center;
    width: 200px;
    background-color: #fff;
    border: 1px solid #000;
    padding: 10px 0;
}

.bt-agreement a:hover {
    background-color: var(--subblue);
}





/* ======================================================================================================================================== */
/* ================================レスポンシブ対応========================================================================================== */
/* ======================================================================================================================================== */


/*  制作実績の表示列変更  */

/* 画面幅800～1300pxは2列で表示 */
@media (max-width: 1300px) {
    #works .works-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 30px;
    }

}

/* 画面幅800px以下は1列で表示 */
@media (max-width: 800px) {
    #works .works-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
}

/* 制作の流れレスポンシブ対応 */
@media (max-width: 600px) {
    #service .flow ul li {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    #service .flow ul li::before {
        display: none;
    }
}


/* === スマホ対応（960px以下） =================================================================================================================== */

@media (max-width: 960px) {

/*==================== トップページ======================== */

    .slider img {
        height: 40Vh;
    }

    .message-container {
        position: revert;
        transform: revert;
        background-color: revert;
        border-radius: none;
        box-shadow: none;
        margin: 0 auto;
        height: revert;
    } 

    .onayami-container {
        width: 90%;
        flex-direction: column;    
        gap: 40px;
    }

/* 制作実績 */
    #works {
        width: 90%;
    }

/* サービスをご検討の方へ */
    .cta-inner{
        width: 90%;
    }

    .cta-bt-container {
        flex-direction: column;
        gap: 20px;
    }


/*================ サービスの流れ ===========================*/

    #service {
        width: 94%;
    }

    .service-list {
        margin: 30px 0 100px;
    }

    #feature {
        width: 90%;
    }


    #feature ul li ,.reverse {
        flex-direction: column;
    }

    #feature ul .reverse {
        flex-direction: column;
    }

/*================ よくある質問 ===========================*/

    #faq {
        width: 90%;
    }

    #faq ul li {
        padding: 20px 15px;
    }

    .faq-circle {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

/*================ デモサイト ===========================*/

    .demo {
    flex-direction: column-reverse;
    }

    #demo {
    width: 95%;
}


    iframe {
    width: 100%;
    height: 100vh;
    border: 1px solid #2c3e50;
    overflow-y: hidden;
}

    .form-box {
        margin: 50px auto;
        font-size: 12px;
    }

    input[type="text"] {
    width: clamp(250px, 105.882px + 51.471vw, 600px);
    }

    textarea {
    width: clamp(250px, 105.882px + 51.471vw, 600px);
    }


/*================ お問い合わせ同意書 ===========================*/

.bt-agreement {
    flex-direction: column;
    gap: 20px;
}


}


