/* TabiJapan · tabijapan.com */
body:has(#tj) {
  overflow-x:hidden
}

body:has(#tj) header.wp-block-template-part,body:has(#tj) footer.wp-block-template-part,body:has(#tj) .wp-block-post-title {
  display:none!important
}

body:has(#tj) .wp-site-blocks,body:has(#tj) main,body:has(#tj) main .wp-block-group,body:has(#tj) .wp-block-post-content,body:has(#tj) .entry-content {
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important
}

#tj {
  --bg:#0a0710;
  --bg2:#140d1f;
  --pink:#ff3d81;
  --cyan:#27e1ff;
  --red:#BC002D;
  --gold:#ffc83d;
  --tx:#f3eefc;
  --mut:#9b90b3;
  width:100vw;
  margin-left:calc(50% - 50vw);
  background:var(--bg);
  color:var(--tx);
  font-family:'Zen Kaku Gothic New',sans-serif;
  line-height:1.7;
  overflow:clip
}

#tj * {
  box-sizing:border-box;
  margin:0;
  padding:0
}

#tj a {
  color:inherit
}

#tj .mg-top {
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px clamp(16px,4vw,48px);
  background:rgba(8,6,14,.88);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--red)
}

#tj .mg-logo {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none
}

#tj .mg-logo span {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:2px solid var(--red);
  border-radius:8px;
  font-family:'Shippori Mincho B1',serif;
  color:var(--red);
  text-shadow:0 0 10px #ff1f4b;
  box-shadow:0 0 10px var(--red)
}

#tj .mg-logo b {
  font-family:'Yuji Boku',serif;
  font-size:1.5rem;
  font-weight:400;
  color:#fcfcf8
}

#tj .mg-top nav {
  display:flex;
  gap:10px;
  align-items:center
}

#tj .mg-btn {
  border:0;
  cursor:pointer;
  font-family:inherit;
  font-weight:900;
  font-size:.85rem;
  padding:10px 18px;
  border-radius:999px;
  text-decoration:none;
  display:inline-block
}

#tj .mg-pdf {
  background:var(--pink);
  color:#fff;
  box-shadow:0 0 20px rgba(255,61,129,.5)
}

#tj .mg-home {
  border:2px solid var(--cyan);
  color:var(--cyan);
  background:none
}

#tj .mg-w {
  max-width:880px;
  margin:0 auto;
  padding:0 22px
}

#tj .mg-hero {
  padding:70px 0 40px;
  text-align:center;
  background:radial-gradient(circle at 50% 0,rgba(255,61,129,.22),transparent 60%)
}

#tj .mg-k {
  font-family:'Shippori Mincho B1',serif;
  letter-spacing:.35em;
  color:var(--gold)
}

#tj .mg-hero h1 {
  font-family:'Shippori Mincho B1',serif;
  font-size:clamp(2.1rem,6vw,3.6rem);
  line-height:1.1;
  margin:10px 0 14px;
  color:#fff;
  text-shadow:0 0 6px #fff,0 0 22px var(--pink)
}

#tj .mg-hero p {
  color:#cfc6e2;
  max-width:600px;
  margin:0 auto
}

#tj .mg-thx {
  display:inline-block;
  margin-top:22px;
  background:rgba(93,255,154,.1);
  border:1px solid rgba(93,255,154,.4);
  color:#a6ffc4;
  border-radius:999px;
  padding:8px 18px;
  font-size:.9rem
}

#tj .mg-toc {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:26px
}

#tj .mg-toc a {
  text-decoration:none;
  font-size:.85rem;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:6px 14px;
  color:#e6def2
}

#tj .mg-s {
  padding:46px 0;
  border-top:1px solid rgba(255,255,255,.08)
}

#tj .mg-s h2 {
  font-family:'Shippori Mincho B1',serif;
  font-size:clamp(1.6rem,4vw,2.2rem);
  line-height:1.15;
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:8px
}

#tj .mg-s h2 i {
  font-style:normal;
  flex:none;
  width:52px;
  height:52px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:1.5rem;
  border:2px solid var(--c,var(--pink));
  color:var(--c,var(--pink));
  box-shadow:0 0 14px var(--c,var(--pink))
}

#tj .mg-s>.mg-w>p.ld {
  color:var(--mut);
  margin-bottom:20px
}

#tj .mg-ck {
  list-style:none;
  display:grid;
  gap:10px
}

