/* --- 全体設定 --- */
html {
    /* クリック時のスクロールを滑らかにする */
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- ヘッダーとロゴ --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    color: #333;
    text-decoration: none; /* 下線を消す */
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.6;
}

/* ナビゲーション */
nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #000;
}

/* --- 各セクション --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.02); /* 端が見えないように微小拡大 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    color: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300; 
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.bg-light { background-color: #fafafa; }

/* グリッドレイアウト */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
}

.card p {
    font-size: 0.95rem; 
    color: #555;
    font-weight: 300;
    line-height: 1.7;
}

/* フッター */
footer {
    padding: 50px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 1.5s ease-out both;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); /* 少し深い位置から浮かび上がらせる */
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0);
    }
}