@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
#text-4 .textwidget iframe {
	width: 130px !important;
	display: inline-block;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
   margin-top: 1.8em;
}
/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
   margin-top: 2.8em;
}
/*480px以下*/
@media screen and (max-width: 480px){
	.logo-text {
	display: none;
}
	.navi-in > ul {
	overflow-x: auto;
	white-space: nowrap;
	flex-wrap: nowrap;
	padding-left: 10px !important;
	}
  #navi .navi-in > .menu-mobile li{
    width: auto;
	display: inline-block;
	margin-left: 5px;
  }
}
.widget_categories ul li a { /*親カテゴリ用のコード*/
    color: #333;
    text-decoration: underline #72c7e6;
    padding: 6px 0;
    display: block;
    padding-right: 4px;
    padding-left: 4px;
    border-top: 1px dotted #ccc; /*上部にボーダーを引く*/
    font-size: 16px;
}
.widget_categories ul li a::before { /*親カテゴリのアイコン*/
    font-family: FontAwesome;
    content: "\f0da";
    padding-right: 10px;
}
.widget_categories > ul > li > a:first-child { 
    border-top: none; /*最初の親カテゴリは上部ボーダーを消す*/
}
.widget_categories > ul > li > a:last-child {
    border-bottom: 1px dotted #ccc; /*最後の親カテゴリは下部ボーダーを引く*/
}
.widget_categories ul li a .post-count { /*記事数用のコード*/
    display: block;
    float: right;
    background: #ededed;
    padding: 0 1em;
    font-size: 14px;
    margin-top: .2em;
    border-radius: 4px;
}
.widget_categories ul li a:hover { /*親子共通マウスホバー時*/
    background: none;
    transition: 0.5s;
    color: #72c7e6;
}
.widget_categories ul li a:hover .post-count { /*記事数のマウスホバー時*/
    background: #72c7e6;
    color: #fff;
    transition: 0.5s;
}
.widget_categories ul li ul { /*子カテゴリのボックス*/
    border-bottom: 1px dotted #ccc;
}
.widget_categories ul li ul li a { /*子カテゴリ用のコード*/
    color: #333;
    text-decoration: none;
    padding: 0 4px 4px 4px;
    display: block;
    border: none;
}
.widget_categories ul li ul li a::before { /*子カテゴリのアイコン*/
    font-family: FontAwesome;
    content: "・";
    padding: 0;
}



/* ==========================================================================
 * やくものガレージ リデザイン「黄色い標識」　※下書き・本番には未反映
 * すべてのルールは body.yg の中だけで効く（プレビュー中の管理者にしか出ない）
 * 本文の文字は変えない。色・余白・並び・部品の見た目だけ。
 * ========================================================================== */

/* ---------- 色と文字（デザインの基本） ---------- */
body.yg {
  --yg-yellow: #FAF200;   /* ロゴの黄色 */
  --yg-ink: #1B1B19;      /* 標識の黒 */
  --yg-paper: #F5F3EC;    /* 紙・砂利道の白 */
  --yg-card: #FFFFFF;
  --yg-line: #E3DFD3;
  --yg-muted: #5F5D55;
  --yg-route: #D9481F;    /* 道のりの線だけに使う */
  --yg-note: #FFFBD1;
  --yg-note-line: #E6DB6A;
  --yg-num: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --yg-radius: 8px;
  background-color: var(--yg-paper);
  color: var(--yg-ink);
}
.yg ::selection { background: var(--yg-yellow); color: var(--yg-ink); }
.yg .header-container,
.yg .header { background-color: var(--yg-paper); }
.yg .content { margin-top: 0; }

/* ---------- ヘッダーとメニュー ---------- */
.yg .header-in { min-height: 0; }
.yg #navi,
.yg #navi .navi-in { background-color: var(--yg-ink); }
.yg #navi .navi-in a { color: #FFFFFF; font-weight: 700; }
.yg #navi .navi-in a:hover { background-color: #2E2E2B; color: #FFFFFF; }
.yg #navi .navi-in > ul > li > a { border-bottom: 3px solid transparent; box-sizing: border-box; }
.yg #navi .navi-in > ul > li.current-menu-item > a,
.yg #navi .navi-in > ul > li.current-menu-parent > a,
.yg #navi .navi-in > ul > li.current-post-ancestor > a,
.yg #navi .navi-in > ul > li.current-category-ancestor > a { border-bottom-color: var(--yg-yellow); }
.yg #navi .navi-in .item-label i { color: var(--yg-yellow); margin-right: 4px; }
@media screen and (max-width: 834px) {
  .yg #navi .navi-in > .menu-mobile li { height: 46px; }
  .yg #navi .navi-in > .menu-mobile a { font-size: 14px; padding: 0 10px; }
}

/* ---------- パンくず ---------- */
.yg .breadcrumb { font-size: 12px; color: var(--yg-muted); }
.yg .breadcrumb a { color: var(--yg-muted); }

/* ---------- 記事の土台 ---------- */
.yg .main { border-color: transparent; }
@media screen and (min-width: 1024px) {
  .yg .main { background-color: var(--yg-card); border: 1px solid var(--yg-line); }
  .yg .sidebar { background-color: transparent; }
}
@media screen and (max-width: 1023px) {
  .yg .main { background-color: transparent; }
}
@media screen and (max-width: 480px) {
  .yg .main { padding-left: 18px; padding-right: 18px; }
}

