@charset "UTF-8";
/*
Theme Name: RiverTuck
Author: 両毛トレード
Description: 両毛トレードオリジナルテーマ（リバータック）
Version: 1.0
Text Domain: ryomo
*/
/*****************************/
/* ベース設定                */
/*****************************/
*, *::before, *::after {
  box-sizing: border-box;
}

/*モバイルの小さい画面対応7px*/
body {
  margin: 0;
  padding: 0 7px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo,
    sans-serif;
  color: #333;
}

.wrapper {
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
}

#container {
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* 任意の左右余白 */
}

@media screen and (max-width: 768px) {
  #container {
    padding: 0; /* 左右余白をなくす */
  }
}


/*****************************/
/*記事一覧　PC版タイトル調整 */
/*****************************/
@media screen and (min-width: 769px) {
  .index-post-title {
    margin-top: 0; /* ← 念のため */
  }

  .post-text {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}


/*****************************/
/*記事一覧　PC版アイキャッチ */
/*****************************/
.post-inner {
  display: block; /* モバイル：縦並び */
}

.post-thumbnail {
  text-align: center; /* pictureタグ内のimgを中央寄せ */
  height: 180px;/*共通部分で設定*/
  overflow: hidden;
}

/* PC表示（横並び） */
@media screen and (min-width: 769px) {
  .post-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

.post-thumbnail {
  flex: 0 0 300px;
  max-width: 300px;

  display: flex;               /* ← 追加 */
  align-items: flex-start;     /* ← 追加：画像を上揃え */

}

.post-thumbnail img {
  width: 300px;
  height: 171px;
  display: block;
}

  .post-text {
    flex: 1;
  }
}

/*****************************/
/*一覧　モバイルアイキャッチ */
/*****************************/
/*モバイル　アイキャッチ中央対応*/
@media screen and (max-width: 768px) {
  .post-text {
    min-height: 120px; /* 例：内容に合わせて調整 */
  }

  .post-inner {
    display: block; /* 縦並び */
  }

  .post-thumbnail {
    display: flex;
    justify-content: center;
    height: auto !important;   /* ★追加：高さの固定を解除 */
    overflow: hidden;          /* ★追加：枠超えを防止 */
  }

  .post-thumbnail picture {
    display: block;
    margin: 0 auto;
    width: fit-content;
  }

  .post-thumbnail-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;       /* ← cover に変えてもOK（好みに応じて） */
    display: block;
  }
}

/*****************************/
/* 見出しとリンク            */
/*****************************/
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

a {
  color: #000;
  border-bottom: 1px solid #000;
  text-decoration: none;
}

a:hover {
  color: red;
  border-bottom: 1px solid #fe56aa;
}


/*****************************/
/* ヘッダーとフッター        */
/*****************************/
#header {
  background-image: url(./images/back.jpg);
  padding: 40px 0 0 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

#header #logo .site-title {
  font-size: 40px;
  margin: 0;
  padding: 10px 0;
}

.header-under-widget-area {
  margin: 10px 0;
  text-align: center;
}

.header-under-widget-area .widget {
  display: inline-block;
}



.site-description {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
}


#footer {
  background-color: #555;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}




/*****************************/
/* 投稿記事表示              */
/*****************************/
#main {
  width: 100%;
}

.post,
.page {
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  line-height: 1.8;
}

.single-post .post p,
.page .post p {
  padding-left: 10px;
}

/*****************************/
/* 画像関連                  */
/*****************************/
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

.post-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

/* PC用に上書き（768px以上のとき）3/29 */

@media screen and (min-width: 769px) {
  .post-thumbnail-img {
    height: auto; /* ← 高さを自動に戻す */
    object-fit: contain; /* ← 全体を表示。余白が出てもOK */
    aspect-ratio: 16 / 9; /* ← 高さを安定させる */
  }
}


/*****************************/
/* トップ記事タイトル専用    */
/*****************************/
.index-post-title {
  font-size: 18px;          /* ← 小さめに調整 */
  font-weight: 500;         /* ← 少し軽くして柔らかい印象に */
  color: #333;              /* ← 濃いグレーで読みやすく */
  background-color: transparent; /* ← 背景なし、完全フラット */
  padding: 0;               /* ← パディングもリセット */
  margin-bottom: 16px;      /* ← 下にちょっとスペースだけ残す */
  border: none;             /* ← ラインも全部なし！ */
  line-height: 1.4;
}

