/*
Theme Name: Genba One
Description: 建設業マッチングサイト「GENBA ONE」向けオリジナルテーマ。緑×黄のブランドカラー。ケンセツマッチプラグインと組み合わせて使用します。
Version: 2.4.0
Author: 田城
License: GPL-2.0-or-later
Text Domain: genba-one
*/

:root {
  --go-green: #1c7c4b;
  --go-green-dark: #115c36;
  --go-green-deep: #0d4728;
  --go-yellow: #f5c400;
  --go-yellow-dark: #e0b300;
  --go-ink: #1a1a1a;
  --go-bg: #ffffff;
  --go-bg-soft: #f4f7f5;
  --go-text: #222826;
  --go-muted: #667069;
  --go-line: #e3e7e4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--go-bg);
  color: var(--go-text);
  line-height: 1.75;
}

a { color: var(--go-green); text-decoration: none; }
a:hover { color: var(--go-green-dark); }
img { max-width: 100%; height: auto; }

.go-container { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ---------- ヘッダー ---------- */
.go-header { background: #fff; border-bottom: 1px solid var(--go-line); position: relative; z-index: 5; }
.go-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; flex-wrap: wrap; gap: 8px; }
.go-brand { display: flex; align-items: center; gap: 10px; }
.go-brand img { max-height: 48px; width: auto; }
.go-brand .go-sitename { font-size: 1.4rem; font-weight: 800; color: var(--go-ink); letter-spacing: .04em; }
.go-brand .go-sitename .accent { color: var(--go-green); }
.go-nav ul { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; align-items: center; }
.go-nav a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--go-ink); }
.go-nav a:hover { background: var(--go-bg-soft); color: var(--go-green-dark); }

