div.about_main {
	background-image: url("../img/case-main-photo.webp");
	background-repeat: no-repeat;
    background-position: center;
	background-size: cover;
    position: relative;
}

div.about_main::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: black;
    opacity: 0.13;
}


div.about_main h1 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2rem;
    text-shadow: #000 1px 0 10px;
    height: 256px;
    width: 100%;
    max-width: 1450px;
    margin: auto;
    display: flex;
    align-items: center;
    width: 90%;
    font-weight: bold;
}
body {
    font-family: "微软雅黑", "宋体", "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

/* タイトル */
section h3 {
    font-size: 2rem;
    font-family: "微软雅黑", "宋体", "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    color: #747474;
    max-width: 1450px;
    width: 90%;
    margin: 4rem auto 4rem;
    /* padding: 5% 3% 2%; */
}

/* 写真全体をグリッドで並べる */
.grid {
    width: 90%;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* padding: 2% 3%; */
    max-width: 1450px;
    margin: auto;
}
/* 画像サイズ100% */
.grid img {
    width: 100%;
    cursor: pointer;
}

.modal {
    width: 100%;
    height: 100%;
}

.modal img {
    width: 100%;
    padding: 2% 5%;
    box-sizing: border-box;
}

.modal .scroll {
    width: 100%;
    height: auto;
    max-height: 80%;
    overflow: scroll;
}

/* モーダル後のお問い合わせ */
.modal a {
    width: 40%;
    margin: 2% auto;
    padding: 1% 6%;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    background-color: #000;
    color: #fff;
}

.md-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .7;
    z-index: 9999;
}

.md-contents {
    display: none;
    position: fixed;
    top: 5%;
    left: 50%;
    width: 95%;
    height: auto;
    background-color: #fff;
    transform: translateX(-50%);
    z-index: 10000;
}


.md-inner {
    /* padding: 24px 40px; */
    background: #fff;
}

.md-xmark {
    position: absolute;
    top: 34px;
    right: 20px;
    width: 25px;
    height: 22px;
    z-index: 9999;
    cursor: pointer;
    background-color: #ffffff;
}

.md-xmark span {
    height: auto;
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
    border-radius: 4px;
}

.md-xmark span:nth-of-type(1) {
    top: 8;
    transform: rotate(45deg);
}


.md-xmark span:nth-of-type(2) {
    bottom: 5;
    transform: rotate(-45deg);
}

/* レスポンシブ  */
@media screen and (max-width: 920px) {
    section h3 {
        font-size: 1.625rem;
       /* padding: 4% 3% 2%;*/
    }

    section h3 {
        margin: 2rem auto 1.5rem;
    }
}

@media screen and (max-width: 600px) {
	div.about_main h1 {
        font-size: 1.45rem;
        /* padding-top: 70px; */
        /* padding-left: 70px; */
        height: 160px;
        width: 90%;
    }
    section h3 {
        font-size: 1.125rem;
        /*padding: 4% 3% 3%;*/
    }

    /* モーダルウィンドウの表示後の高さ */
    .md-contents {
        height: auto;
    }

    .md-xmark {
        right: 40px;
        top: 20px;
    }
}


@media screen and (max-width: 420px) {
	/* 画像サイズ90%
	.grid img {
	    width: 90%;
	    cursor: pointer;
	    margin-left: 5%;
	}
    section h3 {
        font-size: 0.99rem;
        padding: 4% 3% 4%;
    }

    .modal a {
        font-size: 0.875rem;
    }

    .md-xmark {
        right: 27px;
    }
     */
}