﻿@charset "UTF-8";

/* 変数定義 */
:root {
    --base-color: #FFFFFF;
    --text-color: #333333;
    --gray-bg: #f9f9f9;
    --main-red: #D32F2F; /* クライアント指定の赤（想定） */
    --accent-red: #B71C1C; /* ストロングレッド（CTA用） */
    --link-color: #0d47a1;
    --border-color: #ddd;
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* リセット & 基本設定 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--base-color);
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* 共通レイアウト */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 60px 0; }
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--main-red);
    margin: 15px auto 0;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--main-red);
    opacity: 0.9;
    transform: translateY(1px);
}
.btn-outline {
    border-color: var(--main-red);
    color: var(--main-red);
    background: #fff;
}
.btn-outline:hover {
    background-color: #ffebee;
}
.btn-secondary {
    background-color: #555;
    color: #fff;
}

/* ヘッダー */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--main-red); display: flex; align-items: center; gap: 10px;}
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-menu a:hover { color: var(--main-red); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn { padding: 8px 15px; font-size: 0.9rem; }

/* フッター */
footer {
    background-color: #f4f4f4;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--main-red);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-title { font-weight: bold; margin-bottom: 15px; border-left: 4px solid var(--main-red); padding-left: 10px;}
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; }
.copyright { text-align: center; font-size: 0.8rem; color: #666; border-top: 1px solid #ddd; padding-top: 20px;}

/* トップページ：ヒーロー */
.hero {
    background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ), url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* ご利用の流れ */
.flow-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.step-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
}
.step-number {
    display: block;
    width: 30px;
    height: 30px;
    background: var(--main-red);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    line-height: 30px;
    font-weight: bold;
}

/* 機材一覧（Products） */
.filter-nav { text-align: center; margin-bottom: 30px; }
.filter-btn {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 20px;
}
.filter-btn.active { background: var(--text-color); color: #fff; border-color: var(--text-color); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    background: #fff;
}
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-img img { width: 100%; height: 200px; object-fit: cover; }
.product-info { padding: 15px; }
.product-price { color: var(--main-red); font-weight: bold; font-size: 1.1rem; margin: 10px 0; }
.product-desc { font-size: 0.9rem; color: #666; margin-bottom: 15px; }

/* フォーム関連 */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.required { color: var(--main-red); margin-left: 5px; font-size: 0.8rem; }
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

/* マイページ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}
.sidebar { background: #f9f9f9; padding: 20px; border-radius: 8px; height: fit-content;}
.history-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.history-table th, .history-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.history-table th { background: #f4f4f4; }

/* レスポンシブ */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; font-size: 0.9rem; }
    .hero h1 { font-size: 1.8rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
}