/*
Theme Name: portfolio
Description: ポートフォリオサイト
Author: NH
Version: 1.0
*/


html, body {
  overflow-x: hidden;
  font-family: "M PLUS 1p";
  font-size: 1em;
  
}

body {
  padding-top: 3em; 
}

/* リセット系 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  display: flex;
  align-items: center;  /* ←これで縦中央に揃う */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  height:5em;
}

.header_bar {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 60px;     /* ← これで下寄せが目で見えるようになる */
  padding-bottom: 6px;  /* ← 微調整 */
  gap: 0.5em;
  color: #222;
  font-family: "Winky Rough", sans-serif;
  letter-spacing: 0.05em;
}





.header_bar h1 a {
  font-weight: lighter;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}



.logo img {
  width: 5em;
  display: inline-block;
  width: 2.5rem;            /* アイコンのサイズ調整 */
  vertical-align: bottom;
}



.container {
  display: flex;
  align-items: center;  /* ←これで縦中央に揃う */
  justify-content: center; /* 任意：左右中央にしたければ */
  padding: 3em 0.5em 0;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2em; /* 写真とテキストの間に余白入れる */
}

.main {
  display: flex; /* ←追加！ */
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 4vw, 4rem);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
   font-family: "Libertinus Math", system-ui;
  font-weight: 400;
  font-style: normal;
  background-color: #dedcdc;
  color: #888;
  padding: 0.5em 0; 
}



.comment {
  display: flex;
  width:50%;
  flex-direction: column;
  justify-content: center;  /* これで中の文字が縦に中央寄せされる */
  gap: 0.5em; /* 上下の余白調整 */
}

.picture {
  width:50%;
}

.picture img {
  /* max-width: 300px; */
  height: auto;
  display: block;
}

.dog_frank {
   font-family: "Libertinus Math", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 6vw, 5rem);
  padding-top: 0.5em;
  text-align: left;
}

.dog_breed_frank {
   font-family: "Libertinus Math", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 1em;
    text-align: left;
  /* padding-top: 1em; */
}

.dog_mugi {
   font-family: "Libertinus Math", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 6vw, 5rem);
  padding-top: 0.5em;
    text-align: right;
}

.dog_breed_mugi {
   font-family: "Libertinus Math", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 1em;
      text-align: right;
  /* padding-top: 1em; */
}
.dogs_about {
    font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
    font-size: 1em;
    padding-bottom: 1em;
}

.dog_name {
    font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
    font-size: 2em;
    padding-top: 0.5em;
}




.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;
}

.photo-item {
  font-size: 1.1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.2em;
  width: calc(80% - 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, box-shadow 0.2s ease;
}

/* マウスオンで少し浮き上がる */
.photo-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  border-color: #aaa; /* 境界も強調される */
}

.photo-item:active {
  transform: scale(0.97);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.post-item h2 a:visited {
  color: #4f5051;  /* 通常と同じ */
}
.post-content a:visited {
  color: #1a73e8;  /* 通常と同じ */
}
/* 説明書きの上下パディング */
.photo-comment {
  padding:1em 0;
}



/* ２パターン左右逆転 */
.dog-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
}
.dog-row.reverse {
  flex-direction: row-reverse;
}


.site_title {
    height:auto;
    padding-left:2em;
}

.nav-menu {
    margin: 0 1em 0 auto;
    height: auto;
    /* width:  100%; */
}

.nav-menu li a {

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

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

.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;
}

.only-mobile {
 display: none;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* 再生ボタンみたいなマーク */
.play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #222;
  text-decoration: none;
}

/* ← このボタンだけ独立して小さくなる */
.play-button .triangle {
  width: 22px;     /* ← 数値固定で大きさ安定 */
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid #333;
  position: relative;
  transition: background 0.3s, border 0.3s;
}

/* 中の三角 */
.play-button .triangle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-left: 8px solid #333;         /* ← pxで安定 */
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* hover */
.play-button:hover .triangle {
  background: #333;
  border-color: #333;
}

.play-button:hover .triangle::after {
  border-left-color: white;
}


footer {
  height:5em;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* これで中の文字が縦に中央寄せされる */
  align-items: center;
  gap: 0.5em; /* 上下の余白調整 */
  background-color: #cacaca;
  margin-top: 1em;
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
  text-align: center;

}

.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3em 1em;
  font-size: 1.1rem;
  line-height: 1.8;
}



/* category */


/* === 汎用投稿リスト === */
.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;
}

/* インスタ風写真サイドバーなし版 */
/* 強制的に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;
  padding-top: 1em;
}


/* === 通常カード型（roudo-blog / kas系）=== */
.post-item {
  font-size: 0.8rem;
  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;
}

/* === 全体レイアウト === */
.main-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em 0.5em;
  gap: 2em;
}

.main-layout-ourdogs {
    display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  padding: 1em 0.5em;
  gap: 2em;
}

/* メイン部分（記事側） */
.main-content-cat {
  flex: 1;               /* ←これで残り全部使う */
  min-width: 0;          /* ←Flexでの崩れ防止 */
  height: auto;
}

