@charset "UTF-8";

/*--------------------------default*/
html {
  margin: 0;
  padding: 0;
  font-size: 62.5%;
}

/*==============================All*/
body {
  margin: 0;
  padding: 0;
  color: #666;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif !important;
  font-size: 1.4rem;
  text-align: left;
  line-height: 2;
  -webkit-text-size-adjust: 100%;
}

p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

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

ul {
  margin: 0;
  padding: 0;
}

ul li {
  list-style-type: none;
  padding: 0;
}

dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

dt {
  font-weight: normal;
}

table {
  border-collapse: collapse;
}

figure {
  margin: 0;
  padding: 0;
}

input {
  cursor: pointer;
}

.inner {
  width: 100%;
  margin: 0 auto;
}



/*---------ヘッダー-------------*/

#page-header .header-nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

#page-header .header-nav>ul {
  display: flex;
  justify-content: start;
  list-style: none;
  width: auto;
  flex: 1 1 auto;
}

#page-header .header-nav .headline {
  margin: 12px 85px;
  gap: clamp(16px, 2.4vw, 40px);
  /*16px 以下にはならず、40px 以上にもならない範囲で、通常は 2.4vw（画面幅の2.4%）で計算した値を使う」*/
  flex-wrap: nowrap;
  justify-content: space-between;
}


/* ロゴ画像のサイズ調整 */
#page-header .header-nav .header-logo img {
  height: 70px;
  width: auto;
  display: block;
}


#page-header .header-nav .headline li {

  display: flex;
  flex-direction: column;
  justify-content: center;

}

/* 親liを配置の基準にする */
#page-header .header-nav .menu-item-has-children {
  position: relative;
}

/* 子メニュー アクセス- .sub-menu マウスホーバー時に表示*/
/* ドロップダウンの位置と初期状態を整理 */
#page-header .header-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  /* 親aの直下に出す */
  margin-top: 0;
  /* 少し下げる */
  width: 300px;
  background: #0bd;
  border: 1px solid #0ab;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);

  /* 初期は非表示（チラつき防止） */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  transform: translateY(6px);
  z-index: 1000;
}


#page-header .header-nav li a {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.6;
  transform: scale(1);
  transition: all 1s ease;
  color: rgb(21, 127, 51);
  /* ← 緑っぽい文字色に */
}

/* hoverで表示（フォーカスでも見えるようにするなら:focus-withinも推奨） */
#page-header .header-nav .menu-item-has-children:hover>.sub-menu,
#page-header .header-nav .menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* サブメニュー内は縦積み・押しやすく */
#page-header .header-nav .sub-menu li a {
  display: block;
  /* インライン → ブロック要素に */
  width: 100%;
  /* li の幅いっぱい */
  padding: 12px 16px;
  /* 左右に余白を確保 */
  box-sizing: border-box;
  /* padding込みで100%計算 */
  text-decoration: none;
  color: #fff;
  /* 文字色（必要に応じて変更） */
  background: transparent;
  /* 初期は透明 */
  border-radius: 0;
  /* 角丸は後述で個別指定 */
}


#page-header .header-nav .sub-menu li a:hover {
  background: #0090aa;
  color: #fff;
}

/* トップのスケール拡大がサブメニューに影響しないように無効化 */
#page-header .header-nav .sub-menu a,
#page-header .header-nav .sub-menu a:hover {
  transform: none !important;
}

#page-header .header-nav li a:hover {
  color: #360bd383;
}


#page-header .header-nav .sns {
  margin-left: 50px;
  align-items: center;
  /* justify-content: end; */
}

#page-header .header-nav .sns li {
  width: 50px;
  margin-left: 10px;
  /*snsごとの幅をどうするか*/
}

#page-header .header-nav .sns li img {
  transform: scale(1);
  transition: all 1s ease;
}

#page-header .header-nav .sns li img:hover {
  transform: scale(1.2);
}

#page-header .header-nav .sns .sns_02 {
  width: 41px;
  padding-top: 5px;
}

#page-header .header-nav li span {

  font-size: 13px;
}

#kv {
  width: 100%;
  height: 807px;
  margin: 0 0 80px;
  background: url(images/kv_bg.jpg)no-repeat center top;
  background-size: cover;
}

