@charset "utf-8";

/* スマホ用（520px以下） */
html {
  /* 最小 12px / 基準 4vw / 最大 15px */
  font-size: clamp(12px, 4vw, 15px);
}


.respo-mt1{margin-top: 6rem;}
.respo-mt2{margin-top: 3rem;}
.respo-mt3{margin-top: 2rem;}
.respo-mt4{margin-top: 4rem;}
.respo-mt10{margin-top: 10px;}
.h2-after{margin-top: 3rem;}


#pc-head,.pc-only,.tb-only,.pc-tb-only{display: none;}
.sp-img100{width: 100%;}

br.br-sp{ display: inline;}
br.br-pc,br.br-tb {display: none !important;
}

.img100{width: 100%;}
.img150{max-width: 150px;}
.img50{width: 100%;}
.img80{width: 100%;}

/*page　ID*/
#top-page{}
#naka-page{}

/*------------------------ベースレイアウト------------------------*/
.wrap1200,.wrap1000,.wrap800{
  width: 100%;
  padding-right:4vw;
  padding-left:4vw;
  margin-right:auto;
  margin-left:auto;
}

/*------セクション★------*/
.section-common0{padding:  0px 0px 6.67rem 0px;}
.section-common { padding: 6.67rem 0px; }
.section-common2{padding: 0px 0px 6.67rem 0px;}
.section-common3{padding: 6.67rem 0px 0px 0px;}

.section-common-bg1{padding:  6.67rem 0px; background-color: #FFF;}
.sectionline {border-top: 1px dashed rgba(74,59,50,0.5);}

/*------バックグラウンド画像はcommonで指定------*/
#section-h1box{
  background-size: cover;
  background-position: center;
}

/*------------------------h1------------------------*/
.section-h1box {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-wrap: wrap;
  flex-direction: row;
  margin-top: 60px;
}
h1 {
text-align: center;
}

/*------------------------ボタン★------------------------*/
.btn-box1{text-align: right;margin-top: 20px;}
.btn-box2{text-align: center;margin: 20px auto;max-width: 250px; /* ボタン幅 */}
.btn-box3{text-align: center;margin: 20px auto;max-width: 400px; /* ボタン幅 */}
.btn-item{text-align: center;margin: 15px auto 0px auto;max-width: 250px; /* ボタン幅 */
}

.view-more-container {
display: flex;
   justify-content: center;
    margin-top: 2rem; 
}

.view-more-container2 {
display: flex;
 justify-content: center;

margin-top: auto; /* 上部の余白を自動調整して、ボタンを常に底面に固定 */
padding-top: 1rem;
}


/*------------------------flex共通------------------------*/
.flex-common{display: block;}
.flex-common-l{width: 100%;margin-bottom: 2rem;}
.flex-common-r{width: 80% !important; /* 写真の幅 */
  display: flex;
  flex-direction: column; /* 写真を縦に2枚並べる場合 */
  gap: 2rem;              /* 写真同士の隙間 */
  margin-left: auto;margin-right: auto;
  }

  
.flex-common-2l{width: 100%;margin-bottom: 2rem;}
.flex-common-2r{width: 80% !important; /* 写真の幅 */
  display: flex;
  flex-direction: column; /* 写真を縦に2枚並べる場合 */
  gap: 2rem;               /* 写真同士の隙間 */
    margin-left: auto;margin-right: auto;}

/*------------------------flex共通ライン★------------------------*/
.flex-line{display: block;
 border-bottom: 1px dashed rgba(74,59,50,0.5)}
.fl1{width: 100%;  border-top:1px dashed rgba(74,59,50,0.5);padding: 1.2rem 1.5rem 1.2rem 1.5rem; color:rgba(26,152,79,1); }
.fl2{width: 100%; padding: 0rem 1.5rem 1.2rem 1.5rem;}

/*------------------------お問い合わせ------------------------*/
.contact-tel {
  font-size: 1.5rem;
}
/*------------------------お知らせ★------------------------*/

/* リスト全体の枠線 */
.news-list {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px dotted #ccc;
}

/* リンクなし（外枠）の余白・枠線をリセット */
.news-set {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px dotted #ccc;
}

