/*
  Theme Name:   YURURI
  Theme URI:    https://thewppress.com/theme/how-to-create-the-basic-wordpress-theme/
  Description:  YURURI theme
  Author:       Rena Hirayabu
  Author URI:   thewppress.com
  Version:      1.0
*/

* {
  margin: 0;
  padding: 0;
 }
 
 html,
 body {
   height: 100%;
   margin: 0;
 }
 
 html {
   font-size: 100%;
   scroll-padding-top: 100px;
 }
 
 body {
   color: #515151;
   font-family: "M PLUS Rounded 1c", sans-serif;
   font-weight: 400;
   font-style: normal; 
   padding-top: 70px;
 }
 
 a {
   text-decoration: none;
 }
 
 img {
   max-width: 100%;
   vertical-align: bottom;
   object-fit: cover;
   height: auto;
 }
 
 li {
   list-style: none;
 }
 
 p {
   line-height:30px;
 }
 small {
   font-size: 9px;
 }

 .underline {
  text-decoration: underline;
}
 .wrapper {
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 4%;
}
.subtitle{
  font-family: "Caveat";
  font-size: 20px;
  font-weight: normal;
  text-align: center;
  margin-bottom: 7px;
  color: #CCA771;
}

.sec-title{
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 10px;
}


.btn{
  color: #ffffff;
  font-size: 16px;
  display: inline-block;
  padding: 15px 45px 15px 30px; /* ←右に余白追加 */
  text-align: center;
  position: relative;
  background-color: #2B85A1;
  width: 220px;
  border-radius: 1000px; 
  transition: 0.3s ease; 
}

/* 白い丸 */
.btn::before{
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
}

/* 緑の三角矢印 */
.btn::after{
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #2B85A1; 
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.btn:hover{
  transform: scale(1.03); 
}

.btn-white{
  color: #2B85A1;
  font-size: 16px;
  display: block;
  padding: 15px 40px;
  text-align: center;
  position: relative;
  background-color: #ffffff;
  width: 220px;
  border-radius: 1000px; 
  border: 1px solid #2B85A1;
}

/* デフォルト：PC表示 */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* スマホ表示時（767px以下） */
@media screen and (max-width: 860px) {
  .pc-only {
    display: none!important;
  }

  .sp-only {
    display: block;
  }
}

/* ヘッダー */
#header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff; 

}

.logo img {
  max-height: 85px;
  width: auto; 
}

.container {
  max-width: 1200px;
  margin: auto;
}
.headerWrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:0 10px ;
  position: relative;
  z-index: 1;
  padding-left: 2rem;
  height: 100px;
}
 nav{
  display: flex;
  gap: 20px;
  justify-content: end;
 }

 .nav-ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-ul li a,
.menu-about {
  text-decoration: none;
  color: #333;
  border-bottom: 2px solid transparent;
  padding-top: 5px;
  padding-bottom: 5px;
  transition: border-color 0.3s ease;
  font-weight: bold;
  font-size: 14px;
}

.nav-ul li a:hover,
.nav-ul li a.active,
.menu-about:hover,
.menu-about:active{
  border-bottom: 2px solid #CCA771; 
}

li {
  display: list-item;
  text-align: -webkit-match-parent;
}

