/* ===========================================
   登山・ハイキングガイド 泉竜馬
   追加CSS（完全版）
   「外観 → カスタマイズ → 追加CSS」に
   このファイルの内容を丸ごと貼り付けてください
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Zen+Antique+Soft&family=Shippori+Mincho:wght@400;500;700&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');


/* ===========================================
   1. サイト全体のコンテンツ幅を広げる
      （ブロックを「全幅」設定にした上で効きます）
   =========================================== */

/* 投稿コンテンツ領域の制限をゆるめる */
.wp-block-post-content.is-layout-constrained,
.entry-content.is-layout-constrained {
  max-width: 108rem !important;
}

/* カスタムHTML・ショートコードのブロックを広げて中央寄せ
   （トップページのコンテンツ／ツアー一覧のカードのズレ防止） */
.wp-block-post-content .wp-block-html,
.wp-block-post-content .wp-block-shortcode {
  max-width: 108rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* トップページのラッパーは枠いっぱいに */
.rg-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}

/* --- 横はみ出し防止（プロフィール／ツアー／お問い合わせの右切れ対策）---
   コンテンツが入れ物より横に大きくなり、右端がはみ出して切れる問題への対策。
   ページ全体と各セクションが、画面幅を絶対に超えないようにする。
   ※ html / body には overflow-x:hidden を付けない。
     付けるとヘッダーの position:sticky（スクロール追従）が効かなくなるため。 */
html, body {
  max-width: 100% !important;
}
.rg-wrapper,
.rg-wrapper > section,
.rg-wrapper > .rg-divider {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
/* 2カラムのグリッドが内容に押し広げられないようにする */
#rg-about,
.rg-tours-intro,
#rg-contact {
  box-sizing: border-box !important;
  max-width: 100% !important;
}
#rg-about > *,
.rg-tours-intro > *,
#rg-contact > * {
  min-width: 0 !important;
}


/* ===========================================
   2. ツアーカード共通スタイル
   =========================================== */

/* 公募ツアーカード */
.rg-tour-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 90rem;
  margin: 2rem auto;
}

.rg-tour-card {
  background: #EDE4D3;
  border: 1px solid rgba(107,143,94,0.2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none !important;
  display: block;
  color: inherit !important;
}

.rg-tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,74,46,0.12);
}

.rg-tour-card-img-wrap { overflow: hidden; position: relative; }

.rg-tour-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: sepia(10%) contrast(1.05);
  transition: transform 0.4s, filter 0.4s;
}

.rg-tour-card:hover .rg-tour-card-img { transform: scale(1.03); filter: sepia(0%); }

.rg-tour-card-status {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.7rem;
  font-family: 'Shippori Mincho', serif;
}

