/* ===== リセット・基本 ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

/* ===== ヘッダー ===== */
header {
    background-color: #004d99;
    color: white;
    padding: 20px;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area {
    text-align: center;
    margin-bottom: 15px;
}

.logo-area img {
    max-width: 450px;
    height: auto;
}

.logo-area h1 {
    margin: 0;
    font-size: 1.5em;
    color: white;
}

.sub-title {
    margin: 4px 0 0 0;
    font-size: 0.85em;
    opacity: 0.85;
    color: white;
}

/* ===== ナビゲーション ===== */
.nav-container {
    width: 100%;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 10px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    gap: 0;
}

.nav-menu > li {
    margin: 0 12px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.95em;
    padding: 6px 4px;
    display: inline-block;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.75;
}

/* ドロップダウン */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 200;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 3px solid #004d99;
    border-radius: 0 0 6px 6px;
}

.dropdown-content li a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    font-weight: normal;
    border-bottom: 1px solid #eee;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content li a:hover {
    background-color: #f0f7ff;
    color: #004d99;
    opacity: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== ヒーローセクション ===== */
.hero-section {
    background: linear-gradient(135deg, #003d80, #0066cc);
    color: white;
    padding: 70px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2em;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.hero-content p {
    font-size: 1.1em;
    margin: 0 0 30px 0;
    opacity: 0.92;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff9900;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.05em;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 0 #cc7a00;
}

.btn-primary:hover {
    background: #e68a00;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #cc7a00;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.05em;
    font-weight: bold;
    border: 2px solid white;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== メインコンテンツ ===== */
main {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
}

/* ===== index.html：メインフレックス ===== */
.main-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.info-left {
    flex: 2;
}

.info-right {
    flex: 1;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
}

/* ブログバナー */
.blog-banner {
    background: #004d99;
    color: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.blog-banner h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.blog-banner p {
    font-size: 0.9em;
    margin: 0 0 12px 0;
    opacity: 0.9;
}

.btn-blog {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.2s;
}

.btn-blog:hover {
    background: #e68a00;
}

/* お知らせエリア */
.news-area h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #004d99;
    border-bottom: 2px solid #004d99;
    padding-bottom: 5px;
}

.news-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-area ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
}

.news-area time {
    color: #004d99;
    font-weight: bold;
    margin-right: 8px;
}

/* ===== 商品ページ共通 ===== */
.product-item {
    margin-bottom: 40px;
}

.product-item h3 {
    color: #004d99;
    border-left: 4px solid #004d99;
    padding-left: 12px;
    margin-bottom: 15px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ダウンロードボックス */
.download-box {
    background: #f0f7ff;
    border: 1px solid #b8d4f5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.download-box p {
    margin: 0 0 12px 0;
    font-weight: bold;
    color: #333;
}

/* オレンジボタン（購入・ダウンロード） */
.btn-stores {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 0 #cc7a00;
    margin: 8px 0;
}

.btn-stores:hover {
    background: #e68a00;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #cc7a00;
}

/* 青ボタン（体験版など） */
.btn-download {
    display: inline-block;
    background: #004d99;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #003366;
}

/* ===== CADページ：特徴ボックス ===== */
.feature-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    flex: 1;
    background: #f9f9f9;
    padding: 18px;
    border-top: 4px solid #004d99;
    border-radius: 0 0 6px 6px;
}

.feature-item h4 {
    color: #004d99;
    margin: 0 0 10px 0;
    font-size: 1em;
}

/* ===== 動画ギャラリー ===== */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
}

.video-card video {
    width: 100%;
    height: auto;
    background: #000;
    display: block;
}

.video-title {
    font-size: 0.9em;
    padding: 10px;
    font-weight: bold;
    color: #333;
}

/* ===== 機能比較表 ===== */
.table-category {
    background-color: #d1e3ff;
    color: #004d99;
    padding: 10px 15px;
    font-weight: bold;
    border-left: 5px solid #004d99;
    margin-top: 25px;
    font-size: 0.95em;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5px;
    table-layout: fixed;
}

.spec-table th,
.spec-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.88em;
}

.spec-table th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: bold;
}

.spec-table td:first-child,
.spec-table th:first-child {
    text-align: left;
    width: 42%;
    background-color: #fff;
    color: #333;
    font-weight: normal;
}

.spec-table td.check {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.spec-table td.none {
    color: #ccc;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #004d99;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #004d99;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.1);
}

.form-group textarea {
    height: 220px;
    resize: vertical;
    line-height: 1.6;
}

.form-submit {
    text-align: center;
    margin-top: 28px;
}

.btn-submit {
    background-color: #004d99;
    color: white;
    padding: 16px 60px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-submit:hover {
    background-color: #003366;
}

/* ===== セクション見出し共通 ===== */
.section-title {
    color: #004d99;
    border-bottom: 3px solid #004d99;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* ===== フッター ===== */
footer {
    text-align: center;
    padding: 28px 20px;
    background-color: #eee;
    font-size: 0.82em;
    color: #555;
    margin-top: 40px;
}

/* ===== hr ===== */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

/* ===== リンク共通 ===== */
a {
    color: #004d99;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
    .logo-area img {
        max-width: 200px;
    }

    .nav-menu {
        gap: 6px;
    }

    .nav-menu > li {
        margin: 0 6px;
    }

    .hero-content h2 {
        font-size: 1.4em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .main-flex {
        flex-direction: column;
    }

    .feature-box {
        flex-direction: column;
    }

    .spec-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .contact-form {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95em;
    }
}