li a {
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.nav-ul li:last-child a {
  color: #ffffff;
  font-size: 14px;
  display: block;
  padding: 15px 40px;
  text-align: center;
  position: relative;
  background-color: #2B85A1;
  width: 150px;
  border-radius: 1000px;
  transition: 0.3s ease; 
}

.nav-ul li:last-child a:hover,
.nav-ul li:last-child a.active {
  border-bottom: none;
  transform: scale(1.03); 
}

.menu-item-has-children {
  position: relative;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px 0;
  width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.menu-dropdown div {
  padding: 10px;
}
.menu-dropdown a {
  display: block;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}
.menu-dropdown a:hover {
  background: #f5f5f5;
}
.menu-item-has-children:hover .menu-dropdown {
  display: block;
}

@media (max-width: 768px) {
  .menu-dropdown {
    left: 50%;
  transform: translateX(-50%);
  }
 
}

.hamburger-menu {
  display: none;
  width: 50px;
  height: 50px;
  position: relative;
  border: none;
  background: transparent;
  appearance: none;
  padding: 0;
  cursor: pointer;
}

.hamburger-menu__bar {
  display: block;
  width: 24px;          
  height: 2px;
  background: #000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s;
  transform-origin: center center;  
  z-index: 100;
}

.hamburger-menu--open .hamburger-menu__bar:first-child {
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.hamburger-menu--open .hamburger-menu__bar:nth-child(2) {
  display: none;
}

.hamburger-menu--open .hamburger-menu__bar:last-child {
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.hamburger-menu__bar:first-child {
  top: 8px; 
}

.hamburger-menu__bar:nth-child(2) {
  top: 16px;
}

.hamburger-menu__bar:last-child {
  top: 24px;
}

/* メインビジュアルセクション */

#mainvisual {
  width: 100%;
  padding: 0 4%;
  box-sizing: border-box;
  margin-top: 30px;
}

.img-frame {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

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

.img-01 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}


.pc-news {
  position: absolute;
  bottom: 0;
  right:  0;
  background-color: #ffffff;
  padding: 10px 50px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  height: 90px;
  display: flex;
  align-items:center;
  justify-content: space-between;
}

.news-inner{
  display: flex;
}

.news-right{
  justify-content: center;
}

.news-bottom{
 justify-content: center;
 margin: 50px 0;
}

.news-title {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  padding-bottom: 15px; 
  padding-right: 20px;
  border-right: 0.5px solid #2B85A1;
}

.news-subtitle{
  font-family: "Caveat";
  font-size: 15px;
  color: #CCA771;
}

.news-sec-title{
  font-size: 15px;
}


.news-date {
  display: flex;
  flex-direction: column; 
  align-items: left; 
  margin-left: 20px;
  padding-top: 10px; 
}

.news-date .time {
  font-size: 13px;
  margin-right: 10px; 
}

.news-date .title {
  font-weight: bold;
  font-size: 16px;

}

.view-all-news {
  font-size: 12px;
  text-decoration: none;
  margin-top: 30px; 
  color: #000;
  margin-left: 15px;
  display: block;
  width: fit-content;
}

.view-all-news a{
  color: #000;
}


/* コンセプトセクション */
#concept{
  margin-top: 100px;
  margin-bottom: 120px;
}

.concept-container {
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 20px;
  max-width: 1200px; 
  margin: 0 auto; 
}

.concept-container img {
  max-width: 500px; 
  height: auto; 
  border-radius: 10px; 
}


.concept-text {
  flex: 1; 
  line-height: 1.5;
  margin-left: 50px;
}

.concept-subtitle{
  font-family: "Caveat";
  font-weight: normal;
  text-align: left;
  margin-bottom: 10px;
  color: #CCA771;
  font-size: 20px;
}
.concept-sec-title{
  font-size: 24px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 15px;
}

.concept-blue-title{
  font-size: 20px;
  text-align: left;
  margin-bottom: 15px;
  color: #2B85A1;
}

#concept .btn{
  margin-top: 70px;
  float: right;
}

/* ケアメニューセクション */
#menu{
  padding-bottom: 50px;
  margin-bottom: 65px;
  background-color: #F1E4DB;
}

#menu .subtitle{
  padding-top: 20px;
}

.slider-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  padding-top:  20px;
  padding-bottom:  50px;
  max-width: 1228px;
}

.slide {
  flex: 0 0 auto;
  max-width: 274px!important;
  border-radius: 30px;
  scroll-snap-align: start;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.slide img{
  border-radius: 20px 20px 0 0;
}

.slide {
  flex: 0 0 auto;
  max-width: 274px !important;
  border-radius: 30px;
  scroll-snap-align: start;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.menu-ul {
  display: flex;
  justify-content: flex-start; /* ã‚¢ã‚¤ãƒ†ãƒ ã‚’å·¦ã«å¯„ã›ã‚‹ */
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s ease-in-out; /* ã‚¹ãƒ ãƒ¼ã‚ºãªç§»å‹• */
}

.menu-li {
  list-style-type: none;
  margin-right: 20px; /* ã‚¢ã‚¤ãƒ†ãƒ é–“ã®éš™é–“ã‚’è¨­å®š */
  width: 274px!important;
  height: auto;
  display: inline-block;
  vertical-align: top;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  margin-bottom: 30px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  z-index: 100;
}

.menu-textbox {
    background-color: white;
    padding: 20px 15px 30px 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  color: #000;

}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
}

.menu-text {
    font-size: 14px;
    text-align: left;
}

#menu .btn{
  display: block;
  margin: 0 auto;
}