/* ---------- ボタン ---------- */
.go-btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: .98rem; border: none; cursor: pointer; text-decoration: none; }
.go-btn-green { background: var(--go-green); color: #fff !important; }
.go-btn-green:hover { background: var(--go-green-dark); }
.go-btn-yellow { background: var(--go-yellow); color: var(--go-ink) !important; }
.go-btn-yellow:hover { background: var(--go-yellow-dark); }
.go-btn-outline { border: 1px solid #c9cfcb; color: var(--go-ink) !important; background: #fff; }
.go-btn-outline:hover { border-color: var(--go-green); color: var(--go-green) !important; }
.go-btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff !important; }
.go-btn-ghost:hover { background: rgba(255,255,255,.12); }
.go-btn-xl { padding: 16px 52px; font-size: 1.1rem; }
/* 旧クラス互換 */
.go-btn-amber { background: var(--go-yellow); color: var(--go-ink) !important; }
.go-btn-amber:hover { background: var(--go-yellow-dark); }
.go-btn-navy { background: var(--go-green); color: #fff !important; }
.go-btn-navy:hover { background: var(--go-green-dark); }

/* ---------- ヒーロー ---------- */
.go-hero {
  position: relative; color: var(--go-ink);
  background: linear-gradient(100deg, #eef4f0 0%, #dfeae3 45%, #cfe0d5 100%);
  padding: 72px 0 64px; overflow: hidden;
}
.go-hero.has-photo { color: #fff; }
.go-hero.has-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,40,25,.78) 0%, rgba(10,40,25,.45) 55%, rgba(10,40,25,.15) 100%);
}
.go-hero .go-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.go-hero .go-container { position: relative; }
.go-hero h1 { font-size: 2.3rem; font-weight: 900; line-height: 1.45; margin-bottom: 14px; letter-spacing: .01em; }
.go-hero h1 .accent { color: var(--go-green); }
.go-hero.has-photo h1 .accent { color: #7de0ac; }
.go-hero .go-hero-sub { font-size: 1.02rem; font-weight: 600; margin-bottom: 26px; }
.go-hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.go-hero-badge {
  background: #fff; border: 2px solid var(--go-green); border-radius: 50%;
  width: 128px; height: 128px; display: flex; flex-direction: column; justify-content: center;
  text-align: center; color: var(--go-ink); box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.go-hero-badge .label { font-size: .72rem; color: var(--go-muted); }
.go-hero-badge .num { font-size: 1.3rem; font-weight: 900; color: var(--go-green-dark); line-height: 1.2; }
.go-hero-badge .sub { font-size: .72rem; font-weight: 700; }

/* ---------- セクション共通 ---------- */
.go-section { padding: 52px 0 24px; }
.go-section-alt { background: var(--go-bg-soft); }
.go-heading { text-align: center; font-size: 1.55rem; font-weight: 900; color: var(--go-ink); margin-bottom: 8px; }
.go-heading .accent { color: var(--go-green); }
.go-heading-sub { text-align: center; color: var(--go-muted); font-size: .95rem; margin-bottom: 28px; }
.go-center { text-align: center; margin: 26px 0 10px; }

/* ---------- お悩み比較 ---------- */
.go-worries { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 0; align-items: stretch; }
.go-worry-col { display: flex; flex-direction: column; gap: 12px; }
.go-worry-head { text-align: center; font-weight: 800; color: #fff; border-radius: 8px; padding: 10px; font-size: 1.02rem; }
.go-worry-head.bad { background: var(--go-ink); }
.go-worry-head.good { background: var(--go-green); }
.go-worry-item { background: var(--go-bg-soft); border: 1px solid var(--go-line); border-radius: 10px; padding: 16px 18px; font-weight: 600; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.go-worry-item .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
.go-worry-item .mark.x { background: var(--go-ink); }
.go-worry-item .mark.o { background: var(--go-green); }
.go-worry-item.good { background: #fff; border-color: #cde5d6; box-shadow: 0 2px 8px rgba(28,124,75,.08); }
.go-worry-arrow { display: flex; align-items: center; justify-content: center; color: var(--go-green); font-size: 2.2rem; font-weight: 900; }

/* ---------- サービスの仕組み(4ステップ) ---------- */
.go-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.go-flow-step { background: #fff; border: 1px solid var(--go-line); border-radius: 12px; padding: 22px 18px; text-align: center; position: relative; }
.go-flow-num { display: inline-block; background: var(--go-ink); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 20px; padding: 2px 14px; margin-bottom: 10px; }
.go-flow-step h4 { color: var(--go-ink); font-size: 1.05rem; margin-bottom: 8px; }
.go-flow-step p { font-size: .85rem; color: var(--go-muted); text-align: left; }
.go-relation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.go-relation-box { background: #fff; border: 2px solid var(--go-green); border-radius: 12px; padding: 20px; text-align: center; font-weight: 800; color: var(--go-ink); }
.go-relation-box .sub { display: block; font-size: .8rem; font-weight: 600; color: var(--go-muted); }
.go-relation-box.center { border-color: var(--go-ink); }
.go-relation-box.center .brand { color: var(--go-green); font-size: 1.15rem; }
.go-relation-arrows { color: var(--go-green); font-size: 1.6rem; font-weight: 900; text-align: center; }

/* ---------- 実績カード ---------- */
.go-statcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.go-statcard {
  background: linear-gradient(160deg, #223028, #0f1b14);
  color: #fff; border-radius: 12px; padding: 34px 20px; text-align: center;
}
.go-statcard .label { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.go-statcard .num { font-size: 2.6rem; font-weight: 900; color: #6fe3a3; line-height: 1.2; }
.go-statcard .num small { font-size: 1.2rem; color: #fff; }
.go-statcard .sub { font-size: .9rem; font-weight: 700; }

/* ---------- 工事種別チップ ---------- */
.go-trades { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.go-trade { background: #fff; border: 1px solid var(--go-line); border-radius: 8px; padding: 10px 16px; font-size: .88rem; font-weight: 700; color: var(--go-ink); }

/* ---------- CTAバンド ---------- */
.go-ctaband { background: var(--go-green); color: #fff; padding: 56px 0; margin-top: 48px; }
.go-ctaband h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 20px; }
.go-ctaband h2 .accent { color: var(--go-yellow); }
.go-ctaband-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.go-ctaband-points { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.go-ctaband-point { background: #fff; color: var(--go-ink); border-radius: 10px; padding: 14px 18px; text-align: center; font-size: .85rem; font-weight: 700; min-width: 140px; }
.go-ctaband-point .big { display: block; font-size: 1rem; color: var(--go-green-dark); }

/* ---------- 本文・記事 ---------- */
.go-main { padding: 34px 0 56px; }
.go-content { background: #fff; border: 1px solid var(--go-line); border-radius: 10px; padding: 30px; }
.go-content h1.entry-title { font-size: 1.5rem; color: var(--go-ink); margin-bottom: 18px; }
.go-content h2 { color: var(--go-ink); margin: 26px 0 10px; font-size: 1.25rem; }
.go-content h3 { color: var(--go-ink); margin: 20px 0 8px; font-size: 1.1rem; }
.go-content p { margin-bottom: 14px; }
.go-content ul, .go-content ol { margin: 0 0 14px 1.4em; }
.go-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.go-content th, .go-content td { border: 1px solid var(--go-line); padding: 9px 13px; }
.go-content th { background: var(--go-bg-soft); }

.go-loop article { background: #fff; border: 1px solid var(--go-line); border-radius: 10px; padding: 22px; margin-bottom: 16px; }
.go-loop h2 a { color: var(--go-ink); }
.go-loop .go-date { font-size: .8rem; color: var(--go-muted); }

/* ---------- フッター ---------- */
.go-footer { background: var(--go-ink); color: #c4cbc7; margin-top: 0; }
.go-footer-inner { padding: 36px 0 26px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.go-footer .go-sitename { font-size: 1.2rem; font-weight: 800; color: #fff; }
.go-footer .go-sitename .accent { color: #6fe3a3; }
.go-footer nav ul { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; }
.go-footer a { color: #c4cbc7; font-size: .88rem; }
.go-footer a:hover { color: #6fe3a3; }
.go-copy { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: .8rem; text-align: center; }

/* ---------- ケンセツマッチプラグインの上書き ---------- */
.km-btn-primary { background: var(--go-green) !important; color: #fff !important; font-weight: 700; }
.km-btn-primary:hover { background: var(--go-green-dark) !important; }
.km-badge-construction { background: #e2f2e9; color: var(--go-green-dark); }
.km-badge-available { background: #fff6d6; color: #8a6d00; }
.km-badge-verified { background: #e2f2e9; color: var(--go-green-dark); }
.km-card, .km-form-box, .km-filter-bar, .km-detail-box, .km-msg-thread, .km-msg-list li { border-color: var(--go-line); border-radius: 12px; }
.km-card h4 a { color: var(--go-ink); }
.km-detail-table th { background: var(--go-bg-soft); }
.km-mine { background: var(--go-green); }

@media (max-width: 820px) {
  .go-hero h1 { font-size: 1.55rem; }
  .go-worries { grid-template-columns: 1fr; }
  .go-worry-arrow { transform: rotate(90deg); padding: 4px 0; }
  .go-flow { grid-template-columns: 1fr 1fr; }
  .go-statcards { grid-template-columns: 1fr; }
  .go-relation { grid-template-columns: 1fr; }
  .go-relation-arrows { transform: rotate(90deg); }
  .go-header-inner { justify-content: center; }
}

/* ---------- v2.1 画像素材 ---------- */
.go-worry-item { position: relative; padding-right: 86px; }
.go-worry-illust { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 66px; height: auto; border-radius: 6px; }
.go-flow-icon { display: block; margin: 10px auto 0; height: 84px; width: auto; }
.go-relation-img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--go-line); display: block; }
.go-stat-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.go-trades-img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.go-ctaband-inner { align-items: center; }
.go-ctaband-main { flex: 1; min-width: 280px; }
.go-phone { max-height: 300px; width: auto; border-radius: 10px; flex: none; }
@media (max-width: 900px) { .go-phone { display: none; } }

/* ---------- v2.2 ライトヒーロー ---------- */
.go-hero-light { position: relative; background: #fff; overflow: hidden; padding: 84px 0 76px; color: var(--go-ink); }
.go-hero-photo { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; object-position: center; }
.go-hero-fade { position: absolute; top: 0; right: 0; width: 58%; height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,.55) 30%, rgba(255,255,255,0) 65%); }
.go-hero-light-inner { position: relative; max-width: 1100px; }
.go-hero-light h1 { font-size: 2.5rem; font-weight: 900; line-height: 1.5; margin-bottom: 16px; letter-spacing: .01em; }
.go-hero-light h1 .accent { color: var(--go-green); }
.go-hero-light .go-hero-sub { font-size: 1.05rem; font-weight: 700; margin-bottom: 30px; }
.go-hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: 34px; }
.go-hero-stat { display: flex; gap: 10px; align-items: flex-start; }
.go-hero-stat svg { width: 46px; height: 46px; color: var(--go-green); flex: none; margin-top: 14px; }
.go-hero-stat .label { display: block; font-size: .85rem; font-weight: 700; }
.go-hero-stat .num { display: block; font-size: 2rem; font-weight: 900; color: var(--go-green); line-height: 1.25; }
.go-hero-stat .num small { font-size: 1.1rem; color: var(--go-ink); }
.go-hero-stat .sub { display: block; font-size: .85rem; font-weight: 800; }
.go-cta-pill { display: inline-flex; align-items: center; gap: 18px; background: var(--go-green); color: #fff !important;
  border-radius: 60px; padding: 14px 34px 14px 14px; font-weight: 800; font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(28,124,75,.35); }
.go-cta-pill:hover { background: var(--go-green-dark); }
.go-cta-pill .circle { background: #fff; color: var(--go-green-dark); border-radius: 50%; width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center; text-align: center; font-size: .8rem; font-weight: 800; line-height: 1.3; flex: none; }
.go-cta-pill .arrow { font-size: 1.4rem; }
.go-hero-circle-badge { position: absolute; right: 40px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--go-green); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 800; font-size: .95rem; line-height: 1.5; box-shadow: 0 4px 14px rgba(0,0,0,.25); transform: rotate(6deg); }
.go-tagline { display: block; font-size: .62rem; font-weight: 600; color: var(--go-muted); letter-spacing: .05em; line-height: 1.2; }
@media (max-width: 900px) {
  .go-hero-light { padding: 48px 0; }
  .go-hero-light h1 { font-size: 1.55rem; }
  .go-hero-photo, .go-hero-fade { width: 100%; opacity: .18; }
  .go-hero-circle-badge { display: none; }
  .go-hero-stats { gap: 18px; }
}

/* ---------- v2.3 モバイル対応 ---------- */
.go-menu-toggle { display: none; background: none; border: 1px solid var(--go-line); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; }
.go-menu-toggle span { display: block; width: 22px; height: 3px; background: var(--go-ink); border-radius: 2px; margin: 4px 0; }

@media (max-width: 820px) {
  .go-header-inner { justify-content: space-between; }
  .go-menu-toggle { display: block; }
  .go-nav { display: none; width: 100%; }
  .go-nav.open { display: block; }
  .go-nav ul { flex-direction: column; gap: 0; padding: 8px 0 14px; }
  .go-nav ul li { width: 100%; }
  .go-nav a, .go-nav .go-btn { display: block; width: 100%; text-align: center; padding: 13px 12px !important;
    font-size: 1rem; border-radius: 8px; margin: 3px 0; }
  .go-nav a { background: var(--go-bg-soft); }
  .go-cta-pill { font-size: 1.05rem; padding: 12px 22px 12px 12px; }
  .go-cta-pill .circle { width: 60px; height: 60px; font-size: .72rem; }
}

/* フォーム部品をスマホで押しやすく */
@media (max-width: 720px) {
  input[type=text], input[type=email], input[type=password], input[type=date], select, textarea, button {
    font-size: 16px !important; /* iOSの自動ズーム防止 */
  }
}

/* ---------- v2.4 ピル型ボタン ---------- */
.go-btn { border-radius: 999px; }
.go-btn-green { box-shadow: 0 2px 8px rgba(28,124,75,.25); }
.go-btn-yellow { box-shadow: 0 2px 8px rgba(224,179,0,.3); }
