/* Responsive Layout */



/* Desttop
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
@media screen and (max-width:1229px) {
  .device_dt {
    display: none;
  }
  .device_tb {
    display: block;
  }
  .device_sp {
    display: none;
  }
  .half_box {
    width: 65%;
  }
  /* Base
----------------------------------------------------- */
  .Header__content {
    display: grid;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 200px 2fr;
  }
  nav ul.flex {
    gap: 15px 30px;
    justify-content: end;
    list-style: none;
    font-size: 1.2rem;
  }
  nav ul.flex li, nav ul.flex a {
    margin: 0;
    line-height: 1;
  }
  a.banner_button.device_tb.device_sp {
    display: flex;
  }
  a.banner_button.device_dt {
    display: none;
  }
  /* Hero */
  .hero_inner {
    max-width: 90vw;
  }
  /* The Sacred Power of Paper
----------------------------------------------------- */
  #thesacredpowerofpaper .flex {
    flex-flow: column;
    align-items: center;
    padding: 100px 0;
  }
  #thesacredpowerofpaper .flex img.cashmeetscharm_illut:nth-child(1) {
    width: 400px;
    top: -200px;
    right: -100px;
    z-index: -1;
  }
  #thesacredpowerofpaper .flex img.cashmeetscharm_illut:nth-child(2) {
    width: 500px;
    top: calc(100% - 100px);
    left: -150px;
  }
 #thesacredpowerofpaper .flex span.bg_jpcopy {
    top: 30%;
    left: 40px;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 75vh;
  }
  /* Engimono */
  #engimono {
    padding: 200px 0 100px;
  }
  #engimono h3 img {
    width: auto;
    height: 170px;
  }
  #engimono .flex {
    flex-flow: column;
    align-items: center;
    padding: 0;
  }
  #engimono .flex img.cashmeetscharm_illut {
    display: none;
  }
  #engimono .flex span.bg_jpcopy {
    top: 30%;
    left: 40px;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 75vh;
  }
  /* 12 Luky Charms
----------------------------------------------------- */
  #twelveluckycharms h3 img {
    width: auto;
    max-width: 90vw;
    height: 80px;
  }
  section#twelveluckycharms .charm_list_area {
    padding: 0 7vw;
  }
  .modal-content {
    width: 90vw;
    padding: 70px 5vw;
  }
  /* Places to Discover Engimono
----------------------------------------------------- */
  #placestodiscoverengimono h3 img {
    width: auto;
    height: 120px;
  }
  .place_detail img {
    width: 300px;
    height: auto;
    border-radius: 20px;
  }
  .place_text {
    width: calc(100% - 330px);
  }
  .place_text p {
    margin: 0;
    font-size: 1.1rem;
  }
  .place_text p.place_title {
    margin: 0 0 15px;
    font-size: 2rem;
    line-height: 1;
  }
  /* Footer Banner
----------------------------------------------------- */
  .atm_box.half_box {
    width: 85%;
    margin: 20px auto;
  }
  .atm_box h3 img.copy_togetcash {
    max-width: 100%;
    height: 60px;
    margin: 0 auto 20px;
  }
  .atm_box h3 img.copy_startyour {
    width: auto;
    max-width: 100%;
    height: 155px;
    margin: 0 auto 30px;
  }
}



