@charset "utf-8";
/* ==========================================================
   ▼ 総合トップ
   ========================================================== */
.homeHero{
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(217, 165, 33, 0.18), transparent 40%),
        linear-gradient(180deg, #141a33 0%, #1e2750 100%);
    color: #fff;
}
/* ドット絵の星空（画像を使わずCSSだけで描く） */
.homeHero::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(#fff 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 120px 120px, 70px 70px;
    background-position: 0 0, 35px 50px;
    opacity: 0.35;
}
/* 背景のイラスト（img）。枠いっぱいに敷き、上下左右とも中央に置く（はみ出す分は上下・左右を同じだけ切る） */
.homeHeroBg img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* 文字が読めるよう、イラストの上に半透明の暗い層を重ねる（左ほど濃く、文字の下をしっかり暗くする） */
.homeHero:has(.homeHeroBg)::before{
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(13, 16, 34, 0.86) 0%, rgba(13, 16, 34, 0.7) 45%, rgba(13, 16, 34, 0.45) 100%),
        linear-gradient(0deg, rgba(13, 16, 34, 0.5), transparent 60%);
    background-size: auto;
    opacity: 1;
}
.homeHeroInner{
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 3rem;
}
.homeHeroTitle{
    font-family: var(--fontPixel);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.06em;
}
/* 読みの「(ウイクス)」：見出しの0.8倍（PCは40px×0.8＝32px） */
.homeHeroTitleRuby{
    font-size: 0.8em;
}
.homeHeroLead{
    max-width: 40em;
    margin-top: 1rem;
    color: #d8dcee;
}
.homeBody{
    padding-top: 2rem;
    padding-bottom: 1rem;
}
.homeBody .sectionTitle{
    margin-top: 2.5rem;
}
.titleList{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    padding: 0;
    list-style: none;
}
.titleCard{
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover){
    .titleCard:hover{
        border-color: var(--gold);
        color: var(--ink);
        transform: translateY(-3px);
    }
}
/* カードの絵（パッケージやタイトル画面の代わりに、当サイトの絵と文字で「画像らしく」見せる） */
.titleCardArt{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.1rem;
    width: 100%;
    aspect-ratio: 90 / 43;
    padding: 1rem 1.2rem;
    overflow: hidden;
    background:
        linear-gradient(transparent 70%, rgba(0, 0, 0, 0.35)),
        repeating-linear-gradient(90deg, #233067 0 16px, #1d2858 16px 32px);
    color: #fff;
}
/* イメージ画像（img）を枠いっぱいに敷き（はみ出す分は切る）、下を暗くして文字を読みやすくする */
/* 絵のどこを見せるか（--artPos）はページ側の style で渡す */
.titleCardArt.hasArt{
    background: #4b8bcb;
}
.titleCardArtImg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--artPos, center);
}
.titleCardArt.hasArt::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 16, 34, 0.05) 30%, rgba(13, 16, 34, 0.85) 100%);
    pointer-events: none;
}
.titleCardArtYear,
.titleCardArtTitle,
.titleCardArtSub{
    position: relative;
    z-index: 2;
}
/* ウィンドウ風の白い二重枠 */
.titleCardArt::after{
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px rgba(13, 16, 34, 0.6);
    pointer-events: none;
}
.titleCardArtYear{
    align-self: flex-start;
    padding: 0 0.45rem;
    background: var(--gold);
    border-radius: 4px;
    color: #0d1022;
    font-family: var(--fontPixel);
    font-size: 0.85rem;
}
.titleCardArtTitle{
    font-family: var(--fontPixel);
    font-size: 1.9rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-shadow: 2px 2px 0 #0d1022, -1px -1px 0 #0d1022, 1px -1px 0 #0d1022, -1px 1px 0 #0d1022;
}
.titleCardArtSub{
    font-family: var(--fontPixel);
    font-size: 0.95rem;
    color: var(--goldSoft);
    text-shadow: 1px 1px 0 #0d1022;
}
.titleCardBody{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding: 1rem 1.2rem 1.2rem;
}
.titleCardName{
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}
.titleCardSub{
    margin-left: 0.5rem;
    color: var(--inkSub);
    font-size: 0.85rem;
    font-weight: 400;
}
.titleCardInfo{
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.85rem;
}
.titleCardKey{
    display: inline-block;
    min-width: 5.5em;
    color: var(--inkSub);
    font-weight: 700;
}
.titleCardText{
    color: var(--inkSub);
    font-size: 0.9rem;
    line-height: 1.75;
}
.titleCardBody .cardMeta{
    margin: 0;
    padding: 0;
    border: 0;
}
.titleCardMore{
    margin-top: auto;
    align-self: flex-end;
    color: var(--link);
    font-size: 0.9rem;
    font-weight: 700;
}
.titleCardMore::after{
    content: " ›";
}
@media (max-width: 719px){
    .homeHeroInner{
        padding: 2.25rem 1rem 2rem;
    }
    .homeHeroTitle{
        font-size: 1.7rem;
    }
    .titleList{
        grid-template-columns: 1fr;
    }
}
