/*
Theme Name: TeeUp
Theme URI: https://teeuplife.com/news
Author: TeeUp Life
Author URI: https://teeuplife.com
Description: TeeUp Life お知らせ用のオリジナルクラシックテーマ。ゴルフ場検索サイトのニュース／ブログ向け。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teeup
Tags: news, blog, custom-menu, featured-images, translation-ready
*/

/* ===== デザイントークン ===== */
:root {
  --color-accent: #2DC97A;       /* ブランドグリーン（検索アプリと統一） */
  --color-accent-dark: #22A862;
  --color-accent-light: #E8FAF2;
  --color-pop: #FF6F8B;          /* ポップな差し色（コーラル） */
  --color-pop-soft: #FFE9EE;
  --color-ink: #16313a;          /* 見出し用の濃色 */
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-soft: #f1f6f3;
  --color-page: #f6f9f7;         /* ページ全体のやわらかい背景 */
  --color-heading-ghost: #b6cabf; /* 大きい英語見出しのくすみ色 */
  --maxw: 1080px;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-page);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
/* 全幅ヒーローのあるトップページだけ横スクロールを抑止。
   （body 全体に overflow を掛けると記事ページの目次 sticky が効かなくなるため限定） */
body.home { overflow-x: clip; }

/* ===== レイアウト ===== */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #000; color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== ヘッダー ===== */
.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.site-branding .site-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.site-branding .site-title a { color: var(--color-text); }
.site-branding .site-description { margin: .15rem 0 0; font-size: .8rem; color: var(--color-muted); }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 38px; width: auto; display: block; transition: opacity .15s; }
.site-logo:hover img { opacity: .8; }
@media (max-width: 720px) { .site-logo img { height: 30px; } }

.main-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.main-nav a { color: var(--color-text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--color-accent); text-decoration: none; }

/* ===== コンテンツ ===== */
.site-main { padding-block: 2.5rem 4rem; }
.page-title {
  font-size: 1.5rem; margin: 0 0 1.75rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--color-accent);
}

/* 記事一覧カード */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem;
  padding: 1.25rem; border: 1px solid var(--color-line);
  border-radius: var(--radius); transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.post-card__thumb img { border-radius: 8px; width: 100%; height: 130px; object-fit: cover; }
.post-card__thumb--placeholder {
  border-radius: 8px; height: 130px; background: var(--color-bg-soft);
  display: grid; place-items: center; color: var(--color-muted); font-size: .8rem;
}
.post-card__title { font-size: 1.1rem; margin: .25rem 0 .5rem; }
.post-meta { font-size: .8rem; color: var(--color-muted); display: flex; gap: .75rem; flex-wrap: wrap; }
.post-meta .cat { color: var(--color-accent); font-weight: 600; }
.post-card__excerpt { margin: .5rem 0 0; color: #374151; font-size: .92rem; }

/* 単一記事（横幅はコンテナ＝1080pxに合わせる） */
.entry { max-width: none; margin-inline: auto; }
.entry__title { font-size: 1.9rem; line-height: 1.4; margin: .5rem 0 1rem; }
.entry__thumb { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.entry__content { font-size: 1.02rem; }
.entry__content h2 { border-left: 4px solid var(--color-accent); padding-left: .6rem; margin-top: 2rem; }
.entry__content img { border-radius: 8px; margin-block: 1rem; }
.entry__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-line); }

