/* demo section 見出し*/
body > ._flow_ > h2 {
    max-inline-size: var(--content-size, 1200px);
    margin-inline: auto;
    padding: var(--space--6);
}
/* broken layout 共通 */
.section {
    max-inline-size: var(--content-size, 1200px);
    margin-inline: auto;
    padding: var(--space--6);
}

.img-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* broken layout 01 */
.broken-01 {
    display: flex;
    flex-direction: column;
    gap: var(--space--8);
}

/* content */
.broken-01__content {
    display: flex;
    flex-direction: column;
    gap: var(--space--4);
}

.broken-01__content > h2 {
    font-size: var(--font-size--2xl);
    font-weight: 200;
    letter-spacing: 0.025em;
}

.broken-01__content > p {
    font-size: var(--font-size--sm);
}

/* 画像をgrid layoutで配置 */
.broken-01__images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: var(--space--2);
    flex-shrink: 0;
    width: 80vw;
    min-height: max(50vw, 40vh);
    margin-left: auto;
}

.broken-01__img-1 {
    grid-column: span 2 / -1;
    grid-row: 1 / -2;
}

.broken-01__img-2 {
    grid-column: 1 / span 2;
    grid-row: 2 / -1;
}

/* 画面が広いときは broken-01__content と .broken-01__imagesが横並び */
@media (min-width: 800px) {
    .broken-01 {
        flex-direction: row;
    }

    /* 親に対する自信の配置を上下中央に寄せる */
    .broken-01__content {
        align-self: center;
    }

    .broken-01__images {
        width: 40vw;
    }
}

.img-frame {
    overflow: hidden;
}

.img-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* broken layout 02 */
.broken-02 {
    display: flex;
    flex-direction: column;
}

.broken-02__title {
    font-size: var(--font-size--2xl);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.025em;
}

.broken-02__subtext {
    margin-top: 1.5em;
    font-size: var(--font-size--sm);
}

.broken-02__img-1 {
    box-shadow: var(--shadow--md);

    /* 小さい画面サイズでの配置 */
    aspect-ratio: 16 / 9;
    width: 45%;
    margin-top: 1.5em;
    margin-left: auto;
}

.broken-02__img-2 {
    box-shadow: var(--shadow--lg);

    /* 小さい画面サイズでの配置 */
    aspect-ratio: 3 / 2;
    width: 70%;
    margin-top: -4vw;
}

/* 画面が広い時 */
@media (min-width: 800px) {
    .broken-02 {
        display: grid;
        grid-template-columns: repeat(24, 1fr);
        grid-template-rows: repeat(24, 1fr);
        height: max(20em, 80vh);
    }

    .broken-02 > .img-frame {
        width: auto;
        margin: 0;
        aspect-ratio: unset;
    }

    .broken-02__img-1 {
        grid-column: span 10 / -1;
        grid-row: 1 / span 9;
    }

    .broken-02__img-2 {
        grid-column: 1 / span 15;
        grid-row: 8 / -1;
    }

    .broken-02__title {
        grid-column: 2 / span 12;
        grid-row: 2 / span 5;
        align-self: center;
    }

    .broken-02__subtext {
        grid-column: span 8 / -1;
        grid-row: span 14 / -1;
        place-self: end;
    }
}

/* broken layout */
.broken-03 {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-template-rows: repeat(24, 1fr);
    height: 100svh;
    padding: 0.75em;
}

.broken-03__img {
    grid-column: 1 / span 6;
    grid-row: 1 / -1;
    z-index: 0;
    position: relative;
}

.broken-03__img::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px) grayscale(0.4);
}

.broken-03__title {
    color: rgb(204 194 153 / 1);
    grid-column: 3 / -3;
    grid-row: 4 / -4;
    align-self: center;
    z-index: 1;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: min(18vw, 16.6vh);
    text-shadow: -0.5em 0 4em var(--color--bg);
}

.broken-03__title > h2 {
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: min(16vw, 1616.6vh);
}

.broken-03__subtext  {
    grid-column: 10 / -2;
    grid-row: span 3 / -2;
    place-self: end;
    max-width: 20em;
    font-size: 1em;
    opacity: 0.8;
    z-index: 1;
}

/* 画像回り込layout */

.shape-outside-content {
    display: flow-root;
}

.shape-outside-content > .img-frame {
    shape-outside: var(--clip-path, unset);
    clip-path: var(--clip-path, unset);
}

.img-frame--circle {
    float: left;
    width: min(30vw, 300px);
    aspect-ratio: 1 /1;
    margin-right: 1.5em;
    margin-bottom: 1.5em;

    /* 円形に回り込む */
    --clip-path: circle(50%);
}

.img-frame--polygon {
    float: right;
    width: min(30vw, 300px);
    aspect-ratio: 1 / 1;
    margin-left: 1.5em;
    margin-bottom: 1.5em;

    --clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
}


