@import url("./base/reset.css");
@import url("./base/variables.css");
@import url("./base/typography.css");
@import url("./layout/header.css");
@import url("./layout/sub-top.css");
@import url("./layout/footer.css");
@import url("./components/floating-button.css");
@import url("./components/button.css");

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    margin: 0 auto;
    width: min(100% - var(--container-padding), var(--container-width));
    padding: 140px 0;
}

.container.no-pb {
    padding-bottom: 0 !important;
}

.end-spacer {
    padding-bottom: 200px;
}

@media (max-width: 1440px) {
    :root {
        --container-padding: 100px;
    }
}

@media (max-width: 1280px) {
    :root {
        --container-padding: 80px;
    }

    .container {
        padding: 150px 0;
    }

    .end-spacer {
        padding-bottom: 180px;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-padding: 70px;
    }

    .container {
        padding: 130px 0;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 50px;
    }

    .container {
        padding: 100px 0;
    }

    .end-spacer {
        padding-bottom: 160px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
    }

    .container {
        padding: 70px 0;
    }

    .end-spacer {
        padding-bottom: 140px;
    }
}

/* Sub page Common */

/* Reveal */
.reveal-wipe,
.reveal-wipe-down {
    overflow: hidden;
    will-change: clip-path, opacity;
}

.reveal-zoomwide {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.reveal-zoomwide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transform: scale(1);
    transform-origin: center;
    transition: transform 2s ease-out;
    will-change: transform;
}

.reveal-zoomwide.is-zoomed::before {
    transform: scale(1.05);
}

.reveal-zoomimg {
    overflow: hidden;
    position: relative;
}

.reveal-zoomimg img {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
}

/* Interaction Effects */
.fx-follow {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    isolation: isolate;
    --tab-indicator-pad-x: 14px;
    --tab-indicator-pad-y: 6px;
    --tab-progress: 0;
}

.fx-follow .tab-indicator {
    display: none;
}

.fx-follow .tab {
    position: relative;
    z-index: 1;
    color: var(--black-600);
    transition: color .2s ease;
}

.fx-follow .tab.is-followed {
    color: var(--fx-follow-color, var(--black-800));
}

.fx-follow .tab:hover,
.fx-follow .tab:focus-visible {
    color: var(--black-800);
}

.fx-follow .tab.is-active,
.fx-follow .tab[aria-current="page"] {
    color: var(--black-900);
}

.fx-follow .tab.is-active.is-followed,
.fx-follow .tab[aria-current="page"].is-followed {
    color: var(--black-900);
}

/* glare-tilt */
.tilt-glare {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-glare>img {
    display: block;
}

.tilt-glare:hover {
    transform: none;
}

.tg-glare {
    position: absolute;
    left: 0;
    top: 0;
    width: 160px;
    height: 160px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    mix-blend-mode: screen;
    background: radial-gradient(90px 90px at center, rgba(255, 255, 255, .35), transparent 60%);
    transform: translate(-9999px, -9999px);
}

.tilt-glare:hover .tg-glare,
.tilt-glare:focus-visible .tg-glare {
    opacity: 1;
}

/* Highlighter underline */
.hl-ink {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.hl-ink .hl-ink-bar {
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: .15em;
    height: .6em;
    border-radius: .2em;
    opacity: .9;
    z-index: -1;
    will-change: transform;
    transform-origin: 0 50%;
    transform: scaleX(0.05) skewX(-10deg);
}