/* ==========================================
   ParrotEducation Website v0.3
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    font-family:
        "Hiragino Sans",
        "Noto Sans JP",
        "Yu Gothic",
        sans-serif;

    color: #2D2D2D;

    background:
        linear-gradient(
            to bottom,
            #F8F7F2 0%,
            #F8F7F2 48%,
            #F2F7EE 100%
        );
}

/* Hero */

.hero {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background: #F8F7F2;
}

.hero picture,
.hero img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.hero img {
    height: auto;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 30%;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(248, 247, 242, 0) 0%,
            rgba(248, 247, 242, 0.28) 42%,
            rgba(248, 247, 242, 0.72) 74%,
            #F8F7F2 100%
        );
}

/* Main Navigation */

.main-nav {
    max-width: 1180px;

    margin: 0 auto;

    padding: 32px 24px 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.nav-tabs {
    display: flex;
    gap: 16px;
}

.nav-tab {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 150px;

    padding: 13px 26px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 17px;

    font-weight: 700;

    color: #2D2D2D;

    background: rgba(255, 255, 255, 0.68);

    box-shadow:
        0 12px 28px rgba(42, 72, 62, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);

    backdrop-filter: blur(12px);
}

.nav-tab.active {
    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #157A7E,
            #49AA8C
        );

    box-shadow:
        0 14px 32px rgba(21, 122, 126, 0.20);
}

.nav-tab:hover {
    color: #157A7E;

    background: rgba(255, 255, 255, 0.82);
}

.nav-tab.active:hover {
    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #157A7E,
            #49AA8C
        );
}

.language-switch {
    padding: 12px 20px;

    border-radius: 999px;

    font-size: 16px;

    font-weight: 700;

    color: #333;

    background: rgba(255, 255, 255, 0.70);

    box-shadow:
        0 12px 28px rgba(42, 72, 62, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);

    backdrop-filter: blur(12px);
}

.language-switch.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    font-size: 14px;
    white-space: nowrap;
}

/* Main */

.main-content {
    width: 100%;

    max-width: 1180px;

    flex: 1;

    margin: 0 auto;

    padding: 74px 24px 66px;

    display: flex;

    justify-content: center;

    align-items: center;
}

.intro-section {
    text-align: center;

    max-width: 980px;

    margin: 0 auto;
}

.intro-section h1 {
    font-size: clamp(56px, 5.4vw, 78px);

    line-height: 1.04;

    color: #157A7E;

    margin-bottom: 30px;

    letter-spacing: -0.035em;
}

.intro-section .lead {
    font-size: clamp(26px, 2.55vw, 36px);

    font-weight: 700;

    margin-bottom: 42px;

    color: #333;

    letter-spacing: 0.04em;
}

.intro-section p {
    max-width: 980px;

    margin: 0 auto 26px;

    font-size: clamp(20px, 1.65vw, 25px);

    line-height: 2.15;

    font-weight: 600;

    color: #555;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* App Section */

.app-section {
    max-width: 820px;

    margin: 0 auto;

    text-align: center;
}

.app-section h2 {
    font-size: 34px;

    color: #157A7E;

    margin-bottom: 36px;
}

.app-card {
    display: block;

    text-decoration: none;

    color: inherit;

    padding: 42px 46px;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.76),
            rgba(245, 251, 247, 0.66)
        );

    box-shadow:
        0 18px 48px rgba(42, 72, 62, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);

    backdrop-filter: blur(14px);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 22px 54px rgba(42, 72, 62, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-card h3 {
    font-size: 32px;

    color: #157A7E;

    margin-bottom: 14px;
}

.app-card p {
    font-size: 18px;

    line-height: 1.8;

    color: #555;

    margin-bottom: 16px;
}

.app-card span {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 999px;

    background: #157A7E;

    color: white;

    font-weight: 700;
}

/* App Sub Site */

.app-hero {
    max-width: 1040px;

    margin: 0 auto;

    padding: 76px 24px 36px;

    text-align: center;
}

.app-hero h1 {
    font-size: clamp(42px, 4.4vw, 62px);

    line-height: 1.08;

    color: #157A7E;

    margin-bottom: 20px;

    letter-spacing: -0.025em;
}

.app-hero .lead {
    max-width: 860px;

    margin-left: auto;

    margin-right: auto;

    font-size: clamp(21px, 1.8vw, 26px);

    line-height: 1.75;

    font-weight: 700;

    margin-bottom: 24px;

    color: #333;
}

.app-hero p {
    max-width: 900px;

    margin-left: auto;

    margin-right: auto;

    font-size: 18px;

    line-height: 2;

    color: #555;
}

.app-info-card {
    max-width: 760px;

    margin: 0 auto 64px;

    padding: 38px 44px;

    text-align: center;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(245, 251, 247, 0.68)
        );

    box-shadow:
        0 18px 48px rgba(42, 72, 62, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(14px);

    overflow: hidden;
}

.app-info-card h2 {
    font-size: 28px;

    color: #157A7E;

    margin-bottom: 16px;
}

.app-info-card p {
    font-size: 18px;

    line-height: 1.9;

    color: #555;
}

.app-info-card::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: rgba(21, 122, 126, 0.28);
}

/* App Store Download */

.download-area {
    margin-top: 28px;
    margin-bottom: 30px;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 18px;
}