/* 投稿ゼロでも高さ確保 */
.main-content-cat:empty {
  min-height: 400px;
}



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

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

.category-video .post-list {
  justify-content: flex-start;
}

/* 商品紹介 */

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

.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;
}

/* サイドバー */
.category_sidebar {
  flex: 0 0 300px;       /* ←固定幅で安定。280でもOK */
  background: #eee;
  padding: 2em;
  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 {
  margin-right: 0.5em;
  color: #5c27c0;
}

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

/* body.category-video .main-content-cat {
  flex: 1 1 auto;
  width: auto;
}

body.category-video .main-content-cat iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-width: 100%;
} */

.post-content iframe {
  width: 100% !important;
  height: auto !important;
  max-height: 600px;
  aspect-ratio: 9 / 16;
  display: block;
  margin: 0 auto 1em;
}

.post-content p {
    margin-bottom: 1em;
    padding-left: 1em;
}



/* YouTube埋め込みを角丸・はみ出し防止＆中央寄せ */
.wp-block-embed.is-type-video iframe {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

/* 親にoverflowを与えることで角丸を効かせる */
.wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: 12px;
}

/* 必要なら figure自体にもスタイル */
.wp-block-embed {
  margin: 0 auto;
  max-width: 100%;
}

.post-content {
  margin-bottom: 2em;
  padding:1em 0;
}

article h2 {
  display: inline-block;
  font-weight:bolder;
  /* margin: 1em 0; */
  position: relative;
  font-size: 1.2rem;
  padding: 0.25em 0.5em;/*上下 左右の余白*/
  color: #494949;/*文字色*/
  border-left: solid 5px #7db4e6;/*左線*/
}

/* 誘導ページ */
.our-dogs-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.our-dogs-wrapper h1{
  padding:1em 0 1em 0;
  text-align: center;
    font-family: "Winky Rough", "M PLUS Rounded 1c",sans-serif;
    font-weight:400;
}

/* .dog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: flex-start; 
} */


.dog-block {
  width: 200px;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  background-color: #eee;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
    width: 100%;

}

.dog-block:hover {
  transform: scale(1.02);
}

.dog-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.dog-block p {
  margin: 0.5rem 0;
  font-weight: bold;
  font-size: 1rem;
}

.dog-block a {
  display: inline-block;
  margin: 0.25rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  background-color: #eee;
}

.dog-block a:hover {
  background-color: #ccc;
}

/* tabページ上部アイコン配置 */
/* .dog-tag-menu {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding-top: 3em;
  border-bottom: 1px solid #ccc;
} */

.dog-menu-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
  transition: transform 0.2s;
}
.dog-menu-icon:hover {
  transform: scale(1.1);
}

.dog-tag-menu {
  display: flex;
  justify-content: center; /* 👈これ！ */
  overflow-x: auto;
  gap: 1.2em;
  padding-top: 3em;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dog-tag-menu a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.dog-tag-menu img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.dog-about-cta {
  text-align: center;
  margin: 2em 0;
}
.about-btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  text-decoration: none;
}
.about-btn:hover {
  background: #555;
}

.post-body iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
}


.dog_about_name {
  text-align: center;
  font-size: 2em;
  padding-top: 3em;
}


a img {
  display: block;
  width: 100%;
  height: auto;
}
a {
  display: inline-block;
}

.mobile-menu {
  display: none;
  /* 他のスタイル（背景とか位置）もここに */
}

.mobile-menu {
  display: none;
  background: white;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  z-index: 999;
  text-align: center;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  padding: 1em;
  border-bottom: 1px solid #ccc;
}

.mobile-menu.active {
  display: block;
}



.dog-block {
  max-width: 200px;
  width: 100%;
   height: 350px; /* ← お好みで調整可 */
  box-sizing: border-box;
  padding: 1em;
  background: #eee;
  border-radius: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dog-right {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding-top: 1em;;
}

.dog-right a {
  white-space: normal !important;  /* ← これが超重要！ */
  word-break: break-word;
  font-size: 0.9em;
  text-align: left;
}


.dog-right a:hover {
  background-color: #ccc;
}


.dog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}


.dog-left {
  display: flex;
  flex-direction: column;
  align-items: center; /* ←ここでアイコンと名前を中央寄せ */
}


.btn-movie,
.btn-about {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  background-color: #eee;
}

img.wp-post-image {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* フランク投稿 */

.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;
}

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

.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;
}

/* 人気シリーズをサイドバーに */
.popular-series {
  margin-top:1.2em;
}
.popular-series h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #444;
  /* border-left: 4px solid #ff9800; */
  padding-left: 0.5rem;
}

.popular-series ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-series li {
  margin-bottom: 0.8rem;
}

.popular-series a {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: #f9f9f9;
  color: #333;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
  font-size: 0.9em;
}

