/*
Theme Name: msd
Author: M+S design
Description: msd classic starter theme
Version: 1.0
Text Domain: msd
*/

* {
box-sizing: border-box;
}
html{
	font-size:18px;
}
body {
	margin: 0;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-weight:400;
	line-height: 1.8;
}

a {
	color: inherit;
	text-decoration: none;
}
div {
	box-sizing:border-box;
}
article{
	padding:0 0 0 0;
}


.l-main{
	width:100%;
}
#main_content{
	width:90%;
	max-width:1000px;
	margin:0 auto;
	padding:40px 0;
}
#main_content pre {
  display: block;
  width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
}
.maincontentbox{
	font-size:1em;
}

h1.back{
	width:100%;
	background:url(img/g_back.gif);
	text-align:center;
	font-size:1.3rem;
	font-weight:700;
	padding:30px 20px;
	margin:0;
	border-top:5px solid #ddd;
}
.text-0 { font-size: 0.7rem; } /* 12px */
.text-ss { font-size: 0.8rem; } /* 14px */
.text-s { font-size: 0.9rem; } /* 16px */
.text-m { font-size: 1.1rem; } /* 20px */
.text-l { font-size: 1.3rem; } /* 23px */
.text-xl { font-size: 1.7rem; } /* 30px */
.text-xxl { font-size: 2.2rem; } /* 40px */

.sp{display:none;}
@media (min-width: 901px) and (max-width: 1024px) {
	html{
		font-size:16px;
	}

}

@media (max-width:  900px) {
	body{
		font-size:16px;
	}
.text-0 { font-size: 0.7rem; } /* 12px */
.text-ss { font-size: 0.8rem; } /* 14px */
.text-s { font-size: 0.9rem; } /* 16px */
.text-m { font-size: 1.0rem; } /* 20px */
.text-l { font-size: 1.2rem; } /* 23px */
.text-xl { font-size: 1.4rem; } /* 30px */
.text-xxl { font-size: 1.6rem; } /* 40px */
	
.pc{display:none;}
.sp{display:block;}
h1.back{
	width:100%;
	background:url(img/g_back.gif);
	text-align:left;
	font-size:1.15rem;
	font-weight:700;
	padding:30px 20px;
	margin:0;
	border-top:5px solid #ddd;
}

	
}
.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.aligncenter {
  display: block;
  margin: 20px auto;
}

.alignnone {
  margin: 20px 0;
}

#site-header {
	width:95%;
	max-width:1200px;
	margin: 0 auto;
	background: #fff;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.clinic-info {
  display: flex;
  flex-direction: column;
}

.header-left .logo img{
	width:90%;
	max-width:60px;
	height:auto;
}

.clinic-name {
	margin: 0;
	line-height: 1.1;
}

h1.clinic-name{
	font-weight:500;
	margin:0;
	padding:0;
}

#site-header ul{
	margin:0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
}
#site-header ul:after {
	  content: "";
	  clear: both;
	  display: block;
	}
#site-header  ul li {
	display: block;
	float: left;
	list-style-type: none;
	text-align: left;
	width: 50%;
	box-sizing: border-box;
	padding:0;
	margin:0;
}

/* 右側：予約ボタンと電話 */
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 予約ボタン */
.reserve-btn {
  background: #eb7c95; /* ピンク色 */
  color: #fff;
  padding: 5px 20px;
  border-radius: 8px;
}

/* 電話番号周り */
.tel-info {
  text-align: left;
  color: #7a233a; /* エンジ色 */
}

.tel-number {
	font-family: "Noto Serif JP", serif;
	font-weight: 500;
	line-height: 1;
	letter-spacing:1px;
	margin: 0px 0 5px 0;
}

/* 電話アイコン（疑似要素で入れる場合） */
.tel-number::before {
  content: "\f095";          /* Unicodeを指定 */
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; /* バージョンに合わせて指定 */
  font-weight: 900;          /* Solidタイプを使う場合は900が必須 */
  font-size: 1.4rem;           /* アイコンのサイズ */
  margin-right: 5px;        /* 番号との間隔 */
  display: inline-block;
  transform: rotate(10deg);  /* 少し傾けると画像に近い雰囲気になります */
}

.address {
  font-style: normal;
  color: #333;
}

@media (max-width:  900px) { 

	#site-header  ul li img{
		width:100%;
		height:auto;
	}
}


#fv{
	width:95%;
	max-width:1200px;
	margin:0 auto;
}
#fv img{
	width:100%;
	height:auto;
}

#news_time{
	display: flex;
	width:90%;
	max-width:1200px;
	margin:0 auto;
}
/* セクション全体のレイアウト */
#news-section {
	width:50%;
	padding-right:3em;
	border-right:1px solid #c6c6c6;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.news-header h2,
