@charset "utf-8";

/* タブレット用（521px〜899px） */
html {
  /* 最小 11px / 基準 1.67vw / 最大 15px */
  font-size: clamp(11px, 1.67vw, 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,.sp-only{display: none;}

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

.tb-img100{width: 100%;}
.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: 0 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;
}

/*------------------------h4------------------------*/
h4::before {
    content: "";                    /* 中身は空っぽにする */
    display: inline-block;          /* インラインブロックにする */
    width: 0.5rem;                     /* 線の太さ（横幅） */
    height: 2px;                    /* 線の高さ（文字の高さに合わせる） */

    margin-right: 0.5rem;            /* 線と文字の間の隙間 */
    vertical-align: middle;         /* 文字に対して縦方向の位置を中央に合わせる */
}

/*------------------------h5------------------------*/
h5{font-weight: 700;margin-top: 1rem;font-size: 1rem;}

/*------------------------h1------------------------*/

.section-h1box {
  height: 10rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
}
h1 {
padding-right:4vw;
padding-left:4vw;
}

/*------------------------ボタン★------------------------*/
.btn-box1{text-align: right;margin-top: 30px;}
.btn-box2{text-align: center;margin: 30px auto;max-width: 250px; /* ボタン幅 */}
.btn-box3{text-align: center;margin: 30px auto;max-width: 400px; /* ボタン幅 */}
.btn-item{text-align: center;margin: 15px auto 0px auto;max-width: 250px; /* ボタン幅 */
}
.view-more-container {
display: flex;
    justify-content: flex-end;
    margin-top: 2rem; 
}

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

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

/*------------------------flex共通------------------------*/
.flex-common{display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  align-items:stretch;}
.flex-common-l{width: 60%;}
.flex-common-r{width: 35% !important; /* 写真の幅 */
  display: flex;
  flex-direction: column; /* 写真を縦に2枚並べる場合 */
  gap: 2rem;              /* 写真同士の隙間 */}

.flex-common-2l{width: 60%;}
.flex-common-2r{width: 35% !important; /* 写真の幅 */
  display: flex;
  flex-direction: column; /* 写真を縦に2枚並べる場合 */
  gap: 2rem;               /* 写真同士の隙間 */}
  
/*------------------------flex共通ライン★------------------------*/
.flex-line{display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  align-items:stretch;
  border-bottom: 1px dashed rgba(74,59,50,0.5);

}
.fl1{width: 25%;border-top: 1px dashed rgba(74,59,50,0.5);  padding: 1.2rem 1.5rem 1.2rem 1.5rem;}
.fl2{width:75%; border-top: 1px dashed rgba(74,59,50,0.5);padding: 1.2rem 1.5rem 1.2rem 1.5rem;}


/*------------------------お問い合わせ------------------------*/
.contact-tel {
  font-size: 2.5rem;
}

/*------------------------お知らせ★------------------------*/
/* NEWSリスト全体 */
.news-list {
  max-width: 1200px; /* 幅1200px指定 */
  width: 100%;
  margin: 0 auto;
  border-top: 1px dotted #ccc; /* 一番上のライン */
}
/* 1行ごとの外枠 */
.news-set {
  display: flex;
  align-items: center;
  border-bottom: 1px dotted #ccc;
}
/* リンクがある場合は a タグ側で横並び・余白・全体クリックを設定 */
.news-set a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.news-set a:hover {
  background-color: #FFF; /* ホバー時の背景色 */
}

/* リンクがない直下の要素（aタグを通さない場合）の余白とレイアウト */
.news-set > .news-day {
  padding: 1.2rem 1.5rem;
}

.news-set > .news-text {
  padding: 1.2rem 1.5rem;
}

/* 日付 */
.news-day {
  width: 140px; /* 日付の幅 */
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* タイトルテキスト */
.news-text {
  flex: 1;
  font-size: 1.0rem;
  line-height: 1.5;
  
  /* テキストが長すぎた場合に三点リーダー（…）で省略 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/*------------------------トップページ------------------------*/
/*----------------------------------------------------
  診療時間（レイアウト・構造のみ）
----------------------------------------------------*/

/* ▼ 外側の箱（角丸と全体の枠組み） */
.schedule-table-wrap {
  margin: 0 auto;
  border-radius: 12px;
  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-sp{display: none;}
/*------------------------ヘッダー★------------------------*/
#head-sp { 
  height: 80px;
  width: 100%;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}#headlogosp {
  height: 40px;
}

#headlogosp img {
  height: 100%;
  width: auto;
}

/* --- ハンバーガーボタン（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:1rem;
display: none;
	line-height: 1;
	top:80px;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000 !important;
    padding: 40px 40px;
	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: 20px 20px;
    border-top-width: 2px;
	border-top-style: solid;
	border-top-color: rgba(255,255,255,0.2)!important;
    }
#spmenu .spmenu2{
	padding: 20px 20px;
    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;
    z-index: 100;
}

/*------------------------メインイメージ------------------------*/
/* メインビジュアル全体のコンテナ */
.main-visual {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0px auto;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 背景写真のラップ（1200×600の比率を維持） */
.main-bg-wrap {
  width: 100%;
  aspect-ratio: 1200 / 600; /* 幅1200:高さ600の比率を固定 */
  position: relative;
  overflow: hidden;
}

.main-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 比率を保ったまま枠内に綺麗に収める */
  display: block;
}

/* 左側のロゴのラップ（絶対配置で写真の上に重ねる） */
.main-logo-wrap {
  position: absolute;
  left: 8%;        /* 左からの位置微調整 */
  bottom: 10%;     /* 下からの位置微調整 */
  width: 26%;      /* 全体に対するロゴのサイズ感（必要に応じて調整） */
  max-width: 280px;
  z-index: 2;
}

/* ロゴのふわふわ動く（浮遊）アニメーション */
@keyframes fuwafuwa {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.main-logo-img {
  width: 100%;
  height: auto;
  display: block;
  animation: fuwafuwa 4s ease-in-out infinite;
}

.main-visual-sp{display: none;}

/*----------------------------------------------------
  メインビジュアルのキャッチコピー（右寄せ・独立白帯・ダッシュ線）
----------------------------------------------------*/

/* 全体の配置（右側・ちょっと上目） */
.catchcopy-wrap {
  position: absolute;
  top: 4rem;            /* 上からの距離（微調整用） */
  right: 10px;          /* 右からの距離（右寄せ） */
  left: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 白帯ごと右側に寄せる */
  gap: 14px;            /* 1行目と2行目の間の隙間 */
}

/* 1行ごとの白帯ボックス */
.catchcopy-line {
  background-color: rgba(255, 255, 255, 1); /* 白帯の背景 */
  padding: 0.6rem 1.2rem 1rem 1.2rem;   /* 帯の上下左右の余白 */
  border-radius: 4px;   /* 角丸 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* ほんのり影 */
  width: fit-content;   /* 文字の長さに合わせた帯の幅にする */
}

/* テキストと下線（ダッシュ線）の指定 */
.text-underline {
  font-size: 1.5rem;
  padding-bottom: 6px;       /* 文字と下線の隙間 */
  letter-spacing: 0.05em;
  font-weight: 600;
}

/*------------------------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;
}
