:root {
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bottom: env(safe-area-inset-bottom, 34px);
}

html,
body {
    font-size: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #212121;
    scroll-behavior: smooth;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    font-feature-settings: "palt";
    -webkit-font-feature-settings: 'palt';
    /* Pull to refresh無効 */
    overscroll-behavior: none;
    /* 縦横スクロールタッチはOK、スワイプによるズームなどを防ぐ */
    touch-action: pan-x pan-y;
}

html.no-smooth,
body.no-smooth {
    scroll-behavior: auto !important;
}

body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    /* 横スクロールは防ぐ */
    overflow-x: hidden;
    /* 縦スクロールを許可 */
    overflow-y: auto;
}

div,
p,
h1,
h2,
h3,
h4,
ul {
    margin: 0;
    padding: 0;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 2.6rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

p {
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 500;
}

body.-popupOpen,
html.-popupOpen {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

body.-menuOpen,
html.-menuOpen {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

a,
a:hover,
a:visited {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

/* 共通 */
.wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.no-select {
    -ms-user-select: none;
    /* IE 10+ */
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

/* メイン */
/* コンテナ */
.container {
    padding: 0 20px;
    margin: 0 auto;
    max-width: 500px;
}

.container__rightText {
    display: flex;
    justify-content: flex-end;
}

/* ログアウト */
.container__logout {
    width: 100%;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logoutBtn {
    width: 40%;
    height: 50px;
    background: #ffffff;
    border-radius: 50px;
    align-items: center;
    margin: 0 auto;
    font-size: 1.0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: solid 1px #222222;
    font-weight: 700;
    color: #696969;
}

/********** ヘッダー **********/
.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    transition: transform 0.3s ease;
    z-index: 1000;
}


/* メニュー */
.menuWrapper {
    position: absolute;
    top: 2vh;
    top: 2dvh;
    right: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 500px;
    pointer-events: none;
    z-index: 1001;
}

.menu__button {
    position: fixed;
    top: 2vh;
    top: 2dvh;
    right: 20px;
    width: 44px;
    height: 44px;
    pointer-events: auto;
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu__button:focus {
    outline: none;
}

.menu__button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* ×ボタン用のスパン要素 */
.menu__button span {
    display: none;
    width: 25px;
    height: 25px;
    font-size: 20px;
    background: #212121;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    margin: auto;
    font-weight: bold;
}

/* メニュー表示時のボタン切り替え */
.-menuOpen .menu__button img {
    display: none;
}

.-menuOpen .menu__button span {
    display: block;
}

/* フェード用オーバーレイ（背景を暗くする） */
.menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.-menuOpen .menu__overlay {
    opacity: 0.3;
    pointer-events: auto;
}

/* メニュー本体 */
.menu__list {
    position: fixed;
    top: 10px;
    right: 20px;
    background: #212121;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 1.8rem;
    z-index: 1001;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.-menuOpen .menu__list {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.menu__list ul {
    list-style: none;
    margin: 0;
    padding: 40px 0;
}

.menu__list li {
    padding: 8px 16px;
}

.menu__list li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    display: block;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 0.2s ease, color 0.2s ease;
    transform-origin: left;
}

.menu__list li a:hover,
.menu__list li a:active,
.menu__list li a:focus {
    transform: scale(1.1);
}


/********** ページ下部広告バナー **********/
.bannerArea {
    position: fixed;
    /* height: 8vh;
    height: 8dvh; */
    width: 100%;
    max-width: 100%;
    bottom: 0;
    left: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    /* 最初は画面下に隠す */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    /* 非表示時のクリック防止 */
    background-color: #fff;
}

.bannerArea a {
    text-decoration: none;
    width: 100%;
    height: auto;
    /* max-height: 50px; */
}

.bannerArea a img {
    width: 100%;
    height: auto;
    /* max-height: 50px; */
    display: block;
}

@media screen and (min-width: 768px) {
    .bannerArea a {
        max-height: 90px;
    }

    .bannerArea a img {
        max-height: 90px;
    }
}

.bannerArea.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.banner__btn--close {
    position: absolute;
    top: 0px;
    right: 0px;
    /* background: rgba(0, 0, 0, 1); */
    /* color: #fff; */
    border: none;
    width: 20px;
    height: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

/* マップボタン */
.mapBtn {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 10px 0;
    height: 40px;
}

.mapBtn__btn {
    width: 180px;
    height: 30px;
    border: solid 1px #222222;
    background: #ffffff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    color: #696969;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

/* スポット情報ポップアップ */
.popup__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup__overlay.-hidden {
    display: none;
}

.spotPopup__content {
    background: #fff;
    width: 90%;
    height: 90vh;
    height: 90dvh;
    max-width: 500px;
    padding: 20px 20px 40px;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-sizing: border-box;
}

.spotPopup__content h1 {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.3;
    margin: 1rem 0;
}

.spotPopup__content h2 {
    font-size: 1.8rem;
    font-weight: bold;
}

.spotPopup__content h3,
.machiTriviaSubTitle {
    font-size: 1.6rem;
    font-weight: bold;
}

.spotImage{
    padding: 10px;
}
   
.spotDescriptionText {
    line-height: 1.8;
}

.machiTriviaTopArea {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
    gap: 10px;
}

.machiTriviaIcon {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.machiTriviaIcon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.machiTriviaSubTitle {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
}

.spotPopupCloseBtnArea {
    position: sticky;
    display: flex;
    justify-content: flex-end;
    z-index: 2001;
    top: 0;
}

.spotPopupCloseBtn {
    position: relative;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 1px solid #212121;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.spotPopupCloseBtn::before,
.spotPopupCloseBtn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #212121;
    transform-origin: center;
}

.spotPopupCloseBtn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.spotPopupCloseBtn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.spotPopupCloseBtn:hover {
    border-color: #e60073;
}

.spotPopupCloseBtn:hover::before,
.spotPopupCloseBtn:hover::after {
    background-color: #e60073;
}

.spotPopup__presentSection {
    background-color: #ffff00;
    margin-top: 20px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.presentItems {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
}

@media screen and (min-width: 768px) {
    .presentItems {
        padding: 30px 35px;
    }
}

.presentItems__image {
    width: 100%;
    object-fit: contain;
}

.presentItems__image img {
    width: 100%;
    margin: 0 auto;
}

.presentItems__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    width: 100%;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
}

.presentItem {
    min-width: 100px;
}

.presentDetail__presentImage {
    text-align: center;
    margin-top: -10px;
    margin-right: -10px;
}

.presentDetail__presentImage img {
    width: 100%;
    height: auto;
}

.presentItem .-highlight {
    color: #ff94d1;
}

.spotPopup__spotDescription {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotImage img {
    width: 100%;
    height: auto;
}

/********** フッター **********/
.footer {
    background-color: #409ecc;
    padding-bottom: calc(14vh + 30px);
    padding-bottom: calc(14dvh + 30px);
}

.footer__inner {
    margin: 0 auto;
}

.footer ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.footer li {
    padding: 3%;
}

.footer a {
    text-decoration: none;
    color: inherit;
}

.footer__inner p {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 3rem;
}


@media screen and (max-width: 428px) {

    /* iPhone 12 Pro Max/13 Pro Max/14plus */

    /* バナー */
    .bannerArea {
        position: fixed;
        /* height: 8vh;
        height: 8dvh; */
        width: 100%;
        bottom: 0;
        left: 0;
        text-align: center;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bannerArea__text {
        font-weight: bold;
        color: #222222;
        font-size: 22px;
        background-color: #FFFFFF;
        padding: 10px 30px;
    }
}

/* ポップアップのスタイル */
#popupContainer {
    display: none;
}

.popup__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.popup__title {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.popup__content p {
    text-align: left;
    margin-bottom: 30px;
}

.popup__buttons {
    display: flex;
    justify-content: space-around;
}

.popup__button {
    font-size: 1.3rem;
    padding: 8px;
    border: none;
    border-radius: 5px;
    width: 45%;
    font-weight: 700;
}

.popup__button--cancel {
    background-color: #fff;
    border: 1px solid #ccc;
}

.popup__button--confirm {
    background-color: #FF94D1;
    color: #fff;
}

/* 別タブで開かれましたメッセージ */
.duplicate {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}