#time h2{
    color: #7a233a; /* 画像のエンジ色 */
}

.view-all {
    text-decoration: none;
	font-weight:500;
}

/* 投稿リストのスタイル */
.news-item {
    border-bottom: 1px solid #d2d2d2;
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    color: #000;
    gap: 20px;
}


.news-item .date {
    width: 5em;
}

/* カテゴリーラベルの共通設定 */
.category_top {
    padding: 2px 12px;
    border-radius: 5px;
    color: #fff;
    min-width: 100px;
    text-align: center;
}

/* カテゴリー別の色設定 (slugに合わせて追加) */
.category_top.ctg-01 { background-color: #f6e4e9; color: #8a2441; } /* 休診のお知らせ用ピンク */
.category_top.ctg-02 { background-color: #f0f0f0; color: #8a2441; } /* その他のお知らせ用薄ピンク */

.news-item .title {
    margin: 0;
    flex: 1;
    /* 長すぎる文字を省略する場合 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}



#time{
	width:50%;
	padding-left:3em;
}
/* 「診療時間」のピンクのラベル */
.time-label {
    display: inline-block;
    background-color: #eb7c95; /* ピンク */
    color: #fff;
    padding: 2px 15px;
    border-radius: 5px;
    margin-right: 15px;
}

/* ラベル横の時間テキスト */
.time-text {
    font-weight: 500;
}
/* ===== スマホ最終上書き ===== */
@media (max-width:  900px) {
  #news_time{
    display: flex;
    flex-direction: column;
  }

  #news-section,
  #time{
    width: 100% !important;
    padding: 0 !important;
  }

  #news-section{
	  padding-right:0px;
	 border-right: none;
	  border-bottom: 1px solid #c6c6c6;
	  padding-bottom: 0;
	  margin:0 0 20px 0;
  }

    .news-item a {
        flex-wrap: wrap;
        gap: 10px;
		padding:10px 0;
    }
    .news-item .title {
        width: 100%;
        flex: none;
    }

}
#naiyo{
	width:100%;
	background:#fff7f9;
	padding:60px 0;
	margin:30px 0;
}
#naiyo h2{
	color:#8a2441;
	font-family: "Noto Serif JP", serif;
	font-weight:500;
	text-align:center;
	padding:0;
	margin:0 0 30px 0;
}
#naiyo .b_text{
	width:90%;
	margin:0 auto;
	text-align:center;
	font-family: "Noto Serif JP", serif;
	font-weight:500;
}
#naiyo ul{
	margin:70px auto 0 auto;
	padding:0;
	display:flex;
	flex-wrap:wrap;
	width:90%;
	max-width:1200px;
}
#naiyo ul:after {
	  content: "";
	  clear: both;
	  display: block;
	}
#naiyo ul li {
	display: block;
	float: left;
	list-style-type: none;
	text-align: left;
	width: 25%;
	box-sizing: border-box;
	padding:20px;
	margin:0;
	font-size:0.9rem;
	line-height:25px;
}
#naiyo ul li img{
	width:100%;
	height:auto;
	border-radius:10px;
	display:block;
}
#naiyo ul li h3{
	font-family: "Noto Serif JP", serif;
	font-weight:500;
	text-align:center;
}
/* ===== スマホ最終上書き ===== */
@media (max-width:  900px) {
#naiyo{
	padding:30px 0;
	margin:30px 0;
}	
#naiyo h2{
	padding:0;
	margin:0 0 30px 0;
}
#naiyo .b_text{
	width:90%;
	margin:0 auto;
	text-align:left;
}
#naiyo ul{
	margin:30px auto 0 auto;
	width:90%;
}
#naiyo ul li {
	display: block;
	float: none;
	list-style-type: none;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
	padding:20px;
	margin:0;
	font-size:0.9rem;
	line-height:25px;
}
#naiyo ul li img{
	width:70%;
	height:auto;
	border-radius:10px;
	display:block;
	margin:0 auto;
}
}


