/*
Theme Name: PUG_FB_kas
Theme URI: https://frankmugishi.com/
Author: N
Author URI: https://frankmugishi.com/
Description: カスブログのオリジナルテーマ
Version: 1.1
*/




.post-content p {
  line-height: 1.8;
  margin-bottom: 1.5em;
}

/* === 全体レイアウト === */
.main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5em;
  padding-top: 0 !important;
}

/* === 動画写真レイアウト === */
.main-layout-dog {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6em 1em;

}




/* === メインコンテンツ === */
.main-content {
  flex: 1;
  min-width: 0;
}

/* === サイドバー === */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #ddd;
  padding: 1em;
  border-radius: 1em;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* === サイドバーの見出しとリスト === */
.sidebar h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.5em;
}

.sidebar a {
  text-decoration: none;
  color: #333;
}

.sidebar a:hover {
  text-decoration: underline;
}
/* === 汎用投稿リスト === */
.post-list {
  /* display: flex; */
  /* flex-wrap: wrap; */
  gap: 1em;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: flex-start;
}

/* === インスタ風グリッド（photo/videoカテゴリ用）=== */
.category-photo .post-list,
.category-video .post-list {
  justify-content: flex-start;
}


.category-photo .post-item {
  width: calc(50% - 0.5em); /* ← スマホ2カラム */
  height: auto;             /* ← この高さで統一 */
  overflow: hidden;
  border-radius: 0.5em;
}

/* リンクをブロック化して中身も揃える */
.category-photo .post-item a {
  display: block;
  width: 100%;
  height: 100%;
}


.category-photo .post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5em;
}


.category-video .post-item {
  width: calc(33.333% - 1em);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5em;
}

.category-video .post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* === 通常カード型（roudo-blog / kas系）=== */
.post-item {
  font-size: 1.1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.2em;
  width: calc(33.33% - 1em);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.post-item h2 {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #333;
}

.post-item .excerpt {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 0.8em;
}

.post-detail {
  background: #fff;
  border-radius: 1em;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  padding: 5em 2em;
  max-width: 800px;
  margin: 0 auto;
}

.post-title {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.post-meta {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.post-video-content iframe,
.post-video-content video {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5em;
  margin-bottom: 1em;
}

.post-back {
  margin-top: 2em;
  font-size: 0.95em;
}

.post-back a {
  display: inline-block;
  margin-top: 1.5em;
  font-size: 0.95em;
  color: #007acc;
  text-decoration: none;
}

.post-back a:hover {
  text-decoration: underline;
}

/* 写真 */
.post-thumb {
  width: 100%;
  height: 100%;
}

.post-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 0.5em;
}


.post-content iframe,
.post-content video,
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
}

/* .post-content {
  font-size: 1rem;
  line-height: 1.6;
} */

.post-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 1em 1em;
}


.post-content iframe,
.post-content video,
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
}

.sidebar h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
}

.category-kas-joushi .category-top-image {
  background-image: url('/wp-content/themes/pug_fb/img/kas-joushi-top.png');
  background-size: cover;
  background-position: center;
  height: 300px;
  margin-top: 6em;
}



/* ↑戻るボタン */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 100px; /* ←追従ボタンの上にずらす */
  left: 20px;
  background-color: rgba(0, 0, 0, 0.3); /* ←黒すぎるなら 0.4〜0.6 */
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 0.6em 0.8em;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 10000; /* ←NEXTより上にする！ */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0.7;
  transition: opacity 0.3s;
  /* right: 20px; */
  bottom: 50px;
}




.back-to-top:hover {
  background: #555;
  opacity: 1;
}

/* お問い合わせ */
.contact {
  padding-top:5em; 
}

.contact-wrapper {
  background: #f9f9f9;
  border: 2px solid #ccc;
  border-radius: 1em;
  padding: 2em;
  max-width: 800px;
  margin: 3em auto 2em; /* ← 上だけちょい広めにした */
  font-family: "メイリオ", sans-serif;

}


.contact-wrapper h2,
.contact-wrapper h3 {
  color: #333;
  margin-bottom: 0.5em;
}

