/* 共通パーツ */
html {
  font-size: 16px;
  color: #3a3625 !important;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.home h2 {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin-bottom: 50px;
  text-align: center;
}

section {
  padding: 50px 0;
}

#product-category .container,
#our-story .container,
#store .container,
#faq .container,
#contact .container,
footer .container {
  width: 90%;
  margin: 0 auto;
}

a:hover {
  opacity: 0.8;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* ヘッダーメニュー */
/* ==== ヘッダー全体レイアウト ==== */
.ena-header-wrap {
  position: flex;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 80px;
  background: #fff;
  z-index: 1000;
  color: #fff;
  background-color: #711a00;
}

/* ==== ロゴ ==== */
.ena-logo {
  width: 15%;
  min-width: 110px;
}

.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 9999px;
  line-height: 1;
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}


/* ==== 検索フォーム ==== */
.sp-ena-search-form {
  display: none;
}

.ena-search-form {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  padding: 2px 8px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 16px;
  background: transparent;
  color: #fff;
}

.mobile-only-search {
  display: none;
}

/* プレースホルダーも白に */
.search-input::placeholder {
  color: #fff;
}

.search-btn {
  background: transparent;
  border: none;
  padding: 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* ==== アイコン部分（カート・アカウント・メニュー） ==== */
.ena-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ena-icons svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  transition: fill 0.3s ease;
}
.ena-icons a:hover svg,
.ena-icons button:hover svg {
  fill: #ccc;
}
.hamburger-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ハンバーガー */
.menu-trigger {
  position: relative;
  width: 30px;
  height: 42px;
  cursor: pointer;
}

.menu-trigger span {
  display: block;
  position: absolute;
  width: 30px;
  border-bottom: solid 3px #fff;
  border-radius: 3px;
  transition: .35s ease-in-out;
}

.menu-trigger span:nth-child(1) {
  top: 6px;
}

.menu-trigger span:nth-child(2) {
  top: 18px;
}

.menu-trigger span:nth-child(3) {
  top: 30px;
}

.menu-trigger.active span:nth-child(1) {
  top: 18px;
  transform: rotate(-45deg);
}

.menu-trigger.active span:nth-child(2),
.menu-trigger.active span:nth-child(3) {
  top: 18px;
  transform: rotate(45deg);
}

/* ==== ドロワーメニュー内リスト ==== */
.ena-drawer-menu {
  display: none;
  position: fixed;
  top: 87px;
  right: 0;
  width: 25%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border: solid 3px #711a00;
}

.ena-drawer-menu.open {
  display: block;
  transform: translateX(0);
}

.drawer-menu-list li{
  border-bottom: solid 1px #333;
  margin: 0 16px;
  position: relative;
}

.drawer-menu-list a {
  display: block;
  padding: 16px 16px;
  color: #333;
}

.drawer-menu-list a:hover {
  color: #711a00;
}

.drawer-menu-list li:hover{
  border-bottom: solid 1px #711a00;
}

.drawer-menu-list li::after{
  content: "＞";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  color: #333;
}

.drawer-menu-list li::after:hover{
  color: #711a00;
}


/* 商品カテゴリ一覧 */
body.tax-product_cat #primary {
  width: 90%;
  margin: 0 auto;
}

.woocommerce-products-header__title.page-title {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin: 50px 0;
  text-align: center;
}

#product-category {
  background-color: #711a00;
  padding-top: 0;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-category-card {
  box-sizing: border-box;
  position: relative;
  height: 300px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.product-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-category-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-category-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.product-category-card h3 {
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

.no-image {
  width: 100%;
  height: 80%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  display: none;
}

.product-text-block {
  background-color: #EEEEEE;
  padding: 24px 0;
  border-radius: 0 0 4px 4px;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link:hover {
  opacity: 0.8;
}

.product-text-block.woocommerce-loop-product__title {
  font-size: 1.3rem;
}

.product-text-block .price {
  margin-bottom: 0;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  border-radius: 4px 4px 0 0;
  object-fit: cover;
}

.no-reviews {
  color: #888;
}

select.orderby {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="black" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-color: #fff;
  padding-right: 40px; /* 矢印ぶんの余白 */
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 40px 3px 8px;
  margin-right: 16px;
}


/* Our story Section */
#our-story {
  background-color: #3a3625;
}

#our-story h2 {
  color: #fff;
  border-top: solid 0.5px #fff;
  border-bottom: solid 0.5px #fff;
  padding: 15px 0;
}

#our-story .flex-wrap {
  display: flex;
  width: 90%;
  margin: 0 auto;
}

