.cms-posts a{
    color: #db7a2b;
    transition: all .3s ease-in-out;
}
.cms-posts a:hover{
    color: #000;
}

.cms-posts strong{
    font-weight: bold;
}
.cms-posts p{
    margin-bottom: 1em;
}

/* Page Template Specific Styles */
#breadcrumb ol {
  display: flex;
  flex-flow: row wrap;
  font-size: 14px;
  color: #FFF;
}

#breadcrumb ol li:after {
  content: ">";
  display: inline-block;
  vertical-align: middle;
  margin: 0 .5em;
  padding: 0;
  color: #999;
}

#breadcrumb ol li:last-child:after {
  content: "";
  margin-right: 0;
}

#breadcrumb ol li a {
  color: #FFF;
  text-decoration: none;
}

/* Unified button styles - 4 columns layout */
.btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.btn {
  align-items: center;
  background-color: var(--white-2);
  display: flex;
  justify-content: space-between;
  padding: 20px 15px;
  position: relative;
  flex: 0 0 calc(25% - 7.5px);
  min-width: 180px;
  max-width: calc(25% - 7.5px);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Unified button text styles */
.btn-text {
  margin-top: -1.00px;
  position: relative;
  width: fit-content;
  flex: 1;
}

/* Unified arrow styles */
.btn-arrow {
  aspect-ratio: 1;
  height: 20px;
  position: relative;
  width: 20px;
  flex-shrink: 0;
}


.pagetitle {
  align-items: flex-start;
  align-self: stretch;
    background: url("../img/page/header_bg.png") no-repeat right center var(--chambray);
    background-size: auto 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 200px;
  justify-content: center;
  padding: 0px 50px;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#page-title {
  color: var(--white);
  font-family: var(--font-family-noto_sans);
  font-size: var(--font-size-xxxxxxl);
  font-weight: 700;
  position: relative;
  width: fit-content;
}

.breadcrumb {
  height: 22px;
  position: relative;
}

.content {
  background: url(../img/content-1.png) left top no-repeat fixed;
  background-size: 100% auto;
  width: 100%;
  max-width: 100%;
  padding: 50px 0;
  overflow-x: hidden;
}

.section {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  text-align: left;
  padding: 0 20px;
  box-sizing: border-box;
}

.cms-posts ul{
    list-style: disc;
    margin-left: 2.5em;
}
.cms-posts ol{
    list-style: decimal;
    margin-left: 2.5em;
}
.cms-posts ul li,
.cms-posts ol li{
    margin-bottom: .7em;
}

.menu-btn-container,
ul.contentstop-menu{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  column-gap: 20px;
  row-gap: 20px;
  align-items: stretch;
  margin-bottom: 50px;
    list-style: none;
    margin: 0;
}
.page-child ul.contentstop-menu,
.post-type-archive-hospital .hospital-map-container ul.contentstop-menu{
    margin-bottom: 100px;
}

.menu-btn,
ul.contentstop-menu li{
  border: 1px solid var(--chateau-green);
    background-color: rgba( 255, 255, 255, 0.65 );
    list-style: none;
    margin: 0;
}

.menu-btn a ,
ul.contentstop-menu li a{
  display: block;
  padding: .9em 65px .9em 1.5em;
  background: url("../img/ar-green.svg") no-repeat right 30px center;
  font-size: 18px;
  color: #000;
  transition: all .3s ease-in-out;
}
.menu-btn a:hover ,
ul.contentstop-menu li a:hover{
  background: url("../img/ar-white.svg") no-repeat right 20px center var(--chateau-green);
  color: #FFF;
}

.contentstop-menu .current-menu-item > a,
.contentstop-menu .current_page_item > a {
  background: url("../img/ar-white.svg") no-repeat right 20px center var(--chateau-green);
  color: #FFF;
}
@media screen and (max-width: 1024px){
    .menu-btn a ,
    ul.contentstop-menu li a{
        font-size: 14px;
    }

    /* 見出しを除く全体的なテキストサイズを14pxに設定 */
    /* まず基本フォントサイズを設定 */
    body {
        font-size: 14px;
    }

    /* 本文テキスト要素を14pxに設定 */
    .content,
    .section,
    .cms-posts,
    .cms-posts p,
    .cms-posts li,
    .cms-posts ul li,
    .cms-posts ol li,
    p,
    li,
    span:not(#page-title):not(.h1):not(.h2):not(.h3):not(.h4),
    .text,
    .text p,
    .text-18,
    .text-26,
    .text-35,
    a.btn-normal {
        font-size: 14px !important;
    }

    /* ボタンのテキストも14pxに設定 */
    .btn,
    .btn-text,
    a.btn-normal {
        font-size: 14px !important;
    }

    /* 見出し要素は元のサイズに戻す（14pxの設定を上書き） */
    #page-title {
        font-size: var(--font-size-xxxxxxl) !important;
    }

    .h1,
    h1 {
        font-size: var(--font-size-xxxxxxl) !important;
    }

    .h2,
    h2 {
        font-size: var(--font-size-xxxl) !important;
    }

    .h3,
    h3 {
        font-size: var(--font-size-xxxl) !important;
    }

    .h4,
    h4 {
        font-size: var(--font-size-xxl) !important;
    }

    h5 {
        font-size: var(--font-size-xl) !important;
    }

    h6 {
        font-size: var(--font-size-l) !important;
    }

    table.normal caption,
    .cms-posts table caption {
        font-size: var(--font-size-xl) !important;
    }

    /* ナビゲーションメニューは除外（別途設定されているため） */
    .main-nav,
    .nav-link,
    #breadcrumb {
        font-size: inherit;
    }

    /* パンくずリストのフォントサイズは既に14px設定済み（20行目） */
}

