/*
Theme Name: Sawayaka Dental Clinic
Theme URI: https://www.sejuku.net/
Description: Sawayaka Dental Clinic（模擬案件用）
Version: 1.0.0
Author: kwanred
Author URI: https://www.sejuku.net/
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  max-width: 1080px;
  margin: 20px auto;
  padding: 0 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
} 

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; 
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

#logo-div {
  max-width: 540px;
  line-height: 1;
}

#logo > img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
}

#nav-pc {
  font-size: 14px;
}

#nav-pc ul {
  display: flex;
}

#nav-pc li {
  list-style: none;
}

#nav-pc li:not(:first-child) a {
  border-left: 1px solid #ddd;
}

/* ナビゲーションのリンクの装飾設定 */
#nav-pc a {
  text-decoration: none;
  padding: 0 10px;
  color: #4281b6;
  white-space: nowrap;
}

#nav-pc a:hover {
  text-decoration: underline;
}

/* スマホ用ナビゲーションの設定 */
#nav-sp, 
#menu-sp {
  display: none;
}

/* メインビジュアル */
#main-visual {
  position: relative;
  height: 500px;
  margin-top: 20px;
  overflow: hidden;
}

.main-slider {
  width: 100%;
  height: 100%;
}

#main-slider > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
  filter: brightness(0.9);
}

#main-message {
  position: absolute;
  margin: 0;
  bottom: 0;
  color: #ffffff;
  width: 70%;
  z-index: 11;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
}

#main-message h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-family: 'Zen Old Mincho', serif;
}

#main-message p {
  font-size: 0.9rem;
  margin-top: 5px;
  font-family: 'Zen Old Mincho', serif;
}

/* Slick.js ドット表示のためのリセット */
/* ドットの親要素(<ul>)のリセット */
.slick-dots {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  position: absolute !important;
  bottom: 15px !important;
  width: 100%;
  z-index: 20 !important;
  display: block !important;
}

/* 個々のドット(<li>)のリセット */
.slick-dots li {
  display: inline-block !important;
  margin: 0 5px !important;
  padding: 0;
  list-style: none;
}

.slick-dots li button:before {
  color: #fff !important;
  opacity: 0.8 !important;
}

.slick-dots li.slick-active button:before {
  color: #4281b6 !important;
  opacity: 1 !important;
}

#main-message {
  z-index: 10;
}

#main-visual {
  position: relative;
  z-index: 1;
}

/* はじめに */
/* 大切にしていること */

#concept {
  margin-top: 60px;
  padding-bottom: 60px;
}

.index-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.index-h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 10px;
  color: #4281b6;
}

.h2-iconl {
  margin-right: 40px;
}

.h2-iconr {
  margin-left: 40px;
}

.concept-text h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: bold; 
  margin-bottom: 40px;
  background-color: #7197b7;
  color: #ffffff;
  padding-left: 14px;
}

/* 画像とテキストを横並びにするFlexboxコンテナ */
#concept-left {
  display: flex;
  justify-content: space-between;
  gap: 30px; /* 要素間のスペース */
  align-items: center;
  margin-bottom: 40px;
}

.concept-img {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0; /* Flexbox内で幅が縮まないように固定 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* 円形に軽い影をつける */
}

.concept-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 15%; 
}

/* テキストエリアの設定 */
.concept-text {
  width: 60%; 
}

.concept-text h3 {
  color: #2c5d8a;
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 5px;
  padding-left: 10px;
  border-left: 4px solid #4281b6;
}

.concept-text p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* 当院の特徴 */
/* 画像とテキストを横並びにするFlexboxコンテナ */
#concept-right {
  display: flex;
  justify-content: space-between;
  gap: 30px; /* 要素間のスペース */
  margin-top: 40px;
}

.transition {
  margin-top: 40px;
}

/* CTAボタン */
.cta-button {
  display: inline-flex;
  border: 1px solid #333;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 1px 1px 5px;
}

.cta-button .arrow {
  margin-left: 20px;
}

.cta-button:hover {
  background-color: #7197b7;
  color: #fff;
  border-color: #7197b7;
}

.cta-button span {
  letter-spacing: 5px;
}

/* 当院について */
#aboutus {
  margin-top: 40px;
  padding: 20px 60px ;
  background-color: rgb(242, 250, 253);
}

