html{
	font-size: calc((100vw - 320px) / 140 + 16px);
}

body{
	background:#facaba;
	font-family:'Noto Sans JP', sans-serif;
	font-size: calc((100vw - 320px) / 140 + 16px);
  margin:0;
  padding:0;
}

a{
  color:#76a358;
}

a:visited{
  color:#6d834d;
}

header {
	position: sticky;
	padding: 0 0 0.9em 0;
  background:#facaba;
  top: 0;
	left: 0;
	right: 0;
	z-index: 999;
}

.wrp{
	width:100%;
	margin:0 auto;
}

.rem8{
  font-size:0.8rem;
}

.logo{
  margin-top: -1.8rem!important;
  border-radius: 10px 10px 0 0;
}

.callname{
	margin-top:1.2rem;
  padding-left:0.4rem;
}

.menu{
	width:100%;
	display: flex;
	justify-content: space-between;	
	margin: 0.2rem 0 0.5rem 0;
	padding: 0.2rem 0.4rem;
  box-sizing: border-box;
}

.menu a{
	display:block;
	background:#000066;
	text-align: center;
	border-radius:8px;
	padding:0.3rem;
	color: #fff;
	text-decoration: none;
	font-size:1rem;
}

.menu a:first-child{
	background:#cf4343;
}

/* ローディングアニメ */
.loading {
	height:8em;
}
.loader,
.loader:before,
.loader:after {
  background: #facaba;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
.loader {
  color: #facaba;
  text-indent: -9999em;
  margin: 88px auto;
  position: relative;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: '';
}
.loader:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 1.5em;
}

@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

.b{
	font-weight:bold;
}

.main{
	width:96vw;
  margin:0 auto;
	background:#fff;
	border-radius:10px;
	padding:0.8rem;
	box-sizing: border-box;
	margin-bottom:1.5rem;
	text-align:center;
}

.main img{
	width:100%;
	margin-top:10px;
}

#xxx{
	margin-bottom:2em;
	font-size: 1rem;
}

.main #xxx,
.main .gallery {
    font-size: 1rem;
}

h1{
	font-family: 'Noto Sans JP', sans-serif;
	font-weight:700;
	font-size: 1.5rem;
}

.banner{
	display:flex;
}

.banner a{
	flex-basis:50%;
}

.copy{
	text-align:center;
}

.page_caption{
	text-align:left;
}

.gallery .page_caption{
  margin: 2rem 0;
}

#xxx img,
.main .gallery img,
.spots_list {
  width: 96vw;
  margin: 0 calc(50% - 48vw);
}

.spots_list {
  text-align: left;
  background: #feeddd;
  padding: 0.8rem;
  box-sizing: border-box;
}

.subsc_benefits div{
  width:100%;
  text-align:center;
  margin: 0.3rem auto 0.3rem;
  box-sizing: border-box;
}

.subsc_benefits{
  margin-left: -1rem;
}

.register_form {
  background: #feeddd;
  padding: 0.8rem;
  box-sizing: border-box;
}

.register_form .button{
  text-align: center;
}

.page_caption p{
	margin-bottom:2.2rem;
}

