@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;800&family=Noto+Sans+JP:wght@400;500;700;900&family=Syncopate:wght@700&display=swap');

:root {
    /* Colors */
    --c-white: #ffffff;
    --c-bg: #ffffff;
    --c-black: #111111;
    --c-gray-light: #f9f9f9;
    --c-gray-text: #666666;
    --c-accent: #C30018; 
    
    /* Fonts */
    --f-jp: 'Noto Sans JP', sans-serif;
    --f-en: 'Inter', sans-serif;
    --f-num: 'Syncopate', sans-serif;
    
    --header-h: 90px;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--c-bg);
    color: var(--c-black);
    font-family: var(--f-jp);
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { width: 100%; height: auto; display: block; object-fit: cover; }
li { list-style: none; }

/* Utility */
.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }
.section-padding { padding: clamp(80px, 10vw, 160px) 0; }
.fade-up { opacity: 0; transform: translateY(30px); }
.txt-block { display: inline-block; white-space: nowrap; }
.no-data, .loading-msg { text-align: center; padding: 60px 0; color: #999; }

/* --- Opening Loader (黒背景) --- */
.global-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #111111; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}
.loader-logo {
    font-family: var(--f-num); font-weight: 700; font-size: 3rem;
    color: #ffffff; letter-spacing: 0.1em;
    opacity: 0; transform: translateY(20px); white-space: nowrap;
    position: relative; z-index: 2;
}
@media(max-width: 768px) { .loader-logo { font-size: 2rem; } }

.loader-wipe {
    position: absolute; top: 0; left: 0;
    width: 200%; height: 100%;
    background: #ffffff; z-index: 1; 
    left: -50%; 
    transform: translateX(-100%) skewX(-20deg); 
    border-right: 6px solid var(--c-accent);
    box-shadow: 10px 0 30px var(--c-accent);
}

/* Button Styles */
.btn-main {
    display: inline-block; padding: 18px 60px;
    background: var(--c-black); color: #fff;
    font-weight: 700; border-radius: 50px;
    position: relative; overflow: hidden; z-index: 1;
    transition: color 0.3s;
}
.btn-main::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--c-accent); z-index: -1; transition: width 0.4s var(--easing);
}
.btn-main:hover::before { width: 100%; }
.btn-main.reverse { background: #fff; color: var(--c-black); border: 1px solid var(--c-black); }
.btn-main.reverse:hover { color: #fff; border-color: var(--c-accent); }

.btn-arrow {
    font-family: var(--f-en); font-weight: 700; font-size: 0.9rem;
    border-bottom: 2px solid var(--c-accent); padding-bottom: 5px;
    display: inline-flex; align-items: center; gap: 10px;
}
.btn-arrow:hover { padding-left: 10px; color: var(--c-accent); }

/* --- Header --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; z-index: 1000;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
}
.logo { font-family: var(--f-num); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.05em; color: var(--c-black); }
.nav-desk { display: none; gap: 30px; }
.nav-desk a { font-size: 0.9rem; font-weight: 700; position: relative; color: var(--c-black); }
.nav-desk a::after { content: ''; display: block; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--c-accent); transition: 0.3s; }
.nav-desk a:hover::after { width: 100%; }

/* Dropdown Menu */
.nav-item-dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }
.nav-item-dropdown > a { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 10px); width: 260px;
    background: #ffffff; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 3px solid var(--c-accent);
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    padding: 15px 0; pointer-events: none;
    display: flex; flex-direction: column; gap: 0;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.dropdown-menu a { display: block; padding: 15px 25px; font-size: 0.9rem; font-weight: 700; color: var(--c-black); transition: 0.3s; text-align: left; }
.dropdown-menu a:hover { background: var(--c-gray-light); color: var(--c-accent); padding-left: 30px; }
.dropdown-menu a::after { display: none; }

/* Mobile Menu Trigger & Body */
.menu-trigger { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; font-size: 0.8rem; color: var(--c-black); }
.menu-lines { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.menu-lines span { display: block; height: 2px; background: var(--c-black); transition: 0.3s; }
.menu-lines span:nth-child(1) { width: 30px; }
.menu-lines span:nth-child(2) { width: 20px; }
.menu-trigger:hover .menu-lines span { background: var(--c-accent); width: 30px; }
@media(min-width: 1024px) { .nav-desk { display: flex; } .menu-trigger { display: none; } }

.mobile-menu {
    position: fixed; inset: 0; background: #fff; z-index: 1001;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 30px; clip-path: circle(0% at 90% 5%); transition: clip-path 0.6s var(--easing);
}
.mobile-menu.active { clip-path: circle(150% at 90% 5%); }
.mobile-menu a { font-size: 1.5rem; font-weight: 700; color: var(--c-black); }
.mobile-menu a:hover { color: var(--c-accent); }
.close-menu { position: absolute; top: 30px; right: 40px; cursor: pointer; font-weight: 700; }

/* --- HERO --- */
.hero-home {
    min-height: 100vh; padding-top: var(--header-h);
    display: flex; align-items: center;
    background: var(--c-white); position: relative; overflow: hidden; 
}
.hero-home::before {
    content: 'LINCOLN';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--f-num); font-size: 20vw; font-weight: 700;
    color: #f8f8f8; z-index: 0; pointer-events: none; white-space: nowrap;
}
.hero-container {
    width: 90%; max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr;
    gap: 60px; align-items: center; position: relative; z-index: 2;
}
@media(min-width: 900px) { .hero-container { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }

.hero-text-area { position: relative; }
.hero-jp {
    font-size: clamp(2.4rem, 7vw, 7.5rem); line-height: 1.15; font-weight: 900;
    margin-bottom: 40px; letter-spacing: -0.02em; color: var(--c-black);
    word-break: keep-all; overflow-wrap: break-word;
}
.hero-desc { margin-bottom: 50px; color: var(--c-gray-text); line-height: 2; font-weight: 500; font-size: 1rem; max-width: 480px; }
.hero-visual-area { position: relative; width: 100%; height: 50vh; z-index: 1; }
@media(min-width: 900px) { .hero-visual-area { height: 75vh; } }

@media(max-width: 899px) {
    .hero-home { align-items: flex-start; padding-top: 0; }
    .hero-container { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100vh; padding: 0 5%; }
    .hero-visual-area { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.4; pointer-events: none; }
    .hero-text-area { position: relative; z-index: 2; padding-top: 80px; }
    .hero-jp { font-size: clamp(2.4rem, 10vw, 4rem); margin-bottom: 30px; }
}

/* --- NEWS --- */
.news-section { background: var(--c-gray-light); padding: 80px 0; }
.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; flex-direction: column; padding: 25px 0; border-bottom: 1px solid #ddd; position: relative; }
@media(min-width: 768px) { .news-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.news-row:first-child { border-top: 1px solid #ddd; }
.news-row:hover .news-title { color: var(--c-accent); padding-left: 10px; }
.news-meta { display: flex; align-items: center; gap: 20px; min-width: 200px; margin-bottom: 10px; }
@media(min-width: 768px) { .news-meta { margin-bottom: 0; } }
.news-cat { font-size: 0.7rem; font-weight: 700; background: #fff; padding: 4px 8px; border: 1px solid #000; }
.news-date { font-family: var(--f-num); font-size: 0.9rem; color: var(--c-gray-text); }
.news-title { font-weight: 700; font-size: 1rem; flex: 1; transition: 0.3s; }
.news-arrow { opacity: 0; transform: translateX(-10px); transition: 0.3s; color: var(--c-accent); }
.news-row:hover .news-arrow { opacity: 1; transform: translateX(0); }

/* --- VISION --- */
.vision-content { display: flex; flex-direction: column; gap: 50px; margin-top: 50px; }
@media(min-width: 768px) { .vision-content { flex-direction: row; align-items: center; } }
.vision-text { flex: 1; }
.vision-lead { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.6; margin-bottom: 30px; }
.vision-desc { color: var(--c-gray-text); }
.vision-img { flex: 1; height: 300px; border-radius: 4px; overflow: hidden; }
.vision-img img { height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.vision-img:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* --- SERVICE --- */
.service-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid #ddd; }
.service-row {
    padding: 60px 0; border-bottom: 1px solid #ddd;
    display: flex; flex-direction: column; gap: 30px; transition: background 0.3s;
}
@media(min-width: 900px) { .service-row { flex-direction: row; gap: 50px; align-items: flex-start; } }
.service-row:hover { background: #fafafa; }
.srv-num { font-family: var(--f-num); font-size: 3rem; color: #ccc; font-weight: 700; line-height: 1; min-width: 80px; }
.service-row:hover .srv-num { color: var(--c-accent); }
.srv-content { flex: 1; }
.srv-content h3 { font-size: 1.8rem; margin-bottom: 15px; font-weight: 700; }
.srv-desc { color: var(--c-gray-text); margin-bottom: 20px; line-height: 1.8; }
.srv-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.srv-tag { font-size: 0.75rem; border: 1px solid #ddd; padding: 4px 12px; background: #fff; color: var(--c-gray-text); }
.srv-img { width: 100%; height: 200px; overflow: hidden; border-radius: 4px; }
@media(min-width: 900px) { .srv-img { width: 300px; height: 200px; } }
.srv-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.service-row:hover .srv-img img { filter: grayscale(0%); transform: scale(1.05); }

/* --- WORKS List --- */
.works-filter { display: flex; gap: 20px; margin-bottom: 60px; border-bottom: 1px solid #eee; padding-bottom: 20px; overflow-x: auto; white-space: nowrap; }
.wf-btn { background: none; border: none; font-size: 0.95rem; font-weight: 700; cursor: pointer; color: var(--c-gray-text); transition: 0.3s; padding: 5px 10px; }
.wf-btn.active, .wf-btn:hover { color: var(--c-accent); border-bottom: 2px solid var(--c-accent); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 60px 40px; }
.work-card { display: block; }
.work-img-box { width: 100%; aspect-ratio: 9/16; overflow: hidden; margin-bottom: 15px; position: relative; border-radius: 4px; background: #f0f0f0; }
.work-card.other .work-img-box { aspect-ratio: 16/9; } /* otherは横長 */
.work-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--easing); }
.work-card:hover .work-img-box img { transform: scale(1.05); }
.work-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); color: #fff; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.wo-cat { font-size: 0.75rem; font-weight: 700; background: var(--c-accent); color: #fff; padding: 2px 8px; border-radius: 2px; align-self: flex-start; }
.wo-result { font-size: 1rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); line-height: 1.4; }
.work-info { padding: 0 5px; }
.work-title { font-weight: 700; font-size: 1.1rem; line-height: 1.4; margin-bottom: 5px; }
.work-client { font-size: 0.8rem; color: var(--c-gray-text); }

/* --- Common & Page Header --- */
.page-header { padding-top: 180px; padding-bottom: 80px; border-bottom: 1px solid #ddd; background: #fff; }
.ph-container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }
.ph-en { font-family: var(--f-num); font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: 0.05em; color: var(--c-black); display: block; margin-bottom: 10px; }
.ph-jp { font-size: 1rem; font-weight: 700; color: var(--c-accent); letter-spacing: 0.1em; display: block; }
.section-header { margin-bottom: 60px; border-left: 4px solid var(--c-accent); padding-left: 20px; }
.sh-sub { font-family: var(--f-num); color: var(--c-accent); display: block; margin-bottom: 5px; letter-spacing: 0.1em; }
.sh-title { font-size: 2rem; font-weight: 700; }

/* About Page Specific */
.value-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid #000; }
@media(min-width: 768px) { .value-grid { grid-template-columns: 1fr 1fr 1fr; } }
.value-box { padding: 60px 40px 60px 0; border-bottom: 1px solid #000; }
@media(min-width: 768px) { .value-box { border-right: 1px solid #000; padding: 60px 40px; } .value-box:last-child { border-right: none; } }
.co-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.co-table th, .co-table td { text-align: left; padding: 25px 0; border-bottom: 1px solid #ddd; }
.co-table th { width: 150px; font-weight: 700; color: var(--c-black); }
.co-table td { color: var(--c-gray-text); }

/* Text Body (Privacy, News Detail) */
.post-content, .text-page-body { max-width: 800px; margin: 0 auto; line-height: 2; padding-top: 60px; }
.post-content h2, .text-page-body h2 { font-size: 1.5rem; margin: 40px 0 20px; font-weight: 700; border-left: 4px solid var(--c-accent); padding-left: 15px; }
.post-content p, .text-page-body p { margin-bottom: 24px; color: var(--c-gray-text); text-align: justify; }
.post-content img { width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }

/* Footer */
footer { background: var(--c-gray-light); padding: 100px 0 40px; margin-top: 100px; }
.f-logo { font-family: var(--f-num); font-size: 2.5rem; font-weight: 700; display: block; margin-bottom: 40px; }
.f-links { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 60px; }
.f-links a { font-weight: 700; font-size: 1rem; }
.f-links a:hover { color: var(--c-accent); }
.f-bottom { border-top: 1px solid #ddd; padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--c-gray-text); }

/* Mobile Adjustments */
@media(max-width: 768px) {
    header { padding: 0 20px; }
    .section-padding { padding: 80px 0; }
    .sh-title { font-size: 1.8rem; }
    .f-links { flex-direction: column; gap: 15px; }
    .f-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* ===========================================================
   WORKS詳細ページ (突起なし・完全版)
   =========================================================== */

/* --- 共通：動画エリア (スマホ表示用) --- */
.work-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%; /* 9:16 縦長動画 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
.work-video-wrap iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* --- PC表示 (1024px以上) --- */
@media (min-width: 1024px) {
    
    /* 1. 全体を左右に分けるグリッド */
    .detail-pc-layout {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 80px;
        padding: 40px 0;
    }

    /* 2. 左側：スマホモックアップ (固定サイズ) */
    .mockup-wrapper {
        flex: 0 0 380px;
        width: 380px;
        position: sticky;
        top: 120px;
    }

    /* スマホの黒枠 (突起なしのフルスクリーン風) */
    .iphone-frame {
        width: 100%;
        height: 780px;
        background: #000; /* 背景黒 */
        border-radius: 30px; /* 角丸を少し緩やかに */
        border: 10px solid #1a1a1a; /* 枠線 */
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        position: relative;
        overflow: hidden;
        z-index: 10;
    }

    /* ★修正点：突起（ノッチ）を削除しました */
    .iphone-frame::before {
        display: none; 
    }

    /* モックアップの中の動画 */
    .iphone-frame .work-video-wrap {
        margin: 0;
        border-radius: 0;
        padding-bottom: 0;
        height: 100%;
    }

    /* 3. 右側：テキスト情報エリア */
    .info-wrapper {
        flex: 1;
        max-width: 600px;
        padding-top: 20px;
    }

    /* タイトル等のスタイル */
    .detail-title { font-size: 2.5rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
    .detail-client { font-weight: 700; color: #666; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 20px 0; margin: 30px 0; }
    .detail-result { color: var(--c-accent); font-size: 1.2rem; margin-top: 5px; }
    .detail-body { line-height: 2; font-size: 1rem; color: #333; }
    
    .detail-tag {
        display: inline-block; background: #eee; padding: 5px 12px; 
        border-radius: 4px; font-size: 0.8rem; font-weight: 700; margin-right: 10px;
    }
}