/* =========================================
   【最重要】言語表示切り替え設定
   HTMLのlang属性を見て、単純に表示/非表示を切り替えます
   ========================================= */

/* 現在が日本語(ja)なら、英語(.text-en)を消す */
html[lang="ja"] .text-en {
    display: none !important;
}

/* 現在が英語(en)なら、日本語(.text-ja)を消す */
html[lang="en"] .text-ja {
    display: none !important;
}

/* 言語設定がない場合のデフォルト（英語を消す） */
html:not([lang]) .text-en {
    display: none !important;
}


/* =========================================
   以下、基本スタイル
   ========================================= */
body {
    background-color: #1a1f16;
    color: #e2e8f0;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1f16; 
}
::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c3922e; 
}

/* Typography Utilities */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
}

/* Background Effects */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(195, 146, 46, 0.08) 0%, rgba(195, 146, 46, 0) 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glow-text {
    text-shadow: 0 0 10px rgba(195, 146, 46, 0.5);
}

/* Image Hover Effects */
.image-container {
    overflow: hidden;
    position: relative;
}
.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 31, 22, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.image-container:hover::after {
    opacity: 1;
}
.image-container img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-container:hover img {
    transform: scale(1.05);
}

/* Form Styles */
.form-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    transition: all 0.3s ease;
}
.form-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #c3922e;
    outline: none;
    box-shadow: 0 0 0 1px rgba(195, 146, 46, 0.3);
}