.rakuten-fv{
    height: 120rem;
}
.rakuten-fv-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    animation: fvFade 25s infinite;
    z-index: 0;
}
.rakuten-fv-slide::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(34, 34, 34, 0.3);
}
.rakuten-fv-slide:nth-child(1) {
    animation-delay: 0s;
}
.rakuten-fv-slide:nth-child(2) {
    animation-delay: 5s;
}
.rakuten-fv-slide:nth-child(3) {
    animation-delay: 10s;
}
.rakuten-fv-slide:nth-child(4) {
    animation-delay: 15s;
}
.rakuten-fv-slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes fvFade {
    0%   { opacity: 0; }
    6%   { opacity: 1; }  /* ≒1.5秒でフェードイン（25s×0.06） */
    20%  { opacity: 1; }  /* 自スロットの終わりまで点灯 */
    26%  { opacity: 0; }  /* 次スライドのIN(0〜6%)と重なる範囲でアウト */
    100% { opacity: 0; }  /* それ以外は消灯 */
}

a {
  color: inherit !important;       /* 親要素の文字色を引き継ぐ */
  text-decoration: none !important; /* アンダーラインを消す */
}

.p-room__inner::after {
    height: clamp(550px, 61.7361111111vw, 800px) !important;
}

.rakuten-section-top{
	transform: translateX(-22px);
    overflow: hidden;
}
.rakuten-section-wrapper{
    position: relative;
    width: fit-content;
    height: fit-content;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.rakuten-section-slide{
    position: absolute;
    top: 0;
    left: 0;
    width: 44rem;
    height: 16.5rem;
    animation: sectionFade 20s infinite;
    transform: translateX(120%);
}
.rakuten-section-slide:nth-child(1){
    animation-delay: 0s;
}
.rakuten-section-slide:nth-child(2){
    animation-delay: 5s;
}
.rakuten-section-slide:nth-child(3){
    animation-delay: 10s;
}
.rakuten-section-slide:nth-child(4){
    animation-delay: 15s;
}
@keyframes sectionFade {
    0%   { opacity: 0; transform: translateX(110%); } /* 画面右で透明 */
    5%   { opacity: 1; transform: translateX(0); }    /* 中央にスライドイン */
    25%  { opacity: 1; transform: translateX(0); }    /* 中央でキープ */
    30%  { opacity: 0; transform: translateX(-110%); }/* 左に抜けて透明 */
    100% { opacity: 0; transform: translateX(-110%); }/* 完全に左側で待機 */
}



.rakuten-access-bg{
    background: url("https://m-shiraishi.com/wp-content/themes/mi-shiraishi/assets/rakuten-img/section-bg.png") no-repeat center center / cover;
}
.p-access__link a{
    color: #fff !important;
}




.rakuten-gallery-slider{
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.rakuten-gallery-wrapper{
    display: flex;
    width: fit-content;
    gap: 15px;
    transition: all 0.3s;
    animation: loop-scroll 50s linear infinite;
    will-change: transform;
}
.rakuten-gallery-slide{
    height: 286px;
    width: 428px;
}

@keyframes loop-scroll{
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* 1x1の計測ピクセルは必ず1pxにする */
img[width="1"][height="1"],
img[src^="https://rd.rakuten.co.jp/p/"]{
    width: 1px !important;
    height: 1px !important;
    display: block;       /* 余計な行間を消す */
    line-height: 0;
}