/*
Theme Name: anyy
Theme URI: 
Author: happyincode
Author URI: 
Description: anyy website theme
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anyy
Tags: 
*/

body {
  -webkit-font-smoothing: antialiased;
}
html {
	scroll-behavior: smooth;
  scroll-padding-top: 100px;
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 {
	word-break: keep-all;
	overflow-wrap: anywhere;
	font-weight: 600;
}

/* デフォルトのブレークポイント無効化. */
@media (min-width: 600px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
}
/* 新しいブレークポイント設定. */
@media (min-width: 860px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    background-color: inherit;
    display: block;
    position: relative;
    width: 100%;
    z-index: auto;
  }
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	width: 40px;
	height: 40px;
	svg {
		width: 40px;
		height: auto;
	}
}

.wp-block-navigation-link a {
	letter-spacing: 0.05em;
	&:hover {
		text-decoration: underline;
		text-underline-offset: 8px;
		text-decoration-color: var(--wp--preset--color--custom-textblack);
		text-decoration-thickness: 2px;
	}
}
.wp-block-button a {
	transition: background-color .3s ease;
	&:hover {
		background-color: var(--wp--preset--color--custom-bgcolor) !important;
		color: var(--wp--preset--color--custom-textblack) !important;
	}
}
.wp-block-button.is-style-outline a {
	transition: background-color .3s ease;
	&:hover {
		background-color: var(--wp--preset--color--custom-textblack) !important;
		color: var(--wp--preset--color--white) !important;
		img { filter: brightness(0) saturate(100%) invert(100%) sepia(73%) saturate(2%) hue-rotate(78deg) brightness(105%) contrast(101%); }
	}
}
.wp-block-button.is-has-icon a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-right: 1em !important;
}

header {
	position: sticky;
	top: 0;
	left: 0;
	background: #fff;
	z-index: 99;
	margin: 0 auto;
	height: 120px;
	a,
	.wp-block-button__link {
		letter-spacing: 0.05em;
	}
	&.add-shadow {
		box-shadow: 0 0 10px rgb(0 0 0 / .2);
	}
	.header-inner {
		display: grid;
		grid-template-columns: minmax(120px, 250px) 1fr;
	}
	.header-inner .wp-block-site-logo img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}
	.header-inner .header-nav a {
		white-space: nowrap;
	}
}
.entry-content { z-index: 98; }

main {
	margin: 0 auto;
}
footer {
	margin: 0 auto;
	.p-footer-inner {
		> .wp-block-group > .wp-block-group {
			align-items: stretch;
		}
	}
	.wp-block-list {
		margin: 0;
		padding: 0;
		list-style-type: none;
		display: flex;
		flex-direction: column;
		gap: 4px;
		a {
			text-decoration: none;
			font-size: 14px;
			&:hover {
				text-decoration: underline;
			}
		}
	}
	.m-footer-right {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.wp-block-button {
			transition: background-color, opacity .3s ease;
			a:hover {
				background-color: var(--wp--preset--color--custom-bgcolor) !important;
				opacity: 0.8;
			}
		}
	}
}
@media (max-width: 500px) {
	footer {
		.p-footer-inner {
			.wp-block-group {
				flex-direction: column;
			}
		}
		.m-footer-right { align-items: center; }
	}
}

.home-title {
	margin-bottom: 40px;
	h2 {
		font-size: clamp(2rem, 1.3478rem + 3.2609vw, 3.5rem);
		font-weight: 500;
		letter-spacing: 0.05em;
	}
	p {
		font-size: clamp(0.875rem, 0.7663rem + 0.5435vw, 1.125rem);
		font-weight: 700;
		line-height: 1.4;
	}
}


/* home */
.p-mv {
	min-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0;
	h2 {
		font-size: clamp(2rem, 1.3478rem + 3.2609vw, 3.5rem);
		font-weight: 600;
		letter-spacing: 0.05em;
	}
	p {
		font-size: clamp(0.875rem, 0.7663rem + 0.5435vw, 1.125rem);
		line-height: 1.4;
		text-shadow: 0 0 20px rgb(255 255 255 / .8);
	}
}
.m-service-list {
	text-align: center;
	ul {
		display: inline-block;
		margin: 0;
		list-style-type: none;
		li {
			margin-bottom: 8px;
			text-align: left;
			padding-left: 1em;
			&::before {
				margin-left: -1em;
				content: '■';
			}
		}
	}
}
.p-service-bnr {
	display: grid !important;
	.p-service-bnr_inner {
		position: relative;
		padding: 24px;
		text-decoration: none;
		border: 4px solid var(--wp--preset--color--custom-bordercolor);
		background: var(--wp--preset--color--white);
		transition: border-color .3s ease;
		&:hover {
			border-color: var(--wp--preset--color--custom-textblack);
		}
		h4 {
			margin: 0;
			padding: 0;
			line-height: 1.0;
		}
		p {
			margin: 0;
			padding: 0;
			line-height: 1.0;
		}
		figure {
			display: inline-block;
			margin: 0;
			padding: 0;
			position: absolute;
			top: calc(50% - 14px);
			right: 16px;
			justify-self: end;
		}
	}
}
@media (max-width: 600px) {	
	.p-service-bnr {
		.p-service-bnr_inner {
			padding: 16px 24px 16px 16px;
			p { font-size: 12px !important; }
			figure { right: 8px; }
		}
	}
}