#tj .mg-ck li {
  display:grid;
  grid-template-columns:26px 1fr;
  gap:12px;
  align-items:start;
  background:var(--bg2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px 16px
}

#tj .mg-ck li:before {
  content:"";
  width:22px;
  height:22px;
  border-radius:6px;
  border:2px solid var(--c,var(--pink));
  margin-top:3px
}

#tj .mg-ck b {
  color:#fff
}

#tj .mg-ck span {
  color:#d8cfe6;
  font-size:.95rem
}

#tj .mg-tb {
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
  color:inherit
}

#tj .mg-tb th {
  text-align:left;
  font-size:.8rem;
  color:var(--mut);
  font-weight:500;
  padding:8px 10px;
  border-bottom:1px solid rgba(255,255,255,.18)
}

#tj .mg-tb td {
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top
}

#tj .mg-tb td:first-child {
  font-weight:900;
  color:#fff;
  white-space:nowrap
}

#tj .mg-tb .pr {
  color:var(--gold);
  font-weight:700;
  white-space:nowrap
}

#tj .mg-tb .jp {
  font-family:'Shippori Mincho B1',serif;
  font-size:1.15rem;
  color:#fff;
  white-space:normal
}

#tj .mg-tb small {
  display:block;
  color:var(--mut);
  font-weight:400
}

#tj .mg-rt {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}

#tj .mg-rt div {
  background:var(--bg2);
  border-radius:14px;
  padding:16px;
  border-top:4px solid var(--c)
}

#tj .mg-rt b {
  display:block;
  font-family:'Shippori Mincho B1',serif;
  font-size:1.25rem;
  color:#fff
}

#tj .mg-rt em {
  font-style:normal;
  color:var(--c);
  font-weight:900;
  font-size:.85rem
}

#tj .mg-rt p {
  font-size:.9rem;
  color:#d8cfe6;
  margin-top:6px
}

#tj .mg-note {
  margin-top:14px;
  font-size:.88rem;
  color:var(--mut)
}

#tj .mg-note a {
  color:#ff8fb8
}

#tj .mg-end {
  padding:50px 0 70px;
  text-align:center
}

#tj .mg-end h2 {
  font-family:'Shippori Mincho B1',serif;
  font-size:1.9rem;
  margin-bottom:8px
}

#tj .mg-end p {
  color:#cfc6e2;
  max-width:560px;
  margin:0 auto 20px
}

#tj .mg-end .mg-btn {
  margin:4px
}

#tj .mg-foot {
  text-align:center;
  font-size:.78rem;
  color:var(--mut);
  padding:0 0 30px
}

@media(max-width:700px) {
  #tj .mg-rt {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)
  }
  #tj .mg-top nav .mg-home {
    display:none
  }
  #tj .mg-tb {
    font-size:.88rem
  }
  #tj .mg-tb td:first-child {
    white-space:normal
  }
}

@media print {
   @page {
    margin:14mm
  }
   body:has(#tj) #wpadminbar,#tj .mg-top,#tj .mg-toc,#tj .mg-end .mg-btn,#tj .mg-thx,#gt_float_wrapper,#tj-ck {
    display:none!important
  }
   html:has(#tj),html:has(#tj) body,#tj {
    background:#fff!important;
    color:#111!important
  }
   #tj {
    width:auto;
    margin:0
  }
   #tj .mg-hero {
    background:none;
    padding:0 0 10px
  }
   #tj .mg-hero h1 {
    color:#111;
    text-shadow:none
  }
   #tj .mg-hero p,#tj .mg-ck span,#tj .mg-rt p,#tj .mg-end p,#tj .mg-s>.mg-w>p.ld,#tj .mg-note {
    color:#333
  }
   #tj .mg-ck b,#tj .mg-tb td:first-child,#tj .mg-tb .jp,#tj .mg-rt b {
    color:#111
  }
   #tj .mg-ck li,#tj .mg-rt div {
    background:#fff;
    border:1px solid #ccc;
    break-inside:avoid
  }
   #tj .mg-s {
    padding:18px 0;
    break-inside:auto
  }
   #tj .mg-s h2 {
    break-after:avoid
  }
   #tj .mg-s h2 i {
    box-shadow:none
  }
   #tj .mg-tb th,#tj .mg-tb td {
    border-color:#ccc
  }
   #tj .mg-tb tr {
    break-inside:avoid
  }
}