a.btn-normal {
  background: #f3f3f3;
  display: block;
  padding: 1em 1.5em;
  text-decoration: none;
  color: #000;
  width: 300px;
  text-align: center;
  margin: 30px auto;
  border-top: 1px solid #ccc;
  position: relative;
  transition: all .3s ease-in-out;
}

a.btn-normal:hover {
  background: #ccc;
  color: #FFF;
}

.h1 {
  padding: 20px 0px;
  width: 100%;
  text-align: center;
  color: var(--black);
  font-family: var(--font-family-noto_sans);
  font-size: var(--font-size-xxxxxxl);
  font-weight: 700;
  letter-spacing: 0;
  line-height: normal;
  text-align: center;
  position: relative;
  margin-bottom: 1em;
}

.h1:before {
  content: "";
  height: 4px;
  width: 80px;
  background: #17A61E;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.h2 {
  background-color: #e4f0f7;
  border-top: 1px solid #92bdd8;
  padding: 20px;
  width: 100%;
  color: var(--black);
  font-family: var(--font-family-noto_sans);
  font-size: var(--font-size-xxxl);
  font-weight: 700;
  letter-spacing: 0;
  line-height: normal;
  margin: 1em 0;
}

.h3 {
  color: var(--black);
  font-family: var(--font-family-noto_sans);
  font-size: var(--font-size-xxxl);
  font-weight: 700;
  position: relative;
  padding-left: 50px;
  margin: 1em 0;
}

.h3:before {
  content: "";
  height: 1px;
  width: 40px;
  background: #000;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.h4 {
  color: var(--chambray);
  font-family: var(--font-family-noto_sans);
  font-size: var(--font-size-xxl);
  font-weight: 700;
  margin: 1em 0;
}

.h4:before {
  content: "■ ";
}
p.text,
.text p{
    padding-bottom: 1em;
}
.text-18 {
  align-self: stretch;
  margin-top: -1.00px;
}

.text-26 {
  align-self: stretch;
  margin-top: -1.00px;
}

.text-35 {
  align-self: stretch;
  margin-top: -1.00px;
}

/* Responsive adjustments for page content */
@media (max-width: 768px) {
  .pagetitle {
    padding: 0px 20px;
  }

  .section {
    padding: 0 15px;
  }

  .menu-btn-container,
  ul.contentstop-menu{
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .pagetitle {
    padding: 0px 15px;
    min-height: 150px;
  }

  #page-title {
    font-size: var(--font-size-xxxl);
  }
}


/*table
************************************************************************************/
.cms-posts table{}
table.normal,
.cms-posts table{
	margin: 5px auto 15px auto;
	width: 100%;
	border: 0;
	border-top: 1px solid #003376;
}
table.normal.auto,
.cms-posts table.auto{
	width: auto;
	margin: 5px 0 15px 0;
}
table.normal caption,
.cms-posts table caption{
	padding: 5px 0;
	text-align: left;
	display: block;
	font-weight: bold;
}
table.normal caption:before,
.cms-posts table caption:before{
	content: "■";
}

table.normal thead th,
.cms-posts table thead th{
	padding: 15px;
	border-bottom: 1px solid #003376;
	text-align: center;
	font-weight:bold;
	color: #FFF;
	background: #3865a1;
}
table.normal thead th a,
.cms-posts table thead th a{
	color:#FFF;
}
table.normal tbody th,
.cms-posts table tbody th{
	padding: 15px;
	text-align: left;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #003376;
	background: #f0f8fc;
}
table.normal.auto th,
.cms-posts table.auto th{
	padding: 1px 2em;
}

