@charset "utf-8";

html {
  font-size: 62.5%;
  background-color: var(--primary-white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  /* 下線を削除 */
  color: inherit;
  /* 親要素の文字色を継承（紫を防止） */
}

body {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.spbr {
  display: none;
}

/* ===== ナビゲーションメニュー ===== */
/* 最初は通常の位置に */
.nav {
  width: 100%;
  background: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  transition: all 0.3s ease-in-out;
  z-index: 100;
}

/* 固定されるときのスタイル */
.nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
  background: #ffffff;
  transition: all 0.3s ease-in-out;
  z-index: 15;
}


/* メニューリスト */
.nav-list {
  display: flex;
  justify-content: space-around;
  width: 80%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* メニュー項目 */
.nav-item {
  position: relative;
}

/* メニューリンク */
.nav-item a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}
.nav-item p {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

/* ホバー時のエフェクト（下線アニメーション） */
.nav-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #938068;
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-item a:hover {
  color: #b19768;
}

.nav-item p::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #938068;
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.nav-item p:hover::after {
  width: 100%;
}

.nav-item p:hover {
  color: #b19768;
}


/* プルダウンメニュー */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* プルダウンメニュー項目 */
.dropdown li {
  padding: 12px 5px;
}

.dropdown li a {
  text-decoration: none;
  color: #666;
  display: block;
  font-size: 14px;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.dropdown li a:hover {
  background: #f4f4f4;
  padding-left: 5px;
}

/* ホバー時にプルダウンを表示 */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  z-index: 1;
}

/* ハンバーガーメニュー（スマホ対応） */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.sp-only {
  display: none;
}

/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .pcbr {
    display: none;
  }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {

  /*------------------- メニュー -------------------*/
  /* ハンバーガーアイコン */
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  .spbr {
    display: block;
  }

  .pcbr {
    display: none;
  }

  .drawer-hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #DDBD74;
    width: 60px;
    height: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    cursor: pointer;
  }

  .drawer-hamburger-icon {
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    top: 8px;
  }

  span.menu_txt {
    top: 17px;
    position: relative;
  }

  .drawer-hamburger-icon::before,
  .drawer-hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
  }

  .drawer-hamburger-icon::before {
    top: -8px;
  }

  .drawer-hamburger-icon::after {
    top: 8px;
  }

  .menu_txt::before {
    content: 'MENU';
    font-size: 10px;
    margin-top: 6px;
  }

  #drawer-checkbox:checked+#drawer-icon .drawer-hamburger-icon {
    background: transparent;
  }

  #drawer-checkbox:checked+#drawer-icon .drawer-hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  #drawer-checkbox:checked+#drawer-icon .drawer-hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  #drawer-checkbox:checked+#drawer-icon .menu_txt::before {
    content: 'CLOSE';
  }

  /* メニュー全体 */
  #drawer-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: -100px;
    left: -9999px;
  }

  #drawer-content {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fffdf7;
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem 1rem;
  }

  #drawer-checkbox:checked~#drawer-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* ベース装飾 */
  .drw_index {
    font-weight: bold;
    font-size: 1.2em;
    margin: 1.5em 0 0.5em;
    color: #f7961d;
  }

  /* ul.com_sp_menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em 1.5em; 
  padding-left: 0;
  list-style: none;
} */

  .com_sp_menu li,
  .com_medical li {
    margin-bottom: 0.6em;
    font-size: 1rem;
  }

  li.littl {
    font-size: 1rem;
    font-weight: 600;
  }

  .com_sp_menu li:not(.littl),
  .com_medical li:not(.littl) {
    position: relative;
    padding-left: 1.4em;
    /* マーク分の余白 */
    list-style: none;
  }

  .com_sp_menu li:not(.littl)::before,
  .com_medical li:not(.littl)::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.5em;
    height: 0.5em;
    background-color: #f7961d;
    border-radius: 50%;
  }

  .tel {
    font-size: 1em;
    /*   margin-top: 1.5em; */
  }

  .drw_info .schedule-table {
    margin: 10px 0;
  }

  .telp {
    font-size: 1.5rem;
  }

  .telp i {
    margin: 0 5px 0 0;
  }

  .web-reserve a {
    display: inline-block;
    font-size: 1.2rem;
    margin-top: 0.5em;
    background: #f7961d;
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: 30px;
    text-decoration: none;
  }

}

