@charset "UTF-8";

/* =========================================
   1. ベーススタイル (全ページ共通)
   ========================================= */
:root {
    --primary-color: #0056b3;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* --- ヘッダー --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* ハンバーガーボタン */
.hamburger {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 200;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーボタンのアニメーション */
.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- ナビゲーションメニュー --- */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nav-menu li {
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transition-delay: 0.1s;
}

.nav-menu.active li {
    transform: translateY(0);
    opacity: 1;
}

.nav-menu a {
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}
.nav-menu a:hover {
    color: var(--primary-color);
}

/* --- フッター --- */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}


/* =========================================
   2. 製品一覧ページ用スタイル (タイル表示)
   ========================================= */

/* ヒーローエリア調整 */
.hero {
    background-color: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px; /* 一覧ページ用に高さを調整 */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-top: 30px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* --- ヒーローエリア内の画像エリア --- */

.hero-image {
    /* Flexboxを使って中身の画像を制御 */
    display: flex;
    justify-content: center; /* 横方向：中央寄せ */
    align-items: center;     /* 縦方向：中央寄せ */
    flex-wrap: nowrap;         /* スマホなど幅が狭い時は折り返す */
    gap: 15px;               /* 画像と画像の間隔 */
    
    width: 100%;
    margin-bottom: 20px;     /* タイトルとの余白 */
}

.hero-image img {
    /* 画像サイズの制御 */
    max-width: 100%;         /* 親枠からはみ出さない */
    min-width: 0;            /* これがないとFlexboxではみ出します */
    height: auto;            /* 縦横比を維持 */
    max-height: 400px;       /* 高さの上限（大きくなりすぎ防止） */
    object-fit: contain;     /* 枠内に綺麗に収める */
    
    /* 複数枚ある時に均等に縮小させる設定 */
    flex: 0 1 auto;          
}

/* ※補足：3枚並べた時にPCでも小さくなりすぎる場合は、
  max-height: 400px; を 300px くらいに下げるとバランスが良くなります。
*/

/* グリッドレイアウトの設定 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

/* 製品カード（リンク全体） */
.product-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.product-card:hover .card-image img {
    opacity: 0.9;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: bold;
}

.model-number {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #888;
}

/* --- 個別ページ用（スペック表など） --- */
.specs {
    background-color: var(--bg-light);
}

.specs h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.specs-table th, .specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.specs-table th {
    background-color: #f0f4f8;
    width: 30%;
    font-weight: bold;
    color: #444;
    vertical-align: top;
}

.specs-section-title {
    background-color: #e2e8f0 !important;
    text-align: center !important;
    font-size: 1.1rem;
    color: var(--primary-color) !important;
    padding: 10px !important;
}

/* ▼▼▼ スマホ向け調整は必ず一番下に置く！ ▼▼▼ */
/* --- スマホ向け調整 --- */
@media (max-width: 768px) {
    /* ヒーローエリアの文字サイズ調整 */
    .hero h1 { font-size: 1.8rem; }

/* ▼▼▼ ここを追記（スマホでは折り返して縦並びにする） ▼▼▼ */
    .hero-image {
        flex-wrap: wrap;
    }

    /* テーブル全体をブロック要素化 */
    .specs-table, .specs-table tbody, .specs-table tr {
        display: block;
        width: 100%;
    }

    /* セルの縦積み設定 */
    .specs-table th, 
    .specs-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* 項目名（左側）のスタイル */
    .specs-table th {
        background-color: #f0f4f8; /* 背景色をつける */
        border-bottom: none;       /* 下線を消す（データと一体化させるため） */
        padding-bottom: 5px;       /* 下の余白を詰める */
        font-size: 0.9rem;         /* 文字を少し小さく */
    }

    /* データ（右側）のスタイル */
    .specs-table td {
        padding-top: 5px;          /* 上の余白を詰める */
        border-bottom: 2px solid #ddd; /* 下線を引く（区切り線） */
        margin-bottom: 10px;       /* 次の項目との間隔を空ける */
    }

    /* セクション見出し（「セット内容」など）のスタイル調整 */
    .specs-section-title {
        text-align: center;
        margin-top: 20px;          /* 上に余白を入れて区切りを明確に */
        border-bottom: 1px solid #0056b3 !important; /* 見出しっぽく線を引く */
        color: #fff !important;
        background-color: var(--primary-color) !important; /* スマホでは色を変えて目立たせる */
    }
    
    /* セクション見出しの直後の行はマージンを消す */
    .specs-table tr:first-child .specs-section-title {
        margin-top: 0;
    }
}