/*
Theme Name:		EcoMobile
Template:		welcart_simple-plus-vertical
Theme URI:		https://www.welcart.com/archives/16004.html
Author:			Welcart Inc.
Author URI:		https://www.welcart.com/
Description:	TechRevive.
Version:		1.0
License:		GNU General Public License v2 or later
License URI:	http://www.gnu.org/licenses/gpl-2.0.html
Tags:			responsive-layout, simple-plus,
*/



.faq-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: none;
    border-radius: 0;
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: normal;
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    font-size: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}



.faq-answer {
    padding: 1.5rem;
    border: 1px solid;
    margin-top: -4px;
    border-top: none;
    border-radius: 0 0 4px 4px;
    display: flex;
    gap: 0.5rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .faq-section {
        padding: 0 1rem;
    }
    
    .faq-question,
    .faq-answer {
        padding: 1rem;
    }
    
    .faq-question::after {
        right: 1rem;
    }
}

/* 会社概要ページのスタイル */
.company-info {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-top: 1px solid #ddd;
}

.company-table tr {
    border-bottom: 1px solid #ddd;
}

.company-table th{
	color: #fff;
}
.company-table th,
.company-table td {
    padding: 1.5rem;
    border: none;
}

.company-table th {
    width: 25%;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    background-color: <?php echo get_theme_mod('company_th_background', '#f8f9fa'); ?>;
}

.company-table td {
    width: 75%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .company-table,
    .company-table tbody,
    .company-table tr,
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        padding-bottom: 0.5rem;
    }
    
    .company-table td {
        padding-top: 0.5rem;
    }
}

/* Contact Form 7のカスタマイズ */
.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* フォーム全体 */
.wpcf7 {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* ラベル */
.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* 必須マーク */
.wpcf7 .required {
    color: #e74c3c;
    margin-left: 0.3rem;
    font-size: 0.9em;
}

/* テキストフィールドとテキストエリア */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* テキストエリアの高さ */
.wpcf7 textarea {
    height: 200px;
    resize: vertical;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    background: var(--subbtn1-bg-color, #fff);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    width: auto;
}

.wpcf7 input[type="submit"]:hover{
	background: var(--btn-hover-bg-color, #424242);
}


/* ラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.wpcf7 .wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* 送信完了メッセージ */
.wpcf7 form.sent .wpcf7-response-output {
    background: #27ae60;
    color: white;
    border: none;
}

/* エラーメッセージ */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #e74c3c;
    color: white;
    border: none;
}

/* ラジオボタンとチェックボックス */
.wpcf7-radio,
.wpcf7-checkbox {
    display: block;
    margin-bottom: 1.5rem;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
    display: block;
    margin: 0 0 0.5rem 0;
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .wpcf7 {
        padding: 1.5rem;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
    }
}

.has_front-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.has_front-nav ul li {
  margin: 0;
  padding: 0;
}

/* カテゴリーナビゲーションのスタイル */
.category-nav {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


.has_front-nav .category-nav-title span {
  font-size: 1.5rem;
  font-weight: inherit;
}

/* カテゴリーリストのスタイル */
.has_front-nav .category-list {
  border-top: 1px solid var(--accent-color);
  border-left: 1px solid var(--accent-color);
  border-right: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.98);
}

.category-nav-title {
  position: relative;
  cursor: pointer;
}

.hover-text {
  visibility: hidden;
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  right: -18px;
  transform: translateX(-50%) translateY(10px);
  bottom: 0;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.category-nav-title:hover .hover-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.has_front-nav .category-nav-title.active .hover-text{
  display: none;
}

/* 吹き出しの矢印 */
.hover-text::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent-color);
}



/* .front-page .widget h3.widget_title{
  text-align: left;
  background-color: var(--general-table-heading-bg-color);
  color: var(--main-base-bg-color);
  padding: .5em 1em;
} */

.front-page .widget h3.widget_title{
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--general-table-heading-bg-color);
  border-left: 6px solid var(--general-table-heading-bg-color);
  border-bottom: 2px solid var(--general-table-heading-bg-color);
  padding: 10px 20px;
  margin: 25px 0;
  position: relative;
  background-color: var(--main-base-bg-color);
}
.main-content{
	width: 100%;
	max-width: calc(100% - 220px);
	margin-left: auto;
}

.has_front-nav .sidebar{
  background-color: var(--main-base-bg-color);
  width: 200px;
  margin: clamp(5rem,4.107rem + 4.46vw,6.25rem) 10px;
}
.has_front-nav .sidebar.fixed{
  position: fixed;
  top: clamp(5rem,4.107rem + 4.46vw,6.25rem);
}

.has_front-nav ul{
  padding: 0;
  margin: 0;
  list-style: none;
}

.has_front-nav ul li{
  margin: 0;
  padding: 0;
}

.has_front-nav .category-item a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  font-weight: bold;
  border-bottom: 1px solid var(--accent-color);
  transition: all 0.3s ease;
}
.has_front-nav .category-item a:hover{
  background-color: var(--accent-color);
  color: #fff;
}

.has_front-nav .category-nav-title{
  padding: 0.5rem 0;
  text-align: center;
  background-color: var(--accent-color);
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-weight: bold;
}
.has_front-nav .category-nav-title span{
  font-size: 1.5rem;
  font-weight: inherit;
}

@media screen and (max-width: 1024px) {
  .has_front-nav .sidebar{
    width: auto;
    margin: 80px 10px 0;
  }
  .has_front-nav .sidebar.fixed{
    position: unset;
    top: unset;
  }
  .main-content{
    max-width: 100%;
  }
}


.dropdown.filter-category .btn-filter #ico-filter path{
  fill: var(--general-text-color);
}

.archive-header .header-bottom .category-count-page span{
  color: var(--general-text-color);
}
.category-count-item{
  color: var(--general-text-color);
}
.archive-header .page-title{
  color: var(--general-text-color);
}

.secondary .widget_basic_item_list .item-list .grid article .card{
  background-color: var(--color-primary);
}

  .front-page .widget.widget_basic_item_list .widget_title{
    text-align: left!important;
    padding: 0 1rem;
  }


  .front-page .news-front{
    border-top: unset;
  }



/* Widget　ウィジェット */
/* モダンな商品カードスタイル */
.item-list .grid {
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin: 0;
}

.custom-product-item,
.g-col-6.g-col-md-3 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-product-item:hover,
.g-col-6.g-col-md-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card,
.card.border-0 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.product-image,
.card-imag-top {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-image img,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-details,
.card-body {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title,
.card-title.item-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price,
.card-text.item-price {
  margin-top: auto;
  font-weight: 600;
  color: #e53e3e;
}

.original-price,
.field_cprice {
  text-decoration: line-through;
  color: #718096;
  font-size: 0.85em;
  display: block;
}

.current-price {
  font-size: 1.1em;
}

.product-meta {
  margin-top: 10px;
  font-size: 0.85em;
}
/* 商品一覧 */


/* 商品グリッドレイアウト */
.type-grid .grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0 15px;
}

.type-grid .product-item {
    width: 100%;
    margin: 0;
}

.type-grid .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.type-grid .product-image-wrapper {
    aspect-ratio: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.type-grid .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-grid .product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.type-grid .product-name {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.type-grid .product-price-area {
    margin-top: auto;
}

@media (max-width: 1200px) {
    .type-grid .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .type-grid .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .type-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .type-grid .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
}


.body_wrapper{
	display: flex;
}
@media screen and (max-width: 1024px){
	.body_wrapper{
		flex-direction: column;
}
}