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

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --font-base: 16px;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept, .btn-reject {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
}

.btn-reject {
    background: #6b7280;
    color: white;
}

.btn-accept:hover, .btn-reject:hover {
    opacity: 0.8;
}

/* Font Size Button */
.font-size-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-size: 14px;
    transition: transform 0.3s;
}

.font-size-btn:hover {
    transform: scale(1.05);
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: var(--light-bg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 18px;
    color: #6b7280;
}

/* About Products */
.about-products {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Calculator */
.calculator {
    padding: 80px 0;
}

.calculator h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.calculator-box {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calc-input {
    margin-bottom: 20px;
}

.calc-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.calc-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.btn-calculate {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

.btn-calculate:hover {
    opacity: 0.9;
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
}

/* Products Section */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
}

.product-card .price {
    padding: 0 20px;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.product-card .description {
    padding: 10px 20px;
    color: #6b7280;
}

.product-card .btn {
    margin: 20px;
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.product-card .btn:hover {
    opacity: 0.9;
}

/* Product Detail */
.product-detail {
    padding: 80px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-image img {
    width: 100%;
    border-radius: 10px;
}

.product-rating {
    color: #fbbf24;
    margin-bottom: 15px;
}

.product-rating span {
    color: #6b7280;
    margin-left: 10px;
}

.product-price {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
    margin: 20px 0;
}

.product-special-price {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features h3 {
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 8px 0;
    font-size: 16px;
}

.product-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.9;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background: var(--light-bg);
}

.related-products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

/* Cart */
.cart-section {
    padding: 80px 0;
    min-height: 60vh;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 10px;
}

.cart-item-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.cart-item-remove {
    padding: 8px 15px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    padding: 60px 0;
}

.empty-cart i {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.cart-summary {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 20px;
    font-weight: bold;
    border-bottom: none;
    margin-top: 10px;
}

.btn-large {
    width: 100%;
    margin-top: 20px;
}

/* Checkout */
.checkout-section {
    padding: 80px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.order-summary {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-totals {
    margin-top: 20px;
}

/* Success Page */
.success-section {
    padding: 80px 0;
    min-height: 60vh;
}

.success-message {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-text {
    font-size: 20px;
    margin: 20px 0;
}

.success-subtext {
    color: #6b7280;
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.success-info {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

/* Contact */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-success {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.contact-success i {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 15px;
}

/* About */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.about-story {
    padding: 80px 0;
}

.about-values {
    padding: 80px 0;
    background: var(--light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
}

.value-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.team-section {
    padding: 80px 0;
}

.team-intro {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.team-card h3 {
    padding: 20px 20px 10px;
}

.team-role {
    padding: 0 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.team-bio {
    padding: 15px 20px 20px;
    color: #6b7280;
}

/* Blog */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-list {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-content h2 {
    margin-bottom: 15px;
}

.blog-content h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.btn-read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Blog Post */
.blog-post {
    padding: 80px 0;
}

.post-breadcrumb {
    color: #6b7280;
    margin-bottom: 20px;
}

.post-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 30px;
    color: #6b7280;
    margin-bottom: 40px;
}

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 10px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-intro {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 30px;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.post-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-cta {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 50px 0;
}

.post-footer {
    max-width: 800px;
    margin: 50px auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
}

.related-posts {
    margin-top: 80px;
}

.related-posts h3 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-post-card {
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .product-detail-grid, .contact-grid, .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .post-header h1 {
        font-size: 28px;
    }
}