.nav-item a.active {
  color: #333333;
  /* テキスト色 */
  background-color: rgba(74, 144, 226, 0.1);
  /* 薄いブルーの背景色 */
  border-radius: 50%;
  /* 円形にする */
  padding: 10px;
  /* 上下左右に均等なパディング */
  display: inline-flex;
  /* flexを使用して中央揃えを容易に */
  justify-content: center;
  /* 横軸中央揃え */
  align-items: center;
  /* 縦軸中央揃え */
  min-width: 30px;
  /* 最小幅を指定 */
  height: 30px;
  /* 高さを指定 */
  transition: background-color 0.3s ease;
  /* 背景色の変化にトランジションを適用 */
  text-align: center;
  /* テキストを中央揃えに */
  white-space: nowrap;
  /* テキストを折り返さない */
}

.nav-item a.active:hover {
  background-color: rgba(74, 144, 226, 0.2);
  /* ホバー時に背景色を少し濃くする */
}

/* ボタン */
.button-1-unit {
  max-width: 290px;
  margin: 0 auto;
}

.button-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 20px auto 0;
  padding: .5em 1em;
  border: none;
  color: #175899;
  font-size: 1.6rem;
  z-index: 1;
}

.button-1::before {
  position: absolute;
  transform: skewX(-25deg);
  width: 100%;
  height: 100%;
  border: 1px solid #175899;
  content: '';
  background-color: #f7fafd;
  z-index: -5;
}

.button-1::after {
  transform: rotate(45deg);
  width: 5px;
  height: 5px;
  margin-left: 10px;
  border-top: 2px solid #175899;
  border-right: 2px solid #175899;
  content: '';
}

/* ホバー時のスタイル */
.button-1:hover {
  color: #fff;
  /* テキストを白に */
}

.button-1:hover::before {
  background-color: #175899;
  /* 平行四辺形の背景色を変更 */
  z-index: -10;
}

.button-1:hover::after {
  border-top-color: #fff;
  /* 矢印の色も白に */
  border-right-color: #fff;
}

/* ホバー時に少しふわっと縮むアニメーション */
.button-1:active {
  transform: scale(0.95);
  /* ボタンが縮むエフェクト */
}


/* ボタン2 */
.button-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: .5em 1em .5em 1em;
  border: 1px solid #175899;
  background-color: #fff;
  color: #175899;
  font-size: 1.6rem;
  max-width: 290px;
}


.button-2:hover::after {
  transform: translateY(-50%) scaleX(1.4);
}

/* -------------------footer------------------- */
/* フッター全体 */
.footer * {
  color: #fff;
}

.footer {
  position: relative;
  /* 疑似要素を適切に配置するために relative を設定 */
  padding: 40px 20px;
  background: url(../images/footer-PC.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* グラデーションを背景として追加 */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 半透明の白レイヤーを背景画像の上に配置 */
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #17589999;
  z-index: 0;
}

/* フッター内のテキストを前面に配置 */
.footerinner {
  position: relative;
  z-index: 2;
  /* コンテンツを最前面に */
  color: #363636;
}

/* フッター内のテキストの視認性を確保 */
.footer-content {
  position: relative;
  z-index: 3;
  /* テキストを最前面に */
  color: #363636;
  /* 適宜調整 */
}

/* フッター上部（ロゴ・住所・予約） */
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  gap: 70px;
  margin-top: 70px;
}

.footer-logo img {
  width: 288px;
  margin: 0 auto;
}

/* フッターの情報エリア */
.footer-info {
  text-align: left;
  font-size: 1.6rem;
}

