/*
Theme Name: HighTimeGym
Theme URI: 
Author: Mee in the forest / Akira
Author URI: 
Description: 
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hightimegym
Domain Path: /languages
*/

/* NOTE
水素水 U-18 U-65 オプション inactive
*/

*,
*::before,
*::after {
	box-sizing: border-box !important
}

body .is-root-container *,
body .editor-styles-wrapper *,
body .block-editor-block-list__layout *,
body .wp-block * {
	box-sizing: border-box !important
}

body .is-root-container *::before,
body .is-root-container *::after,
body .editor-styles-wrapper *::before,
body .editor-styles-wrapper *::after,
body .block-editor-block-list__layout *::before,
body .block-editor-block-list__layout *::after,
body .wp-block *::before,
body .wp-block *::after {
	box-sizing: border-box !important
}

[style*="box-sizing"] {
	box-sizing: border-box !important;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: var(--wp--preset--font-family--gothic)
}

body,
html {
	min-height: 100vh
}

:root {
	--admin-bar-height: 46px;/* 0〜600 */
	--hightimegym-navigation-default-height: 66px;
	--delay: .5s;
	--delay-plus: .2s;
	--reveal-animation: reveal .4s cubic-bezier(.42, 0, 1, 1) forwards
}
@media screen and (min-width: 783px) {
	:root {
		--admin-bar-height: 32px
	}
	body.admin-bar {
		padding-top: var(--admin-bar-height)
	}
}

html {
	margin: 0 !important;
	scroll-behavior: smooth;
	scroll-padding-top: var(--hightimegym-navigation-default-height)
}

/* Lenis — 公式 CSS 読込時のテーマ側競合回避 */
html.lenis,
html.lenis body {
	min-height: 0
}
html.lenis body.drawer-open {
	overflow: visible
}

/* scroll */
@media screen and (min-width: 601px) {
	html {
		scroll-padding-top: calc(var(--hightimegym-navigation-default-height) + var(--admin-bar-height))
	}
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
	overflow-y: visible
}

/* サイトフッターパーツのみ（:has(footer) だと latest-comments の <footer> まで拾う） */
.wp-block-template-part:has(> footer[class*="hightimegym-footer"]),
.wp-block-template-part:has(> footer[class*="hightimegym-footer"]) {
	margin-block-start: auto !important
}

.wp-block-cover {
	padding: 0
}

.wp-block-latest-comments {
    padding-left: 0
}

a {
	color: var(--wp--preset--color--contrast)
}


/* ============================================================================================
   DESTROY FLOAT
============================================================================================ */
.is-layout-constrained > .alignright,
.is-layout-flow > .alignright {
	float: none;
	margin-left: auto
}
.is-layout-constrained > .alignleft,
.is-layout-flow > .alignleft {
	float: none;
	margin-right: auto
}


/* ============================================================================================
   PARAGRAPH CONTROL
============================================================================================ */
.entry-content > p {
	margin-block: 1.6em;
	line-height:1.9;
}


/* ============================================================================================
	 SECTION
============================================================================================ */
.hightimegym-section {
	position: relative;
	z-index: 1
}


/* ============================================================================================
	 ICON
============================================================================================ */
@media screen and (max-width: 600px) {
	html #wpadminbar {
		display: none !important
	}
}
.wp-block-navigation__responsive-container-content {
	display: block !important
}


/* ============================================================================================
	 GALLERY
============================================================================================ */
.wp-block-gallery,
.wp-block-gallery .blocks-gallery-grid {
	--wp--style--block-gap: 5px;
	--wp--style--gallery-gap-default: 5px;
	gap: 5px
}


/* ============================================================================================
	CONTACT FORM
============================================================================================ */

.wpcf7-form {
	width: 90%;
	max-width: 800px;
	margin: 0 auto;
	font-size: var(--wp--preset--font-size--x-small)
}
.wpcf7-form label {
	display: block
}
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
	display: block;
	width: 100%;
	padding: 1em .5em;
	outline: none;
	box-shadow: none;
	border-radius: 2px;
	border: 1px solid rgb(200,200,200);
	font-size: 16px
}
.wpcf7-form textarea {
	min-height: 100px;
	resize: vertical
}
.wpcf7-form select {
	font-size: var(--wp--preset--font-size--x-small)
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	border-color: rgb(50,50,50)
}
.wpcf7-form select,
.wpcf7-form-control-wrap .wpcf7-validates-as-date {
	width: 50%;
	max-width: 400px
}
.wpcf7-form .wpcf7-submit {
	width: 100%;
	height: 4em;
	margin: 2em 0 0 auto;
    padding: 1em 1.5em;
    font-size: var(--wp--preset--font-size--x-small);
    background: var(--wp--preset--color--blue);
    border-radius: 2px;
	border: 0;
	cursor: pointer;
	transition: .3s ease-in-out
}
.wpcf7-form > p:last-of-type {
	width: 14em;
	position: relative;
	z-index: 1;
	margin-left: auto
}
.wpcf7-form .wpcf7-submit:hover {
	transform: translateY(-2px)
}