#home #kv .inner {
  position: relative;
  height: 600px;
}

#home {
  background-color: #eceae4;
}

#kv .inner_text {
  position: absolute;
  top: 6%;
  left: 3%;
  font-family: 'Noto Serif JP', serif;
  font-size: 2.4rem;
  line-height: 2.3;
  writing-mode: horizontal-tb;
  color: #7b7b7b;
  background: rgba(255, 255, 255, 0.5);
  padding: 50px;
  width: 30%;
  line-height: 171%;
}

#news .news_image {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

#news .news_image li img {
  width: 90%;
  height: 112%;
  border-radius: 10px;
  border-width: 2px;
  /* 枠線の太さ */
  border-style: dotted;
  /* 枠線の種類 */
  border-color: rgb(121, 100, 100);
}

#box {
  display: flex;
  justify-content: space-between;
  max-width: 1325px;
  width: calc(100% - 192px);
  margin: 0 96px;
  gap: 35px;
}

#box h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;

}

/* お知らせ・ブログの箱自体はスクロールさせない */
#box .topic,
#box .column {
  list-style: none;
  width: 50%;
  height: 320px;
  box-shadow: 3px 3px 3px 3px #ccc;
  padding: 20px;
  padding-right: 0;
  background-color: #f5f3ee;
  box-sizing: border-box;
  overflow: hidden;
}

/* 見出しをスクロール中も上に固定する */
#box .topic h2,
#box .column h2 {
  margin: 0 0 8px;
  padding: 0;
  background-color: #f5f3ee;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
}

.topic-body,
.column-body {
  height: calc(100% - 32px);
  overflow-y: auto;
  width: 100%;
  padding-right: 10px;
  box-sizing: border-box;
}


/* 症状メニュー（タブ） */
/* タブの中身を切り替える */

/* タブボタンの装飾 */
#menu .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  }

#menu .tab-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 52px;
  padding: 0 20px;
  background: #f5f6f2;
  border: 2px solid #cfd6cf; 
  border-radius: 10px;
  color: #555;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* hover時 */
#menu .tab-buttons a:hover {
  background: #e3eee9;
  border-color: #a9c3b2;
} 

/* タブの中身：デフォルトでは全部非表示 */
#menu .tab-content {
  display: none;
}

/* ▼ URL に #tab1, #tab2 が付いたら該当タブだけ表示 */
#tab1:target,
#tab2:target {
  display: block;
}

/* 最初の表示状態（ページを開いたとき） */
#menu:not(:has(.tab-content:target)) #tab1 {
  display: block;
}







#menu h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  padding: 20px;
}

#menu {
  border-radius: 16px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.16);
  /* margin-top: 40px; */
  /* padding: 0px 200px; */
  margin: 56px 96px 21px;
}

#menu .list {
  display: flex;
  flex-wrap: wrap;
  /* 折り返し */
  justify-content: center;
  /* 中央寄せ */
  gap: 10px;
  /* li間の余白 */
  padding: 41px;
  /* margin: 38px; */
  margin-bottom: 48px;
  /*コンテンツが完成するまでの仮、完了したら上のmargin0を適用*/

}

#menu .list li {
  list-style: none;
  width: calc(12.5% - 10px);
  /* 100% ÷ 8列 - gap分 */
  box-sizing: border-box;
  text-align: center;
}

#menu .list li img {
  max-width: 100%;
  /* liの幅に合わせて画像を縮小 */
  height: auto;
  display: block;
  margin: 0 auto;
  /* 中央寄せ */
}

#menu .list li a {
  display: flex;
  flex-direction: column;
  /* 画像の下にテキスト */
  align-items: center;
  /* 中央揃え */
  text-decoration: none;
  color: #333;
}

#menu .list li a span {
  margin-top: 5px;
  /* 画像と文字の間の余白 */
  font-size: 1.2rem;
  /* お好みでサイズ調整 */
  text-align: center;
}

/*診療カレンダー*/
#calendar {
  background: #faf9f7;
  border-radius: 16px;
  padding: 30px 20px;
  margin: 60px 96px 21px;
  box-shadow: 0 1px 3px rgba(0, 0, 0,0.05);
}

#calendar h2 {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 16px;
  border-left: 5px solid #85bfa2;
  padding-left: 10px;
}

