/* =============================================================
   ATELIER Corporate Template — style.css
   Concept: 静かな高級感
============================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --bg:          #f7f7f5;
    --text:        #1b1b1b;
    --accent:      #8f7c63;
    --white:       #ffffff;
    --gray:        #6b6b6b;
    --gray-light:  #a8a8a8;
    --border:      #e4e2de;

    --font-serif:  'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
    --font-sans:   'Inter', 'Noto Sans JP', sans-serif;

    --max-w:       1280px;
    --pad-x:       80px;
    --section-y:   128px;

    --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section {
    padding: var(--section-y) 0;
}

.section-white { background: var(--white); }

.section-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-header {
    margin-bottom: 72px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--text);
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-weight: 400; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--text);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    margin-top: 40px;
}
.btn-outline:hover {
    background: var(--text);
    color: var(--white);
}

.btn-text {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 4px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-text:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(247, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--white);
    transition: color 0.4s var(--ease);
}
.logo-jp {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    transition: color 0.4s var(--ease);
}
.site-header.scrolled .logo-text { color: var(--text); }
.site-header.scrolled .logo-jp   { color: var(--gray-light); }

/* Nav */
.site-nav ul {
    display: flex;
    gap: 48px;
    align-items: center;
}
.site-nav a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s var(--ease);
    position: relative;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
.site-nav a:hover { color: var(--white); }
.site-nav a:hover::after { width: 100%; }
.site-header.scrolled .site-nav a { color: var(--gray); }
.site-header.scrolled .site-nav a:hover { color: var(--text); }

.nav-contact {
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease) !important;
}
.nav-contact:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.7) !important;
}
.nav-contact::after { display: none !important; }
.site-header.scrolled .nav-contact { border-color: var(--border); }
.site-header.scrolled .nav-contact:hover { background: var(--text) !important; color: var(--white) !important; border-color: var(--text) !important; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 110;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: background 0.4s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.scrolled .menu-toggle span { background: var(--text); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-media {
    position: absolute;
    inset: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.38) 0%,
            rgba(0,0,0,0.04) 45%,
            rgba(0,0,0,0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(72px, 10vh, 120px);
    width: 100%;
}
.hero-label {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6.5vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    font-style: italic;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5));
    animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-hint span {
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); transform-origin: top; }
    50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── Philosophy ──────────────────────────────────────────── */
.philosophy-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.philosophy-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.03em;
    margin-bottom: 40px;
    color: var(--text);
}

.philosophy-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 2;
    margin-bottom: 20px;
}

.philosophy-pillars {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 8px;
    border-left: 1px solid var(--border);
    padding-left: 48px;
}

.pillar { }
.pillar-num {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
}
.pillar h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--text);
}
.pillar p {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.9;
}

/* ── Services ────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-item {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}
.service-item:hover { background: #f0ede8; }

.service-num {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    display: block;
}
.service-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    color: var(--text);
}
.service-title-en {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gray-light);
    font-weight: 400;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}
.service-desc {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 2;
}

/* ── Works ───────────────────────────────────────────────── */
.works-grid-wrapper {
    padding: 0 var(--pad-x);
    max-width: calc(var(--max-w) + var(--pad-x) * 2);
    margin: 0 auto;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.works-loading {
    grid-column: span 2;
    text-align: center;
    color: var(--gray-light);
    font-size: 0.8rem;
    padding: 60px;
    letter-spacing: 0.2em;
}

.work-item {
    display: block;
    cursor: pointer;
}
.work-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e6e1;
}
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}
.work-item:hover .work-image img { transform: scale(1.04); }

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 27, 27, 0);
    display: flex;
    align-items: flex-end;
    padding: 32px;
    transition: background 0.4s var(--ease);
}
.work-item:hover .work-overlay { background: rgba(27, 27, 27, 0.45); }
.work-info-hover {
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease);
}
.work-item:hover .work-info-hover { transform: translateY(0); opacity: 1; }
.work-info-hover .work-category-hover {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.work-info-hover h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.05em;
}

.work-info {
    padding: 20px 0 8px;
}
.work-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.work-category-tag {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
}
.work-year {
    font-size: 0.62rem;
    color: var(--gray-light);
    letter-spacing: 0.15em;
}
.work-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text);
}

.works-footer {
    margin-top: 64px;
    text-align: center;
}

/* ── Company ─────────────────────────────────────────────── */
.company-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.company-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e8e6e1;
}
.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.company-image:hover img { transform: scale(1.04); }

.company-text { padding: 0 16px; }
.company-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 2.1;
    margin-bottom: 16px;
}

.company-stats {
    display: flex;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 0;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--text);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gray-light);
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-lead {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 2;
    margin-top: 16px;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.info-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
}
.info-value {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 28px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-group label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
}
.required { color: var(--accent); }
.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--text);
    outline: none;
    transition: border-color 0.3s var(--ease);
    width: 100%;
    resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-light); font-weight: 300; }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--accent); }

.form-status {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    min-height: 24px;
}
.form-status.success { color: #4a7c59; }
.form-status.error   { color: #b04a4a; }

.btn-submit {
    align-self: flex-start;
    padding: 16px 52px;
    background: var(--text);
    color: var(--white);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--text);
    padding: 80px 0 40px;
}
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 32px;
}
.logo-light .logo-text { color: var(--white); }
.logo-light .logo-jp   { color: rgba(255,255,255,0.35); }
.footer-tagline {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin-top: 16px;
    letter-spacing: 0.05em;
    font-style: italic;
}
.footer-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}
.footer-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    transition: color 0.3s var(--ease);
    text-transform: uppercase;
}
.footer-nav a:hover { color: rgba(255,255,255,0.85); }
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}
.footer-social a {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s var(--ease);
}
.footer-social a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom p {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.25);
}

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mobile-menu.is-open {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.15em;
    transition: color 0.3s var(--ease);
    transform: translateY(0);
}
.mobile-nav-link:hover { color: var(--white); }
.mobile-menu-logo {
    position: absolute;
    top: 28px;
    left: 32px;
}

/* ── Reveal Animations ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    :root {
        --pad-x:     48px;
        --section-y: 96px;
    }
    .philosophy-body  { gap: 56px; }
    .company-inner    { gap: 56px; }
    .contact-inner    { gap: 56px; }
    .services-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    :root {
        --pad-x:     28px;
        --section-y: 80px;
    }

    .site-nav     { display: none; }
    .menu-toggle  { display: flex; }

    .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }

    .philosophy-body {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .philosophy-pillars {
        padding-left: 28px;
        flex-direction: row;
        overflow-x: auto;
        gap: 32px;
        padding-bottom: 8px;
    }
    .pillar { min-width: 160px; }

    .services-grid { grid-template-columns: 1fr; }
    .service-item  { padding: 36px 28px; }

    .works-grid { grid-template-columns: 1fr; }
    .works-loading { grid-column: span 1; }

    .company-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .company-image { aspect-ratio: 16 / 9; }
    .company-text  { padding: 0; }
    .company-stats { gap: 28px; }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }
    .contact-info { flex-direction: row; flex-wrap: wrap; gap: 24px; }
    .contact-info-item { min-width: 140px; }

    .form-row { grid-template-columns: 1fr; gap: 20px; }
    .btn-submit { width: 100%; justify-content: center; }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
    .footer-nav ul { flex-wrap: wrap; gap: 24px; }
    .footer-social { text-align: left; flex-direction: row; gap: 24px; }
}

@media (max-width: 480px) {
    :root { --pad-x: 20px; }
    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 1.8rem; }
    .company-stats { flex-direction: column; gap: 24px; align-items: flex-start; }
}
