/*
Theme Name: Game Shirube
Theme URI: https://gameshirube.net/
Author: Game Shirube
Description: 発売予定と条件検索を中心にしたゲームしるべ専用テーマ。
Version: 0.1.9
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: gameshirube
*/

:root {
  --gs-bg: #f5f7fb;
  --gs-surface: #ffffff;
  --gs-ink: #152238;
  --gs-muted: #68758a;
  --gs-line: #dfe5ef;
  --gs-primary: #5b4bdb;
  --gs-primary-deep: #4032b6;
  --gs-accent: #13a878;
  --gs-warm: #ffb84d;
  --gs-radius: 18px;
  --gs-shadow: 0 14px 40px rgba(30, 48, 80, 0.09);
  --gs-width: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gs-ink);
  background: var(--gs-bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.gs-container { width: min(calc(100% - 36px), var(--gs-width)); margin-inline: auto; }

.gs-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,239,.86);
  backdrop-filter: blur(14px);
}
.gs-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.gs-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 21px; letter-spacing: .02em; }
.gs-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--gs-primary), #806ff4);
  box-shadow: 0 8px 20px rgba(91,75,219,.28);
}
.gs-brand-mark::before { content: "G"; font-size: 18px; font-weight: 900; }
.gs-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; color: #47546a; font-size: 14px; font-weight: 700; }
.gs-nav a:hover { color: var(--gs-primary); }
.gs-header-search {
  display: flex;
  align-items: center;
  width: min(300px, 28vw);
  border: 1px solid var(--gs-line);
  border-radius: 999px;
  background: #f8f9fc;
  overflow: hidden;
}
.gs-header-search input { width: 100%; border: 0; outline: 0; background: transparent; padding: 10px 4px 10px 16px; }
.gs-header-search button { border: 0; background: transparent; color: var(--gs-primary); padding: 10px 14px; cursor: pointer; }

