@charset "UTF-8";
  .change {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 16px;
    z-index: 9999;
  }
  .change_inner {
    margin-bottom:1em;
  }
  .menu-button {
    padding: 10px 15px;
    background: #13A738;
    color: #FFF;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    width: 11em;
    font-size: 16px;
    font-weight: bold;
  }

  .popup-menu {
    position: absolute;
    top: calc(100% - 20px);
    left: auto;
    width: 350px;
    height: 450px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 14px;
    /*display: none;*/
    box-sizing: border-box;
  }

  .popup-menu.show {
    display: block;
  }

  .search-area {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }

  .search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    width: 200px;
  }

  .search-btn {
    padding: 10px 15px;
    background: #13A738;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
  }

  .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
  }

.main-item {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

  .menu-item:last-child {
    border-bottom: none;
  }

  .menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 0;
    text-decoration: none;
    color: #333;
  }
.menu-item a:hover {
  background: #f2f2f2; /* 薄い灰色 */
  border-radius: 6px;
}

  /* ★ アイコン枠（画像を入れるスペース） */
  .icon-box {
    width: 32px;
    height: 32px;
    background: #13A738;
    border-radius: 6px;
    flex-shrink: 0;
  }
.icon-box-sub {
  width: 32px;
  height: 32px;
  background: #AAA;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .name {
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
    display: block;
  }

  .sub-id {
    display: block;
    font-size: 11px;
    color: #777;
    margin-top: 0px;
    line-height: 1.2;
  }
  .back-to-top {
    text-align: center;
    margin-bottom: 14px;
    font-weight: bold;
  }
.back-to-top a {
  color: #13A738;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding-left: 20px; /* ← アイコン分の余白 */
}

.back-to-top a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 24 24" fill="%2313A738" xmlns="http://www.w3.org/2000/svg"><path d="M3 10L12 3L21 10V20C21 20.55 20.55 21 20 21H4C3.45 21 3 20.55 3 20V10Z" stroke="%2313A738" stroke-width="2" fill="none"/><path d="M9 21V14H15V21" stroke="%2313A738" stroke-width="2" fill="none"/></svg>');
}


#pageheader.toppage .change{
    position:relative;
    margin:0 auto;
}
#pageheader.toppage .change p{
    background:url(/form/assets/images/icon_user.png) no-repeat right center ;
    background-size:24px auto;
    font-weight:bold;
    padding-right:30px;
    position:absolute;
    right:200px;
    top:0;
    text-align:right;
}

#pageheader h1, #pageheader p {
  position: revert;
}
#pageheader h1 img, #pageheader p img {
  vertical-align: revert;
}

@media screen and (max-width:769px){
  .popup-menu {
    width: 330px;
    height: 420px;
  }
#pageheader h1 img, #pageheader p img {
  vertical-align: middle;
}
    #pageheader .change_inner{
        text-align:center;
    }
    #pageheader.toppage .change{
        display: revert;
    }
    #pageheader.toppage .change p{
        font-size:16px;
        font-weight:bold;
        position: revert;
        width:auto;
        text-align: revert;
        display: inline;
        margin-top:5px;
        background:url(/form/assets/images/icon_user.png) no-repeat right center ;
        background-size:3.2vw auto;
        padding-top: 4px;
    }
    .popup-menu {
      left: 50%;
      transform: translateX(-50%);
    }
  .menu-list {
    max-height: 240px;
  }
}

@media screen and (max-width:458px){
  .menu-button {
    margin-top: 10px;
  }
}


/* FIXME リリース当初は以下の機能は隠し機能とする。機能を公開する際には以下を削除する */
button.menu-button {
  display: inline;
  padding: 1rem;
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  font-size: 0;
  opacity: 0.0;

  position: absolute;
  top: 0.8rem;
  right: 0.5rem;
}
@media screen and (max-width:769px) {
  #pageheader .change > .change_inner > .menu-button {
    position: absolute;
	top: 0.8rem;
	right: 0.5rem;
  }
}
/* FIXME 機能を公開する際には以上を削除する */
