/*
Theme Name: Go For Japan Wireframe
Template: generatepress
Version: 1.0.0
Description: Staging layout for the homepage and article wireframe.
Text Domain: gfj-wireframe
*/

:root {
  --gfj-ink: #26262a;
  --gfj-red: #e60012;
  --gfj-muted: #5c5c63;
  --gfj-faint: #8a8a90;
  --gfj-line: #e4e2dc;
  --gfj-line-strong: #26262a;
  --gfj-paper: #f3f2ef;
  --gfj-card: #fff;
  --gfj-radius: 12px;
}

body.gfj-layout {
  margin: 0;
  background: var(--gfj-paper);
  color: var(--gfj-ink);
  font-family: "PingFang TC", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gfj-layout h2 {
  font-size: 30px;
}

.gfj-layout a {
  color: inherit;
}

.gfj-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gfj-ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.gfj-skip:focus {
  top: 8px;
}

.gfj-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.gfj-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gfj-line);
}

.gfj-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.gfj-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex: none;
}

.gfj-logo img {
  display: block;
  width: 340px;
  height: auto;
  max-width: 46vw;
}

.gfj-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}

.gfj-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  color: var(--gfj-muted);
  padding: 8px 9px;
  border-radius: 8px;
}

.gfj-nav a.is-current,
.gfj-nav a:hover {
  background: var(--gfj-red);
  color: #fff;
}

.gfj-icon-btn,
.gfj-burger {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gfj-line);
  background: #fff;
  color: #000;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

.gfj-search-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  color: currentColor;
}

.gfj-icon-btn:hover,
.gfj-icon-btn:focus-visible {
  background: var(--gfj-ink);
  border-color: var(--gfj-ink);
  color: #fff;
}

.gfj-burger {
  display: none;
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
}

.gfj-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--gfj-ink);
}

.gfj-burger:hover,
.gfj-burger:focus-visible {
  background: var(--gfj-ink);
  border-color: var(--gfj-ink);
}

.gfj-burger:hover span,
.gfj-burger:focus-visible span {
  background: #fff;
}

.gfj-search {
  display: none;
  border-top: 1px solid var(--gfj-line);
  background: #fff;
  padding: 12px 0;
}

.gfj-search.is-open {
  display: block;
}

.gfj-search form,
.gfj-search-form {
  display: flex;
  gap: 8px;
}

.gfj-search input[type="search"],
.gfj-search-page input[type="search"] {
  flex: 1;
  border: 1px solid var(--gfj-line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  background: #fff;
}

.gfj-page {
  padding: 22px 0 48px;
}

.gfj-hero {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  background: var(--gfj-card);
  border: 1px solid var(--gfj-line);
  border-radius: var(--gfj-radius);
  overflow: hidden;
}

.gfj-hero-media {
  min-height: 280px;
  background: #e7e5e0 center/cover no-repeat;
}

.gfj-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.gfj-hero-copy {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.gfj-hero-copy h1,
.gfj-card-title,
.gfj-rank-title,
.gfj-side-title,
.gfj-inline-title,
.gfj-pn-title {
  font-weight: 750;
  letter-spacing: 0;
}

.gfj-hero-copy h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.gfj-hero-copy p {
  margin: 0;
  color: var(--gfj-muted);
  line-height: 1.7;
  font-size: 15px;
}

.gfj-cat {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--gfj-line-strong);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--gfj-muted);
  background: #fff;
}

.gfj-cat,
.gfj-layout a.gfj-cat {
  background: var(--gfj-red);
  color: #fff;
  border: none;
}

.gfj-kicker,
.gfj-layout a.gfj-kicker {
  display: inline-flex;
  width: fit-content;
  border: none;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  color: #fff;
  background: var(--gfj-red);
}

.gfj-btn,
.gfj-layout a.gfj-btn {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  background: var(--gfj-red);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.gfj-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  column-gap: 28px;
  row-gap: 18px;
  margin-top: 28px;
  align-items: start;
}