/* ボタン */
.btn {
  display: inline-block; background: var(--color-accent); color: #fff;
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.btn:hover { background: var(--color-accent-dark); text-decoration: none; color: #fff; }

/* ページネーション */
.pagination { margin-top: 2.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: .4rem .8rem; border: 1px solid var(--color-line); border-radius: 8px; color: var(--color-text);
}
.pagination .page-numbers.current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* 検索フォーム */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  padding: .5rem .8rem; border: 1px solid var(--color-line); border-radius: 8px; flex: 1;
}
.search-form button {
  border: 0; background: var(--color-accent); color: #fff; padding: .5rem 1rem; border-radius: 8px; cursor: pointer;
}

/* ===== フッター ===== */
.site-footer { border-top: 1px solid var(--color-line); background: var(--color-bg-soft); margin-top: 3rem; }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; padding-block: 2.5rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.site-footer__logo { height: 42px; width: auto; display: block; }
.site-footer__tagline { margin: 0; font-size: .82rem; color: var(--color-muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; }
.site-footer__nav a { font-size: .88rem; font-weight: 600; color: var(--color-text); }
.site-footer__nav a:hover { color: var(--color-accent); text-decoration: none; }
.site-footer__bottom { border-top: 1px solid var(--color-line); }
.site-footer__bottom .container { padding-block: 1rem; }
.site-footer__bottom small { color: var(--color-muted); font-size: .8rem; }

/* ===== レスポンシブ ===== */
@media (max-width: 720px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 1rem; flex-wrap: wrap; }
  .post-card { grid-template-columns: 1fr; }
  .post-card__thumb img, .post-card__thumb--placeholder { height: 180px; }
}

/* =========================================================
   トップページ（総合ポータル）
   ========================================================= */

/* セクション見出し */
.section { padding-block: 3.9rem; }
.section--soft { background: var(--color-bg-soft); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.1rem; flex-wrap: wrap;
}
.section-head h2 {
  display: flex; flex-direction: column; gap: .25rem; margin: 0; line-height: 1.05;
}
/* 大きく軽い英語見出し（抜け感） */
.section-head h2 .en {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem); font-weight: 600; letter-spacing: .015em;
  color: var(--color-heading-ghost); line-height: 1;
}
/* 小さな日本語ラベル */
.section-head h2 .jp {
  font-size: .9rem; font-weight: 700; color: var(--color-accent-dark);
  letter-spacing: .06em; display: inline-flex; align-items: center; gap: .5rem; padding-left: .1rem;
}
.section-head h2 .jp::before {
  content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--color-accent);
}
/* もっと見る（立体＝ハード影のポップボタン） */
.section-head .more {
  font-size: .82rem; font-weight: 700; color: var(--color-accent-dark); white-space: nowrap;
  background: #fff; border: 2px solid var(--color-accent); border-radius: 999px;
  padding: .4rem 1.05rem; box-shadow: 3px 3px 0 var(--color-accent);
  transition: transform .12s, box-shadow .12s;
}
.section-head .more:hover {
  text-decoration: none; color: var(--color-accent-dark);
  transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--color-accent);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  /* コンテナからはみ出してウィンドウ全幅に */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2.5rem; /* .site-main の上パディングを相殺してページ先頭に */
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #EAF7F1 100%);
}
/* ゴルフ場イラスト（全幅・全景表示） */
.hero__bg { display: block; width: 100%; height: auto; }
/* ロゴ＋CTAを上部中央に重ねる */
.hero__inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(2.25rem, 6vw, 5rem);
  text-align: center;
}
.hero__brand { margin: 0; line-height: 0; }
.hero__logo {
  width: min(460px, 44vw); height: auto; display: block;
  filter: drop-shadow(0 10px 22px rgba(28,60,45,.12));
}
.hero__cta-btn { margin-top: clamp(1rem, 2.6vw, 1.85rem); }

/* ヒーロー直後のセクション（Pickup）をヒーロー下部にかぶせて“せり上がる”表現 */
.hero + .section {
  position: relative; z-index: 2;
  margin-top: clamp(-180px, -12vw, -90px);
  background: var(--color-page);
  border-radius: 32px 32px 0 0;
  padding-top: 3rem;
  box-shadow: 0 -10px 30px rgba(28,60,45,.05);
}
.hero__eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--color-accent-dark); background: var(--color-accent-light);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.35; margin: 0 0 .9rem;
  font-weight: 800; letter-spacing: .01em;
}
.hero__title .accent { color: var(--color-accent); }
.hero__lead { color: #4b5563; font-size: 1rem; margin: 0 0 1.6rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* 大きめ検索CTAボタン */
.btn-search {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--color-accent); color: #fff; font-weight: 700; font-size: 1rem;
  padding: .9rem 1.7rem; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--color-accent-dark); transition: transform .12s, box-shadow .12s, background .15s;
}
.btn-search:hover { background: var(--color-accent-dark); text-decoration: none; color: #fff; transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--color-accent-dark); }
.btn-search svg { width: 20px; height: 20px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--color-accent-dark); font-weight: 700; font-size: .92rem;
  padding: .9rem .4rem;
}