.tab {
  width: 96vw;
  margin: 0 calc(50% - 48vw);
  display:flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.tab button:first-child{
  border-right: 2px solid #fff;
}

button.tablinks{
  flex:1;
  background: #584638;
  color: #fff;
  border:none;
  font-size:1.1rem;
  padding:0.2rem 0.6rem;
}

button.tablinks.active{
  background: #c7b6a7;
}

.tabcontent{
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.tabcontent_unit {
  flex-basis: 45%;
  margin-bottom: 1.4rem;
}

.tabcontent_unit span {
  font-size: 0.7rem;
}

.page_caption p:last-child{
	font-size:0.7rem;
	color:#999;
}

.button{
	font-size: 1rem;
}

.ofuse-button{
    display:flex;
    margin:0 auto;
    align-items:center;
    justify-content:center;
    background-position:center center;
    background-size:80% auto;
    box-sizing:border-box;
	margin:0.5em 0;
    padding: 0 5px;
    font-weight: bold;
    word-break: break-all;
    letter-spacing:0em;
    background-repeat: no-repeat;
    text-decoration:none;
}

.ofuse-button::before{
    content:"";
    display:inline-block;
    background-size:100%;
    background-repeat: no-repeat;
    margin:0 5px 0 0;
}

.size-medium{
    width:100%;
    height:50px;
    font-size:1.2rem;
    line-height:2;
}

.size-medium::before{
    width:18px;
    height:15.21px;
}

.color-yellow{
    background-color: #ffd800;
    color: #000;
    border: solid #ffd800 1px;
}

.color-yellow::before{
    background-image: url(https://ofuse.me/assets/images/icon_ofuse_b.png);
}

.style-pill{
    border-radius:100px;
}

.nearlyimg{
  width:80%!important;
  margin-top:2rem!important;
}

/* 図鑑 */
.railroadex {
  display: grid;
  grid-template-columns: 2fr 5fr;
  grid-template-rows: auto;
  grid-column-gap: 10px;
  grid-row-gap: 9px;
  margin-bottom: 1.5em;
}

.railroadex div:nth-child(1) {
  grid-area: 1 / 1 / 2 / 2;
}

.railroadex div:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
  text-align:left;
  font-size:0.8em;
}

.railroadex div:nth-child(3) {
  grid-area: 2 / 1 / 3 / 3;
  text-align:left;
  font-size:0.8em;
}

.railroadex div img {
  width: 98%;
}

/* ユーザーページのメダル、ランキング */
.medals_view, .ranking_list {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
}

.medals_view span, .rank_list25 {
  flex-basis: 25%;
}

.rank_list50 {
  flex-basis: 50%;
}

/* 相棒会話全体の設定 */
.team_talk {
width: 100%;
margin: 0 0 1.5em 0;
overflow: hidden;
}
/* アイコンの場所 */
.team_talk .partner_icon {
float: left;
margin-right: -90px;
width: 80px;
}
/* アイコン画像の作成 */
.team_talk .partner_icon img{
width: 100%;
height: auto;
border: none; 
}
.team_talk .partner_chat {
width: 100%;
}

/* 吹き出しの入力部分の作成 */
.partner {
  display: inline-block; /*この部分を外すと横幅いっぱいになります*/
  position: relative; 
  margin: 5px 0 0 105px;
  padding: 17px 13px;
  border-radius: 12px; 
  }

.partner_blue {
display: inline-block; /*この部分を外すと横幅いっぱいになります*/
position: relative; 
margin: 5px 0 0 105px;
padding: 17px 13px;
border-radius: 12px; 
background: #ccdff0;
}
.partner_orange {
  display: inline-block; /*この部分を外すと横幅いっぱいになります*/
  position: relative; 
  margin: 5px 0 0 105px;
  padding: 17px 13px;
  border-radius: 12px; 
  background: #fde7d8;
}

.partner_green {
    display: inline-block; /*この部分を外すと横幅いっぱいになります*/
    position: relative; 
    margin: 5px 0 0 105px;
    padding: 17px 13px;
    border-radius: 12px; 
    background: #cfe7da;
}
.partner_undecided {
  display: inline-block; /*この部分を外すと横幅いっぱいになります*/
  position: relative; 
  margin: 5px 0 0 105px;
  padding: 17px 13px;
  border-radius: 12px;
  background: #eae1e1;
}
/* 三角部分の作成 */
.partner_blue:after {
content: "";
display: inline-block;
position: absolute;
top: 18px; 
left: -24px;
border: 12px solid transparent;
border-right: 12px solid #ccdff0; 
}
.partner_orange:after {
content: "";
display: inline-block;
position: absolute;
top: 18px; 
left: -24px;
border: 12px solid transparent;
border-right: 12px solid #fde7d8; 
}
.partner_green:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 18px; 
  left: -24px;
  border: 12px solid transparent;
  border-right: 12px solid #cfe7da; 
  }

.partner_undecided:after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 18px; 
    left: -24px;
    border: 12px solid transparent;
    border-right: 12px solid #eae1e1; 
}
.partner_talk p {
margin: 0;
padding: 0;
}

/* チームを選ぶ画面 */
.teamdecide{
  display:flex;
  justify-content: space-between;
  align-items: center;
}

.teamdecide_modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.teamdecide_modal_content {
  background-color: #f4f4f4;
  margin: 20% auto;
  width: 90%;
  box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.17);
  animation-name: teamdecide_modalopen;
  animation-duration: 1s;
}

@keyframes teamdecide_modalopen {
  from {opacity: 0}
  to {opacity: 1}
}

.teamdecide_modal_header h1 {
  margin: 1rem 0;
}

.teamdecide_modal_header {
  padding: 3px 15px;
  display: flex;
  justify-content: space-between;
}

.team_blue_header{
  background: #ccdff0;
}

.team_orange_header{
  background: #fde7d8;
}

.team_green_header{
  background: #cfe7da;
}

.teamdecide_modalClose {
  font-size: 2rem;
}

.teamdecide_modalClose:hover {
  cursor: pointer;
}

.teamdecide_modal_body {
  padding: 10px 20px;
  color: black;
}

.login_button{
  font-size: 1.1rem;
  background: #584638;
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: none;
}

/* ログインユーザーのメニュー　ユーザー、ミッション、ランキング、一番乗りの到達者 */
.members_menu {
  display:flex;
  flex-flow: row wrap;
  gap: 0.2rem;
}

.members_menu a{
  flex: 1 1 calc(50% - 0.2rem);
  color: #fff;
  text-decoration: none;
  text-align: center;
  background: #584638;
  margin-bottom: 0.2rem;
  padding:0.3rem;
  box-sizing: border-box;
  border-radius: 6px;
}

.manga_unlimited_menu {
  display:flex;
  flex-flow: row wrap;
  gap: 0.6rem;
}

.manga_unlimited_menu div{
  flex: 1 1 calc(50% - 0.6rem);
  font-size: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #facaba;
}

.manga_unlimited_menu div a img{
  width:100%;
}


/* キャラボイス */
.characterVoice {
  position: relative;
  display: inline-block;
  text-align: center;
}
.characterVoice img {
  display: block;
  max-width: 100%;
  height: auto;
}
.characterVoice button {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
}
.characterVoice button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


.subsc_intro a, .subsc_intro a:visited {
  display:block;
  color: #231815;
  text-decoration: none;
  text-align: center;
  background: #eed77c;
  margin-bottom: 0.2rem;
  padding:0.3rem;
  box-sizing: border-box;
  border-radius: 6px;
}

.subsc_intro a strong{
  font-size: 1.2em;
}