/*
Theme Name: Sakaecho Pet Clinic
Theme URI: https://sakaecho-pc.net
Author: オフィスブラボー
Author URI: https://your-portfolio.example.com
Description: 栄町ペットクリニックの公式WordPressテーマ。清潔感と安心感を伝える1ページ構成。
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sakaecho-pet
*/
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap');
body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: #F2FDFF;
  color: #000;
  line-height: 2.14rem; /* 30px相当 */
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html, body {
  /*overflow-x: hidden;*/
}
.container {
  max-width: 850px;
  width: 100%; /* ←これ追加 */
  box-sizing: border-box; /* ← paddingを含む */
  margin: 0 auto;
}
section.container {
  margin-top: 110px !important;
}
/* セクションの幅を730pxに制限 */
#about, #guide, #access, #first, #trimming, #faq {
  max-width: 730px;
  margin: 0 auto;
}
section > h2, section > p {
  text-align: center;
}
h2 {
  color: #1E4A90;
  font-size: 1.875rem; /* 30px */
  font-weight: bold;
  margin-bottom: 1.875rem; /* 30px */
}
h3 {
  color: #1E4A90;
  font-size: 1.125rem; /* 18px */
  font-weight: bold;
  margin-top: 2rem;
}
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 850px;
  margin: 40px auto 0;
  padding: 0 20px;
  flex-wrap: wrap;
}
#header .logo {
  max-width: 490px;
  height: auto;
}
img.logo {
  max-width: 100%;
  height: auto;
}
#header .header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: bold;
  font-size: 1rem;
  color: #1E4A90;
  gap: 0.5rem;
}
nav.container {
  max-width: 730px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #1E4A90;
}
nav.container a {
  text-decoration: none;
  color: #1E4A90;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block; /* transformに必要 */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
nav.container a:hover {
  color: #D39200;
  background-color: rgba(211, 146, 0, 0.1);
  transform: translateY(-3px); /* ふわっと上へ */
}
.about-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 110px;
}
.about-image {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.circle-mask {
  width: 270px;
  height: 270px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.about-text {
  flex: 1;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.about-text h2 {
  margin-top: 0;
  font-size: 1.875rem; /* 30px */
  font-weight: bold;
  color: #1E4A90;
  margin-bottom: 1.875rem;
  text-align: left;
}
.about-text .director {
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
  color: #1E4A90;
}
.about-text ul {
  padding-left: 1.5rem;
}
.about-text li {
  font-size: 0.875rem; /* 14px */
  color: #000;
  line-height: 1.875rem; /* 30px */
}
.about-text p {
  font-size: 0.875rem; /* 14px */
  margin-top: 1rem;
  line-height: 1.875rem;
}
.about-text h3 {
  margin-bottom: 1rem;
}
.about-text ul {
  margin-top: 0;
}
.about-text h3 {
  margin-bottom: 0.4rem;
}
.about-text p {
  margin-top: 0;
}
.news-box {
  width: 100%;
  max-width: 730px;
  background-color: #fff;
  border: 1px solid #D3EDF0;
  border-radius: 14px;
  padding: 20px;
  margin: 0 auto 110px;
}
.news-box h3 {
  font-size: 1rem; /* 16px */
  font-weight: bold;
  color: #1E4A90;
  margin-bottom: 1.25rem; /* 20px */
}
.news-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-box li {
  font-size: 0.875rem; /* 14px */
  color: #000;
  margin-bottom: 0.5rem;
  word-break: break-word;
}
.info-box {
  max-width: 730px;
  background-color: #fff;
  border: 1px solid #D3EDF0;
  padding: 10px 20px;
  margin: 0 auto 110px;
  box-sizing: border-box;
  border-radius: 14px;
}
.faq-item {
  margin-bottom: 3rem;
}
.question {
  font-size: 1rem;
  font-weight: bold;
  color: #1E4A90;
  margin-bottom: 0.5rem;
}
.answer {
  font-size: 0.875rem;
  color: #000;
}
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: bold;
  position: relative;
  padding-left: 1.5em;
}
.checklist li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #D39200; /* ゴールド */
  font-weight: normal;
}
.note {
  font-size: 0.875rem;
  color: #000;
  margin-top: 1rem;
}
/* 診療案内の info-box 内の h3 と p を横並びにする */
.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.info-row h3 {
  flex: 0 0 200px;
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #1E4A90;
}
.info-row p {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  color: #000;
  line-height: 1.8;
}
#access table {
  width: 100%;
  border-collapse: collapse;
  color: #1E4A90;
}
#access table th, #access table td {
  border-bottom: 1px solid #C1C1C1;
  text-align: center;
  padding: 8px;
}
#access table th.left-align, #access table td.left-align {
  text-align: left;
}
#access .table-note {
  font-size: 0.75rem;
  color: #000;
  margin-top: 0.5rem;
  text-align: left;
}
#access a, #access .note {
  text-align: left;
  font-family: 'Zen Maru Gothic', sans-serif;
  display: block;
}
.trimming-flow {
  list-style: decimal;
  padding-left: 1.5rem;
}
.trimming-flow li {
  margin-bottom: 1.5rem;
}
.trimming-flow li strong {
  display: block;
  font-weight: bold;
  color: #1E4A90;
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0.25rem;
}
.trimming-flow li span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.8;
  margin-left: 0; /* インデントなし */
}
.header-info .tel {
  font-size: 2rem; /* 32pt相当 */
  font-weight: bold;
  color: #D39200; /* ゴールド */
}
#news h3 {
  font-size: 1rem;
  color: #D39200; /* ゴールド */
  font-weight: bold;
}
.handler-info dl {
  margin: 0;
}
.handler-info dt {
  font-weight: bold;
  float: left;
  width: 10rem; /* 左側の幅 */
  clear: both;
}
.handler-info dd {
  margin-left: 10rem; /* dtと同じ幅 */
  margin-bottom: 0.5rem;
}
section.container > h2 + p {
  font-size: 0.875rem; /* 14px */
  line-height: 1.875rem; /* 30px */
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#kv {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  height: auto; /* 一旦自動高さに */
  aspect-ratio: 850 / 373; /* モダンブラウザで比率固定 */
}
#kv img {
  width: 100%;
  height: auto;
  border-radius: 44px; /* 角丸指定 */
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
}
#kv img.active {
  opacity: 1;
  z-index: 1;
}
#kv {
  position: relative;
  overflow: hidden;
}
.info-box .info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.info-box .info-row h3 {
  flex: 0 0 9rem; /* タイトル幅固定 */
  font-size: 0.875rem;
  color: #1E4A90;
  margin: 0;
}
.info-box .info-row p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.875rem;
  margin: 0;
}
.handler-info {
  max-width: 500px !important;
  font-size: 0.875rem;
  margin: 0 auto 60px;
  padding: 20px;
  border: 1px solid #D3EDF0;
  background-color: #fff;
  border-radius: 14px;
  box-sizing: border-box;
}
section > p {
  text-align: center;
  font-size: 0.875rem; /* 14px */
  line-height: 1.875rem; /* 30px相当 */
  margin-bottom: 1.875rem; /* 下に30px間隔を確保 */
}
#access p {
  line-height: 1.875rem; /* 行間を約30pxに */
  font-size: 0.875rem; /* 14px相当 */
  margin: 0 0 0.5rem 0;
}
#access p.note {
  font-size: 0.75rem; /* 12px相当 */
  color: #000000; /* 必要なら明示 */
}
.info-box, .news-box {
  max-width: 730px;
  background-color: #fff;
  border: 1px solid #D3EDF0;
  padding: 1.875rem; /* 30px */
  margin: 0 auto 0;
  box-sizing: border-box;
  border-radius: 14px;
}
.info-box h3, .news-box h3 {
  font-size: 1rem; /* 16px相当 */
  font-weight: bold;
  color: #D39200; /* ゴールド指定 */
  margin: 1.875rem 0 0.5rem; /* 上下に30px程度の間隔 */
  line-height: 1.875rem; /* 行間も30px相当 */
}
/* 1つ目の h3 だけ margin-top を調整（上に余白を作りすぎない） */
.info-box h3:first-of-type, .news-box h3:first-of-type {
  margin-top: 0;
}
.info-box p {
  font-size: 0.875rem; /* 14px相当 */
  line-height: 1.875rem; /* 30px相当の行間 */
}
.faq-item .question, .faq-item .answer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.125rem; /* 18px */
  line-height: 1.875rem;
  margin-bottom: 1.5rem;
}
.faq-item .answer {
  font-weight: bold;
  color: #D39200;
}
.faq-item .label {
  flex-shrink: 0;
  font-weight: bold;
  width: 2rem; /* 固定幅で揃える */
  text-align: left;
}
.faq-item .text {
  flex: 1;
}
#guide > div > div > p {
  line-height: 1.5rem;
}
#first > div > h3 {
  margin-bottom: 0; /* 10px相当 */
}
#first > div > p {
  margin-top: 0;
  line-height: 1.5rem;
}
#access > p a {
  color: #1E4A90; /* 紺色 */
  font-weight: bold; /* 太字 */
  text-decoration: underline; /* アンダーライン */
  transition: color 0.3s ease;
}
#access > p a:hover {
  color: #D39200; /* ゴールド */
}
#access > p.note {
  line-height: 1.5rem;
}
#access > p:nth-child(6) {
  margin: 0;
}
.access-link {
  font-size: 1.0625rem; /* 約17px */
  font-weight: bold;
  color: #1E4A90;
  margin: 0;
}
.access-link a {
  color: #1E4A90;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}
.access-link a:hover {
  color: #D39200; /* ゴールド */
}
.about-text h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #1E4A90;
}
.dl-heading {
  font-weight: bold;
  font-size: 1.125rem; /* 18px相当 */
  margin-bottom: 1rem;
}
#kv {
  margin-top: 0 !important;
}
#news {
  margin-top: 50px !important;
}
.tel a {
  color: #D39200; /* ゴールド */
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
}
.tel a:hover {
  text-decoration: underline;
  color: #B37400; /* ゴールドの濃いめホバー色（任意） */
}
.address a {
  color: #1E4A90; /* 紺色 */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.address a:hover {
  color: #D39200; /* ゴールド */
  text-decoration: underline;
}
/* 初期状態：透明で少し下にズレて非表示 */
section.container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* 表示状態：透明→不透明、ズレ→通常位置 */
section.container.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.banner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.banner-item {
  background-color: #D3EDF0;
  color: #1E4A90;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 0.875rem;
  text-align: center;
  min-width: 100px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.banner-item img {
  height: 60px;        /* 統一された縦サイズ */
  width: auto;
  object-fit: contain;
  display: block;
}
.banner-item:hover {
  background-color: #D39200; /* ゴールド系に変化 */
  color: #fff;
  transform: translateY(-3px);
}
footer .logo {
  max-width: 300px; /* または必要に応じて調整 */
  height: auto;
  display: block;
  margin: 0 auto;
}
/* トップへ戻るボタン */
#back-to-top {
  background-color: #1E4A90;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
#back-to-top:hover {
  background-color: #D39200;
  transform: translateY(-3px);
}
footer {
  margin-top: 60px !important;
}
section.container {
  scroll-margin-top: 50px;
}
.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-director-image {
  margin-bottom: 1rem;
}