.story-text {
  color: #fff;
  width: 50%;
}

.story-image {
  width: 50%;
  padding: 0 30px;
}

.story-image span {
  position: relative;
}

.story-image span::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  bottom: 10px;
  left: -20px;
  background-color: #711a00;
}

.story-image span::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: -30px;
  right: -20px;
  background-color: #711a00;
}

.story-image img {
  display: block;
  width: 100%; /* または必要な幅 */
  height: auto;
}

.story-image span {
  display: inline-block;
  position: relative;
}


/* Store Section */
#store {
  background-color: #c7c7c7;
}

#store h2{
  border-top: solid 0.5px #333333;
  border-bottom: solid 0.5px #333333;
  padding: 15px 0;
}

#store .flex-wrap {
  display: flex;
  width: 90%;
  margin: 0 auto;
}

.store-text {
  width: 50%;
}

.store-map {
  width: 50%;
}

.store-map #map {
  width: 100%;
  height: 350px;
  border: none;
}

.store-name {
  display: flex;
  font-family: 'Montserrat';
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.store-name img {
  width: 44px;
  margin-right: 15px;
}

/* FAQ section */
#faq {
  background-color: #c7c7c7;
}

.faq-list {
  width: 90%;
  margin: 0 auto;
}

#faq h2{
  border-top: solid 0.5px #333333;
  border-bottom: solid 0.5px #333333;
  padding: 15px 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0;
  color: #625934;
}

.faq-answer.active {
  max-height: 500px; /* 内容に応じて十分な高さ */
  padding: 10px 15px;
}

.faq-question {
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #ddd;
}

.faq-question.open {
  background-color: #f9f9f9;
}

/* contact section */

#contact {
  background-color: #3a3625;
  color: #fff !important;
}

#contact h2 {
  border-top: solid 0.5px #fff;
  border-bottom: solid 0.5px #fff;
  padding: 15px 0;
  color: #fff;
}

.form-wrap {
  width: 90%;
  margin: 0 auto;
}

.fluentform .ff-text-left {
  text-align: center !important;
}

form.fluent_form_5 .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: #fff !important;
  color: #711a00 !important;
  border: solid 1px #711a00;
}

.ff-el-group.ff-text-left.ff_submit_btn_wrapper {
  margin-top: 50px;
}

/* footer area */
footer {
  background-color: #711a00 !important;
  padding: 80px 0;
}

footer .flex-wrap {
  display: flex;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 80px;
}

.sns-block {
  display: flex;
}

.flex-left {
  width: 40%;
}

.flex-center {
  width: 30%;
}

.flex-right {
  width: 30%;
}

.logo-wrapper {
  width: 50%;
  max-width: 250px;
  margin-bottom: 30px;
}

.sns-block .mark {
  width: 32px;
  margin: 0 16px;
}

.site-footer a:not(.button):not(.components-button) {
  color: #fff !important;
}

.copyright {
  text-align: center;
}

/* 商品詳細ページ */
.woocommerce-product-gallery__image {
	width: 100%;
	height: 500px; /* お好みで調整 */
	overflow: hidden;
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ギャラリー全体をflexにする */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	gap: 6px; /* サムネ間隔をここでコントロール */
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
}

/* 各サムネイル */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	height: auto;
	margin: 0 !important;
	float: none !important;
	list-style: none;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 22% !important;
}

.flex-control-thumbs li img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover; /* オプション：画像をトリミングして均一にしたいなら */
}

