/*
Theme Name: Nursing Custom
Theme URI: https://home-carenurse.com/
Author: home-carenurse.com
Description: Custom theme for 在宅看護センター本郷・番町・ケアプランセンター
Version: 1.0
Text Domain: nursing-custom
*/

:root {
	--site-width: 1080px;
	--green: #459264;
	--inner-width: calc(var(--site-width) - 72px);
}
html {
	scrollbar-gutter: stable;
}
html, body {
	height: 100%;
	margin: 0;
	background: white;
}
body {
	/*touch-action: pan-x pan-y;*/
	font: menu;
	/*font: system-ui, sans-serif;*/

	/*font-family: 'Zen Kaku Gothic New', sans-serif;*/
	font-size: 1.125em;

	font-family: "Noto Serif JP", serif;
	font-optical-sizing: auto;

	margin: 0;
	padding: 0;
	/*margin: auto;
	max-width: 40em;
	padding: 0 0.5em 90vh 0.5em;*/

    overflow-x: hidden;

	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#top {
	border-bottom: 1px solid #d8d8d8;
}

.noto-serif-jp {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  /*font-weight: <weight>;*/
  font-style: normal;
}
.space2 {
	line-height: 2em;
}

.pre {
	white-space: pre-wrap;
}
.right {
	text-align: right;
}
.midimg {
	max-width: 40%;
}
.large {
	font-size: 1.5em;
}
.center {
	text-align: center;
	box-sizing: border-box;
}
.flexcenter {
	display: flex;
	flex-direction: row;
	justify-content: center;
	box-sizing: border-box;
}
.box {
	border: 2px dashed red;
}

.row {
	display: flex;
	flex-direction: row;
}
.col {
	display: flex;
	flex-direction: column;
}


a.green {
	margin-left: 8px;
	color: black;
	font-weight: bold;
	background: #43d658;
	padding: 4px;
	border-radius: 10px;
	text-decoration: none;
}
a.green2 {
	color: white;
	font-weight: bold;
	background: #43d658;
	padding: 3px 6px;
	border-radius: 10px;
	text-decoration: none;
}

a.newgreenbutton {
	display: inline-block;
	line-height: initial;
	border-radius: 8px;
	background: #ecfde9;
	background: linear-gradient(90deg, rgba(236, 253, 233, 1) 0%, rgba(204, 249, 190, 1) 50%, rgba(236, 253, 233, 1) 100%);
	border: 2px solid #8dda71;
	color: #11793a;

	padding: 6px 4px;

	font-weight: bold;
	font-size: 14px;
	line-height: 14px;
	padding-bottom: 8px;
	min-width: 140px;

	text-decoration: none;
	box-sizing: border-box;
	text-align: left;

	&::before {
		display: inline-block;
		aspect-ratio: 1;
		width: auto;
		height: 20px;
		box-sizing: border-box;
		margin-top: 0px;
		margin-bottom: -4px;
		margin-right: 8px;
		content: "";
		background: url('/buttonarr.png');
		background-repeat: no-repeat;
		background-position: center;
		background-size: cover;
	}

	&.tiny {
		padding: 4px 4px;
		font-size: 9px;
		min-width: 10px;
		&::before {
			height: 12px;
			margin-bottom: -3px;
			margin-right: 6px;
		}
	}
}

a.greenbutton {
	/*--greenbutton-nw: 280px;
	--greenbutton-nh: 56px;
	--greenbutton-w: 280px;
	width: var(--greenbutton-w);
	height: calc(var(--greenbutton-nh) * (var(--greenbutton-w) / var(--greenbutton-nw)));*/

	width: 220px;
	aspect-ratio: 280 / 56;
	line-height: initial !important;

	display: inline-block !important;
	background-image: url('buttonbg.png');
	color: #11793a;
	font-weight: bold !important;
	font-size: 14px !important;
	text-decoration: none;
	box-sizing: border-box !important;
	padding-top: 11px !important;
	padding-left: 48px !important;

	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;

	margin-bottom: 4px;

	text-align: left !important;
}

