/*
Theme Name: hhobar
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: hhobar
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 {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: var(--wp--preset--font-family--mincho)
}

body,
html {
	min-height: 100vh
}

:root {
	--admin-bar-height: 46px;/* 0〜600 */
	--hhobar-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(--hhobar-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(--hhobar-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*="hhobar-footer"]),
.wp-block-template-part:has(> footer[class*="hhobar-footer"]) {
	margin-block-start: auto !important
}

.wp-block-cover {
	padding: 0
}

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

a {
	color: var(--wp--preset--color--accent-1)
}


/* ============================================================================================
   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
============================================================================================ */
.hhobar-section {
	position: relative;
	z-index: 1
}
.hhobar-section-heading {
	font-weight: normal;
	font-size: clamp(26px, 5vw, 40px);
    line-height: 1.3
}


/* ============================================================================================
	 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: rgb(91,189,181);
    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)
}

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

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


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

.is-style-meehhobar-stagger .observe {
	opacity: 0;
	transform: translateY(50px)
}
.is-style-meehhobar-stagger .observe_is_active,
.is-style-meehhobar-group-stagger .observe_is_active,
.is-style-meehhobar-slide-in-up .observe_is_active,
.is-style-meehhobar-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)
============================================================================================ */
.hhobar-page-section-heading {
	position: relative;
	z-index: 1;
}
.hhobar-page-section-heading::before {
	content: "";
    position: absolute;
    top: -.6em;
    left: 0;
    z-index: -1;
    width: 8em;
    height: 3em;
    border-radius: 50%;
    border: 1px solid rgba(50,50,50,.6);
    transform: rotate(-8deg);
}


/* ============================================================================================
	ELLIPSE TEXT LINK
============================================================================================ */

.hhobar-sticky-block-text-link a {
    display: inline-flex;
    align-items: center;
    gap: 1em;
    color: currentColor;
    text-decoration: none
}
.hhobar-sticky-block-text-link a::after {
    content: "";
    display: inline-block;
    width: 4em;
    height: 2em;
    border-radius: 50%;
	background: var(--wp--preset--color--contrast-grade-3) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%20d%3D%22M50%2031.998H14%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3C%2Fpath%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%20d%3D%22M36%2018l14%2014-14%2014%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E") center center /1em auto no-repeat;
    transition: .3s ease-in-out
}
.hhobar-sticky-block-text-link a:hover::after {
    background-color: var(--wp--preset--color--blue)
}


/* ============================================================================================
	COMING SOON
============================================================================================ */
.coming-soon figure {
	position: relative
}

.coming-soon figure::before {
	content: "Coming Soon";
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 1px solid rgba(50,50,50,.6);
	background: rgba(255,255,255,.7);
	font-size: var(--wp--preset--font-size--x-small);
	font-family: var(--wp--preset--font-family--gothic);
	letter-spacing: 4px
}