.p-imiel {
	display: grid;
	grid-template-areas: "title product" "text product" "buttonarea product";
	grid-template-columns: 55% calc(45% - 16px);
	grid-template-rows: auto 1fr auto;
	align-items: start;
	gap: 40px 16px;
	.p-imiel_title {
		width: 100%;
		grid-area: title;
		display: grid;
		grid-template-columns: minmax(100px, 180px) 1fr;
		align-items: center;
		gap: 24px;
		h3 {
			margin: 0 !important;
			img { width: 100% !important; }
		}
		p {
			margin: 0 !important;
			white-space: nowrap;
		}
	}
	.p-imiel_text {
		grid-area: text;
		width: 100%;
	}
	.p-imiel_buttonarea {
		width: 100%;
		grid-area: buttonarea;
		letter-spacing: 0.05em;
		display: grid;
		grid-template-columns: repeat(2, 40%);
		gap: 16px;
		a { white-space: nowrap; }
	}
	.p-imiel_product {
		grid-area: product;
		width: 100%;
	}
	.p-imiel_img {
		width: 100%;
		position: relative;
		figure {
			aspect-ratio: 1/1;
			overflow: hidden;
			img {
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				object-fit: contain;
			}
		}
	}
	.p-imiel_cartlink {
		position: absolute;
		bottom: 8px;
		right: 8px;
		a {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 60px;
			height: 60px;
		}
	}
	.p-imiel_caption {
		margin: 8px 0 0;
		line-height: 1.0;
		font-size: 14px;
	}
}
@media (max-width: 800px) {
	.p-imiel {
		grid-template-areas: "title title" "text product" "buttonarea buttonarea" ;
		gap: 16px;
		padding: 24px !important;
	}
	.p-imiel_text {
		margin-top: 40px;
		p { font-size: 14px; }
	}
	.p-imiel_caption { font-size: 12px; }
	.p-imiel_buttonarea {
		margin-top: 24px !important;
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.p-imiel {
		grid-template-columns: 1fr;
		grid-template-areas: "title" "text" "product" "buttonarea" ;
		gap: 16px;
		.p-imiel_buttonarea {
			grid-template-columns: 1fr;
		}
	}
}
@media (max-width: 500px) {
	.p-imiel {
		.p-imiel_title {
			margin-bottom: 32px !important;
			grid-template-columns: 1fr;
			gap: 8px;
			h3 { width: 120px !important; }
		}
	}
}

.philosophy-title {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0;
	span {
		z-index: 2;
	}
	&::after {
		position: absolute;
		top: 10px;
		left: 50%;
		display: block;
		width: 150px;
		height: 150px;
		background: url(asset/images/bg.png) no-repeat right center;
		background-size: 150px auto;
		content: '';
		z-index: 1;
	}
	.philosophy-title__num {
		font-size: clamp(48px, 3rem + ((1vw - 3.2px) * 1.739), 64px) !important;
		font-weight: 900;
	}
	.philosophy-title__txt {
		font-size: clamp(28px, 1.75rem + ((1vw - 3.2px) * 1.304), 40px) !important;
		text-transform: capitalize;
		letter-spacing: 0.05em;
		font-weight: 700;
	}
}

.philosophy-item {
	margin: 0;
	padding: 0;
	list-style-type: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 8px;
	li {
		border-radius: 50px;
		padding: 16px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 0;
		line-height: 1.4;
		text-align: center;
		font-size: clamp(1.125rem, 0.8533rem + 1.3587vw, 1.75rem);
	}
}

/* contact */
.m-contact-form {
	max-width: 800px;
	margin: 0 auto;
}
.m-contact-table p {
	margin: 0;
	padding: 0;
}
.ms-contact-label p {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.ms-contact-label .c-require {
	display: block;
	padding: 0 8px;
	background: var(--wp--preset--color--custom-red);
	font-size: 12px;
	border-radius: 4px;
	color: var(--wp--preset--color--white);
}
.ms-contact-input {
	margin-bottom: 24px;
	display: block;
}
.wpcf7-form-control {
	width: 100%;
	padding: 16px 8px;
	font-size: 18px;
	border: 1px solid var(--wp--preset--color--white);
	background: var(--wp--preset--color--white);
	border-radius: 4px;
	&:focus {
		outline: var(--wp--preset--color--custom-textblack);
		border: 1px solid var(--wp--preset--color--custom-bordercolor);
	}
}
.home .wpcf7-form-control {
	border-color: #f4f4f4;
	background: #f4f4f4;
	&:focus {
		outline: var(--wp--preset--color--custom-textblack);
		border: 1px solid var(--wp--preset--color--custom-bordercolor);
	}
}

.m-privacy p {
	margin: 0 auto 16px;
	padding: 0;
	text-align: center;
}
.m-privacy p a:hover { text-decoration: none; }
.wpcf7-not-valid-tip {
	font-size: 14px;
	color: var(--wp--preset--color--custom-red);
}
.m-accept p{
	text-align: center;
}
.m-accept .wpcf7-form-control {
	border: none;
	background: transparent;
}
.m-button-area p {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.m-button-area .wpcf7-submit {
	max-width: 400px;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	border-radius: 4px;
	border: 2px solid var(--wp--preset--color--custom-textblack);
	background: var(--wp--preset--color--custom-textblack);
	font-weight: 600;
	color: var(--wp--preset--color--white);
	transition: background-color .3s ease;
	cursor: pointer;
}
.m-button-area .wpcf7-submit:hover {
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--custom-textblack) !important;
}

.m-exgallery {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(calc(916px / 7), 1fr));
	gap: 8px !important;
	figure {
		width: 100% !important;
		height: 100% !important;
		img {
			width: 100% !important;
			height: 100% !important;
			object-fit: cover !important;
		}
	}
}

.m-flow {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 16px !important;
	list-style-type: none;
	padding: 0;
	li {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		border: 2px solid var(--wp--preset--color--custom-textblack);
		padding: 16px;
		text-align: center;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.0;
		white-space: nowrap;
	}
	li:not(:last-child)::after {
		border: solid transparent;
		border-width: 8px;
		border-left-color: var(--wp--preset--color--custom-textblack);
		position: absolute;
		top: calc(50% - 6px);
		right: -31px;
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
		content: '';
	}
}
@media (max-width: 600px) {
	.m-flow {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
		li:not(:last-child)::after {
			border-top-color: var(--wp--preset--color--custom-textblack);
			border-left-color: transparent;
			position: absolute;
			top: calc(100% + 6px);
			right: calc(50% - 16px);
		}
	}
}
.m-flow04 {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 32px !important;
	list-style-type: none;
	padding: 0;
	li {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		border: 2px solid var(--wp--preset--color--custom-textblack);
		padding: 16px;
		text-align: center;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.0;
		white-space: nowrap;
	}
	li:not(:last-child)::after {
		border: solid transparent;
		border-width: 8px;
		border-left-color: var(--wp--preset--color--custom-textblack);
		position: absolute;
		top: calc(50% - 8px);
		right: -41px;
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
		content: '';
	}
}
@media (max-width: 600px) {
	.m-flow04 {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
		li:not(:last-child)::after {
			border-top-color: var(--wp--preset--color--custom-textblack);
			border-left-color: transparent;
			position: absolute;
			top: calc(100% + 6px);
			right: calc(50% - 16px);
		}
	}
}
@media screen and (max-width: 400px) {
	.m-led-img {
		flex-direction: column;
		figure {
			width: 100% !important;
		}
	}
}
.m-has-videolink {
	gap: 6vw;
}

.m-message {
	position: relative;
	max-width: 800px;
	margin: 0 auto 200px;
	padding: 8vw;
	&::before {
		border: 4px solid transparent;
		border-left-color: var(--wp--preset--color--custom-textblack);
		border-top-color: var(--wp--preset--color--custom-textblack);
		width: 10%;
		height: 10%;
		position: absolute;
		top: 0;
		left: 0;
		content: '';
	}
	&::after {
		border: 4px solid transparent;
		border-right-color: var(--wp--preset--color--custom-textblack);
		border-bottom-color: var(--wp--preset--color--custom-textblack);
		width: 10%;
		height: 10%;
		position: absolute;
		bottom: 0;
		right: 0;
		content: '';
	}
}
@media (max-width: 600px) {
	.m-message {
		padding: 24px;
	}
}

.m-overview {
	margin: 0 auto;
	max-width: 400px;
	tr td:first-child {
		font-weight: 600;
	}
}
@media (max-width: 400px) {
	.m-overview {
		tr {
			display: flex;
			flex-direction: column;
			gap: 0;
			td {
				padding: 0px;
				&:last-child {
					padding-bottom: 16px;
				}
			}
		}
	}
}