@charset "UTF-8";

:root {
    --color-primary: #0f172a;
    /* Deep Navy - Trust */
    --color-accent: #b4a285;
    /* Gold/Beige - Craftsmanship */
    --color-text: #334155;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Removed scroll-behavior and scroll-snap-type to allow custom JS control and free scrolling */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    /* User requested faint house background */
    background-image: url('bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: fixed;
}

/* Background overlay to ensure text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.6);
    /* Light overlay */
    z-index: -1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Header - Unified with background, not floating white box */
.header {
    position: absolute;
    /* Changed from fixed to absolute to blend with hero initially, or fixed with transparent */
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 100;
    background: transparent;
    /* Transparent */
    transition: padding 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    color: var(--color-white);
    /* White logo for Hero compatibility */
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    /* Vertical logo for playfulness/tradition */
    text-orientation: upright;
    background: var(--color-primary);
    /* Small accent tag style */
    padding: 15px 10px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Slightly less than full screen */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-primary);
    /* Changed to dark text since bg is light now? Or keep dark hero? */
    /* Let's keep a dark hero for contrast, but maybe with a shape? */
    /* User said "header white floating so unify". If header is transparent, hero needs to handle it. */
    /* Let's try a diff approach: Hero text over the house drawing directly? */
}

/* Redesign Hero to be cleaner and blend with the "house" sketch */
.hero {
    background: transparent;
    color: var(--color-primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    /* Vertical layout for title to be "playful" */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    color: var(--color-accent);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    font-weight: 500;
    /* Vertical writing for title? Maybe too hard to read. Let's stick to horizontal but stylish. */
}

.hero-desc {
    font-size: 1.1rem;
    background: var(--color-white);
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Scroll Down Arrow - Chevron Style */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    border-bottom: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    transform: translateX(-50%) rotate(45deg);
    animation: arrowBounce 2s infinite;
}

.scroll-down::before,
.scroll-down::after {
    display: none;
    /* Remove old line/box styles */
}

@keyframes arrowBounce {
    0% {
        transform: translateX(-50%) rotate(45deg) translate(-10px, -10px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) rotate(45deg) translate(0, 0);
        opacity: 0;
    }
}

/* Custom Scrollbar to ensure visibility */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 6px;
    border: 3px solid rgba(248, 250, 252, 0.5);
    /* padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Section Common - Compacted */
section {
    padding: 80px 20px;
    /* Reduced from 120px */
    position: relative;
    /* Removed min-height: 100vh to reduce gaps */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    /* Slightly smaller */
    text-align: center;
    margin-bottom: 50px;
    /* Reduced from 80px */
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-title::before,
.section-title::after {
    content: '';
    width: 30px;
    /* Smaller lines */
    height: 1px;
    background: var(--color-accent);
}

/* Concept Section - Playful Layout */
.concept {
    /* Transparent to show bg */
}

.concept-lead {
    text-align: center;
    font-size: 1.5rem;
    /* Slightly smaller */
    font-family: var(--font-serif);
    margin-bottom: 50px;
    /* Reduced from 80px */
    line-height: 2.0;
    writing-mode: horizontal-tb;
    height: auto;
    margin: 0 auto 50px auto;
    width: auto;
    letter-spacing: 0.1em;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Reduced gap */
    margin-top: 30px;
    /* Reduced margin */
}

.feature-item {
    text-align: left;
    padding: 30px 20px;
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Staggered positioning - Reduced offset */
.feature-item:nth-child(2) {
    transform: translateY(20px);
    /* Reduced from 40px */
}

.feature-item:nth-child(3) {
    transform: translateY(40px);
    /* Reduced from 80px */
}

.feature-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

/* Info Section - Compacted */
.info {
    margin-top: 80px;
    /* Reduced from 100px */
    background: var(--color-primary);
    color: var(--color-white);
    padding: 80px 20px;
    /* Reduced from 100px */
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    /* Shallower angle */
}

.info .section-title {
    color: var(--color-white);
}

.info .section-title::before,
.info .section-title::after {
    background: rgba(255, 255, 255, 0.2);
}

.company-info {
    max-width: 600px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row dt {
    width: 30%;
    font-weight: 400;
    color: var(--color-accent);
}

.info-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px 20px 40px;
    font-size: 0.8rem;
}

/* Utilities for JS Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .logo {
        font-size: 1.5rem;
        padding: 10px 8px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .concept-lead {
        writing-mode: horizontal-tb;
        height: auto;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        transform: none;
    }

    .info {
        clip-path: none;
        padding-top: 80px;
    }
}