/* タイトルまわり */
.yg .article-header .entry-title {
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
  background: none;
  padding: 0;
  margin: 12px 0 14px;
}
@media screen and (max-width: 480px) {
  .yg .article-header .entry-title { font-size: 22px; }
}
.yg .eye-catch-wrap { margin-bottom: 4px; }
.yg .eye-catch img { border-radius: 4px; }
@media screen and (max-width: 480px) {
  .yg .eye-catch-wrap { margin-left: -18px; margin-right: -18px; }
  .yg .eye-catch img { border-radius: 0; }
}
.yg .cat-label {
  background-color: var(--yg-ink);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 2px 10px 2px 22px;
  font-weight: 700;
  opacity: 1;
}
.yg .cat-label::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  background: var(--yg-yellow);
  transform: rotate(45deg);
}
.yg .date-tags { text-align: left; line-height: 1.4; margin: 6px 0 14px; }
.yg .date-tags .post-date,
.yg .date-tags .post-update {
  font-family: var(--yg-num);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--yg-ink);
  margin-right: 12px;
}
.yg .date-tags .fa,
.yg .date-tags .far,
.yg .date-tags .fas { color: var(--yg-muted); font-size: 12px; }

/* ---------- 本文 ---------- */
.yg .article .entry-content { line-height: 1.9; }
@media screen and (max-width: 480px) {
  .yg .article .entry-content { font-size: 17px; }
}
.yg .entry-content > p,
.yg .entry-content > ul,
.yg .entry-content > ol,
.yg .yg-tl-item > p { margin-top: 0; margin-bottom: 1.2em; }
/* 本文中のリンク（文章の中のものだけ。カードやボタンは対象外） */
.yg .entry-content :is(p, li, dd, td, th, figcaption, .wp-caption-text, .blank-box) > a:not(.a-wrap),
.yg .entry-content :is(p, li, dd, td, th) > :is(strong, b, em, span) > a:not(.a-wrap) {
  color: #0B5FA5;                 /* 案内標識の青（2026-10-03 黄色の下線から変更） */
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.yg .entry-content :is(p, li, dd, td, th) a:not(.a-wrap):hover,
.yg .entry-content :is(p, li, dd, td, th) a:not(.a-wrap):active { color: #084A82; background-color: var(--yg-note); }
.yg .entry-content strong { font-weight: 900; }

/* 写真：角を少し丸く。スマホでは大きい写真を画面幅いっぱいに */
.yg .entry-content img { border-radius: 4px; }
@media screen and (max-width: 480px) {
  .yg .entry-content > .yg-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
  .yg .entry-content > .yg-bleed img { width: 100%; border-radius: 0; }
  .yg .entry-content > figure.yg-bleed figcaption { padding: 0 18px; }
}

/* キャプション（[caption] とブロックエディタの両方） */
.yg .entry-content .wp-caption {
  border: none;
  background: none;
  padding: 0;
  text-align: left;
}
.yg .entry-content .wp-caption .wp-caption-text,
.yg .entry-content figure figcaption,
.yg .entry-content .wp-element-caption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--yg-muted);
  text-align: left;
  margin: 6px 0 0;
  word-break: break-all;
}

/* 埋め込み（地図・動画）は角丸の枠に */
.yg .entry-content iframe:not(.twitter-tweet):not([id^="twitter-widget"]) {
  max-width: 100%;
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  background-color: #E7ECDD;
}
.yg .entry-content .video-container { border-radius: var(--yg-radius); overflow: hidden; }
.yg .entry-content .video-container iframe { border: none; border-radius: 0; }

/* 区切り線（ライド記録の場面転換に多い）を「◆」の標識に */
.yg .entry-content hr {
  border: none;
  height: 18px;
  margin: 2.2em 0;
  background:
    linear-gradient(var(--yg-line), var(--yg-line)) left center / calc(50% - 22px) 1px no-repeat,
    linear-gradient(var(--yg-line), var(--yg-line)) right center / calc(50% - 22px) 1px no-repeat;
  position: relative;
  overflow: visible;
}
.yg .entry-content hr::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--yg-yellow);
  border: 1.5px solid var(--yg-ink);
  transform: rotate(45deg);
}

/* 囲み枠 */
.yg .entry-content .blank-box {
  background-color: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-left: 4px solid var(--yg-ink);
  border-radius: 4px;
}
.yg .entry-content .blank-box ul { margin: 0; padding: 2px 0 2px 0.4em; list-style: none; }

/* Amazonなどからコピーした文字の書式（14px・別フォント）が本文に混ざっているのを本文の書式に揃える */
.yg .entry-content span[style*="0f1111"] {
  font-size: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
  background-color: transparent !important;
}

/* ---------- 見出し ---------- */
/* H2：黒い標識＋黄色のひし形 */
.yg .article .entry-content h2 {
  position: relative;
  background-color: var(--yg-ink);
  color: #FFFFFF;
  border: none;
  border-radius: 3px;
  padding: 0.62em 0.8em 0.62em 2.3em;
  margin: 2.4em 0 1em;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}
.yg .article .entry-content h2::before {
  content: "";
  position: absolute;
  left: 0.85em;
  top: 50%;
  width: 0.62em;
  height: 0.62em;
  margin-top: -0.31em;
  background: var(--yg-yellow);
  transform: rotate(45deg);
}
@media screen and (max-width: 480px) {
  .yg .article .entry-content h2 { font-size: 19px; }
}
/* H3：黄色マーカー（文字の下半分に蛍光ペン） */
.yg .article .entry-content h3 {
  border: none;
  background: none;
  padding: 0;
  margin: 2.2em 0 0.8em;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: var(--yg-yellow);
  text-decoration-thickness: 0.42em;
  text-underline-offset: -0.2em;
  text-decoration-skip-ink: none;
}
@media screen and (max-width: 480px) {
  .yg .article .entry-content h3 { font-size: 18px; }
}
/* H4（時刻以外）：小さな見出し */
.yg .article .entry-content h4:not(.yg-time),
.yg .article .entry-content h5,
.yg .article .entry-content h6 {
  border: none;
  border-left: 4px solid var(--yg-yellow);
  background: none;
  padding: 0.1em 0 0.1em 0.6em;
  margin: 1.8em 0 0.8em;
  font-size: 17px;
  font-weight: 700;
}