/* ===== ピックアップ特集 ===== */
.pickup-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.25rem; }
.pickup-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #111; min-height: 240px; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; box-shadow: 0 10px 26px rgba(28,60,45,.10);
}
.pickup-card--lead { grid-row: span 2; min-height: 320px; }
.pickup-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform .4s;
}
.pickup-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%);
}
.pickup-card:hover img { transform: scale(1.05); }
.pickup-card__body { padding: 1.1rem 1.2rem; }
.pickup-card__cat {
  display: inline-block; font-size: .72rem; font-weight: 800;
  background: var(--color-pop); color: #fff; padding: .22rem .65rem; border-radius: 999px; margin-bottom: .5rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,.18);
}
.pickup-card__title { font-size: 1rem; font-weight: 700; line-height: 1.5; margin: 0; }
.pickup-card--lead .pickup-card__title { font-size: 1.3rem; }
.pickup-card__ph { background: linear-gradient(135deg, #2DC97A, #1b9e5e); }

/* ===== エリアから探す ===== */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.area-block h3 {
  font-size: .95rem; margin: 0 0 .7rem; color: var(--color-accent-dark);
  border-bottom: 1px dashed var(--color-line); padding-bottom: .4rem;
}
.area-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.area-block a {
  display: inline-block; font-size: .85rem; color: var(--color-text);
  background: #fff; border: 1px solid var(--color-line); border-radius: 8px;
  padding: .35rem .7rem; transition: all .15s;
}
.area-block a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); text-decoration: none; }

/* ===== 新着コラム ===== */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.col-card { display: flex; flex-direction: column; }
.col-card__thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: #fff; box-shadow: 0 8px 20px rgba(28,60,45,.07); }
.col-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.col-card:hover .col-card__thumb img { transform: scale(1.05); }
.col-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--color-muted); font-size: .8rem; }
.col-card__meta { display: flex; gap: .6rem; align-items: center; margin: .7rem 0 .4rem; font-size: .76rem; color: var(--color-muted); }
.col-card__cat { color: var(--color-pop); font-weight: 800; background: var(--color-pop-soft); padding: .14rem .5rem; border-radius: 6px; }
.col-card__title { font-size: 1rem; line-height: 1.5; margin: 0; font-weight: 700; }
.col-card__title a { color: var(--color-text); }
.col-card__title a:hover { color: var(--color-accent); text-decoration: none; }

@media (max-width: 860px) {
  .pickup-grid { grid-template-columns: 1fr 1fr; }
  .pickup-card--lead { grid-column: span 2; grid-row: auto; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hero { min-height: 430px; }
  .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
  .hero__logo { width: min(280px, 64vw); }
}
@media (max-width: 600px) {
  .pickup-grid { grid-template-columns: 1fr; }
  .pickup-card--lead { grid-column: auto; }
  .area-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ヘッダー強化・記事/アーカイブページ
   ========================================================= */

/* ブランドの差し色ストライプ（ロゴ配色） */
.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg, #1FA19B 0%, #2DC97A 22%, #F2B431 44%, #EF4A7D 62%, #2E92E8 80%, #74509D 100%);
}

/* ナビ */
.site-header__inner { gap: 1.75rem; }
.main-nav { margin-left: auto; }
.main-nav ul { gap: 1.4rem; }
.main-nav a { position: relative; padding-block: .35rem; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--color-accent); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .18s;
}
.main-nav a:hover { color: var(--color-accent); }
.main-nav a:hover::after { transform: scaleX(1); }

