.header-wrapper{
    max-width: 860px;
    margin-inline: auto;
}

.header-top{
    display: flex;
    gap: .5rem;
}

#stats{
    text-align: right;
}

.main-content{
    max-width: 860px;
    margin-inline: auto;
    height: 100%;
    padding: 0 1rem 1rem;
    border-radius: 1rem 1rem 0 0;
    @media screen and (max-width: 991px) {
       padding-inline: 4rem;
    }
    @media screen and (max-width: 767px) {
        padding-inline: 1rem;
    }
}

.empty{
    color: var(--c-gray);
    margin-top: 16px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.card{
    background-color: var(--c-white);
    border-radius: .5rem;
    padding: 1rem;
    @media screen and (max-width: 991px) {
       padding: 2rem;
    }
    @media screen and (max-width: 767px) {
        padding: 1rem;
    }
}

.tag {
    display: inline-block;
    font-size: 14px;
}

.tag>span{
    color: var(--c-main-color);
}

.tag-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-gray);
}

.swipe-main .tag-wrap{
    border-bottom: 0;
    padding-bottom: 0;
}

.actions{
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding: 1rem 1rem 1rem;
    border-top: 1px solid var(--c-gray);
}

.meta{
    margin-top: .75rem;
}

.meta.time{
    display: block;
    margin-top: 0;
    font-size: .75rem;
    width: 100%;
}

.detail-wrapper .meta.time{
    text-align: right;
}

#view{
    margin-inline: 1rem;
    @media screen and (max-width: 991px) {
       margin-inline: 4rem;
    }
    @media screen and (max-width: 767px) {
        margin-inline: 1rem;
    }
}

.detail-wrapper{
    padding-bottom: 2rem;
    /* width: 90%; */
    max-width: 860px;
    margin-inline: auto;
    @media screen and (max-width: 991px) {
       margin-inline: 4rem;
    }
    @media screen and (max-width: 767px) {
       margin-inline: 1rem;
    }
}

#notfound{
    margin-bottom: 2rem;
      max-width: 860px;
    margin-inline: auto;
    @media screen and (max-width: 991px) {
       margin-inline: 4rem;
    }
    @media screen and (max-width: 767px) {
       margin-inline: 1rem;
    }
}

#view.card{
    padding: 2rem;
    padding-bottom: 2rem;
    margin-inline: auto;
    border-radius: 18px;
    @media screen and (max-width: 991px) {
        padding: 2rem;
    }
    @media screen and (max-width: 768px) {
        padding: 1rem 1rem 2rem;
    }
    /* @media (prefers-color-scheme: dark) {
        background-color: var(--c-sub-color);
        color: var(--c-white);
    } */
}

.link-wrapper{
    margin-top: .5rem;
}

.link-wrapper a{
    text-decoration: underline;
    transition: .3s;
}

.image-wrap{
    margin-bottom: 2rem;
}

.photo {
    width: 100%;
    border-radius: .75rem;
}

.header-top-wrap{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
    @media screen and (max-width: 991px) {
       margin: 0 4rem;
    }
    @media screen and (max-width: 767px) {
        margin: 0 1rem;
    }
}

.settings-link{
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.done.swipe-front::before{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.05);
    pointer-events: none;
}

.done .swipe-main{
    /* @media (prefers-color-scheme: dark) {
        text-decoration: line-through;
    } */
}

.muted {
    color: var(--c-gray-text);
}

.hint {
    color: var(--c-gray-text);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

strong{
    font-size: 24px;
    font-weight: 700;
    @media screen and (max-width: 991px) {
         font-size: 1.25rem;
     }
}

.main-title{
    margin-bottom: 1rem;
}

/* menu */
.more-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--c-gray);
  background: var(--c-white);
  font-size: 22px;
  line-height: 1;
}

.menu-overlay{
  display: block;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease, visibility 0s linear 0s;
}

/* ポップオーバー本体 */
.menu-sheet{
  position: absolute;
  width: 220px;
  background: var(--c-white);
  border-radius: 14px;
  border: 1px solid var(--c-gray);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

.menu-overlay.is-open .menu-sheet {
  opacity: 1;
}

/* メニュー項目 */
.menu-item{
        display: flex;
    align-items: center;
    gap: .25rem;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: var(--c-white);
  text-align: left;
  font-size: 15px;
  /* @media (prefers-color-scheme: dark) {
    background: #4c4c4c;
    color: var(--c-white);
} */
}
.menu-item + .menu-item{
  border-top: 1px solid var(--c-gray);
}
.menu-item.danger{
  color: var(--c-red);
  font-weight: 700;
}

#moreBtn{
    border: 0;
}

