iframe{
    filter: grayscale(1);
  }

.tm-fullscreen {
position: relative;
height: 100vh;
overflow: hidden;
width: 100%;
z-index: -100;
}

.bg-image {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url(../img/sample_header.jpg) center center / cover no-repeat;
will-change: transform;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
}

.content {
position: relative;
z-index: 1;
}

/* iOS用の安定化 */
@supports (-webkit-touch-callout: none) {
  .tm-fullscreen {
    height: -webkit-fill-available;
  }
}

/* ナビゲーションの背景色 */
.navbar-wrapper {
    background-color: #dfdfdf;
    width: 100%;
}

.uk-navbar-container {
    background-color: #dfdfdf !important;
}

/* スマホでの設計図サイズ調整 */
@media (max-width: 768px) {
    .tm-fullscreen {
        height: 100vh;
        position: relative;
    }
    
    .bg-image {
        background-size: cover;
        background-position: center;
    }
    
    /* スマホでギャラリー画像の縦幅を広げる */
    .uk-grid img {
        height: 400px !important;
    }

    /* スマホでAboutセクションの文字を小さく */
    .about-card p {
        font-size: 13px;
        line-height: 1.9;
        padding-bottom: 15px;
    }
    
    .about-card h3 {
        padding-top: 15px;
        font-size: 18px;
    }

    .section-padding-btm {
        padding-bottom: 100px !important;
    }
}

@media (min-width: 960px) { /* UIKitの@mブレークポイント */
    .about-card {
      padding: 40px; /* uk-padding-large と同等 */
    }
    .about-card p {
        font-size: 17px;
        line-height: 1.9;
    }
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
}

/* Worksセクションの画像を統一サイズにする */
.uk-grid img {
    height: 200px;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ライトボックス用の画像は元のサイズで表示 */
.uk-lightbox img {
    max-width: 100%;
    height: auto;
}

/* スムーズなスクロールとアニメーション */
.uk-grid {
    will-change: transform;
    transform: translateZ(0);
}

/* 画像の読み込み最適化 */
.uk-grid img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* カスタム行間クラス - フォントサイズは変更せず行間のみ調整 */
.custom-line-height {
    line-height: 2.1;
}

/* ナビゲーションバーの自動非表示機能 */
.navbar-wrapper {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* スクロール時に表示される状態 */
.navbar-wrapper.uk-sticky-below {
    opacity: 1;
    visibility: visible;
}

/* セクションの背景を確実に表示 */
.uk-section {
    position: relative;
    z-index: 1;
}

.uk-block {
    position: relative;
    z-index: 1;
}
