:root {
    --ato-ink: #32312f;
    --ato-paper: #e3e3e3;
    --ato-line: #ccc8c1;
    --ato-accent: #486272;
    --ato-band: #526f82;
    --ato-sans: "Inter", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.edition-home,
.edition-detail {
    margin: 0;
    color: var(--ato-ink);
    background: var(--ato-paper);
    font-family: var(--ato-sans);
    line-height: 1.9;
}

.edition-home {
    --ato-ink: #faf8f5;
    --ato-paper: #11100f;
    --ato-line: rgba(255, 255, 255, .42);
    --ato-accent: #a9cedf;
    isolation: isolate;
}

.edition-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)),
        url("../img/main-texture.jpg") center / cover no-repeat;
}

.edition-detail-corekara {
    --ato-accent: #6b563e;
    --ato-band: #765c42;
}

.edition-detail {
    --ato-watermark-size: clamp(280px, 52vw, 730px);
    isolation: isolate;
}

.edition-detail::before {
    content: "";
    position: fixed;
    inset: 0 0 auto auto;
    width: calc(.76 * var(--ato-watermark-size));
    height: calc(.59 * var(--ato-watermark-size));
    z-index: -1;
    pointer-events: none;
    background: url("../img/ato-logo-black.png") left 0 bottom calc(-.12 * var(--ato-watermark-size))
        / var(--ato-watermark-size) auto no-repeat;
    opacity: .055;
}

.edition-detail *, .edition-detail *::before, .edition-detail *::after { box-sizing: border-box; }
.edition-detail a { color: inherit; }
.edition-home a:focus-visible, .edition-detail a:focus-visible,
.edition-home button:focus-visible { outline: 2px solid #24748d; outline-offset: 4px; }
.edition-home a:focus-visible, .edition-home button:focus-visible,
.edition-header a:focus-visible { outline-color: #a9cedf; }

.edition-home .site-header, .edition-header {
    color: #faf8f5;
    background: rgba(0, 0, 0, .8);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.edition-home .site-header { padding-left: 90px; }
.edition-home .brand-mark { top: 10px; left: clamp(13px, 3vw, 38px); width: 46px; }
.edition-home .brand-mark img { filter: invert(1); }
.edition-home .hero-slide-01 { background-image: url("../img/main-slide-01.jpg"); }
.edition-home .hero-slide-02 { background-image: url("../img/main-slide-02.jpg"); }
.edition-home .hero-slide-03 { background-image: url("../img/main-slide-03.jpg"); }
.edition-home .hero-overlay { background: linear-gradient(90deg, transparent 54%, rgba(0, 0, 0, .34)); }
.edition-home .hero-content h1 {
    grid-column: 2;
    font-size: clamp(32px, 3.9vw, 51px);
}
.edition-home .logo-intro-word {
    display: block;
    text-align: center;
    font-size: clamp(19px, 2.2vw, 32px);
    white-space: nowrap;
}

.edition-section, .edition-home .page-section {
    position: relative;
    scroll-margin-top: var(--header-height);
    background: transparent;
    color: var(--ato-ink);
}

.edition-section { padding: clamp(55px, 9vw, 125px) clamp(20px, 6vw, 90px); }
.edition-home #product { min-height: 0; }
.edition-inner { max-width: 1090px; margin-inline: auto; }
.edition-copy { max-width: 840px; margin-inline: auto; }
.edition-copy h3 { font-size: clamp(19px, 2.1vw, 27px); font-weight: 600; margin: 2em 0 .6em; }
.edition-copy p { margin: 0 0 1.25em; }
.edition-copy .edition-lead {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
    font-size: clamp(19px, 2vw, 25px);
}
.edition-lead::before {
    content: "";
    flex: 0 0 clamp(22px, 4vw, 66px);
    height: 1px;
    background: currentColor;
}
.edition-values { padding-left: 1.25em; margin-bottom: 0; }
.edition-heading { margin: 0 0 30px; font-weight: 500; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; }
.edition-copy .edition-heading { margin-bottom: 12px; font-weight: 700; }
.edition-copy .edition-heading + h3 { margin-top: 0; }

.edition-series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin-inline: auto;
    gap: clamp(24px, 5.5vw, 76px);
}
.edition-series { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.edition-series h3 { margin: 17px 0 6px; font-size: clamp(16px, 1.55vw, 22px); line-height: 1.5; font-weight: 600; }
.edition-series p { font-size: 15px; margin: 0 0 14px; }
.edition-series:is(a) h3 { text-decoration: underline; text-underline-offset: .24em; }
.edition-series:is(a):hover h3 { color: var(--ato-accent); }
.edition-card-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ato-line); }
.edition-card-logo { display: block; width: min(120px, 55%); height: 100px; object-fit: contain; margin: auto auto 0; filter: invert(1); }

.edition-partners { display: grid; }
.edition-partner {
    position: relative;
    display: grid;
    place-items: center;
    height: 108px;
    overflow: hidden;
}
.edition-partner img { display: block; width: 100%; height: auto; }
.edition-partner-trims-osaka img { transform: translateY(calc(3.5% + 1px)); }

/* Let the artwork, rather than the transparent edges of the PNGs, fill the column. */
.edition-partner-padded-logo img, .edition-partner-on-light img {
    position: absolute;
    top: 50%;
    left: 50%;
}
.edition-partner-padded-logo img { width: 279%; transform: translate(-50%, -50%); }
.edition-partner-on-light img {
    width: 106%;
    transform: translate(-48.2%, -50%);
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .75));
}