/* Tablet
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
@media screen and (max-width:799px) {
  .device_dt {
    display: none !important;
  }
  .device_tb.device_sp {
    display: block;
  }
  .device_sp {
    display: none;
  }
  header nav {
    display: none;
  }
  .Header__body {
    display: flex;
    justify-content: end;
    align-items: center;
  }
  .Header__body .banner_button {
    display: flex;
    position: relative;
    top: 0;
    right: 0;
    width: 180px;
    height: 50px;
    margin: 0 25px;
    border-radius: 5px;
    box-shadow: none;
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 1px;
  }
  .Header__body a.banner_button:hover {
    background: #e50011;
    transform: rotate(0);
  }
  .Header__body a.banner_button span {
    font-size: 1.4rem;
  }
  .Header__body .icon_search {
    top: calc(50% - 10px);
    left: 15px;
    width: 20px;
    height: 20px;
  }
  .Header__body .icon_newtab {
    top: calc(50% - 10px);
    right: 15px;
    width: 20px;
    height: 20px;
  }
  .burgerMenu {
    display: flex;
    align-items: center;
    width: 40px;
    height: 50px;
    position: relative;
    margin: 0;
  }
  .burgerMenu.mag {
    opacity: 0;
    z-index: -1;
  }
  .burgerMenu:hover .icon_burger {
    transform: scale(1.2);
    opacity: 0.7;
  }
  .modal.navi_window {
    display: inline-block;
    height: auto;
    top: 100px;
    background: none;
    backdrop-filter: none;
    text-align: left;
    z-index: 10;
  }
  .modal.navi_window .modal-content {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    left: 0;
    padding: 25px 50px 50px;
    transform: none;
    box-shadow: initial;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: initial;
    border: none;
    overflow: hidden;
    z-index: 0;
  }
  .modal.navi_window .modal-content nav ul {
    display: flex;
    flex-flow: column;
    text-align: right;
  }
  .modal.navi_window .modal-content nav ul li {
    margin: 10px 0;
  }
  .modal.navi_window .modal-close {
    width: 50px;
    height: 50px;
    top: 25px;
    right: 20px;
    left: initial;
    backdrop-filter: blur(5px);
    z-index: 10;
  }
  .modal.navi_window .modal-close img.icon_close {
    width: 40px;
    height: 40px;
  }
  .charm_window .charm_jp {
    background: none;
    z-index: 1;
  }
  .charm_window .charm_jp span.jp_box1,
  .charm_window .charm_jp span.jp_box2 {
    background: none;
    z-index: 1;
  }
}



/* Halfway point
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
@media screen and (max-width:699px) {
  .place_detail {
    flex-flow: column;
    align-items: baseline;
    margin: 0 0 50px 0;
  }
  .place_detail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .place_text {
    width: 100%;
    margin: 20px 0;
  }
}



/* Smartphone
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
@media screen and (max-width:499px) {
  .device_dt {
    display: none !important;
  }
  .device_tb {
    display: none !important;
  }
  .device_sp {
    display: block !important;
  }
  body {
    font-size: 1rem;
  }
  /* Base
----------------------------------------------------- */
  header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px;
    padding: 0 20px;
  }
  .Header__content {
    width: 100%;
    grid-template-columns: 140px 1fr;
  }
  .Header__logo {
    width: 140px;
  }
  .Header__body { 
    max-width: calc(100vw - 140px - 40px);
  }
  .Header__body .banner_button {
    display: flex !important;
    width: 130px;
    height: 50px;
    margin: 0 15px;
    padding: 0 15px 0 0;
  }
  .Header__body .icon_search {
    left: initial;
    right: 10px;
  }
  .Header__body .icon_newtab {
    display: none;
  }
  .modal.navi_window {
    top: 80px;
  }
  .modal.navi_window .modal-content {
    padding: 25px 25px 50px;
  }
  .modal.navi_window .modal-content nav ul {
    padding: 0;
  }
  .modal.navi_window .modal-close {
    top: 15px;
    right: 15px;
  }
  section {
    max-width: 100vw;
  }
  /* Main Content
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
  main {
    padding: 80px 0 0;
  }
  .hero {
    padding: calc(100vh - 80px) 0 30vh;
  }
  .heroimg {
    height: calc(100vh - 80px);
    top: 80px;
  }
  .hero_inner img.copy_cashinjapan {
    width: 94vw;
    max-width: initial;
    height: auto;
    margin: 0 auto;
    left: calc(50% - 47vw);
  }
  .hero_inner {
    max-width: 90vw;
    padding: 80px 25px;
    text-align: left;
  }
  h1 {
    text-align: center;
  }
  /* The Sacred Power of Paper
----------------------------------------------------- */
  #thesacredpowerofpaper h3 img {
    height: 90px;
  }
