*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
}

body.wangan-body{
  background:#050505;
  color:#ececec;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
}

a{
  color:#4f7fa8;
}

/* TOP */
.wangan-top-body{
  overflow:hidden;
}

.top-screen{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  overflow:hidden;
  background:
    linear-gradient(90deg,#000 0 17%,transparent 17% 83%,#000 83% 100%),
    radial-gradient(circle at 50% 55%,rgba(0,225,255,.25),transparent 22%),
    #000;
}

.speed-lines{
  position:absolute;
  inset:-10%;
  background:
    linear-gradient(78deg,transparent 0 42%,rgba(0,45,255,.82) 44%,transparent 48%),
    linear-gradient(103deg,transparent 0 43%,rgba(0,170,255,.78) 45%,transparent 49%),
    linear-gradient(67deg,transparent 0 45%,rgba(0,80,255,.70) 47%,transparent 51%),
    linear-gradient(112deg,transparent 0 45%,rgba(0,225,255,.60) 47%,transparent 50%);
  filter:blur(2px);
  transform:scale(1.25);
}

.top-menu{
  position:relative;
  z-index:2;
  width:min(620px,calc(100% - 40px));
  padding:46px 40px;
  text-align:center;
}

.top-menu::before,
.top-menu::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:4px;
  background:#5f0808;
  box-shadow:0 0 4px rgba(255,0,0,.9);
}

.top-menu::before{top:0}
.top-menu::after{bottom:0}

.top-menu h1{
  margin:0 0 46px;
  font-family:"MS PGothic","Yu Gothic",sans-serif;
  font-size:42px;
  font-style:italic;
  letter-spacing:.1em;
  color:#4f7fa8;
  text-shadow:3px 3px 0 #333;
}

.top-nav{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.top-nav a{
  position:relative;
  display:block;
  width:72%;
  margin:0 auto;
  padding:7px 0 9px;
  color:#4f7fa8;
  font-family:"MS PGothic","Yu Gothic",sans-serif;
  font-size:30px;
  font-style:italic;
  letter-spacing:.06em;
  text-decoration:none;
  text-shadow:3px 3px 0 #404040;
}

.top-nav a::after{
  content:"";
  position:absolute;
  left:7%;
  right:7%;
  bottom:3px;
  height:6px;
  background:linear-gradient(90deg,transparent,#0be3df 22%,#31f0ff 50%,#0be3df 78%,transparent);
  opacity:.75;
}

.top-nav a:hover{
  color:#4f7fa8;
}

/* HEADER */
.site-header{
  background:#080808;
  border-bottom:2px solid #3b3b3b;
}

.site-header-inner{
  width:min(1050px,calc(100% - 40px));
  margin:0 auto;
  padding:18px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}

.site-title{
  font-size:19px;
  font-weight:700;
  text-decoration:none;
}

.site-nav{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.site-nav a{
  font-size:13px;
  text-decoration:none;
}

/* CONTENT */
.content-page{
  width:min(960px,calc(100% - 40px));
  margin:0 auto;
  padding:58px 0 100px;
}

.content-page > h1{
  margin:0 0 52px;
  padding-bottom:18px;
  border-bottom:4px solid #750707;
  font-size:34px;
}

.content-page section{
  margin:0 0 62px;
}

.content-page h2{
  margin:0 0 18px;
  padding:7px 11px;
  background:#111;
  border-left:6px solid #0fa7d8;
  font-size:23px;
}

.content-page h3{
  margin:30px 0 10px;
  color:#8cecff;
  font-size:18px;
}

.content-page p{
  margin:0 0 18px;
  font-size:15px;
  line-height:1.9;
}

.rank-list{
  margin-top:20px;
  padding:14px 18px;
  background:#0e0e0e;
  border:1px solid #333;
}

.rank-list p{
  margin:4px 0;
}

/* TEXT + IMAGE */
.media-row{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.85fr);
  gap:28px;
  align-items:start;
  margin:20px 0 52px;
}

.media-gallery{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.media-gallery figure{
  margin:0;
}

.media-gallery img,
.person-row img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #343434;
}

.media-gallery figcaption{
  margin-top:7px;
  color:#c6c6c6;
  font-size:12px;
  line-height:1.5;
}

.single-photo .media-gallery{
  max-width:360px;
}

.disc-row{
  margin-top:48px;
}

.person-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:30px;
  align-items:start;
  padding:30px 0;
  border-bottom:1px solid #333;
}

.person-row:first-of-type{
  padding-top:0;
}

.person-row h3{
  margin-top:0;
}

/* LOCATIONS */
.location-item{
  padding:0 0 32px;
  margin-bottom:32px;
  border-bottom:1px solid #333;
}

.location-item h2{
  font-size:19px;
}

.location-item a{
  color:#4f7fa8;
  word-break:break-all;
}

/* FOOTER */
.site-footer{
  padding:28px 20px;
  text-align:center;
  background:#080808;
  border-top:2px solid #333;
}

.site-footer a{
  font-size:12px;
  text-decoration:none;
}

@media(max-width:700px){
  .top-menu{
    padding:36px 20px;
  }

  .top-menu h1{
    font-size:30px;
    margin-bottom:36px;
  }

  .top-nav a{
    width:88%;
    font-size:24px;
  }

  .site-header-inner{
    display:block;
  }

  .site-nav{
    margin-top:12px;
    gap:14px;
  }

  .content-page{
    width:calc(100% - 26px);
    padding-top:36px;
  }

  .content-page > h1{
    font-size:28px;
  }

  .content-page h2{
    font-size:20px;
  }

  .media-row,
  .person-row{
    grid-template-columns:1fr;
  }

  .media-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .single-photo .media-gallery{
    grid-template-columns:1fr;
    max-width:none;
  }

  .person-row img{
    width:min(100%,420px);
  }
}


/* ==================================================
   CLICKABLE IMAGES / MATERIALS
================================================== */

.image-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.image-link img{
  cursor:zoom-in;
  transition:opacity .15s ease;
}

.image-link:hover img{
  opacity:.86;
}

.material-row{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(260px,.72fr);
  gap:30px;
  align-items:start;
}

.material-photo{
  margin:0;
}

.material-photo img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #343434;
}