#page {
	margin: 0;
	padding: 0;
}
#top {
}
#content-area {
	flex: 1;
	/*min-height: 400px;*/
	/*min-height: calc(100vh - 80px);*/
	/*overflow-y: auto;*/
}
footer, #bottom {
	background: #459264;
	/*min-height: 240px;*/
}
.block {
	display: block;
	padding: 0;
	position: relative;
	/*min-width: 300px;
	min-height: 300px;*/
	/*border: 2px solid red;*/
	/*background: #f002;*/
	margin-left: 40px;
	margin-bottom: 20px;

	/*max-width: calc(var(--site-width) - 4em);*/
}
.block::after {
	position: absolute;
	left: 0;
	/*bottom: 0;*/
	top: 0;
	background: rgba(0,0,0,0.15);
	padding: 0.125em 0.5em;
	color: white;
	text-shadow:
		black 2px 2px 2px,
		black 0 0 2px,
		black 0 0 2px,
		black 0 0 2px
	;
}
.block img {
	max-width: calc(60% - 2em);
	height: auto;
}
.animated {
	opacity: 0;
	transform: translateY(40px);
	/*transition: opacity 0.25s ease-out, transform 0.25s ease-out;*/
	transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.animated.right {
	transform: translateX(40px);
}
.animated.in {
	opacity: 1;
	transform: translateY(0);
	/*transition: opacity 0.25s ease-out, transform 0.25s ease-out;*/
	transition: all 0.75s;
	/*animation: fadeIn 1s ease-out forwards;*/
}
.animated.right.in {
	/*transform: translateX(-20px);*/
}

#topbar {
	/*font-family: 'Zen Kaku Gothic New', sans-serif;*/
	font-size: 0.75em;
	font-family: "Noto Serif JP", serif;
	font-optical-sizing: auto;


	display: flex;
	flex-direction: row;
}
#topbar aside.logo {
	flex: 1;
	/*background: white;*/
	margin-top: auto;
	margin-bottom: auto;
	font-weight: bold;
	font-size: 1.25em;
	display: flex;
}
aside.logo > * {
	display: flex;
	align-items: center;
}
aside.logo a {
	text-decoration: none;
	color: black;
}
aside.logo img {
	width: 48px;
	height: auto;
}
aside.logo div {
	margin-top: 4px;
	/*font-family: 'Noto Sans', sans-serif;*/
	font-size: 20px;
	font-weight: normal;

	font-family: "Noto Serif JP", serif;
	font-optical-sizing: auto;

}
nav ul {
	list-style-type: none;
	display: flex;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
}
nav ul li {
	font-weight: bold;
	margin: 0;
	padding: 0;
	/*background: white;*/
	&:hover {
		/*background: #bbb;*/
		background: #fbfbfb;
	}
	&.contact {
		color: white;
		background: var(--green);
	}
	&.contact:hover {
		background: #58ab79;
	}
}

nav a, nav button {
	/*font-family: 'Zen Kaku Gothic New', sans-serif;*/
	font-family: "Noto Serif JP", serif;
	font-optical-sizing: auto;

	font-weight: bold;
	font-size: 1.0em;
	display: block;
	margin: 0;
	padding: 1em;
	text-decoration: none;
	color: black;
	background: none;
	border: none;
}
li.contact * {
	color: white;
}

section {
	margin-bottom: 80px;
}

h1 {
	display: block;
	background-color: #e0eae1;
	padding-top: 24px;
	padding-bottom: 32px;
	color: rgb(96, 120, 96);

	font-size: 28px;
}
h1 div.small {
	font-size: 12px;
	padding-left: 1em;
}
h1 div.big {
	font-size: 40px;
}

.superheader {
	position: fixed;
	/*width: 100%;*/
	/*margin: 0;
	padding: 0;*/
	top: 0;
	/*left: 0;
	right: 0;*/
	width: 100vw;
	z-index: 1000;
	/*box-sizing: border-box;*/
	/*background: rgba(255, 255, 255, 0.85);*/
	background: rgba(255, 255, 255, 0.90);
}
main {
	margin-top: 80px;
}


aside.phonenumbers {
	font-family: system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", "Apple Color Emoji",
		"Segoe UI Emoji", "Noto Color Emoji", sans-serif;

	font-optical-sizing: auto;
	font-weight: bold;
	font-size: 16px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
	max-width: var(--site-width);
	margin: auto;
	text-align: left;
	gap: 0 2em;

	& > span {
		display: inline-block;
		white-space: nowrap;

		/*&:not(:last-child) {
			margin-right: 2em;
		}*/
	}
}


.bottom-buttons {
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;

	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
		align-items: center;
		display: flex;
			justify-content: flex-start;
		align-items: flex-start;
		align-content: center;
		flex-direction: column;
		flex-wrap: wrap;
	/*height: 114px;*/
	height: 100px;

	/*border: 1px solid cyan;*/
	box-sizing: border-box;
}
.zzzz {
	display: grid;
	grid-template-columns: 1fr 1fr; /* left (images) | right (text) */
	grid-template-rows: repeat(3, auto); /* 3 rows */
	gap: 0px 0px; /* row gap | column gap */
	align-items: center; /* vertically align within each row */
}
a.bottom-button {
	display: block;

	/*margin: 2px 12px;*/
	margin: 0px 12px;
	/*zflex: 0 0 32%;
	margin-right: 4px;
	margin-left: 4px;
	zmargin-bottom: 4px;*/
	/*border: 1px dashed red;*/
	box-sizing: border-box;

	color: white;
	text-decoration: none;
	font-size: 14px;
	height: 32px;
	line-height: 32px;


	& > img {
		width: 120px;
		/*height: auto;*/
		height: 30px;
		display: block;
	}
}
a.bottom-button.image img {
	border: 1px solid #1b5231;
}