#aboutus-text h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: bold; 
  margin-bottom: 40px;
  background-color: #7197b7;
  color: #ffffff;
  padding-left: 14px;
}

/* 画像とテキストを横並びにするFlexboxコンテナ */
#aboutus-left {
  display: flex;
  justify-content: space-between;
  gap: 30px; /* 要素間のスペース */
  align-items: center;
  margin-bottom: 40px;
}

.aboutus-img {
  width: 300px;
  height: 300px;
  overflow: hidden;
  margin:0 20px 0 10px;
  border-radius: 50%;
  flex-shrink: 0; /* Flexbox内で幅が縮まないように固定 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* 円形に軽い影をつける */
}

.aboutus-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 15%; 
}

/* テキストエリアの設定 */
#aboutus-text {
  width: 60%; 
}

#aboutus-text h3 {
  color: #2c5d8a;
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 5px;
  padding-left: 10px;
  border-left: 4px solid #4281b6;
}

#aboutus-text p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* お知らせセクション全体 */
#news {
  margin-top: 40px;
  padding: 20px 60px;
}

/* お知らせ一覧コンテナ */
#news-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 各おしらせアイテム */
.news-item {
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}

/* 開閉するヘッダー部分（日付とタイトル) */
.news-header {
  display: flex;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 0.95rem;
}

/* <summary>要素のデフォルトのマーカーを非表示にする */
.news-item > summary::-webkit-details-marker {
  display: none;
}

.news-item > summary::marker {
  display: none;
}

/* 開閉アイコン（右端の矢印）のスタイル */
.news-header::after {
  content: "▼";
  position: absolute;
  right: 0;
  font-size: 0.9rem;
  color: #4281b6;
  transition: transform 0.2s;
  font-family: Arial, sans-selif;
}

/* 開いている時のアイコンの向きを変える */
.news-item[open] .news-header::after {
  transform: rotate(180deg);
}

/* 日付 */
.news-date {
  font-size: 0.9rem;
  color: #777;
  flex-shrink: 0;
  width: 120px;
  margin-right: 20px;
}

/* タイトル */
.news-title {
  font-weight: normal;
  color: #333;
}

/* 記事コンテンツ（開く部分） */
.news-content {
  padding: 10px 30px 20px 140px;
}

/* 記事の本体 */
.news-body {
  line-height: 1.7;
  font-size: 0.9rem;
}

/* 記事内のリンク */
.news-body a {
  color: #2c5d8a;
  text-decoration: underline;

}


/* 当院概要 */
#company {
  margin-top: 40px;
}

#map iframe {
  width: 100%;
  height: 400px;
}

#company-container {
  margin: 20px 0 30px 0;
  display: flex;
  position: relative;
}

#company-info {
  font-family: 'Zen Old Mincho', serif;
  color: #666;
}

#company-info h3 {
  margin: 20px 75% 10px 0;
  padding-left: 10px;
  background-color: #7197b7;
  color: #ffffff;
}

#company-container .transition {
  position: absolute;
  bottom: 0;
  right: 30px;
}

#calender {
  width: 300px;
  height: 300px;
  position: absolute;
  right: 30px;
}


#calender > iframe {
  width: 100%;
}

/* フッター */
#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; 
  padding: 10px 0;
  border-top: 1px solid #eee;
  
}

#footer-logo-div {
  max-width: 540px;
  line-height: 1;
}

#footer-logo > img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
}

/* フッターリンク */

#footer-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.85rem;
  align-items: center;
}

#footer-link li {
  list-style: none;
}

#footer-link a {
  text-decoration: none;
  padding: 0 10px;
  color: #4281b6;
  white-space: nowrap;
}

#footer-link a:not(:first-child) {
  border-left: 1px solid #ccc;
}


#footer-link a:hover {
  text-decoration: underline;
}

#copyright-div {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

#copyright {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}

/* departments.html用スタイル */
/* 診療科目メインビジュアル */
#departments-main {
  margin-top: 20px;
  height: 500px;
  position: relative;
}

#departments-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

#departments-title {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 250px;
  color: #ffffff;
  background-color: #4281b6;
  bottom: 0;
  z-index: 11;
}

