@charset "UTF-8";

/**
 * Theme Name: 都留市観光協会
 * Author: obara
 * Version: 1.0
 */

/* ========================================
   検索フォーム
   ======================================== */

/* --- PC: 検索アイコン+オーバーレイ --- */
.header-search-pc {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-pc__icon {
    background: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: ease 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-pc__icon:hover {
    background-color: #cdeae8;
}

.header-search-pc__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-search-pc__overlay {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.header-search-pc__overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- SP: ハンバーガーメニュー内検索 --- */
.header-search-sp {
    display: none;
    margin-bottom: 20px;
}

/* --- 共通: 検索フォーム --- */
.header-search__form {
    display: flex;
    gap: 8px;
}

.header-search__input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #333;
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    transition: ease 0.3s;
    font-family: "Noto Sans JP", sans-serif;
}

.header-search__input:focus {
    border-color: #3dafaa;
    box-shadow: 0 0 0 2px rgba(61, 175, 170, 0.2);
}

.header-search__input::placeholder {
    color: #aaa;
}

.header-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3dafaa;
    border: none;
    border-radius: 40px;
    padding: 10px 16px;
    cursor: pointer;
    transition: ease 0.3s;
    min-width: 44px;
}

.header-search__btn:hover {
    background-color: #2e9490;
}

.header-search__btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- 検索結果ページ --- */
.search-results__title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 4px dotted #de5b44;
}

/* Google CSE ウィジェットの幅調整 */
.search-results .gsc-control-cse {
    padding: 0 !important;
}

.search-results .gsc-input-box {
    border-radius: 8px !important;
}

.search-results .gsc-search-button-v2 {
    border-radius: 8px !important;
    padding: 10px 20px !important;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 1024px) {
    .header-search-pc {
        display: none;
    }

    .header-search-sp {
        display: block;
    }

    .search-results .tl-Contents__datail__wrapper {
        margin-left: 0;
        margin-right: 0;
    }
}