:root {
	--main-color: #52311b;
	--sub-color: #DCD4C9;
	--text-padding: 0.67em 1em;
}
body {
  background-color: #FFFDF5;
  color: var(--main-color);
}

body #header {
  background-color: var(--main-color);
  color: #FFF;
  padding-block: 30px;
}
body #header a {
  color: #FFF;
}
body #header h1 {
  font-weight: bold;
}
body#admin #header .headWrap {
	display: flex;
	flex-direction: column;
	padding-inline: 15px;
}
body#admin #header .headWrap .headRight .logout {
	display: flex;
	gap: 0.5em;
}
body#admin #header .headWrap .headRight .logout a {
	background-color: var(--sub-color);
	color: var(--main-color);
	padding: var(--text-padding);
	display: block;
	border-radius: 8px;
	overflow: hidden;
	font-size: 12px;
}
@media (max-width: 768px) {
  body#admin #header .headWrap .headRight .logout {
		justify-content: center;
		gap: 1em;
  }
  body#admin #header .headWrap .headRight .logout a {
		flex-basis: calc(50% - 0.5em);
  }
}
@media (min-width: 769px) {
  body #header h1 {
    font-size: 22px;
  }
  body#admin #header .headWrap {
    flex-direction: row;
		align-items: center;
  }
  body#admin #header h1 {
		margin-right: auto;
  }
body#admin #header .headWrap .headRight {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-end;
}
}
.contents {
  padding: 45px 15px;
}
.contents > div {
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: 50px;
}

