@charset "UTF-8";

/* ==================================================
   FAQセクションのデザイン
   ================================================== */
.front-faq-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- ヘッダー --- */
.front-faq-header {
    margin-bottom: 40px;
    text-align: center;
}
/* 既存のh2スタイルを上書きする場合の調整 */
.front-faq-header .will-h2-c {
    margin-bottom: 0;
}

/* --- 1. 検索ボックス (article-searchを踏襲) --- */
.faq-search-wrapper {
    max-width: 800px;
    margin: 0 auto 50px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-search-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}
.faq-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box; /* 崩れ防止 */
}
.faq-search-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}
.faq-search-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

/* --- 2. グループ別ナビゲーション (アコーディオン式) --- */
.faq-nav-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    border-top: 1px solid #eee; /* 上にも線を追加 */
}
.faq-nav-group {
    border-bottom: 1px solid #eee;
}
.faq-nav-trigger {
    width: 100%;
    text-align: left;
    padding: 20px 10px;
    background: #fff;
    border: none;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-nav-trigger:hover {
    background: #f5f8ff;
}
.faq-nav-trigger i.folder-icon {
    margin-right: 10px;
    color: #0044cc;
    width: 24px;
    text-align: center;
}
.faq-nav-trigger .toggle-icon {
    transition: transform 0.3s;
    color: #ccc;
    font-size: 14px;
}
.faq-nav-group.is-open .faq-nav-trigger {
    color: #0044cc;
    background: #eef3ff;
}
.faq-nav-group.is-open .toggle-icon {
    transform: rotate(180deg);
    color: #0044cc;
}
.faq-nav-content {
    display: none; /* JSで制御 */
    padding: 20px;
    background: #f9f9f9;
}
.faq-nav-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.faq-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.2s ease;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}
.faq-nav-link:hover {
    border-color: #0044cc;
    color: #0044cc !important;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(65, 105, 225, 0.1);
}
.faq-nav-link i {
    color: #0044cc;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* --- 3. ピックアップQ&A --- */
.faq-pickup-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    overflow: hidden;
}
.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.faq-q {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff; /* 背景色明示 */
    padding: 20px 25px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    font-size: 16px;
    transition: background 0.2s;
}
.faq-q:hover {
    background: #f9fbfd;
}
.faq-q-icon {
    background: #0044cc;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    font-family: sans-serif;
}
.faq-q-text {
    flex: 1;
    line-height: 1.5;
}
.faq-toggle {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}
.faq-toggle::before, .faq-toggle::after {
    content: '';
    position: absolute;
    background: #ccc;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
}
.faq-toggle::before { width: 100%; height: 2px; }
.faq-toggle::after { width: 2px; height: 100%; }

.faq-item.is-open .faq-q { color: #0044cc; }
.faq-item.is-open .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-a {
    display: none; /* JSで制御 */
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.faq-a-inner {
    padding: 20px 25px 25px 68px; /* インデント調整 */
    font-size: 15px;
    line-height: 1.8;
}
.faq-a-inner p { margin: 0 0 15px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

.faq-a-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.faq-a-btn {
    display: inline-flex;
    align-items: center;
    color: #0044cc;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    line-height: 1.4;
}
.faq-a-btn:hover {
    border-bottom-color: #0044cc;
    opacity: 0.8;
}
.faq-a-btn i {
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.3s;
}
.faq-a-btn:hover i {
    transform: translateX(3px);
}

/* --- すべて見るボタン --- */
.faq-more-link-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px!important;
}
.faq-more-link {
    display: inline-block;
    max-width: 300px;
    width: 100%;
    padding: 12px 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 30px;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: 0.3s;
}
.faq-more-link:hover {
    background: #f0f4ff;
    border-color: #0044cc;
    color: #0044cc;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .front-faq-container { padding: 20px 0; background: transparent; box-shadow: none; }
    
    .faq-search-wrapper { padding: 15px; margin-bottom: 40px; }
    .faq-search-inner { flex-direction: column; gap: 15px; }
    .faq-search-input, .faq-search-btn { width: 100%; }
    
    .faq-nav-grid { grid-template-columns: 1fr; }
    
    .faq-q { padding: 15px 20px; font-size: 15px; }
    .faq-a-inner { padding: 15px 20px 20px 20px; background: #f9f9f9; border-top: 1px dashed #eee; }
    
    .faq-a-links { gap: 10px; }
    .faq-a-btn {
        display: block;
        background: #fff;
        padding: 10px;
        border-radius: 4px;
        border: 1px solid #ddd;
        text-align: center;
        width: 100%;
    }
    .faq-a-btn:hover { border-color: #0044cc; }
}

/* ==================================================
   FAQ全一覧ページ (/faq/) 用スタイル
   ================================================== */
.faq-full-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 目次エリア */
.faq-toc {
    background: #f9fbfd;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 60px;
}
.faq-toc-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: #0044cc;
}
.faq-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.faq-toc-list li a {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}
.faq-toc-list li a:hover {
    border-color: #0044cc;
    color: #0044cc;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.faq-toc-list li a i {
    color: #0044cc;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* カテゴリセクション */
.faq-category-section {
    margin-bottom: 60px;
    /* アンカーリンクで飛んだ時にヘッダーに隠れないようにする調整 */
    scroll-margin-top: 120px; 
}

.faq-category-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    border-bottom: 3px solid #0044cc;
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-category-title i {
    color: #0044cc;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .faq-toc-list {
        grid-template-columns: 1fr;
    }
    .faq-category-title {
        font-size: 20px;
    }
}

/* FAQ検索ハイライト */
.faq-highlight {
    background: #fff566; /* 黄色 */
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    padding: 0 4px;
}