:root {
    --cream: #fffaf0;
    --cream-strong: #fff0cf;
    --pink: #ffdce5;
    --pink-strong: #ffadc2;
    --blue: #dff4fb;
    --blue-strong: #b7deea;
    --yellow: #ffe3a8;
    --mint: #dff1d6;
    --ink: #5e503f;
    --footer-soft: #9d8a70;
    --ink-soft: #8e7e68;
    --line: #ead8ba;
    --white: #ffffff;
    --shadow-soft: 0 16px 42px rgba(127, 95, 54, 0.14);
    --shadow-glow: 0 18px 56px rgba(255, 173, 194, 0.28);
    --radius-sm: 16px;
    --radius-md: 28px;
    --radius-lg: 42px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 220, 229, 0.58), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(223, 244, 251, 0.7), transparent 30%),
        linear-gradient(180deg, #fffdf7 0%, var(--cream) 45%, #fff7fb 100%);
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(234, 216, 186, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 216, 186, 0.13) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 18px 0;
    transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    padding: 10px 0;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 12px 32px rgba(127, 95, 54, 0.10);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(127, 95, 54, 0.12);
}

.brand-logo {
    color: var(--ink);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(234, 216, 186, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 28px rgba(127, 95, 54, 0.08);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-links a:hover {
    color: #9d6531;
    background: var(--cream-strong);
    transform: translateY(-1px);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px;
    border: 1px solid rgba(234, 216, 186, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 28px rgba(127, 95, 54, 0.08);
}

.lang-btn {
    min-width: 42px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--ink);
    color: var(--white);
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 128px 0 128px;
    background: var(--cream-strong);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.86) 42%, rgba(255, 250, 240, 0.34) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 246, 230, 0.56));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0), var(--cream) 76%),
        radial-gradient(70% 80% at 18% 100%, rgba(255, 220, 229, 0.36), transparent 68%),
        radial-gradient(64% 72% at 82% 100%, rgba(223, 244, 251, 0.42), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 14px;
    color: #bd8540;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 0 6px 0 rgba(255, 255, 255, 0.72);
}

.hero-slogan {
    margin: 24px 0 0;
    color: var(--ink);
    font-size: clamp(25px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.28;
}

.hero-copy {
    max-width: 520px;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
    font-weight: 600;
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    min-width: 184px;
    padding: 10px 18px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
    text-decoration: none;
    box-shadow: 0 10px 0 rgba(94, 80, 63, 0.10);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 0 rgba(94, 80, 63, 0.10), var(--shadow-glow);
}

.store-button-dark {
    background: var(--ink);
    color: var(--white);
}

.store-button small {
    display: block;
    margin-bottom: 4px;
    font-family: "Noto Sans JP", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.store-icon {
    flex: 0 0 auto;
}

.store-icon svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.showcase {
    position: relative;
    padding: 86px 0 132px;
    background:
        linear-gradient(180deg, var(--cream) 0%, #fffaf4 52%, rgba(223, 244, 251, 0.48) 100%);
    overflow: hidden;
}

.showcase::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -92px;
    height: 150px;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0), var(--cream));
    pointer-events: none;
}

.showcase::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;
    background:
        linear-gradient(180deg, rgba(223, 244, 251, 0), rgba(223, 244, 251, 0.82) 70%, rgba(223, 244, 251, 0.94)),
        radial-gradient(55% 90% at 28% 100%, rgba(255, 220, 229, 0.24), transparent 72%);
    pointer-events: none;
}

.showcase-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: 70px;
}

.showcase-copy h2,
.section-heading h2,
.download-copy h2,
.about-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
}

.showcase-copy p:not(.section-kicker),
.section-heading p,
.download-copy p,
.about-copy p {
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border: 2px solid #caa36e;
    border-radius: 999px;
    background: var(--white);
    cursor: pointer;
    transition: width var(--transition), background var(--transition), transform var(--transition);
}

.carousel-dot:hover,
.carousel-dot.active {
    width: 38px;
    background: var(--pink-strong);
    transform: translateY(-1px);
}

.phone-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 720px;
}

.phone-stage::before,
.phone-stage::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
}

.phone-stage::before {
    width: 360px;
    height: 360px;
    background: rgba(255, 220, 229, 0.58);
    top: 42px;
    right: 42px;
}

.phone-stage::after {
    width: 270px;
    height: 270px;
    background: rgba(183, 222, 234, 0.44);
    left: 28px;
    bottom: 78px;
}

.phone-frame {
    position: relative;
    z-index: 1;
    width: min(360px, 86vw);
    aspect-ratio: 390 / 812;
    padding: 16px;
    border: 9px solid #766a5a;
    border-radius: 48px;
    background: linear-gradient(145deg, #fff, #f4eadb);
    box-shadow: var(--shadow-soft), inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.phone-speaker {
    position: absolute;
    z-index: 4;
    top: 17px;
    left: 50%;
    width: 84px;
    height: 18px;
    border-radius: 999px;
    background: #766a5a;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid rgba(118, 106, 90, 0.18);
    border-radius: 36px;
    background: var(--cream);
}

.phone-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 620ms ease, transform 620ms ease;
}

.phone-slide.active {
    opacity: 1;
    transform: scale(1);
}

.features {
    position: relative;
    padding: 96px 0 128px;
    background:
        linear-gradient(180deg, rgba(223, 244, 251, 0.94) 0%, rgba(232, 248, 252, 0.78) 40%, rgba(255, 250, 240, 0.96) 100%),
        var(--blue);
    overflow: hidden;
}

.features::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 96px;
    background:
        radial-gradient(80px 30px at 12% 0, rgba(255, 255, 255, 0.74), transparent 72%),
        radial-gradient(120px 42px at 42% 0, rgba(255, 255, 255, 0.52), transparent 72%),
        radial-gradient(90px 34px at 76% 0, rgba(255, 255, 255, 0.64), transparent 72%);
    pointer-events: none;
}

