/* ゴルフ場サーチ
   色を変えたい時は、下の :root の中だけ書き換えればサイト全体に反映されます */
:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --green-line: #a5d6a7;
  --reserve: #d84315;
  --reserve-dark: #bf360c;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e2e6df;
  --bg: #f3f5f1;
  --card: #ffffff;
  --star: #f5a623;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.18) 0 18%, transparent 19%),
    radial-gradient(circle at 92% 80%, rgba(255,255,255,.10) 0 25%, transparent 26%),
    linear-gradient(135deg, #43a047 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #fff;
  padding: 28px 0 24px;
}
.site-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: .04em; line-height: 1.3; }
.site-title a { color: #fff; text-decoration: none; }
.site-desc { margin: 8px 0 0; font-size: 14px; opacity: .92; line-height: 1.7; }

/* パンくず */
.crumbs ol { list-style: none; margin: 14px auto 0; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #aaa; }

/* 2カラム */
.layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 16px; margin-bottom: 32px; }
@media (min-width: 900px) {
  .layout.side-left  { grid-template-columns: 260px minmax(0, 1fr); }
  .layout.side-left  .side { order: -1; }
  .layout.side-right { grid-template-columns: minmax(0, 1fr) 260px; }
}
.main {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  min-width: 0;
}
@media (max-width: 600px) { .main { padding: 16px 14px 24px; } }

.ad-notice { margin: 0 0 12px; color: #c62828; font-size: 13px; font-weight: 700; text-align: center; }

.page-title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.45;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green);
}

/* 本文 */
.contents { margin: 28px 0; }
.contents:first-child { margin-top: 0; }
.contents h2 {
  font-size: 20px;
  margin: 32px 0 14px;
  padding: 8px 14px;
  background: var(--green-light);
  border-left: 6px solid var(--green);
  border-radius: 4px;
  line-height: 1.5;
}
.contents h3 {
  font-size: 18px;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--green-line);
  line-height: 1.5;
}
.contents p { margin: 0 0 1em; }
.contents ul, .contents ol { padding-left: 1.4em; }
.contents table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
.contents th, .contents td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.contents th { background: #fafbf9; width: 32%; font-weight: 600; }

.notice { background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius); padding: 16px 18px; }
.notice p:last-child { margin-bottom: 0; }