/* お問い合わせセクション */
#contact{
  margin-bottom: 130px;
  text-align: center;

}

.contact-detail{
  font-weight: 600;
  margin-bottom: 50px;
}.contact-wrapper ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center; 
  gap: 40px;
  flex-wrap: wrap; 
}

.contact-wrapper li {
  flex: 1 1 0; 
  max-width: 300px; 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.contact-img {
  width: 25vw;
  max-width: 115px;
  height: auto;
  margin-bottom: 20px;
}

.contact-title {
  color: #CCA771;
  font-size: clamp(16px, 2vw, 20px); 
  margin-bottom: 10px;
}

.contact-wrapper .btn,
.contact-wrapper .btn-white {
  display: inline-block;
  width: 100%;
  max-width: 245px;
  font-size: clamp(14px, 1.8vw, 16px);
  padding: 15px 25px;
}

.line-add-image {
  width: 30vw;
  max-width: 200px;
  height: auto;
  margin-top: 10px;
}


@media (max-width: 768px) {
  .contact-wrapper ul {
    flex-direction: column;
    align-items: center;
  }

  .contact-wrapper li {
    width: 100%;
    max-width: 300px;
  }
}


/* 診療時間セクション */

#time{
  margin-bottom: 130px;
}

.time-text{
 text-align: center;
}

.time-small{
  font-size: 14px;
}

/* アクセスセクション */
#access{
  margin-bottom: 200px;
}
.access-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
.access-container img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.access-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: left;
}

.access-text {
  max-width: 400px;
}

.access-text dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 0;
  border-bottom: 1px solid #CCA771;
}

.access-text dt, 
.access-text dd {
  padding: 30px;
}

.access-btn{
  margin-top: 30px;
}

.access-btn .btn{
  display: block;
  float: right;
  margin-top: 20px;
  width: 200px;
}