.gfj-main {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.gfj-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gfj-tags {
  grid-column: 1;
  grid-row: 2;
}

.gfj-section {
  background: #fff;
  border: 1px solid var(--gfj-line);
  border-radius: var(--gfj-radius);
  padding: 16px;
}

.gfj-hold {
  display: none !important;
}

.gfj-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.gfj-sec-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
}

.gfj-sec-head::after {
  content: "";
  flex: 1;
  border-top: 1px dashed #c8c6c0;
}

.gfj-more {
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--gfj-line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.gfj-layout a.gfj-more {
  background: var(--gfj-red);
  color: #fff;
  border: none;
}

#gfj-top + span.gfj-more {
  background: var(--gfj-red);
  color: #fff;
  border: none;
}

#gfj-related + span.gfj-more {
  background: var(--gfj-red);
  color: #fff;
  border: none;
}

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

.gfj-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.gfj-card {
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(90, 90, 94, 0.16);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gfj-card-media {
  aspect-ratio: 4 / 3;
  background: #e7e5e0 center/cover no-repeat;
  display: block;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.gfj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gfj-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.gfj-card-title {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}

.gfj-card-meta,
.gfj-rank-meta,
.gfj-side-meta {
  color: var(--gfj-faint);
  font-size: 12px;
}

.gfj-top5 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfj-top5 li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #d5d3cd;
}

.gfj-top5 li:last-child {
  border-bottom: 0;
}

.gfj-rank {
  width: 34px;
  flex: none;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.gfj-rank small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--gfj-faint);
}

.gfj-mini {
  width: 72px;
  height: 54px;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  background: #e7e5e0 center/cover no-repeat;
}

.gfj-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gfj-rank-title,
.gfj-side-title {
  display: block;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}

.gfj-collections,
.gfj-play {
  display: grid;
  gap: 12px;
}

.gfj-collections {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.gfj-play {
  grid-template-columns: 1fr 1fr;
}

.gfj-collection,
.gfj-play-card {
  border-radius: 8px;
  background: #fff;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.gfj-collection {
  border: 0;
  box-shadow: 0 1px 6px rgba(90, 90, 94, 0.16);
}

.gfj-play-card {
  border: 1px solid var(--gfj-line-strong);
}

.gfj-collection-icon,
.gfj-play-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border: 1px dashed #9a9aa0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f6f5f2;
}

.gfj-play-mark {
  border-style: solid;
  border-color: var(--gfj-line-strong);
  font-size: 28px;
}

.gfj-collection h3,
.gfj-play-card h3 {
  margin: 0;
  font-size: 16px;
}

.gfj-collection p,
.gfj-play-card p {
  margin: 6px 0 0;
  color: var(--gfj-faint);
  font-size: 13px;
  line-height: 1.55;
}

.gfj-collection .gfj-more {
  margin-top: 10px;
  display: inline-block;
}

.gfj-side-box,
.gfj-panel {
  background: #fff;
  border: 1px solid var(--gfj-line);
  border-radius: 8px;
  padding: 14px;
}

.gfj-side-box h2 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gfj-live {
  font-size: 11px;
  background: var(--gfj-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 650;
}

.gfj-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfj-side-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #d5d3cd;
}

.gfj-side-list li:last-child {
  border-bottom: 0;
}

.gfj-hot-mobile {
  display: none;
}

.gfj-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--gfj-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.gfj-crumb a {
  text-decoration: none;
}

.gfj-article {
  background: #fff;
  border: 1px solid var(--gfj-line);
  border-radius: var(--gfj-radius);
  padding: 18px;
}

.gfj-article-head h1 {
  margin: 10px 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 800;
}

.gfj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--gfj-faint);
  font-size: 13px;
}

.gfj-share {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.gfj-share a,
.gfj-share button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gfj-line-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.gfj-art-hero {
  margin-top: 16px;
}

.gfj-art-hero img,
.gfj-article .entry-content img {
  max-width: 100%;
  height: auto;
}

.gfj-art-hero figure {
  margin: 0;
}

.gfj-art-hero img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.gfj-article .entry-content {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.85;
  color: #333;
}

.gfj-article .entry-content p {
  margin: 0 0 1em;
}

.gfj-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--gfj-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  outline: none;
}

