.main{
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
}
.top{
    width: 100%;
    text-align: center;
}
.top p{
    align-items:center;
    padding:150px 0;
    font-size: 36px;
    font-family: "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}


.service{
    width: 1280px;
    width: 100%;
    background-color:rgb(195, 195, 195) ;
    padding-top: 10%;
    padding-bottom: 5%;
}
.service-title{
    text-align: center;
    font-size: 36px;
}
.service-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
}
.service-item{
    width: 30%;
    text-align: center;
    margin-top:10% ;
}
.service-item-img{
    max-width: 400px;
    max-height: 400px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
  
}

/* ==============
   Achievements 全体
=============== */
.achievements {
    width: 1280px;
    margin: 0 auto;
    padding-top: 10%;
    padding-bottom: 5%;
}

/* タイトル */
.achievements-title {
    text-align: center;
    margin-top: 10%;
    margin-bottom: 10%;
    font-size: 36px;
}

/* ==============
   全体横スライド
=============== */
.achievements-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.achievements-slider::-webkit-scrollbar {
    height: 8px;
}
.achievements-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ==============
   各アイテム
=============== */
.achievements-item {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    gap: 20px;
    margin-top: 5%;
}

/* ==============
   iframe表示エリア
=============== */
.achievements-img-wrap {
    position: relative;
    width: 50%;
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.achievements-img-wrap::-webkit-scrollbar {
    width: 6px;
}
.achievements-img-wrap::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

/* iframe本体 */
.achievements-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ドット全体 */
.achievements-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

/* 通常ドット */
.achievements-dots .dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s;
}

/* アクティブ時（色が変わる） */
.achievements-dots .dot.active {
    background: #000;
}
/* ==============
   テキストエリア
=============== */
.achievements-area {
    width: 50%;
    margin-left: 10px;
}

.achievements-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.achievements-content {
    margin-top: 10px;
}



.about{
    margin-top: 10%;
    width: 100%;
    background-color:rgb(195, 195, 195) ;
    padding-top: 10%;
    padding-bottom: 5%;
}
.about-title{
    text-align: center;
    font-size: 36px;
    margin-bottom: 10%;
}
.about-area{
    display: flex;
    justify-content: center;
    margin-bottom: 5%;
}
.about-img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%; 
}
.about-comment{
    margin-left: 20px;
    float: left;
    width: 50%;
}
.contact{
    margin-top: 10%;

}
.contact-title{
    text-align: center;
    font-size: 36px;
    margin-bottom: 5%;
}
.contact-area{
    text-align: center;
}
.contact-link{
    margin: 10px;
    width: 200px;
    
}

/* ========== スマホ ========== */
@media (max-width: 768px) {

    .top p {
        padding: 100px 0;
        font-size: 28px;
    }
    .service{
        padding-top: 10%;
        padding-bottom: 10%;
    }
    .service-item{
        width: 80%;
    }
    .achievements {
        width: 90%;
        margin: 0 auto;
        padding-top: 10%;
        padding-bottom: 5%;
    }
    .achievements-item {
        display: flex;          /* ← これが無かった */
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .achievements-img-wrap {
        width: 100%;
        height: 1000px;
        overflow: hidden;
    }
    


    .achievements-area {
        width: 95%;
        margin-left: 0;
    }

    .about-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-comment {
        width: 80%;
        margin-left: 0;
        margin-top: 20px;
    }

    .about-img{
        width: 120px;
        height: 120px;
    }

    .contact-link{
        width: 40%;
    }
}

/* ========== 超小型スマホ（iPhone SEなど） ========== */
@media (max-width: 480px) {

    .top p {
        font-size: 24px;
    }

    .service-item{
        width: 100%;
    }

    .achievements-img-wrap {
        height: 280px;
    }

    .achievements-title, 
    .service-title,
    .about-title,
    .contact-title {
        font-size: 28px;
    }
}