/* 公開画面の画像・プロフィール・作品モーダル。 */
.clsFooterLogo {
    display: block;
    width: 180px;
    height: 48px;
    max-width: 60vw;
    object-fit: contain;
}

/* 縦書きの作品名が画像上端に接しないよう内側に収める。 */
.clsArtLabel {
    top: 20px;
    overflow: hidden;
}

@media (max-width: 600px) {
    #idMain .clsSectionHeading > .clsTextLink {
        margin: 0 0 0 auto;
    }
}

#idContent {
    counter-reset: clsSectionNumber;
}

#idContent > .clsSection:not(.clsProfileSection) {
    counter-increment: clsSectionNumber;
}

.clsWorkDialogHeader {
    flex-shrink: 0;
}

.clsNoCut {
    padding: 24px;
    background: var(--cyan);
    border-radius: 16px;
}

.clsCircleCut img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
}

.clsSocialIcon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.clsDialogOpen {
    overflow: hidden;
}

/* 最近のイラストは件数に応じて等分し、最大5件を一列に収める。 */
#idWorksContent {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 16px;
}

#idWorksContent > .clsWorkCard {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    #idWorksContent {
        grid-auto-columns: minmax(220px, 40%);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-block: 8px 24px;
    }

    #idWorksContent > .clsWorkCard {
        scroll-snap-align: start;
    }
}

.clsDialogImages {
    display: grid;
    gap: 20px;
}

.clsDialogText p {
    white-space: pre-line;
}

.clsFooterInner > span {
    color: rgb(255 255 255 / 72%);
}

.clsProfileCard .clsSkeletonVisual {
    width: clamp(80px, 20vw, 192px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
}

.clsWorksGrid > .clsRegionLoading .clsSkeletonLayout {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
}

.clsWorksGrid > .clsRegionLoading .clsSkeletonVisual {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 10;
}

.clsNewsList .clsSkeletonVisual,
.clsTabs .clsSkeletonVisual,
.clsArticle .clsSkeletonVisual {
    display: none;
}

/* バッジ未設定時も日付・見出し・矢印の列位置を保つ。 */
.clsNewsRowWithoutTag strong {
    grid-column: 3;
}

.clsNewsRowWithoutTag .clsRowArrow {
    grid-column: 4;
}

@media (max-width: 600px) {
    .clsNewsRowWithoutTag strong {
        grid-column: 1 / 3;
    }

    .clsNewsRowWithoutTag .clsRowArrow {
        grid-column: 3;
    }
}
/* 公開日付はイベント・お知らせで共通の表記とし、曜日の表示幅を確保する。 */
.clsDisplayDate {
    white-space: nowrap;
}

.clsDateWeekday {
    margin-left: 5px;
    font-size: 0.8em;
    font-weight: 700;
}

.clsNewsRow {
    grid-template-columns: 112px 66px minmax(0, 1fr) 32px;
}

@media (max-width: 600px) {
    .clsNewsRow {
        grid-template-columns: 112px 64px minmax(0, 1fr);
    }
}

/* 詳細URLで作品全体を表示し、固有の縦横比を維持する。 */
.clsWorkDetailImages img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-block: 24px;
}