.toggle-done{
    margin-top: .5rem;
}

.icon-plus{
    position: relative;
}

.add-button{
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-plus{
    position: relative;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.icon-plus::before,
.icon-plus::after{
    content: "";
    position: absolute;
    display: block;
    background-color: var(--c-white);
    border-radius: 9999px;
}

.icon-plus::before{
    top: 5px;
    left: 0;
    width: 10px;
    height: 1px;
}
.icon-plus::after{
    top: 1px;
    left: 4px;
    height: 10px;
    width: 1px;
}

.more-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: unset;
}

.thumb-wrap{
  width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
  @media screen and (max-width: 768px) {
        width: 100px;
        height: 100px;
    }
}

.thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
background: var(--c-gray);
}

.list-display{
    display: flex;
    gap: 1rem;
    padding: 1rem;
    max-width: 860px;
    margin-inline: auto;
    @media screen and (max-width: 991px) {
        padding-inline: 4rem;
    }
    @media screen and (max-width: 767px) {
        padding-inline: 1rem;
    }
}

.list-display a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    color: var(--c-gray);
    width: calc(50% - 0.5rem);
    height: 3rem;
    font-weight: 500;
    border-bottom: 1px solid currentColor;
}

.list-display a.current{
    color: var(--c-main-color);
}

.map-header-wrapper{
    gap: 1rem;
    padding: 1rem;
    background-color: var(--c-white);
}

.map-header{
    flex-grow: 1;
}

.map-header .meta{
    text-align: left!important;
}

.map-title{
     font-family: var(--f-en);
     color: var(--c-main-color);
}
.link-row .row {
  display: flex;
  gap: .5rem;
}
.link-row input {
  min-width: 0;
}

.link-list a{
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid var(--c-gray);
    border-radius: 9999px;
    cursor: pointer;
    transition: .3s;
}

.link-list a:hover{
    background-color: var(--c-sub-color);
}

.link-list a+a{
    margin-top: 4px;
}

.link-icon{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: var(--c-main-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.link-list a>span:not(.link-icon){
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    text-decoration: underline;
}

.detail-header{
    position: relative;
    display: flex;
    justify-self: center;
    align-items: center;
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
}

.detail-header h1{
    display: block;
    width: 100%;
    text-align: center;
}

.detail-header a{
    position: absolute;
    left: .5rem;
    top: 50%;
    aspect-ratio: 1;
    transform: translateY(-50%);
    @media screen and (max-width: 767px) {
        left: 1rem;
    }
}

.detail-title{
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.note{
    margin-top: 1.5rem;
}

.detail-title span{
    display: block;
    margin-bottom: 4px;
    font-family: var(--f-en);
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.05em;
     color: var(--c-main-color);
}

.detail-wrapper .place-name{
    margin-top: .5rem;
}

.swipe-front .place-name{
    margin-top: 1.25rem;
    gap: .5rem;
}

.swipe-front .map-address{
    margin-top: .75rem;
    gap: .5rem;
}

.place-name,
.map-address{
    display: flex;
    font-size: 1rem;
}

.place-name span,
.map-address span{
    display: flex;
    align-items: center;
}

.place-name svg,
.map-address svg{
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.place-name .head,
.map-address .head{
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    width: 7rem;
    border: 1px solid var(--c-gray);
    padding: 12px;
}

.place-name .text,
.map-address .text{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid var(--c-gray);
    flex-grow: 1;
    border-left: 0;
}

.detail-map{
    margin-top: 1rem;
}


.theme-section { margin-top: 8px; }
.section-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; color: var(--c-text); opacity: .9; }

.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.theme-card {
  border: 1px solid #CECECE;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  background: #fff;
  cursor: pointer;
}

.theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #CECECE;
  display: inline-block;
}

/* 選択状態 */
.theme-card:has(input:checked) {
  border-color: var(--c-main-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-main-color) 20%, transparent);
}

.theme-card:has(input:checked) .theme-dot {
  border-color: var(--c-main-color);
  background: var(--c-main-color);
}

.theme-name {
    color: var(--c-text);
    font-weight: 700;
}

.share-button{
    display: block;
    /* width: fit-content; */
    /* margin-right: 0;
    margin-left: auto; */
    flex-shrink: 0;
    /* margin-bottom: 1rem; */
}

.menu-edit{
    display: block;
    width: fit-content;
    margin-right: 0;
    margin-left:fv auto;
    flex-shrink: 0;
    /* margin-bottom: 1rem; */
}