.contact-wrapper p {
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.contact-button {
  display: inline-block;
  background: #58b6e9;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 0.5em;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-button.form {
  background: #58b6e9;
}

.contact-button.coconala {
  background: #f1ae62;
}

.contact-button.insta {
  background: #f28aad;
}

.contact-button:hover {
  background: #555;
}

/* インスタ風写真サイドバーなし版 */
/* 強制的にFlex無効 → Gridに切り替える */
.post-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 1200px;
}

 .post-item {
  width: 100% !important;
  height: auto;
  overflow: hidden;
  border-radius: 0.5em;
}


.category-photo .post-item a,
.category-photo .post-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5em;
}

/* アイキャッチ日々投稿 */

.post-list-layout .post-summary {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1em;
}

.post-list-layout .post-thumbnail img {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.post-list-layout .post-body {
  flex: 1;
}

.post-list-layout .post-body h2 {
  margin-top: 0;
  font-size: 1.2em;
}

/* トップページ */
.top-image {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 3em auto 1.5em auto; /* 上：余白たっぷり、下：やや小さめ */
}

.top-main-layout {
  display: flex;
  justify-content: center;
  padding: 0 1em;
}

.top-main-content {
  max-width: 700px;
  text-align: center;
  font-size: 1em;
  line-height: 1.8;
}

.top-main-content h1 {
  font-size:1.5em;
}

.footer-nav, .footer-info, .footer-copy {
  max-width: 1200px;
  margin: 2em auto;
  padding: 1em 1em;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-nav {
  border-top: solid #b4b6b6;
}

.footer-nav h2 {
  margin-bottom: 0.8em;
  font-size: 1.1rem;
  font-weight: bold;
  color: #444;
}

.footer-nav ul, .footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
}

.footer-nav li, .footer-info li {
  margin-bottom: 0.5em;
}

.footer-nav li a,
.footer-info li a {
  text-decoration: none;
  color: #333;
  background: #f4f4f4;
  padding: 0.5em 1em;
  border-radius: 1em;
  transition: all 0.2s ease-in-out;
}

.footer-nav li a:hover,
.footer-info li a:hover {
  background: #333;
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2em;
}






/* サイドバーなしカテゴリ用（matome-intro 等） */
.category-matome-intro .category_sidebar {
  display: none !important;
}
.category-matome-intro .main-layout {
  display: block !important;
}
.category-matome-intro .main-content-cat {
  width: 100% !important;
}

/* まとめカテゴリページ */
.category-matome-intro .main-content-cat {
  max-width: 800px;
  margin: 0 auto;
  padding: 4em 1em;
}

.section-title {
  font-size: 1.6rem;
  color: teal;
  margin-top: 2em;
  border-bottom: 2px solid #00a9a9;
  padding-bottom: 0.2em;
}

.guide-block {
  background: #f9f9f9;
  border-left: 5px solid #b4b6b6;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 0.5em;
}

.guide-block h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #000;
}

.guide-block a {
  color: #5c27c0;
  font-weight: bold;
  text-decoration: none;
}

.guide-block a:hover {
  text-decoration: underline;
}

/* まとめページここまで */











/* === スマホ対応（幅768px以下） === */
@media screen and (max-width: 768px) {

  /* インスタ風写真 */
  .post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    padding: 0 0.5em;
  }

  .post-item {
    width: 100%;
    aspect-ratio: auto; /* ← 自動に戻す */
    height: auto;
  }

  .post-item img {
    width: 100%;
    height: auto; /* ← ここをautoに戻す */
    object-fit: contain; /* ← coverだと切れやすい */
    border-radius: 0.5em;
    display: block;
  }


  .main-layout {
    flex-direction: column;
  }
    .sidebar {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding: 1em;
      margin-top: 2em;
      background: #ddd;
      border-radius: 10px;
    }

    .logo img {
      width: 50px;
    }
    .site-title {
      font-size: 1.2rem;
    }

    .sidebar {
      font-size: 0.9rem;
    }
    .top-image {
      max-width: 250px;
      margin: 2em auto 1em auto;
    }
  
    .top-main-content {
      font-size: 1em;
      line-height: 1.6;
    }

    .back-to-top {
      right: 20px;
      left: auto;
      bottom: 50px;
    }

/* まとめカテゴリページ */
.category-matome-intro .main-content-cat {
  padding: 2em 1em;

}

/* フッター */
.footer-nav li {
  display: block;
  margin-bottom: 6px;
}

.footer-nav {
  margin-bottom: 2em;
}

.top-main-content h1 {
  font-size:1em;
}



}
  
  
  