/* フッターセクション */
#footer{
 background-color: #FFF8E5;
}
.footerWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.footerNav {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footerNav ul {
  display: flex;
  list-style: none;
  padding: 0;
}

.footerNav li {
  margin: 0 10px;
  font-size: min(1.2vw, 14px);
  color: #000;
}

.footerNav a {
  text-decoration: none;
  color: #000;
  font-size: min(1.2vw, 14px);
}


.footerNav .menu-dropdown a{
  text-align: left;
}

.social {
  margin-bottom: 20px;
}

.social img {
  width: 30px;
  height: 30px;
}

.footer-logo{
  margin-right: 30px;
}

.copyright {
  font-size: 14px;
  color: #777;
  text-align: center;
}

@media screen and (max-width: 860px) {

  body {
    font-size: 14px;
   }
   
  p {
     line-height:25px;
   }

  main {
    margin: 0;
    width: 100%;
   }

   .sec-title {
    font-size: 21px;
   }

   #header {
    height: 80px;
    padding: 0;
  }

  .headerWrap{
    align-items: center;
    justify-content: space-between;
    padding:0 10px ;
  }
     
  .headerWrap img{
    flex-shrink: 0;
    width: 100px;
  }
  .menu--open .sp_menu {
    right: 0;
   }
  
  .sp_menu {
  display: block;
  background-color: #fff;
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 100;
  width: 100%;
  height: 100vh;
  font-size: 14px;
  }

  .sp_menu ul{
    flex-direction: column;
    padding-top: 200px;
   }

   .nav-ul {
    display: block;
    text-align: center;
    margin-top: 20px;
    height: auto;
    }
  
   .nav-ul li{
    padding-top: 15px;
   }

   .nav-ul li:last-child a {
    margin: 0 auto;
   }

   .menu--open .hamburger-menu__bar:first-child {
    top: 24px;
    }

  .hamburger-menu {
    display: block;  
    float: right;
    flex-shrink: 0;
    width: 27px;
    }

    /* メインビジュアルセクション */

    #mainvisual img {
      width: 100%;
      height: auto;
    }
  
    .latest-news {
      position: absolute;
      bottom: 10px;
      right: 0;
      padding: 10px 20px;
      width: 300px;
      height: auto;
    }
  
    
    .news-title {
      padding-bottom: 10px; 
      padding-right: 10px;
    }
    
    .news-subtitle{
      font-size: 12px;
    }
    
    .news-sec-title{
      font-size: 14px;
    }
    
    
    .news-date {
      display: flex;
      flex-direction: column;
      margin-left: 10px;
      padding-top: 5px; 
    }
    
    .news-date .time {
      font-size: 12px;
      margin-right: 10px; 
    }
    
    .news-date .title {
      font-size: 14px;
    }
    
    .view-all-news {
      font-size: 12px;
      text-decoration: none;
      margin-top: 30px; 
    }
    
  
    /* コンセプトセクション */

    #concept{
      margin-top: 0;
    }

    .concept-sec-title {
      font-size: 20px;
    }

    .concept-blue-title {
      font-size: 18px;
    }

    .concept-container {
      display: block; /* 横並びを解除 */
  }

  .concept-container img {
      display: block;
      margin: 0 auto 20px; /* 画像を中央揃え */
      width: 80%;
  }

  .concept-text {
    margin-left: 0;
  }

  #concept .btn {
    float: none; /* floatを解除 */
    display: block;
    margin: 30px auto 0; /* 上に少し余白を追加しつつ中央揃え */
    text-align: center;
}

/* メニューセクション */

#menu {
  padding-bottom: 30px;
}

#menu ul {
  display: flex;
  flex-wrap: nowrap; 
  overflow-x: auto;
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  gap: 10px; 
  margin-bottom: 30px;
}

#menu .menu-li {
  flex: 0 0 80%;
  max-width: 300px; 
  scroll-snap-align: center; 
  margin-bottom: 0;
}

#menu ul::-webkit-scrollbar {
  display: none; 
}

.slider-wrapper {
  margin: 20px 10px 30px 10px;
  padding-bottom: 30px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.slider {
  display: flex;
  transition: transform 0.4s ease;
  gap: 16px;
}

.slide {
  flex: 0 0 80%;
  box-sizing: border-box;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slide img {
  width: 100%;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.8);
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}
}

/* PCサイズ */
@media (min-width: 1024px) {
  .slider-container {
    overflow: visible;
  }

  .slider,
  .slider-wrapper {
    transform: none !important;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .slide {
    flex: 0 0 calc(25% - 12px);
  }

  .arrow {
    display: none;
  }
}


@media (max-width: 768px) {

  #time {
    margin-bottom: 100px;
}

.time-small{
  font-size: 12px;
}


  #access {
    margin-bottom: 100px;
}

  .access-container {
      flex-direction: column;
      text-align: center;
  }
  .access-text {
      text-align: left;
  }

  .access-btn{
    margin-top: 40px;
  }

  .access-btn .btn,
  .access-btn .btn-white {
    float: none; 
    display: block;
    margin: 20px auto 0; 
    text-align: center;
}


  #footer {
    padding-bottom: 60px;
  }
  .footerWrap {
      padding: 10px;
      text-align: center;
      display: block;
  }

  .footer-logo{
    margin-top: 20px;
    margin-right: 0;
  }

  .footerNav li {
      margin: 5px 0;
  }

  .footerNav ul li:not(:last-child) {
    display: none;
}

  .social img {
      width: 40px;
      height: 40px;
  }

}


/* プロフィールページ */
#profile{
  margin-top: 100px;
  margin-bottom: 120px;
}

.profile-flex {
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 20px;
  max-width: 1200px; 
  margin: 0 auto; 
}

.profile-flex img {
  max-width: 500px; 
  height: auto; 
  border-radius: 20px; 
}