.sub-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sub-image-item {
  text-align: center;
  font-size: 0.875rem;
  color: #333;
}

.circle-small {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.sub-role {
  font-size: 0.75rem;
  color: #666;
}
/* アニメーション定義 
@keyframes rotate-clockwise {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes rotate-counterclockwise {
  0%, 100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}*/

/* ちゃちゃのアニメーション（時計回り） 
.sub-image-item.chacha img {
  animation: rotate-clockwise 2s infinite ease-in-out;
}*/

/* やまめのアニメーション（反時計回り） 
.sub-image-item.yamame img {
  animation: rotate-counterclockwise 2s infinite ease-in-out;
}*/
@keyframes hop {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(0);
  }
}
.hop {
  animation: hop 0.6s ease;
}


@media (max-width: 640px) {
  section.container {
    margin-top: 60px;
  }
  .container {
    padding: 0 20px;
  }
  #header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #header .header-info {
    align-items: center;
    margin-top: 10px;
  }
  img.logo {
    max-width: 80%; /* さらに余裕を持たせたい場合 */
  }
  #header .logo {
    max-width: 100%;
    height: auto;
  }
  .about-wrapper {
    flex-direction: column;
    margin-bottom: 60px;
  }
  .about-image {
    margin: 0 auto 30px;
  }
  .about-text h2 {
    text-align: left;
  }
  .news-box {
    margin-bottom: 60px;
  }
  .info-box {
    margin-bottom: 60px;
  }
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-row h3 {
    flex: none;
    margin-bottom: 0.5rem;
  }
  .info-row p {
    flex: none;
  }
  .handler-info dt, .handler-info dd {
    float: none;
    width: 100%;
    margin-left: 0;
  }
  .handler-info dd {
    margin-top: 0.25rem;
  }
  .info-box .info-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .info-box .info-row h3 {
    flex: none;
  }
  .info-box .info-row p {
    flex: none;
  }
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrapper table {
    min-width: 600px; /* 適宜調整可：テーブルの必要最低幅 */
  }
  .tel {
    margin-bottom: 50px;
  }
  #kv {
    padding: 0 20px;
    box-sizing: border-box;
  }
  #kv img {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 44px;
  }
  #kv img.active {
    display: block;
    animation: fade 1s ease-in-out;
  }
    #kv img {
        position: static;
  }
}
/* PC表示のみで表示 */
nav.pc-nav {
  max-width: 730px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #1E4A90;
}
.scroll-nav.visible {
  transform: translateY(0);
}
.scroll-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #1E4A90;
  text-align: center; /* 中央寄せ */
  padding: 0.5rem 0;
}
.scroll-nav a {
  display: inline-block; /* 中央寄せに必要 */
  margin: 0 0.75rem;
  color: #1E4A90;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.scroll-nav a:hover {
  color: #D39200;
}
/* SP表示用の表示切替 */
@media (max-width: 640px) {
  nav.pc-nav {
    display: none;
  }
}
/* 共通ボタンスタイル */
.menu-button {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1E4A90;
  z-index: 1001;
  cursor: pointer;
  display: none;
}
/* スマホナビ表示時に切り替え */
@media (max-width: 640px) {
  #menu-toggle {
    display: block;
  }
  /* メニューが開いたら☰は非表示、×は表示 */
  #main-nav.nav-visible ~ #menu-toggle {
    display: none;
  }
  #main-nav.nav-visible ~ #menu-close {
    display: block;
  }
  #menu-close {
    display: none;
  }
  /* スマホナビ表示用スタイル */
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 20px;
    background: #fff;
    border: 1px solid #D3EDF0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  .main-nav.nav-visible {
    display: flex;
  }
  .main-nav a {
    padding: 0.5rem 0;
    text-decoration: none;
    color: #1E4A90;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .main-nav a:hover {
    color: #D39200;
    transform: translateY(-2px);
  }
}
@media (max-width: 640px) {
  .handler-info dt, .handler-info dd {
    line-height: 1.4; /* お好みで調整可能 */
    margin-bottom: 0.25rem; /* 余白も小さめに */
  }
  .handler-info div {
    margin-bottom: 0.75rem; /* div間もやや狭く */
  }
  .handler-info dt, .handler-info dd {
    line-height: 1.4;
    margin-bottom: 0.25rem;
  }
  .handler-info div {
    margin-bottom: 1.25rem; /* div同士の間隔を広くする */
  }
}
@media (min-width: 641px) {
  #main-nav, #menu-toggle, #menu-close {
    display: none !important;
  }
}
/*CSSでボタンなどに調整追加を推奨：*/
.btn {
  display: inline-block;
  background: #1E4A90;
  color: #fff;
  padding: 0.75em 1.5em;
  text-decoration: none;
  border-radius: 0.5em;
  font-weight: bold;
}
.post-meta {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.post-thumbnail img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.post-navigation .prev-post, .post-navigation .next-post {
  width: 48%;
  font-size: 0.875rem;
}
.single-post h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.news-archive h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.news-item {
  margin-bottom: 1rem;
}
.news-date {
  display: inline-block;
  margin-right: 1rem;
  color: #888;
  font-size: 0.875rem;
}
.news-title {
  font-weight: bold;
  text-decoration: none;
  color: #1E4A90;
}
.pagination {
  margin: 2rem 0;
  text-align: center;
}
.back-to-home {
  text-align: center;
  margin-top: 2rem;
}
.btn {
  background: #1E4A90;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 0.5em;
  text-decoration: none;
  font-weight: bold;
}
.btn { display: inline-block; background: #1E4A90; color: #fff; padding: 0.75em 1.5em; text-decoration: none; border-radius: 0.5em; font-weight: bold; }
.post-meta { color: #666; font-size: 0.875rem; margin-bottom: 1rem; }
.post-thumbnail img { max-width: 100%; height: auto; margin: 1rem 0; }
.post-navigation { display: flex; justify-content: space-between; margin-top: 2rem; }
.post-navigation .prev-post, .post-navigation .next-post { width: 48%; font-size: 0.875rem; }
.single-post h1 { font-size: 2rem; margin-bottom: 1rem; }
.info-box { border: 1px solid #D3EDF0; padding: 2rem; margin: 2rem 0; background: #fff; border-radius: 8px; }
.breadcrumb { font-size: 0.875rem; margin-bottom: 1.5rem; }
.post-navigation a {
  color: #1E4A90;
  text-decoration: none;
  font-weight: bold;
}