/* 月タイトル */
.calendar-month {
  font-size: 1.6rem;
  font-weight: 700;
  color: #444;
  text-align: center;
  position: relative;  /* ← 矢印の基準になる！ */
  margin: 8px 0 20px;
}

/* ← → ボタン共通 */
.month-nav {
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: #85bfa2;
  padding: 0 12px;
  cursor: pointer;
}

.month-nav:hover {
  color: #5a9f81;
}

/* 左矢印 */
.month-nav.prev {
  position: absolute;
  left: 0;
  top: 0;
}

/* 右矢印 */
.month-nav.next {
  position: absolute;
  right: 0;
  top:0;
}

/* 無効状態用（最初と最後の月でグレー表示にしたい時用） */
.month-nav.disabled {
  color: #ccc;
  cursor: default;
}

.month-nav.disabled:hover {
  color: #ccc;
}

/*テーブル本体*/
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
}

.calendar-table th,
.calendar-table td {
  border: 1px dotted #ccc;
  width: calc(100%/7);
  height: 48px;
  vertical-align: middle;
}

.calendar-table thead th {
  background: #85bfa2;
  color: #fff;
  font-weight: 700;
}

/* 今日の日付の見た目 */
.calendar-table td.today > span {
  text-decoration: underline;
  text-decoration-color: #5b8f8f;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  font-weight: 600;
}


/* 日曜ヘッダーだけ色変えたい場合 */
.calendar-table thead th.sun {
  background: #a87e75; /* 日曜 */
}

.calendar-table td.empty {
  background: #f6f4f0;
}

/*各状態の日付マーク */
.calendar-table td > span {
  display: inline-block;
  min-width: 28px;
  line-height: 28px;
  border-radius: 6px;
}

/* 休診日（赤） */
.calendar-table td.closed > span {
  background: #f9d4d4; 
  color: #b44;
  border-radius: 50%;
}

/* 水曜 午前のみ手術（緑） */
.calendar-table td.amonly > span {
  background: #bde5cb; 
  color: #2e553d;
  border-radius: 8px;
}

/*土曜日の列を淡い青系で表示（午前診療あり）7列目（=土曜）かつ .closed でも .amonly でもない通常土曜だけ青くする*/
.calendar-table tbody td:nth-child(7):not(.closed):not(.amonly) > span {
  background: #d8e7f6;
  color: #234b7c;
  border-radius: 6px;
}

/*凡例（カレンダー下部の説明） */
.calendar-legend {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #555;
}

.calendar-legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 3px;
}

.calendar-legend .dot.closed {
  background: #f9d4d4;
  border-radius: 50%;
}

.calendar-legend .dot.amonly {
  background: #bde5cb;
}

.calendar-legend .dot.saturday {
  background: #d8e7f6;
  border-radius: 3px;
}

/* カレンダー＋診療時間 2カラムレイアウト */

#calendar .calendar-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-direction: column;

}

/* 左側（カレンダー）…だいたい全体の6割くらい */
#calendar .calendar-main {
  flex: 0 0 60%;
  min-width: 0;
  width: 80%;
}

#calendar .calendar-side {
  flex: 0 0 40%;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 20px;

}

/* 右側（診療時間ボックス） */
#calendar .clinic-hours {
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 1.6rem;
  line-height: 1.8;
}



/* 午前・午後の行 */
.hours-list {
  margin: 0 0 12px;
  padding: 0;
}

.hours-list dt {
  font-weight: 700;
}

.hours-list dd {
  margin: 0;
}

/* 休診日の表示 */
.closed-title {
  font-weight: 700;
  margin-top: 8px;
}

.closed-text {
  margin: 2px 0 0;
}



/* 診療時間表セクション */
.timetable-section {
  margin-top: 0;
}

/* 外枠＋角丸 */
.timetable {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px;
}

/* テーブル本体 */
.timetable table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.4rem;
  text-align: center;
  min-width: 460px;
  width: 100%;
  table-layout: fixed;
  
}

/* 午前・午後の行を均等な高さにする */
.timetable tbody th,
.timetable tbody td {
  height: 56px;          /* 高さは好みで調整できる */
  vertical-align: middle;
}

