@media screen and (max-width:768px) {

/* 共通パーツ */
html {
  font-size: 14px;
}

.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;
}

.woocommerce-notices-wrapper {
  width: 100%;
}

/* ヘッダーメニュー */
/* ==== ヘッダー全体レイアウト ==== */
.ena-header-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 10px;
  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;
}


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

.mobile-only-search {
  display: flex;
  margin: 20px 16px;
  border: 1px solid #333;
  color: #333;
}

.mobile-only-search .search-input {
  color: #333;
}

.mobile-only-search .search-input::placeholder {
  color: #999;
}

.mobile-only-search .search-icon {
  stroke: #333;
}

.sp-ena-search-form {
  display: flex;
  margin: 20px 16px;
  border: 1px solid #333;
  color: #333;
}

.sp-ena-search-form .search-input::placeholder {
  color: #999;
}

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

.sp-ena-search-form .search-icon {
  width: 20px;
  height: 20px;
  stroke: #333;
}

.sp-ena-search-form .search-input {
  color: #333; /* ここが重要！テキストをダークグレーに */
}

.sp-ena-search-form .search-input::placeholder {
  color: #999;
}

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

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

.search-btn:hover {
  opacity: 0.8;
}

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

/* ==== アイコン部分（カート・アカウント・メニュー） ==== */
.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: 82px;
  right: 0;
  width: 100%;
  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;
}

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

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

.product-category-card {
  box-sizing: border-box;
  position: relative;
  height: 200px;
  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 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-category-card h3 {
  color: #fff;
  font-size: 1.5rem;
  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: block;
  width: 100%;
  margin: 0 auto;
}

.story-text {
  color: #fff;
  width: 100%;
  margin-bottom: 30px;
}

.story-image {
  width: 100%;
  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;
}

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

section#store {
  padding-bottom: 0;
}

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

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

.store-text {
  width: 100%;
  margin-bottom: 30px;
}

.store-map {
  width: 100%;
}

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

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

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

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

.faq-list {
  width: 100%;
}

#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: 40px;
}

section#contact {
  padding-bottom: 30px;
}

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

footer .flex-wrap {
  display: block;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 40px;
}

.sns-block {
  display: flex;
  margin-bottom: 30px;
}

.flex-left {
  width: 100%;
}

.flex-center {
  width: 100%;
}

.flex-right {
  width: 100%;
}

.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: 400px;
  overflow: hidden;
}


/* チェックアウトページ */『

body.woocommerce-checkout h1 {
  margin-bottom: 0px;
  margin-top: 0px;
}

.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row {
  display: block !important;
}

body.woocommerce-checkout .content-area .wc-block-components-checkout-place-order-button {
  display: block;
  margin: 24px auto 0 auto;
}

.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
  display: block !important;
}

body.woocommerce-checkout h1 {
  font-family: 'Montserrat Underline';
  font-size: 2rem !important;
  margin-bottom: 0px;
  margin-top: 50px;
  text-align: center;
}

/* カートページ */

.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  margin-top: 30px;
}

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

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

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

/* プライバシーポリシーページ */
.policy-page {
  width: 90%;
}

}
