﻿ /*====================================================================================
■コンテンツページ共通
====================================================================================*/

table {
	border-top: 1px solid var(--main-color) !important;
	border-right: 1px solid var(--main-color) !important;
 }
th {
	white-space: nowrap;
	text-align: center;
	background: #f5e9e9 !important;
}
th, td {
	border-bottom: 1px solid var(--main-color) !important;
	border-left: 1px solid var(--main-color) !important;
	vertical-align: middle !important;
}
dl {
	display: flex;
	flex-wrap: wrap;
}
dt {
	width: 20%;
}
dd {
	width: 80%;
}
::marker {
	color: var(--main-color);
}
.l-content__body {
	padding-bottom: 100px;
}
.l-main {
	order: 2;
}

 /*タイトル*/
.c-postContent h2 {
	margin: 2em 0 1em 0;
	padding-bottom: .5em;
	border-bottom: 1px solid var(--ark-color--main);
	font-family: var(--font-serif);
	font-size: clamp(2rem, 1.8vw, 2.6rem);
	font-weight: 500;
}
.c-postContent h3 {
	color: var(--ark-color--main);
	border-left: 10px solid var(--ark-color--main);
	padding-left: 20px;
	margin: 1.5em 0 .5em 0;
	font-size: clamp(1.8rem, 1.9vw, 2rem);
}
.c-postContent h4 {
	color: var(--ark-color--link);
	margin: 2em 0 1em 0;
	font-size: clamp(1.8rem, 1.9vw, 2rem);
}
.c-pageTitle__main {
	text-align: left;
	color: #000;
	font-family: var(--font-serif);
	font-weight: 500 !important;
	font-size: clamp(2rem, 2.8vw, 3.2rem) !important;
	text-shadow: none;
}
.txt-right {
	text-align: right;
}
.txt-center {
	text-align: center;
}
.flex-contents {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin: 40px 0 !important;
}
@media (max-width: 767px) {
	.flex-contents {
		flex-direction: column;
		gap: 20px;
		margin: 16px 0 20px 0 !important;
	}
}
.flex-contents img {
	width: 400px;
}
 @media (max-width: 767px) {
	.flex-contents img {
		width: 100%;
		margin: 0 0 20px 0;
	}
}
.flex-contents .txt-contents h4:first-child {
	margin-top: 0;
}
 @media (max-width: 767px) {
	 .flex-contents .txt-contents .btn-more-link {
		 margin: 5% auto;
	 }
}
.grid-contents {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
}
.grid-contents .item .txt-box {
	margin: .75em 0 0 0;
}
.grid-contents .item .txt-box h3:first-child {
	margin-top: 0;
}


 /*====================================================================================
■カテゴリー（親）ページ
====================================================================================*/