/* 見出し行 */
.timetable thead th {
  background: #e8f7e9;
  padding: 8px 12px;
  border-right: 1px dotted #ccc;
}

.timetable thead th:first-child {
  background: #f9f9f0; /* 左の時間帯のセル */
}

/* 行見出し（午前 / 午後） */
.timetable tbody th {
  background: #f9f9f0;
  padding: 8px 12px;
  border-top: 1px solid #ddd;
  border-right: 1px dotted #ccc;
}

/* 通常セル */
.timetable tbody td {
  padding: 8px 12px;
  border-top: 1px solid #ddd;
  border-right: 1px dotted #ccc;  
}

/* 行末・列末の枠線調整 */
.timetable table th:last-child,
.timetable table td:last-child {
  border-right: none;
}

/* 19:00 まで の小さい文字 */
.timetable-small {
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 2px;
}

/* △ 説明 */
.timetable-note {
  margin-top: 8px;
  font-size: 1.2rem;
  color: #777;
}


/*--------------フッター---------------------*/
/* ▼ 外側（背景と余白） */
footer {
  background-color: #f7f5f0;
  color: #444;
  padding: 40px 0;
  border-top: 1px solid #e1ded8;
}

/* ▼ 1行に並べる親コンテナ設定 */
#footer-nav {
  padding: 0 16px 16px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

/* 子：リンク列とSNS列 */
/* なくてもほぼOK（安定用） */
#footer-nav nav {
  flex: 0 1 auto;
}

/* なくてもOK（固定したいなら） */
#footer-nav .footer-sns {
  flex: 0 0 auto;
}


#footer-nav .footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

#footer-nav .footer-links li a {
  display: flex;
  flex-direction: column;
  /* ← 縦に並べる */
  align-items: center;
  text-decoration: none;
  color: #5b8f8f;
  font-weight: 600;
  font-size: 1.6rem;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
  line-height: 1.8;
}


#footer-nav .footer-links li a:hover {
  color: #85bfa2;
}

/* 親liを配置の基準にする */
#footer-nav .footer-links .menu-item-has-children {
  position: relative;
}

/* 子メニュー アクセス- .sub-menu マウスホーバー時に表示 */
/* ドロップダウンの位置と初期状態を整理 */
#footer-nav .footer-links .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  /* 親aの直下に出す */
  margin-top: 0;
  /* 少し下げる */
  width: 300px;
  background: #0bd;
  border: 1px solid #0ab;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);

  /* 初期は非表示（チラつき防止） */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  transform: translateY(6px);
  z-index: 1000;
}

/* hoverで表示（フォーカスでも見えるようにするなら:focus-withinも推奨） */
#footer-nav .footer-links .menu-item-has-children:hover>.sub-menu,
#footer-nav .footer-links .menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* サブメニュー内は縦積み・押しやすく */
#footer-nav .footer-links .sub-menu li a {
  display: block;
  /* インライン → ブロック要素に */
  width: 100%;
  /* li の幅いっぱい */
  padding: 12px 16px;
  /* 左右に余白を確保 */
  box-sizing: border-box;
  /* padding込みで100%計算 */
  text-decoration: none;
  color: #fff;
  /* 文字色（必要に応じて変更） */
  background: transparent;
  /* 初期は透明 */
  border-radius: 0;
  /* 角丸は後述で個別指定 */
}


#footer-nav .footer-links .sub-menu li a:hover {
  background: #0090aa;
  color: #fff;
}


/* ▼ SNSアイコン調整 */
#footer-nav .footer-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer-nav .footer-sns li {
  margin: 0;
}


#footer-nav .footer-sns li img {
  width: 32px;
  height: 32px;
  transform: scale(1);
  transition: transform .2s ease;
}

#footer-nav .footer-sns .sns_03 img {
  width: 41px;
  padding-top: 5px;
  height: 46px;
}

#footer-nav .footer-sns .sns_04 img {
  width: 41px;
  padding-top: 5px;
  height: 46px;
}

#footer-nav .footer-sns li img:hover {
  transform: scale(1.1);
}

footer .copyright {
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  margin-top: 16px;
}



/*----------------スマホ---------------------*/

/* スマホ用：2列表示 */
@media screen and (max-width: 600px) {
  #menu .list li {
    width: calc(50% - 10px);
  }
}