/* 地図下の余白 */
main {
    margin-top: 30%;
    padding-bottom: 25%;
}

.map-container {
    position: relative !important; 
    display: block;
    width: 100%;
    min-width: 300px;  /* ここは画像に合わせて変更 */
    max-width: 1400px;  /* 上に同様 */
    margin-bottom:30px;

    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba(0,0,0,.08),
        0 2px 6px rgba(0,0,0,.04);
}

/*#campus-map {
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}*/

.map-container img {
    display:block;
    width: 100%;
    height: auto;
    width:100%;
}

.scroll {
    width: 100%;
    overflow: hidden;

    padding: 0 16px;
    box-sizing: border-box;
}

.pin-comment-back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.comment-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: rgb(94, 94, 94);
    font-weight: bolder;
    padding: 10px;
    border-radius: 15px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    font-size: 1.2em;
}

.comment-details span {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
    color: #666;
}

.camera-icon-wrapper {
    background: linear-gradient(120deg, rgb(98, 137, 255), #46d7ac);
    background-size: 100% 60%, 100% 60%;
    background-position: bottom, bottom;
    background-repeat: no-repeat;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 18%;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 20;
}

.icon{
    font-size: 400%;
    color: white;
    background: linear-gradient(120deg, rgb(82 125 255), #35c79c);
    border: 5px solid #fff;
    padding: 5%;
    border-radius: 50%;
}

.camera-wrapper {
    bottom: 0;
    right: 0;
    position: fixed;
    margin: 0 8% 5% 0;
    color: #ffffffe3;
    font-size: 100%;
    z-index: 21;
    display: flex;
    align-items: center;
    gap: 0.2em
}

.camera-wrapper span {
     font-size: 65%;
}

.guide-icon {
    line-height: 1;
}

.input-form {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.input-form button {
    width: 50%;
    height: 70px;
    padding: 0px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    border-radius: 70px;
    background-color: #6ba1e2;
    border: none;
    box-shadow: 5px 5px 4px #c1c0c0;
    transition: 0.3s;
    justify-content: center;
    align-items: center;
}

#secret-anchor{
    width:75%;
    height:64px;

    border:none;
    border-radius:999px;

    font-weight:700;
    font-size:20px;

    background:
        linear-gradient(
            135deg,
            #6a90ff,
            #5ed5bf
        );

    box-shadow:
        0 8px 18px rgba(106,144,255,.25);

    color:white;
}

#secret-anchor:disabled{
    filter: grayscale(50%);
}

/* マップピン */
.stamp {
    width: 8vw;
    height: 8vw;
    border: 3px solid #4f8cff;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(79,140,255,.25),
        0 4px 10px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4vw;
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    color: #888;
    font-weight: bold;
    user-select: none;
}

/*アニメーション用*/
.stamp {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.stamp.checked {
    border: 2px solid rgb(120, 170, 249);
    background: #e2eaff;
    color: rgb(90, 138, 204);
    position: absolute;
    font-weight: bold;
    line-height: 1;
    animation: none;
}

/* PC用 */
@media (min-width: 1024px) {
    .map-container {
        margin-left: auto;
        margin-right: auto;
    }

    .stamp {
        width: 80px;
        height: 80px;
        border: 2px dashed #a5a5a5;
        font-size: 50px;
    }
}

/* チュートリアル用↓ */
.driver-popover{
    overflow: hidden !important;
    max-width: 340px !important;
    border-radius: 24px !important;

    padding: 24px !important;
    padding-top:60px !important;

    background: #fff !important;
    box-shadow:
        0 12px 40px rgba(0,0,0,.15) !important;
}

.driver-popover-arrow {
    display: none;
}

/* タイトルの文字サイズ調整 */
.driver-popover-title{
    text-align:center !important;
    font-size:18px !important;

    padding-bottom:12px !important;
    margin-bottom:16px !important;

    border-bottom:4px solid transparent;

    border-image:
        linear-gradient(
            90deg,
            #6a90ff,
            #5ed5bf
        ) 1;
}

/* 説明文の文字サイズ調整 */
.driver-popover-description {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
}

/* 下側のボタンエリア */
.driver-popover-footer {
    background-color: #ffffff !important;
    padding: 0 !important;
    margin-top: 16px !important;
}

/* ページ数（1 of 5）の文字位置調整 */
.driver-popover-progress {
    font-size: 11px !important;
    color: #999 !important;
}

.driver-popover-footer button {
    text-shadow: none !important;
}
.driver-popover-next-btn {
    background:
      linear-gradient(
        135deg,
        #6a90ff,
        #5ed5bf
      ) !important;

    border: none !important;

    color: white !important;

    padding: 10px 18px !important;

    border-radius: 999px !important;
}

.driver-popover-prev-btn {
    background: #f3f4f6 !important;
    color: #666 !important;

    border: none !important;

    border-radius: 999px !important;
}

/* スキップリンクの見た目調整 */
.tutorial-skip-link {
    display: block;
    text-align: right;       /* 右寄せにする */
    font-size: 12px;         /* 文字を少し小さく */
    color: #888888;          /* 目立ちすぎないグレー */
    text-decoration: underline; /* 下線を引く */
}
.tutorial-skip-link:hover {
    color: #555555;          /* ホバー時に少し暗く */
}


/*チュートリアルスキップデザイン*/
.tutorial-skip-btn {
    position: absolute;
    top: 12px;
    right: 14px;

    min-width: 140px;

    padding: 8px 14px;

    background: #f3f4f6;

    border: none;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    color: #666;

    cursor: pointer;

    z-index: 9999;
}

/* ボタンの変換 */
.driver-popover-close-btn::before {
    content: "チュートリアルをスキップ";

    font-size: 12px !important;
    font-weight: 700 !important;

    white-space: nowrap !important;

    color: #666 !important;
}