/*
Theme Name: My Test
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.0
Tested up to: 6.4.3
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: mytest
Tags: 
*/
html
{
    scroll-behavior: smooth;
}

/*  contentの上空白消し　contentをグルーピング上マージン削除で対処
:where(.wp-site-blocks) > :first-child:first-child {
    margin-block-start: 0;
}*/

/* fixed header */
header
{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
    opacity: 0.8;
}

header a
{
    transition: 0.5s;
}

header a:hover
{
    color: var(--wp--preset--color--primary) !important;
}

/* heading decoration */
section h2
{
    color: var(--wp--preset--color--primary);
}

section h3.subtitle::after
{
    content: "";
    display: inline-block;
    width: 120px;
    height: 1px;
    background: var(--wp--preset--color--primary);
    margin: 0.45em 10px;
}

/* listmark */

/*.wp-block-categories*/.is-style-no-listmark,
.is-style-custom-listmark
{
    list-style: none;
/*    padding-left: 0;*/
}

.is-style-custom-listmark li
{
    position: relative;
    padding-bottom: 0.7em;
}

.is-style-custom-listmark li::before
{
    content: "";
    width: 1.5em;
    height: 1.5em;
    background-image: url(https://lohasin.xsrv.jp/test/wp-content/themes/mytest/assets/images/check-lg.svg);
    background-size: contain;
    display: block;
    position: absolute;
    left: -1.8em;
    top: 0.15em;
}

/* remove margin-top */

/*.wp-block-template-part*/.is-style-rm-margin-top
{
	margin-top: 0;
}

/* column-cards */

@media (min-width: 782px) {
    .column-cards,
    .column-cards-two
    {
        flex-wrap: wrap !important;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .wp-block-columns.column-cards .wp-block-column.is-layout-flow,
    .wp-block-columns.column-cards-two .wp-block-column.is-layout-flow
    {
        flex-basis: calc(50% - 1.5rem);
        flex-grow: initial;
    }
}

@media (min-width: 1200px) {
    .wp-block-columns.column-cards .wp-block-column.is-layout-flow
    {
        flex-basis: calc(33% - 1.5rem);
    }

    .wp-block-columns.column-cards-two .wp-block-column.is-layout-flow
    {
        flex-basis: calc(50% - 1.5rem);
    }
}

/* column-card-item */
.column-card-item
{
    height: 100%;
    box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.column-icon-card-item
{
    box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
}

.column-card-item:hover
{
    transform: scale(1.1);
}

.column-photo-card-item a::after
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.column-photo-card-item figure
{
    overflow: hidden;
    box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
}

.column-photo-card-item figure img
{
    transition: 0.6s;
}

.column-photo-card-item:hover figure img
{
    transform: scale(1.2);
}

.column-photo-card-item > div
{
    width: 90%;
    margin: 0 auto;
    position: relative;
    margin-top: -100px !important;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
}

/* CTA */
.cta .wp-block-button a.wp-block-button__link
{
    transition: 0.6s;
}

.cta .wp-block-button a.wp-block-button__link:hover
{
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--contrast);
    box-shadow: none;
}

/* CF7 */
.wpcf7
{
    padding-right: 1.8em;
    box-sizing: border-box;
/*    outline: none;*/
}

.wpcf7 .required
{
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 80%;
	padding: 3px 5px;
	border-radius: 5px;
}

.wpcf7-form > p
{
    display: flex;
    flex-wrap: wrap;
}

.wpcf7-form-control-wrap
{
    display: block;
    width: 100%;
}

.wpcf7-text, .wpcf7-textarea
{
    box-sizing: border-box;
    width: 100%;
    margin: 0.9em 0;
    padding: 12px 15px;
    border: 2px solid var(--wp--preset--color--white);
}

.wpcf7 input:focus, .wpcf7 textarea:focus
{
    box-sizing: border-box;
    border: 2px solid var(--wp--preset--color--primary);
    outline: none;
    transition: 0.2s;
}

.wpcf7-submit
{
    margin: 0 auto;
    position: relative;
    padding: 12px 60px;
    font-size: 16px;
    border-radius: 24px;
    border: 2px solid var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--primary);
    transition: 0.2s;
}

.wpcf7-submit:hover, .wpcf7-submit:focus
{
    background-color: var(--wp--preset--color--base);
    border: 2px solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}

.wpcf7-spinner
{
    position: absolute;
}

/* test */
.test {
    position: relative;
}

.test::after {
    position: absolute;
    background: #ddd;
    height: 100%;
    width: 100%;
    top: calc(var(--wp--preset--font-size--xx-large)*0.5);
    content: "";
    z-index: -1;
}

@media (min-width: 782px)
{
    .test {
        margin-top: calc(var(--wp--preset--spacing--80) + var(--wp--preset--font-size--xx-large)*0.5) !important;
        margin-bottom: calc(var(--wp--preset--font-size--xx-large)*0.5) !important;
    }

    .test::after {
        position: absolute;
        background: #ddd;
        width: 120%;
        height: 100%;
    }
    
    .test > .wp-block-group > *
    {
        max-width: 70%;
    }

    section div.test:nth-of-type(2n)::after
    {
        right: 0;
    }
    
    section div.test:nth-of-type(2n+1)::after
    {
        left: 0;
    }
}

/*  */
@media (min-width: 782px)
{
    .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-cover
    {
        min-height: 100%;
    }
}

/* カラム：モバイル逆順 */
.wp-block-columns.is-style-reverse
{
    flex-direction: column-reverse;
}

@media (min-width: 782px)
{
    .wp-block-columns.is-style-reverse
    {
        flex-direction: row;
    }
}

/* カラム：モバイルnowrap */

.wp-block-columns.is-style-nowrap
{
    flex-wrap: nowrap !important;
}

/* z-index-top */
.z-index-top
{
	z-index: 1;
}