@charset "UTF-8";

/* =========================================
   DESIGN SYSTEM: Emotional Noir
   ========================================= */
:root {
    --bg-color: #404048;
    --text-color: #e6e6e6;
    --dim-color: #aaa;
    --accent-color: #fff;
    --line-color: rgba(255, 255, 255, 0.15);
    
    --font-head-en: 'Oswald', sans-serif;
    --font-head-jp: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-ui: 'Inter', sans-serif;
    
    --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { font-size: 14px; scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 2.2;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: opacity 0.4s var(--easing), color 0.4s var(--easing); }
ul { list-style: none; }
img { width: 100%; height: auto; display: block; }

/* Texture */
.noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
.h1-hero {
    font-family: var(--font-head-jp);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.h2-section {
    font-family: var(--font-head-en);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #fff;
}

.h3-jp, .h3-title {
    font-family: var(--font-head-jp);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.6;
}

.label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dim-color);
    display: block;
    margin-bottom: 1.2rem;
    padding-left: 2px;
}

.text-p {
    font-size: 0.95rem;
    line-height: 2.4;
    color: #ccc;
    font-weight: 300;
    margin-bottom: 2rem;
}

.quote-text {
    font-family: var(--font-head-jp);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.8;
    color: #fff;
    font-feature-settings: "palt";
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 6vw; }
.section { padding: 160px 0; border-bottom: 1px solid var(--line-color); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 60px; }

/* Header & Nav */
.header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 40px 6vw;
    z-index: 1000; display: flex; justify-content: space-between; align-items: center;
    mix-blend-mode: difference; color: white;
    transition: padding 0.4s ease;
}
.logo { font-family: var(--font-head-en); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.1em; }

.hamburger {
    width: 50px; height: 14px; cursor: pointer;
    display: flex; flex-direction: column; justify-content: space-between;
    z-index: 1001;
}
.hamburger span { display: block; width: 100%; height: 1px; background: white; transition: 0.4s var(--easing); }
.nav-active .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-active .hamburger span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
    position: fixed; inset: 0; background: #404048; z-index: 900;
    transform: translateX(100%); transition: transform 0.8s var(--easing);
    display: flex; justify-content: center; align-items: center;
}
.nav-active .menu-overlay { transform: translateX(0); }
.menu-list { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.menu-link {
    font-family: var(--font-head-en); font-size: 2.2rem; font-weight: 300;
    color: #fff; transition: 0.4s;
    position: relative; line-height: 1;
}
.menu-link::after {
    content: ''; position: absolute; left: 0; bottom: 10px; width: 0; height: 1px;
    background: #fff; transition: 0.4s var(--easing);
}
.menu-link:hover { color: #fff; }
.menu-link:hover::after { width: 100%; }

/* Components */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 45px;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3);
    font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.15em;
    transition: 0.5s var(--easing); cursor: pointer; position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0; background: #fff;
    transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--easing);
    z-index: -1;
}
.btn:hover { color: #000; border-color: #fff; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-text {
    display: inline-flex; align-items: center;
    font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 0.2em;
    color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 5px;
    transition: 0.4s;
}
.btn-text:hover { border-color: #fff; padding-left: 10px; }

/* Index / Features */
.feature-card {
    border-top: 1px solid var(--line-color);
    padding-top: 40px;
    height: 100%;
    transition: 0.5s;
}
.feature-card:hover { border-color: #fff; }

/* Hero Specifics */
.hero-section {
    height: 100vh; width: 100%; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.3) contrast(1.1);
    transform: scale(1.1);
    animation: zoomOut 20s ease-out forwards;
}
@keyframes zoomOut { from { transform: scale(1.2); } to { transform: scale(1.0); } }

.hero-content {
    position: relative; z-index: 10; width: 100%; padding: 0 6vw;
}

.scroll-indicator {
    position: absolute; bottom: 50px; left: 6vw;
    display: flex; align-items: center; gap: 20px;
    z-index: 10;
}
.scroll-line { width: 60px; height: 1px; background: rgba(255,255,255,0.5); }
.scroll-text { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); }