.material-photo figcaption,
.material-gallery figcaption{
  margin-top:7px;
  color:#c6c6c6;
  font-size:12px;
  line-height:1.5;
}

.material-gallery{
  display:grid;
  gap:22px;
  margin-top:28px;
}

.material-gallery.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.material-gallery figure,
.photo-collection figure{
  margin:0;
}

.material-gallery img,
.photo-collection img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #343434;
}

.photo-collection{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

@media(max-width:700px){
  .material-row{
    grid-template-columns:1fr;
  }

  .material-gallery.two{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .photo-collection{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
}


/* ==================================================
   TIME TABLES
================================================== */

.table-scroll{
  width:100%;
  overflow-x:auto;
}

.compare-table,
.location-table{
  width:100%;
  border-collapse:collapse;
  background:#0b0b0b;
}

.compare-table{
  min-width:760px;
  margin:18px 0 48px;
}

.compare-table th,
.compare-table td,
.location-table th,
.location-table td{
  border:1px solid #3a3a3a;
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
  font-size:14px;
  line-height:1.7;
}

.compare-table thead th,
.location-table thead th{
  background:#171717;
  font-weight:700;
}

.compare-table tbody th{
  background:#111;
  white-space:nowrap;
}

.roadgp-time-table td{
  min-width:250px;
}

/* ==================================================
   LOCATION TABLE
================================================== */

.location-table{
  min-width:800px;
}

.location-table th:nth-child(1){
  width:30%;
}

.location-table th:nth-child(2){
  width:42%;
}

.location-table th:nth-child(3){
  width:28%;
}

.location-table td{
  background:#090909;
}

.location-table .unknown-location td{
  background:#0f0f0f;
}

.location-image-link{
  display:block;
  width:100%;
}

.location-image-link img{
  display:block;
  width:100%;
  max-width:260px;
  height:auto;
  margin:0 auto;
  border:1px solid #343434;
}

.location-table a{
  color:#4f7fa8;
}

.site-header a,
.site-footer a,
.top-nav a,
.content-page a{
  color:#4f7fa8;
}

@media(max-width:700px){
  .compare-table th,
  .compare-table td,
  .location-table th,
  .location-table td{
    font-size:13px;
    padding:10px;
  }
}


/* TOP navigation stays white */
.top-nav a{
  color:#fff;
}

.top-nav a:hover{
  color:#d9e7f2;
}

/* Unlock machine table */
.unlock-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  background:#0b0b0b;
}

.unlock-table th,
.unlock-table td{
  border:1px solid #3a3a3a;
  padding:11px 13px;
  text-align:left;
  vertical-align:top;
  font-size:14px;
  line-height:1.7;
}

.unlock-table thead th{
  background:#171717;
  font-weight:700;
}

.unlock-table tbody td:first-child{
  white-space:nowrap;
  background:#111;
}

@media(max-width:700px){
  .unlock-table th,
  .unlock-table td{
    font-size:13px;
    padding:9px 10px;
  }
}


/* TOP title wording stays white */
.top-menu h1{
  color:#fff;
}


/* ==================================================
   ARCHIVE EXIT
================================================== */

.archive-exit{
  width:min(960px, calc(100% - 40px));
  margin:20px auto 70px;
  padding-top:38px;
  border-top:4px solid #5f0808;
}

.exit-block{
  margin-top:52px;
}

.exit-block:first-child{
  margin-top:0;
}

.exit-heading{
  display:flex;
  align-items:baseline;
  gap:14px;
  margin-bottom:15px;
}

.exit-heading-en{
  color:#8fa8ba;
  font-family:"Arial Narrow","MS PGothic",sans-serif;
  font-size:15px;
  font-weight:700;
  font-style:italic;
  letter-spacing:.12em;
}

.exit-heading-ja{
  color:#777;
  font-size:11px;
}

.next-links{
  border-top:1px solid #333;
}

.next-links a{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:55px;
  padding:9px 14px;
  border-bottom:1px solid #333;
  color:#fff;
  text-decoration:none;
  transition:background .15s ease,padding-left .15s ease;
}

.next-links a:hover{
  padding-left:21px;
  background:#0d1419;
}

.next-number{
  width:34px;
  color:#527f9d;
  font-family:Arial,sans-serif;
  font-size:11px;
  letter-spacing:.1em;
}

.next-title{
  position:relative;
  font-size:17px;
  font-weight:700;
}

.next-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:44px;
  height:2px;
  background:#527f9d;
}

.dotco-link-feed{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid #303030;
  border-left:1px solid #202020;
  background:#080808;
}

.dotco-link-feed a{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:8px 11px;
  border-right:1px solid #202020;
  border-bottom:1px dotted #383838;
  color:#b9cbd6;
  text-decoration:none;
  font-size:13px;
  transition:background .12s ease,color .12s ease;
}

.dotco-link-feed a:hover{
  background:#0e171d;
  color:#fff;
}

.feed-mark{
  flex:0 0 auto;
  color:#527f9d;
  font-family:Arial,sans-serif;
  font-size:17px;
  line-height:1;
}

.feed-title{
  display:block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sponsor-panel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  min-height:92px;
  padding:20px 24px;
  overflow:hidden;
  border:1px solid #353535;
  background:linear-gradient(110deg,#0b0b0b 0%,#0b0b0b 62%,#101820 100%);
  color:#fff;
  text-decoration:none;
}

.sponsor-panel::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:4px;
  height:100%;
  background:#5f0808;
}

.sponsor-panel::after{
  content:"";
  position:absolute;
  right:-55px;
  top:18px;
  width:210px;
  height:2px;
  background:#29495e;
  transform:rotate(-15deg);
  opacity:.6;
}

.sponsor-text{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
}

.sponsor-label{
  margin-bottom:4px;
  color:#6f91a8;
  font-size:9px;
  letter-spacing:.15em;
}

.sponsor-panel strong{
  margin-bottom:5px;
  color:#fff;
  font-size:19px;
}

.sponsor-copy{
  color:#aaa;
  font-size:12px;
  line-height:1.6;
}

.sponsor-arrow{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  color:#527f9d;
  font-family:Arial,sans-serif;
  font-size:34px;
}

.sponsor-panel:hover{
  border-color:#527f9d;
  background:linear-gradient(110deg,#0d0d0d 0%,#0d0d0d 62%,#13212b 100%);
}

@media(max-width:700px){
  .archive-exit{
    width:calc(100% - 26px);
    margin-bottom:50px;
    padding-top:30px;
  }

  .exit-block{
    margin-top:42px;
  }

  .exit-heading{
    display:block;
  }

  .exit-heading-ja{
    display:block;
    margin-top:4px;
  }

  .dotco-link-feed{
    grid-template-columns:1fr;
  }

  .dotco-link-feed a{
    padding:9px 10px;
    font-size:13px;
  }

  .sponsor-panel{
    min-height:105px;
    padding:18px 18px 18px 22px;
  }

  .sponsor-copy{
    max-width:85%;
  }
}