#thesacredpowerofpaper .flex span.bg_jpcopy {
    top: 40%;
    left: 40px;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 75vh;
  }
  #thesacredpowerofpaper .flex .half_box {
    width: 80%;
  }
  /* Engimono:Good Luck Charms for the Curious Traveler
----------------------------------------------------- */
  #engimono {
    padding: 100px 0 0;
  }
  #engimono .flex span.bg_jpcopy {
    top: 30%;
    left: 40px;
    width: 150px;
    height: 75vh;
  }
  #engimono .half_box {
    width: 80%;
  }
  /* 12 Luky Charms
----------------------------------------------------- */
  #twelveluckycharms h3 img {
    height: 100px;
  }
  section#twelveluckycharms .charm_list {
    display: grid;
    gap: 7vw;
    grid-template-columns: 1fr 1fr;
  }
  .modal-content {
    width: 90vw;
    padding: 50px 5vw;
    top: 55%;
  }
  .charm_window .charm_jp {
    min-height: 160px;
    top: 25px;
    right: 20px;
    padding: 30px 0px 20px;
    border: solid 3px #e50011;
    background: none;
    font-size: 1.2rem;
    letter-spacing: 5px;
  }
  .charm_window .charm_img {
    width: 70vw;
    height: 70vw;
    position: relative;
    margin: 50px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: solid 7px white;
    z-index: -2;
  }
  .charm_titleA, .charm_titleB {
    font-size: 1.8rem;
  }
  /* Places to Discover Engimono
----------------------------------------------------- */
  #placestodiscoverengimono {
    padding: 50px 0 0;
  }
  .place_detail {
    flex-flow: column;
    align-items: baseline;
    margin: 0 0 50px 0;
  }
  .place_detail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .place_text {
    width: 100%;
    margin: 20px 0;
  }
  /* Footer Banner
----------------------------------------------------- */
  #atms {
    padding: 70px 0;
  }
  .atm_box.half_box {
    width: 90%;
    margin: 20px auto;
  }
  .atm_box {
    width: 100%;
    height: auto;
    min-height: 400px;
    padding: 7vw;
  }
  .atm_box h3 img.copy_togetcash {
    max-width: 100%;
    height: 85px;
    margin: 0 auto 20px;
  }
  .atm_box img.kv_img {
    height: auto;
  }
  .atm_box h3 img.copy_startyour {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
  }
  .atm_box .button {
    width: 100%;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  .atm_box .button span {
    margin: 0 0 0 5px;
    font-size: 2rem;
  }
  .atm_box .button.icon_search:before, .atm_box .button.icon_newtab:after {
    top: calc(50% - 10px);
  }
  .atm_box .button.icon_search:before {
    top: calc(50% - 10px);
    left: 15px;
  }
  .atm_box .button.icon_newtab:after {
    width: 20px;
    height: 20px;
    right: 20px;
  }
}



/* Smartphone #S
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
@media screen and (max-width:350px) {
  header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
    padding: 0 15px;
  }
  .Header__content {
    width: 100%;
    grid-template-columns: 110px 1fr;
  }
  .Header__logo {
    width: 110px;
  }
  .Header__body {
    max-width: calc(100vw - 100px - 30px);
  }
  .Header__body .banner_button {
    display: flex !important;
    width: 130px;
    height: 50px;
    margin: 0 10px 0 0;
    padding: 0 15px 0 0;
  }
  .burgerMenu {
    display: flex;
    align-items: center;
    width: 30px;
    height: 50px;
    position: relative;
    margin: 0;
  }
  .modal.navi_window {
    top: 70px;
  }
  .modal.navi_window .modal-close {
    top: 10px;
    right: 5px;
  }
  .modal.navi_window .modal-close img.icon_close {
    width: 30px;
    height: 30px;
  }
  /* Main Content
-----------------------------------------------------
-----------------------------------------------------
----------------------------------------------------- */
  main {
    padding: 70px 0 0;
  }
  .hero {
    padding: calc(100vh - 70px) 0 30vh;
  }
  .heroimg {
    height: calc(100vh - 70px);
    top: 70px;
  }
  .hero_inner {
    max-width: 95vw;
    padding: 80px 25px;
    text-align: left;
  }
  #thesacredpowerofpaper .flex .half_box {
    width: 90%;
    margin-left: 10%;
  }
  #engimono .half_box {
    width: 90%;
    margin-left: 10%;
  }
  .modal-content {
    width: 95vw;
    padding: 50px 5vw;
    top: 55%;
  }
  ::-webkit-scrollbar {
    width: 3px;
    background: #FDFBF0;
  }
  ::-webkit-scrollbar-thumb {
    width: 3px;
    background: #009943;
  }
  .place_text {
    line-height: 1.4;
  }
  .atm_box.half_box {
    width: 95%;
    padding: 5vw;
  }
  .atm_box .button {
    height: 70px;
    border-radius: 35px;
  }
  .atm_box .button span {
    margin: 0 0 0 5px;
    font-size: 1.5rem;
  }
  .atm_box .button .icon_search {
    top: calc(50% - 12.5px);
    left: 20px;
  }
  .atm_box .button .icon_newtab {
    right: 20px;
  }
  #atms .button.share_fb {
    max-width: 95vw;
  }
  footer p.bankcode {
    margin: 0 0 30px;
    padding: 0 5vw;
    font-size: 0.6rem;
  }
}


