:root {
  --gq-black: #020306;
  --gq-panel: #090b10;
  --gq-blue: #063fe7;
  --gq-blue-bright: #2f6cff;
  --gq-line: #d8dce4;
  --gq-white: #ffffff;
  --gq-yellow: #ffe437;
}

body {
  color: #090b10;
  background: #fff;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.site-header {
  top: 0;
  right: 8px;
  left: 0;
  z-index: 50;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  width: 100%;
  min-height: 78px;
  padding: 0 4vw;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.brand {
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand::before {
  display: none;
}

.brand span {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  justify-self: end;
  gap: 34px;
  font-size: 13px;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: var(--gq-blue);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.hero {
  position: relative;
  display: block;
  min-height: 680px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background:
    url("assets/gq-logo-official-v1.png") 58% center / 82% auto no-repeat,
    #000;
}

.hero::before {
  position: absolute;
  inset: auto auto -120px 38%;
  width: 420px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(20, 76, 255, 0.32), transparent 68%);
  border-radius: 50%;
  mix-blend-mode: normal;
}

.hero::after {
  display: none;
}

.hero-copy {
  position: absolute;
  top: 175px;
  left: 4.5vw;
  z-index: 4;
  width: min(360px, 29vw);
  color: #fff;
}

.hero-person {
  position: absolute;
  top: auto;
  right: -280px;
  bottom: 0;
  z-index: 2;
  width: auto;
  height: 680px;
  object-fit: contain;
  mix-blend-mode: normal;
  mask-image: none;
  pointer-events: none;
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-catch {
  position: static;
  margin: 0 0 24px;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(34px, 3.4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.35;
  writing-mode: horizontal-tb;
}

.hero-lead {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 2;
}

.hero-actions {
  gap: 16px;
  margin-top: 30px;
}

.hero-actions .button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
}

.hero-actions .primary {
  color: #fff;
  background: var(--gq-blue);
  border-color: var(--gq-blue);
}

.hero-actions .secondary {
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.56);
}

.hero-brand-lockup {
  position: absolute;
  top: 155px;
  left: 34%;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: 300px;
  pointer-events: none;
}

.hero-brand-lockup img {
  width: 265px;
  border-radius: 38px;
  box-shadow: 0 0 48px rgba(32, 91, 255, 0.48);
}

.hero-brand-lockup span {
  margin-top: 16px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
}

.hero-phones {
  position: absolute;
  right: 0;
  bottom: -115px;
  z-index: 5;
  width: 310px;
  height: 410px;
  display: none;
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  overflow: hidden;
  width: 174px;
  aspect-ratio: 9 / 17.5;
  background: #0b0d12;
  border: 7px solid #171a21;
  border-radius: 26px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone-primary {
  top: 12px;
  left: 8px;
  transform: rotate(7deg);
}

.hero-phone-secondary {
  top: 48px;
  right: 8px;
  transform: rotate(4deg);
}

.about,
.screens,
.system,
.field-map,
.special,
.start,
.faq {
  padding: 70px 4.5vw;
}

.section-title {
  max-width: 1180px;
  margin-bottom: 36px;
}

.section-title span {
  margin-bottom: 12px;
  color: var(--gq-blue);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.section-title span::before {
  width: 0;
  margin: 0;
}

.section-title h2,
.section-title.light h2 {
  max-width: 18em;
  color: inherit;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.about {
  background: #fff;
}

.about .section-title {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: end;
  max-width: 1240px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #111;
}

.about .section-title h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.8fr);
  gap: 42px;
  max-width: 1240px;
  padding: 0;
  border: 0;
}

.about-copy {
  padding: 24px 28px 0 0;
  border: 0;
  border-right: 1px solid #cfd3dc;
}

.about-copy .about-kicker {
  color: var(--gq-blue);
  font-size: 11px;
}

.about-copy .about-statement {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.5;
}

.about-copy p:last-child {
  font-size: 14px;
  line-height: 1.9;
}

.job-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.job-board div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 184px;
  padding: 26px 24px;
  border: 0;
  border-right: 1px solid #d7dae2;
}

.job-board div::before {
  order: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  color: var(--gq-blue);
  content: "⌾";
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 400;
}

.job-board div:nth-child(2)::before {
  content: "□";
  border-radius: 6px;
}

.job-board div:nth-child(3)::before {
  content: "↗";
  border: 0;
  font-size: 42px;
}

.job-board div:last-child {
  border-right: 0;
  border-bottom: 0;
}

.job-board span,
.job-board div:nth-child(2) span,
.job-board div:nth-child(3) span {
  min-height: auto;
  margin-bottom: 18px;
  padding: 0;
  color: var(--gq-blue);
  background: transparent;
  font-size: 11px;
  order: 1;
}

.job-board strong {
  max-width: 8em;
  font-size: 22px;
  line-height: 1.45;
  order: 3;
}

.job-board strong::after {
  display: block;
  margin-top: 24px;
  color: var(--gq-blue);
  content: "もっと見る →";
  font-size: 12px;
  font-weight: 800;
}

.screens {
  color: #fff;
  background: var(--gq-black);
}

.screens .section-title {
  max-width: 1240px;
}

.screens .section-title h2 {
  max-width: 12em;
  font-size: 38px;
}

.screen-switcher {
  grid-template-columns: 270px minmax(0, 1fr);
  grid-template-areas:
    "device tabs"
    "device description";
  gap: 18px 44px;
  align-items: center;
  max-width: 980px;
  margin: -118px auto 0;
  padding-left: 270px;
}

.screen-device {
  grid-area: device;
}

.screen-device .main-phone {
  width: 230px;
  transform: none;
}

.phone-frame {
  border-width: 7px;
  border-radius: 24px;
  box-shadow: 14px 18px 38px rgba(0, 0, 0, 0.58);
}

.screen-tabs {
  grid-area: tabs;
  display: grid;
  grid-template-columns: repeat(7, minmax(60px, 1fr));
  gap: 8px;
  border: 0;
}

.screen-tab {
  min-height: 68px;
  padding: 0 8px;
  background: #0e1015;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.screen-description {
  grid-area: description;
  min-height: 180px;
  padding: 32px 34px;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
}

.screen-description h3 {
  max-width: none;
  text-align: left;
}

.screen-description p {
  text-align: left;
}

.system {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  color: #0a0b0e;
  background: #fff;
}

.system .section-title {
  margin: 0;
}

.system .section-title h2 {
  font-size: 32px;
}

.command-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  max-width: none;
  border: 0;
}

.command-grid article {
  min-height: 280px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #e0e3e9;
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(7, 18, 52, 0.05);
}

.command-grid article::after {
  display: none;
}

.command-num,
.command-grid article:nth-child(n) .command-num {
  width: auto;
  height: auto;
  margin: 0 0 28px;
  color: var(--gq-blue);
  background: transparent;
  font-size: 18px;
}

.command-grid h3 {
  font-size: 17px;
  line-height: 1.5;
}

.command-grid p {
  font-size: 12px;
  line-height: 1.8;
}

.field-map {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  color: #fff;
  background: var(--gq-black);
}

.field-map::before {
  display: none;
}

.field-map .section-title {
  margin: 0;
}

.field-map .section-title span {
  color: var(--gq-yellow);
}

.field-map .section-title h2 {
  font-size: 31px;
}

.field-map .section-title p {
  color: rgba(255, 255, 255, 0.68);
}

.map-route {
  gap: 0;
  padding: 28px 0 0;
}

.map-route::before {
  top: 58px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--gq-blue-bright);
  border: 0;
}

