/**
 * TGM Wood Factory - デザイン強化CSS
 * micro-interactions, scroll progress, section heading polish
 * 全て CSS-only で軽量。パフォーマンスに影響なし。
 */

/* =============== スクロール進捗バー =============== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #9b7653, #cda67f, #C5A059);
    z-index: 10001;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* =============== セクション見出し強化 =============== */

/* 見出し下線のホバーアニメーション */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9b7653, #cda67f, #9b7653, transparent);
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title:hover::after {
    width: 100%;
    left: 0;
}

/* =============== カード・ボタン マイクロインタラクション =============== */

/* カードの浮き上がりホバー効果 */
.card-hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

/* プレミアムボタンのグラデーション流動効果 */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.3);
}

/* =============== 画像 ホバーエフェクト =============== */

/* ソフトズーム（画像コンテナに適用） */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-container:hover img {
    transform: scale(1.05);
}

/* =============== テキストグラデーション =============== */

/* 木目風テキストグラデーション */
.text-wood-gradient {
    background: linear-gradient(135deg, #8B5A2B 0%, #C5A059 50%, #9b7653 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ゴールドアクセントグラデーション */
.text-gold-accent {
    background: linear-gradient(135deg, #C5A059, #e8c97a, #C5A059);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============== 区切りライン =============== */

/* グラデーション区切りライン */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cda67f, transparent);
    border: none;
    margin: 2rem 0;
}

/* =============== フォーカスリング（アクセシビリティ） =============== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
    border-radius: 2px;
}

/* =============== アニメーション軽量化 =============== */
@media (prefers-reduced-motion: reduce) {

    .scroll-progress,
    .card-hover-lift,
    .btn-premium::before,
    .img-zoom-container img,
    .section-title::after {
        transition: none !important;
        animation: none !important;
    }
}