@import 'variables.css';

.header-container {
    top: 0;
    width: 100%;
    height: 60px;
    position: fixed;
    max-width: 576px;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease; /* シャドウのスムーズな切り替え */
}

.header-container.scrolled {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2); /* スクロール後のシャドウ */
}

.header-icon-container,
.header-menubutton-container {
    flex: 0 0 40px; /* 幅を固定 */
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

.tour-header-name-container {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 0 30px; /* 文字数超過の省略記号elipsisを適用するために必要な余白 */
}

.header-name-container {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 0 50px; /* 文字数超過の省略記号elipsisを適用するために必要な余白 */
}

@media (max-width: 575px) {
    .tour-header-name-container {
        width: calc(100% - 80px);
        padding: 0 30px; /* 文字数超過の省略記号elipsisを適用するために必要な余白 */
    }
    .header-name-container {
        width: calc(100% - 80px);
        padding: 0 50px; /* 文字数超過の省略記号elipsisを適用するために必要な余白 */
    }
}

@media (min-width: 576px) {
    .tour-header-name-container {
        width: calc(100% - 100px);
        padding: 0 40px; /* 文字数超過の省略記号elipsisを適用するために必要な余白 */
    }
    .header-name-container {
        width: calc(100% - 100px);
        padding: 0 60px; 
    }
}

.spot-number-label,
.drop-number-label,
.gem-number-label {
    display: flex;
    width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 16px; 
    justify-content: center;
    align-items: center;
    text-align: center;
    text-indent: 1px;
    line-height: 32px;
    padding-top: 0.5px;
}

.spot-number-label {
    background-color: var(--spot-color);
}

.drop-number-label {
    background-color: var(--drop-color);
}

.gem-number-label {
    background-color: var(--gem-color);
    border-radius: 16px;
    width: 58px;
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.gem-number-hyphen {
    margin: 0 1px;
}

.tour-symbol-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-left: 10px;
}

.tour-symbol-icon svg {
    width: 28px;
    height: 28px;
    fill: #FF3836;
    position: relative;
}

.back-icon {
    transform: rotate(180deg);
}

.menu-list-icon svg {
    width: 32px;
    height: 32px;
    fill: black;
    position: relative;
    outline: none;
}

.name-line {
    display: block;
    max-width: calc(100%);
    margin-top: 10px;
    color: #000;
    line-height: 1.2;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最大2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* 長い場合に省略記号を表示 */
    white-space: nomal; /* 折り返しを許可 */
}

.mainname-line,
.subname-line {
    display: block;
    max-width: calc(100%);
    line-height: 1.3; /* 行間を詰める */
    max-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 折り返さず、省略 */
}

.mainname-line {
    margin-top: 10px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.subname-line {
    font-size: 15px;
    color: #909090;
    font-weight: 600;
}

