* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Roboto, sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 0;
    color: #1d1d1f;
}

/* ナビゲーション */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5e7;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 21px;
    font-weight: bold;
    color: #1d1d1f;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #515154;
    text-decoration: none;
    font-size: 15px;
    transition: color .2s;
}

.nav-link:hover {
    color: #0071e3;
}

.nav-link.active {
    color: #0071e3;
    font-weight: bold;
}

/* リストページ：ヒーロー */
.hero {
    max-width: 1200px;
    margin: 48px auto 8px;
    padding: 0 24px;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 18px;
    color: #6e6e73;
    margin: 0;
}

/* リストページ：アプリ一覧 */
.container {
    max-width: 1200px;
    margin: 36px auto 64px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-item {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform .2s, box-shadow .2s;
}

.app-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.app-item img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #1d1d1f;
}

.app-version {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 10px;
}

.app-desc {
    font-size: 15px;
    color: #515154;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0071e3;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.app-arrow .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0071e3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 詳細ページ：詳細カード */
.detail-container {
    max-width: 960px;
    margin: 48px auto 64px;
    background: #fff;
    padding: 40px 48px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.back-btn {
    text-decoration: none;
    color: #0071e3;
    font-size: 15px;
    display: inline-block;
    margin-bottom: 24px;
}

.back-btn:hover {
    text-decoration: underline;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.header img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-right: 20px;
}

.title-box h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
}

.version {
    font-size: 15px;
    color: #86868b;
}

.download-btn {
    display: block;
    background: #0071e3;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 32px;
    transition: background .2s;
}

.download-btn:hover {
    background: #0077ed;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.description {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    white-space: pre-line;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }

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

    .app-item {
        padding: 20px;
        gap: 16px;
    }

    .app-item img {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .app-title {
        font-size: 18px;
    }

    .app-arrow .arrow-text {
        display: none;
    }

    .detail-container {
        margin: 24px 16px 48px;
        padding: 24px;
    }

    .header img {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        margin-right: 14px;
    }

    .title-box h1 {
        font-size: 22px;
    }
}

/* SEO・セマンティック */
.page-title {
    font-size: 32px;
    margin: 0;
    color: #1d1d1f;
}

.breadcrumb {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #0071e3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #c7c7cc;
}

.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    color: #86868b;
    font-size: 14px;
}

/* カテゴリ・タイプバッジ */
.app-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-category {
    background: #f2f2f7;
    color: #515154;
}

.badge-type {
    background: #e8f1fd;
    color: #0071e3;
}

.badge-type-online {
    background: #fff4e5;
    color: #ff9500;
}

.badge-type-service {
    background: #eef7ee;
    color: #34c759;
}

/* オンラインアプリを開くボタン */
.open-btn {
    background: #ff9500;
}

.open-btn:hover {
    background: #ffa31a;
}

/* オンラインサービス注意書き */
.service-note {
    background: #f2f2f7;
    color: #515154;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 32px;
}