@media (min-width: 581px) {
    .edition-partners {
        max-width: 912px;
        margin-inline: auto;
        grid-template-columns: minmax(0, 178fr) repeat(2, minmax(0, 83fr)) minmax(0, 170fr) minmax(0, 178fr);
        column-gap: clamp(19px, 4.5vw, 53px);
    }

}

.edition-member-heading { margin-top: clamp(52px, 8vw, 100px); }
.edition-members { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 22px; }
.edition-member img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.edition-member h4 { margin: .75em 0 0; font-size: 17px; }
.edition-member p, .edition-member dl { margin: .35em 0 0; font-size: 13px; overflow-wrap: anywhere; }
.edition-member dt {
    margin-top: .75em;
    padding-top: .5em;
    border-top: 1px solid var(--ato-line);
    color: var(--ato-accent);
    font-weight: 600;
}
.edition-member dd { margin: 0; }

@supports (grid-template-rows: subgrid) {
    .edition-members { row-gap: 0; }

    /* Share the image, name, affiliation and four detail tracks across each row. */
    .edition-member {
        display: grid;
        grid-row: span 7;
        grid-template-rows: subgrid;
        padding-bottom: 40px;
    }

    .edition-member dl {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
    }
}

.edition-home .page-section { min-height: auto; }
.edition-home .page-section .section-bg { display: none; }
.edition-home .page-container { min-height: auto; padding-block: clamp(55px, 9vw, 120px); }
.edition-home .section-copy, .edition-home .news-item, .edition-home .news-date,
.edition-home .qa-question, .edition-home .qa-answer, .edition-home .qa-toggle { color: var(--ato-ink); }
.edition-home .news-item, .edition-home .news-list li:last-child .news-item,
.edition-home .qa-item { border-color: var(--ato-line); }
.edition-home .news-item:hover { background: rgba(255, 255, 255, .12); }
.edition-home .qa-toggle::before, .edition-home .qa-toggle::after { background: currentColor; }
.edition-home #qa .edition-heading,
.edition-home #qa .qa-answer,
.edition-home #qa .qa-question span { font-size: inherit; }
.edition-home #qa .qa-toggle { flex-basis: 24px; width: 24px; height: 24px; }
.edition-home #qa .qa-toggle::before, .edition-home #qa .qa-toggle::after { width: 10px; }
.edition-home .pill-btn, .edition-home .btn {
    color: var(--ato-ink);
    background: transparent;
    border-color: var(--ato-line);
}
.edition-home .pill-btn:hover, .edition-home .btn:hover { background: rgba(255, 255, 255, .14); }
.edition-shop-help { font-size: 14px; }
.edition-shop-help a { color: var(--ato-accent); text-decoration: underline; text-underline-offset: .18em; }

.edition-footer {
    padding: 35px clamp(20px, 6vw, 90px);
    background: #0b0a09;
    color: #fff;
    font-size: 13px;
    line-height: 1.8;
}
.edition-footer p { margin: 0 0 .6em; }
.edition-footer address { font-style: normal; }
.edition-footer a { color: inherit; text-decoration: underline; }
.edition-footer small { display: block; margin-top: .75em; }
.edition-home .edition-footer a { color: var(--ato-accent); }
.edition-detail .edition-footer { background: var(--ato-band); }