html, body {
  overflow-x: hidden;
}
/* リセット系 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全体の本文用フォント（メイリオ） */
body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.5;
  background: #fff;
  color: #111;
}

/* 見出し（h1〜h3）もメイリオで統一 */
h1, h2, h3 {
  font-family: "メイリオ", "Meiryo", sans-serif;
  font-weight: bold;
}

/* タイトル・メニューだけポップに */
.site-title,
.nav-menu a,
.menu a,
.submenu-toggle,
.subsubmenu-toggle {
  font-family: "Noto Serif JP", cursive, sans-serif !important;
  font-weight: bold;
}



.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1em;
}

/* .top-image {
  width: 100%;
  height: 100vh;
  object-fit: contain;
  display: block;
  margin-top: 0; 
  padding-top:5em;
} */
header {
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
}



.logo img {
  width: 40px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.site-title {
  font-size: 1.5rem;
  font-family: 'Hachi Maru Pop', cursive, sans-serif;
  font-weight: bold;
  color: #000000;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}


/* 今見てるページをハイライト */
.category_sidebar li.current a {
  font-weight: bold;
  color: #5c27c0;
  background-color: #f5f0ff;
  padding: 0.3em 0.6em;
  border-radius: 0.6em;
}

/* フッター */







.nav-menu li a {

  align-items: center;
  padding: 0.5em 1em;
  text-decoration: none;
  color: #111;
  line-height: 1.4;
  transition: background-color 0.3s ease;
}

/* hover時の背景グレー */
.nav-menu li a:hover {
  background-color: #f0f0f0;
  border-radius: 0.5em;
}

.submenu-toggle:hover,
.submenu-toggle:active {
  background-color: #f0f0f0;
  border-radius: 0.5em;
}

.nav-menu ul {
  display: flex; /* アイコンとテキストがある場合にも対応 */
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

.nav-menu li {
  margin: 0;
  padding: 0.2em 0;
}


.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}
.kas-list-in-hamburger {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #ccc;
  }
  .kas-list-in-hamburger h2 {
    font-size: 1em;
    margin-bottom: 0.5em;
  }
.main-layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* padding-top: 5em; */
}

.category-daily .main-layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5em !important;

}

.tag .main-layout {
  display: flex;
  flex-wrap: wrap; /* ← これではみ出し対策 */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5em !important;
  box-sizing: border-box;
}


.top-main-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0;
  }



.category_sidebar{
  flex: 1;
  background: #ddd;
  padding: 2em; 
  /* border: 1px solid #9c9c9c; */
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.category_sidebar ul {
  padding-left: 1.2em;
  list-style: disc;
}

.category_sidebar li {
  margin-bottom: 1em;
  line-height: 1.6;
  list-style-type: none;
}

.category_sidebar a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.category_sidebar a:hover {
  text-decoration: underline;
  color: #007acc;
}

.category_sidebar li::before {
  /* content: "👉"; */
  margin-right: 0.5em;
  color: #5c27c0;
}

.category_sidebar h2 {
  padding-bottom: 1em;
}

.sidebar {

  padding: 2em;
  background-color: #f0f0f0;
}
.sidebar ul {
  list-style: none;
  margin-top: 1em;
}
.sidebar li {
  margin-bottom: 0.5em;
}
.kas-list-in-hamburger {
    margin-top: 2em;
  }
  .kas-submenu {
    list-style: none;
    padding-left: 1em;
  }
  .kas-submenu li {
    margin: 0.3em 0;
  }
  .has-submenu.open .kas-submenu {
    display: block;
  }
  .submenu-toggle {
      font-size: 1rem !important;
      font-weight: normal !important;
      border: none !important;
      padding: 0.2em 0;
      line-height: 1.8 !important;
    }

    .only-mobile { display: none; }
    .only-desktop { display: block; }

    /* 基本（PC）：横並び、順番そのまま */
    .next-link-area {
      display: flex;
      justify-content: space-between;
      gap: 1em;
    }

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
  }
  
  .photo-thumb img {
    width: 100%;
    height: 250px; /* 好きな高さに調整可能 */
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }
  
  .photo-thumb:hover img {
    transform: scale(1.05);
  }
  .single-thumbnail {
    margin-bottom: 1.5em;
    text-align: center;
  }
  .single-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .back-to-gallery {
    margin-top: 2em;
    text-align: center;
  }
  .back-to-gallery a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
    transition: color 0.3s;
  }
  .back-to-gallery a:hover {
    color: #004499;
  }
  .video-entry {
    margin-bottom: 2.5em;
    padding-bottom: 1em;
    border-bottom: 1px dashed #ccc;
  }
  .video-entry h2 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
  }
  .video-entry .post-content {
    line-height: 1.6;
  }



