/*
Theme Name: resola
Theme URI: 
Author: 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: resola
Domain Path: /languages
*/

*,
*::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,
.editor-styles-wrapper body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	/* 慣性スクロールを無効化 */
	/*overscroll-behavior: none*/
}

body,
html {
	min-height: 100vh
}

:root {
	--admin-bar-height: 46px;/* 0〜600 */
	--resola-navigation-fixed-height: 70px;
	--delay: .5s;
	--delay-plus: .2s;
}
@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(--resola-navigation-fixed-height)
}

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

body {
	background: var(--wp--preset--color--base)
}
.editor-styles-wrapper body,
.editor-styles-wrapper html {
	min-height: 100vh
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh
}

footer,
.editor-styles-wrapper footer {
	margin-block-start: auto !important
}

.wp-block-cover {
	padding: 0
}


/* ============================================================================================
	 resola SVGS
============================================================================================ */

.resola-icon svg {
	display: inline-block;
	vertical-align: -.125em;
	font-size: inherit;
}


/* ============================================================================================
	 DESTROY FLOAT
============================================================================================ */

.is-layout-constrained > .alignright {
	float: none;
	margin-left: auto
}
.is-layout-constrained > .alignleft {
	float: none;
	margin-right: auto
}


/* ============================================================================================
		HTML in ARTICLE
============================================================================================ */
.keyboard {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 37px;
	margin: 5px;
	padding: 0 15px;
	border-radius: 4px;
	box-shadow: 0 0 25px hsl(0, 0%, 91%) inset, 0 1px 0 hsl(0, 0%, 76%), 0 2px 0;
	border-top: 1px solid hsl(0, 0%, 96%);
	background: hsl(220, 10%, 95%);
	color: hsl(0, 0%, 42%);
	font: bold 14px arial;
	text-shadow: 0 1px 0 hsl(0, 0%, 96%)
}
.prettyprint {
	display: inline-block;
	margin-bottom: px;
	padding: .1em 1em;
	vertical-align: middle;
	border-radius: 4px;
	background: rgb(20, 20, 20);
	color: rgb(250, 250, 250);
	font-size: 13px;
	font-family: Menlo, consolas, Courier;
	text-align: left
}
.precode2 {
	color: rgb(151, 244, 93)
}


/* ============================================================================================
	 ENTRY CONTENT
============================================================================================ */
.post-entry-content p {
	margin: 1.6em 0 !important;
	line-height: 1.9
}


/* ============================================================================================
	 LATEST POSTS ALIGNMENT ADJUST
============================================================================================ */

.resola-loop-latest-posts-grid-list-centered-text {
	text-align: center
}

.resola-search-results-content:not(:has(.resola-search-results)) {
	display: none
}

:root :where(.is-layout-constrained) > p {    margin-block-start: 1.6rem;
	margin-block-end: 1.6em
}

.taxonomy-category.terms-with-icon.wp-block-post-terms a svg,
.taxonomy-post_tag.terms-with-icon.wp-block-post-terms a svg {
	display: inline-block;
	margin-right: .4em;
	vertical-align: -.125em;
	font-size: inherit
}


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


/* ============================================================================================
	TRANSLATION
============================================================================================ */
.translation-show {
	display: none
}
.translated-ltr .translation-hidden {
	display: none
}
.translated-ltr .translation-show {
	display: block
}

.resola-room-type-main p {
	margin: 1.9em 0
}


/* ============================================================================================
	BUTTON COMMON DESIGN(SHINE)
============================================================================================ */
@keyframes flash{100%{left: 120%}}
.shine-btn .wp-block-button__link {
	display: block;
    position: relative;
    overflow: hidden
}
.shine-btn .wp-block-button__link::before {
    content: "";
	position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    transform: skewX(-25deg);
    transition: .5s;
}
.shine-btn .wp-block-button__link:hover::before {
    animation: flash .75s
}

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

.wpcf7-form {
	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 {
	display: block;
	width: 100%;
	padding: .8em .5em;
	outline: none;
	box-shadow: none;
	border-radius: 0;
	border: 1px solid var(--wp--preset--color--border);
	font-size: 16px
}
.wpcf7-form select {
	font-size: var(--wp--preset--font-size--x-small)
}
.wpcf7-form input:focus {
	border-color: var(--wp--preset--color--contrast)
}
.wpcf7-form select,
.wpcf7-form-control-wrap .wpcf7-validates-as-date {
	width: 50%;
	max-width: 400px
}
.wpcf7-form .wpcf7-submit {
	width: auto;
	margin: 2em 0 0;
    padding: 1em 1.5em;
    font-size: var(--wp--preset--font-size--x-small);
    background: #333;
    color: white;
    border-radius: 2px;
	border: 0;
	cursor: pointer
}

/* 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)
}

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

/* ============================================================================================
	FUGU PLAN OUT OF SEASON STYLING
============================================================================================ */

/* 河豚プラン期間外日付のグレーアウト */
#booking-calendar .fugu-out-of-season {
	background-color: #f5f5f5 !important;
	color: #999 !important;
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	position: relative;
}

/* 期間外日付のホバー効果を無効化 */
#booking-calendar .fugu-out-of-season:hover {
	background-color: #f5f5f5 !important;
	color: #999 !important;
	transform: none !important;
	opacity: 0.6 !important;
}

/* 期間外日付のクリック効果を無効化 */
#booking-calendar .fugu-out-of-season:active {
	background-color: #f5f5f5 !important;
	color: #999 !important;
	transform: none !important;
}

/* 期間外マーク（斜線パターン）*/
#booking-calendar .fugu-out-of-season::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.1) 2px,
		rgba(0, 0, 0, 0.1) 4px
	);
	pointer-events: none;
	z-index: 1;
}

/* ツールチップスタイル */
#booking-calendar .fugu-out-of-season:hover::after {
	content: attr(title);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	pointer-events: none;
	margin-bottom: 5px;
}