#kensa{
	width:90%;
	max-width:1200px;
	margin:0 auto;
	padding:50px 0;
}
#kensa h2{
	color:#8a2441;
	font-family: "Noto Serif JP", serif;
	font-weight:500;
	text-align:center;
	padding:0;
	margin:0 0 30px 0;
}
#kensa .box {
	width:100%;
	display: flex;
    gap: 20px;
	
}
#kensa .box .kensanaiyo{
	width:50%;
}
#kensa .box .kensanaiyo_img{
	width:50%;
}
#kensa .box .kensanaiyo_img img{
	width:100%;
	height:auto;
}
/* ===== スマホ最終上書き ===== */
@media (max-width:  900px) {
#kensa{
	padding:30px 0;
}
#kensa .box {
	width:100%;
	display: flex;
    gap: 20px;
    flex-direction: column;
}
#kensa .box .kensanaiyo{
	width:100%;
}
#kensa .box .kensanaiyo_img{
	width:100%;
}
#kensa .box .kensanaiyo_img img{
	width:80%;
	height:auto;
	margin:0 auto;
	display:block;
}
}
#meesege{
	width:100%;
	padding:50px 0;
	background:url(img/g_back.gif);
}
#meesege h2{
	color:#8a2441;
	font-family: "Noto Serif JP", serif;
	font-weight:500;
	text-align:center;
	padding:0;
	margin:0 0 30px 0;
}
#meesege .w_box{
	background:#fff;
	padding:50px;
	border:2px solid #fee8ee;
	border-radius:10px;
	width:90%;
	max-width:1200px;
	margin:0 auto;
}
#meesege .text {
	text-align:center;
	font-weight:500;
	line-height:3;
	margin:0 auto;
	padding:0;
	width:95%;
}
#meesege .text span{
	font-size:14px;
}
#meesege .text_sub{
	text-align:center;
	font-weight:500;
	line-height:1.8;
	margin:0 auto;
	padding:10px 0;
	width:95%;
	
}
#meesege .keireki{
	border-top:2px solid #fee8ee;
}
#meesege .keireki ul{
	margin:0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
}
#meesege .keireki ul:after {
	  content: "";
	  clear: both;
	  display: block;
	}
#meesege .keireki ul li {
	display: block;
	float: left;
	list-style-type: none;
	text-align: left;
	width: 50%;
	box-sizing: border-box;
	padding:0 20px;
	margin:0;
}
#meesege .keireki ul li h4{
	color:#a3003d;
	font-weight:500;
}
@media (max-width:  900px) {
#meesege .w_box{
	background:#fff;
	padding:10px;
	width:90%;
}
#meesege .keireki ul li {
	display: block;
	float: none;
	list-style-type: none;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
	padding:10px;
	margin:0;
}	
#meesege .text-l {
	font-size:1.15em;
	line-height:2;
}
#meesege .text span{
	font-size:14px;
}
#meesege .text_sub{
	font-size:1.15em;
	text-align:left;
	font-weight:500;
	line-height:1.5;
	padding:10px 0;
	
}
}
footer{
	width:100%;
	max-width:1200px;
	margin:50px auto 0 auto;
	display: flex;
	padding:30px 0 20px 0;
}
footer .iin{
	width:50%;
	padding-right:40px;
}
footer .map{
	width:50%;
}
/* 親コンテナ */
.footer-info-area {
    text-align: center; /* 全体を中央寄せ */
    padding: 0 20px 40px 20px;
}

/* ロゴと医院名のブロック */
.footer-logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.footer-logo-block img{
   width:70px;
	height:auto;
}
.footer-clinic-name {
    text-align: left; /* 文字だけ左揃え */
}

.footer-clinic-name h2{
    margin:0;
	padding:5px 0;
	line-height:1;
	font-weight:500;
}
.footer-clinic-name .sub{
	margin:0;
	padding:0;
   
}


/* 住所・電話番号のライン */
.footer-address-text {
}

.footer-contact-line {
	padding-bottom:30px;
}

.footer-contact-line span {
	padding:0 10px;
}
.consultation-time-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* ピンクのラベル */
.time-badge {
    background-color: #eb7c95; /* 画像のピンク */
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
	font-weight:500;
}

/* スラッシュ部分の微調整 */
.time-details {
    letter-spacing: 0.02em;
}
.copy{
	text-align:right;
	width:95%;
	max-width:1200px;
	margin:0 auto;
}
@media (max-width: 900px){

  footer{
    flex-direction: column;
    padding:20px 0;
  }

  footer .iin,
  footer .map{
    width:100%;
    padding-right:0;
  }

  footer .iin{
    margin-bottom:20px;
  }
/* ピンクのラベル */
	.time-badge {
		display:block;
		width:6em;
		margin:0 auto;
    background-color: #eb7c95; /* 画像のピンク */
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
	font-weight:500;
}


  .consultation-time-wrapper{
    flex-direction: column;   /* ← 縦並び */
    text-align: center;       /* ← 文字中央 */
  }

  .time-details{
    text-align: center;
  }

}

/* ===== アーカイブ全体 ===== */
.archive-header {
  padding: 80px 20px 40px;
  text-align: center;
}

.archive-title {
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
}

.archive-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #eb7c95;
  margin: 20px auto 0;
}

