@charset "UTF-8";

/* --- アニメーション定義（ここを最初に追加） --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スマホ用アニメーション：中央揃え(translate -50%)を維持したまま動かす */
@keyframes fadeInUpMobile {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
        /* 50%を維持しつつ、少し下から */
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
        /* 最終的にピッタリ中央 */
    }
}


/*メインビジュアル*/
.main_visual {
    width: 100%;
    height: clamp(400px, 60vh, 640px);
    background: url(../image/top/top_mv_2.jpg) no-repeat center center / cover;
    position: relative;
    overflow: hidden;
}

.main_visual_inner {
    position: absolute;
    top: 25%;
    left: 0;
    z-index: 10;
    width: clamp(320px, 45vw, 600px);
    padding: clamp(20px, 4vw, 40px);
    background: rgba(185, 198, 204, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

    /* 最初は透明にする */
    opacity: 0;
    /* PC用アニメーション適用 */
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
    box-sizing: border-box;
}

.main_visual_title {
    font-size: clamp(1.25rem, 0.795rem + 2.27vw, 2.5rem);
    line-height: 1.5;
    font-weight: 500;
}

.main_visual_text {
    font-size: clamp(0.825rem, 1.2vw, 1.0625rem);
}

.company_info {
    background-color: #F2F2F2;
    padding: 20px 35px;
    text-align: start;
}

.company_info_inner {
    display: flex;
    margin: 0 auto;
}

.company_info_inner h3 {
    font-weight: 700;
    color: #D63447;
}

.company_info_inner p {
    font-weight: 600;
}

.info_text {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-top: 8px;
}

.merchandise_bg {
    background: rgba(224, 246, 255, 0.4);
    padding-bottom: 20px;
}

.title_inner {
    padding: 80px 20px 0;
    text-align: center;
}

.section_title {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    position: relative;
    line-height: 1;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

/* 擬似要素でラインを作成 */
.section_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* ラインのサイズ設定 */
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0FC9F7, #2574EB);
    border-radius: 2px;
}

.section_titles {
    font-size: clamp(0.75rem, 5vw + 1rem, 0.9375rem);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
    background: linear-gradient(135deg, #0FC9F7, #2574EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* News Section */
.news {
    padding-bottom: 60px;
    background-color: #fff;
}

.news_inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.news_list {
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.news_item {
    display: flex;
    align-items: flex-start;
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news_meta {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    flex-shrink: 0;
    /* 縮まないように */
}

.news_date {
    font-family: 'Jost', sans-serif;
    font-size: 0.9375rem;
    color: #888;
    letter-spacing: 0.05em;
}

.news_cat {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
    background-color: #ddd;
    color: #fff;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.cat_info {
    background-color: #16b1f4;
}

.cat_news {
    background-color: #D63447;
}

.cat_product {
    background-color: #2574EB;
}

.news_title {
    display: flex;
    flex-direction: column;
    font-weight: 500;
}

.news_letter {
    color: #2574EB;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news_letter:hover {
    color: #555;
}

.material-symbols-outlined {
    font-size: 1rem;
}

.merchandise_box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
    justify-content: flex-start;
    margin-top: 30px;
}

/* --- カード本体 --- */
.merchandise_item {
    /* デフォルト：3カラム計算 (100% - 隙間20px * 2) / 3 */
    width: calc((100% - 40px) / 3);
    min-width: 200px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.merchandise_item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.merchandise_item:hover {
    transform: translateY(-5px);
}

.merchandise_item_title {
    font-size: 1.25rem;
    margin: 15px 0 10px;
    color: #333;
    font-weight: 600;
    border-top: 1px solid #cacaca;
    padding-top: 8px;
}

.merchandise_item_title span {
    font-size: 1.25rem;
    letter-spacing: -0.08rem;

}

.sale {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 160px auto 20px;
    padding-bottom: 30px;
    border-bottom: #16b1f4 2px solid;
}

.sale img,
.kai img {
    width: 40%;
    height: auto;
    padding-left: 30px;
}

.sale_right,
.kai_right {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sale_text {
    font-size: clamp(1.25rem, 1.068rem + 0.91vw, 1.75rem);
    line-height: 1.8;
    color: #333;
    font-weight: 500;
    padding: 0 20px 40px;
}

.btn_contact_a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 10px 30px 10px 15px;
    background-color: #16b1f4;
    color: #fff;
    border: #16b1f4 2px solid;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn_contact_a:hover {
    background-color: #fff;
    color: #16b1f4;
    border: #16b1f4 2px solid;
    border-radius: 24px;
}

.btn_contact_a::after {
    content: '〉';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%) translateX(0);
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease-out;
}

/* translateXで右にスライドさせる */
.btn_contact_a:hover::after {
    transform: translateY(-50%) translateX(5px);
}

/* ミニラボ買取 */
.kai {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto 100px;
    padding-bottom: 15px;
    border-bottom: #16b1f4 2px solid;
}

.kai_title {
    font-size: clamp(1.75rem, 1.659rem + 0.45vw, 2rem);
    background: linear-gradient(135deg, #0FC9F7, #2574EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    padding-bottom: 40px;
}

.btn_contact_c {
    position: relative;
    display: inline-block;
    padding: 8px 45px 8px 25px;
    background-color: #16b1f4;
    color: #fff;
    border: #16b1f4 2px solid;
    line-height: 1.2;
    border-radius: 4px;
    /* ボタン全体にもtransitionをかけておく */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn_contact_c::after {
    content: '〉';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) translateX(0);
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease-out;
}

/* translateXで右にスライドさせる */
.btn_contact_c:hover::after {
    transform: translateY(-50%) translateX(5px);
}

/* ネットショッピング */
/* 外側のコンテナ：最大幅1080pxで中央寄せ */
.net_container_three {
    margin: 40px auto 80px;
    width: 100%;
}

.net_box {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.box_net-left {
    width: 50%;
    transition: transform 0.3s ease;
}

.box_net-left img {
    width: 100%;
    height: auto;
    display: block;
}

.box_net-left:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.box_net-right {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.box_net-right img {
    max-width: 80%;
    height: auto;
    display: block;
}

.net_link1,
.net_link2 {
    display: block;
    transition: transform 0.3s ease;
}

.net_link1:hover,
.net_link2:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}


/* スマホ用レスポンシブ（文字サイズ調整） */
@media (max-width: 768px) {
    .main_visual_inner {
        width: 52%;
    }

    .main_visual_text {
        font-size: 11px;
    }

    .news_item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
        gap: 8px;
    }

    .news_meta {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }

    .news_title {
        padding-left: 0;
        font-size: 0.9375rem;
    }

    /* ネットショッピング */
    .net_box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 1080px;
        margin: 0 auto;
        padding: 0 20px;
        gap: 40px;
    }

    .box_net-left {
        width: 100%;
    }

    .box_net-left img {
        width: 100%;
        height: auto;
    }

    .box_net-right {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 40px;
    }

    .box_net-right img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .merchandise_box {
        gap: 30px;
    }

    .merchandise_item {
        /* (100% - 隙間30px) / 2 */
        width: calc((100% - 30px) / 2);
        min-width: 250px;
        /* 2列時の安定感 */
    }
}

@media (max-width: 580px) {
    .main_visual_inner {
        top: 50%;
        left: 50%;
        width: 80%;
        max-width: 280px;
        text-align: center;
        /* スマホ専用のアニメーションで上書き */
        /* animation-nameを分けることで、PCの設定との衝突を防ぎます */
        animation: fadeInUpMobile 1.2s ease-out 0.5s forwards;
    }

    .company_info_inner {
        flex-direction: column;
    }

    .news_list {
        margin: 40px auto 0;
        width: fit-content;
        max-width: 100%;
    }

    .about_us_inner p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .sale {
        margin: 20px auto 0;
    }

    .sale,
    .kai {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 30px;
    }

    .sale img,
    .kai img {
        width: 100%;
        height: auto;
        padding: 0 30px;
        margin-top: 60px;
    }

    .sale_right,
    .kai_right {
        width: 100%;
    }

    .top_pc_banner {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 60px 0;
    }

    .merchandise_item {
        width: 100%;
        min-width: 100%;
    }

    .btn_contact_a {
        font-size: 14px;
        font-weight: 600;
    }
}