/* index.html専用スタイル */

/* メイン画像スライダー */
.mainimg-slick {
    width: 100%; 
    height: auto; 
    position: relative; 
    overflow: visible; 
}

/* ページ全体のローディングカバー */
.page-loading-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loading-cover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ローディングスピナー */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #c9a876);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mainimg-slick .slick-slide {
    width: 100%;
    height: auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.mainimg-slick img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* スライドのドットの位置を調整 */
.mainimg-slick .slick-dots {
    bottom: -30px; /* デフォルトの-40pxから-30pxに変更して上に移動 */
}

/* キャンペーンコンテナ */
.campaign-container {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.3rem 1rem;
}

.campaign-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.campaign-item:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.campaign-day {
    background: linear-gradient(135deg, #87ceeb, #5dade2);
    color: white;
    text-align: center;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-item:nth-child(1) .campaign-day {
    background: linear-gradient(135deg, #ffb366, #ffa366); 
}

.campaign-item:nth-child(2) .campaign-day {
    background: linear-gradient(135deg, #ffeb3b, #fff176); 
}

.campaign-item:nth-child(3) .campaign-day {
    background: linear-gradient(135deg, #81c784, #a5d6a7); 
}

.campaign-item:nth-child(4) .campaign-day {
    background: linear-gradient(135deg, #4fc3f7, #81d4fa); 
}

.campaign-item:nth-child(5) .campaign-day {
    background: linear-gradient(135deg, #5c6bc0, #7986cb); 
}

.campaign-content {
    padding: 0.3rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-content h3 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    flex: 1;
}

.campaign-content p {
    color: #333;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    flex: 2;
    padding: -1rem 0.6rem;
    text-align: left;
}

.campaign-content p .note-part {
    font-size: 0.75rem;
    font-weight: normal;
}

.campaign-discount {
    background: linear-gradient(135deg, #f8bbd9, #f48fb1);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* お知らせ */
.new {
    margin: 0;
    padding: 0 2rem; 
}

.news-item {
    margin-bottom: 0.5rem; 
    background-color: #f8f9fa; 
    padding: 0.8rem; 
    border-radius: 8px; 
    border-left: 4px solid var(--primary-color); 
}

.news-date {
    font-weight: bold;
    color: #333333;
    margin-bottom: 0.5rem; 
    line-height: 1.2; 
    padding-left: 1rem; 
}

.news-date span {
    display: inline-block; 
    width: 4em; 
    background: #e74c3c; 
    color: #ffffff; 
    font-size: 0.7em; 
    text-align: center; 
    margin-left: 0.8em; 
    margin-right: 0.5em; 
    line-height: 1.5; 
    border-radius: 2px; 
    vertical-align: middle; 
}

.news-content {
    padding-left: 2rem; 
    line-height: 1.2; 
    color: #222; 
    font-size: 0.9rem; 
}

.news-hidden {
    overflow: hidden;
}

.news-visible {
    max-height: 100px; 
    overflow: hidden; 
}

.news-scroll {
    max-height: 100px; 
    overflow-y: auto; 
    padding-right: 8px; 
}

.news-scroll::-webkit-scrollbar {
    width: 6px;
}

.news-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.news-toggle {
    text-align: center;
    margin-top: 1rem;
    padding: 0 2rem;
}

.news-toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-toggle-btn:hover {
    background: #d4a574; 
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.news-date span.icon-bg1 {
    background: #cd0000 !important;
}

.news-date span.icon-bg2 {
    background: #006acd !important;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .news-date {
        font-size: 0.9em; 
        line-height: 1.2; 
    }
    
    .news-content {
        font-size: 0.85em; 
        line-height: 1.3; 
    }
    
    .news-toggle-btn {
        font-size: 0.8em;
        padding: 0.4rem 0.8rem;
    }
    
    .news-toggle {
        padding: 0 1rem;
    }
    
    .campaign-container {
        gap: 0.2rem;
        margin: 0.3rem 0.5rem;
    }
    
    .campaign-day {
        padding: 0.25rem 0.3rem;
        font-size: 0.8rem;
        width: 70px;
    }
    
}

/* フッター左右 - index.html専用 */
#footer-contents .left {
    margin-bottom: 5px; 
}

#footer-contents .right {
    width: 50%; 
    padding-left: 3%; 
}

#footer-contents .left > div {
    line-height: 1.3; 
}

@media screen and (min-width: 900px) {
    #footer-contents .left {
        margin-bottom: 0; 
        width: 50%; 
    }
}