.page-hero {
    position: relative; padding: 140px 0 60px;
    border-bottom: 1px solid var(--line-color);
}
.img-cinematic {
    width: 100%; height: 400px; object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
    margin-top: 60px;
    transition: 1.5s ease-out;
}
.is-inview .img-cinematic { filter: brightness(0.7) contrast(1.1); }

/* Works Card */
.work-card-link {
    display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line-color);
}
.work-card-img {
    width: 100%; height: 100%; object-fit: cover; 
    filter: brightness(0.7) grayscale(20%); transition: 0.8s ease;
}
.work-card-link:hover .work-card-img {
    filter: brightness(1) grayscale(0%); transform: scale(1.03);
}
.work-card-overlay {
    position: absolute; bottom: 0; left: 0; padding: 40px; width: 100%;
    background: linear-gradient(0deg, rgba(40,40,48,0.95) 0%, rgba(40,40,48,0.7) 60%, transparent 100%);
}

.case-card { margin-bottom: 100px; padding-bottom: 80px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.case-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.case-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 40px; border: 1px solid rgba(255,255,255,0.1); }
.case-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) contrast(1.1); transition: 0.8s ease; }
.case-card:hover .case-img { filter: brightness(0.9); transform: scale(1.02); }

.case-meta { display: flex; gap: 20px; margin-bottom: 20px; }
.case-tag { font-size: 0.7rem; color: #fff; background: rgba(255,255,255,0.1); padding: 8px 16px; letter-spacing: 0.1em; }

.case-title { font-family: var(--font-head-jp); font-size: 1.8rem; font-weight: 500; margin-bottom: 20px; color: #fff; }
.case-result { font-family: var(--font-head-en); font-size: 1.2rem; color: #fff; margin-bottom: 25px; border-left: 2px solid #fff; padding-left: 15px; }
.case-desc { font-size: 0.95rem; color: #bbb; line-height: 2.2; margin-bottom: 30px; }

.voice-box { background: rgba(255,255,255,0.03); padding: 30px; border-left: 1px solid var(--line-color); margin-top: 30px; }
.voice-text { font-style: italic; color: #ccc; margin-bottom: 15px; font-family: var(--font-head-jp); line-height: 2; }
.voice-author { font-size: 0.8rem; color: #888; text-align: right; }

.works-offset { margin-top: 120px; }

/* Service Plans */
.plan-card { 
    border: 1px solid var(--line-color); 
    padding: 50px 40px; 
    height: 100%; 
    display: flex; flex-direction: column;
    background: rgba(255,255,255,0.01);
    transition: 0.4s;
}
.plan-card:hover { border-color: #fff; background: rgba(255,255,255,0.03); transform: translateY(-10px); }

.plan-header { border-bottom: 1px solid var(--line-color); padding-bottom: 30px; margin-bottom: 30px; }
.plan-name { font-family: var(--font-head-jp); font-size: 1.6rem; font-weight: 500; margin-bottom: 15px; color: #fff; }
.plan-target { font-size: 0.8rem; color: #888; font-family: var(--font-ui); letter-spacing: 0.05em; }

.plan-price { font-family: var(--font-head-en); font-size: 2.2rem; color: #fff; margin-bottom: 25px; display: block; }
.price-sub { font-size: 0.9rem; color: #888; font-weight: 300; }

.plan-body { flex-grow: 1; }
.plan-desc { font-size: 0.95rem; color: #ccc; margin-bottom: 35px; line-height: 2; }

.check-list li { 
    font-size: 0.9rem; color: #bbb; margin-bottom: 15px; padding-left: 25px; position: relative; 
}
.check-list li::before { 
    content: '✓'; position: absolute; left: 0; color: #fff; font-size: 0.8rem;
}

.recommended-badge {
    background: #fff; color: #000; font-family: var(--font-ui); font-size: 0.7rem; 
    padding: 5px 12px; display: inline-block; margin-bottom: 15px; font-weight: 600; letter-spacing: 0.1em;
}

/* Workflow */
.flow-step { position: relative; padding-left: 50px; padding-bottom: 50px; border-left: 1px solid rgba(255,255,255,0.2); margin-left: 10px; }
.flow-step:last-child { border-left: 1px solid transparent; }
.flow-step::before {
    content: ''; position: absolute; left: -6px; top: 0; width: 13px; height: 13px;
    background: #404048; border: 2px solid #fff; border-radius: 50%;
}
.flow-num { position: absolute; left: -40px; top: -5px; font-family: var(--font-head-en); color: #666; font-size: 0.8rem; }

/* Mission / Values */
.value-card { border-top: 1px solid var(--line-color); padding: 50px 0 30px; transition: 0.4s; }
.value-card:hover { border-color: #fff; padding-left: 20px; }
.value-num { font-family: var(--font-head-en); font-size: 0.9rem; color: #666; display: block; margin-bottom: 15px; letter-spacing: 0.1em; }
.value-icon { 
    width: 12px; height: 12px; background: #fff; border-radius: 50%; 
    margin-bottom: 25px; position: relative;
}
.value-icon::after {
    content: ''; position: absolute; inset: -6px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
}
.vision-img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; filter: brightness(0.7); border-radius: 2px; }

/* Company */
.ceo-img-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; }
.ceo-img { width: 100%; height: 100%; object-fit: cover; filter: none; }

dl { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-color); }
@media (min-width: 768px) { dl { grid-template-columns: 200px 1fr; } }
dt, dd { padding: 30px 0; border-bottom: 1px solid var(--line-color); margin: 0; }
dt { font-family: var(--font-head-en); font-weight: 400; color: #888; letter-spacing: 0.1em; font-size: 0.9rem; }
dd { font-size: 0.95rem; color: #ccc; }

.member-card {
    border: 1px solid var(--line-color);
    padding: 40px;
    background: rgba(255,255,255,0.01);
    transition: 0.4s;
}
.member-card:hover { border-color: #fff; background: rgba(255,255,255,0.03); }
.member-role { font-family: var(--font-ui); font-size: 0.7rem; color: #888; letter-spacing: 0.15em; margin-bottom: 15px; display: block; }
.member-name { font-family: var(--font-head-jp); font-size: 1.4rem; font-weight: 500; margin-bottom: 20px; color: #fff; }
.member-spec { font-size: 0.9rem; color: #aaa; line-height: 2; }

/* Contact */
.contact-box-bg {
    position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.2);
}
.contact-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.3); z-index: 0;
}
.contact-content { position: relative; z-index: 10; width: 100%; }
.contact-box { 
    border: 1px solid var(--line-color); padding: 60px 40px; height: 100%; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    background: rgba(255,255,255,0.01);
    transition: 0.4s;
}
.contact-box:hover { border-color: #fff; background: rgba(255,255,255,0.03); }

.contact-title { font-family: var(--font-head-en); font-size: 1.8rem; color: #fff; margin-bottom: 20px; font-weight: 400; }
.contact-desc { font-size: 0.95rem; color: #aaa; margin-bottom: 40px; line-height: 2; max-width: 400px; }

.line-btn {
    background: #06c755; color: #fff; border: none; font-weight: 600; padding: 20px 60px; border-radius: 4px; letter-spacing: 0.05em; font-size: 0.9rem;
}
.line-btn:hover { background: #05b34c; color: #fff; opacity: 0.9; }
.line-btn::before { display: none; }

.faq-item { border-bottom: 1px solid var(--line-color); padding: 40px 0; }
.faq-q { font-family: var(--font-head-jp); font-size: 1.2rem; color: #fff; margin-bottom: 20px; font-weight: 500; }
.faq-a { font-size: 0.95rem; color: #aaa; line-height: 2.2; }

/* Next Story Link */
.next-story {
    display: block; padding: 100px 0; border-top: 1px solid var(--line-color);
    position: relative; overflow: hidden;
}
.next-story:hover .next-bg { transform: scale(1.05); filter: brightness(0.4); }
.next-bg {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.2); transition: 0.8s var(--easing);
}
.next-content {
    position: relative; z-index: 10; text-align: center;
}
.next-label { font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: 20px; display: block; color: #aaa; }
.next-title { font-family: var(--font-head-en); font-size: 4rem; color: #fff; }

/* Footer */
.footer { padding: 100px 0 40px; border-top: 1px solid var(--line-color); background: #404048; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 2fr 1.2fr; gap: 60px; margin-bottom: 80px; }
.footer-logo { font-family: var(--font-head-en); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.05em; display: block; margin-bottom: 25px; color: #fff; }
.footer-address { font-style: normal; font-size: 0.75rem; color: #fff; line-height: 2; font-family: var(--font-body); letter-spacing: 0.05em; }
.footer-nav { display: flex; gap: 80px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.15em; color: #fff; transition: 0.3s; position: relative; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-btn { 
    display: block; width: 100%; text-align: center; padding: 14px 0; 
    border: 1px solid #333; color: #ccc; font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.1em; 
    margin-bottom: 20px; transition: 0.4s; 
}
.footer-btn:hover { background: #fff; color: #000; border-color: #fff; }
.footer-mail { font-family: var(--font-head-en); font-size: 0.85rem; color: #fff; text-decoration: underline; transition: 0.3s; }
.footer-mail:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #111; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom small { font-size: 0.65rem; color: #ccc; font-family: var(--font-ui); letter-spacing: 0.05em; }

/* Loader - Ver. Sophisticated (Architectural) */
.loader {
    position: fixed; inset: 0; background: #1a1a1e; /* Deep Charcoal for refinement */
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1.0s cubic-bezier(0.7, 0, 0.2, 1), visibility 1.0s;
}
.loader.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { 
    position: relative; text-align: center;
    width: 260px; /* 固定幅で安定感 */
    padding: 30px 0;
}

.loader-logo {
    display: block;
    font-family: var(--font-head-en); font-size: 1.5rem; color: #fff; 
    font-weight: 300; letter-spacing: 0.25em;
    margin-bottom: 25px;
    opacity: 0; transform: translateY(10px);
    animation: logoFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 中央のライン */
.loader-content::after {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
    background: rgba(255,255,255,0.15);
    transform: scaleX(0); transform-origin: center;
    animation: lineScale 1.2s cubic-bezier(0.8, 0, 0.2, 1) 0.4s forwards;
}

.loader-text {
    font-family: var(--font-ui); font-size: 0.65rem; color: #888; 
    letter-spacing: 0.3em; margin-top: 25px; text-transform: uppercase;
    opacity: 0; transform: translateY(-10px);
    animation: textFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.loader::before { display: none; } /* ノイズ除去でクリーンに */

@keyframes logoFade { to { opacity: 1; transform: translateY(0); } }
@keyframes lineScale { to { transform: scaleX(1); } }
@keyframes textFade { to { opacity: 1; transform: translateY(0); } }

/* Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: 1.2s var(--easing); }
.fade-up.is-inview { opacity: 1; transform: translateY(0); }

/* Responsive */
.col-span-12 { grid-column: span 12; }
.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }

@media (max-width: 768px) {
    .grid { display: block; }
    .col-span-12, .col-span-6, .col-span-4, .col-span-8, .col-span-7, .col-span-5 { margin-bottom: 50px; }
    .section { padding: 80px 0; }
    .h1-hero { font-size: 2.4rem; }
    .header { padding: 20px 5vw; }
    .container { padding: 0 5vw; }
    .page-hero { padding: 140px 0 60px; }
    .img-cinematic { height: 300px; }
    .menu-link { font-size: 2.2rem; }
    
    .footer { padding: 60px 0 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
    .footer-nav { flex-direction: row; gap: 50px; justify-content: flex-start; }
    
    .work-card-link { aspect-ratio: 4/3; }
    .work-card-overlay { padding: 20px; }
    
    .next-title { font-size: 2.5rem; }
    .works-offset { margin-top: 0; }
}

@media (min-width: 769px) {
    .works-offset { margin-top: 120px; }
}


/* CTA内での固有調整 */
.contact-box-bg {
    position: relative;
    padding: 100px 40px;
    background: #2a2a2e; /* 画像がない場合のバックアップ */
    overflow: hidden;
    border: 1px solid var(--line-color);
    text-align: center;
}

.contact-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) grayscale(30%);
    z-index: 0;
    transition: transform 1.2s var(--easing);
}

.contact-box-bg:hover .contact-bg-img {
    transform: scale(1.05);
}

.contact-box {
    position: relative;
    z-index: 1;
}

/* スマホ用改行制御 */
.sp-only { display: none; }

@media (max-width: 768px) {
    .sp-only { display: block; }
    .contact-box-bg { padding: 80px 20px; }
}

