/*
Theme Name:		TechRevive
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;
    border-radius: 4px;
    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;
}

details[open] .faq-question {
    border-radius: 4px 4px 0 0;
}

.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,
.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: #3498db;
    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: #2980b9;
}

/* ラーメッセージ */
.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{
  display: flex;
}
.main-content{
  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-list{
  border-right: 4px solid var(--accent-color);
  border-left: 4px solid var(--accent-color);
  border-bottom: 4px solid var(--accent-color);
} */
.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{
    flex-direction: column;
  }
  .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;
  }