/* 図鑑・レビュー：H3 に 01, 02… の番号（H2 ごとに振り直し） */
.yg-zukan .entry-content,
.yg-review .entry-content { counter-reset: yg-h3; }
.yg-zukan .entry-content > h2,
.yg-review .entry-content > h2 { counter-reset: yg-h3; }
.yg-zukan .article .entry-content > h3,
.yg-review .article .entry-content > h3 { counter-increment: yg-h3; }
.yg-zukan .article .entry-content > h3::before,
.yg-review .article .entry-content > h3::before {
  content: counter(yg-h3, decimal-leading-zero);
  display: inline-block;          /* 番号には蛍光ペンを引かない */
  margin-right: 10px;
  font-family: var(--yg-num);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1;
  color: var(--yg-ink);
}

/* レビュー：H2 は下線の見出しに（黒い標識は図鑑・ライド・雑記で使う） */
.yg-review .article .entry-content > h2 {
  background: none;
  color: var(--yg-ink);
  border-bottom: 3px solid var(--yg-ink);
  border-radius: 0;
  padding: 0 0 0.4em 1.4em;
  font-weight: 900;
}
.yg-review .article .entry-content > h2::before {
  left: 0.1em;
  margin-top: -0.5em;
  border: 1.5px solid var(--yg-ink);
}

/* ---------- 目次 ---------- */
.yg .article .toc {
  background-color: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  padding: 12px 16px 14px;
  width: auto;
  display: block;
  font-size: 15px;
}
.yg .article .toc .toc-title {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  padding: 0 0 6px;
}
.yg .article .toc .toc-list { padding-left: 1.4em; }
.yg .article .toc a { text-decoration: none; }
.yg .article .toc li { padding: 3px 0; line-height: 1.5; }
.yg .article .toc li::marker { font-family: var(--yg-num); font-weight: 700; }
.yg-has-route .article .toc { display: none; }  /* ライド記録は「この日の道のり」が代わりになる */

/* ---------- 記事の冒頭に足す部品 ---------- */
.yg .yg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--yg-muted);
  margin: -4px 0 14px;
  line-height: 1.6;
}
.yg .yg-meta-sub { color: var(--yg-ink); font-weight: 700; }
.yg .yg-ride-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--yg-note);
  border: 1px solid var(--yg-note-line);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.75;
}
.yg .yg-diamond {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin: 5px 2px 0;
  background: var(--yg-yellow);
  border: 1.5px solid var(--yg-ink);
  transform: rotate(45deg);
}

/* ライド記録：この日の道のり（H2 から自動で作る） */
.yg .yg-route {
  background: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  padding: 12px 10px 14px;
  margin: 0 0 22px;
}
.yg .yg-route-head { font-size: 14px; font-weight: 700; margin: 0 4px 10px; }
.yg .yg-route ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.yg .yg-route li {
  position: relative;
  flex: 1 1 0;
  min-width: 60px;
  margin: 0;
  padding: 0;
  text-align: center;
}
.yg .yg-route li::before {               /* 次の地点までの線 */
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--yg-route);
}
.yg .yg-route li:last-child::before { display: none; }
.yg .entry-content .yg-route li > a:not(.a-wrap) { text-decoration: none; background: none; }
.yg .yg-route a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--yg-ink);
  text-decoration: none;
}
.yg .yg-route a::before {                /* 地点の丸 */
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yg-card);
  border: 3px solid var(--yg-route);
}
.yg .yg-route li:last-child a::before { background: var(--yg-ink); border-color: var(--yg-ink); }
.yg .entry-content > h2[id^="yg-r"] { scroll-margin-top: 12px; }

/* ライド記録：時刻だけの見出しをタイムラインに */
.yg .yg-timeline {
  position: relative;
  margin: 0 0 1.6em;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--yg-ink);
  margin-left: 6px;
}
.yg .yg-tl-item { position: relative; padding: 0 0 0.4em; }
.yg .yg-tl-item + .yg-tl-item { margin-top: 0.8em; }
.yg .article .entry-content .yg-time {
  position: relative;
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 12px;
  border: none;
  border-radius: 999px;
  background: var(--yg-ink);
  color: var(--yg-yellow);
  font-family: var(--yg-num);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.yg .article .entry-content .yg-time::before {   /* 線との接点 */
  content: "";
  position: absolute;
  left: -27px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--yg-paper);
  border: 3px solid var(--yg-ink);
}
.yg .yg-tl-item > p:last-child { margin-bottom: 0.6em; }
@media screen and (min-width: 835px) {
  .yg .yg-timeline { border-left: none; margin-left: 0; padding-left: 84px; }
  .yg .yg-timeline::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--yg-ink);
  }
  .yg .article .entry-content .yg-time {
    position: absolute;
    left: -84px;
    top: 0;
    width: 74px;
    padding: 2px 0;
    text-align: center;
  }
  .yg .article .entry-content .yg-time::before { display: none; }
  .yg .yg-tl-item { min-height: 32px; }
}

/* 図鑑：標本ラベル（タイトルから読み取った No.・車名・ライダー） */
.yg .yg-zlabel {
  display: flex;
  align-items: stretch;
  background: var(--yg-card);
  border: 2px solid var(--yg-ink);
  border-radius: var(--yg-radius);
  overflow: hidden;
  margin: 0 0 22px;
  line-height: 1.5;
}
.yg .yg-zlabel-no {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  background: var(--yg-ink);
  color: #FFFFFF;
  text-align: center;
}
.yg .yg-zlabel-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.yg .yg-zlabel-num {
  font-family: var(--yg-num);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--yg-yellow);
}
.yg .yg-zlabel-num--none { font-size: 20px; }
.yg .yg-zlabel-part { font-size: 16px; color: var(--yg-yellow); }
.yg .yg-zlabel-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  min-width: 0;
}
.yg .yg-zlabel-model { font-size: 18px; font-weight: 900; line-height: 1.35; word-break: break-word; }
.yg .yg-zlabel-row { font-size: 13px; color: var(--yg-muted); }
.yg .yg-zlabel-key { font-weight: 700; color: var(--yg-ink); margin-right: 0.6em; }
.yg .yg-zlabel-date { font-family: var(--yg-num); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }

/* ---------- ブログカード ---------- */
.yg .entry-content .blogcard-wrap {
  width: 100%;
  background: var(--yg-card);
  border-radius: var(--yg-radius);
  transition: box-shadow 0.2s;
}
.yg .entry-content .blogcard { border: 1px solid var(--yg-line); border-radius: var(--yg-radius); }
.yg .entry-content .blogcard-wrap:hover { box-shadow: 0 2px 10px rgba(27, 27, 25, 0.12); }
.yg .entry-content .blogcard-wrap:hover .blogcard { background: none; }
.yg .entry-content .blogcard-title { color: var(--yg-ink); line-height: 1.5; }
.yg .entry-content .blogcard-thumbnail img { border-radius: 4px; }
.yg .entry-content .blogcard-label {
  background-color: var(--yg-ink);
  color: var(--yg-yellow);
  border-radius: 999px;
  font-weight: 700;
}
.yg .entry-content .blogcard-footer { font-size: 12px; color: var(--yg-muted); }
.yg .entry-content .blogcard-type { margin-top: 2em; }

/* ---------- 商品リンク（Cocoon の Amazon リンク） ---------- */
.yg .entry-content .product-item-box,
.yg .sidebar .product-item-box {
  width: 100%;
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  background: var(--yg-card);
  padding: 14px 16px 16px;
}
.yg .product-item-box::after { content: none; }
.yg .product-item-title { font-weight: 700; line-height: 1.5; font-size: 15px; }
.yg .product-item-title a { color: var(--yg-ink); text-decoration: none; }
.yg .product-item-snippet { font-size: 12px; color: var(--yg-muted); }
.yg .product-item-buttons { margin-top: 10px; }
.yg .product-item-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.yg .product-item-buttons .shoplinkamazon a { background: var(--yg-card); color: var(--yg-ink); border: 1px solid var(--yg-ink); }
.yg .product-item-buttons .shoplinkamazon a:hover { background: var(--yg-yellow); }

/* ---------- X（旧Twitter）の埋め込み：表示されるまでは本文の文字のまま読めるカード ---------- */
.yg .entry-content blockquote.yg-tweet {
  background: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 1.4em 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 550px;
}
.yg .entry-content blockquote.yg-tweet::before,
.yg .entry-content blockquote.yg-tweet::after { content: none; }
.yg .entry-content blockquote.yg-tweet p { margin: 0 0 0.6em; }
.yg .entry-content .twitter-tweet-rendered { margin-left: auto !important; margin-right: auto !important; }

/* ---------- 記事の下：前後の記事 ---------- */
.yg .pager-post-navi { margin: 30px 0 26px; gap: 10px; }
.yg .pager-post-navi a {
  background: var(--yg-card);
  border: 1px solid var(--yg-line) !important;
  border-radius: var(--yg-radius);
  font-size: 14px;
  line-height: 1.5;
  color: var(--yg-ink);
  padding: 10px;
  position: relative;
}
.yg .pager-post-navi a:hover { box-shadow: 0 2px 10px rgba(27, 27, 25, 0.12); background: var(--yg-card); }
.yg .pager-post-navi a .iconfont { color: var(--yg-ink); font-size: 1.2em; }
.yg .pager-post-navi a figure img { border-radius: 4px; }
.yg .pager-post-navi .prev-post-title,
.yg .pager-post-navi .next-post-title { font-weight: 700; }
.yg .yg-pn-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--yg-muted);
  letter-spacing: 0.04em;
}
@media screen and (min-width: 481px) {
  .yg .pager-post-navi.post-navi-square a { width: calc(50% - 5px); }
}
.yg .pager-post-navi .yg-pn-label { margin: 0 0 4px; }
/* 本文直下に移した「前後の記事」 */
.yg .article > .pager-post-navi { margin-top: 34px; }

/* ---------- 記事の下：ウィジェット（↓ついでに読んでけ・書いてる人） ---------- */
.yg .widget-single-content-bottom-title,
.yg .related-entry-heading,
.yg .widget-sidebar-title,
.yg .widget-sidebar-scroll-title {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 0 1.25em;
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
  text-align: left;
  color: var(--yg-ink);
}
.yg .widget-single-content-bottom-title::before,
.yg .related-entry-heading::before,
.yg .widget-sidebar-title::before,
.yg .widget-sidebar-scroll-title::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 50%;
  width: 0.55em;
  height: 0.55em;
  margin-top: -0.3em;
  background: var(--yg-yellow);
  border: 1.5px solid var(--yg-ink);
  transform: rotate(45deg);
}
.yg .related-entry-heading .related-entry-main-heading { font-size: inherit; }
.yg .widget-single-content-bottom { margin-top: 30px; }
.yg .widget-entry-card,
.yg .related-entry-card,
.yg .entry-card { background: var(--yg-card); }
.yg .widget_related_entries .widget-entry-card-link {
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  overflow: hidden;
  background: var(--yg-card);
}
.yg .widget-entry-card-title,
.yg .related-entry-card-title,
.yg .entry-card-title { color: var(--yg-ink); line-height: 1.5; }
.yg .card-thumb img { border-radius: 0; }

