@charset "UTF-8";
/* Studio Technologies 製品検索（sti-search.js）。ブランドメニュー（黒い帯）の右端に置く */

.sti-page .sti-search-hide {
    display: none !important;
}

.sti-page .sti-search {
    position: relative;
    flex: 0 0 230px;
    margin: 0 0 0 16px;
}

.sti-page .sti-search input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px; /* 16px 未満だと iPhone が入力時に画面を自動で拡大し、ページが横にずれるため */
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.sti-page .sti-search input::placeholder {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.sti-page .sti-search input:focus {
    outline: none;
    border-color: var(--sti-brand-primary, #9FD72C);
    background: rgba(255, 255, 255, 0.14);
}

.sti-page .sti-search button[type="submit"] {
    position: absolute;
    top: 50%;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(-50%);
    cursor: pointer;
}

.sti-page .sti-search button[type="submit"]:hover {
    color: var(--sti-brand-primary, #9FD72C);
}

.sti-page .sti-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    width: min(440px, calc(100vw - 32px));
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.sti-page .sti-search-panel[hidden] {
    display: none;
}

.sti-page .sti-search-panel ul {
    margin: 0;
    padding: 6px;
    list-style: none;
}

.sti-page .sti-search-panel li {
    margin: 0;
}

.sti-page .sti-search-panel li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1a1a2e;
    text-decoration: none;
}

.sti-page .sti-search-panel li a:hover,
.sti-page .sti-search-panel li a.is-active {
    background: #f1f8e4;
}

.sti-page .sti-search-panel img,
.sti-page .sti-search-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 44px;
    object-fit: contain;
}

.sti-page .sti-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f8e4;
    font-size: 18px;
    color: #7AB520;
}

.sti-page .sti-search-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.sti-page .sti-search-text b {
    font-size: 15px;
}

.sti-page .sti-search-text span {
    overflow: hidden;
    font-size: 13px;
    color: #555;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sti-page .sti-search-text small {
    font-size: 11px;
    color: #999;
}

.sti-page .sti-search-all {
    display: block;
    padding: 10px 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    font-weight: 700;
    color: #5f8f14;
    text-align: center;
    text-decoration: none;
}

.sti-page .sti-search-all:hover {
    background: #f6fbec;
}

.sti-page .sti-search-empty {
    margin: 0;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

/* トップページ「製品型式一覧」の絞り込み結果 */
.sti-page .sti-search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 4px solid var(--sti-brand-primary, #9FD72C);
    border-radius: 8px;
    background: #f1f8e4;
    font-size: 15px;
    color: #1a1a2e;
}

.sti-page .sti-search-summary[hidden] {
    display: none;
}

.sti-page .sti-search-clear {
    padding: 6px 14px;
    border: 1px solid #c8d9a8;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.sti-page .sti-search-clear:hover {
    border-color: #7AB520;
    color: #5f8f14;
}

/* メニューが縦並びになる幅：検索欄は帯の下に横幅いっぱいで常に表示 */
@media (max-width: 1024px) {
    .sti-page .sti-search {
        flex: 0 0 auto;
        width: calc(100% - 32px);
        margin: 0 16px 10px;
        order: 2;
    }

    .sti-page .sti-search-panel {
        left: 0;
        right: auto;
        width: 100%;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .sti-page .sti-search {
        flex-basis: 180px;
    }
}

/* トップページ：検索結果のカード */
.sti-page .sti-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sti-page .sti-search-grid[hidden] {
    display: none;
}

.sti-page .sti-search-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.sti-page .sti-search-card:hover {
    border-color: var(--sti-brand-primary, #9FD72C);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.sti-page .sti-search-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #f7f8f9;
    font-size: 30px;
    color: #7AB520;
}

.sti-page .sti-search-card-img img {
    max-width: 90%;
    max-height: 96px;
    object-fit: contain;
}

.sti-page .sti-search-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #5f8f14;
}

.sti-page .sti-search-card b {
    font-size: 16px;
}

.sti-page .sti-search-card > span:last-child:not(.sti-search-card-cat) {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 640px) {
    .sti-page .sti-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sti-page .sti-search-card-img {
        height: 80px;
    }
}
