/* ================================================
    TOP専用スタイル
   ================================================ */

/* メインビジュアル */
.main-visual {
    background: url('../img/mainvisual.png') center/cover no-repeat;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.main-visual img {
    width: 95%;
    height: auto;
    object-fit: cover;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    letter-spacing: clamp(0.05em, 0.2vw, 0.15em);
    line-height: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    letter-spacing: clamp(0.04em, 0.5vw, 0.06em);
    margin: 0.8rem 0 2.2rem;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1.6rem 0 2.2rem;
}

.hero-logo img {
    display: block;
    width: clamp(320px, 85vw, 600px);
    height: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.hero-counters .count {
    font-size: clamp(3rem, 7vw, 3.5rem);
    font-weight: bold;
    display: inline-block;
    margin-right: 0.2rem;
    line-height: 1;
    vertical-align: bottom;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-counters .counter-unit {
    font-size: clamp(2rem, 7vw, 2.5rem);
    display: inline-block;
    line-height: 1;
    vertical-align: bottom;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {

    .sp-tight {
        padding-top: 20px !important;
    }

}

.counter-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.equal-height>[class*="col"] {
    display: flex;
}

.equal-height>[class*="col"]>.card-link {
    display: flex;
    flex: 1 1 auto;
}

.equal-height>[class*="col"]>.card-link>.card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* PickUPカード */
.pickup-card .card-img-top {
    border-radius: 36px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.pickup-card:hover .card-img-top {
    filter: brightness(80%);
}

/* カード本文を高さ揃え */
.equal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equal-card .card-body {
    flex-grow: 1;
}

/* お役立ち情報カード */
.info-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* カード本文の余白を削除 */
.info-card .card-body {
    padding: 0 !important;
}

.info-card {
    border-radius: 8px !important;
    overflow: hidden;
    /* 内部の角丸崩れ防止 */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 画像：カードと同じ角丸に */
.info-card .card-img-top {
    border-radius: 20px !important;
    object-fit: cover;
    transition: filter 0.3s ease;
    display: block;
    margin-bottom: 0.7rem;
    /* ← paddingではなくmarginを使う */
}

/* ホバーで画像暗転 */
.info-card-link:hover .card-img-top {
    filter: brightness(80%);
}

/* お役立ち情報タグ */
.info-badge {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    /* 12px相当 */
    font-weight: bold;
    text-align: center;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    background: #fff;
    padding: 0.3rem;
    margin-bottom: 0.4rem;
}

/* 記事タイトル */
.info-card .card-title a {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ホバーで青色に変更 */
.info-card .card-title a:hover {
    color: #0092D7;
}

/* 投稿日などの小文字 */
.info-card .text-muted {
    font-size: 0.8rem;
    color: #6c757d;
}

/* PickUpカード専用 */
.pickup-card {
    background: linear-gradient(270deg, #05a4ee, #0f60ff, #3948ff);
    color: #fff;
    box-shadow: none;
}

.pickup-card:hover {
    opacity: 0.95;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.pickup-card .card-body p,
.pickup-card .card-body svg {
    color: #000000;
    fill: #000000;
}

/* 背景グラデーション */
.gradation1 {
    display: flex;
    width: 100%;
    background: linear-gradient(270deg, #3be2ff, #0092D7, #4d59ff);
    /* 青を明るめに変更 */
    background-size: 600% 600%;
    /* 大きくして動きを滑らかに */
    animation: Grad 15s ease infinite;
    align-items: center;
    justify-content: center;
}

@keyframes Grad {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.btn-custom {
    display: inline-block;
    padding: clamp(0.9rem, 3.2vw, 1.1rem) clamp(1.8rem, 7vw, 3.2rem);
    background-color: #000000;
    color: #fff;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 2rem;
    transition: all 0.25s ease;
}

.btn-custom:hover {
    background-color: #1d1d1d;
    color: #0092D7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width:768px) {

    .btn-custom {
        padding: 1rem 3.2rem;
        font-size: 1.1rem;
    }

}

/* 下スクロールボタン */
.hero-scroll {
    position: absolute;
    bottom: 7vh;
    right: var(--side-space);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#new-products {
    /* デフォだとヘッダーに隠れるので余白確保 */
    scroll-margin-top: 30px;
}

.scroll-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 1.5s ease-in-out infinite;
}

.scroll-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    backdrop-filter: blur(6px);
}

.scroll-line {
    width: 1px;
    height: 25px;
    background-color: #000;
    margin-bottom: 5px;
}

.scroll-text {
    writing-mode: vertical-rl;
    font-size: 9px;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 5px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.balloon-wrapper {
    position: absolute;
    animation: float 3.8s ease-in-out infinite;
    will-change: transform;
    text-align: center;
}

/* すべてのバルーン画像に統一 */
.balloon {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* 座標指定 */
.balloon-1 {
    top: -300px;
    left: -670px;
    width: 160px;
}

.balloon-2 {
    top: -90px;
    left: -490px;
    width: 135px;
}

.balloon-3 {
    top: -230px;
    left: 400px;
    width: 150px;
}

.drone-wrapper {
    position: absolute;
    animation: float 2s ease-in-out infinite;
    will-change: transform;
    text-align: center;
}

/* すべてのドローン画像に統一 */
.drone {
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease, opacity 0.1s ease;
}

/* 座標指定 */
.drone-1 {
    top: -100px;
    left: -560px;
    width: 60px;
}

.drone-2 {
    top: -30px;
    left: 480px;
    width: 60px;
}

.drone-3 {
    top: -130px;
    left: 830px;
    width: 60px;
}

/* バルーン表示 1200px(lg)以上1400px未満 */
@media (max-width: 1399.98px) {
    .balloon-1 {
        top: -240px;
        left: -500px;
        width: 140px;
    }

    .balloon-2 {
        top: -50px;
        left: -400px;
        width: 120px;
    }

    .balloon-3 {
        top: -180px;
        left: 350px;
        width: 130px;
    }

}

@media (min-width: 1400px) {
    #new-products>.container {
        max-width: 1356px;
    }
}

/* モーダル部分 */
.balloon-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -47%);
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.balloon-modal {
    color: #000;
}

.balloon-wrapper a {
    color: inherit;
    text-decoration: none;
}

/* モーダル内要素 */
.balloon-modal .modal-icon {
    display: block;
    margin: 0 auto 12px auto;
    width: 65px;
    height: 65px;
}

.balloon-modal .modal-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left;
}

.balloon-modal .modal-lead {
    font-size: 13px;
    line-height: 1.25rem;
    margin-bottom: 12px;
    text-align: left;
}

.balloon-modal .modal-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 30px;
    color: #fff;
    border-radius: 20px;
    background: transparent;
    background-color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* hoverでモーダル出現（白はそのまま） */
.balloon-wrapper:hover .balloon-modal {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.balloon-wrapper:hover .balloon-hand {
    animation-play-state: paused;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* 指マークの共通スタイル */
.balloon-hand {
    position: absolute;
    width: 20% !important;
    height: auto;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation: tapMotion 1.3s ease-in-out infinite;
    pointer-events: none;
}

/* バルーンごとに微調整可能 */
.balloon-1 .balloon-hand {
    bottom: 250px;
    left: 90%;
    transform: translateX(-50%) rotate(0deg);
}

.balloon-2 .balloon-hand {
    bottom: 250px;
    left: 90%;
    width: 56px !important;
    transform: translateX(-50%) rotate(0deg);
}

.balloon-3 .balloon-hand {
    bottom: 220px;
    left: 90%;
    transform: translateX(-50%) rotate(0deg);
}

/* ✋右から左へ突く動き */
@keyframes tapMotion {

    0%,
    100% {
        transform: translate(-50%, 0) scale(1);
    }

    30% {
        transform: translate(calc(-50% + 8px), 0) scale(1.0);
    }
}

/* スマホ用、バルーンの代わり */
@media (max-width: 575.98px) {
    .non-balloon-link {
        font-size: 0.85rem;
    }
}

.non-balloon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.3s cubic-bezier(.22, 1, .36, 1),
        border 0.3s ease;
}

.non-balloon-link:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 24px rgba(0, 146, 215, 0.18),
        0 6px 14px rgba(0, 0, 0, 0.08);
}

.non-balloon-link:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.non-balloon-link img {
    width: 50px;
    margin-bottom: 8px;
}

/* =========================
カテゴリ導線セクション
========================= */

.category-links-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.category-link-item {
    flex: 1;
    min-width: 260px;
    padding: 16px;
    border-radius: 10px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.35s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.35s cubic-bezier(.22, 1, .36, 1),
        border 0.35s ease;
}

.category-link-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 28px rgba(0, 146, 215, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-link-item:active {
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.12);
}

.category-link-item img {
    width: 48px;
}

.category-title {
    font-size: 1.4rem;
}

.category-desc {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
}

.category-link-item a {
    text-decoration: none;
    color: #000;
}


/* カード全体のカスタマイズ */
.card-no-bg {
    border: none;
    background: transparent;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* 画像のホバーで暗転 */
.card-no-bg .card-img-top {
    border-radius: 36px 36px 0 0;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* テキスト部分（余白リセット） */
.card-no-bg .card-body {
    padding: 1rem 1.2rem 1.3rem 1.5rem !important;
    margin: 0;
    background-color: #fff;
    border-radius: 0 0 36px 36px;
}

/* テキスト + 矢印 */
.card-no-bg .card-body p,
.card-no-bg .card-body svg {
    transition: color 0.3s ease, fill 0.3s ease;
    color: #212529;
    fill: #212529;
}

/* 協力会社バナーループ */
.logo-marquee-wrapper {
    background: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    padding: 0.5rem 0;
    margin-top: auto;
}

/* 親は動かさない */
.logo-marquee {
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    animation-play-state: paused;
}

.logo-track a {
    margin-right: 18px;
}

.logo-marquee img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

/* 上下で速度を変えたい場合 */
.marquee-top .logo-track {
    animation-duration: 40s;
}

.marquee-bottom .logo-track {
    animation-duration: 40s;
    animation-delay: -20s;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--scroll-distance)));
    }
}

/* パートナー企業 */
#partners .accordion-item {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 0.7rem auto;
    border: none;
}

@media (max-width: 767.98px) {
    #partners .accordion-item {
        width: 95%;
    }
}

/* よくある質問 共通 */
#faq .accordion-item {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 0.7rem auto;
    border: none;
    border-radius: 8px;
    /* シャドーを中央から全方向に広げる */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 画像がはみ出る問題を防止 */
.faq-accordion img {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    #faq .accordion-item {
        width: 95%;
    }
}

/* 質問タイトル（ボタン） */
#faq .accordion-button {
    font-weight: bold;
    background: #fff;
    color: #000;
    border-radius: 8px 8px 0 0;
    /* 上だけ角丸 */
    box-shadow: none;
    padding: 1.5rem 1.25rem;
    transition: background-color 0.3s ease;
    margin: 0;
    border: none;
    font-size: 1.2rem;
    /* 下罫線を消す */
}

/* ホバー時 */
#faq .accordion-button:hover {
    background-color: #f5f5f5;
}

/* 開閉アイコン（＋／−） */
#faq .accordion-button::after {
    content: '+';
    color: #000;
    background-image: none !important;
    transform: none !important;
}

#faq .accordion-button:not(.collapsed)::after {
    content: '−';
}

/* 開いた状態 */
#faq .accordion-button:not(.collapsed) {
    background: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

/* 回答部分 */
#faq .accordion-body {
    border-top: none;
    /* タイトル下の黒線を削除 */
    background: #fff;
    padding: 1.5rem 1.5rem 1.5rem 2.6rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    /* 空白1pxを削除 */
}

/* フォント指定（TOP専用） */
.zen-kaku-gothic-antique-regular {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.zen-kaku-gothic-antique-medium {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.is-hidden {
    display: none;
}