@charset "UTF-8";

.template-box {
    container-type: inline-size;
    container-name: template-box;
}
.template-box-inner {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 3vw;
    gap: 20px;
    @container template-box (min-width: 600px) {
        flex-direction: row;
        gap: 40px;
    }
}
.template-text {
    flex-grow: 1;
}
.template-text .paragraph {
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
}
.template-text .template-text-content {
    > *:not(:first-child) {
        margin-top: 1em;
    }
    > h1 {
        font-size: calc(2rem + 0.4vw);
        letter-spacing: 0.15em;
        font-weight: 700;
        line-height: 1.2;
        color: #848099;
        margin-bottom: 3vw;
        position: relative;
    }
    > h2 {
        width: 100%;
        font-size: calc(1.8rem + 0.4vw);
        letter-spacing: 0.15em;
        font-weight: 500;
        line-height: 1.2;
        color: #848099;
        margin-bottom: 3vw;
        position: relative;
    }
    > h3 {
        width: 100%;
        font-size: calc(1.6rem + 0.4vw);
        letter-spacing: 0.15em;
        font-weight: 500;
        line-height: 1.2;
        color: #848099;
        margin-bottom: 3vw;
        position: relative;
    }
    ol {
        list-style: decimal;
        padding-left: 1.5em;
        li {
            list-style: decimal;
        }
    }
    ul {
        list-style: disc;
        padding-left: 1.5em;
        li {
            list-style: disc;
        }
    }
    a {
        color: #008ddc;
        text-decoration: underline;
        &:hover {
            text-decoration: none;
        }
    }
}
.template-photo {
    width: 100%;
    flex-shrink: 0;
    @container template-box (min-width: 600px) {
        width: 40%;
    }
}
.template-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
