@charset "UTF-8";

/* ========================================
   Search Modal
   ======================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.is-open {
    display: flex;
}

.search-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.search-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #F5EDE0;
    /* 画像のベージュ背景 */
    padding: 80px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .search-modal__content {
        padding: 60px 20px;
    }
}

.search-modal__close {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 64px;
    height: 64px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-modal__close:hover {
    opacity: 0.7;
}

@media screen and (max-width: 1080px) {
    .search-modal__close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
}

.search-modal__close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #333;
    display: block;
}

.search-modal__close span:nth-child(1) {
    transform: rotate(45deg);
}

.search-modal__close span:nth-child(2) {
    transform: rotate(-45deg);
}

@media screen and (max-width: 1080px) {
    .search-modal__close span {
        width: 18px;
    }
}

.search-modal__title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

@media screen and (max-width: 600px) {
    .search-modal__title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

.search-modal__field {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 50px;
    padding: 5px 25px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.search-modal__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 15px;
}

.search-modal__icon img {
    width: 16px;
    height: auto;
    opacity: 0.6;
}

.search-modal__input {
    flex: 1;
    height: 50px;
    border: none;
    background: none;
    font-size: 1.8rem;
    color: #333;
}

.search-modal__input:focus {
    outline: none;
}

.search-modal__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
    background-size: contain;
    cursor: pointer;
}

.search-modal__input::placeholder {
    color: #aaa;
}

.search-modal__actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.search-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    height: 70px;
    border: none;
    border-radius: 35px;
    background: linear-gradient(135deg, #FF665A 0%, #FFBD59 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    padding-left: 20px;
}

.search-modal__submit:hover {
    opacity: 0.8;
}

.search-modal__submit-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../img/icon/arrow-icon.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========================================
   Search Results Page
   ======================================== */
.search-results {
    padding: 60px 0 100px;
    min-height: 60vh;
}

@media screen and (max-width: 1080px) {
    .search-results {
        padding: 40px 0 80px;
    }
}

.search-results__header {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.search-results__title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

@media screen and (max-width: 600px) {
    .search-results__title {
        font-size: 2.2rem;
    }
}

.search-results__count {
    font-size: 1.4rem;
    color: #666;
}

.search-results__list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.search-results__item {
    max-width: 800px;
}

.search-results__item-breadcrumb {
    font-size: 1.2rem;
    color: #006621;
    /* Google search result breadcrumb/URL color */
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.search-results__item-breadcrumb span {
    display: inline-block;
}

.search-results__item-breadcrumb .sep {
    margin: 0 5px;
    font-size: 1rem;
    color: #999;
}

.search-results__link {
    text-decoration: none;
    display: block;
}

.search-results__link:hover .search-results__item-title {
    text-decoration: underline;
}

.search-results__item-title {
    font-size: 2rem;
    color: #1a0dab;
    /* Google search result title color */
    margin-bottom: 5px;
    line-height: 1.3;
}

@media screen and (max-width: 600px) {
    .search-results__item-title {
        font-size: 1.8rem;
    }
}

.search-results__excerpt {
    font-size: 1.4rem;
    color: #4d5156;
    line-height: 1.6;
    margin-bottom: 5px;
}

.search-results__url {
    font-size: 1.2rem;
    color: #202124;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-results__pagination {
    margin-top: 60px;
}

.search-results__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-results__pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

.search-results__pagination .page-numbers.current {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.search-results__pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

.search-results__no-results {
    text-align: center;
    padding: 40px 0;
}

.search-results__search-again {
    margin-top: 30px;
    max-width: 600px;
    margin-inline: auto;
}

.search-results__field {
    display: flex;
    align-items: center;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
}

@media screen and (max-width: 1080px) {
    .search-results__field {}
}

@media screen and (max-width: 768px) {
    .search-results__field {}
}

@media screen and (max-width: 600px) {
    .search-results__field {
        padding: 5px;
    }
}

.search-results__field:hover {
    border-color: #999;
}

.search-results__input {
    flex: 1;
    height: 40px;
    border: none;
    background: none;
    font-size: 1.6rem;
    padding: 0 10px;
}

@media screen and (max-width: 1080px) {
    .search-results__input {}
}

@media screen and (max-width: 768px) {
    .search-results__input {}
}

@media screen and (max-width: 600px) {
    .search-results__input {
        font-size: 1.4rem;
    }
}

.search-results__input:focus {
    outline: none;
}

.search-results__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
    background-size: contain;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
}

.search-results__submit {
    background-color: #333;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
    padding: 0 20px;
    height: 40px;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 1.4rem;
}

@media screen and (max-width: 1080px) {
    .search-results__submit {}
}

@media screen and (max-width: 768px) {
    .search-results__submit {}
}

@media screen and (max-width: 600px) {
    .search-results__submit {
        padding: 0 15px;
        font-size: 1.3rem;
    }
}

.search-results__submit:hover {
    background-color: #555;
}