#front .contents {
  background-image: url("../img/garland.png");
  background-position: 0 0;
  background-repeat: repeat-x;
}
.contents h2.midashi {
  position: relative;
  display: inline-block;
  padding: 0 65px;
  text-align: center;
	font-weight: bold;
	font-size: 1.5rem;
	margin-bottom: 1em;
}
.contents h2.midashi:before,
.contents h2.midashi:after {
  position: absolute;
  top: calc(50% - 3px);
  width: 50px;
  height: 6px;
  content: '';
  border-top: 2px solid var(--sub-color);
  border-bottom: 2px solid var(--sub-color);
}
.contents h2.midashi:before {
  left: 0;
}
.contents h2.midashi:after {
  right: 0;
}
@media (min-width: 769px) {
.contents h2.midashi {
	font-size: 2rem;
}
}
.contents .lead {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
	gap: 1em;
  text-align: left;
  line-height: 1.8;
}
.contents .lead ul.flex {
	display: flex;
	flex-direction: column;
}
.contents .lead ul.flex li {
	padding-inline: 1em;
}
.contents .lead ul.flex li.time {
	border: 1px solid #000;
}
.contents .lead a.tel {
	text-decoration: none;
}
@media (max-width: 768px) {}
@media (min-width: 769px) {
  .contents .lead {
    font-size: 18px;
  }
.contents .lead ul.flex {
	flex-direction: row;
}
}
.calenderHead {
  display: flex;
	flex-direction: column;
	gap: 15px;
  margin-bottom: 30px;
}
.calenderHead h2 {
  line-height: 1;
  font-weight: bold;
  font-size: 16px;
}
.calenderHead h2 strong {
  font-weight: bold;
  font-size: 2.5rem;
}
.calenderHead ul.next-prev {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.calenderHead ul.next-prev li .grace {
  border: 1px solid var(--main-color);
  background-color: var(--sub-color);
  height: 40px;
  min-width: 40px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .calenderHead h2 {
		margin-right: auto;
  }
.calenderHead ul.next-prev {
		margin-left: auto;
}
}
@media (min-width: 769px) {
  .calenderHead {
		flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  }
  .calenderHead h2 {
    font-size: 22px;
  }
  .calenderHead ul.next-prev li .grace {
    height: 40px;
    min-width: 50px;
  }
}
.calender .schedule table {
  width: 100%;
  margin-bottom: 50px;
}
.calender .schedule table tbody td {
  background-color: #FFF;
}
.calender .schedule table tbody td.none {
  background-color: #F2F2F3;
}
.calender .schedule table tbody td.yoyakuok {
  background-color: #dcd4c9;
}
.calender .schedule table tbody tr td.san .date span.num, .calender .schedule table tbody tr td.holiday .date span.num {
  color: #AD3333;
}
.calender .schedule table tbody tr td.sat .date span.num {
  color: #314AAC;
}
.calender .schedule table tbody tr td .date span.num {
  font-weight: bold;
}
.calender .schedule table tbody tr td .date span.holidayname {
  font-size: 70%;
}
.calender .schedule table tbody tr td [class*=label] a {
  display: block;
  border-radius: 5px;
  background-color: rgba(192, 192, 192, 0.2);
}
#front .calender .schedule table tbody tr td [class*=label] a {
  padding: 1em;
  text-align: center;
}
#admin .calender .schedule table tbody tr td .labels {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
#admin .calender .schedule table tbody tr td [class*=label] span,
#admin .calender .schedule table tbody tr td [class*=label] a {
  padding: 8px;
}
.calender .schedule table tbody tr td [class*=label] a.add-link {
	background-color: var(--main-color);
	color: #FFF;
}
.calender .schedule table tbody tr td [class*=label] a:hover {
  background-color: rgba(255, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .calender .schedule table {
    width: 100%;
    margin-bottom: 50px;
  }
  .calender .schedule thead {
    display: none;
  }
  .calender .schedule td {
    display: flex;
    gap: 15px;
    width: 100%;
    border-bottom: 1px dotted var(--main-color);
    padding-block: 15px;
  }
  .calender .schedule table tbody tr .none {
    display: none
  }
  .calender .schedule table tbody tr td .labels {
    flex-grow: 2;
		padding: 4px;
  }
  #front .calender .schedule table tbody tr td [class*=label] a {
    font-size: 18px;
  }
  /* 日付 */
  .calender .schedule table tbody tr td .date {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-basis: 5em;
  }
  /* モバイル用曜日を追加 */
  .calender .schedule table tbody tr td .date span.num:after {
    font-size: 11px;
  }
  .calender .schedule table tbody tr td:nth-child(1) .date span.num:after {
    content: "（日）";
  }
  .calender .schedule table tbody tr td:nth-child(2) .date span.num:after {
    content: "（月）";
  }
  .calender .schedule table tbody tr td:nth-child(3) .date span.num:after {
    content: "（火）";
  }
  .calender .schedule table tbody tr td:nth-child(4) .date span.num:after {
    content: "（水）";
  }
  .calender .schedule table tbody tr td:nth-child(5) .date span.num:after {
    content: "（木）";
  }
  .calender .schedule table tbody tr td:nth-child(6) .date span.num:after {
    content: "（金）";
  }
  .calender .schedule table tbody tr td:nth-child(7) .date span.num:after {
    content: "（土）";
  }
}
@media (min-width: 769px) {
  .calender .schedule table {
    border: 2px solid var(--main-color);
  }
  .calender .schedule table td {
    width: calc(100% / 7);
    padding: 8px;
  }
  .calender .schedule table thead td {
    background-color: var(--sub-color);
    text-align: center;
    border: 1px solid var(--main-color);
    font-weight: bold;
  }
  .calender .schedule table tbody td {
    height: 150px;
    border: 1px solid var(--main-color);
    background-color: #FFF;
  }
#admin .calender .schedule table tbody tr td .labels {
	font-size: 14px;
}
}
.rightLink {
	text-align: right;
}
.rightLink a {
  border: 1px solid var(--main-color);
  background-color: var(--sub-color);
  height: 40px;
  min-width: 40px;
  border-radius: 4px;
	padding: 0.67em 1em;
	margin-left: auto;
	font-size: 12px;
	text-decoration: none;
	color: inherit;
}
@media (min-width: 769px) {
.modoru a {
	font-size: 14px;
}
}
.yoyaku_form .note {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.yoyaku_form .note .noteBox {
	border: 5px solid var(--main-color);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 50px;
}
.yoyaku_form .note .noteBox h3 {
	padding: var(--text-padding);
	background-color: var(--main-color);
	color: #FFF;
	font-weight: bold;
	text-align: center;
}
.yoyaku_form .note .noteBox .innr {
	padding: var(--text-padding);
}
.yoyaku_form .note .noteBox .innr ul {
	margin-left: 1.5em;
	margin-bottom: 1em;
	text-align: left;
}
.yoyaku_form .note .noteBox .innr ul li {
	list-style-type: disc;
	list-style-position: outside;
}
.yoyaku_form .table_sp th {
	font-weight: bold;
	padding: var(--text-padding);
}
.yoyaku_form .table_sp td {
	background-color: #FFFBD6;
	padding: var(--text-padding);
}
.yoyaku_form .table_sp td ul {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}
.yoyaku_form .table_sp td ul li label {
	display: block;
	padding: var(--text-padding);
	background-color: rgba(220,212,201,0.2);
	border-radius: 999px;
	overflow: hidden;
}
@media (max-width: 768px) {
.yoyaku_form .table_sp, .yoyaku_form .table_sp tbody, .yoyaku_form .table_sp thead, .yoyaku_form .table_sp tfoot, .yoyaku_form .table_sp tr, .yoyaku_form .table_sp th, .yoyaku_form .table_sp td {
	display: block;
}
.yoyaku_form .table_sp {
	border-inline: 1px solid var(--main-color);
	border-bottom: 1px solid var(--main-color);
	margin-bottom: 20px;
}
.yoyaku_form .table_sp th {
	background-color: var(--sub-color);
	border-top: 1px solid var(--main-color);
}
.yoyaku_form .table_sp td {
	border-top: 1px solid var(--main-color);
}
}
@media (min-width: 801px) {
.yoyaku_form .table_sp {
	width: 750px;
	margin-inline: auto;
	margin-bottom: 20px;
}
.yoyaku_form .table_sp th {
	background-color: var(--sub-color);
	border: 1px solid var(--main-color);
	width: 200px;
}
.yoyaku_form .table_sp td {
	border: 1px solid var(--main-color);
}
.yoyaku_form .table_sp td ul {
	flex-direction: row;
	flex-wrap: wrap;
}
.yoyaku_form .table_sp td ul li {
	flex-basis: calc((100% / 3) - ((0.5em * 2) / 3));
}
}

.yoyaku_list table {
	margin-inline: auto;
	margin-bottom: 50px;
}
.yoyaku_list table thead {
}
@media (max-width: 768px) {
	.yoyaku_list table,.yoyaku_list table tbody,.yoyaku_list table tr,.yoyaku_list table td {
		display: block;
  }
	.yoyaku_list table {
		border-inline: 3px solid var(--main-color);
		border-bottom: 3px solid var(--main-color);
  }
	.yoyaku_list table thead {
		display: none;
  }
	.yoyaku_list table td span ,
	.yoyaku_list table td a {
		display: block;
		padding: var(--text-padding);
  }
	.yoyaku_list table td {
		/*border-top: 1px solid var(--main-color);
		background-color: #FFFBD6; */
		background-color: #FFF;
  }
	.yoyaku_list table td:first-child {
		border-top: 3px solid var(--main-color);
  }
	.yoyaku_list table td::before {
    content: attr(data-label);
		display: block;
		padding: var(--text-padding);
    background-color: var(--sub-color);
		font-weight: bold;
		/*border-bottom: 1px solid var(--main-color); */
	}
}
@media (min-width: 769px) {
	.yoyaku_list table thead th {
		padding: var(--text-padding);
    background-color: var(--sub-color);
		text-align: center;
		font-weight: bold;
  }
	.yoyaku_list table th,
	.yoyaku_list table td {
		border: 1px solid var(--main-color);
		padding: var(--text-padding);
		text-align: center;
  }
	.yoyaku_list table td {
		background-color: #FFF;
  }
}

#admin .login {
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	line-height: 2;
}
#admin .login .centerBox {
	border: 2px solid var(--main-color);
	border-radius: 8px;
	overflow: hidden;
	background-color: #fff;
	display: flex;
	flex-direction: column;
}
#admin .login .centerBox h2 {
	background-color: var(--main-color);

	color: #FFF;
	font-size: 1.4rem;
	padding: 0.5em 1em;
}
#admin .login .centerBox .innr {
	padding: 15px;
	flex-basis: 300px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#admin .login .centerBox .innr form {
	flex-grow: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
}
#admin .login .centerBox .innr h3 {
	font-weight: bold;
}
#admin .login button {
	background-color: var(--main-color);
	display: inline-block;
	border: 1px solid var(--main-color);
	border-radius: 4px;
	padding: 0.5em 1.5em;
	color: #FFF;
	min-width: 150px;
	cursor: pointer;
}
@media (max-width: 768px) {}
@media (min-width: 769px) {

#admin .login .centerBox {
	width: 450px;
}
}

.form-btn {
  background-color: #8f5a2c;
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

.form-btn:hover {
  background-color: #a86d3e;
}