/* ヘッダーの検索CTA（立体ボタン） */
.header-cta {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  background: var(--color-accent); color: #fff; font-weight: 700; font-size: .9rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  box-shadow: 3px 3px 0 var(--color-accent-dark);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.header-cta:hover {
  color: #fff; text-decoration: none; background: var(--color-accent-dark);
  transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--color-accent-dark);
}
.header-cta svg { width: 17px; height: 17px; }

/* パンくず */
.breadcrumb { margin: 1.6rem 0 1.1rem; font-size: .8rem; color: var(--color-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .45rem; }
.breadcrumb li:not(:first-child)::before { content: "›"; color: #c2ccc7; }
.breadcrumb a { color: var(--color-accent-dark); }
.breadcrumb [aria-current="page"] { color: var(--color-muted); }

/* 一覧/アーカイブの見出し */
.page-head { margin-bottom: 2rem; }
.page-head__title {
  font-size: 1.7rem; font-weight: 800; color: var(--color-ink); margin: 0; line-height: 1.3;
  position: relative; padding-left: .9rem;
}
.page-head__title::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 6px; border-radius: 3px;
  background: var(--color-accent); box-shadow: 3px 3px 0 var(--color-pop-soft);
}
.page-head__desc { margin-top: .65rem; color: #4b5563; font-size: .95rem; }

/* 記事ページ */
.entry__head { margin: 0 0 1.25rem; }
.entry__meta { display: flex; gap: .8rem; align-items: center; font-size: .8rem; color: var(--color-muted); margin-bottom: .75rem; }
.entry__cat { color: #fff; background: var(--color-pop); font-weight: 800; font-size: .72rem; padding: .2rem .65rem; border-radius: 999px; }
.entry__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.entry__tags a {
  display: inline-block; font-size: .78rem; color: var(--color-accent-dark);
  background: var(--color-accent-light); padding: .2rem .65rem; border-radius: 6px; margin: 0 .35rem .35rem 0;
}
.btn-back {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem;
  color: var(--color-accent-dark); background: #fff; border: 2px solid var(--color-accent);
  border-radius: 999px; padding: .5rem 1.15rem; box-shadow: 3px 3px 0 var(--color-accent);
  transition: transform .12s, box-shadow .12s;
}
.btn-back:hover { text-decoration: none; color: var(--color-accent-dark); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--color-accent); }
.btn-back svg { width: 18px; height: 18px; }

/* 関連記事 */
.related { padding-top: 3rem; margin-top: 1rem; border-top: 1px solid var(--color-line); }

/* 投稿なし */
.no-posts { padding: 2rem 0; color: var(--color-muted); }

@media (max-width: 720px) {
  .header-cta span { display: none; }
  .header-cta { padding: .55rem .7rem; box-shadow: 2px 2px 0 var(--color-accent-dark); }
  .main-nav ul { gap: 1rem; font-size: .9rem; }
  .site-header__inner { gap: 1rem; }
}

/* =========================================================
   記事レイアウト（本文 ＋ 目次サイドバー）
   ========================================================= */
html { scroll-behavior: smooth; }

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.75rem;
  /* align-items は既定の stretch のまま。サイドカラムを本文の高さまで伸ばし、
     その中で目次を sticky 追従させる（start にすると追従しなくなる） */
}
.entry-layout--solo { display: block; }
.entry__main { min-width: 0; }
.entry__content :is(h2, h3) { scroll-margin-top: 92px; }
.entry__content h3 {
  font-size: 1.15rem; margin-top: 1.75rem; padding-left: .55rem;
  border-left: 4px solid var(--color-pop);
}

.entry__side-inner { position: sticky; top: 88px; }

/* 目次 */
.toc {
  background: #fff; border: 1px solid var(--color-line); border-radius: 16px;
  padding: 1.15rem 1.25rem; box-shadow: 0 8px 20px rgba(28,60,45,.05);
}
.toc__title {
  font-weight: 800; font-size: .85rem; color: var(--color-ink); margin: 0 0 .8rem;
  display: flex; align-items: center; gap: .45rem;
}
.toc__title::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--color-accent); }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-line); }
.toc__item a {
  display: block; padding: .42rem .8rem; font-size: .84rem; line-height: 1.55;
  color: var(--color-muted); border-left: 2px solid transparent; margin-left: -2px;
  transition: color .15s, background .15s, border-color .15s;
}
.toc__item a:hover { color: var(--color-accent-dark); text-decoration: none; }
.toc__item--sub a { padding-left: 1.65rem; font-size: .8rem; }
.toc__item a.is-active {
  color: var(--color-accent-dark); font-weight: 700;
  border-left-color: var(--color-accent); background: var(--color-accent-light);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 900px) {
  .entry-layout { display: flex; flex-direction: column; }
  .entry__side { order: -1; }
  .entry__side-inner { position: static; }
}