.map-route li,
.map-route li:nth-child(2),
.map-route li:nth-child(3) {
  min-height: 160px;
  padding: 82px 18px 12px;
  text-align: center;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.map-route li span,
.map-route li:nth-child(2) span,
.map-route li:nth-child(3) span {
  top: 0;
  width: 76px;
  height: 76px;
  color: #fff;
  background: var(--gq-black);
  border: 2px solid #fff;
}

.map-route li::before,
.map-route li:nth-child(2)::before,
.map-route li:nth-child(3)::before {
  margin: 0 0 8px;
  color: var(--gq-yellow);
}

.map-route li h3 {
  font-size: 15px;
}

.map-route li p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.7;
}

.special {
  color: #0b0c10;
  background: #fff;
}

.special-panel {
  grid-template-columns: 150px minmax(0, 1fr);
  max-width: 900px;
  padding: 36px 0;
  color: #0b0c10;
  border-color: #111;
}

.special-panel img {
  border: 0;
  box-shadow: 10px 10px 0 var(--gq-blue);
}

.special h2,
.special p {
  color: #0b0c10;
}

.special .badge {
  color: var(--gq-blue);
  background: transparent;
}

.start {
  color: #fff;
  background: linear-gradient(90deg, #062fb8, #064fe9 60%, #041d7e);
}

.start-box {
  padding: 44px;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.start-box .section-title {
  margin-bottom: 18px;
  text-align: center;
}

.start-box .section-title span,
.start-box p {
  color: #fff;
}

.faq {
  background: #fff;
}

.faq .section-title {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.faq .section-title h2 {
  font-size: 30px;
}

.faq-list {
  max-width: 980px;
}

.faq details {
  padding: 18px 0;
  border-top: 1px solid #d7dae2;
}

.site-footer {
  padding: 30px 4.5vw;
}

@media (max-width: 1100px) {
  .nav {
    gap: 18px;
  }

  .command-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 0 18px;
  }

  .menu-button {
    display: grid;
    grid-column: 2;
    justify-self: end;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open {
    right: 14px;
    left: 14px;
    grid-template-columns: 1fr auto;
    width: auto;
    padding: 18px;
    background: #050609;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-cta {
    grid-column: 1 / -1;
    display: flex;
  }

  .hero {
    min-height: 900px;
    background:
      url("assets/gq-logo-official-v1.png") 70% 0 / 155% auto no-repeat,
      #000;
  }

  .hero-copy {
    top: auto;
    right: 24px;
    bottom: 54px;
    left: 24px;
    width: auto;
  }

  .hero-person {
    top: 60px;
    right: 0;
    bottom: auto;
    width: 80%;
    height: 470px;
    object-fit: cover;
    object-position: 38% center;
    mask-image: none;
  }

  .hero-catch {
    max-width: 9em;
    font-size: 36px;
  }

  .hero-lead {
    max-width: 420px;
    font-size: 15px;
  }

  .hero-phones {
    right: 0;
    bottom: 80px;
    transform: scale(0.72);
    transform-origin: right bottom;
  }

  .about-layout,
  .system,
  .field-map {
    grid-template-columns: 1fr;
  }

  .job-board {
    grid-template-columns: 1fr;
  }

  .job-board div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #d7dae2;
  }

  .screen-switcher {
    grid-template-columns: 1fr;
    grid-template-areas:
      "device"
      "tabs"
      "description";
    margin: 0;
    padding: 0;
  }

  .screen-tabs {
    display: flex;
    grid-area: tabs;
    overflow-x: auto;
  }

  .system,
  .field-map {
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .brand span {
    font-size: 14px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-phones {
    display: none;
  }

  .hero-copy {
    right: 20px;
    bottom: 42px;
    left: 20px;
  }

  .hero-catch {
    font-size: 34px;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button {
    min-width: 0;
  }

  .about,
  .screens,
  .system,
  .field-map,
  .special,
  .start,
  .faq {
    padding: 58px 20px;
  }

  .about .section-title {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding-right: 0;
    border-right: 0;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-grid article {
    min-height: 0;
  }

  .map-route {
    padding: 8px 0 8px 58px;
  }

  .map-route::before {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 21px;
    width: 2px;
    height: auto;
  }

  .map-route li,
  .map-route li:nth-child(2),
  .map-route li:nth-child(3) {
    min-height: 0;
    padding: 22px 18px;
    text-align: left;
  }

  .map-route li span {
    top: 20px;
    left: -63px;
    width: 50px;
    height: 50px;
    transform: none;
  }

  .special-panel {
    grid-template-columns: 110px 1fr;
    gap: 24px;
  }
}