.single-product .site-main {
  width: 90%;
  margin: 50px auto;
}

h1.product_title.entry-title{
  font-size: 2rem;
  margin-bottom: 24px;
}

.single-product div.product p.price {
  margin: 0;
}

.woocommerce-product-details__short-description {
  margin-bottom: 24px;
}

.quantity-wrapper {
  display: inline-block;
  background-color: #f0f2f2;
  border: solid 0.5px black;
  padding: 0 12px;
  margin-right: 16px;
  border-radius: 4px;
}

.quantity-wrapper:hover {
  cursor: pointer;
}

.custom-qty-select {
	padding: 8px 12px;
	font-size: 1rem;
}

.quantity-label {
  color: #888;
}

.single_add_to_cart_button {
  background-color: #711a00 !important;
  color: #fff;
  padding: 12px 14px;
  border-radius: 4px;
}

.woocommerce-tabs {
    padding-top: 0 !important;
}

#review_form_wrapper {
  margin-top: 100px;
  padding-top: 24px;
  border-top: solid 0.5px #888;
  border-radius: 4px;
}

.comment-form textarea{
  background-color: #f0f2f2;
  border: solid 0.5px #888;
  border-radius: 4px;
}


.comment-form-comment label {
  display: block;
}

.comment-form-rating {
  margin-bottom: 24px;
}

.comment-form-comment {
  margin-bottom: 24px;
}

.form-submit .submit {
  background-color: #f0f2f2;
  border: solid 0.5px black;
  padding: 8px 20px;
  border-radius: 4px;
}

button.alt, input[type="button"].alt, input[type="reset"].alt, input[type="submit"].alt, .button.alt, .widget-area .widget a.button.alt {
  background-color: #711a00 !important;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 4px;
}

.woocommerce-product-attributes-item__label {
  font-weight: normal !important;
}

table:not( .has-background ) th {
  background-color: none !important;
}

.single-product .woocommerce-product-gallery__image img,
.flex-control-thumbs img,
.woocommerce ul.products li.product img {
  border-radius: 4px 4px 0 0;
}

ul.products li.product img, ul.products .wc-block-grid__product img, .wc-block-grid__products li.product img, .wc-block-grid__products .wc-block-grid__product img {
  margin: 0 auto 0 !important;
}

/* カートページ */
body.woocommerce-cart .content-area {
  width: 90%;
  margin: 50px auto;
}

.post-9.page.type-page.status-publish.hentry .entry-header .entry-title {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin-bottom: 50px;
}

.post-9.page.type-page.status-publish.hentry .entry-header{
  text-align: center;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  background-color: #711a00;
  border-radius: 4px;
}

h2.wp-block-heading.has-text-align-center {
  margin-bottom: 40px;
}

/* マイアカウントページ */
.post-11.page.type-page.status-publish.hentry .entry-header .entry-title {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin-bottom: 50px;
  margin-top: 50px;
  text-align: center;
}

.post-edit-link {
  display: none;
}

.entry-content .woocommerce {
  display: flex;
  width: 90%;
  margin: 50px auto;
}

.u-columns.woocommerce-Addresses.col2-set.addresses {
  display: block;
}

.u-column1.col-1.woocommerce-Address {
  width: 100% !important;
  margin-bottom: 80px !important;
}

.u-column2.col-2.woocommerce-Address {
  width: 100% !important;
}

.woocommerce-Address-title.title h2{
 font-size: 1.4rem;
 font-weight: normal;
 border-left: solid 5px #c7c7c7;
 padding-left: 15px;
}

body.woocommerce-edit-address .woocommerce-MyAccount-content > p {
	display: none;
}

body.woocommerce-account .woocommerce-EditAccountForm.edit-account input,
body.woocommerce-account .woocommerce-EditAccountForm.edit-account textarea,
body.woocommerce-account .woocommerce-EditAccountForm.edit-account select,
body.woocommerce-account .woocommerce-EditAccountForm.edit-account button,