.profile-text {
  flex: 1; 
  line-height: 1.5;
  margin-left: 50px;
}

.profile-text h2{
  margin-bottom: 10px;
}

.profile-text h3{
  margin-bottom: 20px;
  font-weight: 300;
}

.profile-container{
  max-width: 550px;
  margin: 0 auto;
}

.profile-item{
  margin-bottom: 80px;
}

.profile-item li{
  margin-bottom: 10px;
}

.profile-item h2{
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.profile-item h2::after {
  content: '';
  width: 70px;
  height: 2px;
  display: inline-block;
  background-color: #CCA771;
  position: absolute;
  bottom: -10px;
  left: calc(50% - 45px)
}

@media (max-width: 1024px) {

#profile{
  margin-top: 30px;
  margin-bottom: 60px;
}

.profile-flex {
  display: block;
}

.profile-flex img {
  width: 100%; 
}

.profile-text {
  margin-top: 20px;
  margin-left: 0px;
}

.profile-text h2{
  margin-bottom: 10px;
}

.profile-text h3{
  margin-bottom: 20px;
  font-weight: 300;
}

.profile-container{
  padding: 0 3%;
}

.profile-item{
  margin-bottom: 60px;
}

.profile-item li{
  margin-bottom: 10px;
}

}

/* コンセプトページ */
#about{
  margin-top: 100px;
  margin-bottom: 120px;
}

.about-container{
  max-width: 550px;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 120px;
}

.about-item{
  margin-bottom: 80px;
}

.about-item li{
  margin-bottom: 10px;
}

.about-item h2{
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.about-item h2::after {
  content: '';
  width: 70px;
  height: 2px;
  display: inline-block;
  background-color: #CCA771;
  position: absolute;
  bottom: -10px;
  left: calc(50% - 45px)
}

.about_item_text{
  text-align: center;
}


@media (max-width: 1024px) {

.about-container{
  margin-top: 60px;
  padding: 0 3%;
}
.about-item{
  margin-bottom: 60px;
}

.about-item li{
  margin-bottom: 10px;
}
}

/* ケアメニューページ */
.image-title-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.image-title-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.image-title-wrapper .menu-sec-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; /* 見やすくするために */
  font-size: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* 影で可読性アップ */
  margin: 0;
}


.care-inner{
  margin-top: 50px;
  margin-bottom: 120px;
}

.care-content {
  margin-bottom: 60px;
}
.care-sec-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2B85A1;
}
.care-intro{
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .image-title-wrapper {
    margin-top: 20px;
  }

  .image-title-wrapper .menu-sec-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* 見やすくするために */
    font-size: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* 影で可読性アップ */
    margin: 0;
  }

}

/* ニュース一覧ページ */

#blog-inner{
  max-width: 800px;
  margin: 0 auto;
}

.article{
  text-align: left;
}
.article-card {
  padding: 15px;
  border-bottom: 1px solid #ddd; 
}

.article-card:last-child {
  border-bottom: none;
}

