:root{
    --brand: #5E17EB;
    --brand-dark: #4610b8;
    --bg: #F5F5F5;
    --text: #222222;
    --text-sub: #666666;
    --card-shadow: 0px 2px 10px #00000014;
}

*{
    box-sizing: border-box;
}

body{
    margin: 0px;
    padding: 0px;
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

a{
    color: inherit;
    text-decoration: none;
}

/* ヘッダー部分です */
.header{
    background-color: var(--brand);
    margin: 0px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}
.header .headerInner{
    max-width: 900px;
    margin: 0 auto;
}
.backLink{
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}
.backLink:hover{
    background-color: rgba(255, 255, 255, 0.25);
}
.backLink .chevronIcon{
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.header h1{
    color: #FFFFFF;
    font-size: 30px;
    margin: 0;
    padding: 0;
}
.header p{
    color: #FFFFFF;
    font-size: 16px;
    margin: 10px 0 0 0;
    padding: 0;
    opacity: 0.9;
}

/* アプリ一覧（ランディングページ）部分です */
.appLinkBoxSection{
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.appLinkBox{
    background-color: #FFFFFF;
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.appLinkBox:hover{
    transform: translateY(-3px);
    box-shadow: 0px 6px 16px #00000022;
}
.appLinkBoxTitle{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.appIcon{
    width: 64px;
    height: 64px;
    border-radius: 22%;
    box-shadow: 0px 0px 4px #00000030;
    flex-shrink: 0;
    object-fit: cover;
}
.appLinkBoxTitle h1, .appLinkBoxTitle h2{
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}
.appLinkBox p{
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
    margin: 0 0 18px 0;
}

/* ボタン共通 */
.buttonRow{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.appLinkButton, .policyButton{
    flex: 1;
    min-width: 110px;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}
.appLinkButton{
    background-color: var(--brand);
    color: #FFFFFF;
}
.appLinkButton:hover{
    background-color: var(--brand-dark);
}
.policyButton{
    background-color: #FFFFFF;
    color: var(--brand);
    border: 1px solid var(--brand);
}
.policyButton:hover{
    background-color: #f2ecfd;
}

/* アプリ詳細ページ */
.appDetailSection{
    max-width: 700px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}
.appDetailCard{
    background-color: #FFFFFF;
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
}
.appDetailIcon{
    width: 110px;
    height: 110px;
    border-radius: 22%;
    box-shadow: 0px 0px 6px #00000030;
    margin-bottom: 18px;
    object-fit: cover;
}
.appDetailCard h1{
    font-size: 24px;
    margin: 0 0 20px 0;
}
.appDetailDescription{
    text-align: left;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    white-space: pre-line;
    margin-bottom: 28px;
}
.appDetailCard .buttonRow{
    max-width: 360px;
    margin: 0 auto;
}

/* プライバシーポリシーページ */
.privacySection{
    max-width: 760px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}
.privacyCard{
    background-color: #FFFFFF;
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    padding: 36px 30px;
}
.privacyCard h1{
    font-size: 22px;
    margin: 0 0 24px 0;
    text-align: center;
}

/* 言語タブ */
.langTabs{
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.langTab{
    border: 1px solid var(--brand);
    background-color: #FFFFFF;
    color: var(--brand);
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}
.langTab.active{
    background-color: var(--brand);
    color: #FFFFFF;
}

/* ポリシー本文 */
.policyArticle{
    display: none;
}
.policyArticle.active{
    display: block;
}
.policyArticle .updatedNote{
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 20px;
}
.policyArticle .leadText{
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 24px;
}
.policyArticle h2{
    font-size: 17px;
    border-left: 4px solid var(--brand);
    padding-left: 10px;
    margin: 28px 0 12px 0;
}
.policyArticle p{
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 10px 0;
}
.policyArticle ul{
    margin: 0 0 10px 0;
    padding-left: 22px;
}
.policyArticle li{
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 4px;
}
.policyArticle a{
    color: var(--brand);
    text-decoration: underline;
}

/* フッター */
.footer{
    text-align: center;
    padding: 20px;
    color: var(--text-sub);
    font-size: 13px;
}