.features::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 150px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(255, 247, 251, 0.92) 78%, rgba(255, 247, 251, 1)),
        radial-gradient(55% 90% at 75% 100%, rgba(255, 220, 229, 0.3), transparent 74%);
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 1;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

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

.feature-card {
    min-height: 390px;
    padding: 32px;
    border: 2px solid rgba(234, 216, 186, 0.86);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:nth-child(2) {
    background: rgba(255, 245, 248, 0.88);
}

.feature-card:nth-child(3) {
    background: rgba(255, 249, 229, 0.88);
}

.feature-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.feature-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 2px solid rgba(202, 163, 110, 0.5);
    border-radius: 24px;
    background: var(--cream-strong);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.feature-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}

.feature-card p {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
}

.download {
    position: relative;
    padding: 104px 0 94px;
    background:
        linear-gradient(180deg, #fff7fb 0%, #fff8f2 72%, rgba(255, 250, 240, 0.94) 100%);
    overflow: hidden;
}

.download::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(255, 247, 251, 0.9));
    pointer-events: none;
}

.download::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 130px;
    background:
        linear-gradient(180deg, rgba(255, 248, 242, 0), rgba(255, 250, 240, 0.96)),
        radial-gradient(48% 84% at 20% 100%, rgba(255, 227, 168, 0.28), transparent 72%);
    pointer-events: none;
}

.download .container {
    position: relative;
    z-index: 1;
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding: 42px;
    border: 2px solid rgba(234, 216, 186, 0.88);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(100deg, rgba(255, 220, 229, 0.82), rgba(223, 244, 251, 0.72)),
        var(--white);
    box-shadow: var(--shadow-soft);
}

.download-panel .store-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.about {
    position: relative;
    padding: 86px 0 112px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.96) 0%, #fff7fb 68%, #fff9f0 100%);
    overflow: hidden;
}

.about::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 132px;
    background:
        radial-gradient(55% 90% at 18% 100%, rgba(255, 227, 168, 0.22), transparent 72%),
        radial-gradient(48% 80% at 82% 100%, rgba(223, 244, 251, 0.2), transparent 74%),
        linear-gradient(180deg, rgba(255, 249, 240, 0), #fff9f0 96%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
    align-items: center;
    gap: 52px;
}

.about-media {
    overflow: hidden;
    border: 2px solid rgba(234, 216, 186, 0.86);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: var(--cream-strong);
}

.about-media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 64%;
}

.about-copy {
    max-width: 560px;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 28px;
    padding: 12px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 0 rgba(94, 80, 63, 0.10);
    transition: transform var(--transition), box-shadow var(--transition);
}

.mail-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 0 rgba(94, 80, 63, 0.10), var(--shadow-glow);
}

.footer {
    position: relative;
    padding: 30px 0 34px;
    background: linear-gradient(180deg, #fff9f0 0%, #fff6eb 100%);
    color: rgba(94, 80, 63, 0.72);
    border-top: 1px solid rgba(234, 216, 186, 0.72);
}

.footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -42px;
    height: 42px;
    background: linear-gradient(180deg, rgba(255, 249, 240, 0), #fff9f0 88%);
    pointer-events: none;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .container {
        width: min(760px, calc(100% - 36px));
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 7px 10px;
    }

    .lang-btn {
        min-width: 38px;
    }

    .showcase-grid,
    .download-panel,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .phone-stage {
        min-height: 640px;
    }

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

    .feature-card {
        min-height: auto;
    }

    .download-panel .store-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 28px);
    }

    .site-header {
        padding: 10px 0;
    }

    .nav {
        align-items: center;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-logo {
        font-size: 21px;
    }

    .nav-links {
        display: none;
    }

    .language-switcher {
        gap: 3px;
        padding: 4px;
    }

    .lang-btn {
        min-width: 34px;
        height: 30px;
        font-size: 11px;
    }

    .hero {
        min-height: 88svh;
        align-items: flex-start;
        padding: 104px 0 74px;
    }

    .hero-bg {
        object-position: 64% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.82) 46%, rgba(255, 250, 240, 0.28) 100%),
            linear-gradient(90deg, rgba(255, 250, 240, 0.42), rgba(255, 250, 240, 0.12));
    }

    .hero-copy {
        font-size: 15px;
    }

    .store-actions {
        width: 100%;
        flex-direction: column;
    }

    .store-button {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }

    .showcase,
    .features,
    .download {
        padding-top: 74px;
        padding-bottom: 82px;
    }

    .showcase-grid {
        gap: 38px;
    }

    .phone-stage {
        min-height: 560px;
    }

    .phone-frame {
        width: min(322px, 92vw);
        border-radius: 42px;
    }

    .phone-screen {
        border-radius: 31px;
    }

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

    .download-panel {
        padding: 28px;
        border-radius: 28px;
    }

    .about {
        padding: 72px 0 92px;
    }

    .about-grid {
        gap: 34px;
    }

    .about-media img {
        height: 380px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