.child-pages {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
@media (max-width: 767px) {
	.child-pages {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
.child-pages__title {
	position: relative;
	padding: 0 2em 0 0;
	color: #000;
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 1.9vw, 2rem);
	transition: var(--transition);
}
.child-pages__title::after {
	position: absolute;
	right: 16px;
	width: 10px;
	height: 19px;
	background: url(img/common/arrow-brn.png) no-repeat;
	background-size: contain;
	content: '';
	transition: var(--transition);
	transform: translateY(0) translateX(0);
	top: 50%;
	transform: translateY(-50%);
}
@media (max-width: 767px) {
	.child-pages__title::after {
		right:0;
	}
}
.child-pages__item a:hover .child-pages__title::after {
	transform: translateY(-50%) translateX(8px);
}
.child-pages__item a:hover .child-pages__title {
	color: var(--hover-color);
}
.child-pages__thumb {
	aspect-ratio: 400 / 276.52;
	overflow: hidden;
}
.child-pages__thumb img {
	object-fit: cover;
	height: 267px;
}


 /*====================================================================================
■サイドバー
====================================================================================*/

.sidebar-pages__list {
	list-style: none;
	border: 1px solid var(--main-color);
	background: #FAFAFA;
	border-radius: 5px;
	padding: 0;
	font-family: var(--font-serif);
}
.sidebar-pages__parent {
	position: relative;
	background: var(--main-color);
	transition: var(--transition);
}
.sidebar-pages__parent:hover {
		opacity:0.9;
}
.sidebar-pages__parent::after {
	content: '';
	width: 10px;
	height: 10px;
	border: 0;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	transform: rotate(45deg);
	position: absolute;
	top: 0;
	right: 15px;
	bottom: 0;
	margin: auto;
}
.sidebar-pages__parent a,
.sidebar-pages__parent a:hover {
	display: block;
	padding: .75em 1em;
	color: #fff;
	font-weight: bold;
}
.sidebar-pages__children {
	margin: 1.25em 1em;
	padding: 0 0 0 1.25em;
	list-style: none;
}
.sidebar-pages__children li {
	position: relative;
	margin: 15px 0;
	line-height: 1.4;
}
.sidebar-pages__children li::before {
	content: '';
	position: absolute;
	top: calc(0.5lh - 4px);
	left: -20px;
	width: 8px;
	height: 8px;
	border: 0;
	border-top: solid 2px var(--main-color);
	border-right: solid 2px var(--main-color);
	transform: rotate(45deg);
}
.sidebar-pages__children li a {
	display: block;
	color: #000;
}
.sidebar-pages__children .is-current a,
.sidebar-pages__children li a:hover {
	color: var(--main-color);
}


 /*====================================================================================
■問い合わせフォーム
====================================================================================*/

.contact_form {
	margin-top:30px;
}
.contact_form__table {
	width: 100%;
	border-top: 1px solid #ddd;
	margin: 0 auto 30px;
}
.contact_form__table th {
	font-size: 16px;
	text-align: left;
	vertical-align: top;
	padding: 25px 60px 25px 20px;
	overflow: hidden;
	border-bottom: 1px solid #ddd;
	width: 28%;
	white-space: nowrap;
	position: relative;
}
@media (max-width: 767px) {
	.contact_form__table th {
		display:block;
		width: 100%;
	}
}
.contact_form__table td {
	padding: 1em !important;
	border-bottom: 1px solid #ddd;
	font-size: 16px;
}
@media (max-width: 767px) {
	.contact_form__table td {
		display:block;
	}
}
.mwform-checkbox-field input,
.mwform-radio-field input {
    margin-right: 4px !important;
}
.mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 1em !important;
}
.mwform-zip-field {
	display: flex;
	align-items: center;
	margin: 0 0 12px 0;
}
.mwform-zip-field input {
	margin: 0 4px;
}
#contact_form #ken {
	width: 150px;
	margin: 0 0 12px 0;
}
.page_guide {
	text-align: center;
	margin: 50px;
	padding-top: 30px;
}
.required {
	background: var(--ark-color--link);
	color: #fff;
	font-size: 1.4rem;
	padding: 2px 6px 4px 6px;
	margin-right: 8px;
}
.agree-box {
	text-align: center;
}
.agree-box__title {
	text-align: center;
	margin: 0 0 25px;
}
.agree-input {
	text-align: center;
	padding: 25px 0 0;
}
.wpcf7-submit {
	width: 450px;
	padding: 10px;
	background: var(--main-color);
	color: #fff;
}
.contact_form__table input[type="text"],
.contact_form__table input[type="email"],
.contact_form__table select,
.contact_form__table textarea {
	max-width: 100%;
	border: 1px solid #bbb;
	box-sizing: border-box;
	width: 100%;
}
.wpcf7-backbtn {
	width: 150px;
	padding: 10px;
	background: #c2c2c2;
	color: #fff;
}


 /*====================================================================================
■三保の森クリニック
====================================================================================*/

/* クリニック概要 */
.about-tbl th {
	text-align: left;
	width: 20%;
}