body.woocommerce-edit-address .woocommerce-MyAccount-content input,
body.woocommerce-edit-address .woocommerce-MyAccount-content textarea,
body.woocommerce-edit-address .woocommerce-MyAccount-content select,
body.woocommerce-edit-address .woocommerce-MyAccount-content button,
body.woocommerce-account .woocommerce-form-login input,
body.woocommerce-account .woocommerce-form-login button  {
  /* background-color: #f0f2f2; */
  border: solid 0.5px #333;
  border-radius: 4px;
  height: 30px;
  padding: 0 8px;
  margin-bottom: 24px;
}

.select2-container--default .select2-selection--single {
  border: solid 0.5px #333;
  border-radius: 4px;
  height: 30px;
  padding: 0 8px;
  margin-bottom: 24px;
}

body.woocommerce-account .woocommerce-EditAccountForm.edit-account fieldset {
  border: none;
}

body.woocommerce-edit-address .woocommerce-MyAccount-content h2 {
  font-size: 1.4rem !important;
  font-weight: normal !important;
  border-left: solid 5px #c7c7c7 !important;
  padding-left: 15px !important;
  margin-bottom: 24px;
}

/* チェックアウトページ */
body.woocommerce-checkout h1 {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin-bottom: 50px;
  margin-top: 50px;
  text-align: center;
}

body.woocommerce-checkout .content-area {
  width: 90%;
  margin: 50px auto;
}

body.woocommerce-checkout .content-area .wc-block-components-button:not(.is-link) {
  background-color: #711a00;
  color: #ffffff;
  border-radius: 4px;

}

/* ログインページ */
body.woocommerce-account .woocommerce-form-login .form-row label {
  display: flex;
}

body.woocommerce-account .entry-content .woocommerce .woocommerce-form-login {
  display: block !important;
  width: 50%;
  margin: 50px auto;
}

.woocommerce-notices-wrapper {
  width: 90%;
  margin: 50px auto;
}

body.woocommerce-account .entry-content .woocommerce > h2 {
  display: none;
}

body.woocommerce-account #rememberme {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  accent-color: #333;
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 6px;
}

body.is-login-page .entry-content .woocommerce {
  display: block;
  width: 90%;
  margin: 50px auto;
}

.logout-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.logout-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

button#logout-yes {
  margin-right: 15px;
  background-color: #711a00;
  color: #fff;
  width: 40%;
  padding: 8px 0;
  border-radius: 4px;
}

button#logout-no {
  border: solid 0.5px #333;
  width: 40%;
  padding: 8px 0;
  border-radius: 4px;
}

.logout-modal-content p {
  margin-bottom: 24px;
}

div#contact.wc-block-components-address-form {
  background-color: #fff !important;
  color: #333 !important;
}


/* NOT FINDページ */
body.search-results.post-type-archive-product.woocommerce-page #primary {
  width: 90%;
  margin: 0 auto;
}

.no-results.not-found {
  width: 90%;
  margin: 50px auto;
  text-align: center !important;
}

div.no-results.not-found .page-header .page-title {
  font-size: 2.5rem !important;
  text-align: center !important;
  margin-bottom: 24px;
}

div.no-results.not-found .page-header .page-content {
  text-align: center;
}

.search-form {
	display: none;
}

/* 404ページ */
body.error404 .container {
  width: 90%;
}

.error-404.not-found  {
  text-align: center !important;
  padding: 50px 0;
}

.error-404.not-found .page-title  {
  font-size: 2.5rem !important;
  text-align: center !important;
  margin-bottom: 24px;
}

/* 固定ページ用プライバシーポリシー・利用規約専用スタイル */
body.privacy-policy .entry-title,
body.page-id-202 .entry-title {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin-top: 50px;
  text-align: center;
}

.policy-page {
  width: 80%;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.8;
  color: #333;
}

.policy-page section{
  padding: 0;
}

.policy-page h2 {
  font-size: 1.5em;
  margin-top: 2em;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3em;
}

.policy-page p {
  margin: 1em 0;
  font-size: 1em;
}

.policy-page a {
  color: #0066cc;
  text-decoration: underline;
}