.gfj-layout .entry-content a.gfj-inline:focus,
.gfj-layout .entry-content a.gfj-inline:focus-visible {
  background: #fff;
  border-color: var(--gfj-line);
  outline: none;
  box-shadow: none;
}

.gfj-inline-copy {
  min-width: 0;
}

.gfj-inline-kicker {
  font-size: 12px;
  color: var(--gfj-muted);
}

.gfj-inline-title {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.45;
}

.gfj-inline-go {
  margin-left: auto;
  font-weight: 800;
  flex: none;
}

.gfj-series-label {
  border: 1px dashed #b7b6b1;
  border-radius: 8px;
  background: #f7f6f3;
  padding: 12px 14px;
  color: var(--gfj-muted);
  line-height: 1.7;
}

.gfj-series-label strong {
  color: var(--gfj-ink);
}

.gfj-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gfj-pn {
  display: block;
  border: 1px solid var(--gfj-line);
  box-shadow: none;
  border-radius: var(--gfj-radius);
  background: #fff;
  padding: 14px;
  text-decoration: none;
  min-height: 56px;
}

.gfj-pn.next {
  text-align: right;
}

.gfj-pn-dir {
  display: block;
  color: var(--gfj-muted);
  font-size: 12px;
}

.gfj-pn-title {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
}

.gfj-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gfj-tag-list a {
  border: 1px solid var(--gfj-line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}

.gfj-footer {
  border-top: 1px solid var(--gfj-line);
  background: #fff;
  padding: 22px 0 28px;
  color: var(--gfj-muted);
  font-size: 14px;
}

.gfj-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.gfj-footer a {
  text-decoration: none;
}

.gfj-footer-note {
  color: var(--gfj-faint);
  font-size: 13px;
}

.gfj-result {
  margin-top: 14px;
  text-align: left;
  border-top: 1px dashed #d5d3cd;
  padding-top: 12px;
}

.gfj-result a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 0;
}

.gfj-quiz-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.gfj-quiz-options button {
  font: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--gfj-line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.gfj-page-article,
.gfj-archive-head {
  max-width: 760px;
}

.gfj-page-article h1,
.gfj-archive-head h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
  margin: 0 0 16px;
}

.gfj-page-article .entry-content {
  font-size: 17px;
  line-height: 1.8;
}

.gfj-empty {
  color: var(--gfj-muted);
}

.gfj-pager {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 14px;
}

.gfj-pager .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.gfj-pager a,
.gfj-pager .page-numbers {
  font-size: 14px;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.gfj-pager .page-numbers.current {
  background: var(--gfj-red);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
}

@media (max-width: 900px) {
  .gfj-bar {
    gap: 8px;
  }

  .gfj-icon-btn {
    margin-left: auto;
  }

  .gfj-burger {
    display: inline-flex;
  }

  .gfj-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--gfj-line-strong);
    padding: 8px 16px 16px;
    flex-direction: column;
  }

  .gfj-nav.is-open {
    display: flex;
  }

  .gfj-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--gfj-line);
    border-radius: 0;
    font-size: 16px;
  }

  .gfj-hero,
  .gfj-cols,
  .gfj-prevnext,
  .gfj-play {
    display: flex;
    flex-direction: column;
  }

  .gfj-side {
    position: static;
  }

  .gfj-series-side,
  .gfj-home-side {
    display: none;
  }

  .gfj-hot-mobile {
    display: block;
  }

  .gfj-main {
    order: 1;
  }

  .gfj-side {
    order: 2;
  }

  .gfj-tags {
    order: 3;
  }

  .gfj-grid,
  .gfj-grid.cols-4,
  .gfj-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gfj-top5 .gfj-mini {
    display: none;
  }

  .gfj-hero-media,
  .gfj-hero-media img {
    min-height: 200px;
  }

  .gfj-share {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .gfj-wrap {
    width: min(1120px, calc(100% - 24px));
  }
}
