/* 共通リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  background-color: #fff;
  font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
}
.br{
	display: none;
}
@media (max-width: 700px){
	.br{
		display: block;
	}
}
/*オレンジの背景がスライドで伸びる動き*/
/* スライド用背景 */
.heading::before {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #F18B00;
  z-index: -1;
  transition: width 1s ease;
}
/* スライド方向 */
.heading.left-slide::before {
  left: 0;
}
.heading.right-slide::before {
  right: 0;
  left: auto;
}
/* アニメーション発動後 */
.heading.left-slide.active::before {
  width: 65%;
}
.heading.right-slide.active::before {
  width: 65%;
}
@media (max-width: 700px){
	/* アニメーション発動後 */
.heading.left-slide.active::before {
  width: 80%;
}
.heading.right-slide.active::before {
  width: 80%;
}
}

/* ▼▼ PCヘッダー ▼▼ */
.header-top {
  display: flex;
  background-color: #C1B29F;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 50px;
  align-items: center;
}


.header-top img {
 max-height: 50px;
  height: auto;
  padding-left: 20px;
}
@media (min-width: 1000px){
/*メニューくっついたときだけロゴ大きく*/
.header-top.fixed img {
  max-height: 70px; /* ←拡大サイズ。調整可 */
  transition: all 0.3s ease;
	margin-top: 50px;
}
} 

.header-top h1 {
  font-size: 1.5rem;
  margin-left: auto;
  padding-top: 10px;
  padding-right: 5%;
}
@media (max-width: 500px){
.header-top h1 {
display: none;
}
} 


/* ▼▼ ハンバーガーメニュー 共通 ▼▼ */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 30px;
  height: 20px;
  z-index: 1100;
}

.menu-toggle span {
  background-color: #333;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ▼▼ PCナビ ▼▼ */
nav {
  position: absolute;
  bottom: 120px;
  right: 0;
  background-color: #fff;
  border-radius: 50px 0 0 50px;
  width: 70%;
  transition: all 0.4s ease;
  z-index: 10;
}
@media (min-width: 1000px){
nav.fixed {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: #C1B29F;
}
}
nav ul {
  display: flex;
  list-style: none;
  padding: 20px;
  justify-content: center;
  position: relative;
}

nav li {
  position: relative;
  margin: 0 30px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
}

nav.fixed a {
  color: #fff;
}

nav a:hover {
  color: #F18B00;
}

/* ▼▼ サブメニュー ▼▼ */
nav ul li .submenu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 10px 0;
  border-radius: 10px;
  min-width: 160px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  text-align: center;
}

nav ul li.has-submenu:hover .submenu,
nav ul li.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

nav ul li .submenu li {
  opacity: 0;
  transform: translateY(-10px);
}

nav.fixed ul li .submenu {
  background-color: #C1B29F;
}

nav.fixed ul li .submenu li a {
  color: #fff;
}

nav ul li.has-submenu:hover .submenu li {
  animation: fadeInUp 0.3s ease forwards;
}

nav ul li.has-submenu:hover .submenu li:nth-child(1) { animation-delay: 0s; }
nav ul li.has-submenu:hover .submenu li:nth-child(2) { animation-delay: 0.1s; }
nav ul li.has-submenu:hover .submenu li:nth-child(3) { animation-delay: 0.2s; }
nav ul li.has-submenu:hover .submenu li:nth-child(4) { animation-delay: 0.3s; }
nav ul li.has-submenu:hover .submenu li:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

nav ul li .submenu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

nav ul li .submenu li a:hover {
  color: #F18B00;
}

/* ▼▼ スマホ用 ▼▼ */
@media (max-width: 1000px) {

  .header-top {
    position: fixed;
    top: 0;
    left: 0;
	  height: 80px;
    width: 100%;
    background-color: #C1B29F;
    z-index: 1000;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .header-top img {
    width: auto;
    height: 50px;
    max-width: 50%;
  }

  .header-top h1 {
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 1;
    word-break: break-word;
    max-width: 50%;
  }

  .menu-toggle {
    display: flex;
	  margin-right: 2%;
  }

  .menu-toggle span {
    background-color: #fff;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #C1B29F;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }

  nav.active {
	   display: flex;
	  height: 95vh;
    max-height: 100vh; /* 十分大きければOK */
    opacity: 1;
    padding-top: 100px; /* 中身が見えるように */
    padding-bottom: 20px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 300px;
    text-align: left;
  }

  nav li {
    width: 100%;
    margin: 10px 0;
  }

  nav a {
    color: #fff;
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  nav a:hover {
    color: #F18B00;
  }

nav ul li .submenu {
  position: static;
  transform: none;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: none;
  padding-left: 0;
  margin-left: 0;
}

nav ul li .submenu li {
  opacity: 1;
  transform: none;
  animation: none;
  position: relative;
}

  nav ul li .submenu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    position: relative;
    padding: 5px 10px; /* ← ここを調整（例: 上下5px） */
    font-size: 0.9rem; /* 必要に応じて文字サイズも調整 */
  }

  nav ul li .submenu li {
    margin: 0; /* 不要な余白がある場合に調整 */
  }
nav ul li .submenu li a::before {
  content: "›";
  color: #fff;
  font-size: 1rem;
  display: inline-block;
}



}











footer{
	background-color: #C1B29F;
	position: relative;
	padding: 20px;
}

.footer-kagiyama01{
	width: 50%;
	margin: 40px 20px 0 20px;
}

/*フッター診療時間*/
.footre-table{
	background-color: #fff;
	padding: 15px;
	margin: 20px;
	font-size: 1.2rem;	
}

.footre-table td {
  color: #F18B00;
}

.footre-table tr {
  letter-spacing: 0.2em;
}

.footre-table th,
.footre-table td {
  padding: 12px;
  border-bottom: 2px solid #F7931E;
  text-align: center;
}
.time-label {
  display: block;
  min-width: 120px;
  text-align: right;
}


.footre-table tbody tr:last-child th,
.footre-table tbody tr:last-child td {
  border-bottom: none;
}
@media screen and (max-width: 550px){
.footre-table {
	font-size: 1rem;
	padding: 2px;
	}
	.footre-table th,
.footre-table td {
	padding: 2px;
}
}
/*フッター診療時間ここまで*/



footer p{
	margin: 5px 20px ;
	font-size: 1.2rem;
	color: #fff;
	
}
.telno{
	font-size: 2rem;
	  letter-spacing: 0.2em;
	font-weight: 700;
	color: #F18B00;
	background-color: #fff;
	padding: 5px 15px;
	border-radius: 10px;
	 display: inline-block;
}

.footer-kagiyama02{
	max-width: 500px;
	position: absolute;
	bottom: 150px;
	right: 5%;
}

footer a{
	color: #fff;
	font-size: 1rem;
	padding: 5px;
	text-decoration: none;
	border: solid #fff 1px;
	margin: 50px 20px;
}
@media screen and (max-width: 1000px){

	.footer-kagiyama01{
		width: 80%;
	
	}
.footer-kagiyama02{
		opacity: 0.2;
	}
}
@media screen and (max-width: 670px){
	.footer-kagiyama01{
		width: 90%;
	}
		.footre-table{
	margin: 20px auto;
	
}
	footer p{
	margin: 10px auto;
		font-size: 1rem;
	
}
	.telno{
		font-size: 1.2rem;
	}
	
}

.copy {
	margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
 
}