:root {
    color: #242424;
    background: #fff;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

body.landing-page {
    min-width: 320px;
    margin: 0;
    line-height: 1.7;
}

.landing-page a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
}

.site-header > nav {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    font-size: 14px;
}

.site-header > nav img {
    width: 145px;
    height: auto;
    margin-right: auto;
}

.site-header > nav hr {
    display: none;
}

.site-header > nav > a:first-of-type {
    color: #336bff;
}

.landing-hero {
    display: flex;
    min-height: 400px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 62px 24px 70px;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.landing-hero > p {
    margin: 20px 0 0;
    color: #555;
    font-size: 15px;
    line-height: 2;
}

.landing-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 30px;
    background: #f7ff01;
    color: #000000 !important;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.landing-button:hover {
    background: #d5dc11;
    transform: translateY(-3px);
}

.landing-hero .landing-button {
    margin-top: 24px;
}

.examples-section {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
    padding: 54px 0 60px;
    border-radius: 300%;
}

.examples-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-label {
    margin: 0 0 2px;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.examples-heading h2 {
    margin: 0;
    font-size: 22px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.examples-count {
    min-width: 76px;
    margin-right: 5px;
    color: #666;
    font-size: 12px;
    text-align: right;
}

.carousel-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 300%;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
}

.carousel-arrow:hover:not(:disabled) {
    border-color: #336bff;
    color: #336bff;
}

.carousel-arrow:disabled {
    color: #aaa;
    cursor: default;
}

.examples-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.examples-viewport::-webkit-scrollbar {
    display: none;
}

.examples-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.example-card {
    display: flex;
    min-width: 0;
    min-height: 260px;
    flex: 0 0 calc((100% - 32px) / 3);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #e3e3e3;
    border-radius: 25px;
    scroll-snap-align: start;
}

.example-number {
    margin: 0 0 4px;
    color: #777;
    font-size: 10px;
    letter-spacing: 0.07em;
}

.example-card h3 {
    margin: 0 0 13px;
    font-size: 16px;
}

.example-conditions {
    width: 100%;
    margin: 0;
}

.example-conditions div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.example-conditions dt {
    color: #777;
}

.example-conditions dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.example-result {
    width: 100%;
    margin: 12px 0 0;
    padding: 10px;
    background: #f5f6f8;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.example-result[hidden] {
    display: none;
}

.example-result-button {
    align-self: flex-end;
    margin: auto 0 0;
    padding: 12px 0 0 8px;
    border: 0;
    background: transparent;
    color: #315fd0;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-align: right;
}

.example-result-button:hover {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.examples-hint {
    margin: 10px 0 0;
    color: #777;
    font-size: 11px;
}

.range-selection-section {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
    padding: 38px 0 42px;
    border-top: 1px solid #e8e8e8;
}

.range-selection-section h2 {
    margin: 0;
    font-size: 22px;
}

.range-selection-intro {
    max-width: 760px;
    margin: 12px 0 22px;
    color: #555;
    font-size: 14px;
}

.range-selection-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.range-selection-details article {
    padding: 16px;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
}

.range-selection-details h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.range-selection-details p,
.range-selection-example {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.range-selection-example {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f5f6f8;
}

.public-sharing-section {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
    padding: 38px 0 42px;
    border-top: 1px solid #e8e8e8;
}

.public-sharing-section h2 {
    margin: 0;
    font-size: 22px;
}

.public-sharing-intro {
    max-width: 760px;
    margin: 12px 0 22px;
    color: #555;
    font-size: 14px;
}

.public-sharing-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.public-sharing-options article {
    padding: 16px;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
}

.public-sharing-options h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.public-sharing-options p,
.public-sharing-note {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.public-sharing-note {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f5f6f8;
}

.translation-difference-section {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
    padding: 38px 0 42px;
    border-top: 1px solid #e8e8e8;
}

.translation-difference-section h2 {
    margin: 0;
    font-size: 22px;
}

.translation-difference-intro {
    max-width: 760px;
    margin: 12px 0 22px;
    color: #555;
    font-size: 14px;
}

.translation-difference-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.translation-difference-points article {
    padding: 16px;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
}

.translation-difference-points h3,
.translation-story h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.translation-difference-points p,
.translation-story li,
.translation-story-note {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.translation-story {
    margin-top: 22px;
    padding: 20px;
    border-radius: 16px;
    background: #f5f6f8;
}

.translation-story h3 {
    margin-bottom: 14px;
}

.translation-story ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.translation-story li {
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
    overflow-wrap: anywhere;
}

.translation-story q {
    display: block;
}

.translation-speaker {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
}

.translation-story li p {
    margin: 4px 0 0;
}

.translation-story .translation-result {
    color: #315fd0;
    font-weight: 600;
}

.translation-story .translation-consequence {
    border-color: #e8dca0;
    background: #fffdf0;
}

.translation-story-note {
    margin-top: 14px;
}

.landing-start {
    display: flex;
    width: min(100% - 48px, 1040px);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 62px;
    padding: 24px 0;
    border-top: 1px solid #e8e8e8;
}

.landing-start p {
    margin: 0;
    font-size: 16px;
}

.ideavalu-badge {
    display: inline-block;
    margin-top: 12px;
}

.ideavalu-badge img {
    display: block;
    width: 224px;
    height: 56px;
}

.landing-page a:focus-visible,
.landing-page button:focus-visible,
.examples-viewport:focus-visible {
    outline: 2px solid #336bff;
    outline-offset: 3px;
}

.site-footer {
    box-sizing: border-box;
    width: 100vw;
    margin: 0 0 0 calc(50% - 50vw);
    padding: 60px 20px 0;
    background-color: #000;
    color: #fff;
}

.site-footer .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 0 100px;
}

.site-footer .footer-column {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    gap: 12px;
}

.site-footer .footer-column h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
}

.site-footer .footer-link {
    display: inline-block;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer hr {
    border: 0;
    border-top: 1px solid #fff;
    max-width: 1000px;
    margin: 40px auto 20px;
}

.site-footer .copyright {
    text-align: center;
    font-size: 13px;
    color: #fff;
    margin: 0 0 24px;
}

.site-footer .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.site-footer .Yomlingo-Logo-footer {
    display: block;
    width: 100vw;
    height: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 700px) {
    .site-header,
    .examples-section,
    .range-selection-section,
    .public-sharing-section,
    .translation-difference-section,
    .landing-start {
        width: min(100% - 36px, 520px);
    }

    .site-header > nav {
        min-height: 68px;
        gap: 18px;
    }

    .site-header > nav img {
        width: 125px;
    }

    .site-header > nav > a:not(:first-of-type) {
        display: none;
    }

    .landing-hero {
        min-height: 340px;
        padding: 48px 20px;
    }

    .landing-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .landing-hero > p {
        font-size: 13px;
    }

    .examples-section {
        padding: 40px 0 46px;
    }

    .examples-heading {
        align-items: flex-start;
    }

    .examples-heading h2 {
        font-size: 18px;
    }

    .range-selection-section {
        padding: 30px 0 34px;
    }

    .range-selection-section h2 {
        font-size: 18px;
    }

    .public-sharing-section {
        padding: 30px 0 34px;
    }

    .public-sharing-section h2 {
        font-size: 18px;
    }

    .translation-difference-section {
        padding: 30px 0 34px;
    }

    .translation-difference-section h2 {
        font-size: 18px;
    }

    .range-selection-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public-sharing-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .translation-difference-points {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .translation-story {
        padding: 14px;
    }

    .examples-count {
        display: none;
    }

    .examples-track {
        gap: 12px;
    }

    .example-card {
        min-height: 245px;
        flex-basis: 100%;
    }

    .landing-start {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 42px;
        padding: 20px 0;
    }

    .site-footer .footer-container {
        flex-direction: column;
    }

    .site-footer hr {
        margin: 30px 0 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .examples-viewport {
        scroll-behavior: auto;
    }
}