.news-date-title {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.time {
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.detail-link {
  text-decoration: none; 
}

.detail-link:hover .title {
  color: #2B85A1; 
}

.pagination {
  display: flex;
  justify-content: center; 
  margin-top: 20px;
  margin-bottom: 50px;
  padding: 10px 0;
}

.pagination a, .pagination span {
  margin: 0 5px;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #333;
  text-decoration: none; /* 下線を消す */
  font-size: 16px;
}

.pagination .current {
  background-color: #2B85A1;
  color: white;
  border-color: #2B85A1;
  font-weight: bold;
}

.pagination .prev, .pagination .next {
  font-weight: bold;
}


/*ブログ個別ページ*/
.news {
  text-align: center;
}

.main-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 50px;
}

.main-container .title {
  margin-top: 10px;
  font-size: 24px;
}

.main-container img {
  margin: 30px 0 30px 0;
}

.main-container .next {
  margin-top: 30px;
  text-align: right;
}

.main-container .prev {
  text-align: right;
}

.blog-main {
  max-width: 900px;
  margin: 0 auto;
  padding-top:50px;
}


.category .article-title{
border-bottom: 2px dashed #2B85A1;
margin: 10px 0;
padding: 10px 0;
}

.category .article-title a{
  color: #000;
}


.meta {
  margin-bottom: 10px;
}
.wp-post-img{
  width: 100%;
  height: auto;
}
.catname{
  font-size: 13px;
  line-height: 1.5em;
  color: #1a1a1a;
  display: inline-block;
  word-break: break-word;
  padding: 6px 8px;
  margin-top: 10px;
  border-radius: 15px;
  text-decoration: none;
  background-color: #2B85A1;
}
.post-link {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}
.post-link a{
  background-color: #2B85A1;
  color: #fff;
  border-radius: 50px;
  padding: 1em 3.5em;
  display: inline-block;
  margin: 40px 10px;
  position: relative;
  font-weight: bold;
  transition: 0.3s;
}

.post-link a::before{
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
}

/* 前へ（左） */
.post-link .prev a{
  padding-left: 70px;
}

.post-link .prev a::before{
  left: 15px;
}

.post-link .prev a::after{
  content: "";
  position: absolute;
  left: 23px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 7px solid #2B85A1; /* 緑矢印 */
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* 次へ（右） */
.post-link .next a{
  padding-right: 70px;
}

.post-link .next a::before{
  right: 15px;
}

.post-link .next a::after{
  content: "";
  position: absolute;
  right: 23px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid #2B85A1; /* 緑矢印 */
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.post-link a:hover{
  transform: scale(1.05);
}

.blog-text{
  margin-top: 40px;
}

#ez-toc-container {
  margin-top: 60px!important;
  margin-bottom: 30px!important;
}

.blog-text h2 {
  position: relative;
  padding-left: 0;
  padding-bottom: 10px;
  border-top: none;
  border-bottom: none;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  background-color: transparent;
  margin: 20px 0;
}

.blog-text h3 {
  padding: 0.25em 0.5em;
  padding-left: 0;
  background: transparent;
  border-left: none;
  margin: 20px 0;
}

.blog-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.blog-text img {
  margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
 .blog-main {
  padding: 0%;
  margin: 0px;
  width: 100%;
 }


 article {
  margin: 40px 10px;
 }
 .post-link {
  width: 100%;
 }

 .post-link a {
  padding: 10px 12px;
  font-size: 12px;
 }
}


/* 関連記事 */
.related_post{
  width: auto;
  margin-bottom: 40px;
}
.related_post h3{
  font-size: 20px;
  font-weight: 600;
  border-left: 9px solid #2B85A1;
  text-align: justify;
  margin: 40px 0;
  padding: 0 15px;
  box-sizing: border-box;
}

.related_post_container li{
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(122, 122, 122, 0.1);
  margin-right: 5px;
  margin-right: 5px;
}
.related_post_container li:nth-child(4),
.related_post_container li:nth-child(8){
  margin-right: 0;
}
.related_post_container li:nth-child(n+1):nth-child(-n+4){
  margin-bottom: 10px;
}
.related_post_container a{
  display: flex;
  flex-direction: column;
  color: #1f1411;
}
.related_time{
  color: #515151;
  font-size: 13px;
}
.related_title{
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

/* レスポンシブ対応: 画面幅が768px以下で2列 */
@media (max-width: 768px){
  .related_post_container li{
      width: calc(50% - 10px); /* 2列 */
  }
}

/* レスポンシブ対応: 画面幅が550px以下で1列 */
@media (max-width: 550px){
  .related_post h3{
      font-size: 18px;
  }
  .related_post_container li{
      width: auto;
      margin-right: 0;
      margin-bottom: 10px;
      border: 1px solid #E8E8E8;
  }


 
  .related_post_container a{
      align-items: left;
  }
  .related_time{
    font-size: 12px;
  }

  .related_title{
    font-size: 14px;
  }
}


/* カテゴリーページ */
.category-content{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 100px;
}

.category .article-title{
  border: none;
  margin: 0!important;
  padding: 0;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  text-align: left;
  }
  
  .category .article-title a{
    color: #000;
    font-size:14px;
  }

.category .text{
  margin-top: 20px;
}

main .page-title {
  border-bottom: solid 1px #777;
  font-size: 1.75rem;
  padding-bottom: 10px;
  margin-bottom: 60px;
}

.each-article {
  text-align: left;
}

.readmore {
  font-size: 12px;
  text-align: right;
  color: #ddd;
}
.readmore a{
color: #696969!important;
}

@media screen and (max-width: 768px) {

  .each-article {
    width: 300px;
  }
  .category-content{
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
  }
}

/* 検索ページ */
.search{
  padding-left: 0;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin: 10px 0 30px 0;
}

/* スマホ固定メニュー */

#sp-fixed-menu {
  display: none;
}
@media (max-width: 768px) {

#sp-fixed-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  opacity: 0.95;
  display: flex;
  border: 2px solid #2B85A1; 
  background: #fff;
}

/* li横並び */
#sp-fixed-menu li {
  flex: 1;
  list-style: none;
}

/* 共通リンク */
#sp-fixed-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px; /* ←広めに */
  font-size: 14px;
  text-decoration: none;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}


