
@charset "UTF-8";

.container {
    max-width: 960px; /* コンテンツの最大幅 */
    margin: 0 auto;
    padding: 20px;
}


/* ヘッダー */
header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}
header .logo {
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
header .logo img {
    max-width: 300px;
    height: auto;
}


/* フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

/* メインコンテンツのセクション */
main {
    padding: 40px 0;
}


/* ========================================================== */
/* ⭐ 修正箇所: Table構造のレイアウト調整 ⭐ */
/* ========================================================== */
.option-table {
    width: 100%;
    border-collapse: collapse; /* ボーダーを重ねる */
}
.option-table tr {
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
/* 最後の行のボーダーを削除 */
.option-table tr:last-child {
    border-bottom: none;
}
.option-table td {
    padding: 1rem 0; /* 垂直方向のパディング */
    vertical-align: top;
}
/* カテゴリ名のセル */
.option-table td:first-child {
    width: 150px; /* 幅を固定 */
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    padding-right: 10px; /* ギャップの代わり */
}
/* ラジオボタン/チェックボックスのセル */
.option-table td:last-child {
    padding-left: 10px;
}

/* 640px以下でのブレイクポイント調整 */
@media (max-width: 640px) {

/* ⭐ 追加するCSS ⭐ */
.specificText {
/* ブロック要素として扱い、幅いっぱいに広げる */
display: block; 
/* 1文字ごとに強制的に折り返しを有効にする */
word-break: break-all; 
/* もしくは、単語内での改行を許可する: overflow-wrap: break-word; を使用 */
}

    .option-table td:first-child {
        width: auto;
        display: block;
        padding-bottom: 0.5rem; /* スマホ表示時のカテゴリ名とオプション間のスペース */
    }
    .option-table td:last-child {
        display: block;
        padding-top: 0;
        padding-left: 0;
    }
    .option-table tr {
        display: block;
        padding: 1rem 0;
    }
}
/* ========================================================== */


.options-group {
    display: flex;
    flex-wrap: wrap;
}

.options-group label {
    /*margin-right: 1.25rem;*/
    margin-right: 1.00rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
/*
.options-group label {
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
*/
/* ラジオボタンとチェックボックスの直後の文字（span）に左マージンを追加 */
.options-group input + span {
    margin-left: 0.25rem;
}

/* ⭐ 括弧の直後にある要素（最初のチェックボックス）にマージンを追加 ⭐ */
.paren-group + label {
    margin-left: 0.5rem; 
}


.paren-group {
    display: inline-flex;
    align-items: center;
}
.radio-input {
    height: 16px;
    width: 16px;
    color: #3b82f6;
}
.checkbox-input {
    height: 16px;
    width: 16px;
    border-radius: 4px;
    color: #10b981;
}
.options-group input[type="checkbox"]:disabled + span {
    color: #9ca3af;
    cursor: not-allowed;
}

/* FAQ検索結果のスタイル */
.search-result-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-result-item:hover {
    background-color: #f0f4f8;
}
.keyword-button {
    /* background-color: #e0f2f1;
    color: #0d9488;*/
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.keyword-button:hover {
    /*background-color: #a7f3d0;*/
    background-color: #BFDBFE;
}

/* 画像プレビューコンテナのカスタムスタイル */
#imagePreviewContainer {
    position: absolute;
    z-index: 2010; /* モーダル (2000) より高く設定 */
    width: 300px;
    background-color: white;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    pointer-events: none;
}
#imagePreview {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.type-options {
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
}

/* モーダルダイアログのスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 💡 追加: モーダル内のリンクスタイル */
#modalAnswerContent a,
#modalLinkContainer a {
    color: #3b82f6; /* Blue-500 */
    text-decoration: underline;
    font-weight: 500;
}
#modalAnswerContent a:hover,
#modalLinkContainer a:hover {
    color: #1d4ed8; /* Blue-700 */
}

/* style.css または <style> タグ内に追加 */
.preview-target {
    font-weight: bold;
    border-bottom: 1px solid #1d4ed8; /* 下線を追加 */
    transition: color 0.1s;
}

.preview-target:hover {
    color: #2563eb; /* blue-600相当 */
    background-color: #f3f4f6; /* gray-100相当で背景を薄くハイライト */
}
