/*
Theme Name: Gekkosports
Description: はじめてのスポーツを、知るところからコートに立つところまで。Gekkosportsの編集メディア用テーマ。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gekkosports
*/

:root {
  color-scheme: light;
  --paper: #f6f6ee;
  --ink: #17261d;
  --quiet: #4a5a4e;
  --forest: #163729;
  --lime: #d6fa53;
  --line: #cdd4c5;
  --type: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", sans-serif;
  --display: "Arial Black", "Arial", sans-serif;
  --mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --gutter: clamp(18px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--type);
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #327553; outline-offset: 4px; }
#main:focus { outline: none; }
.wrap { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 75px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  text-decoration: none;
  white-space: nowrap;
  font: 900 clamp(24px, 2.5vw, 35px)/1 var(--display);
  letter-spacing: -.075em;
}
.wordmark img { flex: none; width: 36px; height: 36px; }
.wordmark-accent { color: #466343; }
.nav-links {
  display: flex;
  gap: clamp(15px, 2.75vw, 38px);
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: block;
  padding-block: 10px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #316745; }
.nav-links a[aria-current="page"]::after {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 16px;
  height: 2px;
  content: "";
  background: #477e46;
}
.header-actions { display: flex; justify-self: end; align-items: center; gap: 7px; }
.header-popover { position: relative; }
.header-popover summary {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.header-popover summary::-webkit-details-marker { display: none; }
.header-popover summary:hover, .header-popover[open] summary { background: var(--lime); border-color: var(--lime); }
.popover-panel {
  position: absolute;
  z-index: 4;
  top: calc(100% + 10px);
  right: 0;
  width: min(342px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 24px #17261d22;
}
.mobile-nav { display: none; }
.search-form { display: flex; width: min(100%, 440px); gap: 8px; }
.search-form label { flex: 1 1 0; min-width: 0; }
.search-form input {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #819486;
  border-radius: 0;
}
.search-form button {
  padding-inline: 14px;
  border: 0;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.search-form button:hover { background: #326648; }

.home-main { padding-top: 19px; }
.cover-issue {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--quiet);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .08em;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #618333;
  vertical-align: .085em;
}
.issue-index > span { margin-inline: 4px; color: #657768; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 36.5vw, 565px);
  padding: clamp(30px, 5.5vw, 90px);
  overflow: hidden;
  color: #fff;
  background: #17362d;
}
.hero-image, .hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #0c2019ec 0%, #0e241bc7 26%, #102e205c 56%, #0d221900 82%),
              linear-gradient(0deg, #0a1f1966, #0a1f1900 32%);
}
.hero-copy { max-width: 660px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--lime);
  font-size: .81rem;
  font-weight: 750;
  letter-spacing: .14em;
}
.hero-kicker span {
  padding: 3px 7px;
  border: 1px solid #d6fa5380;
  font: 700 .75rem/1.2 var(--mono);
  letter-spacing: 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.05rem, 5.35vw, 5.65rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.085em;
  text-wrap: balance;
}
.hero-lead { margin: 23px 0 27px; color: #f5faee; font-size: 1rem; font-weight: 600; line-height: 1.85; }
.hero-stamp {
  position: absolute;
  right: 28px;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 .7rem/1 var(--mono);
  letter-spacing: .16em;
}
.hero-stamp span { width: 25px; height: 1px; background: var(--lime); }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 24px;
  padding: 9px 15px 9px 18px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.action span { font-size: 1.08rem; }
.action-primary { color: var(--ink); background: var(--lime); }
.action-primary:hover { background: #e8ff9a; }
.hero .action:focus-visible, .site-footer a:focus-visible { outline-color: #f2ffbf; }
.action-dark { color: #fff; background: var(--forest); }
.action-dark:hover { background: #285c40; }

.section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--line);
}
.section-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(9px, 1.4vw, 20px);
  min-height: 90px;
  padding: 15px clamp(13px, 2vw, 30px);
  text-decoration: none;
  transition: background .18s;
}
.section-link + .section-link { border-left: 1px solid var(--line); }
.section-link:hover { background: #e7efda; }
.section-no { align-self: center; color: #5b7746; font: 700 .75rem/1 var(--mono); }
.section-link strong { display: block; font-size: clamp(.96rem, 1.55vw, 1.22rem); line-height: 1.35; }
.section-description { display: block; margin-top: 4px; color: var(--quiet); font-size: clamp(.68rem, 1vw, .79rem); }
.section-arrow { color: #45674a; }

.latest, .related { margin-top: clamp(51px, 6.1vw, 88px); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 6px; color: #486c42; font-size: .76rem; font-weight: 800; letter-spacing: .11em; }
.section-heading h2, .field-note h2 { margin: 0; font-size: clamp(1.85rem, 3.2vw, 3rem); line-height: 1.25; letter-spacing: -.065em; }
.text-link { flex: none; padding-bottom: 2px; font-size: .81rem; font-weight: 750; }
.text-link:hover { color: #316745; }
.text-link span { margin-left: 3px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(19px, 2.2vw, 32px); }
.article-card { min-width: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.card-media { display: block; aspect-ratio: 1.66; overflow: hidden; background: #dbe5cf; }
.card-media img, .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform .25s ease; }
.article-card:hover .card-media img { transform: scale(1.035); }
.card-copy { padding-top: 15px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; color: var(--quiet); font-size: .75rem; }
.article-meta time { font-family: var(--mono); }
.label { padding: 3px 7px; background: #e6edda; color: #315436; font-weight: 800; line-height: 1.45; text-decoration: none; }
.label:hover { background: #d9e9bd; }
.card-title { margin: 9px 0 8px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 800; line-height: 1.52; letter-spacing: -.033em; }
.card-title a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-title span { flex: none; color: #55764e; font-size: 1rem; }
.card-description { margin: 0; color: var(--quiet); font-size: .86rem; line-height: 1.7; }
.empty-state { padding: 24px; border: 1px dashed #8b9d88; }

.field-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: clamp(45px, 6.5vw, 92px) 0;
  padding: clamp(24px, 3.5vw, 51px);
  background: #e5edd8;
  border-left: 4px solid #88a747;
}
.field-note p:not(.eyebrow) { margin: 11px 0 0; color: var(--quiet); font-size: .92rem; }
.field-note .action { flex: none; }
.site-footer { background: #142b21; color: #f1f5e9; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 39px 28px; }
.site-footer .wordmark-accent { color: var(--lime); }
.footer-inner p { margin: 10px 0 0; color: #c3d1c3; font-size: .81rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-links a, .footer-legal a { font-size: .78rem; text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 15px 18px; border-top: 1px solid #82938366; color: #c3d1c3; }
.footer-legal small { font-size: .72rem; }

.listing, .post-main { min-height: 50vh; padding-bottom: clamp(50px, 8vw, 108px); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 22px; color: var(--quiet); font-size: .75rem; }
.breadcrumb a:hover { color: #316745; }
.listing-heading { padding: clamp(26px, 4vw, 52px) 0 21px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.listing-heading h1, .post-heading h1 { margin: 0; font-size: clamp(2rem, 4.35vw, 4.1rem); line-height: 1.25; letter-spacing: -.065em; }
.listing-description { color: var(--quiet); }
.listing-heading .search-form { margin-top: 18px; }
.page-numbers { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 22px 0 0; list-style: none; }
.navigation.pagination .nav-links { flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nav-links .page-numbers { font-weight: 650; }
.page-numbers li > .page-numbers, .nav-links > .page-numbers { display: inline-block; padding: 5px 11px; margin: 0; border: 1px solid var(--line); text-decoration: none; }
.page-numbers li > .current, .page-numbers a:hover, .nav-links > .current { background: #e1ebd4; }

.feature-article { width: min(100%, 1020px); margin: clamp(23px, 4.3vw, 62px) auto 0; }
.post-heading, .article-body { width: min(100%, 720px); margin-inline: auto; }
.post-heading .article-meta { margin-bottom: 15px; }
.post-deck { margin: 16px 0 0; color: var(--quiet); font-size: clamp(.94rem, 1.45vw, 1.15rem); }
.post-cover { margin: 29px 0; aspect-ratio: 2.12; overflow: hidden; background: #dbe5cf; }
.article-body { font-size: 1.02rem; line-height: 1.95; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 1.85em 0 .45em; padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 1.55em; line-height: 1.4; letter-spacing: -.035em; }
.article-body h3 { margin-top: 1.7em; line-height: 1.5; }
.article-body a { color: #2b6744; font-weight: 700; }
.article-body a:hover { color: #152e22; }
.article-body li { margin-block: .3em; }
.article-body blockquote { padding: 10px 18px; margin: 24px 0; border-left: 3px solid #88a747; background: #e5edd8; }
.article-body figure { margin-inline: 0; }
.article-body .wp-block-table { overflow-x: auto; }
.article-body table { border-collapse: collapse; }
.article-body th, .article-body td { padding: .4em .6em; border: 1px solid var(--line); }
.article-tags { margin: 28px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.article-tags a { display: inline-block; margin-right: 6px; padding: 2px 9px; background: #e6edda; text-decoration: none; font-size: .84rem; }
.info-page .article-body { margin-top: 20px; }

@media (max-width: 890px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 63px; gap: 12px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav .nav-links { display: block; }
  .mobile-nav .nav-links a { padding: 9px 8px; }
  .mobile-nav .nav-links a[aria-current="page"]::after { left: 8px; }
  .mobile-nav .nav-links li + li { border-top: 1px solid var(--line); }
  .site-search .popover-panel { right: -49px; }
}
@media (max-width: 700px) {
  .cover-issue { margin-bottom: 11px; font-size: .66rem; letter-spacing: .01em; }
  .home-main { padding-top: 13px; }
  .hero { min-height: 435px; padding: 32px 23px; align-items: end; }
  .hero-image { object-position: 68% 45%; }
  .hero::after { background: linear-gradient(0deg, #0b2019f5 0%, #112b20ca 33%, #112b204f 66%, #112b2022 100%); }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.65rem); }
  .hero-kicker { margin-bottom: 12px; font-size: .73rem; }
  .hero-lead { margin: 13px 0 19px; font-size: .89rem; }
  .hero-stamp { top: 16px; right: 13px; bottom: auto; font-size: .61rem; gap: 5px; }
  .hero-stamp span { width: 15px; }
  .section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 11px; }
  .section-link { min-height: 74px; gap: 8px; padding: 9px 10px; }
  .section-link:nth-child(3) { border-left: 0; }
  .section-link:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-link strong { font-size: 1rem; }
  .section-arrow { font-size: .8rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { padding-bottom: 12px; margin-bottom: 16px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 475px) {
  .wordmark img { width: 32px; height: 32px; }
  .header-popover summary { width: 38px; height: 38px; }
  .site-search .popover-panel { right: -45px; }
  .hero { min-height: 407px; }
  .card-grid { grid-template-columns: 1fr; }
  .section-heading .text-link { font-size: .73rem; }
  .field-note { align-items: start; flex-direction: column; }
  .post-cover { aspect-ratio: 1.62; }
  .article-body { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