/* 動画幅コントロール */
.wp-block-embed iframe {
  width: 100% !important;
  aspect-ratio: 9 / 16;
  height: auto !important;
  max-height: 540px;
  margin-bottom: 2em;
  border-radius: 1em;
}

  
  .main-content article {
      margin-bottom: 2em;
      line-height: 1.7;
    }
    .main-content article h2 {
      margin-bottom: 0.5em;
    }
    article {
      margin-bottom: 2em;
    }
    
/* 黒線付きタイトル */
article h2 {
  border-left: 0.5em solid rgb(4, 155, 163);
  padding-left: 0.75em;
  margin-top: 2em;
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(to right, rgba(2, 73, 196, 0.05), transparent);
  color: rgb(4, 155, 163);
}



.about-layout {
  padding: 4em 2em 0 2em;
  text-align: center;
  width:100%;
}
.about-layout h2 {
  padding: 2em 2em 0 2em;
  text-align: center;
}
.dogs img{
  max-width: 100%;
  padding:1em 5em 1em 5em;
  height: auto;
  display: block;
}
.dogs-flex {
  display: flex;
}
.dogs {
  width:50%;
}
.dog-content h3 {
  text-align: left;
  font-weight: bold;
  color:cornflowerblue;
}
.dog-content p {
  text-align: left;
  padding-left:2em;
}
.dog-content {
  text-align: left;
  padding: 2em 2em 1em 5em;

  .dogs-header-image {
    height: 40vh; /* ← ヘッダー画像としてちょうどよい高さ */
    overflow: hidden;
    position: relative;
    margin-bottom: 3em;
    padding-top:3em;
  }
  
  .dogs-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
}

.dog-image-container img {
  transition: all 0.3s ease;
  cursor: pointer;
}

.dog-image-container:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* .detail-link {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #007bff;
  padding-top: 1em;
  text-decoration: none !important;

} */




.circle-image {
  width: 25rem;
  height: 25rem;
  aspect-ratio: 1 / 1;           
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  padding: 0 !important;         
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px cornflowerblue;
}

/* .circle-image:hover {
  transform: scale(1.05);
} */

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}
body, p, span, div, ul, ol, li, a, table, th, td, input, button {
  font-family: "メイリオ", "Meiryo", sans-serif !important;
  font-weight: normal !important;
}

h1, h2, h3 {
  font-family: "メイリオ", "Meiryo", sans-serif !important;
  font-weight: bold;
}

/* 商品紹介 */

.sidebar-shop {
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  padding: 1em;
  margin-top: 2em;
  border-radius: 1em;
}

.sidebar-shop h2 {
  font-size: 1em;
  margin-bottom: 0.5em;
}

.sidebar-shop ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-shop li {
  margin-bottom: 1em;
}

.sidebar-shop .product-card {
  display: flex;
  gap: 0.8em;
  margin-bottom: 1.5em;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.8em;
  padding: 0.8em;
  transition: box-shadow 0.3s ease;
}

.sidebar-shop .product-card:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-shop .product-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.4em;
}

.sidebar-shop .product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-shop .product-title {
  font-weight: bold;
  margin: 0;
}

.sidebar-shop .product-desc {
  font-size: 0.9em;
  color: #555;
  margin: 0.3em 0 0;
}

.product-card {
  display: flex;
  gap: 0.8em;
  margin-bottom: 1.5em;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.8em;
  padding: 0.8em;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.4em;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-weight: bold;
  margin: 0;
}

.product-desc {
  font-size: 0.9em;
  color: #555;
  margin: 0.3em 0 0;
}

/* カスタム箇条書き埋め込みhtml */

.custom-box {
  border: 2px solid #00b3b3;
  background-color: #f0fefe;
  padding: 1em 1em;
  border-radius: 10px;
  max-width: 90%;
  margin: 1em auto;
  font-size: 0.95em;
}

.custom-box ul {
  margin: 0;
  padding-left: 1em;
}

.custom-box li {
  margin-bottom: 0.5em;
  /* list-style: none; */
}