.gs-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 52px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(86,229,189,.26), transparent 24%),
    radial-gradient(circle at 16% 92%, rgba(255,184,77,.21), transparent 28%),
    linear-gradient(125deg, #282068 0%, #4f42ca 52%, #5141b8 100%);
}
.gs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.gs-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 46px; align-items: center; }
.gs-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #baf6e4; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gs-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.gs-hero h1 { margin: 0; max-width: 720px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.18; letter-spacing: -.04em; }
.gs-hero-lead { max-width: 650px; margin: 19px 0 0; color: rgba(255,255,255,.82); font-size: 16px; }
.gs-hero-search { display: flex; margin-top: 28px; max-width: 650px; padding: 7px; border-radius: 16px; background: #fff; box-shadow: 0 20px 55px rgba(20,12,70,.3); }
.gs-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 15px; font-size: 15px; }
.gs-hero-search button { border: 0; border-radius: 11px; padding: 0 22px; color: #fff; background: var(--gs-accent); font-weight: 800; cursor: pointer; }
.gs-hero-panel { padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.gs-hero-panel strong { display: block; font-size: 13px; color: #cfd4ff; }
.gs-hero-panel p { margin: 8px 0 20px; font-size: 27px; font-weight: 900; line-height: 1.35; }
.gs-platforms { display: flex; flex-wrap: wrap; gap: 9px; }
.gs-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; }
.gs-chip:hover { background: rgba(255,255,255,.18); }

.gs-main { padding: 42px 0 72px; }
.gs-section { margin-top: 44px; }
.gs-section:first-child { margin-top: 0; }
.gs-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.gs-section-heading h2 { margin: 0; font-size: clamp(23px, 3vw, 31px); letter-spacing: -.03em; }
.gs-section-heading p { margin: 4px 0 0; color: var(--gs-muted); font-size: 14px; }
.gs-section-link { color: var(--gs-primary); font-size: 13px; font-weight: 800; }

.gs-game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.gs-game-card { overflow: hidden; border: 1px solid var(--gs-line); border-radius: 16px; background: var(--gs-surface); box-shadow: 0 8px 24px rgba(30,48,80,.055); transition: transform .2s, box-shadow .2s; }
.gs-game-card:hover { transform: translateY(-4px); box-shadow: var(--gs-shadow); }
.gs-game-thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(145deg, #e9ecf8, #d8deeb); }
.gs-game-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gs-date-badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 8px; color: #fff; background: rgba(21,34,56,.86); font-size: 11px; font-weight: 800; }
.gs-game-body { padding: 14px; }
.gs-platform-label { color: var(--gs-primary); font-size: 11px; font-weight: 900; }
.gs-game-title { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.gs-game-title a:hover { color: var(--gs-primary); }
.gs-offer-price { margin: 10px 0 0; font-size: 16px; font-weight: 900; }
.gs-offer-link { display: inline-flex; margin-top: 9px; color: var(--gs-primary-deep); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.gs-offer-notice { margin: 9px 0 0; color: var(--gs-muted); font-size: 12px; line-height: 1.6; }

.gs-empty { padding: 40px; text-align: center; border: 1px dashed #c9d1df; border-radius: var(--gs-radius); background: rgba(255,255,255,.68); }
.gs-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 17px; color: var(--gs-primary); background: #ebe9ff; font-size: 23px; }
.gs-empty h3 { margin: 0; font-size: 18px; }
.gs-empty p { margin: 7px 0 0; color: var(--gs-muted); font-size: 14px; }

.gs-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gs-guide-card { min-height: 170px; padding: 23px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: var(--gs-surface); box-shadow: 0 8px 24px rgba(30,48,80,.045); }
.gs-guide-number { color: var(--gs-primary); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.gs-guide-card h3 { margin: 10px 0 7px; font-size: 19px; }
.gs-guide-card p { margin: 0; color: var(--gs-muted); font-size: 14px; }

.gs-content { max-width: 820px; margin: 44px auto 72px; padding: 36px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: #fff; box-shadow: var(--gs-shadow); }
.gs-content h1 { margin-top: 0; line-height: 1.35; }
.gs-entry-list { display: grid; gap: 16px; }
.gs-entry-list article { padding: 22px; border: 1px solid var(--gs-line); border-radius: 14px; background: #fff; }

.gs-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; color: var(--gs-muted); font-size: 13px; }
.gs-breadcrumb a:hover { color: var(--gs-primary); }
.gs-game-detail { overflow: hidden; border: 1px solid var(--gs-line); border-radius: 24px; background: var(--gs-surface); box-shadow: var(--gs-shadow); }
.gs-game-detail-hero { display: grid; grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr); gap: 30px; padding: 32px; background: linear-gradient(130deg, #f0efff, #ffffff 62%); }
.gs-game-detail-image { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 15px; background: #dfe4f2; }
.gs-game-detail-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gs-game-detail-placeholder, .gs-calendar-thumb > span { display: grid; width: 100%; height: 100%; place-items: center; color: var(--gs-primary); background: linear-gradient(135deg, #e9e6ff, #dceafa); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.gs-game-detail-copy { align-self: center; }
.gs-game-detail-copy .gs-kicker { color: var(--gs-primary); }
.gs-game-detail-copy h1 { margin: 0; font-size: clamp(29px, 4.3vw, 48px); line-height: 1.25; letter-spacing: -.04em; }
.gs-detail-meta { margin: 14px 0 0; color: var(--gs-muted); font-size: 14px; }
.gs-detail-lead { max-width: 700px; margin: 16px 0 0; font-size: 16px; line-height: 1.9; }
.gs-detail-lead p { margin: 0 0 1em; }
.gs-detail-lead > :last-child { margin-bottom: 0; }
.gs-detail-section { padding: 30px 32px; border-top: 1px solid var(--gs-line); }
.gs-detail-section h2 { margin: 0 0 15px; font-size: 23px; }
.gs-detail-description { color: #3f4b5e; line-height: 1.9; }
.gs-detail-description p { max-width: 74ch; margin: 0 0 1.1em; }
.gs-detail-description > :last-child { margin-bottom: 0; }
.gs-detail-muted { margin: 0; color: var(--gs-muted); font-size: 13px; }
.gs-release-table-wrap { overflow-x: auto; }
.gs-release-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; }
.gs-release-table th, .gs-release-table td { padding: 13px 12px; border-bottom: 1px solid var(--gs-line); text-align: left; }
.gs-release-table th { color: var(--gs-muted); font-size: 12px; }
.gs-offer-list { display: grid; gap: 12px; margin-top: 17px; }
.gs-detail-offer { padding: 18px; border: 1px solid #d9d5ff; border-radius: 15px; background: #fbfaff; }
.gs-detail-offer > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.gs-detail-offer .gs-offer-price { margin: 4px 0 0; }
.gs-detail-offer-link { display: inline-flex; margin-top: 12px; padding: 9px 13px; border-radius: 9px; color: #fff; background: var(--gs-primary); font-size: 13px; font-weight: 800; }
.gs-detail-offer-link:hover { background: var(--gs-primary-deep); }
.gs-calendar-head { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; padding: 30px; border-radius: 22px; color: #fff; background: linear-gradient(125deg, #282068, #4f42ca); }
.gs-calendar-head .gs-kicker { color: #baf6e4; }
.gs-calendar-head h1 { margin: 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.04em; }
.gs-calendar-head p { margin: 8px 0 0; color: rgba(255,255,255,.82); }
.gs-calendar-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-calendar-filters a { padding: 7px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; }
.gs-calendar-filters a:hover, .gs-calendar-filters a.is-active { border-color: #fff; color: var(--gs-primary-deep); background: #fff; }
.gs-calendar-list { display: grid; gap: 30px; }
.gs-calendar-day h2 { margin: 0 0 13px; font-size: 20px; }
.gs-calendar-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.gs-calendar-game { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--gs-line); border-radius: 15px; background: #fff; }
.gs-calendar-thumb { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 9px; background: #e7eaf4; }
.gs-calendar-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gs-calendar-game h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.gs-calendar-game h3 a:hover { color: var(--gs-primary); }
.gs-calendar-game p { margin: 5px 0 0; color: var(--gs-muted); font-size: 12px; }

.gs-utility-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(380px, 1.18fr); gap: 26px; align-items: start; }
.gs-utility-intro { padding: 34px; border-radius: 24px; color: #fff; background: linear-gradient(145deg, #1e2d50, #5540bb); }
.gs-utility-intro h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.04em; }
.gs-utility-intro > p:last-of-type { color: rgba(255,255,255,.82); }
.gs-contact-guide { display: grid; gap: 16px; margin: 32px 0 0; }
.gs-contact-guide div { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.18); }
.gs-contact-guide dt { color: #baf6e4; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.gs-contact-guide dd { margin: 4px 0 0; color: rgba(255,255,255,.86); font-size: 13px; }
.gs-contact-guide a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gs-contact-panel { padding: 32px; border: 1px solid var(--gs-line); border-radius: 24px; background: #fff; box-shadow: var(--gs-shadow); }
.gs-contact-panel h2 { margin: 0 0 18px; font-size: 23px; }
.gs-contact-form { display: grid; gap: 17px; }
.gs-contact-form > label { display: grid; gap: 6px; color: #293750; font-size: 13px; font-weight: 800; }
.gs-contact-form > label > span { color: var(--gs-muted); font-size: 11px; font-weight: 700; }
.gs-contact-form input[type="text"], .gs-contact-form input[type="email"], .gs-contact-form select, .gs-contact-form textarea { width: 100%; border: 1px solid #cdd5e3; border-radius: 10px; padding: 11px 12px; color: var(--gs-ink); background: #fff; font: inherit; font-size: 15px; font-weight: 400; }
.gs-contact-form textarea { resize: vertical; min-height: 130px; }
.gs-contact-form input:focus, .gs-contact-form select:focus, .gs-contact-form textarea:focus { outline: 3px solid rgba(91,75,219,.2); border-color: var(--gs-primary); }
.gs-contact-form button { justify-self: start; border: 0; border-radius: 10px; padding: 12px 22px; color: #fff; background: var(--gs-primary); font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.gs-contact-form button:hover { background: var(--gs-primary-deep); }
.gs-consent { display: flex !important; align-items: flex-start; gap: 9px !important; font-weight: 400 !important; }
.gs-consent input { margin: 5px 0 0; }
.gs-consent a { color: var(--gs-primary-deep); text-decoration: underline; text-underline-offset: 3px; }
.gs-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }
.gs-form-help { margin: 0; color: var(--gs-muted); font-size: 12px; }
.gs-form-notice { margin: 0 0 18px; padding: 11px 13px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.gs-form-notice.is-success { color: #126848; background: #e1f7ed; }
.gs-form-notice.is-error { color: #9c322d; background: #fff0ee; }
.gs-policy-wrap { width: min(calc(100% - 36px), 880px); margin-inline: auto; }
.gs-policy-card { padding: 42px; border: 1px solid var(--gs-line); border-radius: 24px; background: #fff; box-shadow: var(--gs-shadow); }
.gs-policy-card > h1 { margin: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1.2; letter-spacing: -.04em; }
.gs-policy-card > p { color: #46536a; }
.gs-policy-card section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--gs-line); }
.gs-policy-card h2 { margin: 0 0 10px; font-size: 20px; }
.gs-policy-card section p { margin: 0; color: #46536a; font-size: 14px; }
.gs-policy-card a { color: var(--gs-primary-deep); text-decoration: underline; text-underline-offset: 3px; }
.gs-disclosure-card { border-top: 5px solid var(--gs-accent); }
.gs-disclosure-lead { max-width: 650px; font-size: 17px; }
.gs-policy-date { margin: 34px 0 0; color: var(--gs-muted) !important; font-size: 12px; }

.gs-site-footer { padding: 40px 0; color: #c9d0dc; background: #172033; font-size: 13px; }
.gs-footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.gs-footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.gs-footer-note { margin-top: 14px; color: #8e99ad; max-width: 720px; }
.gs-rakuten-credit { margin-top: 18px; min-height: 21px; }
.gs-rakuten-credit img { display: block; width: 221px; height: 21px; }

@media (max-width: 1000px) {
  .gs-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gs-hero-inner { grid-template-columns: 1fr; }
  .gs-hero-panel { display: none; }
  .gs-header-search { display: none; }
}
@media (max-width: 720px) {
  .gs-header-inner { min-height: 62px; }
  .gs-nav { display: none; }
  .gs-hero { padding: 43px 0 38px; }
  .gs-hero h1 { font-size: 35px; }
  .gs-hero-search button { padding-inline: 16px; }
  .gs-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .gs-guide-grid { grid-template-columns: 1fr; }
  .gs-footer-inner { flex-direction: column; }
  .gs-content { margin-top: 24px; padding: 24px 20px; }
  .gs-game-detail-hero { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 21px; }
  .gs-detail-section { padding: 23px 21px; }
  .gs-calendar-head { padding: 22px; }
  .gs-calendar-games { grid-template-columns: 1fr; }
  .gs-utility-layout { grid-template-columns: 1fr; }
  .gs-utility-intro, .gs-contact-panel, .gs-policy-card { padding: 24px 20px; }
}
