/* LUXURY VAULT カスタムスタイル */

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* スマホ用固定バー対応 - 下部パディング */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
    }
}

/* 背景パターン */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5c158;
}

/* ホバーエフェクト */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* カード3Dエフェクト */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* セクション区切り線 */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 4rem 0;
}

/* ボタンのパルスアニメーション */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* フォームのフォーカススタイル */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* テキストの選択カラー */
::selection {
    background-color: #D4AF37;
    color: #1a1a1a;
}

::-moz-selection {
    background-color: #D4AF37;
    color: #1a1a1a;
}

/* レスポンシブ画像 */
img {
    max-width: 100%;
    height: auto;
}

/* 数字カウンターアニメーション */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 1s ease-out;
}

/* パララックス効果の準備 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* カスタムシャドウ */
.luxury-shadow {
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

.luxury-shadow-lg {
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
}

/* ボーダーアニメーション */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    animation: borderSlide 3s ease-in-out infinite;
}

@keyframes borderSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* テキストのタイプライター効果 */
.typewriter {
    overflow: hidden;
    border-right: 0.15em solid #D4AF37;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #D4AF37;
    }
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* フローティングアニメーション */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero-pattern {
        opacity: 0.5;
    }
    
    .parallax {
        background-attachment: scroll;
    }
}

/* プリントスタイル */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    /* すでにダークテーマなので追加設定は不要 */
}

/* アクセシビリティ - 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス可視化（キーボードナビゲーション） */
*:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* カスタムチェックボックス */
input[type="checkbox"] {
    accent-color: #D4AF37;
}

/* カスタムラジオボタン */
input[type="radio"] {
    accent-color: #D4AF37;
}

/* プレースホルダースタイル */
::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

/* リンクのアンダーラインアニメーション */
a {
    position: relative;
    text-decoration: none;
}

a:not(.no-underline-animation)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

a:not(.no-underline-animation):hover::after {
    width: 100%;
}

/* バッジスタイル */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #D4AF37;
}

/* ツールチップスタイル */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #D4AF37;
    color: #1a1a1a;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}