:root {
    --primary-color: #37352f;
    --primary-dark: #1f1f1c;
    --bg-color: #fbfbfa;
    --text-color: #37352f;
    --muted-color: #787774;
    --border-color: #e9e9e7;
    --surface-color: #ffffff;
    --soft-surface: #f4f4f2;
    --soft-hover: #ededeb;
    --accent-bg: #eef3ef;
    --accent-text: #4d6f54;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent-text);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 28px 40px;
    background: transparent;
}

.site-header {
    margin-bottom: 44px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 48px;
    font-size: 0.92rem;
}

.nav a {
    color: var(--muted-color);
    border-radius: 6px;
    padding: 4px 8px;
}

.nav a:hover {
    background: var(--soft-surface);
    color: var(--text-color);
    text-decoration: none;
}

.nav .nav-contact {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 650;
}

.nav .nav-contact:hover,
.nav .nav-contact[aria-current="page"] {
    background: var(--primary-dark);
    color: #ffffff;
}

.nav-brand {
    margin-right: auto;
    color: var(--text-color);
    font-weight: 650;
}

.hero {
    max-width: 680px;
}

.hero-title {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
}

.hero-copy {
    flex: 0 1 auto;
    min-width: 0;
}

.hero-icon {
    display: block;
    flex: 0 0 auto;
    object-fit: cover;
}

.hero-icon.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
}

.avatar-frame {
    display: block;
    flex: 0 0 auto;
}

.hero-icon.app {
    width: 112px;
    height: 112px;
    border-radius: 24px;
}

.eyebrow {
    color: var(--muted-color);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 2.45rem;
    line-height: 1.15;
    letter-spacing: 0;
}

h2 {
    margin: 42px 0 10px;
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 8px;
}

.tagline {
    color: var(--muted-color);
    font-size: 1.1rem;
    margin: 14px 0 0;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 18px;
    background: var(--soft-surface);
}

.project-card h3 {
    font-size: 1.45rem;
    margin: 0 0 8px;
}

.app-name-ja {
    color: var(--muted-color);
    font-size: 0.78em;
    font-weight: 500;
}

.status-label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--accent-bg);
    color: var(--accent-text);
    font-weight: 650;
}

.project-content {
    max-width: 100%;
}

.project-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-heading .eyebrow {
    margin-bottom: 4px;
}

.app-icon {
    display: block;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 16px;
    object-fit: cover;
}

.project-description {
    width: 100%;
    text-align: left;
}

.project-card p:last-child {
    margin-bottom: 0;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 0;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 650;
    text-align: center;
}

.button-link:hover {
    background: var(--primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.button-link.secondary {
    background: var(--soft-surface);
    color: var(--text-color);
}

.button-link.secondary:hover {
    background: var(--soft-hover);
    color: var(--text-color);
}

.feature-list {
    padding-left: 22px;
}

.feature-list li,
.policy li {
    margin: 4px 0;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.screenshot-frame {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
}

.screenshot-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
}

.feature-showcase {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.feature-item {
    border-radius: 8px;
    padding: 16px 18px;
    background: var(--soft-surface);
}

.feature-item h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.feature-item p {
    margin: 0;
    color: var(--muted-color);
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.app-store-link {
    display: inline-flex;
    align-items: center;
}

.app-store-link:hover {
    text-decoration: none;
}

.app-store-link img {
    display: block;
    width: 148px;
    height: auto;
}

.language-switch {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 7px;
    background: var(--soft-surface);
}

.language-button {
    min-height: 36px;
    padding: 6px 14px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted-color);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.language-button.active {
    background: #ffffff;
    color: var(--text-color);
}

.language-button:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 2px;
}

.policy h3 {
    color: var(--muted-color);
    font-size: 1rem;
}

.contact-box {
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 18px;
    background: var(--soft-surface);
}

.muted {
    color: var(--muted-color);
}

iframe {
    border: 0;
    border-radius: 8px;
    background: var(--surface-color);
}

footer {
    margin-top: 56px;
    padding: 0;
    color: var(--muted-color);
    font-size: 0.9rem;
}

footer p {
    margin: 6px 0;
}

@media (max-width: 700px) {
    .container {
        padding: 28px 18px 32px;
    }

    .nav {
        justify-content: flex-start;
        margin-bottom: 36px;
    }

    .nav-brand {
        width: 100%;
        padding-left: 0;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-title {
        gap: 14px;
    }

    .hero-icon.avatar {
        width: 72px;
        height: 72px;
    }

    .avatar-frame {
        width: auto;
        height: auto;
    }

    .hero-icon.app {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .app-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .screenshot-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        margin-right: -18px;
        padding: 0 18px 4px 0;
        scroll-snap-type: x proximity;
    }

    .screenshot-frame {
        flex: 0 0 min(72vw, 260px);
        scroll-snap-align: start;
    }

    .button-link {
        width: 100%;
    }

    .app-store-link {
        width: 100%;
        justify-content: center;
    }

    .language-switch {
        display: flex;
        width: 100%;
    }

    .language-button {
        flex: 1;
    }
}
