/* Base & Variables */
:root {
    --bg-dark: #0a0e14;
    --bg-darker: #05070a;
    --bg-light: #fcfcfc;
    --text-main: #e0e0e0;
    --text-dark: #111111;
    --accent-green: #20b2aa;
    --accent-gold: #d4af37;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Cinzel', serif;
}

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

/* スマホの画像はみ出し防止設定 */
img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-jp);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.text-highlight {
    color: var(--accent-green);
}

.section-padding {
    padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-en);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-green);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #178a83;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(10px);
}

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

.logo a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.main-nav a:hover {
    color: var(--accent-green);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a2a29 0%, var(--bg-darker) 70%);
    padding-top: 80px;
}

.hero-subtitle {
    font-family: var(--font-en);
    color: var(--accent-green);
    letter-spacing: 4px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 40px;
}

/* Story Section */
.story-section {
    background-color: var(--bg-darker);
    border-top: 1px solid #1a2a29;
}

.story-content {
    background: #11181c;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #20b2aa33;
    margin-top: 40px;
}

.story-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #cccccc;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--accent-green);
}

/* Shop Section */
.shop-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.shop-section .section-title {
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.popular-card {
    border: 2px solid var(--accent-gold);
    position: relative;
    box-shadow: 0 10px 30px rgba(212,175,55,0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.product-catch {
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-price-wrap {
    margin-bottom: 25px;
}

.old-price {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 5px;
}

.strike {
    text-decoration: line-through;
    color: #999;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
}

.price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1;
    margin-top: 5px;
}

.highlight-price {
    color: #b8962e;
}

.tax {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

.product-note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 30px;
    min-height: 40px;
}

.product-btn {
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 8px;
}

.product-btn:hover {
    background-color: #333;
    box-shadow: none;
}

.highlight-btn {
    background-color: var(--accent-gold);
}

.highlight-btn:hover {
    background-color: #b8962e;
}

/* Contact Section */
.contact-section {
    background-color: #f5f5f5;
    color: var(--text-dark);
}

.contact-section .section-title {
    color: var(--text-dark);
}

.contact-container {
    max-width: 700px;
}

.contact-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    margin-top: 40px;
}

.contact-icon {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.contact-card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-card-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-radius: 8px;
}

/* Footer */
.main-footer {
    background-color: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid #1a2a29;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-catch {
    margin-top: 15px;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
}

.disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
}

/* =========================================================
   Cart UI Styles
   ========================================================= */
.cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s;
}

.cart-toggle:hover {
    transform: scale(1.05);
    background-color: #b8962e;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    height: 100dvh;
    background-color: #fff;
    z-index: 1002;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-close:hover {
    color: #333;
}

/* ▼▼▼ 修正：商品リストとフォームをまとめてスクロール可能にするコンテナ ▼▼▼ */
.cart-scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-body {
    padding: 20px;
    flex-shrink: 0; /* 商品リストが押し潰されないように設定 */
}

.empty-cart-msg {
    text-align: center;
    color: #999;
    margin-top: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed #eaeaea;
}

.cart-item-info {
    flex-grow: 1;
    padding-right: 15px;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--accent-gold);
    font-weight: bold;
}

.cart-item-unit {
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
    margin-left: 5px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.qty-btn {
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #333;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #eaeaea;
    border-color: #bbb;
}

.qty-display {
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px;
    margin-top: 5px;
}

/* =========================================================
   Customer Info Form (Cart) - Polished Design
   ========================================================= */
.cart-customer-info {
    padding: 25px 20px;
    background-color: #fafafa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    display: none;
    flex-shrink: 0; /* フォームが押し潰されないように設定 */
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.cart-form-group {
    margin-bottom: 18px;
    text-align: left;
}

.cart-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.cart-form-group input,
.cart-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.cart-form-group input::placeholder,
.cart-form-group textarea::placeholder {
    color: #bbb;
    font-size: 0.9rem;
}

.cart-form-group input:focus,
.cart-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.15);
}

.cart-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* カートフッター（合計・ボタン） */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eaeaea;
    background-color: #fcfcfc;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   Responsive Design (スマホ対応)
   ========================================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-header {
        padding: 12px 0;
    }
    .header-inner {
        flex-direction: column;
        gap: 8px;
    }
    .logo a {
        font-size: 1.3rem;
    }
    .main-nav ul {
        gap: 15px;
        justify-content: center;
    }
    .main-nav a {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .cart-sidebar {
        max-width: 100%;
        right: -100%;
    }
}

/* =========================================================
   Product Images
   ========================================================= */
.product-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
    aspect-ratio: 1 / 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}