/*
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: center;
  width:100vw;
  height:auto;
  color: #222;
  font-family: "Winky Rough", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: 0.05em; /* ← ちょい広げ */
  display: flex;
  align-items: flex-end;   /* ← 下寄せ */
  gap: 0.5em;              /* アイコンとの間 */

}



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

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

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




/* ２パターン左右逆転 */
.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.5em;
  color: #222;
  text-decoration: none;
  font-size: 1em;
}

.play-button .triangle {
  width: 2em;
  height: 2em;
  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(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 0.6em solid #333;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
}

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


/* === 通常カード型（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;
}

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

.main-content-cat {
  /* margin-bottom: 100px; */
  width:100%;
  height:auto;
}

.main-layout-dog {
  padding-top:3em;
    /* display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  justify-content: space-between;
  max-width: 1300px; */
}



.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 1 33.33%;
  min-width: 0;
  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;
}



/* 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:0 1em 0 1em;
}

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:2em 0 2em 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: 1em;
  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: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.8em;
}

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

/* 犬aboutページのサムネイル */
.page-thumbnail img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-thumbnail {
  font-size: 1.1rem;
  background: #fff;
  /* border: 1px solid #ccc; */
  border-radius: 12px;
  padding: 1.2em;
  width: calc(40% - 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;
}

.page-thumbnail img {
  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;
  }







 











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

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

}



@media (max-width: 1023px) {
  .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: 2.5em 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;
  }

  /* .dog-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
  }

  .dog-left img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  .dog-left p {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    text-align: center;
  }

  .dog-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
  }

  .dog-right a {
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    text-decoration: none;
    
  } */
  
  .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;
}

  /* 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;
  }

}