@charset "utf-8";

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.container {
    max-width: calc(1312px + 3.5rem);
    width: 80vw;
    margin: 0px auto;
    padding: 1.3125rem 1.75rem;
}

.tx_bold {
    font-weight: 600;
}

.font_s {
    font-size: 80%;
}

.tR {
    text-align: right !important;
}

.pc {
    display: block;
}

/* bodyに自動でspが付与されるため使用不可
.sp {
    display: none;
}
*/

p {
    color: #404040;
}

.mv {
    position: relative;
    background-image: url(../img/top_btm.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 40%;
}

.mv_main {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    margin: 0 auto 182px auto;    
    padding: 0 1.75rem;
    max-width: calc(1312px + 3.5rem);
}

.mv_main li:nth-child(1) {
    width: 30%;
}

.mv_main li:nth-child(2) {
    width: 60%;
    padding-top: 30px;
}

.mv_main li img {
    width: 100%;
    height: auto;
}

.logo {
    margin: 28px 0 2vw 0;
}

.top_msg {
    margin: 0 0 0 1vw;
}


.mv h3 {
    text-align: center;
    color: #404040;
    margin: 0 0 80px;
}

.mv h3 span {
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 30px;
    display: block;
}

.mv h3 img {
    display: block;
    width: 351px;
    height: auto;
    margin: 0 auto;
}

.mv p {
    text-align: center;
    line-height: 2;
    margin-bottom: 1.5em;
}

.greeting_prof_wrap {
    max-width: 90%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.greeting_prof {
    width: 180px;
    height: auto;
    margin: 35px 0 0;
}

.greeting_prof img {
    width: 100%;
    height: auto;
}

.greeting_prof .post {
    font-size: .85rem;
    text-align: left;
}

.greeting_prof .name {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: right;
}

.mv_l {
    position: absolute;
    width: 25vw;
    height: 35vw;
    top: 37vw;
    left: -2vw;
    z-index: -1;
    overflow: hidden;
}

.mv_r {
    position: absolute;
    width: 21vw;
    height: 29.4vw;
    top: 37vw;
    right: 0;
    z-index: -1;
    overflow: hidden;
}

.mv_l img,
.mv_r img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.history {
    padding: 100px 0 60px;
    background-image: url(../img/history_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.history h3 {
    text-align: center;
    color: #fff;
    margin: 0 0 80px;
}

.history h3 span {
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 30px;
    display: block;
}

.history h3 img {
    display: block;
    width: 229px;
    height: auto;
    margin: 0 auto;
}

.history ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 180px;
    padding: 0;
    margin: o;
    list-style-type: none;
}

.history ul li {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.history ul li img {
    width: 400px;
    height: auto;
}

.about_logo {
    padding: 100px 0;
}

.about_logo .container {
    text-align: center;
}

.about_logo_img {
    width: 381px;
    height: auto;
    margin: 0 auto 90px;
}

.about_logo h3 {
    margin: 0 0 35px;
    padding: 0;
    font-size: 2rem;
    letter-spacing: 12px;
}

.about_logo p {
    font-size: 1.3rem;
    line-height: 2.3;
}

.message {
    padding: 92px 0 100px;
    background-color: #f0f0f0;
}

.message h3 {
    text-align: center;
    color: #404040;
    margin: 0 0 80px;
}

.message h3 span {
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 30px;
    display: block;
}

.message h3 img {
    display: block;
    width: 292px;
    height: auto;
    margin: 0 auto;
}

.message ul {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.message ul li {
    flex: 0 1 calc((100% - 100px) / 3);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.message ul li img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.message a {
    text-decoration: none;
    color: #404040;
    transition: .5s;
    cursor: pointer;
}

.message a:hover {
    scale: 1.1;
    opacity: .7;
}

.message .msg_body {
    background-color: #fff;
    height: 60px;
    background-image: url(../img/msg_btn.png);
    background-repeat: no-repeat;
    background-size: 60px;
    background-position: right top;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message .msg_body span {
    padding-right: 60px;
}

.thoughts {
    padding: 60px 0 40px;
    background-image: url(../img/thoughts_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.thoughts p,
.thoughts h3 {
    text-align: center;
    color: #fff;
}

.thoughts p {
    line-height: 2.3;
    margin-bottom: 30px;
}

.thoughts h3 {
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 50px;
}

.thoughts_btn {
    text-align: right;
}

.thoughts_btn img {
    width: 240px;
    height: auto;

}

/*modal*/

.modalArea {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .4s;
}

.modalBg {
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.9);
}

.modalWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    padding: 10px 30px;
    /*background-color: #fff;*/
}

.closeModal {
    position: absolute;
    top: -17px;
    right: -4px;
    cursor: pointer;
    color: #fff;
    font-size: 2rem;
}

.is-show {
    visibility: visible;
    opacity: 1;
}

button {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #282828;
    border-radius: 2px;
    cursor: pointer;
}

#openModal {
    cursor: pointer;
    /*
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  */
}

.modalContents {
    background-color: #fff;
    color: #404040;
    padding: 20px;
}

.modalContents h4 {
    margin-bottom: 1em;
    font-weight: normal;
}

.modalContents .modal_img {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modalContents .modal_img img {
    width: 30vw;
    height: auto;
}


/* SP横向きだけ適用 */
@media screen and (max-width: 1000px) and (orientation: landscape) {

    /* ページ側のスクロール禁止（背景固定） */
    body.modal-open {
        overflow: hidden;
        height: 100%;
    }

    /* モーダル全体は画面固定＋スクロールさせない */
    .modalArea {
        position: fixed;
        inset: 0;
        /* top:0; right:0; bottom:0; left:0; の短縮 */
        z-index: 100000;
        overflow: hidden;
        /* ここは隠す */
    }

    /* 黒背景は全画面、常に背面 */
    .modalBg {
        position: fixed;
        inset: 0;
        background-color: rgba(30, 30, 30, 0.9);
        z-index: 1;
    }

    /* モーダル本体は中央固定＋前面 */
    .modalWrapper {
        position: fixed;
        /* 重要：absolute ではなく fixed */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;

        width: 95vw;
        max-width: 800px;

        /* 中身スクロールのための器。高さ上限だけ決めて中を流す */
        /* 直接ここをスクロールにしてもOKだが、iOSで安定させるため中身をスクロールさせる */
        display: flex;
        flex-direction: column;
        padding: 0;
        /* パディングは .modalContents 側へ移動 */
        background: transparent;
        border-radius: 8px;

        /* 高さ上限：新しいビューポート単位に対応（フォールバック付き） */
        max-height: 90vh;
    }

    @supports (height: 1dvh) {
        .modalWrapper {
            max-height: 90dvh;
        }
    }

    /* スクロール領域は中身（.modalContents）に持たせる */
    .modalContents {
        background-color: #fff;
        color: #404040;
        padding: 20px 20px 24px;

        /* ここをスクロール可能にする */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* iOSの慣性スクロール */
        touch-action: pan-y;
        /* 縦スクロールを明示 */

        /* 親がflexのとき、これが無いとスクロール領域が膨らんでしまうことがある */
        min-height: 0;
        max-height: inherit;
        /* 親の上限に追従 */
        border-radius: 8px;
    }

    /* 閉じるボタンは前面 */
    .closeModal {
        position: absolute;
        top: -5px;
        right: -30px;
        z-index: 3;
        color: #fff;
        font-size: 2rem;
        line-height: 1;
    }

    /* 画像サイズは横向きで少し抑えると読みやすい */
    .modalContents .modal_img img {
        width: 40vw;
        height: auto;
        max-width: 280px;
    }
}