@charset "utf-8";
html {
  /* 最小 11.25px (900pxの時) / 基準 1.25vw / 最大 15px (1200px以上の時) */
  font-size: clamp(11.25px, 1.25vw, 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: 4rem;}


#head-sp,#spmenu,.sp-only,.tb-only,.sp-tb-only,#sp-tb-navi{display: none;}
br.br-pc{ display: inline;}
br.br-tb,br.br-sp {display: none !important;
}
.img100{width: 100%;}
.img150{max-width: 150px;}
.img50{width: 50%!important;margin: 0 auto;}
.img80{width: 80%!important;margin: 0 auto;}
/*page　ID*/
#top-page{}
#naka-page{}

/*------------------------ベースレイアウト★------------------------*/
.wrap1200{
  max-width:1250px;
  width: 100%;
  padding-right:25px;
  padding-left:25px;
  margin-right:auto;
  margin-left:auto;
}
.wrap1000{
  max-width:1050px;
  width: 100%;
  padding-right:25px;
  padding-left:25px;
  margin-right:auto;
  margin-left:auto;
}
.wrap800{
  max-width:850px;
  width: 100%;
  padding-right:25px;
  padding-left:25px;
  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);}


/*------------------------h1------------------------*/
.section-h1box {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-wrap: wrap;
  flex-direction: row;
}
h1 {
  width: 1175px;
  padding-left: 25px;
}

/*------------------------ボタン★------------------------*/
.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: 30% !important; /* 写真の幅 */
  display: flex;
  flex-direction: column; /* 写真を縦に2枚並べる場合 */
  gap: 2rem;              /* 写真同士の隙間 */}

.flex-common-2l{width: 65%;}
.flex-common-2r{width: 25% !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: 180px;border-top: 1px dashed rgba(74,59,50,0.5);  padding: 1.2rem 1.5rem 1.2rem 1.5rem;}
.fl2{width: calc(100% - 180px); 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;
  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;}


/*------------------------ヘッダー------------------------*/
header{
}
#pc-head {box-sizing: border-box; position: relative;  font-size: 0.95rem;}
#top-page #pc-head .head-logo{padding:0px; 
}

#flex-head{display: flex;
  width:100%; 
  justify-content: space-between;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items:center;
  padding:0px 0px;
  position: relative;height: 90px;
  box-sizing: border-box;}
  
.sub-menu{width: calc(100% - 300px);box-sizing: border-box;}



/* 通常時のロゴサイズ */
.head-logo img {
height: 55px; /* ロゴの大きさを適度にコントロール */
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* ホバー時に画像を切り替える */
.head-logo a:hover img {
  opacity: 0.7;
}

/* --- 右上のサブメニュー --- */
.sub-menu {box-sizing: border-box;
position: absolute;
  top: 20px;             /* 一番上 */
  right: 0;           /* 右端 */
  display: flex;
  justify-content: flex-end;
  list-style: none;
  align-items: center;
  gap: 10px;
  height: 60px;
  font-size: 1.8rem;
  font-weight: 600;
  
}

/* --- メインメニュー --- */
.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 15px 0;
  line-height: 1;
  height: 60px;
  margin-top: 10px;
  box-sizing: border-box;
}

.main-nav li {
  display: flex;
  align-items: center;
  height: 50px;
  position: relative; /* 子要素のドットを微調整できるようにする */
}

/* メインメニューの文字デザイン（上品・洗練） */
.main-nav a {
  font-weight: 400;            
  letter-spacing: 0.12em;      
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: clamp(13px, 1.3vw, 16px);
}

/* --- 共通のドットデザイン --- */
.main-nav ul::before,
.main-nav li::after {
  content: "";
  display: inline-block;
  width: 5px;                  
  height: 20px;                
  background-image: radial-gradient(circle, rgba(255,180,0,0.5) 40%, transparent 50%);
  background-size: 5px 5px;    
  background-repeat: repeat-y; 
  vertical-align: middle;      
  pointer-events: none;
}

/* --- 先頭（リストの左端）のドット --- */
.main-nav ul::before {
  margin: 0 clamp(12px, 2vw, 30px) 0 0;
  /* もし左端のドットの位置を動かしたい場合はここに transform を追加できます */
  /* transform: translateX(-3px); */
}

/* --- メニューの間、および最後（リストの右端）のドット --- */
.main-nav li::after {
  margin: 0 clamp(12px, 2vw, 30px);
  /* ★【ポイント】文字に対してドットの位置を左に少し動かしたい場合 */
  /* マイナス値で左へ、プラス値で右へ移動します（例: -4px など） */
  transform: translateX(5px); 
}

/* リンク自体の設定（親要素） */
.main-nav li a {
  position: relative;
  text-decoration: none;
  color: rgba(255,180,0,1);
  padding: 5px 0 13px; 
  display: inline-block;
  overflow: visible; 
}

/* --- 下線（::after）のアニメーション設定 --- */
.main-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; 
  width: 100%;
  height: 1px; 
  background-color: rgba(255, 180, 0, 1);
  opacity: 0; 
  transform: translateY(-10px); 
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 1; 
}

.main-nav li a,
.main-nav li a:visited {
  text-decoration: none;
}

.main-nav li a:hover,
.main-nav li a:active {
  color: rgba(255,180,0,1) !important;
}

.main-nav li a:hover::after {
  opacity: 1; 
  transform: translateY(0); 
}

#pc-head .flex-head-logo:hover{
  opacity: 0.5;
}
/*------------------------メインイメージ------------------------*/
/* メインビジュアル全体のコンテナ */
.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: 5%;     /* 下からの位置微調整 */
  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: 100px;            /* 上からの距離（微調整用） */
  right: 0px;          /* 右からの距離（右寄せ） */
  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, 0.9); /* 白帯の背景 */
  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: 100px;
    margin-top: -100px;
}

