/* =================================================================
   FAQ Page Styles (Simple Version)
   ================================================================= */

/* ヒーロービュー */
.faq-hero {
    background-image: url('https://asibimo.com/wp-content/uploads/2025/07/faq_hero.jpg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: grid;
    place-items: center;
    color: white;
}
.faq-hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ページ全体のコンテナ */
.faq-page-content .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.breadcrumbs { font-size: 0.85rem; margin-bottom: 2.5rem; color: #666; }
.breadcrumbs a { text-decoration: none; color: #0c99ba; }

/* 検索バー */
.faq-search {
    margin: 2rem 0 4rem;
}
.faq-search-form {
    position: relative;
    /* max-width: 700px; */
    max-width: 100%; /* 幅を親要素に合わせる */
    margin: 0 auto;
}
.faq-search-field {
    width: 100%;
    padding: 1rem 1.5rem !important;
    font-size: 1rem;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    background-color: #fff; /* 背景色を白に */
}
.faq-search-field:focus {
    outline: none;
    border-color: #0c99ba;
    box-shadow: 0 0 8px rgba(12, 153, 186, 0.5);
}
.faq-search-submit {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60px;
    background: #0c99ba;
    border: none;
    color: white;
    font-size: 1.2rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
}

/* 検索結果件数の表示 */
.faq-search-results-count {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: bold;
    color: #0c99ba;
}

/* キーワードハイライト */
.highlight {
    background-color: #faffb8; /* 黄色のマーカー風 */
    color: #333;
    font-weight: bold;
}

/* カテゴリーナビゲーション (シンプル版) */
.faq-category-nav-simple {
    padding-bottom: 1.5rem;
    border: 1px solid #d4f3fa;
    background-color: #f7feff;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.section-title-simple {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.category-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
}
.category-button:hover {
    background-color: #0c99ba;
    color: #fff;
    border-color: #0c99ba;
    transform: translateY(-2px);
}

/* キーワード検索セクション */
.faq-keyword-search {
    padding: 0 5.5rem 1.5rem;
    border: 1px solid #d4f3fa;
    background-color: #f7feff;
    border-radius: 16px;
    margin-bottom: 5rem;
}

/* FAQリスト */
.faq-category-group {
    margin-bottom: 4rem;
}
.category-title {
    font-size: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #0c99ba;
    margin-bottom: 1rem; /* 少し詰める */
}
.faq-item {
    border-bottom: 1px solid #e5e5e5;
}
.faq-question {
    position: relative;
    display: flex;       /* Flexboxを有効化 */
    align-items: center; /* 子要素を垂直方向の中央に揃える */
    padding: 1.5rem 2.5rem 1.5rem 3.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* summaryのデフォルト三角を消す */
}
.faq-question::-webkit-details-marker { display: none; } /* Safari用の三角消し */

.faq-question::after { /* 開閉アイコン (+) */
    content: '+';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #0c99ba;
    transition: transform 0.2s;
}
.faq-item[open] > .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-q-icon {
    font-size: 1.5rem;
    color: #ff6645;
    font-weight: bold;
    margin-right: 1rem;
    line-height: 1;
    position: relative; /* 位置調整の基準を自分自身に設定 */
    top: -1px;          /* 現在位置から上に1px移動 */
}

.faq-answer {
    padding: 1rem 1rem 2rem 3.5rem; /* 左の余白を調整 */
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
}

.answer-content {
    position: relative; /* 疑似要素の位置基準 */
    padding-left: 2.5rem; /* アイコン分のスペースを確保 */
    line-height: 1.8;
}

.answer-content::before {
    /* CSSで「A.」アイコンを生成する */
    content: 'A.';
    position: absolute;
    left: 0;
    top: -0.3em; /* ベースラインを微調整 (em単位がおすすめ) */
    font-size: 1.5rem;
    color: #0c99ba;
    font-weight: bold;
    line-height: 1.8; /* 本文の行間と合わせる */
}

.answer-content p:first-child {
    display: inline; /* 1番目のpタグをインライン化して横に並べる */
}
.answer-content p:last-child {
    margin-bottom: 0;
}
.answer-content a { color: #0c99ba; }

/* 検索結果なしメッセージ */
.faq-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f7f7f7;
    border-radius: 12px;
    margin-top: 2rem;
}
.faq-no-results p {
    margin: 0;
    line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .faq-hero-title { font-size: 2rem; }
    .faq-page-content .container { padding: 2rem 1rem; }
    .faq-category-nav-simple { padding: 1.5rem 1rem; }
    .category-buttons { gap: 0.5rem; }
    .category-button { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}