table.normal tbody td,
.cms-posts table tbody td{
	padding: 15px;
	border-bottom: 1px solid #003376;
	border-right: 1px solid #ccc;
	text-align: left;
}
table.normal tbody td:last-child,
.cms-posts table tbody td:last-child{
	border-right: 0;
}
table.normal.center td{
	text-align: center;
}

.table_caption{
	text-align: right;
}

/*スクロール*/

.table_scroll .sp_comment{
	display: none;
}
.table_scroll .scroll_body{}


@media screen and (max-width: 768px){
	.table_scroll .sp_comment{
		display: block;
		padding: 10px;
		border: 1px solid #ededed;
		margin: 10px 0;
	}
	.table_scroll .sp_comment:after{
		content: "※表が見切れている場合は、横にスクロールしてご覧いただけます";
		color: #666;
		display: block;
	}
	.table_scroll .scroll_body{
		width: 97%;
		margin: auto;
		overflow-x: scroll;
		font-size: 14px !important;
	}
	.table_scroll .scroll_body table{
		width: 1200px !important;
		font-size: 14px !important;
	}
	.table_scroll .scroll_body table th,
	.table_scroll .scroll_body table td,
	.table_scroll .scroll_body table.main th,
	.table_scroll .scroll_body table.main td,
	.table_scroll .scroll_body table.normal th,
	.table_scroll .scroll_body table.normal td{
		word-break: break-all;
		font-size: 14px !important;
	}
}

/*sp*/

@media screen and (max-width: 768px){
	table.smartphone,
	.cms-posts .smartphone table{
		display: block;
		width: 100%;
		border: 0 !important;
	}
	table.smartphone thead,
	.cms-posts .smartphone table thead{
		display: none;
	}
	table.smartphone tbody,
	.cms-posts .smartphone table tbody{
		display: block;
		width: 100%;
	}
	table.smartphone tr,
	.cms-posts .smartphone table tr{
		display: block;
		width: 100%;
	}
	table.smartphone th,
	table.smartphone td,
	.cms-posts .smartphone table th,
	.cms-posts .smartphone table td{
		display: list-item;
		width: 100% !important;
		padding: 10px 10px !important;
		box-sizing: border-box;
		display: block;
	}
	table.smartphone th,
	.cms-posts .smartphone table th{
		list-style-type: none;
		display: block;
	}

	table.smartphone td,
	.cms-posts .smartphone table td{
		margin-left: 0;
		list-style-type: none;
		border: 0 !important;
	}
}
/*pagelist*/
ul.page_navi{
	text-align: center;
}
ul.page_navi li{
	margin: 10px 0 15px 0;
	background: none;
	padding: 0;
	list-style-type: none;
	display: inline-block;
	font-size: 18px;
	font-weight: 600;
}

ul.page_navi li span{
	background: #666565;
	border: 2px solid #666565;
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	line-height: 2.5;
	margin: 0 5px;
	display: block;
		-webkit-transition: all 0.9s ease-in-out;
		-moz-transition: all 0.9s ease-in-out;
		-o-transition: all 0.9s ease-in-out;
		transition: all 0.9s ease-in-out;
}
ul.page_navi li a{
	background: #c9c9ca;
	border: 2px solid #c9c9ca;
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	line-height: 2.5;
	margin: 0 5px;
	display: block;
	text-decoration: none;
		-webkit-transition: all 0.9s ease-in-out;
		-moz-transition: all 0.9s ease-in-out;
		-o-transition: all 0.9s ease-in-out;
		transition: all 0.9s ease-in-out;
}

ul.page_navi li:first-child a{
	border: 2px solid #666565;
	background: #FFF url(../img/pagenav_prev.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
	display: block;
	text-indent: -9999px;
}
ul.page_navi li:last-child a{
	border: 2px solid #666565;
	background: #FFF url(../img/pagenav_next.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
	display: block;
	text-indent: -9999px;
}

ul.page_navi li:hover span,
ul.page_navi li:hover a{
	background: #666565;
}
ul.page_navi li:first-child:hover a{
	border: 2px solid #666565;
	background: #FFF url(../img/common/pagenav_prev.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
}
ul.page_navi li:last-child:hover a{
	border: 2px solid #666565;
	background: #FFF url(../img/common/pagenav_next.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
}