/* message */
.wpcf7 form.sent .wpcf7-response-output {
    padding: 1em;
	border-color: rgb(96, 126, 43);
    background: rgb(214, 230, 215)
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    padding: 1em;
	border-color: rgb(244, 67, 53); /* Red */
	background: rgb(255, 235, 238)
}

.wpcf7 form.spam .wpcf7-response-output {
    padding: 1em;
	border-color: rgb(255, 167, 38); /* Orange */
	background: rgb(255, 243, 224)
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    padding: 1em;
	border-color: rgb(253, 216, 53); /* Yellow */
	background: rgb(255, 253, 231)
}

.hightimegym-cancel-tel a {
	text-decoration: none
}

.no-underline a {
	text-decoration: none
}


/* ============================================================================================
	IS STYLE
============================================================================================ */
@keyframes slideInUp{to{opacity:1;transform:translateY(0)}}

.is-style-meehightimegym-stagger .observe {
	opacity: 0;
	transform: translateY(50px)
}
.is-style-meehightimegym-stagger .observe_is_active,
.is-style-meehightimegym-group-stagger .observe_is_active,
.is-style-meehightimegym-slide-in-up .observe_is_active,
.is-style-meehightimegym-group-slide-in-up .observe_is_active {
	animation: slideInUp .4s forwards
}


/* ============================================================================================
	OBSERVE ANIMATION
============================================================================================ */
@keyframes imgSlide{100%{clip-path:polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)}}

.img-left-to-right,
.img-left-to-right-delay {
	clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)
}
.img-top-to-bottom {
	clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)
}

.observe_is_active .img-left-to-right,
.observe_is_active .img-top-to-bottom {
	animation: imgSlide 1s cubic-bezier(0.86,0,0.07,1) forwards
}
.observe_is_active .img-left-to-right-delay,
.observe_is_active .img-top-to-bottom-delay {
	animation: imgSlide 1s cubic-bezier(0.86,0,0.07,1) .4s forwards
}

@keyframes slideInUp{to{opacity:1;transform:translateY(0)}}
.text-slide-in-up {
	opacity: 0;
	transform: translateY(100%)
}
.observe_is_active .text-slide-in-up {
	animation: slideInUp .4s forwards
}

.slide-in-all-side-from-left {
	opacity: 0;
	transform: translateX(-50%)
}
.slide-in-all-side-from-right {
	opacity: 0;
	transform: translateX(50%)
}

@keyframes slideInAllSide{100%{opacity:1;transform:translate(0,0)}}
.observe_is_active .slide-in-all-side {
	animation: slideInAllSide 1s forwards;
}


/* ============================================================================================
	HEADING (for page section)
============================================================================================ */
.hightimegym-section-heading-wrapper {
	position: relative;
	flex-flow: wrap !important;
	gap: 0 1em;
	overflow: hidden
}
.hightimegym-section-heading-en {
	font-size: clamp(50px, 14vw, 140px);
	line-height: 1;
	transform: translateY(100%);
	transition: transform.6s ease
}
.hightimegym-section-heading-en:nth-of-type(2) {
	transition-delay: .2s
}
.hightimegym-section-heading-en:nth-of-type(3) {
	transition-delay: .4s
}
.observe_is_active .hightimegym-section-heading-en {
	transform: translateY(0)
}


/* ============================================================================================
	TEL
============================================================================================ */
.hightime-tel a {
	text-decoration: none
}


/* ============================================================================================
	BOOKING PACKAGE
============================================================================================ */
#booking-package_inputFormPanel {
	display: flex;
	flex-flow: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 1em 6%
}
#booking-package_inputFormPanel > div {
	width: 100%
}
@media screen and (min-width: 768px) {
	#booking-package_inputFormPanel #paymentPanel,
	#booking-package_inputFormPanel #nextAndReturnPanel {
		width: calc(50% - 1em)
	}
	#paymentPanel {
		order: 60
	}
}

#booking-package,
#booking-package_calendarPage,
#booking-package_schedulePage,
#booking-package_calendarPage .calendarHeader,
#booking-package_schedulePage .selectedDate,
#booking-package_schedulePage .topPanel,
#booking-package_schedulePage .bottomPanelForPositionInherit,
#bottomPanel {
	background: none !important
}
#returnToCalendarButton {
	min-width: 130px;
	padding: .4em 2em;
	cursor: pointer
}
#booking-package_schedulePage .selectable_day_slot, #booking-package_schedulePage .selectable_service_slot, #booking-package_schedulePage .selectable_time_slot, #booking-package_servicePage .selectable_service_slot {
	padding: 1em 6% !important
}
.serviceCost {
	font-weight: bold
}
.descriptionOfService {
	margin-top: 1em
}
#booking-package_schedulePage .bottomPanelForPositionInherit {
	border: 0
}
#returnToSchedules,
.book_now_button {
	padding: .8em;
	border-radius: 4px;
	border: 0
}
.book_now_button {
	background: rgb(30,30,30);
	color: white
}
#returnToSchedules {
	margin-top: 16px !important;
	border: 0 !important;
	background: rgb(230,230,230) !important;
	color: rgb(30,30,30) !important
}

.hightimegym-child-booking-notice {
	font-size: var(--wp--preset--font-size--small);
}
.hightimegym-child-booking-notice p {
	margin: 1em 0
}