/* 自動で次へ👉 */
/* .next-link {
  margin-top: 1.5em;
  text-align: right;
}
.next-link a {
  color: #333333;
  font-weight: bold;
  text-decoration: none;
} */

.next-link-area {
  display: flex;
  justify-content: flex-end;  /* ← これがポイント！ */
  align-items: flex-start; /* ← ここがポイント！ */
  margin-top: 2em;
  gap: 1em; /* 余白調整（なくてもOK） */
}

.next-link-area .prev-link,
.next-link-area .next-link {
  max-width: 45%; /* 長文で折り返してもバランス取る */
}

.next-link-area a {
  font-weight: bold;
  text-decoration: none;
  color: #444;
  font-size: 0.8em;
}


.next-link-area a:hover {
  color: #007acc;
}

/* 次へ戻るボタンスマホ残像対応 */
.hide-next-button {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(100%) !important;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}



/* AIと考えてみた戻るボタン */
.ai-return-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
  transition: 0.2s;
}
.ai-return-btn:hover {
  background: rgba(0, 0, 0, 1);
}

/* h2タイトル */
/* トップ投稿だけ別デザインのh2 */
article h2.lead-heading {
  all: unset;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 0.3em 0;
  color: #333;
  background: none;
  border: none;
  margin-top: 1em;
}

/* トップページ修正版 */
.top-dog-links {
  text-align: center;
  /* margin-top: 20px; */
}

.dog-link {
  text-decoration: none;
  display: inline-block;
}

.top-image {
  width: 300px;
  /* border-radius: 50%; */
  transition: transform 0.3s ease;
}

.top-image:hover {
  transform: scale(1.05);
}

.dog-label {
  font-size: 0.9rem;
  margin-top: 8px;
  color: #333;
}

.next-link-area {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  max-width: 1200px;
  margin: 3em auto 0 auto;
  padding: 0 1em;
  font-size: 1rem;
}

/* 次へ戻るをエリア外に調整 */
.next-link-area .prev-link,
.next-link-area .next-link {
  white-space: nowrap;
}

.next-link-area {
  justify-content: center;
  gap: 3em;
}

