@charset "UTF-8";

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-bg: #ffffff;
    --color-bg-light: #f4f3f0;
    --color-accent: #111111;
    --color-primary: #8a7c64; /* Warm grey/gold for architecture feel */
    --font-sans: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
    --font-serif: 'Noto Serif JP', "Yu Mincho", "MS PMincho", serif;
    --header-height-pc: 80px;
    --header-height-sp: 60px;
    --container-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--color-text); line-height: 2; letter-spacing: 0.08em; background: var(--color-bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
::selection { background: var(--color-primary); color: #fff; }
::-moz-selection { background: var(--color-primary); color: #fff; }
a { color: inherit; text-decoration: none; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utilities */
.sp-only { display: none; }
@media (max-width: 768px) {
    .sp-only { display: block; }
    .pc-only { display: none; }
}

.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.section { padding: 150px 0; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

.text-center { text-align: center; }
.mt-50 { margin-top: 50px; }
.bg-light { background-color: var(--color-bg-light); }

/* Typography */
h1, h2, h3, h4 { font-weight: 500; font-family: var(--font-serif); }
.sec-en { display: block; font-size: 13px; font-family: var(--font-sans); letter-spacing: 0.3em; color: var(--color-primary); margin-bottom: 15px; text-transform: uppercase; }
.sec-title { font-size: 42px; margin-bottom: 50px; letter-spacing: 0.1em; line-height: 1.4; }
@media (max-width: 768px) { .sec-title { font-size: 28px; margin-bottom: 30px; } }

/* Advanced Typography: Vertical Text */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-serif);
    line-height: 2.5;
    letter-spacing: 0.15em;
    font-size: 16px;
    height: 400px;
}
@media (max-width: 768px) { .vertical-text { height: 350px; font-size: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 35px; border-radius: 0; font-size: 13px; letter-spacing: 0.15em; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; overflow: hidden; z-index: 1; }
.btn::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: rgba(255,255,255,0.1); transition: 0.4s; z-index: -1; }
.btn:hover::before { width: 100%; }
.btn-primary { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.btn-primary:hover { background: #fff; color: var(--color-primary); }
.btn-primary:hover::before { background: var(--color-bg-light); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: #fff; color: var(--color-accent); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-outline-dark:hover { background: var(--color-accent); color: #fff; }
.btn.large { padding: 20px 50px; font-size: 15px; min-width: 300px; }
@media (max-width: 768px) { .btn.large { width: 100%; min-width: 0; margin-bottom: 15px; padding: 18px 20px;} }

/* Smooth Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Parallax Background Utility */
.parallax-bg { background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
@media (max-width: 768px) { .parallax-bg { background-attachment: scroll; /* Mobile smooth scrolling */ } }

/* ==========================================================================
   Header & Mobile Menu
   ========================================================================== */
.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 100; padding: 30px 5%; color: #fff; transition: 0.4s; }
.header.is-scrolled { position: fixed; background: rgba(17, 17, 17, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 15px 5%; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-family: var(--font-serif); letter-spacing: 0.15em; font-weight: 700; color: #fff; position: relative; z-index: 101; }
.header.is-scrolled .logo, .header.is-scrolled .pc-nav a, .header.inner-page .logo, .header.inner-page .pc-nav a { color: #fff; }
.logo span { font-weight: 400; font-size: 18px; margin-left: 10px; color: var(--color-primary); }
.pc-nav ul { display: flex; gap: 40px; }
.pc-nav a { font-size: 12px; letter-spacing: 0.15em; position: relative; text-transform: uppercase; }
.pc-nav a::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 0; height: 1px; background: var(--color-primary); transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.pc-nav a:hover::after { width: 100%; }
.header-contact { display: flex; gap: 15px; }

/* Hamburger */
.hamburger { width: 35px; height: 22px; position: relative; cursor: pointer; z-index: 102; }
.hamburger span { position: absolute; width: 100%; height: 2px; background: #fff; left: 0; transition: 0.5s cubic-bezier(0.86, 0, 0.07, 1); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* SP Navigation Drawer */
.sp-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(17, 17, 17, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 100; opacity: 0; visibility: hidden; transition: 0.6s cubic-bezier(0.86, 0, 0.07, 1); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.sp-nav.is-active { opacity: 1; visibility: visible; }
.sp-nav ul { display: flex; flex-direction: column; gap: 40px; text-align: center; }
.sp-nav a { color: #fff; font-family: var(--font-serif); font-size: 24px; letter-spacing: 0.2em; opacity: 0; transform: translateY(30px); transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sp-nav.is-active a { opacity: 1; transform: translateY(0); }
.sp-nav li:nth-child(1) a { transition-delay: 0.2s; }
.sp-nav li:nth-child(2) a { transition-delay: 0.3s; }
.sp-nav li:nth-child(3) a { transition-delay: 0.4s; }
.sp-nav li:nth-child(4) a { transition-delay: 0.5s; }

@media (max-width: 768px) {
    .header { padding: 15px 5%; }
    .logo { font-size: 18px; }
    .logo span { font-size: 14px; }
}

/* ==========================================================================
   Hero Home (FV)
   ========================================================================== */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; color: #fff; overflow: hidden; }
/* Crossfade Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* behind hero-content which is z-index: 2 */
}
.hero-slider div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 15s infinite;
}
.hero-slider div::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
}
.hero-slider div:nth-child(1) { animation-delay: 0s; }
.hero-slider div:nth-child(2) { animation-delay: 5s; }
.hero-slider div:nth-child(3) { animation-delay: 10s; }

@keyframes heroFade {
    0% { opacity: 0; transform: scale(1.0); }
    10% { opacity: 1; transform: scale(1.02); }
    33% { opacity: 1; transform: scale(1.05); }
    43% { opacity: 0; transform: scale(1.07); }
    100% { opacity: 0; transform: scale(1.1); }
}

.hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroScale 20s infinite alternate linear; transform-origin: center; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%); z-index: -1; }
.hero-content { position: relative; z-index: 1; padding: 0 10%; }
.hero-title { font-size: clamp(32px, 4.5vw, 64px); line-height: 1.4; margin-bottom: 25px; font-weight: 500; letter-spacing: 0.05em; text-shadow: 0 4px 20px rgba(0,0,0,0.5); animation: fadeUpText 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; transform: translateY(50px); }
.hero-sub { font-size: clamp(14px, 1.2vw, 18px); letter-spacing: 0.25em; text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-family: var(--font-sans); animation: fadeUpText 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards; opacity: 0; transform: translateY(30px); }

@keyframes heroScale { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes fadeUpText { to { opacity: 1; transform: translateY(0); } }

.scroll-indicator { position: absolute; bottom: 40px; right: 10%; z-index: 1; display: flex; align-items: center; gap: 15px; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-indicator span { font-size: 10px; letter-spacing: 0.3em; font-family: var(--font-sans); color: #fff; }
.scroll-line { width: 80px; height: 1px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; animation: scrollAnim 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite; transform-origin: left; }
@keyframes scrollAnim { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.1% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@media (max-width: 768px) {
    .hero-title { font-size: max(28px, 8vw); }
    .hero-sub { font-size: 12px; letter-spacing: 0.15em; }
    .hero-content { padding: 0 5%; }
}

/* ==========================================================================
   Concept (Vertical Text + Broken Grid)
   ========================================================================== */
.concept-wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 80px; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.concept-visual { width: 60%; position: relative; }
.concept-visual .main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.concept-visual .sub-img { position: absolute; bottom: -50px; right: -50px; width: 50%; aspect-ratio: 4/3; object-fit: cover; border: 10px solid var(--color-bg); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.concept-text { width: 35%; display: flex; flex-direction: column; align-items: flex-end; padding-top: 100px; }
.concept-text-inner { display: flex; flex-direction: row-reverse; gap: 40px; align-items: flex-start; }
.concept-text .sec-en { writing-mode: vertical-rl; margin-bottom: 0; margin-left: 0; letter-spacing: 0.5em; padding-top: 5px; }
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-serif);
    line-height: 2.5;
    letter-spacing: 0.15em;
    font-size: 16px;
    height: 520px; /* Increased to prevent premature line wrapping */
}
.concept-action { margin-top: 80px; text-align: right; }
.link-line { display: inline-flex; align-items: center; font-size: 13px; letter-spacing: 0.1em; color: var(--color-primary); }
.link-line::after { content: ''; width: 40px; height: 1px; background: var(--color-primary); margin-left: 15px; transition: 0.4s; }
.link-line:hover::after { width: 60px; }

@media (max-width: 768px) {
    .concept-wrap { flex-direction: column-reverse; gap: 60px; }
    .concept-visual, .concept-text { width: 100%; }
    .concept-text { padding-top: 0; align-items: center; }
    .concept-text-inner { flex-direction: column; align-items: center; gap: 20px; }
    .concept-text .sec-en { writing-mode: horizontal-tb; margin-bottom: 0; padding-top: 0; }
    .vertical-text { height: auto; writing-mode: horizontal-tb; font-size: 14px; line-height: 2.2; letter-spacing: 0.1em; text-align: left; padding: 0 10px; }
    .concept-visual .sub-img { right: auto; left: 10%; bottom: -30px; width: 80%; }
    .concept-action { margin-top: 50px; text-align: center; }
}

/* ==========================================================================
   Works (Masonry-like)
   ========================================================================== */
.works-list { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }
.work-item { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.work-item:nth-child(even) { flex-direction: row-reverse; }
.work-item-img { width: 65%; overflow: hidden; position: relative; }
.work-item-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-item:hover .work-item-img img { transform: scale(1.05); }
.work-item-info { width: 30%; }
.work-item-info h3 { font-size: 22px; margin-bottom: 15px; line-height: 1.4; }
.work-item-info p { font-size: 14px; color: var(--color-text-light); margin-bottom: 20px; }

@media (max-width: 768px) {
    .works-list { gap: 50px; }
    .work-item, .work-item:nth-child(even) { flex-direction: column; gap: 20px; }
    .work-item-img, .work-item-info { width: 100%; }
    .work-item-info h3 { font-size: 20px; }
}

/* ==========================================================================
   Performance Panel
   ========================================================================== */
.perf-panel { display: flex; background: var(--color-bg-light); margin-top: 50px; }
.perf-panel-img { width: 50%; min-height: 600px; }
.perf-panel-content { width: 50%; padding: 80px 5%; display: flex; flex-direction: column; justify-content: center; }
.perf-feature { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.perf-feature:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.perf-feature h3 { font-size: 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.perf-feature h3 span { font-size: 14px; color: var(--color-primary); font-family: var(--font-sans); }

@media (max-width: 768px) {
    .perf-panel { flex-direction: column; }
    .perf-panel-img { width: 100%; min-height: 300px; }
    .perf-panel-content { width: 100%; padding: 50px 5%; }
}

/* ==========================================================================
   Inner Pages (Works / Concept) Header
   ========================================================================== */
.inner-hero { position: relative; height: 50vh; min-height: 400px; display: flex; align-items: center; justify-content: center; color: #fff; background-color: var(--color-accent); overflow: hidden; }
.inner-hero img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.inner-hero-text { position: relative; z-index: 1; text-align: center; }
.inner-hero-title { font-size: 48px; letter-spacing: 0.1em; margin-bottom: 10px; }
.inner-hero-sub { font-size: 14px; letter-spacing: 0.2em; font-family: var(--font-sans); color: var(--color-primary); }

@media (max-width: 768px) {
    .inner-hero-title { font-size: 32px; }
}

/* ==========================================================================
   Works Grid (works.html)
   ========================================================================== */
.works-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.works-grid-full .work-card { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.works-grid-full .work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.works-grid-full .work-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); opacity: 0; transition: 0.4s; }
.works-grid-full .work-info { position: absolute; bottom: -20px; left: 0; width: 100%; padding: 40px; color: #fff; z-index: 1; opacity: 0; transition: 0.4s; }
.works-grid-full .work-info h3 { font-size: 24px; margin-bottom: 5px; }
.works-grid-full .work-card:hover img { transform: scale(1.05); }
.works-grid-full .work-card:hover::after { opacity: 1; }
.works-grid-full .work-card:hover .work-info { opacity: 1; bottom: 0; }

@media (max-width: 768px) {
    .works-grid-full { grid-template-columns: 1fr; gap: 20px; }
    .works-grid-full .work-card { aspect-ratio: 16/9; }
    .works-grid-full .work-card::after { opacity: 1; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7)); }
    .works-grid-full .work-info { opacity: 1; bottom: 0; padding: 20px; }
}

/* ==========================================================================
   Concept Inner (concept.html)
   ========================================================================== */
.concept-story { max-width: 800px; margin: 0 auto; padding: 100px 5%; }
.concept-story p { font-size: 16px; line-height: 2.2; margin-bottom: 40px; text-align: justify; }
.concept-story .quote { font-family: var(--font-serif); font-size: 24px; color: var(--color-primary); text-align: center; margin: 80px 0; line-height: 1.6; }
.concept-story-img { margin: 80px 0; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; max-width: 1920px; }
.concept-story-img img { width: 100%; height: 600px; object-fit: cover; }

@media (max-width: 768px) {
    .concept-story { padding: 60px 5%; }
    .concept-story .quote { font-size: 20px; margin: 50px 0; }
    .concept-story-img img { height: 300px; }
}

/* ==========================================================================
   Pre-Footer & Footer
   ========================================================================== */
.pre-footer { background: var(--color-bg-light); padding: 120px 5%; text-align: center; }
.pre-footer h2 { font-size: 36px; margin-bottom: 20px; }
.pre-footer p { color: var(--color-text-light); margin-bottom: 40px; }
.action-btns { display: flex; justify-content: center; gap: 20px; }

.footer { background: var(--color-accent); color: #fff; padding: 80px 5% 30px; }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; }
.logo-foot { font-family: var(--font-serif); font-size: 28px; letter-spacing: 0.1em; margin-bottom: 20px; }
.logo-foot span { font-size: 18px; font-weight: 400; color: var(--color-primary); }
.footer-info p { color: #aaa; font-size: 13px; line-height: 2; }
.footer-links ul { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: #ccc; font-size: 13px; letter-spacing: 0.1em; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; color: #666; font-size: 12px; letter-spacing: 0.1em; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px; background: rgba(17,17,17,0.7); border: 1px solid rgba(255,255,255,0.3); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; opacity: 0; visibility: hidden; transition: 0.4s; z-index: 99; backdrop-filter: blur(5px); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary); border-color: var(--color-primary); }

@media (max-width: 768px) {
    .pre-footer { padding: 80px 5%; }
    .pre-footer h2 { font-size: 24px; }
    .action-btns { flex-direction: column; gap: 15px; }
    .footer-top { flex-direction: column; gap: 50px; margin-bottom: 40px; padding-bottom: 40px; }
    .back-to-top { bottom: 80px; right: 20px; width: 40px; height: 40px; font-size: 12px; }
}

/* SP Fixed Bottom CTA */
@media (max-width: 768px) {
    body { padding-bottom: 60px; }
    .sp-fixed-cta { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; height: 60px; z-index: 1000; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); }
    .cta-btn { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.1em; }
    .cta-catalog { background: var(--color-primary); }
    .cta-reserve { background: var(--color-accent); }
}
