@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

       /* Google FontsからMerriweatherをインポート */
        @import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

        body {
		font-family: 'Merriweather', serif;
		background: #f4ead0;
		color: #010c03;
        padding-bottom: 200px;
        padding-top: 0;
        }

		p {
			font-size:1.2rem;
		}

        .bg-dark {
			background-color: #010c03!important;
        }

        #eff_header {
			width: 30px;
        }

        /* SVGのスタイル */
        #svg-container {
			display: flex;
			justify-content: center;
			align-items: center;
			height: 100vh;
			position: relative;
        }

        #charter {
			width: 100%;
			height: 75%;
        }

        #eff_chater {
			position: absolute; /* charter.svgの上に重ねるため */
			top: 26%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 20%;
			max-width: 200px;
			height: auto;
			z-index: 1; /* charterよりも前面に表示 */
        }

        #fairtrade-image, #singleorigin-image {
            width: 50%;
        }

        /* フッター画像のスタイル */
        #footer-image {
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			z-index: 100;
        }

		#lunaTierna-logo{
		  width:50%;
		}

        /* 画面幅が768px以下の場合のスタイル */
        @media (max-width: 768px) {
            #svg-container {
                height: auto;
                position: relative;
            }

            #charter, #eff_chater {
                width: 100%;
                height: auto;
            }
            #eff_chater {
                width: 25%;
            }
        }

        #Luna-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        /* ナビゲーションバーの調整 */
        .navbar {
            position: sticky !important;
            top: 0;
            z-index: 1000;
        }


/* ナビゲーションバーの固定スタイル */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #010c03!important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* メインコンテンツのパディング調整 */
body {
    background-color: #f9f4ef;
    color: #3c2a21;
    font-family: 'Lato', sans-serif;
}

        /* ヘッダー画像のスタイル */
        #header-image {
			left: 0;
			z-index: -1;
			position: relative;
        }

.container {
    margin: 0 auto;
}

        /* コンテナーの調整 */
        .navbar > .container {
            max-width: 1320px;
            margin-right: auto;
            margin-left: auto;
        }

.page-title {
    font-family: 'Playfair Display', serif;
    color: #3c2a21;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.page-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: #d4a762;
    margin: 1rem auto;
}

.product-card {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.product-card, .coffee-card {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-title, .coffee-title {
    font-family: 'Playfair Display', serif;
    color: #3c2a21;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2rem;
}

.coffee-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.coffee-weight {
    font-size: 0.9rem;
    color: #6c584c;
    margin-bottom: 1rem;
}

.product-description, .coffee-description {
    color: #6c584c;
    line-height: 1.8;
}

.product-description {
    font-size: 1rem;
}

.coffee-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-price, .coffee-price {
    color: #d4a762;
    font-weight: 700;
}

.product-price {
    font-size: 1.4rem;
}

.coffee-price {
    font-size: 1.2rem;
}

.coffee-price-details {
    font-size: 0.8rem;
    color: #6c584c;
}

.product-btn, .coffee-btn {
    background-color: #3c2a21;
    color: #f9f4ef;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.product-btn {
    padding: 12px 25px;
}

.coffee-btn {
    padding: 10px 20px;
}

.product-btn:hover, .coffee-btn:hover {
    background-color: #d4a762;
    color: #3c2a21;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    border-bottom: 3px solid #d4a762;
    background-color: #f9f4ef;
}

.coffee-card .product-image {
    height: 200px;
}

.quantity-select {
    width: 100px;
    padding: 10px;
    border: 1px solid #d4a762;
    border-radius: 5px;
    background-color: #fff;
    color: #3c2a21;
    font-size: 1rem;
}

/* カートページ用のスタイル */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.cart-table th {
    text-align: left;
    padding: 0.5rem;
    color: #6c584c;
    font-weight: 600;
}

.cart-table td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

.cart-table tr {
    background-color: #f9f4ef;
    border-radius: 5px;
}

.cart-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3c2a21;
    margin-top: 2rem;
}

.checkout-btn {
    display: inline-block;
    background-color: #d4a762;
    color: #3c2a21;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background-color: #3c2a21;
    color: #f9f4ef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #6c584c;
    text-decoration: none;
    font-weight: 600;
}

.continue-shopping:hover {
    color: #3c2a21;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #faf7f2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.terms-container h1 {
    font-family: 'Playfair Display', serif;
    color: #1c1c1c;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4af37;
}

.terms-container dl {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.terms-container dt {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #1c1c1c;
    font-size: 1.2rem;
    padding: 1rem;
    background-color: #f0e6d2;
    border-left: 4px solid #d4af37;
}

.terms-container dd {
    margin-left: 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e0d5c0;
}

.login-required {
    color: #8b4513;
    background-color: #f9e8d2;
    border: 1px solid #d4af37;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    font-style: italic;
}

.alert-info {
    background-color: #f0e6d2;
    border-color: #d4af37;
    color: #8b4513;
    padding: 20px;
    border-radius: 0;
    font-size: 1.1rem;
    margin-top: 2rem;
}

.alert-info a {
    color: #1c1c1c;
    text-decoration: underline;
    font-weight: bold;
}

.alert-info a:hover {
    color: #d4af37;
}

/* ログインページ用のスタイル */
.login-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 30px;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #3c2a21;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a762;
    padding-bottom: 10px;
}

.form-label {
    color: #3c2a21;
    font-weight: bold;
}

.form-control {
    border-color: #d4a762;
}

.btn-login {
    background-color: #d4a762;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #3c2a21;
}

.register-link {
    margin-top: 15px;
    text-align: center;
}

.register-link a {
    color: #d4a762;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 登録ページ用のスタイル */
.register-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 30px;
}

.register-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #3c2a21;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a762;
    padding-bottom: 10px;
}