.next-link-area a {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  padding: 0.6em 1.2em;
  border-radius: 2em;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #ccc;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.next-link-area a:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* スマホ時のみタイトル表示 */
.mobile-title-only {
  display: none;
}

/* YouTubeズレ防止 */
.youtube-wrapper iframe {
  width: 100%;
  max-width: 400px; /* 縦動画用に制限する場合 */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 犬ブログボタン */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin: 1em 0;
}

.popular-tags a {
  display: inline-block;
  font-size: 0.9em;
  padding: 0.3em 0.9em;
  border-radius: 20px;
  background-color: #f7f7f7;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.popular-tag {
  margin-bottom: 1.5em;
}

.popular-tag:hover {
  background-color: #eee;
}

.popular-tag:last-child {
  background-color: #deecfe;
  color: #663300;
  border-color: #bfdaff;
}

.popular-tag:last-child:hover {
  background-color: #c0dbfd; /* 少し濃い青系 */
  border-color: #99c8ff;     /* 境界線も濃く */
}

/* ブログ村対策 */
.post-cta-wrap { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.relsec-title { font-size: 1.1rem; margin: 0 0 .5rem; }
.relsec-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr; gap: .5rem; }
.relsec-item a { display: flex; justify-content: space-between; padding: .6rem .8rem; border: 1px solid #eee; border-radius: .75rem; text-decoration: none; }
.relsec-item-title { font-weight: 600; }
.relsec-item-date { opacity: .7; font-size: .9rem; }

  .cta-buttons{ display:flex; flex-direction:column; gap:.6rem; }
  .cta-buttons a{ width:100%; text-align:center; padding:0.9rem 1rem; }








@media (max-width: 768px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .only-mobile { display: block !important; }
  .only-desktop { display: none !important; }
.only-mobile .submenu-content li {
  padding: 0.4em 0;
  line-height: 1.6;
}
.has-submenu .submenu-content {
  display: none;
}
.has-submenu.open .submenu-content {
  padding-left: 1em;
  display: block;
}
  .hamburger {
    display: block;
  }
  .kas-list-in-hamburger {
    display: block;
  }
  .nav-menu {
    display: none;
    width: 100%;
    background: white;
    padding: 1em;
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-menu.active {
    display: block;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 1em;
  }
  .nav-menu li {
    margin: 0.5em 0;
  }
  /* .sidebar {
    display: none;
  } */
  .top-image {
    height: auto;
    object-fit: cover;
    /* margin-top: 0;  */
    padding-top:5em;
  }
  .main-layout {
      display: block;
      gap: 0;
      overflow-x: hidden;
    }
    .main-content {
      flex: 3;
      padding:1em;
    }

    article {
      width: 100%;
      overflow-wrap: break-word;
    }
    img, iframe {
      max-width: 100%;
      height: auto;
      display: block;
    }
  .about-layout {
      padding: 4em 0 0 0;
      text-align: center;
      width:100%;
}
    .dogs-flex {
      flex-direction: column;
  }
  .dogs {
      width:100%;
      padding:0;
  }
  /* .dog-content {
      text-align: left;
      padding-bottom: 0.5em;
  } */
  .dogs img {
      padding: 1em 1em; 
    }
    .dog-content p {
      font-size: 0.95rem;
    }
    .dog-content h3 {
      font-size: 1rem;
    }
    .dog-content {
      text-align: left;
      padding: 2em 2em 1em 2em;
  }
    .dogs-header-image {
      position: relative;
      width: 100%;
      height: auto; 
      overflow: hidden;
      margin-bottom: 3em;
    }
    .dogs-header-image img {
      width: 100%;
      height: auto;  
      object-fit: cover;
      display: block;
    }


  html {
    font-size: 15px; 
  }
  body {
    font-size: 1rem; 
    line-height: 1.6;
  }
  h1 {
    font-size: 1.4rem; 
  }
  h2 {
    font-size: 1.3rem; 
  }
  h3 {
    font-size: 1.1rem; 
  }
  p, li, span, a {
    font-size: 0.95rem; 
  }
  .site-title {
    font-size: 1.2rem;
  }
  .nav-menu a {
    font-size: 1rem;
  }
  .submenu-toggle {
    font-size: 1rem;
  }
  .wrapper {
    padding: 0 0.5em !important;
  }

  /* タイトルは中央に配置 */
  .header-title {
    display: none;
  }

  /* 横スクロール対策 */

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .main-layout {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    /* padding: 0 1em !important; */
    margin: 0 auto !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

    /* 筆者についてだけpadding0にしたけど反応がない */
  body.page-about .main-layout {
    padding: 0 !important;
  }

  .main-content,
  .category_sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1em !important;
    box-sizing: border-box;
  }

  img,
  iframe,
  video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  * {
    box-sizing: border-box;
  }

  .post-list-layout .post-summary {
    display: block;
  }

  /* パンクズ */
.breadcrumb-area {
  font-size: 0.85rem;
  margin: 0;
  padding-left: 1em;
  color: #666;
}

/* 戻ると次へ */
  .next-link-area {
    display: flex;
    flex-direction: column-reverse; /* ← これがミソ */
    align-items: stretch;
    text-align: center;
    gap: 0.5em;
    font-size: 1rem;
  }

  

.next-link-area .prev-link,
.next-link-area .next-link {
  margin-bottom: 0.5em;
  max-width:100%;
}

.next-link-area a {
  font-size: 1.2rem; /* ← これでちゃんと反映されるはず */
  line-height: 1.4;
  padding: 0.5em 0;
}

/* リード文タイトル */
article h2.lead-heading {
  font-size: 1.3rem;
}

/* 戻ると次へ */
.next-link-area {
  display: flex;
  flex-direction: column-reverse; /* ← これがミソ */
  align-items: stretch;
  text-align: center;
  gap: 0.5em;
  font-size: 1rem;
}



.next-link-area .prev-link,
.next-link-area .next-link {
margin-bottom: 0.5em;
max-width:100%;
}

.next-link-area a {
font-size: 1.2rem; /* ← これでちゃんと反映されるはず */
line-height: 1.4;
padding: 0.5em 0;
}

.next-link-area.only-mobile {
  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1em;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
}



.next-link-area.only-mobile a {
  display: inline-block;
  padding: 0.6em 1.2em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 2em;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  font-size: 0.9rem;
}

.next-link-area.only-mobile a:hover {
  background: #333;
  color: #fff;
}

/* スマホ時は次へと戻るを縦並びで順番を逆に */
.next-link-area {
  flex-direction: column-reverse;
  align-items: stretch;
  text-align: center;
}

/* 本文にかぶらんように bottom margin 確保 */
.main-content-cat {
  margin-bottom: 100px; /* ← ここだけちゃんと残す */
}

/* モバイルのみタイトル表記 */
.mobile-series-title {
  display: block;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  margin-top: 1em;
  color: rgb(4, 155, 163);

}

  .only-mobile .submenu-content {
    display: block !important;
  }

  .popular-tags {
    flex:none;
    display:block;
  }

  /* ブログ村対策 */
  .post-content{ font-size:16px; line-height:1.9; }
  .relsec-item a{ padding:.9rem 1rem; min-height:44px; } /* タップ幅 */
  .relsec-item-title{
    flex:1; font-size:16px; line-height:1.6;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .relsec-item-date{ white-space:nowrap; font-size:12px; }
  .cta-buttons{ display:flex; flex-direction:column; gap:.6rem; }
  .cta-buttons a{ width:100%; text-align:center; padding:0.9rem 1rem; }
  .post-thumb img{ width:100%; height:auto; display:block; }

}







@media (min-width: 1025px) {

  .nav-menu a {
    font-size: 1rem;
  }

.only-desktop.has-submenu {
  position: relative;
}
.only-desktop.has-submenu .submenu-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0.8em 1.2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  white-space: nowrap;
}
.only-desktop.has-submenu:hover .submenu-content {
  display: block;
}
.only-desktop.has-submenu .submenu-content li {
  margin: 0.6em 0;       
  line-height: 1.8;      
  padding: 0.2em 0;      
}
.only-desktop .submenu-toggle::after {
  content: "";
  
}



.main-layout {
  display: flex;
  gap: 2em;
  /* align-items: flex-start; */
}

.category_sidebar {
  width: 25%;
  max-width: 300px;
  margin-left: auto;
}

.main-content {
  width: 78%;
}

.series-block {
  margin-top: 3em;
  padding: 1.5em;
  background: #f9f9fc;
  border-left: 5px solid #5c27c0;
  border-radius: 10px;
  font-size: 0.95em;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.series-block h3 {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #333;
}

.series-block ul {
  list-style: none;
  padding-left: 0;
}

.series-block li {
  margin: 0.5em 0;
}

.series-block a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
}

.series-block a::before {
  /* content: '👉 '; */
  color: #5c27c0;
}

.series-block a:hover {
  color: #5c27c0;
  text-decoration: underline;
}

.dogs-header-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 3em;
}
.dogs-header-image picture,
.dogs-header-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover; 
  object-position: center;
  padding: 0 3em;
  box-sizing: border-box;
}
/* イメージにあるタイトル PC版は消す */
.header-title {
 display:none;
}

.top-image {
  width: 100%;
  height: 60vh;
  object-fit: contain;
  display: block;
  margin-top: 0; 
  padding-top:5em;
}

/* サイドバー追従 */

/* サイドバー追従：基本スタイル */
.sticky-menu {
  position: relative;
  transition: top 0.3s ease;
  width: 100%;
}

/* 追従状態 */

.sticky-fixed {
  position: fixed !important;
  top: 100px;
  z-index: 999;
  width: 100%; /* ← ここで調整したければ250pxでもOK */
  transform: translateY(0);
  opacity: 1;
}

/* 最下部で止まる状態 */
.sticky-fixed.stuck-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: 0;
}

/* スクロール開始・終了判定用 */
.sticky-start-marker,
.sticky-end-marker {
  height: 1px;
  width: 100%;
}

/* PC時の次へ戻るの折り返し対応 */
body.category-video-dogs .next-link-area {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}

body.category-video-dogs .next-link-area .prev-link,
body.category-video-dogs .next-link-area .next-link {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto !important;
  text-align: center;
}

/* 次へ戻るをPCのみボタン化 */
.next-link-area a {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  padding: 0.6em 1.2em;
  border-radius: 2em;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #ccc;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.next-link-area a:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}
.only-mobile {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

}
  /* PCサイズここまで */





.dogs-header-image {
  /* height: 60vh; */
  max-height: 600px;
  min-height: 250px;
  overflow: hidden;
  padding-top:5em;
}


.dogs-header-image picture,
.dogs-header-image img {
  width: 700px;
  max-width: 95%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* === ベースフォント設定 === */
body {
  font-size: 18px;
  line-height: 1.8;
  font-family: "メイリオ", sans-serif;
  color: #222;
}