/* 受付・診療時間 */
.examination {
	display: flex;
}
.examination dt {
	display: flex;
	align-items: center;
}
.examination dt::after {
	content: "";
	margin: auto;
	width: 50%;
	display: block;
	height: 2px;
	background: radial-gradient(circle, var(--main-color) 49%, transparent 50%);
	background-size: 6px 2px;
}

/* 外来担当表 */
.schedule {
  table-layout: fixed;
  width: 100%;
}
.schedule td {
  text-align: center;
}
.kome {
  font-size: 0.9em;
  margin-left: 5px;
}
@media (max-width: 767px) {
  .schedule {
    table-layout: auto;
    width: 100%;
  }
  .schedule tbody{
    display: grid;
    grid-template-columns: 1fr;
  }
  .schedule tr{
    display: contents;
  }
  .schedule tr:nth-child(1) th:first-child{
    display: none;
  }
  .schedule tr:nth-child(2) th,
  .schedule tr:nth-child(3) th{
    display: none;
  }
  .schedule tr:nth-child(1) th{
    text-align: left;
    font-weight: 700;
    padding: 10px 12px 6px;
    border-top: 1px solid #ddd;
  }
  .schedule td{
    text-align: left;
    padding: 6px 12px 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 12px;
    align-items: baseline;
  }
	.schedule tr:nth-child(2) td {
		border-bottom: 1px solid #ccc !important;
	}
  .schedule tr:nth-child(2) td::before{
    content: "午前";
    font-weight: 700;
    white-space: nowrap;
  }
  .schedule tr:nth-child(3) td::before{
    content: "午後";
    font-weight: 700;
    white-space: nowrap;
  }
	
  /* 月 */
.schedule tr:nth-child(1) th:nth-child(2){ grid-row: 1; }
.schedule tr:nth-child(2) td:nth-of-type(1){ grid-row: 2; }
.schedule tr:nth-child(3) td:nth-of-type(1){ grid-row: 3; }

/* 火 */
.schedule tr:nth-child(1) th:nth-child(3){ grid-row: 4; }
.schedule tr:nth-child(2) td:nth-of-type(2){ grid-row: 5; }
.schedule tr:nth-child(3) td:nth-of-type(2){ grid-row: 6; }

/* 水 */
.schedule tr:nth-child(1) th:nth-child(4){ grid-row: 7; }
.schedule tr:nth-child(2) td:nth-of-type(3){ grid-row: 8; }
.schedule tr:nth-child(3) td:nth-of-type(3){ grid-row: 9; }

/* 木 */
.schedule tr:nth-child(1) th:nth-child(5){ grid-row: 10; }
.schedule tr:nth-child(2) td:nth-of-type(4){ grid-row: 11; }
.schedule tr:nth-child(3) td:nth-of-type(4){ grid-row: 12; }

/* 金 */
.schedule tr:nth-child(1) th:nth-child(6){ grid-row: 13; }
.schedule tr:nth-child(2) td:nth-of-type(5){ grid-row: 14; }
.schedule tr:nth-child(3) td:nth-of-type(5){ grid-row: 15; }

/* 土 */
.schedule tr:nth-child(1) th:nth-child(7){ grid-row: 16; }
.schedule tr:nth-child(2) td:nth-of-type(6){ grid-row: 17; }
.schedule tr:nth-child(3) td:nth-of-type(6){ grid-row: 18; }
}

/* 医師の紹介 */
.profile-contents {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}
@media (max-width: 767px) {
	.profile-contents {
		flex-wrap: wrap;
		gap: 24px;
	}
}
.profile-box {
	width: 100%;
}
.profile-contents img {
	order: 2;
}
@media (max-width: 767px) {
	.profile-contents img {
		order: 0;
	}
}
.profile-box h3:first-child {
	margin-top: 0;
}
.profile-box dl dt {
	width: 15%;
	margin: 0 0 4px 0;
}
.profile-box dl dd {
	width: 85%;
	margin: 0 0 4px 0;
}
@media (max-width: 767px) {
	.profile-box dl dt {
		width: 25%;
	}
	.profile-box dl dd {
		width: 75%;
	}
}

