@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Montserrat", sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基本設定 */
body {
    font-family: var(--font-jp);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    letter-spacing: 0.05em;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { width: 100%; height: auto; vertical-align: bottom; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* アニメーション */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダー (デザイン復元：初期は透明) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    color: var(--white); /* 初期は白文字 */
    background: transparent; /* 透明 */
}

/* スクロール時のヘッダー (白背景・黒文字) */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    color: var(--primary-color); /* 黒文字に変更 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ画像のスタイル */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* ナビゲーション */
header nav ul { display: flex; gap: 40px; }
header nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}
header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}
header nav a:hover::after { width: 100%; }

/* ハンバーガーメニュー (Mobile) */
.hamburger {
    display: none;
    position: fixed;
    top: 25px; /* header paddingに合わせて調整 */
    right: 24px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 2000;
    transition: var(--transition);
}
.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--white); /* 初期は白 */
    transition: all 0.3s;
}
/* スクロール時はハンバーガーの色を黒に */
header.scrolled .hamburger span {
    background-color: var(--primary-color);
}
.hamburger span:nth-of-type(1) { top: 0; }
.hamburger span:nth-of-type(2) { top: 11px; }
.hamburger span:nth-of-type(3) { bottom: 0; }

/* ハンバーガーメニューOpen時 */
.nav-open .hamburger span { background-color: var(--primary-color); } /* 開いた時は常に見える色に */
.nav-open .hamburger span:nth-of-type(1) { transform: translateY(11px) rotate(45deg); }
.nav-open .hamburger span:nth-of-type(2) { opacity: 0; }
.nav-open .hamburger span:nth-of-type(3) { transform: translateY(-11px) rotate(-45deg); }

/* モバイルメニュー背景 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.nav-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav ul { text-align: center; }
.mobile-nav li { margin: 20px 0; }
.mobile-nav a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-en);
}

/* ヒーローエリア */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: zoomBg 20s infinite alternate;
}
@keyframes zoomBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(15, 23, 42, 0.9), rgba(59, 130, 246, 0.4));
    z-index: -1;
}
.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}
.btn-outline {
    display: inline-block;
    padding: 12px 36px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 24px;
    letter-spacing: 0.05em;
}
.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}
.center-btn { text-align: center; }
.btn-text {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}
.btn-text:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* セクション共通 */
.section { padding: 120px 0; }
.bg-light { background-color: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: inline-block;
}
.section-desc { color: #64748b; font-size: 1rem; }

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card-img-wrapper { overflow: hidden; height: 240px; }
.card-img-wrapper img { transition: transform 0.6s ease; object-fit: cover; height: 100%; width: 100%; }
.service-card:hover .card-img-wrapper img { transform: scale(1.1); }
.card-content { padding: 32px; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 16px; color: var(--primary-color); }
.arrow-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--accent-color);
    font-weight: 700;
}
.arrow-link::after { content: '→'; margin-left: 8px; transition: transform 0.3s; }
.arrow-link:hover::after { transform: translateX(5px); }

/* 下層ページ用ヘッダー背景 (デザイン復元：斜めライン) */
.page-header-bg {
    background: var(--primary-color);
    padding: 180px 0 100px;
    text-align: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* ニュースセクション */
.news-container { max-width: 900px; margin: 0 auto; border-top: 1px solid #e2e8f0; }
.news-item { border-bottom: 1px solid #e2e8f0; transition: background-color 0.3s ease; }
.news-item:hover { background-color: #f8fafc; }
.news-link {
    display: flex; align-items: center; padding: 24px 20px;
    color: var(--text-color); justify-content: space-between; gap: 20px;
}
.news-meta { display: flex; align-items: center; gap: 16px; min-width: 220px; }
.news-date { font-family: var(--font-en); font-weight: 500; color: #64748b; font-size: 0.95rem; }
.news-tag { font-size: 0.75rem; padding: 4px 12px; border-radius: 50px; font-weight: 700; color: #fff; letter-spacing: 0.05em; }
.tag-info { background-color: var(--primary-color); }
.tag-release { background-color: var(--accent-color); }
.tag-blog { background-color: #10b981; }
.news-title { margin: 0; font-size: 1rem; font-weight: 500; flex: 1; transition: color 0.3s; }
.news-item:hover .news-title { color: var(--accent-color); }
.news-arrow {
    color: var(--accent-color); font-weight: bold; opacity: 0;
    transform: translateX(-10px); transition: all 0.3s ease;
}
.news-item:hover .news-arrow { opacity: 1; transform: translateX(0); }

/* フッター */
footer { background: var(--primary-color); color: var(--white); padding: 80px 0 30px; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 40px; text-align: center; }
.footer-logo { display: inline-block; margin-bottom: 0; }
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-nav ul { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.8rem; color: #94a3b8; }

/* -------------------------------------------
   レスポンシブ対応 (Tablet & Mobile)
------------------------------------------- */
@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* ナビゲーション */
    header nav { display: none; } /* PCナビ非表示 */
    .hamburger { display: block; } /* ハンバーガー表示 */
    .mobile-nav { display: flex; } /* モバイルメニュー準備 */

    /* レイアウト調整 */
    .section { padding: 60px 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    /* 下層ページヘッダー調整（斜めライン維持） */
    .page-header-bg { padding: 140px 0 80px; }

    /* サービス詳細の横並びを縦並びに */
    .service-detail-row {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .service-detail-row img { width: 100%; height: auto; }

    /* ニュース */
    .news-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; }
    .news-meta { width: 100%; min-width: auto; }
    .news-arrow { display: none; }

    /* 会社概要テーブル */
    .company-table th, .company-table td { display: block; width: 100%; padding: 10px 15px; }
    .company-table th { background: #f1f5f9; }
    
    /* フォーム */
    .contact-form { padding: 30px 20px; }
}