.narrow {
	letter-spacing: -1px;
}

.info-table {
	border-collapse: collapse;

	& tr:first-child td {
		border-top: 1px solid #eee;
	}
	& td {
		border-bottom: 1px solid #eee;
		margin: 0;
		padding: 0;
	}
	& td:first-child {
		padding-left: 8px;
		padding-right: 32px;
	}
	& td:last-child {
		padding-right: 16px;
	}
}

.history-table {
	border-collapse: collapse;
	& td {
		white-space: nowrap;
		&:first-child {
			padding-right: 32px;
		}

		border-bottom: 1px solid #eee;
	}
}

img.pres {
}

.copyright {
	margin-top: 2px;
	margin-bottom: 10px;
	color: white;
	font-size: 11px;
	text-align: center;
}

section#notices {
	margin-bottom: 0;
	& .msg {
		max-width: calc(100vw - 200px);
	}
}
.notice, .notice-row {
	display: flex;
	/*Zwidth: max-content;*/
	max-width: var(--site-width);
	flex-direction: row;
	font-size: 18px;
	margin-bottom: 24px;
	& .notice-inner {
		display: flex;
		flex-direction: row;
		& > * {
			display: block;
		}
		padding-left: 42px;
	}
	& .date {
		color: #555;
		width: 120px;
		white-space: nowrap;
		/*&::before {
			content: "&#128339;	&#x1F553;";
		}*/
	}
	& .msg {
		margin-left: 24px;
		font-weight: bold;
	}
	position: relative;
}
.notice-new::before {
	display: block;
	top: 50%;
	transform: translateY(-50%);

	position: absolute;
	/*top: -20px;*/
	/*top: 0px;*/
	/*left: -42px;*/
	left: 0;
	content: "";
	width: 40px;
	aspect-ratio: 64 / 108;
	background: url('/wombat_new.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
a.notice-top {
	display: block;
	text-decoration: none;
	color: black;
	border-radius: 10px;
	box-sizing: border-box;
	padding: 0 8px;
	&:hover {
		background: #fafafa;
	}
}

.back {
	text-align: right;
	font-size: 11px;
	& > * {
		padding-left: 8px;
	}
	& > *:not(:last-child) {
		padding-right: 8px;
	}
	& a {
		color: rgb(17, 85, 204);
		color: #0560ea;
		text-decoration: none;
		&::before {
			content: "\f318";
			font-family: 'dashicons';
			position: relative;
			top: 1px;
		}
		&.top::before {
			content: "\f102";
		}
	}
}



@media (min-width: 769px) {
	/* PC */

	body:has(#wpadminbar) {
		& .superheader {
			margin-top: 32px;
		}
		main {
			margin-top: calc(80+32) px;
		}
	}

	.ios, .smartphone {
		display: none !important;
	}

	.bottom-buttons {
		width: var(--site-width);
	}
	/*a.bottom-button {
		margin: 12px;
	}*/
	/*a.bottom-button.image {
		order: -1;
	}*/

	#topbar {
		width: var(--site-width);
		margin-left: auto;
		margin-right: auto;
		/*background: red;*/
	}
	/*#topbar .submenu {
		display: none;
	}*/
	main {
		width: 100%;
	}
	section-wrapper {
		display: block;
		padding: 0;
		margin: 0;
		padding-inline: 16px;
		/*padding-inline: clamp(8px, 1.43885vw, 16px);*/
	}
	main section {
		/*width: var(--inner-width);*/
		max-width: var(--inner-width);
		margin-left: auto;
		margin-right: auto;
	}
	h1 {
		padding-inline: 16px;
		/*padding-inline: clamp(8px, 1.43885vw, 16px);*/
	}
	h1 div {
		/*width: var(--inner-width);*/
		max-width: var(--inner-width);
		margin-left: auto;
		margin-right: auto;
	}
	h1:has(div.small), h1:has(div.avg) {
		padding-bottom: 24px;
	}

	.block::after {
		content: "PC パソコン";
		font-size: 1em;
	}

	h3 {
		font-size: 28px;
		padding-top: 12px;
	}


	img.pres {
		width: 220px;
		height: auto;

		translate: 340px -80px;
	}
	.anchor {
		scroll-margin-top: 60px;
	}
	.anchor2 {
		scroll-margin-top: 80px;
	}

}
@media (max-width: 768px) {
	/* Smartphone, iphone */

	body.allow-wpadmin:has(#wpadminbar) {
		& .superheader {
			margin-top: 46px;
		}
		main {
			margin-top: calc(80+46) px;
		}
		#navbutton {
			top: 46px !important;
		}
		.menu {
		    padding-top: calc(60+46) px !important;
		}
		#wpadminbar {
			position: fixed !important;
		}
	}

	.pc {
		display: none !important;
	}
	.narrow-ios {
		letter-spacing: -1px;
	}


	section {
		margin-bottom: 40px;
	}

	.indent {
		margin-left: 1em;
	}
	.indentright {
		margin-right: 1em;
	}
	.compact {
		letter-spacing: -2px;
	}
	.smallphone {
		font-size: 13px;
	}
	.tinyphone {
		font-size: 11px;
	}
	.anchor {
		scroll-margin-top: 60px;
	}
	.anchor2 {
		scroll-margin-top: 80px;
	}
	.fitimg {
		width: 100%;
		height: auto;
	}
	.midimg {
		max-width: 80%;
	}

	h1 {
		padding-left: 4px;
	}

	h3 {
		font-size: 18px;
		padding-top: 12px;
	}

	aside.phonenumbers {
		padding-top: 12px;
		width: 100%;
		font-size: 11px;
	}

	.bottom-buttons {
		margin-top: 4px;
		/*justify-content: center;*/
		/*align-items: center;
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
		align-content: center;
		flex-direction: column;
		flex-wrap: wrap;
		max-height: 134px;*/
		height: 78px;
		/*margin-top: 20px;
		margin-bottom: 20px;*/
	}
	a.bottom-button {
		margin: 0px 5px;
		/*margin: 4px 8px;
		flex: 0 0 34%;*/
		font-size: 12px;
		white-space: nowrap;

		height: 25px;
		line-height: 25px;
		/*margin-bottom: 1px;*/

		& > img {
			width: 90px;
			height: 23px;
		}
	}
	.copyright {
		margin-top: 0px;
		margin-bottom: 2px;
	}

	a.newgreenbutton.tinyios {
		padding: 4px 4px;
		font-size: 9px;
		min-width: 10px;
		&::before {
			height: 12px;
			margin-bottom: -3px;
			margin-right: 6px;
		}
	}

	#hnav {
		display: none;
	}
	.block::after {
		content: "PHONE スマートフォン";
		font-size: 0.75em;
	}


	aside.logo div {
		margin-top: 8px;
		font-size: 12px;
		font-weight: bold;
	}

	/*.slider {
		transform: scale(0.72);
	}*/
	.slide {
    	height: 292px;
	    /*max-height: 292px;*/
	}
	.slide img {
		/*margin-top: auto;*/
		max-width: 100%;
		height: auto;
		max-height: 292px;
	}


	#hours {
		font-size: 14px;
	}


	h1 {
		font-size: 20px;

		padding-top: 12px;
		padding-bottom: 16px;
	}
	h1 div.small {
		font-size: 11px;
		padding-left: 0.5em;
	}
	h1 div.mid {
		font-size: 24px;
		margin-left: 8px;
	}
	h1 div.avg {
		font-size: 18px;
	}

	/*h1:has(div.small),*/ h1:has(div.avg) {
		padding-bottom: 12px;
	}


	.history-table {
		margin-left: -8px;
	}
	.history-table td {
		letter-spacing: -1px;
		font-size: 10px;
		&:first-child {
			padding-right: 12px;
		}
	}
	img.pres {
		max-width: 50%;
		height: auto;
	}

	.copyright {
		font-size: 9px;
	}

	.notice, .notice-row {
		font-size: 14px;

		& .notice-inner {
			flex-direction: column;
			align-items: flex-start;
		}
		& .date {
			width: auto;
		}
		& .msg {
			margin-left: 0;
		}
	}
	section#notices {
		& .msg {
			max-width: calc(100vw - 46px - 24px);
		}
	}

}







/* style.css */

:root {
  /* Smooth scroll by default; turned off for reduced motion below */
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  inset-block-end: calc(16px + env(safe-area-inset-bottom, 0));
  inset-inline-end: calc(16px + env(safe-area-inset-right, 0));
  z-index: 1000;

  display: inline-grid;
  place-items: center;

  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);

  cursor: pointer;

  /* Hidden by default; reveal with [data-visible] */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: white;
  outline: none;
}

.back-to-top:active {
  transform: translateY(10px) scale(0.98);
}

.back-to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .back-to-top { transition: none; }
}


.back-to-top svg {
  /*fill: var(--green);*/
  fill: #5aa679;
}



.wpcf7 .wpcf7-radio {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 0;
	width: 100%;
}

.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: 100%;
}

.center > p {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}


.grecaptcha-badge {
	visibility: hidden;
}
