* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #aaaaaa;
    background: #323232;
}

/* header */
.site-header {
    position: sticky;
    top: 0;
    background: #2b2b2b;
    /* border-bottom: 1px solid #5d7eb2ff; */
    z-index: 10;
}

.header-inner {
    width: 100%;
    /* margin: 0 auto; */
    padding: clamp(16px, 2.5vw, 24px) clamp(24px, 4vw, 36px);
    /* 上右下左 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: clamp(20px, 4vw, 32px);
    width: auto;
    display: block;
}

.contact-link {
    text-decoration: none;
    color: #aaaaaa;
}

/* main */
.content {
    width: 100%;
    /* margin: 0 auto; */
    padding: 24px 16px;
}

/* 共通カード：中央寄せ */
.app-card {
    margin-left: auto;
    margin-right: auto;
}

/* メインカード */
.app-main {
    max-width: 960px;
    /* ← ここが全体サイズの上限 */
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* 縦の間隔 */
    margin-bottom: 64px;
    padding: 24px;
}

/* 一言説明 */
.app-desc {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    color: #aaaaaa;
    text-align: center;
}

/* 画像：狭くなったら自動で小さく */
.app-image {
    width: 100%;
    /* 親に追従 */
    max-width: 800px;
    /* PCでもデカくなりすぎない */
    margin: 0 auto;
    /* 中央 */
    height: auto;
    border-radius: 16px;
    display: block;
}

/* バッジ：横→縦 自動切替 */
.app-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* 狭いと折り返す */
}

/* バッジ画像 */
.app-badges img {
    /* width: 160px; */
    height: 44px;
    /* PCでもスマホでもOKなサイズ */
    max-width: 100%;
    width: auto;
    /* 比率維持 */
    display: block;
    max-width: 100%;
}

/* ---------- サブアプリ ---------- */
.app-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 24px;
    padding: 0px 32px 0px 32px;
    /* 上右下左 */
}

.app-sub {
    /* max-width: 100px; */
    max-width: none;
    width: 100%;
    /* margin: 0 auto; */
    margin: 0;
    margin-bottom: 64px;
}

.app-sub img {
    width: min(100%, 120px);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
}

.app-sub h3 {
    margin-top: 8px;
    font-size: clamp(14px, 2vw, 16px);
    /* font-size: 1rem; */
    text-align: center;
}

.sub-badge {
    display: block;
    margin-top: 8px;
}

.sub-badge img {
    height: 32px;
    /* メインより小さく */
    width: auto;
    margin: 0 auto;
    display: block;
    border-radius: 0;
}

/* ---------- footer ---------- */

.site-footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 1rem;
    color: #666;
    background: #1b1b1b;
}

/* ---------- mobile ---------- */

/* @media (max-width: 768px) {
    .app-main-layout {
        grid-template-columns: 1fr;
    }

    .app-main-info {
        text-align: center;
        align-items: center;
    }
} */	