/***************************************************

    fv

***************************************************/
.main-content .case-fv {
    position: relative;
    padding: 0;
    background: none;
}

.main-content .case-fv::after {
    position: absolute;
    content: '';
    background: linear-gradient(rgb(0 0 0 / .2), rgb(0 0 0 / .2) 75%, rgb(0 43 49 / 1) 100%);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-content .case-fv h1 {
    content: '';
    position: absolute;
    bottom: 1em;
    left: 1rem;
    width: calc(100% - 1.5em);
    z-index: 1;
}

.main-content .fv-img {
    width: 100%;
    height: 100%;
}

.main-content .fv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}
/***************************************************

    パンくずリスト

***************************************************/

ul.pankuzu {
    padding: 0 20px;
    margin: 20px auto 0;
    width: min(100%, 1000px);
}

ul.pankuzu > li {
    list-style: none;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-right: 24px;
}

ul.pankuzu > li::after {
    position: absolute;
    content: '';
    width: 6px;
    aspect-ratio: 1 / 1;
    top: 50%;
    right: 12px;
    border-right: solid 1.5px var(--color-main);
    border-top: solid 1.5px var(--color-main);
    transform: rotate(45deg) translateY(-50%);
}

ul.pankuzu > li:last-child:after {
    display: none;
}

ul.pankuzu > li > a {
    text-decoration: none;
    color: var(--color-main);
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
    display: block;
    padding: 4px 12px;
}

ul.pankuzu > li > a:hover {
    text-decoration: underline;
}

/***************************************************

    見出し

***************************************************/

h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--color-main);
    font-weight: bold;
    line-height: 1.4;
}

h2.base-h2 {
    background: linear-gradient(to right, rgb(61 109 121 / .2), rgb(61 109 121 / 0));
    padding: 16px 8px;
    margin-top: 2em;
    font-size: 24px;
}

h3.border-main1 {
    padding-bottom: .5rem;
    margin-top: 1.5em;
}

h4 {
    padding-left: 8px;
    position: relative;
    margin-top: 1em;
}

h4::before {
    position: absolute;
    content: '';
    width: 2px;
    height: 1em;
    top: 2px;
    left: 0;
    background: linear-gradient(to bottom, rgb(61 109 121 / 1) 0%, rgb(61 109 121 / .1) 90%);
}

/***************************************************

    本文

***************************************************/

.txt {
    max-width: 40em;
    margin: 0 auto;
}

/***************************************************

    画像

***************************************************/

main img {
    display: block;
    width: min(100%, 400px);
    margin: 1em auto;
}

/***************************************************

    レイアウト

***************************************************/

/****************************
画像と本文 横ならび
*/

.imgtxt {
    margin: 3em 0;
}

@media (min-width: 640px) {
    .imgtxt {
        display: flex;
        justify-content: space-evenly;
        gap: 2em;
        align-items: flex-start;
    }  
    
    .imgtxt > img {
        margin: 0;
        width: min(50%, 400px);
    }
}

/****************************
写真のbefore・after
*/
.before,
.after {
    margin: 1em auto;
    background-color: #d4d3d3;
    padding: 1rem;
}

.before > img,.after > img {
    display: block;
    margin: 0 auto;
}

.main-content figcaption {
    text-align: center;
}

.after {
    background-color: #c5e8f1;
}

/*　画像2枚以上　横ならび */

@media (min-width: 768px) {
    .flex-box {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .flex-box .flex-child {
        flex-basis: 48%;
        max-width: 400px;
        margin: 1rem auto;
    }

    .flex-box .flex-child img {
        margin: 0;
        width: 100%;
        height: auto;
        object-fit: contain; 
    }
}

/***************************************************

    ギャラリー

***************************************************/

.gallery #main-img {
    width: min(100%, 500px);
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;;
    object-position: center;
}

.gallery > ul {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .5em;
}

.gallery > ul > li {
    list-style: none;
    cursor: pointer;
}

.gallery > ul > li img {
    margin: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    transition: .1s;
}

.gallery > ul > li img:hover {
    transform: scale(1.05);
    opacity: .5;
}

/***************************************************

    ボタン

***************************************************/

.btn1 {
    margin: 24px auto;
}

.btn1 img {
    margin: 0;
}