/*****************************/
/* 記事本文のh2～h4装飾      */
/*****************************/
/* 共通背景色 */
:where(.single-post .post h2,
       .single-post .post h3,
       .single-post .post h4,
       .page .post h2,
       .page .post h3,
       .page .post h4,
       .single-post .post ul,
       .single-post .post ol,
       .page .post ul,
       .page .post ol) {
  background-color: #f8f8f8;
  color: #333;
  border-radius: 5px;
}


/* h1 */
.single-post .post-title,
.page .post-title {
  font-size: 1.6em;
  font-weight: bold;
  background-color: #f9f9f9; /* 少し明るめグレー */
  padding: 16px 20px;
  margin: 2em 0 1.5em;
  box-sizing: border-box;
}


/* h2：実線の下線 */
.single-post .post h2,
.page .post h2 {
  font-size: 1.4em; /* ← 少し下げる */
  border-left: 5px solid #666;
  border-bottom: 3px solid #666;
  background-color: #f5f5f5;
  padding: 14px 16px;
  margin: 1.5em 0;
  font-weight: bold;
  box-sizing: border-box;
}

/* h3：破線の下線＋交互色 */
.single-post .post h3,
.page .post h3 {
  border-left: 4px solid #999;
  border-bottom: 2px dashed transparent; /* 下線スペースだけ確保 */
  background-color: #f8f8f8;
  padding: 12px 16px;
  margin: 1.2em 0 1em 0;
  font-weight: bold;
  box-sizing: border-box;
  position: relative;
}

.single-post .post h3::after,
.page .post h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #999 0px,
    #999 10px,
    #ccc 10px,
    #ccc 20px
  );
}

/* h4：点線の下線＋交互色 */
.single-post .post h4,
.page .post h4 {
  border-left: 3px solid #bbb;
  border-bottom: 1px dotted transparent; /* 下線スペースだけ確保 */
  background-color: #fafafa;
  padding: 10px 16px;
  margin: 1em 0;
  font-weight: bold;
  box-sizing: border-box;
  position: relative;
}

.single-post .post h4::after,
.page .post h4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #bbb 0px,
    #bbb 8px,
    #eee 8px,
    #eee 16px
  );
}





/* ul / ol 共通 */
/* ul / ol 共通（通常記事ページのみ） */
.single-post .post ul,
.single-post .post ol {
  margin-left: 20px;
  padding: 10px 20px;
  border: 2px solid #ccc;
  list-style-position: inside;
}

/* リスト項目（通常記事ページのみ） */
.single-post .post ul li,
.single-post .post ol li {
  margin-bottom: 8px;
  line-height: 1.6;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 4px;
}




/*****************************/
/* 記事下のタグ一覧          */
/*****************************/
.post-tags a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    margin: 2px 4px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s;
}
.post-tags a:hover {
    background-color: #ccc;
}

/*****************************/
/* サイドバータイトル        */
/*****************************/
.widget-title {
  font-size: 20px;
  font-weight: bold;
  padding: 12px;
  background-color: #e6f4ff;
  border-left: 5px solid #87cefa;
  margin-bottom: 20px;
  border-radius: 5px;
  color: #333333;
}

.widget-title:hover {
  background-color: #d9efff;
  border-left-color: #1e90ff;
}

/*****************************/
/* ウィジェット内リスト      */
/*****************************/
.widget_text ul {
  list-style: none;
  padding: 0;
}

.widget_text ul li {
  padding-left: 20px;
  background: url('./images/icon.jpg') no-repeat left center;
  background-size: 16px 16px;
}

.widget_mobile_text ul {
  list-style: none;
  padding: 0;
}

.widget_mobile_text ul li {
  padding-left: 20px;
  background: url('./images/icon.jpg') no-repeat left center;
  background-size: 16px 16px;
}

/*****************************/
/* ウィジェット　カテゴリ    */
/*****************************/
.widget_categories ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.widget_categories ul li {
  margin-bottom: 14px;     /* リスト同士の余白 */
  line-height: 1.8;        /* 行間：1.6?1.8がおすすめ */
}

/* 子カテゴリ（階層） */
.widget_categories ul .children {
  margin-left: 16px;
  list-style-type: circle;
}

.widget_categories ul .children li {
  margin-bottom: 12px;
  line-height: 1.8;
}

/*****************************/
/* ウィジェット　記事下      */
/*****************************/
.post-bottom-widget {
  background-color: #f8f8f8; /* 全体に薄いブルーなど */
  padding: 16px;
  margin-top: 40px;
  border-radius: 4px;
}

