/* 検索フォーム */
.search-form {
    margin-bottom: 20px;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 400px; /* 任意でサイズ調整 */
}

.search-field {
    width: 100%;
    padding: 10px 90px 10px 12px; /* 右側にボタン分の余白 */
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.search-submit {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #ff85c1;
}

/* 用語カードデザイン */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.glossary-card {
    background: #fff0f5;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.glossary-card:hover {
    transform: translateY(-5px);
}

.glossary-term {
    font-weight: bold;
    font-size: 18px;
    color: #ff69b4;
}

.glossary-term a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* レスポンシブ */
@media screen and (max-width: 480px){
    .search-wrap {
        max-width: 100%;
    }
    .search-field {
        padding: 10px 90px 10px 12px;
    }
}