.edition-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px clamp(13px, 3vw, 38px);
    background: var(--ato-band);
}
.edition-home-link img { display: block; width: 46px; filter: invert(1); }
.edition-header nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px clamp(9px, 2.6vw, 34px); }
.edition-header nav a { text-transform: uppercase; font: 500 12px/1.6 var(--ato-sans); text-decoration: none; }
.edition-header nav a:hover { text-decoration: underline; }
.edition-cover { position: relative; display: grid; place-items: center; isolation: isolate; width: 100%; min-height: 255px; aspect-ratio: 16 / 9; max-height: 650px; overflow: hidden; background: #080707; }
.edition-cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -1; }
.edition-cover h1 { margin: 0; width: clamp(130px, 20vw, 240px); }
.edition-cover h1 img { display: block; width: 100%; filter: invert(1); }
.edition-intro {
    padding: clamp(38px, 7vw, 90px) max(22px, calc((100% - 880px) / 2));
    background: var(--ato-band);
    color: #fff;
    text-align: center;
}
.edition-intro p { margin: 0; }
.edition-detail-products { max-width: 1120px; margin-inline: auto; padding: 24px clamp(20px, 5vw, 65px) 0; }
.edition-detail-products > h2 { color: var(--ato-accent); text-align: center; }
.edition-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    gap: clamp(26px, 6vw, 72px);
    padding: clamp(28px, 5vw, 55px) 0;
    color: var(--ato-accent);
}
.edition-product-photo { display: block; width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; }
.edition-product-copy h3 { margin: 0 0 .75em; color: var(--ato-accent); font-size: clamp(23px, 3vw, 34px); line-height: 1.35; }
.edition-product-copy p { margin: 0 0 1em; }
.edition-product-copy .edition-button { display: block; width: fit-content; margin: 25px 0 0 auto; padding: .65em 1.25em; border: 1px solid currentColor; color: var(--ato-accent); text-decoration: none; text-align: center; }
.edition-button span { display: block; font-size: .79em; }
.edition-button:hover { background: #fff; }
.edition-back { margin: 15px 0 65px; text-align: center; }

@media (max-width: 820px) {
    .edition-home .hero-content h1 { font-size: clamp(23px, 6.4vw, 30px); }
    .edition-home .brand-mark { top: 9px; width: 36px; }
    .edition-home .site-header { padding-left: 59px; }
    .edition-home .global-nav { max-width: none; gap: 5px 11px; }
    .edition-home .hero-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 60%); }
    .edition-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 821px) {
    .edition-home {
        --ato-column: clamp(580px, 50vw, 1060px);
        --ato-gutter: clamp(20px, 6vw, 90px);
    }

    .edition-home, .edition-detail,
    .edition-home .global-nav, .edition-header nav a {
        font-size: .875rem;
    }

    .edition-home .edition-copy, .edition-home .edition-inner {
        width: min(100%, var(--ato-column));
        max-width: none;
    }

    .edition-home .page-container {
        width: min(calc(100% - 2 * var(--ato-gutter)), var(--ato-column));
    }

    .edition-home .edition-heading, .edition-home .contact-layout h2 {
        font-size: clamp(1.375rem, 1.65vw, 1.75rem);
    }

    .edition-copy h3, .edition-copy .edition-lead,
    .edition-series h3, .edition-member h4 {
        font-size: clamp(1rem, 1.15vw, 1.2rem);
    }

    .edition-home .news-item, .edition-home .qa-question, .edition-home .qa-answer,
    .edition-home .section-copy, .edition-home .edition-series p,
    .edition-home .pill-btn, .edition-home .btn {
        font-size: inherit;
    }

    .edition-copy p:not(.edition-lead), .edition-series p, .edition-member dd,
    .edition-home .qa-answer p, .edition-home .contact-layout .section-copy p,
    .edition-product-copy p {
        text-align: justify;
        text-align-last: start;
    }

    .edition-series-grid { gap: clamp(16px, 4%, 40px); }
    .edition-series { align-items: stretch; text-align: left; }
    .edition-card-logo { align-self: center; }
    .edition-partners { column-gap: clamp(16px, 5.8%, 53px); }
    .edition-home .news-item { grid-template-columns: 6rem minmax(0, 1fr) auto; }
    .edition-home .contact-layout { justify-content: flex-start; text-align: left; }
    .edition-home .contact-layout .section-copy { max-width: none; margin: 0; }
    .edition-home .contact-layout .section-copy p { max-width: none; }
    .edition-product-copy h3 { font-size: clamp(1.25rem, 1.75vw, 1.625rem); }
}

@media (min-width: 821px) and (max-width: 1250px) {
    .edition-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
    .edition-series-grid { grid-template-columns: 1fr; }
    .edition-series { max-width: 370px; width: 100%; margin-inline: auto; }
    .edition-series + .edition-series { margin-top: 18px; }
    .edition-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .edition-partners {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: clamp(14px, 6vw, 30px);
    }
    .edition-partners::after { content: ""; flex: 0 0 100%; height: 0; order: 1; }
    .edition-partner { flex: 0 1 clamp(94px, 28vw, 126px); height: 70px; }
    .edition-partner-trims-osaka, .edition-partner-padded-logo { flex-basis: clamp(43px, 14vw, 58px); }
    .edition-partner:nth-child(n + 4) { order: 2; margin-top: 12px; }
    .edition-partner-trims-osaka img { transform: translateY(3.5%); }
    .edition-header nav a { font-size: 10px; }
    .edition-product-detail { grid-template-columns: 1fr; }
    .edition-product-photo { max-width: none; }
}