.popular-series a:hover {
  background: #4c4c4c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* 犬aboutページのサムネイル */
/* 犬aboutページのサムネイル */
.page-thumbnail {
  background: #fff;
  border-radius: 12px;
  padding: 1.2em;
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center; /* 画像とテキスト中央寄せ */
  margin-bottom: 2em; /* セクション間の余白 */
}

.page-thumbnail img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.page-thumbnail img:hover {
  transform: scale(1.03);
}


/* .category-frank h2 {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.3em;
  border-left: 4px solid #666;
  padding-left: 0.5em;
  
} */

.category-frank h4 {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
  /* text-align: center; */
  color:#f46674;

}

/* サムネイル拡大 */

/* 通常表示 */
.popup-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* 角丸を確実に出すための枠 */
.image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  display: inline-block;
  max-width: 250px;
}

/* 拡大時：画面中央に固定配置（枠の外へ出す） */
.popup-image.enlarged {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  z-index: 10000;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: zoom-out;
}

/* 背景をうっすら暗く（拡大中のみ） */
body.zoom-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
}

/* single表示のカスブログ対応 */
.side-note-work{
  margin: 1.2rem 0 0.4rem;
  padding: .75rem 1rem;
  border: 1px dashed #ddd;
  border-radius: .6rem;
  font-size: .95rem;
  color:#555;
  background:#fafafa;
}
.side-note-work a{ text-decoration: underline; }

    .nav-menu ul li a {
    font-size: 1.1rem;
    padding: 0 1.2em;
  }

/* 続きを読む案①オーソドックス　20251205停止 */

/* .full-content {
  transition: all 0.3s ease;
}
.read-more-toggle {
  background: none;
  border: none;
  color: #666;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 0; 
  display: inline-block; 
  transition: color 0.2s ease;
}

.read-more-toggle:hover {
  color: #333;
} */


/* 続きを読む案②丸囲み　20251205停止 */
/* .read-more-toggle {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.read-more-toggle:hover {
  background: #f7f7f7;
  border-color: #bbb;
  color: #333;
} */



/* ヘッダー展開やり直し */
/* ====== サブメニュー（FRANK・MUGITARO展開） ====== */
.nav-menu .has-submenu {
  position: relative;
}

.nav-menu .has-submenu > a::after {
  content: "▼";
  font-size: 0.6em;
  margin-left: 0.3em;
}

.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 0.5em 0;
  margin: 0;
  border-radius: 0.6em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  z-index: 999;
  min-width: 180px;
}

.nav-menu .submenu li {
  margin: 0;
}

.nav-menu .submenu li a {
  display: block;
  padding: 0.6em 1.2em;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-menu .submenu li a:hover {
  background: #f0f0f0;
  color: #007acc;
}

.nav-menu .has-submenu:hover > .submenu {
  display: block;
}

/* 写真タイトル（figcaption）の高さを固定 */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  align-items: stretch;
}

.photo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* max-width: 320px; */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 画像は上部固定 */
.photo-image img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  display: block;
}

/* テキスト部分を下に寄せる */
.photo-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ← これが「下詰め」の決め手！ */
  align-items: center;
  text-align: center;
  padding: 0.8em 0;
  flex-grow: 1;
}

/* タイトルと日付の間隔 */
.photo-text figcaption {
  margin-bottom: 0.4em;
  min-height: 2.5em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.photo-date {
  color: #666;
  font-size: 0.9em;
}

.post-item h2 {
  min-height: 2.5em; /* タイトルの段数をそろえる */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}


/* photoページの冒頭 */
.category-photo .main-content > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1em auto;
    line-height: 1.9;
}

.category-photo .main-content h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.3em; /* ← タイトルと説明の距離 */
}

/* singleの左寄り防止 */
/* シングル投稿（動画・記事ページ）を中央寄せに */
body.single .main-layout {
  display: block !important;
  max-width: 900px;
  margin: 0 auto !important;
  padding: 2em 1em !important;
  justify-content: center !important;
  gap: 0 !important;
}

/* singleブログ村専用に改良 */

.related-posts {
  margin-top: 3em;
  padding: 1.5em 1em;
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.related-posts h2 {
  font-size: 1.2rem;
  margin-bottom: 1em;
  color: #444;
}

.related-item {
  display: flex;
  gap: 1em;
  align-items: center;
  margin-bottom: 1em;
  text-decoration: none;
  padding: .6em;
  border-radius: 10px;
  transition: background .2s ease;
}

.related-item:hover {
  background: #f0f0f0;
}

.related-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.related-title {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

/* 筆者についてサイドバー */

.author-profile {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  transition: 0.3s ease;
}

/* プロフィール画像 */
.author-profile img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* 名前 */
.author-profile .author-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 自己紹介文 */
.author-profile p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* アドセンス広告ゴースト対策 */

/* 広告ボックス */
.sidebar-ad-box {
  margin: 20px 0;
  text-align: center;
}

/* プロフィールカード */
.sidebar-profile-box .author-profile {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: center;
  margin-top: 20px;
}

.sidebar-profile-box img.dog-menu-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.sidebar-profile-box .author-name {
  font-weight: bold;
  margin-bottom: 10px;
}

/* ▼ photoギャラリーは拡大禁止 */
.nozoom img {
  pointer-events: none !important;
  cursor: default !important;
  transform: none !important;
}

/* ★ photoページの拡大バグ修正 ★ */

/* 1) 拡大時にビリビリさせる hover を無効化 */
body.category-photo .post-item:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* 2) photoギャラリー内の画像固定を削除（拡大の邪魔） */
body.category-photo .post-item img {
  height: auto !important;
  object-fit: contain !important;
}

/* 3) 拡大時のサイズを調整（デカすぎ問題解消） */
.popup-image.enlarged {
  max-width: 80vw !important;
  max-height: 80vh !important;
}

/* 4) 全画面クリックで閉じる用の背景クリック許可 */
body.zoom-open::after {
  pointer-events: auto;
}

/* 5) リスト順序の勝手な再配置を無効にする */
body.category-photo .post-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* 6) タイトルと日付の順番安定 */
body.category-photo h2,
body.category-photo .photo-date {
  order: initial !important;
}