.btn-register {
    background-color: #d4a762;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: #3c2a21;
}

.login-link {
    margin-top: 15px;
    text-align: center;
}

.login-link a {
    color: #d4a762;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* product.php */
.product-weight {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.cart-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 30px;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #3c2a21;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a762;
    padding-bottom: 10px;
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #f9f4ef;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: bold;
    color: #3c2a21;
    margin-bottom: 5px;
}


.cart-item-quantity {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #d4a762;
    border-radius: 5px;
    color: #3c2a21;
}

.cart-item-unit-price,
.cart-item-subtotal {
    font-weight: bold;
    color: #d4a762;
}

.cart-item-remove {
    background-color: #3c2a21;
    color: #f9f4ef;
    border: none;
    padding: 5px 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background-color: #d4a762;
    color: #3c2a21;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    color: #3c2a21;
}

.cart-tax {
    font-size: 14px;
    text-align: right;
    margin-top: 5px;
    color: #6c757d;
}

.empty-cart-message {
    text-align: center;
    font-size: 18px;
    color: #3c2a21;
    margin: 30px 0;
}

/* cart.php のスタイル */
.cart-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 30px;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #3c2a21;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a762;
    padding-bottom: 10px;
}

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

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    flex: 1;
    font-weight: bold;
    color: #3c2a21;
    margin-right: 10px;
}

.cart-item-details {
    align-items: center;
    flex: 2;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.cart-item-quantity {
    width: 60px;
    text-align: center;
    margin: 0 10px;
    padding: 5px;
    border: 1px solid #d4a762;
    border-radius: 5px;
    color: #3c2a21;
}

.cart-item-unit-price,
.cart-item-subtotal {
    font-weight: bold;
    color: #d4a762;
    width: 120px;
    text-align: right;
    margin-right: 10px;
}

.cart-item-remove {
    background-color: #3c2a21;
    color: #f9f4ef;
    border: none;
    padding: 5px 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.cart-item-remove:hover {
    background-color: #d4a762;
    color: #3c2a21;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    color: #3c2a21;
}

.cart-tax {
    font-size: 14px;
    text-align: right;
    margin-top: 5px;
    color: #6c757d;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.empty-cart-message {
    text-align: center;
    font-size: 18px;
    color: #3c2a21;
    margin: 30px 0;
}

/* profile */

.profile-container, .login-container, .register-container, .cart-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 30px;
}

.profile-title, .login-title, .register-title, .cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #3c2a21;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a762;
    padding-bottom: 10px;
}

.profile-form label, .form-label {
    color: #3c2a21;
    font-weight: bold;
}

.profile-form input, .form-control {
    margin-bottom: 15px;
    border: 1px solid #d4a762;
    border-radius: 5px;
    padding: 8px;
}

.profile-btn, .btn-login, .btn-register, .cart-item-remove {
    background-color: #d4a762;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover, .btn-login:hover, .btn-register:hover {
    background-color: #3c2a21;
}


