@charset "utf-8";

/* ========== トップページ ========== */

.home-site {
    background: #efefef;
}

.home-keyvisual {
    width: 100%;
    min-height: 20px;
}

/* メイン */
.home-main {
    padding: 44px 0 56px;
    background: #efefef;
}

/* キャッチコピー */
.home-maincopy {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 32px;
    line-height: 1.8;
}

.home-maincopy span {
    display: inline-block;
    font-family: "Dela Gothic One", sans-serif;
    color: #1C1987;
    font-size: 35px;
    font-weight: bold;
    line-height: 1.2;
    border-bottom: 4px solid #1C1987;
    padding-bottom: 6px;
}

/* 見出し */
.home-h2 {
    margin: 34px 0 14px;
    padding-bottom: 6px;
    color: #1C1987;
    border-bottom: 1px dashed #1C1987;
    font-size: 1.35rem;
    font-weight: bold;
}

/* お知らせエリア */
.home-news {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
}

/* お知らせカード */
.news-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.news-item time {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.85rem;
}

.news-item h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #393939;
    font-size: 1.1rem;
    line-height: 1.6;
}

.news-item p {
    margin: 8px 0 0;
    color: #393939;
    line-height: 1.8;
}

.news-item .pin {
    color: #f39c12;
    font-size: 1rem;
}

.news-item .new {
    display: inline-block;
    padding: 2px 6px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.4;
}

/* 折りたたみ対象 */
.news-item.more {
    display: none;
}

/* テキストリンク */
.home-text-link {
    color: #1C1987;
    font-weight: bold;
    text-decoration: underline;
}

.home-text-link:hover {
    color: #559cff;
}

/* もっと見るボタン */
#toggleNews {
    display: block;
    margin: 4px auto 20px;
    padding: 10px 24px;
    background: #1C1987;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

#toggleNews:hover {
    background: #559cff;
}

/* スマホ */
@media (max-width: 767px) {
    .home-main {
        padding-top: 34px;
    }

    .home-maincopy {
        font-size: 1rem;
    }

    .home-maincopy span {
        font-size: 35px;
    }

    .home-news {
        padding: 10px 0;
    }

    .news-item h3 {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .home-maincopy span {
        font-size: 5rem;
    }
}

/* ========== トップページ：EC-CUBE標準ヘッダー/フッター非表示 ========== */

body.home_page .ec-headerRole,
body.home_page .ec-headerNaviRole,
body.home_page .ec-headerSearch,
body.home_page .ec-headerTitle,
body.home_page .ec-headerNav,
body.home_page .ec-headerCategoryArea,
body.home_page .ec-categoryNaviRole,
body.home_page .ec-topicpath {
    display: none !important;
}

body.home_page .ec-footerRole {
    display: none !important;
}

/* EC-CUBE標準レイアウトの余白を消す */
body.home_page .ec-layoutRole,
body.home_page .ec-layoutRole__contents,
body.home_page .ec-layoutRole__main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* 念のため、メイン周辺の余白もリセット */
body.home_page .ec-layoutRole__mainTop,
body.home_page .ec-layoutRole__mainBottom {
    margin: 0 !important;
    padding: 0 !important;
}

/* ========== トップページ：EC-CUBE標準サイト表示を強制非表示 ========== */

/* EC-CUBE標準ヘッダー */
.ec-headerRole,
.ec-headerNaviRole,
.ec-headerSearch,
.ec-headerTitle,
.ec-headerNav,
.ec-headerCategoryArea,
.ec-categoryNaviRole,
.ec-topicpath {
    display: none !important;
}

/* EC-CUBE標準フッター */
.ec-footerRole,
.ec-footerNavi,
.ec-footerTitle,
.ec-footerCopyright,
.ec-footerGuide {
    display: none !important;
}

/* EC-CUBE標準トップページに出ることがある本体ブロック */
.ec-sliderRole,
.ec-eyecatchRole,
.ec-topicRole,
.ec-newItemRole,
.ec-newsRole,
.ec-layoutRole__mainTop,
.ec-layoutRole__mainBottom {
    display: none !important;
}

/* 標準レイアウトの余白を消す */
.ec-layoutRole,
.ec-layoutRole__contents,
.ec-layoutRole__main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* ========== トップページ：お知らせ商品カード ========== */

.home-news {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
}

.news-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 12px;
}

.news-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 10px;
    transition: 0.2s;
}

.news-product-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.news-product-card:active {
    transform: scale(0.97);
}

.news-product-card .news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #393939;
    text-decoration: none;
}

.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 8px;
}

.news-product-info {
    flex: 1;
}

.news-title {
    display: -webkit-box;
    color: #393939;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 480px) {
    .news-products {
        gap: 10px;
    }

    .news-product-card {
        padding: 8px;
    }

    .news-title {
        font-size: 12px;
        -webkit-line-clamp: 3;
        min-height: 4.2em;
    }
}


.news-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.news-images img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
}

@media (max-width: 480px) {
    .news-images {
        grid-template-columns: 1fr;
    }
}