.line-sticker-public--hero,
.line-sticker-public--hero *,
.line-sticker-public__caption-figure,
.line-sticker-public__caption-figure * {
    box-sizing: border-box;
}

.line-sticker-public--hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1.5rem;
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
    overflow-wrap: anywhere;
}

.line-sticker-public--hero .line-sticker-public__hero-copy {
    min-width: 0;
    width: 100%;
}

.line-sticker-public--hero .line-sticker-public__hero-copy h1 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.line-sticker-public--hero .line-sticker-public__hero-copy > p:not(.public-eyebrow) {
    margin-block: 0.9rem;
}

.line-sticker-public--hero .line-sticker-public__hero-copy > .public-lead {
    max-width: 60rem;
}

.line-sticker-public__hero-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    min-width: 0;
}

.line-sticker-public__hero-controls {
    min-width: 0;
}

.line-sticker-public__hero-controls > .line-sticker-public__tool {
    margin: 0 0 0.75rem;
}

.line-sticker-public__hero-controls > .public-muted {
    margin: 0.35rem 0 0;
}

.line-sticker-public__hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(0.45rem, 1.3vw, 0.75rem);
    min-width: 0;
    margin: 0;
    align-self: start;
    padding: clamp(0.85rem, 1.8vw, 1.25rem);
    border: 1px solid #dbcac5;
    border-radius: 1rem;
    background: #fffdf6;
}

.line-sticker-public__hero-source,
.line-sticker-public__hero-stamps {
    min-width: 0;
}

.line-sticker-public__visual-label {
    margin: 0 0 0.45rem;
    color: var(--color-ink);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.line-sticker-public__hero-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.line-sticker-public__hero-source .line-sticker-public__visual-label {
    text-align: center;
}

.line-sticker-public__hero-source > img {
    display: block;
    width: min(100%, 8rem);
    max-width: 8rem;
    height: auto;
    aspect-ratio: 1;
    padding: 0.3rem;
    border: var(--border-soft);
    border-radius: 0.75rem;
    background: #fffdf6;
    box-shadow: 0 0.35rem 1rem rgb(91 51 54 / 8%);
    object-fit: contain;
}

.line-sticker-public__flow-arrow {
    display: grid;
    align-self: center;
    justify-self: center;
    color: var(--color-primary-dark);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 800;
    line-height: 1;
}

.line-sticker-public__hero-visual > .line-sticker-public__flow-arrow {
    transform: rotate(90deg);
}

.line-sticker-public__hero-stamps {
    display: grid;
    min-width: 0;
}

.line-sticker-public__hero-stamp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    min-width: 0;
}

.line-sticker-public__hero-stamp-grid > a {
    display: block;
    min-width: 0;
    border-radius: 0.6rem;
    color: inherit;
    text-decoration: none;
    background-color: var(--color-muted);
    background-image: linear-gradient(45deg, rgb(255 255 255 / 30%) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / 30%) 75%), linear-gradient(45deg, rgb(255 255 255 / 30%) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / 30%) 75%);
    background-position: 0 0, 0.5rem 0.5rem;
    background-size: 1rem 1rem;
}

.line-sticker-public__hero-stamp-grid > a:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.line-sticker-public__hero-stamp-grid > a > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 370 / 320;
    object-fit: contain;
}

.line-sticker-public__hero-zoom-note {
    display: block;
    margin-top: 0.15rem;
}