.rg-status-open { background: #4A6741; color: #FAF7F2; }
.rg-status-full { background: #7A6252; color: #FAF7F2; }
.rg-status-soon { background: #C4893A; color: #FAF7F2; }

.rg-tour-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  border-top: 2px solid #4A6741;
}

.rg-tour-card-level {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.68rem;
  color: #C4893A;
  margin-bottom: 0.4rem;
}

.rg-tour-card-name {
  font-family: 'Zen Antique Soft', serif !important;
  font-size: 1rem !important;
  color: #2C4A2E !important;
  line-height: 1.5 !important;
  margin-bottom: 0.9rem !important;
}

.rg-tour-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.rg-tour-card-meta-row {
  font-size: 0.75rem;
  color: #7A6252;
  font-family: 'Shippori Mincho', serif;
}

.rg-tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(107,143,94,0.2);
}

.rg-tour-card-price {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: #5C3D2E;
}

.rg-tour-card-price-note {
  font-size: 0.6rem;
  color: #7A6252;
  margin-top: 0.15rem;
}

.rg-tour-card-link {
  font-size: 0.72rem;
  color: #4A6741;
  letter-spacing: 0.08em;
}
.rg-tour-card-link::after { content: ' →'; }

@media (max-width: 600px) {
  .rg-tour-cards { grid-template-columns: 1fr; }
}


/* ===========================================
   3. 山行記録（ブログ）— 一覧ページ用
   =========================================== */

/* マストヘッド（ページ見出し） */
.kr-masthead {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}
.kr-masthead .kr-kicker {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #B0863C;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.kr-masthead .kr-title {
  font-family: 'Zen Antique Soft', serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #1A1A1A;
  margin: 0 0 1.2rem;
  line-height: 1.3;
}
.kr-masthead .kr-rule {
  width: 54px; height: 2px;
  background: #B0863C;
  margin: 0 auto 1.2rem;
}
.kr-masthead p {
  max-width: 540px;
  margin: 0 auto;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.92rem;
  color: #3A3633;
  line-height: 2;
}

/* 注目記事 */
.kr-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  max-width: 1000px;
  margin: 1rem auto 0;
  background: #fff;
  border: 1px solid #E3DED2;
  text-decoration: none;
  overflow: hidden;
}
.kr-featured-img { position: relative; overflow: hidden; min-height: 320px; }
.kr-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.kr-featured:hover .kr-featured-img img { transform: scale(1.04); }
.kr-featured-badge {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  background: #14130F;
  color: #B0863C;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
}
.kr-featured-body {
  padding: 2.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kr-featured-title {
  font-family: 'Zen Antique Soft', serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1A1A1A;
  margin: 0 0 1rem;
}
.kr-readlink {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #1A1A1A;
  border-bottom: 1px solid #B0863C;
  padding-bottom: 0.2rem;
  align-self: flex-start;
}
.kr-featured:hover .kr-readlink { color: #B0863C; }

/* メタ情報（カテゴリー＋日付） */
.kr-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Lora', serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: #8A8175;
  margin-bottom: 0.9rem;
}
.kr-cat {
  color: #8B6914;
  border: 1px solid #B0863C;
  padding: 0.12rem 0.65rem;
}

/* 抜粋 */
.kr-excerpt {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.84rem;
  color: #3A3633;
  line-height: 1.9;
  margin: 0 0 1.4rem;
}

/* カードグリッド */
.kr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 2rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.kr-card { text-decoration: none; display: block; }
.kr-card-img {
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 1rem;
}
.kr-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.kr-card:hover .kr-card-img img { transform: scale(1.05); }
.kr-card-title {
  font-family: 'Zen Antique Soft', serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1A1A1A;
  margin: 0.5rem 0 0.6rem;
}
.kr-card:hover .kr-card-title { color: #8B6914; }
.kr-card .kr-excerpt { margin-bottom: 0; }

/* すべて見るボタン */
.kr-btn-wrap { text-align: center; padding: 3rem 1.5rem 1rem; }
.kr-btn {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: #1A1A1A;
  text-decoration: none;
  border: 1px solid #B0863C;
  padding: 0.9rem 2.6rem;
  transition: all 0.25s;
}
.kr-btn:hover { background: #B0863C; color: #fff; }

/* ページ送り */
.kr-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 3rem 1.5rem 1rem;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
}
.kr-pager a, .kr-pager span {
  min-width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #3A3633;
  border: 1px solid #E3DED2;
  transition: all 0.25s;
}
.kr-pager a:hover { border-color: #B0863C; color: #B0863C; }
.kr-pager .kr-current {
  background: #B0863C;
  border-color: #B0863C;
  color: #fff;
}
.kr-pager .kr-arrow { padding: 0 1rem; }

.kr-empty {
  text-align: center;
  color: #8A8175;
  font-family: 'Shippori Mincho', serif;
  padding: 3rem 1rem;
}

@media (max-width: 880px) {
  .kr-masthead .kr-title { font-size: 2.1rem; }
  .kr-featured { grid-template-columns: 1fr; }
  .kr-featured-img { min-height: 0; height: 240px; }
  .kr-featured-body { padding: 1.8rem 1.5rem; }
  .kr-featured-title { font-size: 1.35rem; }
  .kr-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
}
@media (max-width: 560px) {
  .kr-grid { grid-template-columns: 1fr; }
}


/* ===========================================
   4. 山行記録（ブログ）— 個別記事ページ用
   =========================================== */

/* 本文の幅を読みやすい幅に絞る */
.single-post .wp-block-post-content.is-layout-constrained,
.single-post .wp-block-post-content {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  line-height: 2.05;
  color: #3A3633;
}

/* タイトル */
.single-post .wp-block-post-title {
  font-family: 'Zen Antique Soft', serif !important;
  font-size: 2.4rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #1A1A1A !important;
  text-align: center !important;
  max-width: 780px;
  margin: 2.6rem auto 0.8rem !important;
}

/* 日付 */
.single-post .wp-block-post-date {
  font-family: 'Lora', serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em;
  color: #8A8175 !important;
  text-align: center !important;
  margin: 0 auto 2.2rem !important;
}

/* カテゴリー（テーマが表示していれば） */
.single-post .wp-block-post-terms {
  text-align: center !important;
  margin: 0 auto 0.6rem !important;
}
.single-post .wp-block-post-terms a {
  font-family: 'Lora', serif !important;
  font-size: 0.74rem !important;
  color: #8B6914 !important;
  border: 1px solid #B0863C;
  padding: 0.12rem 0.7rem;
  text-decoration: none !important;
}

/* アイキャッチ画像
   実際の構造は figure > a > img の入れ子。
   テーマが figure に aspect-ratio、a に height:100% を当てているため、
   その両方を打ち消したうえで画像の高さを揃える。 */
.single-post .wp-block-post-featured-image {
  margin: 1.5rem auto 1.6rem !important;
  aspect-ratio: auto !important;
  height: auto !important;
  max-width: 720px !important;
}
.single-post .wp-block-post-featured-image a {
  display: block !important;
  height: auto !important;
}
.single-post .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

/* アイキャッチ直後の本文（山行データ等）の上の余白を詰める */
.single-post .wp-block-post-content > :first-child {
  margin-top: 0 !important;
}
.single-post .kr-trip-data:first-child {
  margin-top: 0 !important;
}

/* 本文の段落 */
.single-post .wp-block-post-content p {
  margin-bottom: 1.7rem;
}

/* 本文の見出し */
.single-post .wp-block-post-content h2 {
  font-family: 'Zen Antique Soft', serif !important;
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  margin: 2.8rem 0 1.2rem !important;
  padding-left: 0.9rem;
  border-left: 3px solid #B0863C;
  line-height: 1.6 !important;
}
.single-post .wp-block-post-content h3 {
  font-family: 'Zen Antique Soft', serif !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  margin: 2.2rem 0 1rem !important;
}

/* 本文中の画像キャプション */
.single-post .wp-block-image figcaption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: #8A8175;
  text-align: center;
  margin-top: 0.6rem;
}

/* 山行データの囲み */
.kr-trip-data {
  border: 1px solid #B0863C;
  background: #fff;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}
.kr-trip-data h4 {
  font-family: 'Zen Antique Soft', serif;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: #8B6914;
  text-align: center;
  margin: 0 0 1.2rem;
}
.kr-trip-data table {
  width: 100%;
  border-collapse: collapse;
}
.kr-trip-data th,
.kr-trip-data td {
  text-align: left;
  vertical-align: top;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border: none;
}
.kr-trip-data th {
  font-family: 'Lora', serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #8A8175;
  font-weight: 400;
  white-space: nowrap;
  width: 6rem;
}
.kr-trip-data td {
  font-family: 'Shippori Mincho', serif;
  color: #3A3633;
}


/* ===========================================
   5. ヘッダー直下〜ヒーロー画像の隙間を詰める
      固定ヘッダー対応の padding-top と、テーマ由来の
      上余白が足し算になって隙間が出るため、その上余白を打ち消す。
   =========================================== */
.wp-site-blocks {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.rg-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* トップページ本文の最初の要素（ヒーロー）の上余白も念のため0に */
.wp-block-post-content > :first-child {
  margin-top: 0 !important;
}
/* ===========================================
   6. スマホでの山行記録セクション幅 修正
      home-code内で #rg-kiroku の基本スタイルが
      @media より後に書かれているため、スマホ時の
      padding が上書きされる問題への対策。
      !important で確実に勝たせる。
   =========================================== */
@media (max-width: 900px) {
  #rg-kiroku {
    padding: 5rem 1rem !important;
  }
}