/* ボタン */
.btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background .15s, color .15s;
}
.btn-reserve { background: var(--reserve); color: #fff; }
.btn-reserve:hover { background: var(--reserve-dark); color: #fff; }
.btn-detail { background: var(--green); color: #fff; }
.btn-detail:hover { background: var(--green-dark); color: #fff; }
.btn-sub { background: #fff; color: var(--green-dark); border-color: var(--green-line); }
.btn-sub:hover { background: var(--green-light); }
.btn-large { display: block; padding: 14px 18px; font-size: 17px; }
.cta { margin: 24px 0; }

/* 星 */
.stars { position: relative; display: inline-block; color: #d8d8d8; letter-spacing: 1px; line-height: 1; vertical-align: -1px; }
.stars-on { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars-num { margin-left: 6px; font-size: 13px; color: var(--muted); }
.stars-none { color: var(--muted); }

/* 一覧 */
.list-count { color: var(--muted); font-size: 14px; }
.list-count strong { color: var(--text); font-size: 18px; }
.cards {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.card-img { display: block; margin: -14px -14px 10px; }
.card-img img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.card-title { font-size: 16px; margin: 0 0 4px; line-height: 1.5; }
.card-title a { text-decoration: none; }
.card-rate, .card-addr, .card-hw, .card-text { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
.card-addr, .card-hw { color: var(--muted); }
.card-text { color: #444; }
.card-btns { margin: auto 0 0; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-btns .btn { flex: 1 1 auto; font-size: 13px; padding: 6px 10px; }

/* ページ送り */
.pager ul { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span {
  display: inline-block; min-width: 40px; padding: 6px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 14px;
}
.pager .current span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

/* 詳細 */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.photos a:first-child { grid-column: 1 / -1; }
.photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; display: block; }
.photos a:first-child img { height: auto; max-height: 360px; }

.price-box { display: flex; flex-wrap: wrap; gap: 8px 24px; background: var(--green-light); border-radius: var(--radius); padding: 14px 18px; }
.price-box p { margin: 0; }
.price-box span { display: block; font-size: 12px; color: var(--muted); }
.price-box strong { font-size: 22px; color: var(--reserve); }
.price-box .price-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }

.scores th { width: 45%; }
.plans { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.plan-name { font-weight: 700; margin: 0 0 6px; }
.plan-price { margin: 6px 0 0; font-size: 20px; font-weight: 800; color: var(--reserve); text-align: right; }

dl.info { margin: 0; display: grid; grid-template-columns: 8em 1fr; gap: 6px 12px; font-size: 14px; }
dl.info dt { color: var(--muted); font-weight: 600; }
dl.info dd { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 8px 28px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h3 { margin-top: 10px; }

.review { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.review:last-child { border-bottom: 0; }
.review-title { font-weight: 700; margin: 0 0 2px; }
.review-who { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.review-rate { margin: 0 0 6px; font-size: 14px; }
.review-text { margin: 0 0 8px; }
.review-scores { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; font-size: 13px; color: var(--muted); }

.map { position: relative; padding-top: 60%; border-radius: var(--radius); overflow: hidden; background: #eee; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hotels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hotel { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-size: 14px; }
.hotel img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; }
.hotel-name { font-weight: 700; margin: 0 0 4px; }
.hotel-text { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.hotel-price { margin: 0; color: var(--reserve); font-weight: 700; }

.credit { margin-top: 24px; }

/* 検索フォーム */
.search-box { margin: 32px 0 8px; padding: 18px; background: #f7f9f6; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.search-lead { margin: 0 0 10px; font-weight: 700; }
.search-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.search-row select, .search-row input, .search-row button { font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 8px; border: 1px solid #c9cfc5; }
.search-row input { flex: 1 1 200px; max-width: 320px; }
.search-row button { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; cursor: pointer; padding: 8px 22px; }
.search-row button:hover { background: var(--green-dark); }

/* シェア */
.share { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.share-label { color: var(--muted); margin-right: 4px; }
.share a { padding: 4px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; }
.share-x { background: #111; }
.share-line { background: #06c755; }
.share-fb { background: #1877f2; }
.share-hatena { background: #00a4de; }

/* サイドバー */
.side { font-size: 15px; }
.side > * { background: var(--card); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.side p { margin: 0 0 .8em; }
.side p:last-child { margin-bottom: 0; }
.side-menu { padding: 0 !important; overflow: hidden; }
.side-menu-title { margin: 0 !important; padding: 10px 16px; background: var(--green); color: #fff; font-weight: 700; text-align: center; }
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li + li { border-top: 1px solid var(--line); }
.side-menu a { display: block; padding: 10px 16px; text-decoration: none; }
.side-menu a:hover { background: var(--green-light); }

/* トップページのリンク集 */
.top .links { line-height: 2.1; }
.top .links a { white-space: nowrap; }

/* フッター */
.site-footer { background: #263a28; color: #cfd8cf; font-size: 13px; padding: 20px 0; text-align: center; }
.site-footer a { color: #e8f5e9; }
.site-footer p { margin: 4px 0; }

/* 地域ごとの広告枠(golf_content/ads/) */
.ad-box { background: var(--card); border: 2px solid var(--green-line); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }
.ad-box .ad-title { font-size: 18px; margin: 0 0 6px; color: var(--green-dark); border: 0; padding: 0; }
.ad-box .ad-lead { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.ad-box .ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ad-box .ad-item { border-top: 1px dashed var(--line); padding-top: 12px; }
.ad-box .ad-item:first-child { border-top: 0; padding-top: 0; }
.ad-box .ad-name { font-weight: bold; margin: 0 0 4px; }
.ad-box .ad-text { font-size: 14px; margin: 0 0 8px; }
.ad-box .ad-link a { display: inline-block; background: var(--green); color: #fff; text-decoration: none; border-radius: 999px; padding: 6px 18px; font-size: 14px; font-weight: bold; }
.ad-box .ad-link a:hover { background: var(--green-dark); }
.ad-box img[width="1"] { position: absolute; width: 1px; height: 1px; }