/* 書いてる人 */
.yg .author-box {
  background: var(--yg-card);
  border: 2px solid var(--yg-ink);
  border-radius: var(--yg-radius);
  padding: 16px;
  max-width: none;
}
.yg .author-box .author-thumb img {
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--yg-yellow);
}
.yg .author-box .author-widget-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--yg-muted);
  background: none;
}
.yg .author-box .author-name a { color: var(--yg-ink); font-weight: 900; text-decoration: none; }

/* カテゴリのリンク・シェアボタン */
.yg .entry-categories-tags .cat-link {
  background: var(--yg-card);
  color: var(--yg-ink);
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  padding: 2px 12px;
}
.yg .entry-categories-tags .cat-link .tax-icon { color: var(--yg-muted); }
.yg .sns-share-buttons a,
.yg .sns-follow-buttons a { border-radius: 6px; }
.yg .sns-share-message,
.yg .sns-follow-message { font-size: 13px; font-weight: 700; color: var(--yg-muted); }

/* 記事下の関連記事は「↓ついでに読んでけ」だけにする（標準の関連記事は出さない） */
.yg .related-entries { display: none; }

/* 関連記事（4件・非表示中。戻すときは上の1行を消す） */
.yg .related-entries { margin-top: 34px; }
.yg .related-entry-card-wrap {
  border: 1px solid var(--yg-line) !important;
  border-radius: var(--yg-radius);
  overflow: hidden;
  background: var(--yg-card);
}
.yg .related-entry-card-wrap:hover,
.yg .entry-card-wrap:hover,
.yg .widget-entry-card-link:hover { background: var(--yg-card); box-shadow: 0 2px 10px rgba(27, 27, 25, 0.12); }
.yg .related-entry-card-snippet { font-size: 12px; color: var(--yg-muted); }

/* 広告：前後に余白をとって本文と分ける（広告そのものは変えない） */
.yg .ad-area { margin-top: 28px; margin-bottom: 28px; }
.yg .ad-label { font-size: 11px; color: var(--yg-muted); }

/* ---------- サイドバー ---------- */
@media screen and (min-width: 1024px) {
  .yg .sidebar .widget {
    background: var(--yg-card);
    border: 1px solid var(--yg-line);
    border-radius: var(--yg-radius);
    padding: 16px;
    margin-bottom: 18px;
  }
  .yg .sidebar .ad-area { background: none; border: none; padding: 0; }
}
.yg .sidebar .widget_text img { border-radius: 6px; }

/* ---------- 雑記：サイドバーを外して読み物の1カラムに ---------- */
@media screen and (min-width: 1024px) {
  .yg-zakki #sidebar { display: none; }
  .yg-zakki .content-in { justify-content: center; }
  .yg-zakki #main { width: 780px; max-width: 100%; padding: 48px 60px; }
  .yg-zakki .article .entry-content { font-size: 19px; line-height: 2.05; }
  .yg-zakki .article-header .entry-title { font-size: 34px; line-height: 1.35; }
}
.yg-zakki .entry-content > p:empty { margin: 0 0 1.2em; min-height: 1px; }

/* ---------- カテゴリ一覧 ---------- */
.yg .archive-title {
  position: relative;
  display: inline-block;
  background: var(--yg-ink);
  color: #FFFFFF;
  border-radius: 3px;
  padding: 0.35em 0.8em 0.35em 2em;
  font-size: 24px;
  font-weight: 900;
}
.yg .archive-title .fa,
.yg .archive-title .fas { display: none; }
.yg .archive-title::before {
  content: "";
  position: absolute;
  left: 0.75em;
  top: 50%;
  width: 0.55em;
  height: 0.55em;
  margin-top: -0.28em;
  background: var(--yg-yellow);
  transform: rotate(45deg);
}
.yg .category-header .eye-catch-wrap { display: none; }  /* カテゴリ画像は一覧の邪魔になるので隠す */