/* =========================================================
   固定ページ・404
   ========================================================= */
.page-entry { max-width: 860px; margin-inline: auto; }

/* 本文テーブル（会社概要など） */
.entry__content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.entry__content th, .entry__content td { border: 1px solid var(--color-line); padding: .75rem .9rem; text-align: left; vertical-align: top; }
.entry__content th { background: var(--color-bg-soft); font-weight: 700; white-space: nowrap; width: 30%; color: var(--color-ink); }
.entry__content ul, .entry__content ol { padding-left: 1.4rem; }
.entry__content li { margin: .35rem 0; }
.entry__content a { color: var(--color-accent-dark); text-decoration: underline; }
.entry__content a:hover { color: var(--color-accent); }

/* 404 */
.error404 { text-align: center; padding: 3rem 0 1rem; }
.error404__code {
  font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; margin: 0;
  color: var(--color-accent); text-shadow: 5px 5px 0 var(--color-pop-soft);
}
.error404__title { font-size: 1.45rem; margin: 1rem 0 .6rem; color: var(--color-ink); }
.error404__lead { color: var(--color-muted); max-width: 540px; margin: 0 auto 1.5rem; }
.error404__search { max-width: 420px; margin: 0 auto 1.6rem; }
.error404 .btn-search { margin-inline: auto; }