/*院内紹介・医療機器について*/

/*よくある質問*/
.area01 {
}
.inner {
	margin: 20px auto;
}
.qa_box {
	margin-bottom: 20px;
	border: 1px solid var(--ark-color--main);
}
.qa_box .qa_q {
	position: relative;
	cursor: pointer;
	font-family: var(--font-serif);
}
.toggle_icon {
	position: absolute;
	top: 50%;
	right: 5px;
	width: 20px;
	height: 20px;
	margin-top: -15px;
}
.toggle_icon:before {
	position: absolute;
	top: 8px;
	right: 8px;
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 16px solid var(--ark-color--main);
	margin: auto;
	box-sizing: border-box;
	vertical-align: middle;
}
.qa_q.open .toggle_icon:before {
	position: absolute;
	content: "";
	margin: auto;
	box-sizing: border-box;
	vertical-align: middle;
	background: var(--ark-color--main);
	width: 20px;
	height: 2px;
	border: none;
	top: 50%;
}
.q_txt {
	display: block;
	padding: .75em 3em .75em 4em;
	position: relative;
	line-height: 1.5;
	font-size: clamp(1.6rem, 1.2vw, 1.8rem);
}
.qa_q::before {
	content: "Q";
	position: absolute;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: auto;
	height: 100%;
	aspect-ratio: 1 / 1;
	padding: 0 0 .2em 0;
	background: var(--ark-color--main);
	color: #fff;
	font-size: clamp(2rem, 2.5vw, 3rem);
	font-weight: bold;
	line-height: 1;
}
@media (max-width: 767px) {
	.qa_q::before {
		display: block;
		width: 48px;
		padding: 12px 16px;
	}
}
.qa_box .qa_a {
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition: height .4s ease, opacity .25s ease;
}
.qa_box .qa_a > * {
	overflow: hidden;
	min-height: 0;
}
.qa_box.is-open .qa_a {
	opacity: 1;
}
.qa_box.is-open .qa_a .qa_a_inner {
	padding: 20px 20px 20px 54px;
	margin: 20px;
	background: #FAFAFA;
}
@media (max-width: 767px) {
	.qa_box.is-open .qa_a .qa_a_inner {
		margin: 1em;
		padding: 1em 1em 1em 3em;
	}
}
.qa_a_inner {
	position: relative;
	margin: 20px;
	padding: 20px 20px 20px 54px;
	box-sizing: border-box;
	background: #FAFAFA;
}
@media (max-width: 767px) {
	.qa_a_inner {
		margin: 1em;
		padding: 1em 1em 1em 3em;
	}
}
.qa_a_inner::before {
	position: absolute;
	top: 5px;
    left: 20px;
	transform: none;
	content: "A";
	color: #009399;
	font-size: clamp(2rem, 2.5vw, 3rem);
	font-weight: 500;
	font-family: var(--font-serif);
	opacity: 0;
	transition: opacity .25s ease;
}
@media (max-width: 767px) {
	.qa_a_inner::before {
		top: 7px;
		left: 17px;
	}
}
.qa_box.is-open .qa_a_inner::before {
	opacity: 1;
}
@media (max-width: 767px) {
	.inner {
		width: auto;
	}
	.toggle_icon {
		right: 0.8rem;
	}
	.toggle_icon:before {
		width: 15px;
	}
	.toggle_icon:after {
		height: 15px;
		right: 7px;
	}
}
@media screen and (max-width: 480px) {
	.toggle_icon {
		right: 0.4rem;
	}
 }
.qa-category-btn {
	display: grid;
	max-width: 620px;
	margin: 0 auto;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
@media (max-width: 767px) {
	.qa-category-btn {
		grid-template-columns: 1fr;
	}
}
.qa-category-btn .item a {
	border: 2px solid var(--main-color);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1em 0;
	background: #FFF8F8;
	color: var(--main-color);
	font-family: var(--font-serif);
}
.qa-category-btn .item a:hover {
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15);
}