.qr-card {
    width: 180px;
    height: 180px;

    padding: 12px;

    background: #FFFFFF;

    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(0, 80, 70, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;
}

.qr-card img {
    width: 156px !important;
    height: 156px !important;

    max-width: 156px !important;
    max-height: 156px !important;

    object-fit: contain;

    display: block;
}

.appstore-link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 28px;

    border-radius: 999px;

    background: #157A7E;

    color: #FFFFFF;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(21, 122, 126, 0.18);
}

.appstore-link:hover {
    opacity: 0.86;
}

.app-links {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 28px;
}

.app-links a {
    text-decoration: none;

    color: #157A7E;

    font-weight: 700;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.7);

    box-shadow:
        0 8px 24px rgba(42, 72, 62, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

/* Feature Section */

.feature-section {
    max-width: 1040px;
    margin: 0 auto 56px;
    padding: 0 24px;
    text-align: center;
}

.feature-section h2 {
    font-size: clamp(28px, 2.7vw, 38px);
    color: #157A7E;
    margin-bottom: 16px;
}

.feature-section .section-lead {
    max-width: 820px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.9;
    color: #555;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 28px 28px 26px;
    border-radius: 26px;
    text-align: left;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(245, 251, 247, 0.68)
        );
    box-shadow:
        0 18px 48px rgba(42, 72, 62, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
    color: #157A7E;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.85;
    color: #555;
}

/* Subpage utility */

.subpage-topline {
    max-width: 1040px;
    margin: 0 auto 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.subpage-topline.legal {
    max-width: none;
    margin-bottom: 36px;
}

.subpage-topline.legal {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(21, 122, 126, 0.10);
}

.legal-page > h1,
.legal-page > p,
.legal-page > h2,
.legal-page > h3,
.legal-page > ul {
    max-width: 760px;
}

.legal-page > h1 {
    max-width: 820px;
}

.legal-page > p,
.legal-page > ul,
.legal-page > h2,
.legal-page > h3 {
    margin-left: auto;
    margin-right: auto;
}

.legal-page > p:first-of-type {
    font-size: 18px;
    line-height: 2.05;
}

.legal-page h1 + p {
    margin-top: 0;
}

/* Legal Pages */

.legal-page {
    max-width: 820px;

    margin: 0 auto;

    padding: 72px 24px 88px;
}

.legal-page h1 {
    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.18;

    color: #157A7E;

    margin-bottom: 34px;

    letter-spacing: -0.02em;
}

.legal-page h2 {
    font-size: clamp(22px, 2.2vw, 28px);

    line-height: 1.35;

    color: #157A7E;

    margin: 42px 0 16px;
}

.legal-page h3 {
    font-size: 19px;

    line-height: 1.45;

    color: #157A7E;

    margin: 26px 0 10px;
}

.legal-page p,
.legal-page li {
    font-size: 17px;

    line-height: 2;

    color: #555;
}

.legal-page ul {
    padding-left: 1.5em;

    margin: 8px 0 6px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: #157A7E;

    font-weight: 700;

    text-underline-offset: 4px;
}

.back-link {
    display: inline-block;

    margin-bottom: 36px;

    color: #157A7E;

    text-decoration: none;

    font-weight: 700;
}

.subpage-topline .back-link {
    margin-bottom: 0;
}

/* Footer */

.site-footer {
    text-align: center;

    padding: 18px 24px 38px;

    background: transparent;
}

.site-footer p {
    color: #777;

    margin-bottom: 10px;
}

.site-footer a {
    color: #157A7E;

    text-decoration: none;

    font-weight: 700;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Mobile */

@media (max-width: 768px) {
    .main-nav {
        padding: 24px 18px 18px;

        flex-direction: column;

        gap: 16px;
    }

    .nav-tabs {
        width: 100%;

        gap: 10px;
    }

    .nav-tab {
        flex: 1;

        min-width: 0;

        padding: 11px 12px;

        font-size: 15px;
    }

    .language-switch {
        padding: 9px 18px;
    }

    .main-content {
        flex: none;

        padding: 52px 18px 68px;
    }

    .intro-section h1,
    .app-hero h1 {
        font-size: 36px;
    }

    .intro-section .lead,
    .app-hero .lead {
        font-size: 21px;
    }

    .intro-section p,
    .app-hero p,
    .app-card p,
    .app-info-card p {
        font-size: 16px;

        line-height: 1.95;
    }

    .app-card,
    .app-info-card {
        padding: 34px 26px;
    }

    .app-hero {
        padding: 54px 20px 30px;
    }

    .feature-section {
        margin-bottom: 48px;
        padding: 0 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 22px;
        border-radius: 24px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .subpage-topline,
    .subpage-topline.legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .language-switch.small {
        align-self: flex-end;
        font-size: 13px;
        padding: 8px 14px;
    }

    .legal-page {
        padding: 52px 22px 76px;
    }

    .legal-page h1 {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .legal-page h2 {
        font-size: 22px;
        margin-top: 36px;
    }

    .legal-page p,
    .legal-page li {
        font-size: 16px;
        line-height: 1.9;
    }

    .legal-page > p:first-of-type {
        font-size: 16px;
        line-height: 1.95;
    }
}

@media (max-width: 640px) {
    .qr-card {
        width: 150px;
        height: 150px;
        padding: 10px;
    }

    .qr-card img {
        width: 130px !important;
        height: 130px !important;

        max-width: 130px !important;
        max-height: 130px !important;
    }

    .appstore-link {
        padding: 11px 24px;
        font-size: 15px;
    }
}
