/**
 * メニューハブブロック - オーバーレイスタイル用CSS
 */

/* メニューハブブロック共通 */
.menu-hub-block--overlay {
    /* カード間の視覚的つながり */
    position: relative;
    padding: 2rem 0;
}

/* カード間をつなぐ装飾ライン */
.menu-hub-block--overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        color-mix(in srgb, var(--arkb-btn-color--default, #007cba) 30%, transparent),
        transparent
    );
    z-index: 0;
    opacity: 0.3;
}

/* アニメーション前の初期状態を隠す（FOUC対策） */
.menu-hub-block--overlay .ark-block-boxLink:not(.is-visible) {
    opacity: 0;
    transform: translateY(30px);
}

/* 画像のオーバーフロー設定 */
.menu-hub-block--overlay .arkb-boxLink__bg {
    overflow: hidden;
}

.menu-hub-block--overlay .arkb-boxLink__img {
    transition: transform 0.6s ease, filter 0.4s ease;
}

/* グラデーションオーバーレイ */
.menu-hub-block--overlay .arkb-boxLink__layer {
    background: var(--overlay-gradient, linear-gradient(135deg, rgba(0,124,186,0.6) 0%, rgba(0,62,93,0.5) 100%));
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* ホバーエフェクト */
.menu-hub-block--overlay .ark-block-boxLink {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-hub-block--overlay .ark-block-boxLink:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.menu-hub-block--overlay .ark-block-boxLink:hover .arkb-boxLink__layer {
    opacity: 0.8;
}

/* 画像フィルター効果 */
.menu-hub-block--overlay .ark-block-boxLink:hover .arkb-boxLink__img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

/* テキスト色のカスタマイズ */
.menu-hub-block--overlay .arkb-boxLink__inner {
    color: var(--overlay-text-color, #ffffff);
}

/* リンク */
.menu-hub-block--overlay a {
    color: inherit;
    text-decoration: none;
}
/* テキストアニメーション */
.menu-hub-block--overlay .arkb-boxLink__title {
    font-size: 1.8rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.menu-hub-block--overlay .ark-block-boxLink:hover .arkb-boxLink__title {
    transform: translateX(10px);
}

.menu-hub-block--overlay .arkb-boxLink__content {
    line-height: 1.7;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease 0.1s;
    margin: 0.5em 0 1em 0;
}

.menu-hub-block--overlay .ark-block-boxLink:hover .arkb-boxLink__content {
    opacity: 1;
    transform: translateX(5px);
}

/* 詳しく見るボタンの強調 */
.menu-hub-block--overlay .arkb-boxLink__more {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.menu-hub-block--overlay .ark-block-boxLink:hover .arkb-boxLink__more {
    background: rgba(255,255,255,0.3);
    transform: translateX(10px);
}

.menu-hub-block--overlay .arkb-boxLink__more__svg {
    transition: transform 0.3s ease;
}

.menu-hub-block--overlay .ark-block-boxLink:hover .arkb-boxLink__more__svg {
    transform: translateX(5px);
}

/* レスポンシブ対応 - スマホ1カラム */
@media (max-width: 768px) {
    .menu-hub-block--overlay.arkb-boxlinks--2,
    .menu-hub-block--overlay.arkb-boxlinks--3,
    .menu-hub-block--overlay.arkb-boxlinks--4 {
        display: block !important;
    }
    
    .menu-hub-block--overlay .ark-block-boxLink {
        margin-bottom: 1.5rem;
    }
    
    .menu-hub-block--overlay .ark-block-boxLink:last-child {
        margin-bottom: 0;
    }
    
    /* スマホでは全て横向きレイアウトに統一 */
    .menu-hub-block--overlay .arkb-boxLink.-vertical .arkb-boxLink__inner {
        flex-direction: row !important;
    }
    
    .menu-hub-block--overlay .arkb-boxLink.-vertical .arkb-boxLink__bg {
        width: 40% !important;
        aspect-ratio: 1 / 1;
    }
    
    .menu-hub-block--overlay .arkb-boxLink.-vertical .arkb-boxLink__body {
        width: 60% !important;
            flex: inherit;
            margin-left: 40%;
    }
    
    /* 1カラム時の画像を正方形に保つ */
    .menu-hub-block--overlay .arkb-boxLink__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 2カラムレイアウト時の高さ調整 */
@media (min-width: 769px) {
    .menu-hub-block--overlay.arkb-boxlinks--2 .arkb-boxLink.-horizontal {
        min-height: 300px;
    }
    
    .menu-hub-block--overlay.arkb-boxlinks--2 .arkb-boxLink.-vertical {
        min-height: 400px;
    }
    
    /* 3カラムレイアウト */
    .menu-hub-block--overlay.arkb-boxlinks--3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .menu-hub-block--overlay.arkb-boxlinks--3 .ark-block-boxLink {
        margin: 0 !important;
    }
    
    .menu-hub-block--overlay.arkb-boxlinks--3 .arkb-boxLink.-horizontal .arkb-boxLink__inner {
        flex-direction: column !important;
    }
    
    .menu-hub-block--overlay.arkb-boxlinks--3 .arkb-boxLink.-horizontal .arkb-boxLink__bg {
        width: 100% !important;
        height: 200px !important;
    }
    
    .menu-hub-block--overlay.arkb-boxlinks--3 .arkb-boxLink.-horizontal .arkb-boxLink__body {
        width: 100% !important;
    }
}