@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Noto+Serif+JP:wght@300;400;600&family=Zen+Old+Mincho:wght@400;700&display=swap');

:root {
    --bg: #121212;
    --surface: #1e1e1e;
    --red: #8B0000;
    --red-dark: #4a192c;
    --gold: #C5B358;
    --text-main: #f0ebd8;
    --text-muted: #8a8a8a;
    --border: #333333;
    
    --font-mincho: 'Zen Old Mincho', 'Noto Serif JP', serif;
    --font-eng: 'Cinzel', serif;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-mincho);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.9;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E');
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* LAYOUT: Asymmetrical Rail & Scroll */
.flex-layout {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDEBAR: Static Branding */
.side-brand {
    flex: 0 0 350px;
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--border);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(30,30,30,0.8), rgba(18,18,18,1));
    backdrop-filter: blur(10px);
    z-index: 100;
}
.brand-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 42px;
    letter-spacing: 12px;
    margin: 0 auto;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(139,0,0,0.5);
    font-weight: 700;
}
.brand-eng {
    font-family: var(--font-eng);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-align: center;
    position: absolute;
    top: 60px;
    left: 40px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.site-nav {
    margin-top: 50px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}
.site-nav li { margin-bottom: 25px; }
.site-nav a {
    font-size: 15px;
    letter-spacing: 0.2em;
    position: relative;
    display: inline-block;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: 0.4s var(--ease);
}
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

/* RIGHT CONTENT: Staggered */
.main-wrapper {
    flex: 1;
    position: relative;
}

/* SECTION PADDING */
.sec-p { padding: 120px 80px; border-bottom: 1px solid var(--border); }

/* HERO */
.kyoto-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.kyoto-hero img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0.6;
    filter: sepia(0.3) hue-rotate(-20deg) brightness(0.8);
}
.hero-box {
    position: relative;
    z-index: 2;
    background: rgba(18,18,18,0.85);
    padding: 60px 80px;
    border-left: 3px solid var(--red);
}
.hero-box h2 {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    line-height: 1.5;
}
.hero-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* BUTTONS */
.btn-solid {
    display: inline-block;
    background: var(--red-dark);
    color: #fff;
    padding: 16px 40px;
    letter-spacing: 0.15em;
    transition: 0.4s;
    border: 1px solid var(--red-dark);
}
.btn-solid:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* VERTICAL TEXT BLOCKS */
.wa-block {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.wa-img { flex: 1.5; }
.wa-img img { width: 100%; height: 500px; object-fit: cover; filter: grayscale(20%); }
.wa-text {
    flex: 1;
    writing-mode: vertical-rl;
    height: 500px;
}
.wa-text h3 {
    font-size: 28px;
    letter-spacing: 8px;
    margin-right: 0;
    margin-left: 30px;
}
.wa-text p {
    font-size: 16px;
    line-height: 2.5;
    color: var(--text-muted);
}

/* MASONRY SERVICES */
.masonry {
    column-count: 2;
    column-gap: 40px;
}
.m-item {
    break-inside: avoid;
    margin-bottom: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.m-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.8s var(--ease);
}
.m-item:hover img { transform: scale(1.05); filter: brightness(0.6); }
.m-content {
    padding: 30px;
}
.m-content h3 { font-size: 1.6rem; margin-bottom: 15px; color: var(--gold); }
.m-content p { color: var(--text-muted); margin-bottom: 15px; }

/* CONTACT FORM */
.f-line { margin-bottom: 30px; }
.f-label { display: block; font-size: 14px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 10px; }
.f-inp {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
}
.f-inp:focus { outline: none; border-bottom-color: var(--red); }

/* MOBILE RESPONSIVE */
.app-menu-btn { display: none; }
@media (max-width: 1024px) {
    .flex-layout { flex-direction: column; }
    .side-brand {
        flex: none; height: auto; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        transform: translateY(-100%); transition: 0.5s; align-items: center; padding-top: 100px;
    }
    .side-brand.open { transform: translateY(0); }
    .brand-title { writing-mode: horizontal-tb; font-size: 30px; margin-bottom: 40px; }
    .brand-eng { top: 20px; left: 20px; writing-mode: horizontal-tb; transform: none; }
    .app-menu-btn {
        display: block; position: fixed; top: 20px; right: 20px; z-index: 1000;
        background: var(--red-dark); color: #fff; border: none; padding: 12px 20px;
    }
    .sec-p { padding: 60px 20px; }
    .hero-box { padding: 30px; margin: 0 20px; }
    .wa-block { flex-direction: column; gap: 30px; }
    .wa-text { writing-mode: horizontal-tb; height: auto; }
    .wa-text h3 { margin-left: 0; margin-bottom: 20px; }
    .masonry { column-count: 1; }
}

.anim-fade { opacity: 0; transform: translateY(30px); transition: 1s var(--ease); }
.anim-fade.show { opacity: 1; transform: translateY(0); }