.yg .yg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}
.yg .yg-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card);
  color: var(--yg-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.yg .yg-chips a[aria-current="page"] { background: var(--yg-ink); color: var(--yg-yellow); }
.yg .yg-chip-count { font-family: var(--yg-num); font-weight: 700; font-size: 13px; color: var(--yg-muted); }
.yg .yg-chips a[aria-current="page"] .yg-chip-count { color: #FFFFFF; }

.yg .ecb-entry-border .entry-card-wrap,
.yg .entry-card-wrap {
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  overflow: hidden;
  background: var(--yg-card);
}
.yg .entry-card-snippet { font-size: 12px; color: var(--yg-muted); }
.yg .entry-card-meta .post-date,
.yg .entry-card-meta .post-update,
.yg .widget-entry-card-date { font-family: var(--yg-num); font-weight: 700; letter-spacing: 0.02em; }

/* 図鑑の一覧：No. バッジ */
.yg .yg-no {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: var(--yg-yellow);
  color: var(--yg-ink);
  border: 1.5px solid var(--yg-ink);
  border-radius: 4px;
  padding: 0 7px;
  font-family: var(--yg-num);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
}
.yg figure { position: relative; }
.yg-archive-zukan #list .entry-card-snippet { display: none; }
@media screen and (min-width: 835px) {
  .yg-archive-zukan #list.ect-vertical-card .entry-card-wrap { width: 32.6%; }
}

/* ライド記録の一覧：写真を大きく */
@media screen and (max-width: 834px) {
  .yg-archive-ride #list.ect-vertical-card .entry-card-wrap { width: 100%; }
  .yg-archive-ride #list .entry-card-title { font-size: 17px; }
}

/* 雑記の一覧：日付とタイトルの読み物リスト */
.yg-archive-zakki #list.ect-vertical-card { display: block; }
.yg-archive-zakki #list.ect-vertical-card .entry-card-wrap { width: 100%; margin-bottom: 10px; }
.yg-archive-zakki #list .entry-card { flex-direction: row-reverse !important; align-items: center; }
.yg-archive-zakki #list .entry-card-thumb { width: 120px !important; flex: 0 0 120px; margin: 0 0 0 12px; }
.yg-archive-zakki #list .entry-card-thumb .cat-label { display: none; }
.yg-archive-zakki #list .entry-card-content { padding: 10px 0 10px 14px; }

/* ---------- トップページ ---------- */
.yg-front #carousel { display: none; }   /* 新着と重なるカルーセルは外す */
.yg .list-title {
  text-align: left;
  font-size: 20px;
  font-weight: 900;
  margin: 1.8em 0 0.8em;
}
.yg .list-title-in { padding: 0 0 0 1.3em; white-space: normal; }
.yg .list-title-in::after { content: none; }
.yg .list-title-in::before {
  left: 0.1em;
  top: 50%;
  width: 0.55em;
  height: 0.55em;
  margin: -0.3em 0 0;
  background: var(--yg-yellow);
  border: 1.5px solid var(--yg-ink);
  transform: rotate(45deg);
}
.yg .list-more-button {
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card);
  color: var(--yg-ink);
  font-weight: 700;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
}
.yg .list-more-button:hover { background: var(--yg-yellow); color: var(--yg-ink); }
.yg-front .list-columns { display: flex; flex-wrap: wrap; }
.yg-front .list-category-9-column { order: -1; }   /* ライド記録を先頭に */
.yg .widget-entry-cards.border-square a.widget-entry-card-link { border-radius: 6px; overflow: hidden; background: var(--yg-card); }

/* ---------- フッター ---------- */
.yg .footer,
.yg .footer-container { background-color: var(--yg-ink); color: #E3DFD3; }
.yg .footer a { color: #FFFFFF; }
.yg .footer .copyright { color: #A9A69B; font-size: 12px; }
.yg .footer-bottom-logo img { border-radius: 4px; }

/* トップへ戻る */
.yg .go-to-top-button { background-color: var(--yg-ink); color: var(--yg-yellow); border-radius: 50%; }

/* スマホ下のボタン列 */
.yg .mobile-menu-buttons { box-shadow: 0 -1px 0 var(--yg-line); }
.yg .mobile-menu-buttons .menu-button > a,
.yg .mobile-menu-buttons .menu-button-in { color: var(--yg-ink); }


/* 写真の上にタイトルが重なるカード（↓ついでに読んでけ・人気記事・新着など）は白文字＋濃い影で読みやすく */
.yg .widget-entry-cards.large-thumb-on .card-content { background: linear-gradient(rgba(27, 27, 25, 0), rgba(27, 27, 25, 0.88) 55%); padding-top: 1.6em; }
.yg .widget-entry-cards.large-thumb-on .card-title,
.yg .widget-entry-cards.large-thumb-on .widget-entry-card-title { color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.yg .widget-entry-cards.large-thumb-on .card-meta,
.yg .widget-entry-cards.large-thumb-on .widget-entry-card-date { color: #E3DFD3; }
.yg .large-thumb-on .yg-no { top: 6px; bottom: auto; }

/* ===== 2026-10-03 追加 ===== */
/* 図鑑ラベルの No.：全台一覧へのリンク */
.yg a.yg-zlabel-no { color: #FFFFFF; text-decoration: none; }
.yg a.yg-zlabel-no:hover .yg-zlabel-go,
.yg a.yg-zlabel-no:focus-visible .yg-zlabel-go { text-decoration: underline; }
.yg .yg-zlabel-go { margin-top: 4px; font-size: 11px; font-weight: 700; color: #FFFFFF; opacity: 0.85; white-space: nowrap; }

/* 図鑑カテゴリの絞り込み：全台一覧への入口 */
.yg .yg-chips a.yg-chip-index { background: var(--yg-yellow); border-color: var(--yg-ink); }

/* 図鑑 全台一覧（固定ページ [yg_zukan_index]） */
.yg .yg-zi { margin: 0 0 1.6em; }
.yg .yg-zi-lead { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--yg-muted); }
.yg .yg-zi-jump { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 18px; }
.yg .yg-zi-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 36px;
  max-width: 64px;
  min-height: 36px;
  padding: 0 4px;
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card);
  color: var(--yg-ink);
  font-family: var(--yg-num);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.yg .yg-zi-jump a:hover { background: var(--yg-ink); color: var(--yg-yellow); }
.yg .yg-zi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin: 0 0 28px; }
@media screen and (min-width: 600px) { .yg .yg-zi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
.yg .yg-zi-card { display: flex; flex-direction: column; gap: 2px; color: var(--yg-ink); text-decoration: none; scroll-margin-top: 16px; }
.yg .yg-zi-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius);
  background: var(--yg-line);
}
.yg .yg-zi-photo img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border: 0; }
.yg .yg-zi-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--yg-muted); }
.yg .yg-zi-model { margin-top: 5px; font-size: 14px; font-weight: 900; line-height: 1.35; word-break: break-word; }
.yg .yg-zi-rider { font-size: 12px; line-height: 1.4; color: var(--yg-muted); }
.yg .yg-zi-card:hover .yg-zi-model { text-decoration: underline; }
.yg .yg-zi-card:target .yg-zi-photo { outline: 3px solid var(--yg-yellow); outline-offset: 2px; }
.yg .entry-content h2.yg-zi-h { margin-top: 1.4em; }

/* ===== 2026-10-04 追加：図鑑のスペック表・全台一覧の検索 ===== */
/* スペック表（図鑑の記事の最後） */
.yg .yg-spec { margin: 2.4em 0 1.6em; }
.yg .entry-content h2.yg-spec-h { margin: 0 0 12px; }
.yg .yg-spec-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--yg-ink);
  border-radius: var(--yg-radius);
  overflow: hidden;
  background: var(--yg-card);
  font-size: 14px;
  line-height: 1.55;
}
.yg .yg-spec-table th,
.yg .yg-spec-table td { padding: 9px 12px; border: 0; border-top: 1px solid var(--yg-line); vertical-align: top; text-align: left; background: transparent; }
.yg .yg-spec-table tr:first-child th,
.yg .yg-spec-table tr:first-child td { border-top: 0; }
.yg .yg-spec-table th { width: 8.5em; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--yg-muted); background: var(--yg-paper); }
.yg .yg-spec-table td { font-weight: 700; word-break: break-word; }
.yg .yg-spec-table td a { color: var(--yg-ink); text-decoration: underline; text-decoration-color: var(--yg-yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }
@media screen and (max-width: 480px) { .yg .yg-spec-table th { width: 6.5em; white-space: normal; } .yg .yg-spec-table th, .yg .yg-spec-table td { padding: 8px 10px; } }
.yg .yg-spec-note { margin: 8px 0 0; font-size: 12px; color: var(--yg-muted); }
.yg .yg-spec-more { margin: 10px 0 0; text-align: right; font-size: 13px; font-weight: 700; }
.yg .yg-spec-more a { color: var(--yg-ink); }

/* 全台一覧の検索 */
.yg .yg-zs { margin: 0 0 22px; }
.yg .yg-zs-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 0;
  background: var(--yg-paper);
}
.yg .yg-zs-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 14px 0 40px;
  border: 2px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231B1B19' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 14px 50%;
  color: var(--yg-ink);
  font-size: 16px;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
}
.yg .yg-zs-input::placeholder { color: var(--yg-muted); font-weight: 400; font-size: 14px; }
.yg .yg-zs-input:focus { outline: none; box-shadow: 0 0 0 3px var(--yg-yellow); }
.yg .yg-zs-count { flex: 0 0 auto; font-family: var(--yg-num); font-size: 15px; font-weight: 700; white-space: nowrap; }
.yg .yg-zs-count:empty { display: none; }
.yg .yg-zs-clear {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-ink);
  color: var(--yg-yellow);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.yg .yg-zs-clear[hidden] { display: none; }
