@charset "UTF-8";

/* 変数設定 */
:root {
    --primary: #0f172a;   /* 濃紺：信頼 */
    --accent: #0ea5e9;    /* 水色：技術・革新 */
    --text: #334155;      /* グレー：本文 */
    --light: #f8fafc;     /* 背景用薄いグレー */
    --white: #ffffff;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
    padding-bottom: 60px; /* スマホ用固定フッターの分空ける */
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* ヘッダー */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--primary); letter-spacing: 0.05em; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--primary); font-weight: 500; font-size: 0.9rem; }
.btn-header {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}
.btn-header:hover { opacity: 0.9; }

/* ヒーローエリア */
.hero {
    position: relative;
    background-color: var(--primary);
    /* 簡易的なパターン背景（画像がなくてもかっこよく見えます） */
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), 
                      url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.hero-tag { color: var(--accent); font-weight: bold; letter-spacing: 0.1em; font-size: 0.9rem; }
.hero h1 { font-size: 2.5rem; margin: 20px 0; line-height: 1.4; }
.hero p { opacity: 0.9; margin-bottom: 30px; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: bold; }
.btn-hero { background: var(--accent); color: var(--white); box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4); }
.btn-hero:hover { transform: translateY(-2px); background: #0284c7; }

/* セクション共通 */
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.section-title {
    text-align: center; font-size: 2rem; color: var(--primary); margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 3px; background: var(--accent);
    margin: 15px auto 0;
}

/* カードグリッド */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid transparent;
    transition: 0.3s;
}

.card:hover {
    border-top-color: var(--accent);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px; height: 50px;
    background: #e0f2fe;
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.icon-box svg { width: 24px; height: 24px; }

.card h3 { color: var(--primary); margin-bottom: 15px; }
.card p { font-size: 0.95rem; line-height: 1.7; }

/* テーブル（横スクロール対応） */
.table-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.specs-table {
    width: 100%;
    min-width: 600px; /* スマホでもこれ以上の幅を確保 */
    border-collapse: collapse;
    background: var(--white);
}

.specs-table th, .specs-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.specs-table th { background: var(--primary); color: var(--white); width: 30%; }

/* フッター */
footer { background: var(--primary); color: #94a3b8; text-align: center; padding: 40px 0 80px; font-size: 0.8rem; }

/* スマホ用固定CTA */
.mobile-cta {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: var(--white);
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.cta-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.cta-btn.phone { background: var(--white); color: var(--primary); }
.cta-btn.mail { background: var(--accent); color: var(--white); }
.cta-btn svg { width: 20px; height: 20px; }

/* レスポンシブ調整 */
@media (min-width: 769px) {
    .mobile-cta { display: none; } /* PCでは消す */
    body { padding-bottom: 0; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* スマホではヘッダーメニュー簡易化 */
    .hero h1 { font-size: 1.8rem; }
    .grid-3 { grid-template-columns: 1fr; } /* カードを縦積み */
}