/*
Theme Name: Smilemax Kisarazu
Theme URI: https://smilemax-kisarazu.com
Author: Smilemax
Author URI: https://smilemax-kisarazu.com
Description: Minimal theme skeleton for future phases.
Version: 0.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: smilemax
*/

/* Intentionally minimal for Phase 0 */

.smx-about {
	max-width: 740px;
	margin: 0 auto;
	padding: 48px 20px 64px;
}

.smx-hero {
	width: 100%;
}

.smx-hero--image {
	min-height: clamp(220px, 35vw, 360px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f3f4f6;
}

.smx-about__title {
	font-size: 24px;
	line-height: 1.5;
	margin: 0 0 32px;
}

.smx-about__section {
	margin: 0 0 32px;
}

.smx-about__heading {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.smx-about p {
	line-height: 1.9;
	margin: 0 0 14px;
}

.smx-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgb(248, 247, 246);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	width: 100%;
}

.smx-header__inner {
	max-width: 980px;
	margin: 0 auto;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.smx-header__brand {
	color: #111827;
	text-decoration: none;
	font-weight: 600;
}

.smx-header__checkbox {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.smx-header__toggle {
	display: none;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 14px;
	color: #111827;
	background: #ffffff;
}

.smx-header__nav {
	margin-left: auto;
}

.smx-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
}

.smx-header__menu a {
	color: #111827;
	text-decoration: none;
	font-size: 14px;
}

.smx-header__menu a:hover {
	color: #0f172a;
	text-decoration: underline;
}

.smx-footer {
	padding: 24px 0 32px;
	background: rgb(248, 247, 246);
	color: #111827;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
	width: 100%;
}

.smx-footer__inner {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px;
}

.smx-footer__company {
	margin: 0 0 6px;
	font-weight: 600;
}

.smx-footer__address {
	margin: 0 0 10px;
}

.smx-footer__links {
	margin: 0 0 12px;
}

.smx-footer__links a {
	color: #111827;
	text-decoration: none;
}

.smx-footer__links a:hover {
	color: #0f172a;
	text-decoration: underline;
}

.smx-footer__copy {
	margin: 0;
	font-size: 12px;
	color: #6b7280;
}

@media (max-width: 768px) {
	.smx-header__toggle {
		display: inline-block;
	}

	.smx-header__nav {
		width: 100%;
	}

	.smx-header__menu {
		display: none;
		flex-direction: column;
		gap: 10px;
		padding: 12px 0 4px;
	}

	.smx-header__checkbox:checked ~ .smx-header__nav .smx-header__menu {
		display: flex;
	}
}

body {
	color: #111827;
	background: #ffffff;
	line-height: 1.7;
}

.smx-container {
	max-width: 980px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

body .smx-front,
body .smx-about,
body .smx-recruit,
body .smx-halls {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

@media (min-width: 768px) {
	.smx-header__inner {
		padding-left: 32px;
		padding-right: 32px;
	}

	.smx-footer__inner {
		padding-left: 32px;
		padding-right: 32px;
	}

	.smx-container {
		padding-left: 32px;
		padding-right: 32px;
	}

	body .smx-front,
	body .smx-about,
	body .smx-recruit,
	body .smx-halls {
		padding-left: 32px;
		padding-right: 32px;
	}
}

.entry-content {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

@media (min-width: 768px) {
	.entry-content {
		padding-left: 32px;
		padding-right: 32px;
	}
}

.entry-content .alignwide {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

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

.entry-content .alignfull > * {
	padding-left: 16px;
	padding-right: 16px;
}

@media (min-width: 768px) {
	.entry-content .alignfull > * {
		padding-left: 32px;
		padding-right: 32px;
	}
}

.smx-content {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 24px;
	padding-bottom: 28px;
	padding-left: 16px;
	padding-right: 16px;
}

body .smx-front,
body .smx-about,
body .smx-recruit,
body .smx-halls {
	padding-left: 0;
	padding-right: 0;
}

body .smx-about,
body .smx-recruit,
body .smx-halls,
body .smx-page {
	padding-top: 56px;
	padding-bottom: 72px;
}

.entry-content {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

@media (min-width: 768px) {
	.smx-content {
		padding-left: 32px;
		padding-right: 32px;
	}
}

.entry-content .alignfull > * {
	padding-left: 0;
	padding-right: 0;
}

.smx-page .entry-content .wp-block-group.has-global-padding,
.smx-page .entry-content .wp-block-group.has-global-padding > .wp-block-group__inner-container {
	padding-left: 0;
	padding-right: 0;
}

.smx-page .entry-content .wp-block-group.has-global-padding,
.smx-page .entry-content .wp-block-group.has-global-padding > .wp-block-group__inner-container {
	margin-left: 0;
	margin-right: 0;
}

.smx-page .entry-content .wp-block-group.has-global-padding,
.smx-page .entry-content .wp-block-group.has-global-padding > .wp-block-group__inner-container {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.smx-btn {
	display: inline-block;
	border: none;
	border-radius: 9999px;
	padding: 12px 20px;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(90deg, #20c6ff 0%, #a855f7 100%);
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
	cursor: pointer;
	transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.smx-btn:hover,
.smx-btn:focus-visible {
	filter: brightness(1.08);
	box-shadow: 0 10px 22px rgba(32, 198, 255, 0.25);
}

.smx-btn {
	background: #111827;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.smx-btn:hover,
.smx-btn:focus-visible {
	background: #0f172a;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
	filter: none;
}

.wp-block-button__link {
	display: inline-block;
	border: none;
	border-radius: 9999px;
	padding: 12px 20px;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #ffffff;
	text-decoration: none;
	background: #111827;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background: #0f172a;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.smx-btn,
a.smx-cta__link.smx-btn,
button.smx-contact__submit.smx-btn,
.wp-block-button__link {
	background-image: none !important;
	background-color: #111827 !important;
	color: #ffffff !important;
}

.smx-btn:hover,
.smx-btn:focus-visible,
a.smx-cta__link.smx-btn:hover,
a.smx-cta__link.smx-btn:focus-visible,
button.smx-contact__submit.smx-btn:hover,
button.smx-contact__submit.smx-btn:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background-image: none !important;
	background-color: #0f172a !important;
}

.smx-header__brand {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smx-header__brand .custom-logo-link,
.smx-header__logo {
	display: block;
}

.smx-header__brand img {
	display: block;
	height: 40px;
	width: auto;
}

@media (max-width: 767px) {
	.smx-header__brand img {
		height: 32px;
	}
}

@media (max-width: 767px) {
	.smx-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		border: none;
		background: transparent;
		padding: 8px;
		margin-left: auto;
		flex-direction: column;
		cursor: pointer;
		position: fixed !important;
		top: 12px;
		right: 12px;
		z-index: 10002 !important;
	}

	.smx-header__toggle-bar {
		display: block;
		width: 22px;
		height: 2px;
		background: #111827;
		transition: transform 220ms ease, opacity 180ms ease;
		transform-origin: center;
	}

	.smx-header__checkbox:not(:checked) + .smx-header__toggle .smx-header__toggle-bar {
		background: #111827 !important;
		opacity: 1;
	}

	.smx-header__nav {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.92);
		z-index: 10000;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 240ms ease, visibility 0s linear 240ms;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.smx-header__checkbox:checked ~ .smx-header__nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 240ms ease, visibility 0s;
	}

	.smx-header__overlay {
		position: absolute;
		inset: 0;
		cursor: pointer;
	}

	.smx-header__panel {
		position: relative;
		z-index: 1;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 24px 32px;
		opacity: 0;
		transform: translateY(8px);
		transition: transform 240ms ease, opacity 240ms ease;
	}

	.smx-header__checkbox:checked ~ .smx-header__nav .smx-header__panel {
		opacity: 1;
		transform: none;
	}

	.smx-header__checkbox:checked + .smx-header__toggle .smx-header__toggle-bar:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.smx-header__checkbox:checked + .smx-header__toggle .smx-header__toggle-bar:nth-child(2) {
		opacity: 0;
	}

	.smx-header__checkbox:checked + .smx-header__toggle .smx-header__toggle-bar:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.smx-header__close {
		position: absolute;
		top: 16px;
		right: 16px;
		font-size: 28px;
		color: #ffffff;
		cursor: pointer;
		display: none;
	}

	.smx-header__menu {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0;
	}

	.smx-header__menu a {
		display: block;
		width: 100%;
		padding: 18px 0;
		color: #ffffff;
		font-size: 18px;
		text-decoration: none;
	}

	.smx-header__menu a:hover {
		color: #ffffff;
		text-decoration: underline;
	}

	.smx-header__checkbox:checked + .smx-header__toggle .smx-header__toggle-bar {
		background: #ffffff;
	}

	.smx-header__close {
		display: none !important;
	}

	.smx-header__checkbox:checked ~ .smx-header__nav .smx-header__close {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.smx-header__nav {
		z-index: 10000;
	}

	.smx-header__toggle {
		display: inline-flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		position: fixed !important;
		top: 12px;
		right: 12px;
		z-index: 99999 !important;
		width: 44px;
		height: 44px;
		padding: 10px;
		border-radius: 10px;
		background: transparent;
	}

	.smx-header__toggle-bar {
		background: #111827;
	}

	.smx-header__checkbox:checked + .smx-header__toggle .smx-header__toggle-bar {
		background: #ffffff;
	}

	.smx-header__close,
	.smx-header__checkbox:checked ~ .smx-header__nav .smx-header__close {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.smx-header__inner {
		position: relative;
	}

	.smx-header__toggle {
		position: absolute !important;
		top: 50% !important;
		right: 12px !important;
		transform: translateY(-50%) !important;
		z-index: 10 !important;
	}

	.smx-header__checkbox:checked + .smx-header__toggle {
		position: fixed !important;
		top: 12px !important;
		right: 12px !important;
		transform: none !important;
		z-index: 10002 !important;
	}
}

@media (min-width: 768px) {
	.smx-header__nav {
		display: block;
		position: static;
		background: transparent;
	}

	.smx-header__overlay,
	.smx-header__close,
	.smx-header__toggle,
	.smx-header__checkbox {
		display: none;
	}

	/* PCでは panel を通常表示に戻す（メニューは panel 内にあるため） */
	.smx-header__panel {
		display: block;
		position: static;
		height: auto;
		padding: 0;
		background: transparent;
	}

	.smx-header__menu {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.smx-header__menu a {
		display: inline-block;
	}
}

body {
	background: #f8fafc;
}

.smx-content {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Ensure header (and its toggle) stays above hero image */
.smx-header {
	z-index: 1000 !important;
}

/* Frosted overlay and remove white content box */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 0;
}

.smx-content {
	background: transparent;
}

.smx-about__title {
	font-size: 2em;
	line-height: 1.2;
	margin: 0 0 0.67em;
}

.smx-about h1 {
	font-size: 2em;
	line-height: 1.2;
	margin: 0 0 0.67em;
}

@media (min-width: 768px) {
	.smx-header__menu .menu-item-home {
		display: none;
	}
}

@media (max-width: 767px) {
	.smx-header__menu .menu-item-home {
		display: list-item;
	}
}

/* PCでは TOP（/ へのリンク）を非表示 */
@media (min-width: 768px) {
	.smx-header__menu li > a[href="/"],
	.smx-header__menu li > a[href="https://smilemax-kisarazu.com/"] {
		display: none;
	}
}

/* SPでは TOP を表示 */
@media (max-width: 767px) {
	.smx-header__menu li > a[href="/"],
	.smx-header__menu li > a[href="https://smilemax-kisarazu.com/"] {
		display: block;
	}
}

@media (min-width: 768px) {
	.smx-header__menu > li:first-child {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.smx-header__menu > li:first-child {
		display: list-item !important;
	}
}

/* === Global Background: sky gradient + subtle grain === */
body {
	background-image: url("https://smilemax-kisarazu.com/wp-content/uploads/2026/02/roomback.png");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
	margin: 0;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: url("./assets/img/noise.png");
	background-repeat: repeat;
	background-size: 220px 220px;
	opacity: 0.06;
	z-index: 0;
}

.smx-header,
.smx-content,
.smx-hero,
.smx-footer,
.site,
#page,
#content,
main {
	position: relative;
	z-index: 1;
}

.smx-content {
	background: #ffffff;
}
