/*
Theme Name: Datena Light
Theme URI: https://datenaseitai.com/
Author: Datena Group
Description: 伊達な整体院の仙台・大阪両サイト向けに設計した、軽量でアクセシブルな独自テーマです。
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: datena-light
*/

:root {
	--accent: #176b87;
	--accent-dark: color-mix(in srgb, var(--accent) 78%, #000);
	--accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
	--ink: #24313a;
	--muted: #65737d;
	--line: #dfe5e7;
	--paper: #f7f8f6;
	--white: #fff;
	--shadow: 0 12px 34px rgb(20 42 54 / 8%);
	--radius: 14px;
	--content: 760px;
	--wide: 1120px;
	--font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--white);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: var(--accent-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
[type="button"],
[type="submit"] {
	cursor: pointer;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

figure {
	margin: 0;
}

.wrap {
	width: min(calc(100% - 40px), var(--wide));
	margin-inline: auto;
}

.reading-width {
	max-width: var(--content);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	color: var(--white);
	background: var(--accent-dark);
	border-radius: 6px;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: rgb(255 255 255 / 96%);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 3px 16px rgb(25 45 55 / 4%);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 86px;
	gap: 24px;
}

.site-brand {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.site-brand__link {
	display: flex;
	flex-direction: column;
	color: var(--ink);
	text-decoration: none;
}

.site-brand__name {
	font-size: clamp(1.2rem, 2.4vw, 1.75rem);
	font-weight: 750;
	letter-spacing: 0.025em;
}

.site-brand__description {
	margin-top: 2px;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.site-brand__logo {
	display: block;
	width: auto;
	max-width: min(360px, 46vw);
	max-height: 64px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-phone {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	color: var(--ink);
	line-height: 1.25;
	text-decoration: none;
}

.header-phone span {
	color: var(--muted);
	font-size: 0.72rem;
}

.header-phone strong {
	color: var(--accent-dark);
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.menu-toggle {
	display: none;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 7px;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 23px;
	height: 2px;
	background: currentcolor;
	transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle__bars::before {
	top: -7px;
}

.menu-toggle__bars::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.menu-toggle__text {
	margin-top: 7px;
	font-size: 0.62rem;
	line-height: 1;
}

.primary-nav {
	border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-menu,
.site-menu ul,
.footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-menu {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	min-height: 50px;
}

.site-menu > li {
	position: relative;
}

.site-menu a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 10px 17px;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
	transition: color 150ms ease, background 150ms ease;
}

.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
	color: var(--accent-dark);
	background: var(--accent-soft);
}

.site-menu .sub-menu {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	min-width: 220px;
	visibility: hidden;
	opacity: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 0 0 10px 10px;
	box-shadow: var(--shadow);
	transform: translateY(5px);
	transition: opacity 150ms ease, transform 150ms ease;
}

.site-menu li:hover > .sub-menu,
.site-menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.site-menu .sub-menu a {
	padding: 11px 15px;
}

.mobile-nav-widgets {
	display: none;
}

.hero {
	overflow: hidden;
	background: #eef3f5;
}

.hero__frame {
	width: min(100%, 1900px);
	margin-inline: auto;
}

.hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.quick-contact {
	color: var(--white);
	background: var(--accent-dark);
}

.quick-contact__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 92px;
	gap: 24px;
}

.quick-contact p {
	display: flex;
	flex-direction: column;
	margin: 0;
	line-height: 1.45;
}

.quick-contact strong {
	font-size: 1.15rem;
	letter-spacing: 0.08em;
}

.quick-contact span {
	font-size: 0.82rem;
	opacity: 0.86;
}

.quick-contact__buttons {
	display: flex;
	gap: 10px;
}

.button,
.wp-element-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 20px;
	color: var(--white);
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 999px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: filter 150ms ease, transform 150ms ease;
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	color: var(--white);
	filter: brightness(0.92);
	transform: translateY(-1px);
}

.button--outline {
	color: var(--white);
	background: transparent;
	border-color: rgb(255 255 255 / 55%);
}

.site-main {
	min-height: 48vh;
	padding-block: clamp(46px, 7vw, 82px);
}

.front-main {
	padding-top: clamp(40px, 6vw, 70px);
}

.front-widgets {
	margin-bottom: 36px;
}

.entry-header,
.archive-header {
	padding-bottom: 22px;
	margin-bottom: 34px;
	border-bottom: 1px solid var(--line);
}

.entry-title,
.archive-title {
	margin: 0;
	font-size: clamp(1.7rem, 4.2vw, 2.6rem);
	line-height: 1.35;
	letter-spacing: 0.015em;
}

.entry-meta,
.post-card__date {
	margin: 0 0 5px;
	color: var(--muted);
	font-size: 0.82rem;
}

.entry-featured {
	margin-bottom: clamp(30px, 5vw, 48px);
}

.entry-featured img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	font-size: clamp(1rem, 0.96rem + 0.16vw, 1.08rem);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content blockquote,
.entry-content .wp-block-group,
.entry-content .wp-block-columns {
	margin-top: 0;
	margin-bottom: 1.6em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.widget-title {
	color: var(--ink);
	line-height: 1.45;
}

.entry-content h2 {
	padding: 0 0 0.55em;
	margin: 2.5em 0 1em;
	font-size: clamp(1.5rem, 3vw, 2rem);
	border-bottom: 2px solid var(--accent);
}

.entry-content h3 {
	padding-left: 0.72em;
	margin: 2.15em 0 0.85em;
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	border-left: 5px solid var(--accent);
}

.entry-content h4 {
	margin: 1.9em 0 0.7em;
	font-size: 1.12rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content blockquote {
	padding: 20px 24px;
	color: color-mix(in srgb, var(--ink) 88%, #fff);
	background: var(--paper);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content iframe {
	width: 100%;
	border: 0;
}

.entry-content .alignwide {
	width: min(var(--wide), calc(100vw - 40px));
	max-width: none;
	margin-right: 50%;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-right: 50%;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content table {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	text-align: left;
	border: 1px solid var(--line);
}

.entry-content th {
	background: var(--accent-soft);
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-top: 22px;
	margin-top: 44px;
	font-size: 0.88rem;
	border-top: 1px solid var(--line);
}

.content-layout {
	display: block;
}

.content-layout--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
	gap: clamp(36px, 6vw, 70px);
}

.content-primary {
	min-width: 0;
}

.sidebar .widget,
.prefooter-widgets .widget,
.footer-widgets .widget {
	margin-bottom: 28px;
}

.sidebar .widget-title,
.prefooter-widgets .widget-title,
.footer-widgets .widget-title {
	padding-bottom: 8px;
	margin: 0 0 14px;
	font-size: 1.05rem;
	border-bottom: 2px solid var(--accent);
}

.sidebar ul,
.footer-widgets ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.sidebar li,
.footer-widgets li {
	padding-block: 7px;
	border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.archive-wrap {
	max-width: var(--wide);
}

.archive-description {
	margin-top: 10px;
	color: var(--muted);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.post-card {
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgb(20 42 54 / 5%);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.post-card__link {
	display: block;
	height: 100%;
	color: var(--ink);
	text-decoration: none;
}

.post-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 20px;
}

.post-card__title {
	margin: 0 0 10px;
	font-size: 1.15rem;
	line-height: 1.5;
}

.post-card__excerpt {
	color: var(--muted);
	font-size: 0.9rem;
}

.post-card__excerpt p {
	margin: 0;
}

.navigation.pagination {
	margin-top: 44px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	text-decoration: none;
}

.page-numbers.current {
	color: var(--white);
	background: var(--accent);
	border-color: var(--accent);
}

.post-navigation {
	padding-top: 28px;
	margin-top: 42px;
	border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation a {
	display: block;
	max-width: 340px;
	text-decoration: none;
}

.nav-subtitle {
	display: block;
	color: var(--muted);
	font-size: 0.75rem;
}

.comments-area {
	padding-top: 34px;
	margin-top: 44px;
	border-top: 1px solid var(--line);
}

.comment-list {
	padding-left: 1.3em;
}

.search-form {
	display: flex;
	max-width: 560px;
	gap: 8px;
}

.search-form label {
	flex: 1;
}

.search-form input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
	max-width: 100%;
	padding: 10px 12px;
	color: var(--ink);
	background: var(--white);
	border: 1px solid #b8c2c7;
	border-radius: 7px;
}

textarea {
	width: 100%;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
	outline-offset: 2px;
}

.contact-form label,
.wpcf7-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.contact-form > div,
.wpcf7-form > p {
	margin-bottom: 20px;
}

.prefooter-widgets {
	padding-block: clamp(42px, 6vw, 68px);
	background: var(--paper);
	border-top: 1px solid var(--line);
}

.prefooter-widgets .widget:last-child {
	margin-bottom: 0;
}

.site-footer {
	padding: 52px 0 100px;
	color: rgb(255 255 255 / 82%);
	background: #1e2b32;
}

.site-footer a {
	color: var(--white);
}

.clinic-summary {
	max-width: 760px;
	margin-bottom: 34px;
}

.clinic-summary p {
	margin: 4px 0;
}

.clinic-summary__name {
	color: var(--white);
	font-size: 1.28rem;
	font-weight: 750;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-top: 30px;
	margin-top: 30px;
	border-top: 1px solid rgb(255 255 255 / 13%);
}

.footer-widgets .widget-title {
	color: var(--white);
}

.footer-widgets img {
	max-height: 160px;
	object-fit: contain;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding-top: 24px;
	margin-top: 26px;
	font-size: 0.82rem;
	border-top: 1px solid rgb(255 255 255 / 13%);
}

.copyright {
	margin: 30px 0 0;
	color: rgb(255 255 255 / 58%);
	font-size: 0.75rem;
}

.mobile-cta {
	display: none;
}

.error-404 {
	text-align: center;
}

.error-404 .search-form {
	margin: 28px auto;
}

/* Existing VK/Lightning and What's New output remains readable after migration. */
.veu_postList,
.veu_postList ul,
.wp-block-latest-posts {
	padding: 0;
	list-style: none;
}

.veu_postList li,
.wp-block-latest-posts li {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.veu_cta {
	padding: clamp(24px, 4vw, 40px);
	margin-block: 38px;
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 24%, #fff);
	border-radius: var(--radius);
}

.widget_contact_info iframe,
.wp-block-jetpack-contact-info iframe {
	width: 100%;
	min-height: 320px;
	border: 0;
	border-radius: var(--radius);
}

@media (max-width: 980px) {
	.header-phone {
		display: none;
	}

	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.content-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: 38px;
	}
}

@media (max-width: 880px) {
	.site-header__inner {
		min-height: 72px;
	}

	.menu-toggle {
		display: flex;
	}

	.primary-nav {
		display: none;
		max-height: calc(100vh - 72px);
		overflow: auto;
		background: var(--white);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav .wrap {
		width: 100%;
	}

	.site-menu {
		display: block;
	}

	.site-menu a {
		min-height: 50px;
		padding: 12px 24px;
		border-bottom: 1px solid var(--line);
	}

	.site-menu .sub-menu {
		position: static;
		min-width: 0;
		visibility: visible;
		opacity: 1;
		background: var(--paper);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}

	.site-menu .sub-menu a {
		padding-left: 42px;
	}

	.mobile-nav-widgets {
		display: block;
		padding: 22px 24px;
		background: var(--paper);
	}

	.mobile-nav-widgets .widget {
		margin-bottom: 20px;
	}

	.mobile-nav-widgets .widget:last-child {
		margin-bottom: 0;
	}

	.mobile-nav-widgets .widget-title {
		margin: 0 0 10px;
		font-size: 1rem;
	}

	.quick-contact__inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 20px;
	}

	.content-layout--sidebar {
		display: block;
	}

	.sidebar {
		padding-top: 44px;
		margin-top: 52px;
		border-top: 1px solid var(--line);
	}

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body {
		padding-bottom: 62px;
	}

	.wrap {
		width: min(calc(100% - 28px), var(--wide));
	}

	.site-header {
		position: relative;
		top: auto !important;
	}

	.site-brand__name {
		font-size: 1.05rem;
	}

	.site-brand__description {
		display: none;
	}

	.hero__image {
		min-height: 150px;
		object-fit: cover;
		object-position: center;
	}

	.datena-sendai .hero__image {
		min-height: 118px;
		object-fit: contain;
		background: #e6f2f7;
	}

	.quick-contact {
		display: none;
	}

	.site-main {
		padding-block: 42px;
	}

	.entry-content h2 {
		font-size: 1.42rem;
	}

	.entry-content h3 {
		font-size: 1.2rem;
	}

	.post-grid,
	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.site-footer {
		padding: 42px 0 40px;
	}

	.search-form {
		align-items: stretch;
		flex-direction: column;
	}

	.mobile-cta {
		position: fixed;
		z-index: 9999;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: 1fr 1.35fr;
		height: 62px;
		padding: 6px;
		gap: 6px;
		background: rgb(255 255 255 / 96%);
		border-top: 1px solid var(--line);
		box-shadow: 0 -5px 24px rgb(20 42 54 / 12%);
		backdrop-filter: blur(10px);
	}

	.mobile-cta a {
		display: flex;
		align-items: center;
		justify-content: center;
		color: var(--white);
		border-radius: 8px;
		font-size: 0.9rem;
		font-weight: 750;
		text-decoration: none;
	}

	.mobile-cta__phone {
		background: #2f7d4f;
	}

	.mobile-cta__contact {
		background: var(--accent);
	}
}

@media print {
	.site-header,
	.quick-contact,
	.mobile-cta,
	.site-footer,
	.prefooter-widgets,
	.sidebar {
		display: none !important;
	}

	body {
		padding: 0;
		color: #000;
	}

	a {
		color: inherit;
		text-decoration: none;
	}
}