.line-sticker-public__hero-visual > figcaption,
.line-sticker-public__caption-figure > figcaption {
    grid-column: 1 / -1;
    margin: 0.25rem 0 0;
    color: var(--color-copy);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

.line-sticker-public__hero-description {
    grid-column: 1 / -1;
    margin: 0.45rem 0 0;
    color: var(--color-copy);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

.line-sticker-public__hero-style-badges {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.line-sticker-public__hero-style-badges span {
    padding: 0.2rem 0.55rem;
    border: var(--border-soft);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgb(255 255 255 / 68%);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
}

.line-sticker-public__case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.line-sticker-public__case-grid > .public-card {
    min-width: 0;
}

.line-sticker-public__case-flow {
    display: grid;
    grid-template-columns: minmax(0, 100px) minmax(1.25rem, auto) minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    min-width: 0;
    margin: 0 0 1rem;
}

.line-sticker-public__case-flow,
.line-sticker-public__case-flow * {
    box-sizing: border-box;
}

.line-sticker-public__case-input,
.line-sticker-public__case-results,
.line-sticker-public__case-result-grid {
    min-width: 0;
}

.line-sticker-public__case-input,
.line-sticker-public__case-results {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.line-sticker-public__case-input > .line-sticker-public__visual-label,
.line-sticker-public__case-results > .line-sticker-public__visual-label {
    margin: 0;
    text-align: center;
}

.line-sticker-public__case-input > a,
.line-sticker-public__case-result-grid > a {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.line-sticker-public__case-input > a {
    width: min(100%, 100px);
    margin-inline: auto;
}

.line-sticker-public__case-input > a:focus-visible,
.line-sticker-public__case-result-grid > a:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.line-sticker-public__case-input img,
.line-sticker-public__case-result-grid img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: var(--border-soft);
    border-radius: 0.6rem;
    background: var(--color-muted);
    object-fit: contain;
}

.line-sticker-public__case-input img {
    padding: 0.2rem;
    aspect-ratio: 1;
}

.line-sticker-public__case-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.line-sticker-public__case-result-grid img {
    aspect-ratio: 370 / 320;
}

.line-sticker-public__case-flow > figcaption {
    grid-column: 1 / -1;
    color: var(--color-copy);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.line-sticker-public__caption-figure {
    width: min(100%, 34rem);
    margin: clamp(1.25rem, 3vw, 2rem) auto 0;
}

.line-sticker-public__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.line-sticker-public__feature-grid > .line-sticker-public__caption-figure {
    grid-column: 1 / -1;
    margin-block: 0.25rem;
}

.line-sticker-public__feature-grid > article:last-child {
    grid-column: 1 / -1;
}

.line-sticker-public__caption-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

.line-sticker-public__caption-item {
    min-width: 0;
    margin: 0;
}

.line-sticker-public__caption-label {
    margin: 0 0 0.35rem;
    color: var(--color-ink);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.line-sticker-public__caption-item > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 370 / 320;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .line-sticker-public__hero-workspace {
        grid-template-columns: 1fr;
    }

    .line-sticker-public__hero-visual {
        order: -1;
        width: min(100%, 48rem);
        margin-inline: auto;
    }

    .line-sticker-public__hero-controls {
        order: 1;
    }
}

@media (max-width: 900px) {
    .line-sticker-public__case-flow {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 0.6rem;
    }

    .line-sticker-public__case-input,
    .line-sticker-public__case-results {
        width: 100%;
    }

    .line-sticker-public__case-input {
        justify-items: center;
    }

    .line-sticker-public__case-input > a {
        width: min(8rem, 100%);
        max-width: 8rem;
    }

    .line-sticker-public__case-flow > .line-sticker-public__flow-arrow {
        transform: rotate(90deg);
    }

    .line-sticker-public__case-result-grid > a > img {
        width: min(100%, 8rem);
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .line-sticker-public__hero-stamp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .line-sticker-public__case-grid {
        grid-template-columns: 1fr;
    }

    .line-sticker-public__feature-grid {
        grid-template-columns: 1fr;
    }

    .line-sticker-public__feature-grid > .line-sticker-public__caption-figure,
    .line-sticker-public__feature-grid > article:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .line-sticker-public__hero-stamp-grid {
        gap: 0.3rem;
        padding: 0;
    }
}

.line-sticker-public__tool {
    width: 100%;
    min-width: 0;
    margin: 1.1rem 0 0.9rem;
    padding: clamp(0.9rem, 2.5vw, 1.25rem);
    border: 1px solid #dbcac5;
    border-radius: 1rem;
    color: var(--color-ink);
    background: #fffdf6;
    box-shadow: 0 0.65rem 1.5rem rgb(91 51 54 / 8%);
}

.line-sticker-public__tool h2,
.line-sticker-public__tool h3,
.line-sticker-public__tool p {
    overflow-wrap: anywhere;
}

.line-sticker-public__tool h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.15rem;
    line-height: 1.4;
}

.line-sticker-public__toolgroup {
    min-width: 0;
    margin-top: 1.1rem;
}

.line-sticker-public__toolgroup h3 {
    margin: 0 0 0.65rem;
    color: var(--color-ink);
    font-size: 0.95rem;
    line-height: 1.4;
}

.line-sticker-public__toolfield {
    min-width: 0;
    margin-top: 0.85rem;
}

.line-sticker-public__toolfield:first-child {
    margin-top: 0;
}

.line-sticker-public__toolfield > label,
.line-sticker-public__toolcaptions > label {
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.45;
}

.line-sticker-public__toolfield > label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.line-sticker-public__toolrequired {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    color: #fff;
    background: #be4fae;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
}

.line-sticker-public__toolfield > input[type="file"],
.line-sticker-public__toolfield > textarea,
.line-sticker-public__toolfield > select,
.line-sticker-public__toolcaptions input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #dbcac5;
    border-radius: 0.65rem;
    color: var(--color-ink);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.45;
}

.line-sticker-public__toolfield > input[type="file"] {
    padding: 0.35rem;
}

.line-sticker-public__toolfield > input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 0.55rem;
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 0.45rem;
    color: #fff;
    background: #be4fae;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.line-sticker-public__toolfield > textarea {
    min-height: 4.25rem;
    padding: 0.55rem 0.7rem;
    resize: vertical;
}

.line-sticker-public__toolfield > select,
.line-sticker-public__toolcaptions input {
    padding: 0.45rem 0.65rem;
}

.line-sticker-public__toolhelp,
.line-sticker-public__toolnotice {
    margin: 0.35rem 0 0;
    color: var(--color-copy);
    font-size: 0.8rem;
    line-height: 1.5;
}

.line-sticker-public__toolsettings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    min-width: 0;
}

.line-sticker-public__toolsettings > .line-sticker-public__toolfield {
    margin-top: 0;
}

.line-sticker-public__tooldetails {
    margin-top: 1.1rem;
    border-top: 1px solid #dbcac5;
}

.line-sticker-public__tooldetails summary {
    padding: 0.85rem 0;
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.45;
    cursor: pointer;
}

.line-sticker-public__toolcaptions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-height: 16rem;
    min-width: 0;
    overflow-y: auto;
    padding: 0.25rem;
}

.line-sticker-public__toolcaptions > label {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.line-sticker-public__toolcaptions > label > span {
    color: var(--color-copy);
    font-size: 0.82rem;
    text-align: right;
}

.line-sticker-public__toollogin {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.1rem;
}

.line-sticker-public__toollogin button {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #be4fae;
    border-radius: 0.65rem;
    color: #fff;
    background: #be4fae;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
}

.line-sticker-public__toollogin button:hover {
    background: #a93e9a;
}

.line-sticker-public__tool :is(input, textarea, select, button, summary):focus-visible {
    outline: 3px solid rgb(190 79 174 / 45%);
    outline-offset: 2px;
}

.line-sticker-public__tool:has(#line-public-set-size option[value="8"]:checked) .line-sticker-public__toolcaptions > label:nth-child(n + 9),
.line-sticker-public__tool:has(#line-public-set-size option[value="16"]:checked) .line-sticker-public__toolcaptions > label:nth-child(n + 17),
.line-sticker-public__tool:has(#line-public-set-size option[value="24"]:checked) .line-sticker-public__toolcaptions > label:nth-child(n + 25),
.line-sticker-public__tool:has(#line-public-set-size option[value="32"]:checked) .line-sticker-public__toolcaptions > label:nth-child(n + 33) {
    display: none;
}

@media (max-width: 600px) {
    .line-sticker-public__toolsettings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .line-sticker-public__toolcaptions {
        grid-template-columns: 1fr;
    }
}