/* 電話ボタン */
#sp-fixed-menu li:first-child a {
  background: #2B85A1;
  color: #fff;
}

#sp-fixed-menu li:first-child {
  background: #2B85A1;
}

/* LINEボタン */
#sp-fixed-menu .line {
  background: #fff;
  color: #2B85A1; /* ←緑文字 */
}

/* 区切り線 */
#sp-fixed-menu li + li {
  border-left: 1px solid #2B85A1;
}
}



/* プライバシーポリシー */
#main h1 {
  padding-top: 50px;
  margin-bottom: 30px;
  font-size: 30px;
  text-align: center;
}

#main h2 {
  margin: 30px 0 10px 0;
}

#main h3 {
  margin: 10px 0 10px 0;
}

#main h4 {
  margin: 10px 0 10px 0;
}

#main li {
  margin: 10px 0 10px 0;
}
.entry-content{
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}


/* コンタクトフォーム */
#cf7-area {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 20px;
  box-sizing: border-box;
}

.form-heading {
  margin-bottom: 50px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.cf7-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px; 
  flex-wrap: wrap; 
}

.cf7-q {
  flex: 0 0 35%;
  max-width: 150px;
  font-weight: bold;
  margin-left: 10px;
  box-sizing: border-box;
}

.cf7-q label {
  display: block;
}

.cf7-a {
  flex: 1 1 60%;
  box-sizing: border-box;
  max-width: 520px;
}

.cf7-a input[type="text"],
.cf7-a input[type="email"],
.cf7-a textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.cf7-a input[type="text"]:focus,
.cf7-a input[type="email"]:focus,
.cf7-a textarea:focus {
  border-color: #2B85A1;
  outline: none;
}

.cf7-a textarea {
  min-height: 120px;
  resize: vertical;
}

.cf7-req {
  font-size: 0.8em;
  padding: 3px 6px;
  background: #fff;
  color: #2B85A1;
  border: 1px solid #2B85A1;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.cf7-submit {
  text-align: center;
  margin-top: 30px;
}

.wpcf7 input.wpcf7-submit {
  background-color: #2B85A1;
  color: #fff;
  font-size: 1.1em;
  padding: 15px 40px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 250px;
  width: 100%;
  max-width: 250px;
  font-weight: bold;
  border-radius: 1000px;
}

.wpcf7 input.wpcf7-submit:hover {
  opacity: 80%;
}

.wpcf7-spinner {
  display: none !important;
}

@media (max-width: 480px) {

  #main h1{
    font-size: 24px;
    margin-bottom: 0;
  }

  .form-heading{
    font-size: 14px;
  }

  #cf7-area{
   margin: 0;
   padding: 0;
   width: 100%;
  }
  .cf7-item {
    flex-direction: column;
    align-items: stretch;
  }
  .cf7-q {
    margin-left: 0;
    margin-bottom: 6px;
    flex: none;
    max-width: none;
  }
  .cf7-a {
    flex: none;
  }

   #main h1 {
      padding-top: 20px;
      margin-bottom: 10px;
      font-size: 24px;
    }

}
 