@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* ヘッダーの高さに合わせてbodyの上部にパディングを追加 */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f8f8;
    color: #1a202c;
    scroll-behavior: smooth;
    /* ヘッダーの高さ（約80px）に合わせてパディングを追加 */
    padding-top: 5rem; /* 80px相当 */
}

/* ヘッダーの固定スタイル */
.fixed-header {
    position: fixed; /* 画面に固定 */
    top: 0; /* 上端に配置 */
    left: 0; /* 左端に配置 */
    right: 0; /* 右端に配置 */
    z-index: 100; /* 他の要素の上に表示 */
    background-color: #ffffff; /* 背景色 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06); /* 影 */
}


/* Q&Aセクションのスタイル */
.category-section {
    margin-bottom: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.category-section h2 {
    font-size: 2.25rem; /* text-3xl */
    font-weight: 800; /* font-extrabold */
    color: #06b6d4; /* cyan-500 */
    border-bottom: 3px solid #06b6d4;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: #f0f9ff; /* cyan-50 */
}

.category-section h3 {
    font-size: 1.5rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* gray-800 */
    background-color: #e0f7fa; /* cyan-50 */
    padding: 0.5rem 1rem;
    margin-top: 0; /* カテゴリセクションのh2から続くように余白を調整 */
    margin-bottom: 0;
}

/* アコーディオンボタン (質問) のスタイル */
.accordion {
    background-color: #ffffff;
    color: #1f2937; /* gray-800 */
    cursor: pointer;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.4s ease;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion:hover {
    background-color: #f3f4f6; /* gray-100 */
}

/* アクティブな質問とホバー時のスタイル */
.accordion.active {
    background-color: #e0f2f7; /* cyan-100 */
    color: #06b6d4; /* cyan-500 */
    border-bottom: 1px solid #bae6fd; /* cyan-200 */
}

/* 最後の質問ボタンはボーダーを非表示 */
.category-section .accordion:last-of-type {
    border-bottom: none;
}

/* アイコン（+ / -）のスタイル */
.accordion::after {
    content: '\002B'; /* Unicode for a plus sign */
    color: #06b6d4;
    font-weight: bold;
    float: right;
    margin-left: 5px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion.active::after {
    content: "\2212"; /* Unicode for a minus sign */
    transform: rotate(360deg);
}

/* 回答 (パネル) のスタイル */
.panel {
    padding: 0 1.5rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.panel p {
    padding: 1rem 0;
    color: #4b5563; /* gray-600 */
    line-height: 1.6;
}

/* 回答内の太字を強調 */
.panel strong {
    color: #0891b2; /* cyan-600 */
    font-weight: 700;
}

/* 画像スタイル（FAQコンテンツ内） */
.panel img {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
