/* --- Variables --- */
:root {
    --color-main: #0F172A;   /* Deep Navy */
    --color-accent: #06B6D4; /* Cyan */
    --color-text: #334155;   /* Dark Gray */
    --color-bg-gray: #F1F5F9;
    --color-white: #ffffff;
    --font-base: "Noto Sans JP", sans-serif;
    --font-en: "Outfit", sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-white);
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-en); line-height: 1.3; margin: 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--color-main); letter-spacing: 0.05em; }
.section-subtitle { font-size: 0.9rem; color: var(--color-accent); font-weight: bold; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.text-white .section-title { color: var(--color-white); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); border: 2px solid var(--color-accent); }
.btn-primary:hover { background: #0891b2; border-color: #0891b2; }
.btn-outline { background: transparent; color: var(--color-white); border: 2px solid var(--color-white); margin-left: 10px; }
.btn-outline:hover { background: var(--color-white); color: var(--color-main); }
.btn-wide { width: 100%; text-align: center; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    height: 70px;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-family: var(--font-en); font-size: 1.8rem; font-weight: 700; color: var(--color-main); }
.accent-dot { color: var(--color-accent); }

.nav-menu ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-menu a { font-size: 0.95rem; font-weight: 500; color: var(--color-main); }
.nav-menu a:hover { color: var(--color-accent); }
.btn-nav { background: var(--color-main); color: white !important; padding: 8px 20px; border-radius: 4px; }
.btn-nav:hover { background: var(--color-accent) !important; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* --- Hero Section (更新箇所) --- */
/* style.css */

/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: var(--color-main); /* WebGL読み込み前の背景色 */
    color: var(--color-white);
    
    /* ▼▼▼ 背景画像の記述を削除またはコメントアウト ▼▼▼ */
    /* background-image: ... url('images/hero-bg.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* ▲▲▲ 削除ここまで ▲▲▲ */

    /* ▼▼▼ 代わりにオーバーレイ（半透明フィルター）のみを設定 ▼▼▼ */
    /* これにより、3Dの上にネイビーのフィルターがかかり文字が読みやすくなります */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8));

    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

/* ★新規追加：3Dコンテナのスタイル */
#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 一番後ろに配置 */
    /* canvas要素がはみ出さないように */
    overflow: hidden;
}

/* 既存の hero-content の z-index を確認（2以上になっていればOK） */
.hero-content { position: relative; z-index: 2; max-width: 800px; }

    /* 背景画像とカラーフィルターの設定 */
    /* linear-gradientでネイビーの半透明レイヤー(rgba)を重ねています */
   /* background-image: 
       /* linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
        /*url('images/bg.jpg'); /* ←ここに画像ファイルパスを指定 */
    
   /* background-size: cover;    /* 領域いっぱいに広げる */
    /*background-position: center; /* 中央を表示 */
   /* background-repeat: no-repeat;

    /*min-height: 80vh; /* 画面の高さの80% */
    /*display: flex;
   /* align-items: center;
   /* padding-top: 70px; /* ヘッダー分下げる */
   /* overflow: hidden;
/*}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tagline { color: var(--color-accent); font-family: var(--font-en); font-weight: bold; letter-spacing: 0.1em; margin-bottom: 20px; }
.hero-title { font-size: 3rem; margin-bottom: 30px; font-feature-settings: "palt"; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; }
.sp-only { display: none; }

/* 以前の装飾は画像を入れたので非表示 */
.hero-bg-decoration { display: none; }


/* --- Sections --- */
.section { padding: 100px 0; }
.bg-gray { background-color: var(--color-bg-gray); }
.bg-dark { background-color: var(--color-main); color: var(--color-white); }

/* --- About --- */
.about-content { max-width: 750px; margin: 0 auto; text-align: center; }
.lead-text { font-size: 1.25rem; font-weight: bold; margin-bottom: 30px; color: var(--color-main); }

/* --- Service Grid --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--color-main); }
.service-card p { font-size: 0.95rem; color: #666; }

/* --- Profile --- */
.profile-wrapper { display: flex; align-items: flex-start; gap: 60px; }
.profile-text { flex: 1; }
.profile-image-area { width: 150px; flex-shrink: 0; }
.img-box { width: 100%; height: 150px; background-color: #ddd; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #888; overflow: hidden; }
/* img-boxの中の画像をフィットさせる */
.img-box img { width: 100%; height: 100%; object-fit: cover; }

.align-left { text-align: left; margin-bottom: 30px; }
.role { font-size: 0.9rem; font-weight: normal; margin-left: 10px; background: #eee; padding: 2px 8px; border-radius: 4px; }
.company-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.company-table th, .company-table td { border-bottom: 1px solid #e2e8f0; padding: 15px 0; text-align: left; }
.company-table th { width: 30%; color: var(--color-main); }

/* --- Contact --- */
.contact-wrapper { max-width: 600px; margin: 0 auto; }
.contact-message { text-align: center; margin-bottom: 40px; opacity: 0.9; }
.contact-form { background: var(--color-white); padding: 40px; border-radius: 8px; color: var(--color-text); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); }

/* --- Footer --- */
.footer { background: #020617; color: #64748b; text-align: center; padding: 20px; font-size: 0.8rem; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    .sp-only { display: inline; }
    
    /* Mobile Menu */
    .menu-toggle { display: block; width: 30px; height: 25px; position: relative; z-index: 1001; }
    .menu-toggle span { display: block; width: 100%; height: 2px; background: var(--color-main); position: absolute; left: 0; transition: 0.3s; }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 11px; }
    .menu-toggle span:nth-child(3) { bottom: 0; }
    
    /* Open State */
    .menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); top: 11px; }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); bottom: 11px; }

    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--color-white); padding-top: 80px; transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 40px; }
    
.profile-wrapper { 
        flex-direction: column-reverse; 
        gap: 30px; 
    }
    
    /* ▼▼▼ ここを修正 ▼▼▼ */
    .profile-image-area { 
        width: 120px;   /* 幅を120pxに固定 */
        margin: 0 auto; /* 左右の余白を自動にして中央寄せ */
    }
    
    /* スマホの時は写真の高さも調整（正方形に近くする） */
    .img-box {
        height: 120px; /* 幅に合わせて高さも120pxにする */
    }
    /* ▲▲▲ 修正ここまで ▲▲▲ */

    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
}