/* ==========================================================
   ヒーロー内の検索モック → 実際の検索フォームへのリンク化
   ========================================================== */
a.search-bar-mock {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.search-bar-mock:hover {
    transform: translate(-50%, -54%);
    box-shadow: 0 10px 24px rgba(0, 175, 43, 0.35);
}
.search-bar-hint {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 1.3rem;
    font-weight: 700;
    color: #00af2b;
    background: #ffffff;
    padding: 0.4rem 1.4rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 11;
    transition: opacity 0.5s ease;
    animation: hintBounce 1.4s ease-in-out infinite;
}
.search-bar-hint.is-visible {
    opacity: 1;
}
@keyframes hintBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 5px); }
}

#liveSearchInput.is-highlighted {
    animation: liveSearchPulse 1.6s ease;
}
@keyframes liveSearchPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 175, 43, 0.5); }
    100% { box-shadow: 0 0 0 14px rgba(0, 175, 43, 0); }
}

@media (max-width: 767px) {
    .search-bar-hint { font-size: 1.1rem; top: 66%; }
}

/* ==========================================================
   実際に検索してみる（直近1週間のTVメタデータDBに対するライブ検索）
   ========================================================== */
.live-search {
    background: #e1f3e7;
    padding: 6rem 0;
}
.live-search .container {
    padding: 0;
    max-width: 960px;
}
.live-search-title {
    font-weight: 600;
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    text-align: center;
}
.live-search-lead {
    text-align: center;
    margin-bottom: 3.2rem;
    line-height: 1.8;
}
.live-search-form {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border: 3px solid #00af2b;
    border-radius: 32px;
    padding: 0.4rem 0.6rem 0.4rem 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.live-search-form .search-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 0.8rem;
    display: flex;
    align-items: center;
}
.live-search-form .search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.live-search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.6rem;
    padding: 1rem 0;
    background: transparent;
    font-family: inherit;
}
.live-search-form button {
    background: #00af2b;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 1rem 2.4rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.live-search-form button:hover {
    opacity: 0.85;
}
.live-search-period {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 1.6rem;
    color: #ff0000;
    background: #ffe9e9;
    font-weight: bold;
    width: fit-content;
    margin: 1.4rem auto;
    padding: 0;
}
.live-search-status {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #777;
    min-height: 1.5em;
}
.live-search-result {
    margin-top: 3.2rem;
}
.live-search-summary {
    /* background: #fff; */
    border-radius: 4px;
    /* padding: 2rem 2.4rem; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    margin-bottom: 2.4rem;
}
.live-search-summary .total {
    font-size: 2rem;
    font-weight: 700;
    color: #00af2b;
    margin-bottom: 1.2rem;
}
.live-search-summary .total strong {
    font-size: 2.6rem;
    margin: 0 0.2rem;
}
.live-search-summary .station-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.live-search-summary .station-chips span {
    background: #ffffff;
    color: #00af2b;
    border-radius: 16px;
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}
.live-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.live-search-list li {
    background: #fff;
    border-radius: 4px;
    padding: 1.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
}
.result-thumb {
    position: relative;
    flex: none;
    width: 128px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    margin-right: 8px;
}
.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.result-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.6rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.result-thumb-tag {
    position: absolute;
    left: 2px;
    bottom: 2px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}
.live-search-list .result-body {
    width: 100%;
}
.live-search-list .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.live-search-list .meta .datetime {
    font-size: 1.8rem;
    /* color: #999; */
    font-weight: 700;
}
.live-search-list .meta .area {
    background: #e6f0ff;
    color: #2461c7;
    border-radius: 4px;
    padding: 0.2rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.live-search-list .meta .station {
    background: #666666;
    color: #fff;
    border-radius: 4px;
    padding: 0.2rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.live-search-list .details {
    display: flex;
}
.live-search-list .thumbnail {
    width: 142px;
    min-width: 142px;
    height: 80px;
    background:#EEE;
    margin-right: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.live-search-list .program {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.live-search-list .corner {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 0.6rem;
    border-bottom: solid 1px #dadada;
    width: 100%;
}
.live-search-list .snippet {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.7;
}
.live-search-list mark {
    background: #f8f900;
    /* color: #00791d; */
    font-weight: 700;
    border-radius: 2px;
}

.live-search-more {
    margin-top: 2.8rem;
    text-align: center;
    /* background: linear-gradient(180deg, #fff, #f3fdf4); */
    /* border: 2px dashed #00af2b; */
    border-radius: 16px;
    padding: 2.8rem 2rem;
}
.live-search-more-text {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.6rem;
}
.live-search-more-btn {
    display: inline-block;
    background: #ff3b00;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 1.2rem 3.2rem;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 59, 0, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.live-search-more-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .live-search { padding: 4.8rem 0; }
    .live-search .container {padding: 0 1.6rem;}
    .live-search-title {font-size: 2.2rem;}
    .live-search-form { max-width: 100%; padding-left: 1.2rem; }
    .live-search-form input[type="text"] {font-size: 1.6rem;}
    .live-search-form button { padding: 0.9rem 1.6rem; font-size: 1.3rem; }
    .live-search-summary {/* padding: 1.6rem; */}
    .live-search-lead { text-align: left; }
    .live-search-list .meta .datetime { width:100%; }
    .live-search-list .details { flex-wrap:wrap}
    .live-search-list .thumbnail {margin: 1rem 0;}
    .live-search-list .result-thumb {width: 100%;height: auto;margin: 0 0 1rem;}
    .live-search-more-btn { padding: 1.2rem 2rem;}
    .live-search-more-text {font-size: 1.6rem;}
    .live-search-list li { flex-wrap: wrap;}
}