@charset "UTF-8";

#face {
    background: #ccd6e0;
    height: 100vh;
    background-image: url(../office/img/top_img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.face_content {
    margin-left: 25vw;
    padding: 20px;
    width: calc(100% - 25vw);
    position: relative;
}

.face_content .face_txt {
    position: absolute;
    left: 30px;
    bottom: 30px;
    line-height: 2;
}

@media all and (max-width: 1200px) {
    #face {
        min-height: auto;
        height: calc(100vh - 80px);
    }
    
    .face_content {
        margin-left: 0vw;
        padding: 20px;
        width: 100%;
    }
    
}

@media all and (max-width: 767px) {
    #face {
        height: calc(100vh - 50px);
        max-height: 400px;
    }

    .face_content .face_txt {
        left: 0px;
        bottom: 0px;
        line-height: 2;
        font-size: 13px;
        text-align: justify;
        margin: 0 20px 20px;
    }
}

/*------------------------
main
------------------------*/
.h2_common span {
    font-size: 40px;
}

.greeting_wrap {
    display: flex;
    justify-content: center;
}

.greeting_wrap .txt {
    width: 50%;
    line-height: 2;
    margin-right: 30px;
}

.greeting_wrap .txt .name {
    text-align: right;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
}

.greeting_wrap .txt .name span {
    margin-right: 1em;
    font-size: 80%;
}

.greeting_wrap figure {
    width: 250px;
}

.greeting_wrap figure img {
    width: 100%;
}

@media all and (max-width: 767px) {
    .h2_common span {
        font-size: 24px;
    }

    .greeting_wrap {
        flex-wrap: wrap;
    }

    .greeting_wrap .txt {
        width: 100%;
        margin-right: 0px;
        font-size: 14px;
    }

    .greeting_wrap .txt .name {
        margin-top: 10px;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .greeting_wrap .txt .name span {
        margin-right: 1em;
        font-size: 80%;
    }

    .greeting_wrap figure {
        width: 200px;
    }

    .greeting_wrap figure img {
        width: 100%;
    }
}

.office_box {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr; /* モバイルは1カラム */
  gap: 1em;
}

/* 各dlは中身の「項目名(dt) / 値(dd)」を並べやすくするためのグリッド。
   モバイルは項目名が上、幅広では項目名を左に寄せて横並びに */
.office_box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr; /* モバイルではdt/ddを縦に並べる */
  gap: 0.25rem 0.75rem;
  align-items: start;
}

.office_box dt {
  margin: 0;
    width: 5em;
}
.office_box dd {
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 999px) {
    .office_box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .office_box dl {
        grid-template-columns: auto 1fr;
    }

    .office_box dt {
        white-space: nowrap;
        padding-right: 0.5rem;
    }
}

/* 電話番号はクリックで発信できるように（任意） */
.office_box a.tel {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.map {
    width: 100%;
}

.map iframe {
    height: 300px;
    width: 100%;
}
