/* CMSのコンテナ制約をリセットしつつ、中身の可読性を保つための指定 */
#rootTemplate, .l-container, .l-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body {
    background-color: #FDFBF7;
    overflow-x: hidden;
    /* フォントサイズのベースを画面幅に合わせて流動的に (14px〜18pxの間で動く) */
    font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
}

/* 共通の最大幅設定：画面幅の92%を維持しつつ、PCでは1280pxで止める */
.content-container {
    width: 92%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
    z-index: 10;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8E2D9;
    transition: background 0.3s;
}
.dot.active {
    background: #4A443D;
}

/* 文字サイズの流動的調整用クラス */
.fluid-h1 { font-size: clamp(3.0rem, 7.5vw, 7.0rem); }
.fluid-h2 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
.fluid-p  { font-size: clamp(1.2rem, 2.2vw, 2.25rem); }


/* 画像サイズの制御 */
.visual-wrapper {
    max-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.visual-image {
    max-height: 75vh;
    width: auto;
    object-fit: contain;
}

/* 回数部分の強調 */
.rank-count-badge {
    display: inline-block;
    background: rgba(255,255,255,0.6);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.count-number {
    font-family: "Cinzel", serif;
    font-size: 1.7em;
    font-weight: 700;
    margin: 0 2px;
    color: inherit;
}