/* ヒーローのホールインワン・アニメーション用オーバーレイ */
.hero__ball { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__ball-grp {
  transform-box: fill-box; transform-origin: center;
  /* 飛行アーチでグリーン上(1110,672)に着地 → そこからカップ(1205,624)へ転がる一本のパス */
  offset-path: path('M -160 420 Q 430 110 1110 672 Q 1168 660 1205 624');
  offset-rotate: 0deg;
  animation: heroHoleInOne 9s linear infinite;
}
.hero__ball-shadow { opacity: 0; }

@keyframes heroHoleInOne {
  0%    { offset-distance: 0%;  opacity: 0; transform: scale(1) rotate(0deg); }
  1.5%  { opacity: 1; }
  /* 飛行 → グリーンに着地（上下に跳ねず、その場で一瞬だけ横つぶれ） */
  19%   { offset-distance: 91%;  opacity: 1; transform: scale(1) rotate(0deg); }
  21%   { offset-distance: 92%;  transform: scale(1.12, .86) rotate(8deg); }   /* 接地の一瞬だけつぶれる */
  23%   { offset-distance: 93%;  transform: scale(1) rotate(30deg); }          /* すぐ復元して転がり開始 */
  /* 横に転がってカップへ（回転しながら） */
  36%   { offset-distance: 100%; opacity: 1; transform: scale(1) rotate(300deg); }
  /* カップに吸い込まれる：縮みながら少しだけ沈む（カップに入る感じ） */
  40%   { offset-distance: 100%; opacity: 1; transform: translateY(5px) scale(.5) rotate(330deg); }
  44%   { offset-distance: 100%; opacity: 0; transform: translateY(11px) scale(.1) rotate(348deg); }
  /* 約5秒の待機（次の飛来までの間） */
  100%  { offset-distance: 100%; opacity: 0; transform: translateY(11px) scale(.1) rotate(348deg); }
}

/* アニメーションを控えたいユーザーにはボールをカップ脇に静止表示 */
@media (prefers-reduced-motion: reduce) {
  .hero__ball-grp { animation: none; offset-distance: 100%; opacity: 1; transform: none; }
}

/* =========================================================
   ゴルフ場（CPT course）
   ========================================================= */
.course__head { margin: .5rem 0 1rem; }
.course__pref { display: inline-block; font-size: .78rem; font-weight: 800; color: #fff; background: var(--color-accent); padding: .22rem .7rem; border-radius: 999px; }
.course__title { font-size: 1.9rem; line-height: 1.4; margin: .6rem 0 0; }
.course__thumb { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }

/* 本文＋予約サイド（サイドは追従） */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; }
.course__main { min-width: 0; }
.course__sec { font-size: 1.25rem; margin: 2rem 0 1rem; padding-left: .6rem; border-left: 4px solid var(--color-accent); }
.course__desc { margin-bottom: 1.5rem; }

.course-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.course-table th, .course-table td { border: 1px solid var(--color-line); padding: .75rem .9rem; text-align: left; vertical-align: top; }
.course-table th { background: var(--color-bg-soft); font-weight: 700; white-space: nowrap; width: 28%; color: var(--color-ink); }

.course__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-line); }
.course__map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* 予約・検索CTA（追従） */
.course-cta {
  position: sticky; top: 88px;
  background: #fff; border: 1px solid var(--color-line); border-radius: 16px; padding: 1.25rem;
  box-shadow: 0 8px 22px rgba(28,60,45,.06); display: flex; flex-direction: column; gap: .65rem;
}
.course-cta__title { font-weight: 800; font-size: .9rem; color: var(--color-ink); margin: 0 0 .3rem; display: flex; align-items: center; gap: .4rem; }
.course-cta__title::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--color-accent); }
.course-cta__btn { display: block; text-align: center; font-weight: 700; font-size: .95rem; padding: .8rem 1rem; border-radius: 12px; color: #fff; transition: transform .12s, box-shadow .12s; }
.course-cta__btn:hover { text-decoration: none; color: #fff; transform: translateY(-2px); }
.course-cta__btn--gora { background: #bf0000; box-shadow: 0 6px 14px rgba(191,0,0,.25); }
.course-cta__btn--gdo { background: #0a5c36; box-shadow: 0 6px 14px rgba(10,92,54,.25); }
.course-cta__btn--search { background: var(--color-accent); box-shadow: 0 6px 14px rgba(45,201,122,.3); }
.course-cta__link { text-align: center; font-size: .85rem; font-weight: 600; color: var(--color-accent-dark); margin-top: .2rem; }

/* ゴルフ場カード */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.course-card:hover { box-shadow: 0 10px 24px rgba(28,60,45,.08); transform: translateY(-2px); }
.course-card__thumb { position: relative; display: block; aspect-ratio: 16/10; background: var(--color-bg-soft); }
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card__pref { position: absolute; left: .6rem; top: .6rem; font-size: .72rem; font-weight: 800; color: #fff; background: rgba(34,168,98,.95); padding: .18rem .6rem; border-radius: 999px; }
.course-card__body { padding: .85rem 1rem 1rem; }
.course-card__title { font-size: 1rem; line-height: 1.45; margin: 0 0 .4rem; font-weight: 700; }
.course-card__title a { color: var(--color-text); }
.course-card__title a:hover { color: var(--color-accent); text-decoration: none; }
.course-card__info { display: flex; gap: .6rem; font-size: .78rem; color: var(--color-muted); flex-wrap: wrap; }
.course-card__price { color: var(--color-accent-dark); font-weight: 700; }

/* 都道府県チップ */
.pref-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pref-chips a { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--color-text); background: #fff; border: 1px solid var(--color-line); border-radius: 999px; padding: .4rem .85rem; transition: all .15s; }
.pref-chips a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); text-decoration: none; }
.pref-chips a span { font-size: .72rem; color: var(--color-muted); }
.pref-chips a:hover span { color: #fff; }

@media (max-width: 900px) {
  .course-layout { display: block; }
  .course__side { margin-top: 1.5rem; }
  .course-cta { position: static; }
}