/* h3（タイトル）の装飾をリセット：背景・枠線ナシ！ */
.post-bottom-widget .widget-title {
  background: none;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin-bottom: 8px;
  font-size: 16px;
  text-align: left;
}

/* 本文だけインデント */
.post-bottom-widget .textwidget {
  padding-left: 1em;
  font-size: 14px;
  line-height: 1.6;
}

/********************************/
/* ウィジェット　記事タイトル下 */
/********************************/
.single-title-widget-area {
  background-color: #f8f8f8; /* 全体に薄いブルーなど */
  font-size: 12px;
  border-radius: 4px;
}

/*****************************/
/* ヘッダーのメニュー表示    */
/*****************************/
/* 共通メニュー構造 */
.main-navigation {
  position: relative;
  margin-top: 20px;
  width: 100%;
  overflow-x: visible;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
    background-color: #ffffff;
}

.main-navigation li {
  margin: 0 5px;
}

.main-navigation a {
  display: block;
  padding: 10px 15px;
  background-color: #fff;         /* 白背景 */
  color: #000;                    /* 黒文字 */
  text-decoration: none;
  border-radius: 0px;  /* 角丸なし */
  font-weight: bold;
  border: none;         /* 1px solid #ccc薄い枠線でボタン感を少し */
  transition: none;               /* アニメーション不要なら削除 */
}

/* サブメニュー */
.main-navigation li ul.sub-menu {
  display: none;
  position: absolute;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 0;
  margin-top: 0px;
  z-index: 1000;
}

.main-navigation li:hover ul.sub-menu {
  display: block;
}

.main-navigation li ul.sub-menu li a {
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 15px;
  border-radius: 0;
}

.main-navigation li ul.sub-menu li a:hover {
  background-color: #e0e0e0;
}

/* モバイル用：横スライドスクロール対応 */
@media screen and (max-width: 768px) {
  .main-navigation a {
    font-size: 12px; /* 小さめに調整 */
  }
}

@media screen and (max-width: 768px) {
  .main-navigation {
    overflow-x: auto;
  }

/*background-color 設定　無しの場合は消す*/
  .main-navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    padding: 10px 0;
    margin: 0;
    background-color: #ffffff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
  }

  .main-navigation li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .main-navigation a {
    display: inline-block;
    padding: 10px 15px;
  background-color: #fff;         /* 白背景 */
  color: #000;                    /* 黒文字 */
    text-decoration: none;
    border-radius: 0px;
    font-weight: bold;
    white-space: nowrap;
  }

/* サブメニュー */
  .main-navigation li:hover ul.sub-menu {
     position: relative
  }
}

/*****************************/
/* 編集画面用                */
/*****************************/
/* 赤マーカー風（太めの赤い下線） */
.red-marker {
  background: linear-gradient(transparent 60%, #ffcaca 60%);
  font-weight: bold;
}

/* 青マーカー風（太めの青い下線） */
.blue-marker {
  background: linear-gradient(transparent 60%, #cce5ff 60%);
  font-weight: bold;
}

/*****************************/
/* パンくずリスト            */
/*****************************/

.breadcrumb-box {
  background-color: #f7f7f7;
  padding: 6px 12px;
  font-size: 0.9em;
  margin-bottom: 10px;
  border-radius: 4px;
}

.breadcrumb-box .breadcrumb-item {
  display: inline;
}

.breadcrumb-box .breadcrumb-item a {
  color: #333;
  text-decoration: none;
}

.breadcrumb-box .breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-box .current {
  font-weight: bold;
  color: #666;
}


/*****************************/
/* 関連記事リスト            */
/*****************************/

.related-posts-wrapper h2.related-posts-title {
  all: unset;                            /* ブラウザのデフォルトに戻す */
  display: block;
  font-size: 1em;
  margin: 1.5em 0;
  padding: 0;
  border: none !important;              /* 上位の枠線を強制的に消す */
  background: none !important;
  color: inherit;
}

/* ulとliのリストも完全にリセットし、ポチ付きの自然なリストに */
.related-posts-wrapper ul {
  all: unset;
  display: block;
  list-style-type: disc !important;     /* デフォルトのポチ */
  list-style-position: outside !important;
  margin-left: 1.5em !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.related-posts-wrapper li {
  all: unset;
  display: list-item;
  margin: 0.5em 0 !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 0 !important;
  background: none !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  color: inherit;
}



/*****************************/
/* ナビゲーション            */
/*****************************/

.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  padding: 0;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.pagination li span.current {
  background-color: #333;
  color: #fff;
  font-weight: bold;
  border-color: #333;
}