@media (max-width: 767px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-details {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    .cart-item-name {
        margin-bottom: 5px;
    }
    .cart-item-remove {
        align-self: flex-end;
    }
    .terms-container dl {
        //grid-template-columns: 1fr;
    }
}
    .admin-container {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 20px;
        margin-top: 30px;
        border: 2px solid #d4a762;
    }
    .admin-title {
        font-family: 'Playfair Display', serif;
        font-size: 24px;
        color: #3c2a21;
        margin-bottom: 20px;
        border-bottom: 2px solid #d4a762;
        padding-bottom: 10px;
    }
    .admin-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
    }
    .admin-table th {
        background-color: #3c2a21;
        color: #f9f4ef;
        padding: 10px;
        text-align: left;
    }
    .admin-table td {
        background-color: #f9f4ef;
        padding: 10px;
    }
    .admin-table tr:nth-child(even) td {
        background-color: #f1e8db;
    }
    .admin-btn {
        background-color: #3c2a21;
        color: #f9f4ef;
        border: none;
        padding: 5px 10px;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .admin-btn:hover {
        background-color: #d4a762;
        color: #3c2a21;
    }
    .admin-select {
        border: 1px solid #d4a762;
        border-radius: 5px;
        padding: 5px;
        margin-right: 5px;
    }
    .admin-link {
        color: #3c2a21;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    .admin-link:hover {
        color: #d4a762;
    }
    .admin-icon {
        font-size: 48px;
        color: #d4a762;
        margin-bottom: 20px;
    }
    .shipping-btn {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .shipping-btn:hover {
        background-color: #45a049;
    }
/* レビュー */
	.product-rating {
	    background-color: #f8f9fa;
	    padding: 1rem;
	    border-radius: 0.5rem;
	}

	.rating-stars {
	    font-size: 1.2rem;
	}

	.review-list {
	    font-size: 0.9rem;
	    max-height: 200px;
	    overflow-y: auto;
	}

	.review-item {
	    padding: 0.5rem;
	    border-bottom: 1px solid #dee2e6;
	    margin-bottom: 0.5rem;
	}

	.review-item:last-child {
	    border-bottom: none;
	}

	.reviewer-info {
	    display: flex;
	    justify-content: space-between;
	    color: #666;
	    font-size: 0.8rem;
	    margin-bottom: 0.3rem;
	}

	.review-rating {
	    margin-bottom: 0.3rem;
	}

	.review-comment {
	    color: #333;
	}

	.product-rating {
	    background-color: #f8f9fa;
	    padding: 1rem;
	    border-radius: 0.5rem;
	}

	.rating-stars {
	    font-size: 1.2rem;
	    margin-bottom: 1rem;
	}

	.review-list {
	    font-size: 0.9rem;
	    max-height: 300px;
	    overflow-y: auto;
	}

	.review-item {
	    padding: 0.8rem;
	    border-bottom: 1px solid #dee2e6;
	    margin-bottom: 0.5rem;
	}

	.review-item:last-child {
	    border-bottom: none;
	}

	.reviewer-info {
	    display: flex;
	    justify-content: space-between;
	    color: #666;
	    font-size: 0.8rem;
	    margin-bottom: 0.3rem;
	}

	.review-rating {
	    margin-bottom: 0.3rem;
	}

	.review-comment {
	    color: #333;
	    line-height: 1.5;
	}

	.btn-outline-primary {
	    border-color: #007bff;
	    color: #007bff;
	}

	.btn-outline-primary:hover {
	    background-color: #007bff;
	    color: white;
	}

	.btn-outline-secondary {
	    border-color: #6c757d;
	    color: #6c757d;
	}

	.btn-outline-secondary:hover {
	    background-color: #6c757d;
	    color: white;
	}

	/* 星評価のスタイル */
	.rating-input {
	    display: inline-flex;
	    flex-direction: row-reverse;
	    gap: 0.5rem;
	}

	.rating-input input[type="radio"] {
	    display: none;
	}

	.rating-input label {
	    cursor: pointer;
	    font-size: 2rem;
	    color: #ddd;
	    transition: color 0.2s;
	}

	.rating-input label:hover,
	.rating-input label:hover ~ label,
	.rating-input input[type="radio"]:checked ~ label {
	    color: #ffd700;
	}



	.star-rating {
	    display: inline-block;
	}

	.stars {
	    font-size: 24px;
	    cursor: pointer;
	    display: inline-block;
	}

	.star {
	    color: #ddd;
	    transition: color 0.2s;
	    padding: 0 2px;
	}

	.star.active {
	    color: #ffd700;
	}

	.star.hover {
	    color: #ffed4a;
	}

	i{
		color: #d4a762;
	}

/* common-styles.cssに追加 */
@media (max-width: 991px) { /* lg breakpointより小さい画面用 */
    .product-card {
        height: 400px; /* 固定の高さを設定 */
    }
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex; /* 追加 */
    align-items: center; /* 追加 */
    justify-content: center; /* 追加 */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 400px; /* 画像の最大高さを制限 */
}

.navbar-logo {
    height: 40px;
    width: auto !important;
    object-fit: contain;
	max-width:50% !important;
}

/* common-styles.css に追加 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* 横スクロールを防止 */
    }
    
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    
    .main-header-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}
.main-header-image {
    left: 0;
    width: 100%;
    z-index: -1;
    position: relative;
}
/* ナビゲーションバーの基本スタイル */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    padding: 0;
}

.navbar-brand img {
    max-height: 40px;
    width: 116px;
}

/* スマートフォン向けのスタイル調整 */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #010c03;
        padding: 1rem;
        z-index: 1000;
    }

    .navbar > .container {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav {
        width: 100%;
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
        margin-top: 0;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}

/* ドロップダウンメニューの調整 */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
}
.dropdown-item .badge {
    transform: translate(-50%, -50%) !important;
    margin-left: -0.5em;
}