#departments-title h2 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Zen Old Mincho', serif;
  margin: 0;
  transform: translateY(-20px);
}

#departments-title > h2 > span {
  font-size: 20px;
}

/* コンテナ全体の設定 */
#departments-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-bottom: 60px;
}

/* 診療科目アイテム */
.departments-item {
  width: 50%;
  padding: 20px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  border-radius: 8px;
}

/* 画像エリアの設定 */
.departments-image {
  width: 80px;
  flex-shrink: 0;
}

.departments-image img {
  width: 100%;
  height: auto;
}

/* テキストエリアの設定 */
.departments-text {
  flex-grow: 1;
}

.departments-text h3 {
  color: #4281b6;
  font-size: 1.2rem;
  margin-top: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #eef;
}

.departments-text p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.departments-text ul {
  list-style: none;
  padding-left: 0;
}

.departments-text ul li {
  font-size: 0.85rem;
  color: #666;
  position: relative;
  padding-left: 15px;
  margin-bottom: 3px;
}

.departments-text ul li::before {
  content: "■";
  color: #7197b7;
  font-size: 0.7rem;
  position: absolute;
  left: 0;
  top: 2px;
}

/* staff.html用のスタイル */
/* スタッフ紹介メインビジュアル */
#staff-main {
  margin-top: 20px;
  height: 500px;
  position: relative;
}

#staff-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

#staff-title {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 250px;
  color: #ffffff;
  background-color: #4281b6;
  bottom: 0;
  z-index: 11;
}

#staff-title h2 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Zen Old Mincho', serif;
  margin: 0;
  transform: translateY(-20px);
}

#staff-title > h2 > span {
  font-size: 20px;
}

/* 院長紹介セクション */
#director-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  align-items: center;
  padding: 40px 0 60px;
  margin-top: 30px;
  background-color: #f2fafc;
}

/* 院長写真 */
#director-image {
  width: 463px;
  height: 500px;
  overflow: hidden;
  margin-left: 20px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#director-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* 院長テキストエリア */
#director-text {
  max-width: 600px;
}

#director-text h2 {
  font-size: 1rem;
  color: #666;
  font-weight: normal;
}


#director-text h3 {
  font-size: 1.5rem;
  color: #2c5d8a;
  border-bottom: 3px solid #7197b7;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

#director-text h3 span {
  font-size: 0.8rem;
  margin-left: 10px;
  color: #666;
  font-weight: normal;
}

#director-text p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

#director-text ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: #555;
}

/* スタッフ一覧セクション */
#staff-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  padding-bottom: 60px;
}

/* スタッフ個別アイテム */
.staff-item {
  width: calc((100% - 30px) / 2);
  padding: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

/* スタッフ画像 */
.staff-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top ;
}


/* スタッフテキスト */
.staff-text h3 {
  font-size: 1.3rem;
  color: #4281b6;
  margin-bottom: 5px;
}

.staff-text h3 span {
  font-size: 0.8rem;
  margin-left: 8px;
  color: #666;
  font-weight: normal;
}

.staff-text p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.staff-text ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  color: #555;
}

/* ブログページ（announcement.html）用スタイル */
/* メインビジュアル */
#blog-main {
  margin-top: 20px;
  height: 500px;
  position: relative;
}

#blog-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

/* タイトルボックス */
#blog-title {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 250px;
  color: #ffffff;
  background-color: #4281b6;
  bottom: 0;
  left: 0;
  z-index: 11;
  padding: 20px;
}

#blog-title h2 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Zen Old Mincho', serif;
  margin: 0;
  transform: translateY(-20px);
}

#blog-title > h2 > span {
  font-size: 20px;
}

/* ブログ一覧のコンテナ */
#blog-list {
  max-width: 900px;
  margin: 40px auto 60px;
}

/* 各ブログ記事アイテム */
.blog-item {
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}