.yg .yg-zs-filters { display: grid; gap: 8px; }
.yg .yg-zs-row { display: flex; align-items: flex-start; gap: 10px; }
.yg .yg-zs-key { flex: 0 0 4.2em; padding-top: 7px; font-size: 12px; font-weight: 700; color: var(--yg-muted); }
.yg .yg-zs-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.yg .yg-zs-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card);
  color: var(--yg-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.yg .yg-zs-chip .yg-chip-count { font-size: 12px; }
.yg .yg-zs-chip:hover { background: var(--yg-note); }
.yg .yg-zs-chip[aria-pressed="true"] { background: var(--yg-ink); color: var(--yg-yellow); }
.yg .yg-zs-chip[aria-pressed="true"] .yg-chip-count { color: #FFFFFF; }
.yg .yg-zs-empty { margin: 16px 0 0; padding: 18px; border: 1px dashed var(--yg-muted); border-radius: var(--yg-radius); text-align: center; font-weight: 700; color: var(--yg-muted); }
.yg .yg-zs-empty[hidden],
.yg .yg-zi-card[hidden],
.yg .yg-zi-grid[hidden],
.yg .yg-zi-jump[hidden],
.yg .yg-zi-lead[hidden],
.yg .entry-content h2.yg-zi-h[hidden] { display: none; }
.yg .yg-zi-hit { margin-top: 2px; padding: 3px 6px; border-radius: 4px; background: var(--yg-note); font-size: 11px; line-height: 1.45; color: var(--yg-ink); word-break: break-word; }

/* 図鑑カテゴリの小さな検索窓（全台一覧へ送る） */
.yg .yg-chips .yg-chip-search { display: inline-flex; flex: 1 1 220px; margin: 0; }
.yg .yg-chips .yg-chip-search input {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px 0 34px;
  border: 1px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%231B1B19' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 12px 50%;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.yg .yg-chips .yg-chip-search input::placeholder { font-size: 13px; color: var(--yg-muted); }

/* ===== 2026-10-04 追加②：写真を1画面目に（検索窓＋［絞り込み］ボタン。条件はパネルで選ぶ。PC・スマホ共通） ===== */
.yg.yg-zi-page .article-header .date-tags { display: none; }   /* 図鑑さくいんでは日付を出さない */
.yg .yg-zi-lead { display: none; }
.yg .yg-zs { margin-bottom: 16px; }
.yg .yg-zs-bar { margin-bottom: 4px; }
.yg .yg-zs-bar .yg-zs-count,
.yg .yg-zs-bar .yg-zs-clear { display: none; }
.yg .yg-zs-input { height: 44px; }
.yg .yg-zs-open {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--yg-ink);
  border-radius: 999px;
  background: var(--yg-card);
  color: var(--yg-ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.yg .yg-zs-open:hover { background: var(--yg-note); }
.yg .yg-zs-open.is-sel { background: var(--yg-ink); color: var(--yg-yellow); }
.yg .yg-zs-open-n {
  position: absolute; top: -6px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border: 2px solid var(--yg-ink); border-radius: 999px;
  background: var(--yg-yellow); color: var(--yg-ink);
  font-family: var(--yg-num); font-size: 12px; line-height: 16px; text-align: center;
}
.yg .yg-zs-open-n[hidden] { display: none; }
.yg .yg-zs-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; }
.yg .yg-zs-active[hidden] { display: none; }
.yg .yg-zs-active-n { margin-right: 2px; font-family: var(--yg-num); font-size: 15px; font-weight: 700; }
.yg .yg-zs-tag {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; margin: 0; padding: 0 10px 0 12px;
  border: 0; border-radius: 999px;
  background: var(--yg-ink); color: var(--yg-yellow);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.yg .yg-zs-x { color: #FFFFFF; font-size: 14px; line-height: 1; }
/* パネル（スマホ：下からせり出す／PC：画面中央） */
.yg .yg-zs-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(27, 27, 25, 0.45); }
.yg .yg-zs-backdrop[hidden] { display: none; }
.yg .yg-zs-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--yg-ink);
  border-radius: 16px 16px 0 0;
  background: var(--yg-paper);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.yg .yg-zs-sheet.is-open { transform: none; visibility: visible; transition: transform 0.25s ease; }
.yg .yg-zs-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.yg .yg-zs-sheet-head::before {
  content: ""; position: absolute; top: 7px; left: 50%;
  width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--yg-line);
}
.yg .yg-zs-sheet-title { font-size: 16px; font-weight: 900; }
.yg .yg-zs-reset { margin: 0; padding: 6px 4px; border: 0; background: none; color: var(--yg-muted); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.yg .yg-zs-sheet .yg-zs-filters { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; gap: 14px; padding-bottom: 12px; }
.yg .yg-zs-done {
  display: block; flex: 0 0 auto; width: 100%; height: 48px; margin: 0;
  border: 0; border-radius: 999px;
  background: var(--yg-ink); color: var(--yg-yellow);
  font-size: 15px; font-weight: 900; cursor: pointer;
}
.yg .yg-zs-done:disabled { opacity: 0.4; }
html.yg-noscroll, html.yg-noscroll body { overflow: hidden; }
html.yg-noscroll .mobile-footer-menu-buttons { visibility: hidden; }
@media screen and (max-width: 600px) {
  .yg .yg-zs-row { flex-direction: column; gap: 6px; }
  .yg .yg-zs-key { flex: none; padding-top: 0; }
  .yg .yg-zs-chip { min-height: 36px; }
}
@media screen and (min-width: 601px) {
  .yg .yg-zs-sheet {
    left: 50%; right: auto; bottom: auto; top: 12vh;
    width: min(720px, calc(100vw - 48px));
    max-height: 76vh;
    padding: 0 24px 20px;
    border: 3px solid var(--yg-ink);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .yg .yg-zs-sheet.is-open { opacity: 1; transform: translate(-50%, 0); transition: opacity 0.18s ease, transform 0.18s ease; }
  .yg .yg-zs-sheet-head { padding: 18px 0 12px; }
  .yg .yg-zs-sheet-head::before { display: none; }
  .yg .yg-zs-sheet .yg-zs-filters { gap: 12px; }
  .yg .yg-zs-done { width: auto; min-width: 220px; margin: 4px auto 0; padding: 0 28px; }
}

@media screen and (min-width: 1024px) {   /* PC：4列にして一度に見える台数を増やす */
  .yg .yg-zi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
  .yg .yg-zi-model { font-size: 13px; }
}

/* カテゴリ一覧の絞り込み：PC は今までどおり折り返し、スマホは種類を横スクロール1行＋さくいん・検索窓を1行 */
.yg .yg-chips-scroll,
.yg .yg-chips-tools { display: contents; }
@media screen and (max-width: 600px) {
  .yg .yg-chips { display: block; margin-bottom: 16px; }
  .yg .yg-chips-scroll {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .yg .yg-chips-scroll::-webkit-scrollbar { display: none; }
  .yg .yg-chips-scroll a { flex: 0 0 auto; white-space: nowrap; }
  .yg .yg-chips-tools { display: flex; gap: 8px; margin-top: 8px; }
  .yg .yg-chips-tools .yg-chip-index { flex: 0 0 auto; white-space: nowrap; }
  .yg .yg-chips .yg-chip-search { flex: 1 1 auto; min-width: 0; }
}

/* ===== 2026-10-04 追加③：PC のヘッダー画像を低く（サイト全体。高さ約376px → 約204px） ===== */
@media screen and (min-width: 835px) {
  .yg .logo-header { padding: 12px 0; }
  .yg .logo-header img.header-site-logo-image { width: auto; max-height: 180px; margin: 0 auto; border-radius: 6px; }
}

/* ===== 2026-10-04 追加④：走った道マップ ===== */
.yg .yg-rm { margin: 0 0 2em; }
.yg .yg-rm-stats { margin: 0 0 10px; font-size: 14px; font-weight: 900; }
.yg .yg-rm-map { margin: 0 0 20px; border: 2px solid var(--yg-ink); border-radius: var(--yg-radius); overflow: hidden; }
.yg .yg-rm-map .leaflet-map, .yg .yg-rm-map .leaflet-container { height: 68vh !important; min-height: 360px; max-height: 760px; }
.yg .yg-rm-pop-d { margin: 0 0 4px; font-family: var(--yg-num); font-size: 13px; font-weight: 700; color: var(--yg-muted); }
.yg .yg-rm-pop-t { display: block; margin: 2px 0; font-size: 13px; font-weight: 900; line-height: 1.45; color: var(--yg-ink); }
.yg .yg-rm-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--yg-line); }
.yg .yg-rm-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--yg-line); }
.yg .yg-rm-list a { display: flex; align-items: baseline; gap: 10px; padding: 9px 2px; color: var(--yg-ink); text-decoration: none; }
.yg .yg-rm-list a:hover { background: var(--yg-note); }
.yg .yg-rm-li-d { flex: 0 0 auto; font-family: var(--yg-num); font-size: 13px; color: var(--yg-muted); }
.yg .yg-rm-li-t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.yg .yg-rm-li-k { flex: 0 0 auto; font-family: var(--yg-num); font-size: 13px; font-weight: 700; }

/* ===== 2026-10-04 追加：地図のルートを黄色に（縁取りの影で地図に埋もれないように） ===== */
.yg .yg-rm-map .leaflet-overlay-pane svg, .yg .yg-course .leaflet-overlay-pane svg { filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 1px rgba(0,0,0,.6)); }