/* ourdogs丸アイコン */

.page-dogs .dog-tag-menu a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}


.page-dog-tag-menu {
  display: flex !important;
  justify-content: center;
  overflow-x: auto;
  gap: 2em;
  padding-top: 3em;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: auto !important;
  height: auto !important;
}

.page-dog-tag-menu img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-dog-tag-menu h2 {
  font-size: 1em;
  padding-bottom: 2em;
  text-align: center;
}

.botton-block {
  display:block;
}

h5 {
  font-size:0.8em;
  color:#4f4f50;
  text-align: center;
}

.top-text {
  width: 100%;
  padding-top: 5em;
  text-align: center;
  line-height: 1.5em;
}

.post-content a {
  color: #1a73e8;
  font-weight: 600;
  padding-bottom: 2px;
  text-decoration: none;
}

.post-content a:hover {
  color: #0b59c7;
  border-bottom-color: #0b59c7;
}



/* ourdogs完全変更（アイコン除去） */
/* --- プロフィールカード全体 --- */
.dog-profile-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 10px;
}

/* --- 個別カード --- */
.dog-profile-card {
  text-align: center;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  transition: all .2s ease;
}

.dog-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* --- 丸アイコン（tag-menuと同じ世界観） --- */
.masonry {
  column-count: 2;
  column-gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 年アーカイブ */
.year-block { margin-bottom: 10px; }

.year-toggle {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: #f1f1f1;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
}

.month-list {
  display: none;
  margin: 5px 0 10px 10px;
  padding-left: 10px;
  /* border-left: 3px solid #ccc; */
}

.month-list.open {
  display: block;
}

.month-list li {
  margin: 5px 0;
}

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

.main-content-cat.post-list-layout {
  min-height: 300px;
}

/* カテゴリページ写真並べるスタイル */

/* 本文内の画像（犬ブログ） */
.dog-post img {
    width: 60%;
    /* max-width: 600px; */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    /* cursor: zoom-in; */
    transition: transform .25s 
}

.dog-post {
  padding-bottom: 3em;
  border-bottom: 1px solid #eee;
  margin: 0 2em 3em 2em;
}

.dog-content p {
  margin-bottom: 2em; /* 普通の余白に変更 */
  padding: 0;
}

.category-frank .dog-content p,
.category-mugishi .dog-content p {
    margin-bottom: 2em !important;
    line-height: 1.55;
}



.category-frank h2,
.category-mugishi h2 {
   margin: 1em 0 1em 0;
}

.category-frank .wp-block-image img,
.category-mugishi .wp-block-image img {
    width: 50% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 1.5em !important;
    border-radius: 10px !important;
    object-fit: contain !important;
}

.category-frank p,
.category-mugishi p {
    margin: 0.6em 0;      /* 行と行の塊の間は詰める */
    line-height: 1.9;     /* 行間をしっかり広げて読みやすく */
    font-size: 1rem;      /* 必要なら微調整 */
}















@media (min-width: 900px) {
  .masonry {
    column-count: 3;
  }
}

.dog-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding-bottom: 15px;
}

.dog-item img {
  width: 100%;
  display: block;
}

.dog-item h3 {
  font-size: 1.2em;
  margin: 10px 15px 5px;
}

.dog-item p {
  margin: 0 15px 10px;
  color: #444;
  font-size: 0.9em;
}

/* --- 丸アイコン（tag-menuと同じ世界観） ここまで　--- */

/* Link page base */
.link-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}



/* Profile icon */
.link-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
    display: inline-block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}




/* Lead text */
.link-lead {
  font-size: 14px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Link cards */
.link-main .link-card {
  display: block;
  background: #fff;
  padding: 18px 20px;
  margin-bottom: 15px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.link-card:hover {
  background: #f2f2f2;
}

/* SNS section title */
.sns-title {
  font-size: 16px;
  margin: 30px 0 12px;
  font-weight: 700;
}

/* SNS icons row */
.link-sns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

/* SNSアイコン共通のホバーアクション */
.sns-icon {
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.sns-icon:hover {
  transform: scale(1.15);
  opacity: 0.8;
}


/* 商品紹介 */
/* Items Page */
.items-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px;
}

.items-title {
  font-size: 28px;
  padding: 1.5em;
  text-align: center;
}

.items-lead {
  text-align: left;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* カード本体 */
.item-card {
  display: flex;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  border: 1px solid #eee;
  margin-bottom: 20px;
  align-items: flex-start;
}

.item-img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  display: block;
}

/* テキスト部分 */
.item-body {
  flex: 1;
}

.item-name {
  font-size: 20px;
  margin-bottom: 6px;
}

.item-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}

/* Amazonボタン */
.item-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
}

