/* タイトル部分 */
.info-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

/* サブタイトルやその他の情報 */
.info-subtitle,
.info-description {
    font-size: 14px;
    margin: 5px 0;
}

/* 「Google Mapで開く」のリンク */
.info-link {
    display: block;
    text-align: center;
    background-color: #ff5722;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

.info-link:hover {
    background-color: #e64a19;
}

.icon-scroll-container {
    position: absolute;
    overflow: hidden;
    width: 93%;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.icon-container {
    position: relative;
    /* absolute → relative に変更 */
    margin: 0 auto;
    /* 中央寄せ */
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    border-radius: 16px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    display: flex;
    align-items: center;
    /* スクロールバー非表示用 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE, Edge */
}

.icon-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}


/* コンテンツ（文字や画像） */
#icon-list {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 16px;
    border: 1px solid white;
    margin: auto;
}

/* アイコン＋文字セット */
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    padding: 5px;
    border-radius: 8px;
}

.icon-item img {
    transition: filter 0.3s;
}

.icon-item.active img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(73%) saturate(3688%) hue-rotate(347deg) brightness(105%) contrast(101%);
}

.icon-item.active {
    box-shadow: 0 0 4px gray;
}

.icon-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 4px;
}

.icon-item span {
    font-size: 10px;
    color: #333;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ★オレンジにしたいときはactiveクラスを付ける！ */
.icon-item.active {
    background-color: white;
}

.icon-item.active span {
    color: #ff5722;
    font-weight: 600;
}

.icon-item.active svg {
    fill: #ff5722;
    /* active時はオレンジ */
}


/* スクロールボタン（→） */
.icon-scroll-button,
.icon-scroll-back-button {
    position: fixed;
    top: 50%;
    /* 画面の中央 */
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 999;
    /* 必要に応じて */
    color: black;
    width: 30px;
    height: 30px;
}

.icon-scroll-button {
    right: 0;
}

.icon-scroll-back-button {
    left: 0;
}

.icon-scroll-button::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 3px solid #7a0;
    border-right: 3px solid #7a0;
}

.icon-scroll-back-button::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-135deg);
    /* ← ↖（左上向き） */
    width: 12px;
    height: 12px;
    border-top: 3px solid #7a0;
    border-right: 3px solid #7a0;
}

.icon-scroll-button:hover,
.icon-scroll-back-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

@media (min-width: 768px) {


    /* 検索入力 */
    #search-input {
        width: 300px;
        font-size: 1.3rem;
    }
}

@media (min-width: 1000px) {
    .icon-scroll-button {
        display: none;
    }
}
