:root {
    --color-bg: #121212;
    --color-surface: #1e1e1e;
    --color-text: #f0f0f0;
    --color-text-muted: #aaaaaa;
    --color-gold: #c5a059;
    --color-gold-light: #e6c88b;
    --color-gold-dark: #8a6d3b;
    --color-accent: #b91c1c;
    /* Deep Red */
    --color-accent-hover: #991b1b;
    --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    color: #ffffff;
    background-color: var(--color-bg);
    /* 背景画像はbody::beforeで制御するためここでは削除 */

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-pattern.png');
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.15;
    /* うっすら見える程度に抑える */
    z-index: -2;
    pointer-events: none;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    line-height: 1.4;
    font-weight: 500;
}

button {
    cursor: pointer;
    font-family: var(--font-sans);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-gold);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 10px auto 0;
}

.gold-text {
    color: var(--color-gold);
}

.text-center {
    text-align: center;
}

/* Utilities */
.flex {
    display: flex;
}

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

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* Header height + space */
    padding-bottom: 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.8) 0%, rgba(18, 18, 18, 1) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-year {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-image {
    margin: 2rem auto;
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn:hover {
    background: var(--color-gold);
    color: #000;
}

.btn-primary {
    background: var(--color-gold);
    color: #121212;
    font-weight: bold;
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-disabled {
    background: #333;
    border-color: #444;
    color: #666;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #333;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* Lineup Section */
.lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--color-gold);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 2px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.card-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.card-details {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.card-details li {
    margin-bottom: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
}

.total-value-box {
    background: rgba(197, 160, 89, 0.1);
    padding: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.total-value-text {
    font-size: 0.9rem;
    color: var(--color-gold);
}

/* Premium Card Special Styles */
.product-card.premium {
    border: 1px solid var(--color-gold);
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

/* Large screens: premium horizontal */
@media (min-width: 769px) {
    .product-card.premium {
        display: flex;
        flex-direction: column;
        /* Simplified from flex-row for easier HTML port, or keep row if structure supports it */
        /* Keeping it simple for static port to avoid structure mismatch */
    }
}


.product-card.premium .card-title {
    font-size: 3rem;
    background: linear-gradient(to right, #c5a059, #eecfa1, #c5a059);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Material Section */
.material-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 4rem 0;
}

.material-image-box {
    flex: 1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    /* 白背景の画像を少し落ち着かせるためのフィルター等 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.material-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.material-image-box:hover .material-image {
    transform: scale(1.05);
}

.material-text {
    flex: 1;
}

.material-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .material-content {
        flex-direction: column;
        gap: 30px;
    }

    .material-text .section-title {
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Features Section */
.features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
    }
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1 1 300px;
    max-width: 400px;
    width: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Product Image */
.product-image-container {
    width: 100%;
    /* Limit maximum width to keep it looking manageable and ensure square shape isn't too huge on wide cards */
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
    /* Center horizontally */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 全体を表示するように変更 */
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Footer */
.footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.newsletter-box {
    max-width: 500px;
    margin: 0 auto 3rem;
    padding: 30px;
    background: #111;
    border: 1px solid #333;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.input-field {
    flex: 1;
    padding: 10px 15px;
    background: #222;
    border: 1px solid #444;
    color: white;
}

/* Animations & Interactions */

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items */
.reveal-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

/* Enhanced Button Hover (Shine Effect) */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

/* Premium Card Hover */
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
    border-color: var(--color-gold);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
}