@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

.home .entry-title {
  display: none;
}

.footer .footer-site-logo-image {
  display: none !important;
}

.article h3 {
  position: relative;
  padding-left: 40px; 
  padding-bottom: 6px;
  margin: 1.5em 0 1em;
  border: none; 
  border-bottom: 1px solid #463029; 
  line-height: 1.4;
  font-weight: 600;
  color: #463029; 
}

.article h3::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('https://satoko-dogcatclinic.com/renewal/wp-content/uploads/2025/11/ic_dog.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.article h4::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('https://satoko-dogcatclinic.com/renewal/wp-content/uploads/2025/11/ic_page.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.article h4 {
  position: relative;
  padding-left: 28px;
  margin: 1.2em 0 0.8em;
  border: none;
  font-size: 1.2em;
  font-weight: 600;
  color: #463029;
  line-height: 1.5;
}

#main {
  background-color: #f5f5ec;
}

#sidebar {
  background-color: #f5f5ec;
}

#contents {
  background-color: #f5f5ec;
}

body {
  background-color: #f5f5ec;
}

.column4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
  margin: 30px 0;
}

.column4 a {
  flex: 1 1 calc(25% - 10px); 
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border: 1px solid #463029;
  border-radius: 8px;
  background-color: #f5f5ec;
  color: #463029;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.column4 a:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: #463029;
}

.column4 a img {
  width: 15px;
  height: auto;
}

@media screen and (max-width: 768px) {
  .column4 a {
    flex: 1 1 calc(50% - 10px);
  }
}

html {
  scroll-behavior: smooth;
}

.header-container .logo {
  margin-left: auto;
  margin-right: 0;
}

#footer {
  background-image: url("https://satoko-dogcatclinic.com/renewal/wp-content/uploads/2025/11/footer.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
}

#footer a,
#footer p,
#footer .footer-bottom {
  color: #fff !important;
}


.header-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#header {
  margin-bottom: 0 !important;
}

.main {
  padding-top: 0 !important;
}

.article .entry-title {
  margin-top: 10px !important;
}

.wp-block-column img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-column img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  justify-items: center;
  align-items: center;
  margin: 0 auto;
}

.gallery-grid .wp-block-image {
  margin: 0 !important;
  width: 100%;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
  border-radius: 8px;
}

.gallery-grid .wp-block-image img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.gallery-grid .wp-block-image:hover img {
  transform: scale(0.95); 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 600px) {
  .gallery-grid .wp-block-image:hover img {
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  }
}

.fixed-banner {
  position: fixed !important;
  z-index: 99999 !important;
  right: 20px !important;
  bottom: 20px !important;
  width: auto !important;
  display: inline-block !important;
}

@media screen and (max-width: 600px) {
  .fixed-banner {
    right: 10px !important;
    bottom: 100px !important;
  }

  .fixed-banner img {
    width: 80px !important;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  .slider-pc { display: none; }
}

@media (min-width: 768px) {
  .slider-sp { display: none; }
}


.sitemap h2,
.sitemap h3 {
  background: none !important; 
  color: #333;
  border-bottom: 1px solid #ddd; 
  padding: 0.3em 0;
  font-size: 1.1em; 
  font-weight: 600; 
}

.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery.has-nested-images figure.wp-block-image {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.mobile-footer-content .image-center {
  text-align: center; 
}

.mobile-footer-content .image-center img {
  display: block; 
  margin: 0 auto;
  max-width: 100%;
}

.sp-slider {
  display: none;
}

@media screen and (max-width: 768px) {
  .pc-slider {
    display: none;
  }
  .sp-slider {
    display: block;
  }
}

@media screen and (min-width: 1024px) {
  .header .logo.logo-image {
    display: flex;
    justify-content: center;
  }

  .header .logo.logo-image a {
    display: block;
  }

  .header .site-logo-image {
    display: block;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1024px) {
  .header .logo.logo-image {
    transform: translateX(-30px);
  }
}