/* 開閉するヘッダー部分（日付、タイトル、カテゴリ） */
.blog-header {
  display: flex;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.blog-item:hover .blog-header {
  background-color: #f7f7f7;
}

/* <summary>要素のデフォルトマーカーを非表示にする */
.blog-item > summary::-webkit-details-marker {
  display: none;
}

.blog-item > summary::marker {
  display: none;
}

/* 開閉アイコン（右端の矢印）のスタイル */
.blog-header::after {
  content: "▼";
  position: absolute;
  right: 0;
  font-size: 0.9rem;
  color: #7197b7;
  transition: transform 0.2s;
  font-size: Arial, sans-serif;
}

/* 開いている時のアイコンの向きを変える */
.blog-item[open] .blog-header::after {
  transform: rotate(180deg);
}

/* 日付 */
.blog-date {
  font-size: 0.85rem;
  color: #777;
  flex-shrink: 0;
  width: 120px;
  margin-right: 20px;
}

/* カテゴリタグ */
.blog-category {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #4281b6;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 20px;
  margin-right: 20px;
}

/* カテゴリ内のリンクを白くする */
.blog-category a {
  color: #ffffff;
  text-decoration: none;
}


/* タイトル（残りの幅を全て使う） */
.blog-title {
  font-weight: bold;
  color: #333;
  flex-grow: 1;
}

/* 記事コンテンツ（開く部分） */
.blog-content {
  padding: 10px 30px 20px 140px;
}

/* 記事の本体 */
.blog-body {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #444;
  white-space: pre-wrap;
}

.blog-body p {
  margin-bottom: 15px;
}

/* ------------------------------*/
/* ページネーションのスタイル */
/* ------------------------------*/

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
}

.page-numbers {
  display: block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  color: #4281b6;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
}

/* 現在のページ */
.page-numbers.current {
  background-color: #4281b6;
  color: #fff;
  border-color: #4281b6;
  pointer-events: none;
}

/* ホバー時のスタイル */
.page-numbers:not(.current):hover {
  background-color: #f0f0f0;
}

/* 「前へ」「次へ」の記号を非表示にする */
.pagination .prev,
.pagination .next {
  font-weight: bold;
}

/* ------------------------------------------------*/
/* お問い合わせフォーム(page-contact.php)用のスタイル */
/* ------------------------------------------------*/
#contact-main {
  margin-top: 20px;
  height: 500px;
  position: relative;
}

#contact-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

#contact-title {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 250px;
  color: #ffffff;
  background-color: #4281b6;
  bottom: 0;
  z-index: 11;
}

#contact-title h2 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Zen Old Mincho', serif;
  margin: 0;
  transform: translateY(-20px);
}

#contact-title > h2 > span {
  font-size: 20px;
}

/* お問い合わせフォーム（Contact Form 7）用スタイル */
#contact-form-section {
  max-width: 700px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* フォームのリード文 */
.contact-lead-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #444;
}

/* CF7が出力する各項目に上下の余白を確保 */
.wpcf7-form p {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* テキスト入力欄とテキストエリア */
.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* 送信ボタン */
.wpcf7-submit {
  display: block;
  width: 250px;
  margin: 30px auto 0;
  padding: 12px 20px;
  background-color: #4281b6;
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.1rem;
}

.wpcf7-submit:hover {
  background-color: #2c5d8a;
}

/* ------------------------------------------------*/
/* ご予約フォーム(page-reservation.php)用のスタイル */
/* ------------------------------------------------*/
#reservation-main {
  margin-top: 20px;
  height: 500px;
  position: relative;
}

#reservation-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

#reservation-title {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 250px;
  color: #ffffff;
  background-color: #4281b6;
  bottom: 0;
  z-index: 11;
}

#reservation-title h2 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Zen Old Mincho', serif;
  margin: 0;
  transform: translateY(-20px);
}

#reservation-title > h2 > span {
  font-size: 20px;
}

/* ご予約フォーム（Contact Form 7）用スタイル */
#reservation-form-section {
  max-width: 700px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* フォームのリード文 */
.reservation-lead-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #444;
}

/* CF7が出力する各項目に上下の余白を確保 */
.wpcf7-form p {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* テキスト入力欄とテキストエリア */
.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* 送信ボタン */
.wpcf7-submit {
  display: block;
  width: 250px;
  margin: 30px auto 0;
  padding: 12px 20px;
  background-color: #4281b6;
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.1rem;
}

.wpcf7-submit:hover {
  background-color: #2c5d8a;
}


/* 404（Not Found）ページのスタイル */
#not-found {
  padding: 80px 20px;
  background-color: #f7fcfb;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 30px auto 20px;
}

