html{
    font-family: "Shippori Mincho", serif;
    letter-spacing: 0.2em;
    line-height: 1.8em;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

p{
    font-size: 16px;
}

header{
    height: 80vh;
    background-image: url(../images/top_back.webp);
    background-size: cover;
    background-position: center;
    display: flex;           /* Flex 親にして中央揃えを可能にする */
    justify-content: center; /* 横方向中央 */
    align-items: center;     /* 縦方向中央 */
    position: relative;
}

header img{
    padding-top: 100px; /* 横方向中央寄せ */
    max-width: 90%;  /* 小さい画面で収まるように最大幅を制限 */
    width: 500px;    /* 基本の表示幅（index.html と整合） */
    height: auto;
    position: absolute;
}

/* about セクション */
.about{
    background-image: url(../images/about_back.webp);
    background-size: cover;
    background-position: center;
    text-align: center; /* セクション内のインライン要素を中央に */
}

.about_caption img{
    display: block;
    margin: 0 auto;
    width: 1250px;
    padding-top: 50px;
}



.about_container{
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 100px;
    flex-wrap: wrap;
}

.about_text1 img{
    width: 320px;
}

.about_text2 img{
    width: 320px;
    margin-left: 35px;
}

a.about_2btn:hover{
    opacity: 0.5;
    transition: 0.5s;
}

a.about_btn{
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 4em;
    margin-bottom: 4em;
    padding: 0.7rem 2rem;
    border: 2px solid #D3B083;
    background: #D3B083;
    color: #fff;
    border-radius: 100vh;
    transition: 0.5s;
    box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.2);
}

a.about_btn:hover,
a.about_btn:focus-visible{
    background: #fff;
    color: #D3B083;
    border-color: #D3B083;

}

/* 1tap セクション */

.search_1tap{
    background-image: url(../images/1tap_back.webp);
    background-size: cover;
    background-position: center;
}

.search_1tap h4{
    padding-top: 50px;
    font-size: 20px;
    text-align: center;
    color: #fff;
    font-weight: 500;
}

.search_flex img{
    width: 400px;
}

.search_flex{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 50px;
}
/* 6item セクション */

.serch_6item{
    background-size: cover;
    background-position: center;
}

.search_results{
    background-image: url(../images/results_back.webp);
    background-repeat: repeat;
}

.results_bar{
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #D3B083;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 50px;
}
.results_count{
    position: relative; /* 擬似要素の絶対配置を親基準にする */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: #ffffff;
    color: #333333;
    /* 右側に重ねる擬似要素分の余白を確保するため右パディングを広めに */
    padding: 12px 72px 12px 14px;
    border-radius: 999px; /* 丸角 */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12); /* 軽い影 */
    max-width: 760px; /* 幅を制限 */
    margin: 0 auto;
}

.results_count p{
    margin: 0;
    font-size: 16px;
    color: #6b6b6b; /* 絞り込み条件テキストの薄い色 */
    overflow: hidden;
    white-space: nowrap;
}

.results-research{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0px; /* 親の外にはみ出して被せる */
    display: inline-flex;
    align-items: center; /* アイコンとテキストを縦中央揃え */
    justify-content: center;
    height: calc(100%);
    padding: 0 20px;
    font-size: 16px;
    color: #fff;
    background-color: #B03B3B;
    border-radius: 0 999px 999px 0; /* 完全な丸形のピル */
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.results-research:hover {
    opacity: 0.8;
}

.results-research i{
    display: inline-flex; /* アイコンもflexで中央揃え */
    align-items: center;
    justify-content: center;
    line-height: 0; /* ベースラインずれを抑える */
    margin-right: 8px; /* アイコンとテキストの間隔 */
}

/* 小さい画面ではオーバーラップ量を控えめに */
@media screen and (max-width: 480px) {
    .results_count{
        padding: 10px 56px 10px 12px;
    }
    .results-research{
        right: -4px;
        padding: 0 14px;
        font-size: 14px;
        height: calc(100% + 4px);
    }
}

footer{
    background-color: #D3B083;
    text-align: center;
}

footer img{
    display: block;
    margin: 0 auto;
    padding: 30px 0;
    width: 250px;
}

.results_count p span.is-overflowing {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.goto-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: opacity 0.3s;
}

.goto-top-button:hover {
    opacity: 0.7;
}

.goto-top-button img {
    width: 60px;
    height: auto;
    display: block;
}