/* リンクあり（aタグ）の指定 */
.news-list a {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 1.2rem 1.5rem; /* ★外枠の余白 */
  gap: 0.5rem 0; /* ★日付と本文の間隔（縦） */
  border-bottom: none; /* 重複下線消し */
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.news-list a:hover {
  background-color: #FFF;
}

/* リンクなしの場合の「日付」と「本文」を包む親の余白調整 */
/* aタグを通さない場合（直下の要素）に、aタグと同じ余白・間隔を与える */
.news-set > .news-day {
  padding: 1.2rem 1.5rem 0.25rem 1.5rem; /* 上 右 下(0.25rem) 左 */
}

.news-set > .news-text {
  padding: 0.25rem 1.5rem 1.2rem 1.5rem; /* 上(0.25rem) 右 下 左 */
}

/* aタグの中に入っている場合の不要な余白をリセット */
.news-list a .news-day,
.news-list a .news-text {
  padding: 0;
}

/* 日付共通 */
.news-day {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
}

/* 本文共通 */
.news-text {
  width: 100%;
  font-size: 1.0rem;
  line-height: 1.5;
}



/*------------------------トップページ★------------------------*/
/* ▼ 外側の箱（角丸と全体の枠組み） */
.schedule-table-wrap-sp {
  margin: 0 auto;

  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ▼ テーブル本体 */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 列幅のガタつきを防ぐ */
  text-align: center;
}

/* 各セルの基本設定 */
.schedule-table th,
.schedule-table td {
  padding: 1.2rem 0.5rem;
  vertical-align: middle;
  text-align: center;
}

/* ★【重要】1列目（ヘッダーの「診療時間」＋時間帯）全体の幅をしっかり固定 */
.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 200px;         /* ここで左端の幅を調整できます（必要に応じて190pxなどに変更OK） */
  white-space: nowrap;  /* 途中で改行させない */
  padding: 1.2rem 0.5rem;
}

/* 2列目以降（月〜日祝の曜日列）の幅を均等に割り振る */
.schedule-table th:not(:first-child),
.schedule-table td:not(:first-child) {
  width: auto;
}
.schedule-table-wrap {display: none;
}

/*------------------------ヘッダー------------------------*/
#head-sp{ 
	height: 60px;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}
#headlogosp{
	position: fixed;
	margin-top: 10px;
    	margin-bottom: 10px;
	left: 10px;
	height: 40px;
}
#headlogosp img{height: 100%;}
/* --- ハンバーガーボタン（40px x 40px / 白） --- */
#spbtn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  
  width: 40px;
  height: 40px;
  padding: 10px 6px;
  box-sizing: border-box;
  
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000; /* メニューより手前に配置して常に押しやすくする */
  
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* 3本線のスタイル */
#spbtn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(26,152,79,1); 
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* --- 開いた時（.active）の×印アニメーション --- */
#spbtn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#spbtn.active span:nth-child(2) {
  opacity: 0;
}

#spbtn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* --spmenu------*/
#spmenu{
	font-size: 0.9rem;
display: none;
	line-height: 250%;
	top:60px;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
        padding: 20px 20px;
	overflow: auto;
    text-align: center;
}
#spmenu,#spmenu a,#spmenu a:visited,#spmenu a:hover,#spmenu a:active, #spmenu i {
	color: #FFFFFF;
	text-decoration: none;
}
#spmenu .spmenu1{
	padding: 5px 10px;
    border-top-width: 2px;
	border-top-style: solid;
	border-top-color: rgba(255,255,255,0.2)!important;
    }
#spmenu .spmenu2{
	padding: 5px 10px;
    border-top-width: 1px;
	border-top-style: dashed;
	border-top-color: rgba(255,255,255,0.2)!important;
    background-color: rgba(255,255,255,0.1)!important;
    }
#spmenu a:last-child .spmenu1{
	border-bottom-width: 2px;
	border-bottom-style: solid;
	border-bottom-color: rgba(255,255,255,0.2)!important;
}
.spnavi-line{
    border-top-width: 2px;
	border-top-style: solid;
	border-top-color: rgba(255,255,255,0.2)!important;
    }

.spmenu-aco{
	display: none;
}

/*------------------------メインイメージ（スマホ用）------------------------*/
.main-visual{display: none;}
.main-visual-sp img{width: 95%;margin: 0 auto;}

.main-visual-sp{margin-top: 80px;text-align: center;}



/*------------------------footer★------------------------*/
#footer{padding: 60px 0px 60px 0px;background-color: #FFF;
text-align: center;}
#footer img{width: 100%;max-width: 200px;}
.add-box{font-size: 0.9rem;}
.footername{font-size: 1.1rem;margin: 0.5rem 0rem 1rem 0rem;font-weight: 600;}


/*------cop------*/
.copy{text-align: center; font-size: 0.8rem;margin-top: 3rem;}

/*------gotop------*/
/* ページトップボタンの装飾 */
.gotop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
}

.gotop a {
    display: flex;
    flex-direction: column; /* アイコンと文字を縦に並べる */
    align-items: center;
    justify-content: center;
    width: 60px;  /* ボタンの幅 */
    height: 60px; /* ボタンの高さ */
    background-color: #fff; 
    border: 1px rgba(26,152,79,1) solid;
    color: rgba(26,152,79,1) !important;    /* 文字色 */
    text-decoration: none;
    border-radius: 50%;        /* 正円にする */
    font-size: 0.8rem;           /* 文字サイズ */
    transition: all 0.3s;
}
/* ホバーした時の動き */
.gotop a:hover {
    background-color: rgba(26,152,79,0.2);
    transform: translateY(-5px); /* 少し上に浮き上がる */
        border: 1px rgba(26,152,79,1) solid;
}
/* FontAwesomeのアイコンサイズ微調整 */
.gotop i {
    font-size: 1rem;
    margin-bottom: 2px;
}



a.anchor{
    display: block;
    padding-top: 0px;
    margin-top: 0px;
}