.error-page-content {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.error-page-content h2 {
  font-size: 1.8rem;
  color: #e67c73;
  margin-bottom: 20px;
  font-family: 'Noto Serif JP', serif;
}

.error-page-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.guidance {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
}

.guidance ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.guidance li{
  margin-top: 20px 0 0;
  list-style: none;
}

.guidance a {
  text-decoration: none;
  display: inline-block;
  background-color: #4281b6;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-weight: bold;
  font-size: 1.1rem;
}

.guidance a:hover {
  background-color: #336a99;
}





/*=======================================================
スマートフォン用スタイル
=======================================================*/
@media screen and (max-width: 767px) {
  /* PC用ナビゲーション非表示 */
  #nav-pc {
    display: none;
  }

/* ボディの設定 */
body {
  margin: 0;
}  

/* ヘッダー */
/* ハンバーガーメニュー */
#menu-sp {
  display: block;
  background-color: transparent;
  padding: 0;
  border: none;
  
}

/* スマホ用ナビゲーションの表示切替 */
/* 初期状態、レイアウトと非表示設定 */
#nav-sp {
  background-color: rgba(223, 227, 235, 0.9);
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: none;
  z-index: 100;
}

/* ×ボタン */
#close {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: transparent;
  border: none;
}

#nav-sp nav ul {
  padding-left: 0;
}

#nav-sp nav li {
  list-style: none;
}

/* ナビゲーションメニュー用ロゴ */
#logo-sp-div {
  max-width: 200px;
  margin: 10px 0 60px 10px;
}

#logo-sp-div > a >img  {
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* ナビゲーションのリンクの装飾設定 */
#nav-sp nav a {
  display: block;
  color: #4281b6;
}

#nav-sp nav a:hover {
  text-decoration: underline;
}

#nav-sp .menu {
  text-decoration: none;
  margin: 10px 0 10px 40px;
  height: 44px;
  font-size: 16px;
}

/* メインビジュアル */
#main-visual {
  position: relative;
  height: 400px;
  margin-top: 20px;
}

#main-message {
  position: absolute;
  margin: 0;
  bottom: 0;
  left: 0;
  color: #ffffff;
  width: 100%;
  z-index: 11;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
}

#main-message h1 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-family: 'Zen Old Mincho', serif;
}

#main-message p {
  font-size: 0.7rem;
  margin-top: 5px;
  font-family: 'Zen Old Mincho', serif;
}

.slick-dots {
  bottom: 180px !important;
}


/* はじめに */
/* 大切にしていること */
.h2-iconl, 
.h2-iconr {
  width: 40px;
  height: auto;
}

.h2-iconl {
  margin-right: 15px;
}

.h2-iconr {
  margin-left: 15px;
}

.index-h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 2px;
  color: #4281b6;
}

/* 画像とテキストを横並びにするFlexboxコンテナ */
#concept-left {
  flex-direction: column;
  align-items: center;
}

/* テキストエリアの設定 */
.concept-text {
  width:80%; 
}

/* 当院の特徴 */
/* 画像とテキストを横並びにするFlexboxコンテナ */
#concept-right {
  flex-direction: column;
  align-items: center;
}

.transition {
  display: flex;
  flex-direction: row-reverse;
}

/* 当院について */
/* 画像とテキストを横並びにするFlexboxコンテナ */
#aboutus-left {
  display: flex;
  flex-direction: column;
}

/* テキストエリアの設定 */
#aboutus-text {
  width: 80%; 
}

/* お知らせセクション */
#news-list {
  padding: 0 10px;
}

.news-header {
  font-size: 0.8rem;
  padding: 10px 0;
}

.news-date {
  width: 90px;
  margin-right: 10px;
  font-size: 0.75rem;
}

.news-content {
  padding: 5px 15px 15px 5px;
}

.news-body {
  font-size: 0.85rem;
}

/* 当院概要 */
#company-container {
  flex-direction: column;
}

#company-info h3 {
  display: inline-block;
  margin: 20px 0;
  padding: 5px 60px 5px 10px;
  background-color: #7197b7;
  color: #ffffff;
}

#calender {
  width: 100%;
  position: relative;
  right: 0;
  margin: 60px 0;
}

