/* --- General & Reset --- */
:root {
    --primary-color: #003366;
    --secondary-color: #ff0000;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* --- Header --- */
.site-header {
    background-color: var(--light-bg);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.logo img {
    height: 50px;
}
.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}
.header-info .tagline {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
}
.header-info .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.9rem;
}

/* --- Navigation --- */
.main-nav {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.main-nav a {
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* --- Main Content & Sections --- */
main > section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}
main > section:last-child {
    border-bottom: none;
}
section h2 {
    text-align: center;
    margin-bottom: 2rem;
}
section h2 small {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #666;
    margin-top: 0.5rem;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
}
.hero p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}
.btn.btn-secondary {
    background-color: var(--primary-color);
}

/* --- News Section --- */
.news-item {
    background-color: var(--light-bg);
    border-left: 5px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}
.news-item.warning {
    border-color: var(--secondary-color);
    background-color: #fff5f5;
}
.news-item.warning h3 {
    color: var(--secondary-color);
}
.news-item header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.news-item time {
    font-weight: bold;
    color: #555;
}

/* --- Product Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: white;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-decoration: none;
}
.product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.product-card figcaption {
    padding: 1rem;
    font-weight: bold;
    color: var(--text-color);
}
.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

/* --- Details & Tables --- */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}
th {
    background-color: var(--light-bg);
    width: 40%;
}
.price-list td:last-child {
    font-weight: bold;
    text-align: right;
}

/* --- Contact Section --- */
.contact-section { text-align: center; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-top: 2rem;
}
.contact-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}
.contact-card h4 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}
.contact-card p { margin-bottom: 0.5rem; }

/* --- Footer --- */
.site-footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.footer-links a {
    color: #fff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    .header-content, .header-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-info .contact-info {
        align-items: center;
    }
    .product-details {
        grid-template-columns: 1fr;
    }
}