/*
Theme Name: Infireet Map
Theme URI: https://example.com/
Author: 株式会社トラスト
Description: 学校口コミサイト向けの投稿・検索・口コミ対応WordPressテーマ。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: gakko-kuchikomi
*/

:root {
  --ink: #26211d;
  --muted: #6f6861;
  --line: #e7e1dc;
  --paper: #ffffff;
  --soft: #f7f4f1;
  --accent: #b23825;
  --accent-dark: #812719;
  --gold: #c48a24;
  --green: #25735b;
  --bluegray: #526777;
  --shadow: 0 16px 34px rgba(38, 33, 29, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf8;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }

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

.gk-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.gk-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.gk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
}
.gk-logo .custom-logo { max-height: 46px; width: auto; }

.gk-logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
}

.gk-nav { margin-left: auto; }
.gk-nav ul { display: flex; gap: 18px; align-items: center; margin: 0; padding: 0; list-style: none; }
.gk-nav a { font-size: 14px; font-weight: 700; color: #413a34; }

.gk-header-actions { display: flex; gap: 10px; align-items: center; }

.gk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.gk-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(38, 33, 29, 0.10); color: var(--ink); }
.gk-btn--primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.gk-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.gk-btn--ghost { background: transparent; }
.gk-btn--small { min-height: 34px; padding: 0 12px; font-size: 13px; }

.gk-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #2f312f;
}

.gk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: .72;
}

.gk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 17, 14, .82), rgba(22, 17, 14, .46) 52%, rgba(22, 17, 14, .20));
}

.gk-hero__inner { position: relative; z-index: 1; padding: 70px 0 58px; }
.gk-hero__copy { max-width: 760px; }
.gk-eyebrow { margin: 0 0 12px; color: #f0c070; font-weight: 800; }
.gk-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.18; letter-spacing: 0; }
.gk-hero p { margin: 0 0 28px; max-width: 680px; font-size: 17px; color: rgba(255,255,255,.9); }

.gk-search-panel {
  width: min(980px, 100%);
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.gk-search-form {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  gap: 10px;
}

.gk-search-form input,
.gk-search-form select,
.gk-form input,
.gk-form select,
.gk-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7d0ca;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.gk-search-form input:focus,
.gk-search-form select:focus,
.gk-form input:focus,
.gk-form select:focus,
.gk-form textarea:focus {
  outline: 2px solid rgba(178, 56, 37, .18);
  border-color: var(--accent);
}

.gk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  max-width: 760px;
}

.gk-stat {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.gk-stat strong { display: block; font-size: 22px; line-height: 1.25; }
.gk-stat span { font-size: 13px; color: rgba(255,255,255,.82); }

.gk-main { padding: 44px 0 70px; }
.gk-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }

.gk-section { margin-bottom: 44px; }
.gk-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gk-section h2, .gk-page-title { margin: 0; font-size: 26px; line-height: 1.35; letter-spacing: 0; }
.gk-section-lead { margin: 6px 0 0; color: var(--muted); }

.gk-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gk-area-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}
.gk-area-link span { color: var(--muted); font-weight: 700; }

.gk-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gk-school-card {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(38, 33, 29, .05);
}

.gk-school-card__image {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9edf0, #cbd5d7);
}
.gk-school-card__image img { width: 100%; height: 100%; object-fit: cover; }
.gk-school-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.gk-school-card__meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.gk-school-card__excerpt { margin: 8px 0 0; color: #4b443e; font-size: 14px; }

.gk-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.gk-badge { padding: 3px 8px; border-radius: 999px; background: var(--soft); color: #564d45; font-size: 12px; font-weight: 700; }

.gk-rating { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.gk-rating__stars { color: var(--gold); letter-spacing: 0; }
.gk-rating strong { color: var(--accent); font-size: 18px; }

.gk-empty {
  padding: 36px;
  border: 1px dashed #d2c9c2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.gk-empty h2, .gk-empty h3 { margin: 0 0 8px; }
.gk-empty p { margin: 0 0 18px; color: var(--muted); }

.gk-sidebar { position: sticky; top: 94px; }
.gk-side-section, .gk-ad-widget, .gk-ad-placeholder {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.gk-side-title { margin: 0 0 10px; font-size: 17px; }
.gk-ad-placeholder {
  display: grid;
  place-items: center;
  width: 300px;
  height: 250px;
  color: #6c6259;
  background: repeating-linear-gradient(45deg, #f3f0ed, #f3f0ed 12px, #e9e3dd 12px, #e9e3dd 24px);
}
.gk-ad-placeholder span { font-size: 22px; font-weight: 800; }
.gk-ad-placeholder small { margin-top: -82px; }

.gk-page-hero {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.gk-breadcrumb { margin: 0 0 10px; color: var(--muted); font-size: 13px; }

.gk-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.gk-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.gk-form label { display: block; font-weight: 800; color: #3b342f; }
.gk-form label span { color: var(--accent); font-size: 12px; }
.gk-form small { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; }
.gk-form textarea { min-height: 160px; resize: vertical; }
.gk-form__wide { grid-column: 1 / -1; }
.gk-form .gk-btn { margin-top: 18px; }

.gk-school-visual {
  min-height: 310px;
  background: #d9e0e2;
}
.gk-school-visual img { width: 100%; height: 310px; object-fit: cover; }
.gk-school-visual__placeholder {
  display: grid;
  place-items: center;
  height: 310px;
  color: #65727b;
  font-weight: 800;
  background: linear-gradient(135deg, #ecf0f1, #ccd7da);
}

.gk-school-head {
  margin-top: -58px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gk-school-head h1 { margin: 8px 0 10px; font-size: 32px; line-height: 1.28; }
.gk-detail-list { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 20px 0; }
.gk-detail-list dt { color: var(--muted); font-weight: 800; }
.gk-detail-list dd { margin: 0; }
.gk-content { padding: 24px 0; font-size: 16px; }

.gk-review-list { display: grid; gap: 12px; }
.gk-review {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.gk-review__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gk-review__name { font-weight: 800; }

.gk-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #edf7f2;
  color: var(--green);
  font-weight: 800;
}

.gk-site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #2e2a26;
  color: rgba(255,255,255,.86);
}
.gk-footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.gk-footer-inner ul { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; }

@media (max-width: 920px) {
  .gk-nav { display: none; }
  .gk-search-form { grid-template-columns: 1fr 1fr; }
  .gk-search-form .gk-btn { grid-column: 1 / -1; }
  .gk-two-col { grid-template-columns: 1fr; }
  .gk-sidebar { position: static; }
  .gk-card-grid { grid-template-columns: 1fr; }
  .gk-area-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gk-wrap { width: min(100% - 22px, 1120px); }
  .gk-header-inner { min-height: 64px; gap: 10px; }
  .gk-logo { font-size: 18px; }
  .gk-header-actions .gk-btn--ghost { display: none; }
  .gk-hero { min-height: 610px; }
  .gk-search-form, .gk-stats, .gk-form__grid { grid-template-columns: 1fr; }
  .gk-school-card { grid-template-columns: 1fr; }
  .gk-area-grid { grid-template-columns: 1fr; }
  .gk-footer-inner { display: block; }
  .gk-footer-inner ul { flex-wrap: wrap; margin-top: 14px; }
}