.item-btn.amazon {
  background: #FF9900;
}

.item-btn.amazon:hover {
  background: #e28900;
}

/* SNSアイコン最適化 */

  .fab-icons {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

    .fab-icon {
    width: 55px;
    height: 55px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }


.fab-wrapper {
  bottom: 80px; /* 少し上げると余裕が出る */
}

/* page-about画像調整 */
.about-row {
    display: flex;
    align-items: stretch; /* ← 高さを揃える */
    gap: 20px;
}

/* 左カラム：フッターに向かって伸ばす */
.about-picture {
    position: relative;
    flex: 0 0 35%;
    display: flex;
    align-items: flex-end;  /* ← 子供を下揃え */
    padding-bottom: 30px;   /* ← フッターに被らない安全領域 */
}

/* アバター画像を親の下に固定 */
.about-picture img {
    position: absolute;
    bottom: 0;
    left: 0;        /* ← 左端に揃える！ */
    transform: none;
    width: 85%;     /* ※必要に応じて調整 */
    height: auto;
    display: block;
}




/* 右：文章エリア */
.about-text {
    flex: 1;   /* ← 右側は残り幅全部を自然に吸収 */
    min-width: 300px;
}

.page-id-5 .dog_name {
  text-align: center;
  padding: 1em;
}

/* フッター最下部対策 */
html, body {
    height: 100%;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* ============================
   モーダル：初期状態は非表示
============================ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}


/* モーダル内の画像 */
.modal-content {
  max-width: 90%;
  height: auto;
}


/* 閉じるボタン（×） */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
/* ============================
   モーダル：ここまで　フッターのゴミ対策
============================ */

/* Items ページ専用の画像サイズ修正 */
.items-page .item-img {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain !important;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}




/* ===============================
   PC右側 SNSアイコン復旧（影・色・ホバー）
   =============================== */
.pc-sns-bar .sns-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,0.28) !important; /* ← ガラス玉の黒背景に戻す */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* hover（PCだけ） */
.pc-sns-bar .sns-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* --- 各アイコン画像の指定 --- */
.pc-sns-bar .sns-icon.insta {
    background-image: url('/wp-content/themes/portfolio/img/insta.png');
}

.pc-sns-bar .sns-icon.youtube {
    background-image: url('/wp-content/themes/portfolio/img/youtube_2.png');
}

.pc-sns-bar .sns-icon.tiktok {
    background-image: url('/wp-content/themes/portfolio/img/tiktok.png');
}

/* ============================================
   linkページ SNSアイコンを PC版と完全同じに統一
   ============================================ */
.link-sns .sns-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;

    /* PCと同じ黒ガラス玉 */
    background-color: rgba(0,0,0,0.28) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    /* 影（PCと同じ） */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform .25s ease, box-shadow .25s ease;
}

/* linkページ　hover（PCと同じ拡大アニメ） */
.link-sns .sns-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* linkページ　アイコン画像の指定（PCと同じ） */
.link-sns .sns-icon.insta {
    background-image: url('/wp-content/themes/portfolio/img/insta.png');
}
.link-sns .sns-icon.youtube {
    background-image: url('/wp-content/themes/portfolio/img/youtube_2.png');
}
.link-sns .sns-icon.tiktok {
    background-image: url('/wp-content/themes/portfolio/img/tiktok.png');
}


/* Linkページだけ FAB を非表示 */
body.page-template-page-link .fab-menu,
body.page-template-page-link .fab-icons,
body.page-template-page-link .fab-btn,
body.page-template-page-link #fab-toggle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ----- カテゴリーレイアウト安定化 ----- */
.main-layout {
  display: flex;
  justify-content: center;
  gap: 40px; 
  max-width: 1200px;
  margin: 0 auto;
  width:100%;
}

/* 左側（動画エリア） */
.main-content-cat-video {
  flex: 0 0 700px; 
}

/* 右のサイドバー */
.category_sidebar {
  flex: 0 0 300px;   /* ← 幅を固定 */
}

/* ビデオにそれぞれタイトル */
.tag-title {
  padding: 1em 0 0.5em 0;
  text-align: center;
  font-family: "Winky Rough", "M PLUS Rounded 1c", sans-serif;
  font-weight: bold;
  font-size: 1.5em;
}

/* ourdogsの犬名前の左ボタン */

.play-button .triangle {
  width: 28px;
  height: 28px;
}
.dog_name .play-button span:last-child {
  font-size: 2rem !important;
}

/* インスタ埋め込み */
/* Instagram埋め込みの横伸びを完全固定 */
.wp-block-html,
.wp-block-embed,
.instagram-media,
.instagram-media-rendered {
    max-width: 300px !important;
    margin: 0 auto !important;
    width: auto;
    display: block !important;
}

/* iframe 自体も強制固定 */


