@charset "UTF-8";

/*=========================
section__top
=========================*/
/* 全体のレイアウト */
.section__top{
    background-image: url(../images/blue_bg.png);
    background-repeat: no-repeat;/* 画像を繰り返し表示しない */
    background-size: cover;/* 画面を全体に囲む */
    background-position: center;/* 画像が中央から広がるように */
    padding: 0 6.6% 80px;
 }

  /* ページタイトルのスタイル */
.service__top__subtitle {
    font-family: "DM Sans", sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue,#11438a);
    text-align: center; /* 中央揃え */
    padding-top: 65px;
    letter-spacing: 0.1em;/* 字間 */
}

.service__top__title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-blue,#11438a);
    text-align: center; /* 中央揃え */
    padding-bottom: 65px;
}

/* pcのsection__top */
@media screen and (min-width: 768px) {
    /* 全体のレイアウト */
    .section__top {
        text-align: center;
        padding: 125px 6.6%;
    }

    .section__top-group{
        display: flex;
        margin: 0 auto;
        max-width: 1000px;
    }

    .service__top__subtitle {
        padding: 90px 0 0 100px;
        text-align: left;
    }

    .service__top__title {
        padding: 0 0 90px 100px;
        text-align: left;
    }
}

/*=========================
section__message
=========================*/

/* 写真のスタイル */
.section__title-group img {
    width: 100%;
    height: 325px;
    margin-bottom: 0;
    object-fit: cover; /* 写真の比率を維持 */
}

/* メッセージ全体 */
.message-group {
    background-color: var(--primary-white,#FDFDFD);
    margin: 0 auto;
}
/* メッセージの段落 */
.message-group {
    padding: 40px 8% 0;
}

.message__text{
    font-size: 1.4rem;
    font-weight: 400;
    padding-bottom:25px;
    text-align: justify; /* 両端揃え */
    text-align-last: left; /* 最後の行だけ左揃え */
}

.message__name-group{
    color: var(--primary-blue,#11438a);
    font-weight: bold;
    text-align: right;
}

.message__position{
    font-size: 1.4rem;
}

.message__name{
    font-size: 1.8rem;
    padding-bottom: 40px;
}

@media screen and (min-width: 768px) {
    /* 写真のスタイル */
    .section__title-group img {
        max-width: 450px;
        height: auto; /* 縦横比を維持 */
        object-fit: contain; /* 画像全体を表示しつつ比率を保つ */
        position: relative; /* z-indexを有効にする */
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* 右側のテキスト */
    .message-group {
        background: linear-gradient(to right, #11438a, #55a2e6);
        color: var(--primary-white, #FDFDFD);
        width: 600px;
        padding: 50px 80px;
        z-index: 1;
        position: relative; /* 絶対位置で配置 */
        margin-left: -50px; /* 画像と重ねる */
        margin-bottom: 50px;

    }

    /* テキストのスタイル */
    .message__text {
        font-size: 1.6rem;
        line-height: 1.6em;
        margin-bottom: 0;
    }

    .message__name-group {
        color:var(--primary-white,#FDFDFD);
        padding-bottom: 0;
    }

    .message__position{
        font-size: 1.6rem;
        padding-bottom: 5px;
    }
    
    .message__name{
        font-size: 2rem;
        padding-bottom: 0;
    }
}

@media screen and (max-width: 1135px) {
    .message-group{
        margin-bottom: 0;
    }
}
/*=========================
section__about
=========================*/
.section__about{
    padding: 80px 6.6% 100px;
}

.about__title{
    padding-bottom: 50px;
}

.about__list{
    max-width: 700px;
    margin: 0 auto;
}

.about__list li h3{
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-blue,#11438a);
    padding-bottom: 30px;
}

.about__list li p{
    font-size: 1.6rem;
}

.about__list li::after{
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue,#11438a);
    margin: 50px 0;
}

.about__list li:last-child::after {
    display: none;
}

.contact__btn_L{
    margin-top: 100px;
}

@media screen and (min-width: 768px){
    .section__about{
        padding: 120px 6.6% 150px;
    }

    .about__title{
        padding-bottom: 100px;
    }

    .about__list li{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* 左右に要素を配置 */
        align-items: flex-start; /* 上揃え */
        }
    
    .about__list li h3 {
        font-size: 1.8rem;
        flex: 0 0 150px; /* 固定幅を指定して左側を揃える */
        text-align: left; /* 左揃え */
        padding-bottom: 0;
    }
        
    .about__list li p,
    .about__address {
        font-size: 1.8rem;
        flex: 1; /* 残りのスペースを使用 */
        text-align: left; /* 左揃え */
    }

    .about__address br{
        display: none;
    }
}