/* CTAボタンのホバーエフェクトをモバイルでは解除 */
.cta-button:hover {
  background-color: transparent;
  color: #333;
  border-color: #333;
}

/* スタッフ紹介ページ（staff.html）のスマホ用スタイル */
/* メインビジュアルの高さ調整 */
#staff-main {
  height: 300px;
}

/* タイトルボックスの調整 */
#staff-title {
  width: 150px;
  height: 150px;
  padding: 10px;
}

#staff-title h2 {
  font-size: 1.3rem;
}

#staff-title > h2 >span {
  font-size: 0.7rem;
}

/* 診療科目ページ(departments.html)のスマホ用スタイル */
/* メインビジュアルの高さ調整 */
#departments-main {
  height: 300px;
}

/* タイトルボックスの調整 */
#departments-title {
  width: 150px;
  height: 150px;
  padding: 10px;
}

#departments-title h2 {
  font-size: 1.3rem;
}

#departments-title > h2 >span {
  font-size: 0.7rem;
}

.departments-item {
  width: 100%;
  padding: 15px;
}

.departments-image {
  width: 60px;
  margin: 0 auto;
}

/* 院長紹介セクション */
#director-container {
  flex-direction: column;
  gap: 30px;
  padding: 30px 20px 40px;
}

/* 院長写真 */
#director-image {
  width: 100%;
  height: 300px;
  margin: 0 auto;
}

/* スタッフ一覧セクション */
#staff-container {
  flex-direction: column;
  gap: 30px;
}

.staff-item {
  width: 100%;
  padding: 15px;
}

.staff-image {
  width: 100%;
  height: 300px;
  margin-bottom: 10px;
}

.staff-text h3 {
  font-size: 1.1rem;
}

.staff-text p {
  font-size: 0.85rem;
}

/* ブログページ(announcement.html)用のスマホスタイル */
/* メインビジュアルの高さ調整 */
#blog-main {
  height: 300px;
}

/* タイトルボックスの調整 */
#blog-title {
  width: 150px;
  height: 150px;
  padding: 10px;
}

#blog-title h2 {
  font-size: 1.3rem;
}

#blog-title > h2 >span {
  font-size: 0.7rem;
}

/* ブログ一覧コンテナ */
#blog-list {
  margin-top: 30px;
  padding: 0 10px;
}

.blog-header {
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 0.85rem;
  padding: 10px 0;
}

/* 日付 */
.blog-date {
  width: 80px;
  margin-right: 10px;
  font-size: 0.75rem;
  order: 1;
}

/* カテゴリタグ */
.blog-category {
  order: 3;
  width: auto;
  margin-left: 0;
  margin-top: 5px;
  font-size: 0.7rem;
  margin-left: auto;
  margin-right: 15px;
}

/* カテゴリ内のリンクを白くする */
.blog-category a {
  color: #ffffff;
  text-decoration: none;
}

/* タイトル */
.blog-title {
  flex-basis: 100%;
  order: 2;
  margin-top: 5px;
  margin-right: 40px;
}

/* 記事コンテンツ（開く部分） */
.blog-content {
  padding: 5px 15px 15px 15px;
}

.blog-body {
  font-size: 0.85rem;
}

/* お問い合わせフォーム（page-contact.php）のスマホ用スタイル */
#contact-main {
  height: 300px;
}

/* タイトルボックスの調整 */
#contact-title {
  width: 150px;
  height: 150px;
  padding: 10px;
}

#contact-title h2 {
  font-size: 1.3rem;
}

#contact-title > h2 >span {
  font-size: 0.7rem;
}


/* ご予約フォーム（page-reservation.php）のスマホ用スタイル */
#reservation-main {
  height: 300px;
}

/* タイトルボックスの調整 */
#reservation-title {
  width: 150px;
  height: 150px;
  padding: 10px;
}

#reservation-title h2 {
  font-size: 1.3rem;
}

#reservation-title > h2 >span {
  font-size: 0.7rem;
}

/* 404(NOt Found)ページのスマホ用スタイル */
#not-found {
  padding: 60px 10px;
  min-height: 400px;
}

.error-page-content {
  padding: 20px;
}

.error-page-content h2 {
  font-size: 1.4rem;
}

.guidance a {
  font-size: 1rem;
  padding: 10px 25px;
}


}