/* ===== コンテンツ ===== */
.archive-content {
	width:90%;
	max-width: 900px;
	margin: 0 auto 100px;
	padding: 0 20px;
}

/* ===== 記事一覧 ===== */
.archive-list {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.archive-item {
  background: #fff;
	border:2px solid #fee8ee;
  border-radius: 8px; /* ← 指定どおり */
  padding: 24px 28px;
  margin-bottom: 24px;
}

.archive-item:hover {
	background:#fff7f9;
	transition: all .3s;
}
.archive-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.archive-item-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.archive-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f2f2f2;
  padding: 6px 12px;
  font-size: 0.9em;
	font-weight:500;
  color: #666;
  border-radius: 3px;
  margin-bottom: 10px;
}

.meta-separator {
  color: #aaa;
}



.archive-item-title a:hover {
  text-decoration: underline;
}




/* ===== WP-PageNavi ===== */
.wp-pagenavi {
  margin: 60px auto 0;
  text-align: center;
  font-size: 0;
}

/* 共通 */
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  min-width: 38px;
  height: 38px;  /* ← 追加 */
  padding: 8px 14px;
  margin: 0 4px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  border-radius: 8px;
  background: #fff7f9;
  color: #555;
  text-decoration: none;

}

/* 現在ページ */
.wp-pagenavi span.current {
  background: #eb7c95;
  color: #fff;
  font-weight: 600;
}

/* hover（動かさない） */
.wp-pagenavi a:hover {
  background: #fde6ec;
  color: #333;
}

/* 前後リンク */
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  padding: 8px 16px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;  /* ← 追加 */
  padding: 0 14px;
  border: none !important;
	background:#f9f9f9;
  font-size: 14px;
  line-height: 1;
}



.single-pager {
  margin: 80px auto 0;
  padding: 50px 0px;
	background:url(img/g_back.gif);
	border-top:1px solid #ddd;
	border-bottom:2px solid #ddd;
}

.single-pager-inner {
	width:90%;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

}
.single-pager .pager {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  text-decoration: none;
	box-shadow: 0 0 5px rgb(0 0 0 / 20%);

}

.single-pager .pager-label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}

.single-pager .pager-title {
  font-size: 0.95rem;
  line-height: 1.6;
}
.single-pager .prev {
  text-align: left;
}

.single-pager .next {
  text-align: right;
}
.single-pager-inner:has(.prev):not(:has(.next)),
.single-pager-inner:has(.next):not(:has(.prev)) {
  grid-template-columns: 1fr;
}




.site-header {
	width:100%;
	max-width:1200px;
	margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 両端に振り分ける */
  align-items: center;
  padding: 20px 40px;
  background: #fff;
}

/* 左側：ロゴと医院名 */
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-left .logo img{
	width:90%;
	max-width:60px;
	height:auto;
}

.clinic-name {
  margin: 0;
  line-height: 1.1;
}
h1.clinic-name{
	font-weight:500;
	margin:0;
	padding:0;
}


/* 右側：予約ボタンと電話 */
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 予約ボタン */
.reserve-btn {
  background: #eb7c95; /* ピンク色 */
  color: #fff;
  padding: 5px 20px;
  border-radius: 8px;
}

/* 電話番号周り */
.tel-info {
  text-align: left;
  color: #7a233a; /* エンジ色 */
}

.tel-number {
	font-family: "Noto Serif JP", serif;
	font-weight: 500;
	line-height: 1;
	letter-spacing:1px;
	margin: 0px 0 5px 0;
}

/* 電話アイコン（疑似要素で入れる場合） */
.tel-number::before {
  content: "\f095";          /* Unicodeを指定 */
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; /* バージョンに合わせて指定 */
  font-weight: 900;          /* Solidタイプを使う場合は900が必須 */
  font-size: 1.4rem;           /* アイコンのサイズ */
  margin-right: 5px;        /* 番号との間隔 */
  display: inline-block;
  transform: rotate(10deg);  /* 少し傾けると画像に近い雰囲気になります */
}

.address {
  font-style: normal;
  color: #333;
}
@media (max-width:  900px) {
.site-header {
	width:100%;
	max-width:1200px;
	margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 両端に振り分ける */
  align-items: center;
  padding: 20px 00px;
  background: #fff;
}
.header-left,
.header-right {
  align-items: left;
  gap: 10px;
}

.header-left img,
.header-right img{
  width:auto;
	height:40px;
}

/* 予約ボタンだけ上に出す */
.reserve-btn {
  background: #eb7c95; 
  color: #fff;
  padding: 5px 20px;
  border-radius: 8px;
  position: absolute;  /* header-rightを基準に上にずらす */
  top: -20px;          /* 好きな分だけ上に */
  right: 0;            /* 右端に揃える */
}
}



