/* =================================
   Take innovation - Theme: Wagashi / Minimalist (Inspired by WANOCA)
================================= */

/* 全体の基本設定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif JP', serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 2.0;
    scroll-behavior: smooth;
    letter-spacing: 0.05em;
}

/* UI系の文字 */
.navbar, .section-subtitle, .scene-number, .btn-text, .work-link {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* フィルムグレイン（ノイズ）効果 */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02; 
    pointer-events: none; 
    z-index: 9999;
}

/* ---------------------------------
   ナビゲーションバー
--------------------------------- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    font-family: 'Noto Serif JP', serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0; padding: 0;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000;
}

/* ---------------------------------
   メインビジュアル
--------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ヒーローエリアの画像設定 */
.hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいにトリミングして収める */
    z-index: 1;
}

/* 動画用に設定していたスタイルを削除（または無効化） */
.bg-video {
    display: none; 
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.catchphrase {
    font-size: 2.2rem;
    letter-spacing: 0.3em;
    color: #111;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
}

/* ---------------------------------
   セクション共通
--------------------------------- */
.section {
    padding: 120px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 70px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.section-subtitle {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #999;
    margin-top: 10px;
}

.bg-light {
    background-color: #fafafa;
    width: 100%;
    max-width: none;
    padding-left: 0; padding-right: 0;
}

.bg-light > div {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------
   CONCEPT（理念）
--------------------------------- */
.concept-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.concept-text p {
    font-size: 1.1rem;
    color: #444;
    margin: 0;
}

/* ---------------------------------
   SCENES（所作・特徴）
--------------------------------- */
.scenes-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.scene-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.scene-number {
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
}

.scene-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.scene-card p {
    font-size: 0.95rem;
    color: #666;
    text-align: left;
}

/* ---------------------------------
   WORKS（プロダクト・作品）
--------------------------------- */
.works-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.work-card {
    display: flex;
    gap: 50px;
    align-items: center;
}

.work-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* ここが諸悪の根源でした。display: flex系を完全削除しました */
.work-image {
    flex: 0 0 50%; 
    background-color: #f0f0f0;
    aspect-ratio: 16 / 9;
    overflow: hidden; 
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top; 
    transition: transform 0.8s ease; 
    display: block; /* 画像下の余白を消すための特効薬 */
}

/* マウスホバーで画像を上品に拡大 */
.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-info {
    flex: 1;
    min-width: 0;
}

.work-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.work-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

.work-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 5px;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.work-link:hover {
    opacity: 0.5;
}

/* ---------------------------------
   PROFILE & CONTACT（拠点・案内）
--------------------------------- */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #eaeaea;
    padding: 60px 40px;
    background-color: #fff;
}

.profile-info h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.profile-name, .profile-address {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}

.contact-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-text {
    font-size: 0.85rem;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.btn-text:hover {
    opacity: 0.5;
}

/* ---------------------------------
   フッター
--------------------------------- */
.footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    color: #999;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------------------------------
   アニメーション
--------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------
   スマホ対応
--------------------------------- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .catchphrase { font-size: 1.3rem; }
    
    .section { padding: 80px 20px; }
    
    .work-card, .work-card:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    
    .work-image { flex: 0 0 100%; width: 100%; }
}
/* =========================================
   全体の横揺れ（水平スクロール）防止
   ========================================= */
html, body {
    overflow-x: hidden; /* 画面外にはみ出た部分を隠してスクロールさせない */
    width: 100%;
}

/* =========================================
   スマホ（画面幅768px以下）用のデザイン調整
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* ① メインコピー（キャッチフレーズ）の中央揃えとサイズ調整 */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;     
        width: 100% !important;
        padding: 0 20px !important;         
        box-sizing: border-box !important;
    }

    /* 【ピンポイント調整】自分の成長を誰かのために（キャッチフレーズ） */
    .catchphrase {
        margin-left: 0 !important;      
        margin-right: 0 !important;     
        width: 100% !important;         
        display: block !important;       
        text-align: center !important;  
        font-size: 1.1rem !important;   
        position: static !important;    
    }

    /* ② 「Take innovationについて」の文字サイズ調整と改行防止 */
    h2 {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    /* ③ 説明書きのテキスト調整 & ④ 理念・所作など以下の右寄りリセット */
    section, 
    .container, 
    .content-wrapper,
    .philosophy, 
    .behavior,   
    p {
        margin-left: 0 !important;      
        margin-right: 0 !important;
        padding-left: 15px !important;  
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        
        /* ↓★ここで「自分ができることを〜」等のテキストサイズを一括で少し小さくします */
        font-size: 0.85rem !important;  
        line-height: 1.6 !important;
    }

    /* もしPC版で横並び（flex）にしていて右に押し出されている場合の解除 */
    .flex-box, 
    .row, 
    .wrap {
        display: block !important;
        width: 100% !important;
    }
}