.igwrap {
    max-width: 330px !important;
    margin: 0 auto !important;
}

.igwrap iframe {
    max-width: 330px !important;
    width: 330px !important;
    margin: 0 auto !important;
}

.instagram-media {
    max-width: 330px !important;
    margin: 0 auto !important;
}

/* photoだけヘッダーが下に落ちる件 */
.category-photo-page, 
.category-photo-page .main-content-cat {
  padding-bottom: 4em;
}

/* 今見てる月をサイドバーでハイライト */
.popular-series .month-list li.current-month a {
  background: #eee !important;
  font-weight: bold !important;
  /* border-radius: 6px; */
  /* padding: 6px 10px !important; */
  color: #999 !important;
  display: block;
    /* border-radius: 8px; */
  padding: 8px 12px !important;
  box-shadow: none !important;
}

/* current-month の枠線完全削除 */
.popular-series .month-list li.current-month,
.popular-series .month-list li.current-month a {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* li 自体の枠線削除（白い線の正体はこっちの可能性が高い） */
.popular-series .month-list li {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 親の枠線・影も削除 */
.popular-series .month-list {
  border: none !important;
  box-shadow: none !important;
}
/* アーカイブ＋− */
/* ▼ アーカイブ年ボタン：プラス／マイナス */
/* ▼ 左に「＋2025年」形式で表示する */
.year-toggle {
  position: relative;
  padding-left: 1.8em; /* ← ここで左の余白を作る */
}

/* 初期状態：＋ */
/* 年のボタン全体 */
.year-toggle {
  position: relative;
  padding-left: 2.6em; /* 左に余白をしっかり確保 */
  font-size: 16px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* 左の四角で囲った＋／− 部分 */
.year-toggle::before {
  content: "＋";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  /* border: 0.3px solid #555; */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  background: #999;
  pointer-events: none;
}

/* 開いているとき（−） */
.year-toggle.open::before {
  content: "−";
}

/* 分章区切り線 */
.post-divider {
  border: none;
  border-bottom: 1px solid #eee;
  margin: 1em 0; 
  /* <hr class="post-divider">
をWordPressに追記 */
}













/* PC向け（画面が768px以上のとき） */
@media screen and (min-width: 1025px) {
  .post-video-content iframe {
    max-height: 600px !important; /* ←コレも */
  }

  /* youtube左右余白除去 */
 .wp-block-embed-youtube {
    max-width: 360px;
  }

  /* photoタイトル位置 */
    .photo-text figcaption {
    min-height: 3em; /* ← PC用にちょっと余裕を持たせる */
  }

  /* サイドバープロフィール */

    .sidebar-profile-box {
    width: 260px;
    margin: 25px auto 0;
    text-align: center;
  }

  /* SNS追従ボタン */
    .pc-sns-bar {
    position: fixed;
    top: 40%;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
  }

  .sns-icon {
    width: 55px;
    height: 55px;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 50%;
    cursor: pointer;
  }

  /* 個別アイコン */
  .sns-icon.insta {
    background-image: url('./img/insta.png');
  }

  .sns-icon.youtube {
    background-image: url('./img/youtube_2.png');
  }

  .sns-icon.tiktok {
    background-image: url('./img/tiktok.png');
  }

  .sns-icon.litlink {
    background-image: url('./img/litlink.png');
  }

  

  /* スマホプラスボタンを非表示 */
  .fab-menu {
    display: none;
  }

  .page-id-5 .dog_name {
  text-align: left;
  padding: 1em 0;
}

}




@media (max-width: 1024px) {
  .hamburger {
    display: block;
    margin: 0 1em 0 auto;
    z-index: 1001;
  }

    .container {
    display:block;
    }

.main {
  width:100%;
  margin-top:1em;

}

.container {
  flex:none;
}

.picture
{
  width:100%;
  text-align: center;
}

.comment
{
  width:100%;
  text-align: left;
  padding:0 1em 0 1em;

}

.photo-item {
  width:100%;
}

  .photo-item::after {
    opacity: 1; /* スマホは常にアイコン表示 */
  }

.only-desktop {
  display:none;
}

.dog_frank,
.dog_mugi {
  font-size: clamp(2rem, 10vw, 8rem);
}

/* ２パターンの左右逆転をやめる */
  .dog-row,
  .dog-row.reverse {
    flex-direction: column;
    gap: 1em;
  }

.category_sidebar {
    flex:none;
}
.main-content-cat {
      flex:none;
}

 .main-layout {
    display: block !important;  /* flexやめる：サイドバーを下に */
    padding: 1em 0.5em;
  }
  .category_sidebar {
    margin-top: 2em;
  }
  .post-video-content iframe {
    max-height: 90vh; /* スマホでは画面の90%まで */
  }

    /* インスタ風写真 */
  .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;
  }

  .our-dogs-wrapper h1{
    padding: 2em 0 1em 0;
    font-size: 1.5em;
}




   .dog-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .dog-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.8rem 1rem;
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    height: 150px;
  }

 
  
  .our-dogs-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

  /* ヘッダー高さを詰める */
  .header_bar {
    padding: 0.3em 1em;
  }

  .site-title {
    font-size: 1.2rem;
    margin-left: 0.5em;
  }


  /* ハンバーガーメニュー展開時のリンク間隔を詰める */
  .nav-menu {
    display: none;
  }

  .mobile-menu {
    display: none;
    background: white;
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    z-index: 999;
    text-align: center;
    border-top: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

 

    /* スマホでは通常メニューを非表示 */
  .nav-menu {
    display: none;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
    margin: 0 1em 0 auto;
    z-index: 1001;
    font-size: 2rem;
    cursor: pointer;
  }

  /* モバイルメニューの初期状態 */
  .mobile-menu {
    display: none;
    background: white;
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    z-index: 999;
    text-align: center;
    border-top: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      font-family: "Winky Rough", sans-serif;

  }

.mobile-menu a {
      text-decoration: none;
}

  .mobile-menu ul li {
    display: flex !important;
    align-items: center !important;
    gap: 8px; /* 絵文字と文字の間 */
  }

  .mobile-menu ul li span,
  .mobile-menu ul li a {
    display: inline-flex !important;
    align-items: center;
  }



  /* JSで .active が付いたら表示 */
  .mobile-menu.active {
    display: block;
  }
  
.dog_about_name {

  padding-top: 5em;
}

/* フランク投稿 */
  .post-list-layout .post-summary {
    display: block;
  }
.post-list-layout .post-thumbnail {
  text-align: center;
}

.post-list-layout .post-thumbnail img {
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

  /* 親の左右にちょい余白を持たせる */
  .main-layout {
    padding: 1rem 0.75rem !important;
  }

  /* サイドバーをスマホで“カード”っぽく強制 */
  .category_sidebar {
    width: 100%;
    box-sizing: border-box;
    background: #f0f0f0;                /* グレー面をハッキリ */
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 1.2rem 1rem;
    margin: 1rem 0.25rem 2rem;          /* 上右左下の順（左右に余白） */
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
  }

  /* 見出しとリストの間延びを微調整 */
  .category_sidebar h2 {
    font-size: 1.1rem;
    margin: 0 0 .75rem;
    padding: 0;
  }
  .category_sidebar ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
  }
  .category_sidebar li {
    margin: .75rem 0;
  }

  /* 人気シリーズのリンクを“押しやすいボタン”に */
  .popular-series a {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: .6rem .8rem;
    font-size: .95rem;
  }
  .popular-series a:hover {
    background: #333;
    color: #fff;
  }

/* 犬紹介の画像 */
.page-thumbnail {
  font-size: 1.1rem;
  background: #fff;
  /* border: 1px solid #ccc; */
  border-radius: 12px;
  padding: 1.2em;
  width:100%;
  /* 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;
}

.category-frank h4 {
  text-align: center;
}

/* サムネ拡大 */
  .image-wrapper {
    max-width: 100% !important; /* ← ここ大事 */
  }
  .popup-image {
    width: 100% !important;
    max-width: 100% !important;
  }

    /* --- mobile submenu --- */
 
 /* ===== モバイルメニュー開閉・見た目調整 ===== */
.mobile-menu {
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #f3f3f3;
}

.mobile-menu a,
.mobile-menu .submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.2em;
  text-decoration: none;
  color: #222;
  background: #fff;
  transition: background 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu .submenu-toggle:hover {
  background: #fafafa;
}

/* ▼アイコン */
.mobile-menu .submenu-toggle::after {
  content: "▼";
  font-size: 0.8em;
  color: #999;
  transition: transform 0.2s ease;
}

.mobile-menu .has-submenu.open > .submenu-toggle::after {
  transform: rotate(180deg);
}

/* サブメニュー本体 */
.mobile-menu .submenu {
  display: none;
  background: #f9f9f9;
  border-left: 3px solid #eee;
}

.mobile-menu .has-submenu.open > .submenu {
  display: block;
  animation: slideDown 0.25s ease forwards;
}

.mobile-menu .submenu li a {
  font-size: 0.9rem;
  padding: 0.8em 2em;
  color: #333;
}

/* スライド展開アニメーション */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

 /* ===== モバイルメニュー見た目調整 ===== */
  .mobile-menu .submenu li a {
    background: none;
    border: none;
    padding: 0.6em 2em;
    color: #444;
    font-size: 0.95rem;
  }

  .mobile-menu .submenu li a:hover {
    background: #eee;
    border-radius: 6px;
  }

  .mobile-menu .submenu {
    background: #fafafa;
    border-left: 3px solid #ddd;
    margin: 0.3em 0 0.8em;
    padding: 0.3em 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  }

  .mobile-menu .submenu-toggle {
    font-weight: bold;
    background: #fff;
    border-radius: 8px;
    margin-top: 0.3em;
  }

  .mobile-menu .submenu-toggle:hover {
    background: #f5f5f5;
  }

    .photo-gallery {
    gap: 0; /* ← これで上下左右の余白をゼロに */
  }

  .photo-gallery .post-item {
    width: 100%;
    max-width: 420px; /* 好みで調整 */
    margin: 0 auto 2em; /* 下だけスペースを残すならここ */
  }

    .category-photo .main-content {
    padding-top: 1.5em; /* ← 上にゆとりを出す */
  }

  .category-photo .main-content h1 {
    font-size: 1.6rem; /* ← タイトルを少し小さめに */
    margin-bottom: 0.4em;
  }

  .category-photo .main-content > p {
    font-size: 0.95rem; /* ← 少し読みやすく */
    line-height: 1.8;
    margin-bottom: 1.8em; /* ← ギャラリーとの距離を確保 */
  }

  /* === 横スクロール完全封印パッチ（犬ブログ用）=== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

.container, .main, .main-layout, .photo-gallery, .post-item, .dogs-header-image {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* スマホ時にmax-width:420pxを上書き */
.photo-gallery .post-item {
  max-width: 100% !important;
}

/* 画像も確実に縮むように */
img, video, iframe {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* flex系はみ出し防止 */
.container, .dog-grid, .dog-row, .main-layout {
  flex-wrap: wrap !important;
  overflow-x: hidden !important;
}

/* 犬たちについてのPCだけを狭める */
  .main-layout-ourdogs {
    display: block !important;
    padding: 1rem 0.75rem !important;
    max-width: 100% !important;
  }

  /* サイドバープロフィール */
     .sidebar-profile-box {
    width: 90%;
    margin: 25px auto;
    text-align: center !important;
  }

  .sidebar-profile-box .author-profile {
    margin: 0 auto;      /* ← 横中央 */
    text-align: center;
  }

  .sidebar-profile-box img.dog-menu-icon {
    margin: 0 auto 10px !important;
    display: block !important;
  }

  .sidebar-profile-box .author-name {
    text-align: center;
  }

  /* ★ スマホ時のphoto一覧の画像サイズ調整（拡大なし仕様） */

  body.category-photo .post-item img.popup-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* カード内の余白も整える */
  body.category-photo .post-item .image-wrapper {
    width: 100%;
    height: auto !important;
  }

  /* ourdogs丸アイコン */
  .page-dog-tag-menu {
    display: block !important;
    text-align: center;
  }

  .page-dog-tag-menu a {
    display: block;
    margin: 0 auto 20px;
  }

    .page-dog-tag-menu img {
    margin-left: auto;
    margin-right: auto;
    display: block;
      width: 300px;
     height: 300px;
  }


.page-dog-tag-menu h2 {
  font-size: 1.2em;
  padding-bottom: 4em;
  text-align: center;
}

.top-text {
  width: 100%;
  text-align: center;
}

  .fab-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
  }

  .fab-btn {
    width: 60px;
    height: 60px;
    background: #ff6699;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
  }

.fab-icons {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;             /* ← ここを0に戻す */
  pointer-events: none;   /* これはそのままでOK */
  transition: 0.3s;
}


  #fab-toggle {
    display: none;
  }


  #fab-toggle:checked ~ .fab-icons {
    opacity: 1;
    pointer-events: auto;
  }

  .fab-icon {
    width: 55px;
    height: 55px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }

  /* ▼ ここに N の透過アイコン画像を設定する ▼ */
  .fab-icon.insta { background-image: url('./img/insta.png'); }
  .fab-icon.yt    { background-image: url('./img/youtube_2.png'); }
  .fab-icon.tt    { background-image: url('./img/tiktok.png'); }
  .fab-icon.link  { background-image: url('./img/litlink.png'); }


/* PC追従SNSをスマホで非表示 */

  .pc-sns-bar {
    display: none;
  }

/* 商品紹介 */
  .item-card {
    flex-direction: column;
    text-align: center;
  }

  .item-img {
    width: 100%;
    height: 200px;
  }

  /* me aboutを調整 */


  /* 右：テキストエリア */
  .about-text {
      flex: 0 0 100%;
      max-width: 100%;
      margin-top: 1rem;
  }


  .about-picture img {
      position: static !important;
      width: 40%;
      transform: none !important;
      margin: 0 auto;
      display: block;
  }

  .about-picture {
      position: static !important;
      padding-bottom: 0 !important;
      min-height: auto !important;
  }

  .about-row {
      flex-direction: column;
      align-items: center;
  }


  /* アイコン共通：白ベース ＋ 薄め */
.fab-icon {
  background-color: transparent;          /* ← 白丸の背景を消す */
  border: 1px solid rgba(255,255,255,0.6); /* ← 白の外周ラインで視認性UP（黒じゃなく上品に） */
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);   /* ← 影で立体感、PNGが生きる */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}



  .fab-icon.insta { background-image: url('./img/insta_white.png'); }
  .fab-icon.yt    { background-image: url('./img/youtube_white.png'); }
  .fab-icon.tt    { background-image: url('./img/tiktok_white.png'); }
  .fab-icon.link  { background-image: url('./img/litlink_white.png'); }

/* 投稿区切り間隔 */
    .dog-post {
        padding-bottom: 3em;
        margin-bottom: 3em;
    }


.category-frank .dog-post img,
.category-mugishi .dog-post img {
    width: 95% !important;
}

.dog-post p {
    width: 95%;
    margin: 0 auto 1.5em;
}






}