/* 各項目のアイコン */
.footer-info p {
  position: relative;
  padding-left: 25px;
  margin: 5px 0;
}

/* 住所アイコン */
.footer-info p:nth-child(1)::before {
  content: "\f3c5";
  /* FontAwesomeのマップピンアイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

/* アクセス方法アイコン */
.footer-info p:nth-child(2)::before {
  content: "\f3c5";
  /* 同じくマップピンアイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

/* 電話アイコン */
.footer-info p:nth-child(3)::before {
  content: "\f095";
  /* FontAwesomeの電話アイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}


/* 診療時間表 */
.footer-schedule {
  text-align: center;
  flex-grow: 1;
  margin: 0 20px;
  padding: 15px;
}

.medical-hours {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-table th,
.schedule-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
}

.schedule-table th {
  background: #175899;

  color: #fff;
  font-weight: bold;
}

.schedule-table td {
  background: #fff;
  color: #091B2C;
}

.schedule-table .footer-time {
  color: #175899;
}

.schedule-table .close {
  background: #E4EDF5;
}

.footer-nav ul li a {
  color: #fff;
  font-weight: 500;
}

.note {
  font-size: 1.2rem;
  margin-top: 5px;
}

/* ナビゲーションメニュー */
.footer-nav {
  text-align: center;
  margin: 20px 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  display: inline-block;
  margin: 0 10px;
}

.footer-nav ul li a {
  text-decoration: none;
  font-size: 16px;
}

/* 診療内容のリンク */
.footer-links {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 20px auto;
}

.footer-section {
  width: 30%;
}

.footer-section h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  text-decoration: none;
  font-size: 14px;
}

/* フッター下部（著作権） */
.footer-bottom {
  text-align: center;
  font-size: 1.3rem;
  color: #555;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.footer-nav-list {
  display: flex;
  justify-content: space-around;
  width: 80%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* メニュー項目 */
.footre-nav-item {
  position: relative;
}

/* メニューリンク */
.footre-nav-item a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

/* ホバー時のエフェクト（下線アニメーション） */
.footre-nav-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #938068;
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.footre-nav-item a:hover::after {
  width: 100%;
}

.footre-nav-item a:hover {
  color: #b19768;
}
/* -------------------固定予約ボタン------------------- */
/* 固定ボタンラッパー（PCは右下に縦並び、スマホは下部に全幅） */
.fixed-reservation-buttons {
	position: fixed;
	z-index: 100;
	display: flex;
	gap: 10px;
	align-items: center;
}

/* ボタン共通スタイル */
.reservation-button {
	background-color: #175899;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	padding: 15px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.reservation-button i {
	font-size: 20px;
	padding-right: 20px;
}

/* hover時 */
.reservation-button:hover {
	background-color: #4a90e2d1;
  transform: translateY(-3px);
  color: #fff;
}

/* active時 */
.reservation-button:active {
	background-color: #c88e48;
	transform: translateY(1px);
}

/* ▼ PC：右下に縦並びで表示 */
@media screen and (min-width: 768px) {
  .fixed-reservation-buttons {
    bottom: 82px;
    right: 20px;
    flex-direction: column; /* ←縦並び */
  }

  .reservation-button {
    width: 180px; /* 好みに応じて調整可 */
  }
}
/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */

@media (max-width: 768px) {
  .footer-top {
    display: block;
  }

  .footer-schedule {
    margin: 15px 0;
  }

  .schedule-table th,
  .schedule-table td {
    font-size: 12px;
    padding: 6px;
  }

  .footer-nav-list {
    display: block;
  }
	.footer-links {
    flex-direction: column;
  }
  .footer-section {
    width: 100%;
  }
  .fixed-reservation-buttons {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px;
    justify-content: space-around;
    flex-direction: row;
  }

  .reservation-button {
    flex: 1;
    border-radius: 30px;
    font-size: 11px;
    padding: 12px 10px;
    max-width: 48%;
  }
	.reservation-button i {
		padding-right: 10px;
	}
}