:root {
    --max-width: 1000px;
    --content-inline: 12px;
    --bottomBarHeight: 52px;
    --panelRadius: 28px;
    --page-bg: #ffffff;
    --surface-bg: #ffffff;
    --primary-color: #171717;
    --secondary-color: #3e3e3e;
    --line-color: rgba(23, 23, 23, 1);
    --header-offset: 107px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-feature-settings: "palt";
}

body {
    margin: 0 auto;
    max-width: var(--max-width);
    min-height: 100vh;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Noto Sans JP", "Noto Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.75;
}

.materialSymbolsRounded {
    font-family: "Material Symbols Rounded";
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.siteHeader {
    --header-progress: 0;
    --logo-expanded: 350px;
    --logo-collapsed: 200px;
    --logo-aspect-ratio: 0.18181;
    --logo-collapsed-scale: 0.5714286;
    --logo-scale: calc(1 - ((1 - var(--logo-collapsed-scale)) * var(--header-progress)));
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    z-index: 30;
    width: min(100%, var(--max-width));
    padding-top: 12px;
    background: transparent;
    isolation: isolate;
    pointer-events: none;
}

.siteHeader::before {
    content: "";
    position: absolute;
    inset: 0 0 -28px;
    z-index: 0;
    background: linear-gradient( to bottom, rgba(255, 255, 255, calc(var(--header-progress) * 1)) 0%, rgba(255, 255, 255, calc(var(--header-progress) * 0.5)) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 1;
    pointer-events: none;
}

.siteHeaderInner {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 7px;
    padding: 12px var(--content-inline);
}

.logoLink {
    display: block;
    width: 1px;
    height: calc(var(--logo-expanded) * var(--logo-aspect-ratio) * var(--logo-scale));
    overflow: visible;
}

.logoScaleWrap {
    display: block;
    width: 1px;
    overflow: visible;
    transform-origin: left top;
    transform: translateZ(0) scale(var(--logo-scale));
    will-change: transform;
}

.siteLogo {
    display: block;
    width: var(--logo-expanded);
    max-width: none;
    height: auto;
    margin: 0;
    transition: opacity 0.2s ease;
}

.logoLink:hover .siteLogo {
    opacity: 1;
}

.siteDate {
    margin: 0;
    font-size: calc(24px - 7px * var(--header-progress));
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--secondary-color);
    text-align: left;
}

a,
a:visited,
a:hover,
a:active {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

a:not(.installPill) {
    transition: opacity 0.25s ease;
}

a:not(.installPill):hover,
a:not(.installPill):focus-visible {
    opacity: 0.25;
}

.content {
    flex: 1 0 auto;
    padding: 20px var(--content-inline) 72px;
    position: relative;
    z-index: 1;
}

.subpageHeaderSpacer {
    width: 100%;
    height: var(--header-offset);
    pointer-events: none;
}

.content a:not(.installPill) {
    display: inline;
    padding: 0;
}

.topLinks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.topLinks li {
    margin: 0;
}

.languageSwitch {
    margin: 0 0 4px;
}

h1 {
    margin: 28px 0 20px;
    font-size: 24pt;
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    margin: 16pt 0 4px;
    font-size: 15pt;
    font-weight: 500;
    line-height: 1.25;
}

p {
    margin: 0 0 4px;
    font-weight: 400;
}

ol,
li {
    margin: 0;
}

ol {
    margin-bottom: 8px;
}

.siteFooter {
    width: 100%;
    margin-top: auto;
    padding: 12px 0 calc(20px + env(safe-area-inset-bottom));
    background: transparent;
}

.footerCard {
    width: 100%;
    height: var(--bottomBarHeight);
    padding: 0 16px;
    border-radius: var(--panelRadius);
    border: 1px solid var(--line-color);
    background: var(--surface-bg);
    display: flex;
    align-items: center;
}

.footerLinks {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    align-items: center;
}

.footerLink {
    display: inline-flex;
    height: 100%;
    align-items: center;
    gap: 0;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
}

.footerLink:hover {
    text-decoration: none;
}

.footerCompanyLink::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.18em;
    color: currentColor;
}

.footerCopy {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.5;
    letter-spacing: 0;
    opacity: 0.25;
}

.footerCopyLine {
    display: inline;
}

.footerCopyDesktopBreak {
    display: inline;
}

@media (min-width: 1001px) {
    body {
        font-size: 17px;
    }
    body.topPage .subpageHeaderSpacer {
        display: none;
    }
    .content {
        padding-left: 0;
        padding-right: 0;
    }
    .siteHeaderInner {
        padding-left: 0;
        padding-right: 0;
    }
    .topLinks a {
        font-size: 17px;
        font-weight: 400;
    }
}

@media (max-width: 1000px) {
    .subpageHeaderSpacer {
        height: calc(var(--header-offset) * 0.675);
    }
    .siteDate {
        font-size: calc(20px - 3px * var(--header-progress));
    }
    .footerCopy {
        font-size: 12px;
    }
    .siteFooter {
        padding-left: var(--content-inline);
        padding-right: var(--content-inline);
    }
    .footerLink {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
     :root {
        --bottomBarHeight: 46px;
        --header-offset: 112px;
    }
    .subpageHeaderSpacer {
        height: calc(var(--header-offset) * 1);
    }
    body {
        font-size: 11pt;
    }
    .siteHeader {
        --logo-expanded: calc((100vw - (var(--content-inline) * 2)) * 0.5);
        --logo-collapsed: calc((100vw - (var(--content-inline) * 2)) * 0.3);
        --logo-collapsed-scale: 0.6;
    }
    .siteDate {
        font-size: calc(18px - 2px * var(--header-progress));
        line-height: 1.5;
    }
    .footerCopy {
        font-size: 10px;
    }
    h1 {
        margin-top: 20px;
        font-size: 20pt;
    }
    h2 {
        font-size: 13pt;
    }
    .footerLinks {
        justify-content: center;
    }
    .footerLink {
        font-size: 12px;
    }
    .footerCopyLinePrimary,
    .footerCopyLineTrademark {
        display: block;
    }
    .footerCopyLineModel,
    .footerCopyLineCopyright {
        display: inline;
    }
    .footerCopyDesktopBreak {
        display: none;
    }
}

@media (max-width: 425px) {
     :root {
        --bottomBarHeight: 42px;
        --header-offset: 98px;
    }
    .subpageHeaderSpacer {
        height: calc(var(--header-offset) * 1);
    }
    body {
        font-size: 11px;
    }
    .siteHeaderInner {
        gap: calc(6px - 2px * var(--header-progress));
        padding-left: 10px;
        padding-right: 10px;
    }
    .siteHeader {
        --logo-expanded: calc((100vw - 20px) * 0.5);
        --logo-collapsed: calc((100vw - 20px) * 0.3);
    }
    h1 {
        font-size: 16px;
    }
    h2 {
        font-size: 13px;
    }
    .footerCard {
        padding: 12px;
    }
    .footerLinks {
        gap: 6px 14px;
    }
}
