/* General element styling --------------------------------------------- */



/* @font-face {

font-family: 'Noto Sans CJK JP';

src: url('../fonts/NotoSansCJKjp-Regular.woff2') format('woff2'),

url('../fonts/NotoSansCJKjp-Regular.woff') format('woff'),

url('../fonts/NotoSansCJKjp-Bold.woff2') format('woff2'),

url('../fonts/NotoSansCJKjp-Bold.woff') format('woff');

font-weight: 400;

font-style: normal;

font-display: swap;

} */



html {

margin: 0;

padding: 0;

}



body {

margin: 0;

padding: 0;

font-family: "Zen Maru Gothic", sans-serif;

font-size: 16px;

line-height: 32px;

color: #333;

font-weight: 400;

}



h1,

h2,

h3,

h4,

h5 {

font-weight: 500;

margin: 0 0 20px;

}



a {

color: #112288;

}



img {

max-width: 100%;

}



button {

cursor: pointer;

}



html {

scroll-behavior: smooth;

}



/* General re-usable styling ------------------------------------------- */



.am-container {

width: calc(100% - 40px);

margin: 0 auto;

max-width: 1440px;

}



.am-container.style2 {

max-width: 1000px;

}



.am-container.style3 {

max-width: 1200px;

}



.am-container.style5 {

width: calc(100% - 120px);

}



.am-container.bg-grey {

background: #F5F5F5;

}



.am-flex {

display: flex;

}



.am-flex.wrap {

flex-wrap: wrap;

}



.am-flex.between {

justify-content: space-between;

}



.am-flex.center {

justify-content: center;

}



.am-flex.vert-center {

align-items: center;

}



.am-flex.vert-stretch {

align-items: stretch;

}



.am-flex.vert-fl-end {

align-items: flex-end;

}



.am-col1 {

width: calc(100% / 12);

}



.am-col2 {

width: calc(100% / 12 * 2);

}



.am-col3 {

width: calc(100% / 12 * 3);

}



.am-col4 {

width: calc(100% / 12 * 4);

}



.am-col5 {

width: calc(100% / 12 * 5);

}



.am-col6 {

width: calc(100% / 12 * 6);

}



.am-col7 {

width: calc(100% / 12 * 7);

}



.am-col8 {

width: calc(100% / 12 * 8);

}



.am-col9 {

width: calc(100% / 12 * 9);

}



.am-col10 {

width: calc(100% / 12 * 10);

}



.am-col11 {

width: calc(100% / 12 * 11);

}



.am-hide {

display: none;

}



.am-center {

text-align: center;

}



.am-sp {

display: none;

}



.am-pc {

display: block;

}



.am-modal__min-btn {

border: unset;

background: unset;

margin: 0 auto;

display: block;

}



dialog.am-modal__max {

width: 100%;

height: 100%;

border: unset;

background: #0003;

}



.am-modal__max-cont {

position: absolute;

left: 50%;

top: 50%;

transform: translate(-50%, -50%);

background: #FFF;

width: calc(100% - 80px);

height: calc(100% - 120px);

padding: 20px;

border-radius: 10px

}



.am-modal__max-pix {

width: calc(100% - 100px);

height: calc(100% - 150px);

overflow: auto;

padding: 50px;

box-shadow: 0 0 10px #8888 inset;

border: 1px solid #888;

}



.am-modal__max-pix>img {

max-width: 100%;

max-height: 100%;

object-fit: contain;

object-position: center;

display: block;

margin: auto;

/* cursor: zoom-in; */

}



.am-modal__max-pix.zoom>img {

width: auto;

height: auto;

max-width: 200vw;

max-height: 200vh;

/* cursor: zoom-out; */

}



.am-modal__max-close.lp-btn {

margin: 10px auto;

display: block;

padding: 10px;

min-width: 140px;

}



.am-modal__max-close.lp-btn::after {

content: unset;

}



.am-bg-layout {

position: relative;

}



.am-bg-pix {

position: absolute;

top: 0;

left: 0;

z-index: 0;

width: 100%;

height: 100%;

}



.am-bg-pix > img {

width: 100%;

height: 100%;

object-fit: cover;

display: block;

}



.am-bg-cont {

position: relative;

z-index: 1;

}



.am-bg-layout.style2 .am-bg-pix {

position: relative;

top: unset;

left: unset;

height: auto;

}



.am-bg-layout.style2 .am-bg-pix > img {

width: 100%;

height: auto;

object-fit: cover;

display: block;

}



.am-bg-layout.style2 .am-bg-cont {

position: absolute;

top: 50%;

left: 0;

transform: translatey(-50%);

height: auto;

}



#sect-banner .am-bg-pix > img {

object-position: right;

}



.bnr__title {

margin: 0;

font-size: 50px;

padding: 200px 0;

}



.sect-cont {

padding: 80px 0;

}



.sect-cont.style2 {

padding: 60px 0;

}



.af-topgap {

/* height: 68px;*/

}



header {

position: fixed;

top: 0;

left: 0;

width: 100%;

z-index: 10;

background-color: rgba(255, 255, 255, 0.7);

font-family: "Noto Sans JP", sans-serif;

}



.hdr__layout {

height: 80px;

height: auto;

}



.hdr__logo {

margin: 0 auto 0 0;

max-width: 200px;

}



.hdr__logo>a>img {

height: auto;

}



.hdr__navi-menu {

display: block;

}



.hdr__navi-menu {

display: flex;

justify-content: flex-end;

padding: 0;

margin: 0 10px 0 0;

width: 450px;

align-self: center;

}



.hdr__navi-menu li {

list-style: none;

text-align: center;

display: block;

line-height: 1;

}



.hdr__navi-menu li:last-child {

border-width: 0;

}



.hdr__navi-menu li a {

text-decoration: none;

color: #000;

font-weight: 400;

padding: 5px 10px;

width: calc(100% - 40px);

display: block;

white-space: nowrap;

font-size: 15px;

}



#salon-intro .price-list__border {

    border: 4px dotted #FF5A79;

}



.hdr__navi-lang a {

color: #000;

text-decoration: none;

}



/* .hdr__navi-lang a.active {

color: blue;

} */



/* SP menu btn ---------------------------------------------*/



.hdr__menu-btn {

position: absolute;

top: calc(80px / 2);

right: 15px;

border: 1px solid #fff;

background: transparent;

width: 50px;

height: 50px;

transform: translateY(-50%);

display:none;

z-index: 3;

}



.hdr__menu-btn-icon {

position: absolute;

left: 50%;

top: 50%;

transform: translate(-50%, -50%);

}



.hdr__menu-btn-icon::before,

.hdr__menu-btn-icon::after,

.hdr__menu-btn-icon>span {

content: "";

width: 30px;

height: 1px;

background: #fff;

display: block;

margin: 8px 0;

transition: 0.5s ease;

opacity: 1;

}



.bnr__pix {

text-align: center;

padding: 0 0 50px;

}



.bnr__pix > video {

width: 100%;

height: auto;

}



.bnr__ov {

position: absolute;

transform: translate(-50%, -50%);

left: 50%;

z-index: 1;

font-size: 48px;

line-height: 72px;

text-align: center;

font-weight: 700;

top: 50%;

color: #fff;

margin: 0 50px;

    width: calc(100% - 100px);

}



.bnr__txt1 {

display: block;

    font-size: 18px;

    text-shadow: 2px 2px #000;

    text-align: left;

    line-height: 1.8;

    margin: 20px 0;

}



.bnr__txt2 {

font-size: 35px;

    text-shadow: 2px 2px #000;

    display: block;

    text-align: left;

margin: 20px 0;

}



.bnr__ov-img {

position: fixed;

top: 14%;

right: 5%;

z-index: 1;

}



.bnr__cont img {

    display: block;

    margin: -80px 0 0 0;

height: 950px;

    width: 100%;

    object-fit: cover;

}



.header-lp .hdr__navi-menu li a {

color: #fff;

}



.header-lp {

    background-color: rgba(0, 0, 0, 0.5);

}



.main-banner-img1 {

    max-width: 585px;

    display: block;

}



.main-banner-logo {

    max-width: 200px;

    display: block;

margin: 0 0 30px;

}



.main-banner-img2 {

    max-width: 800px;

    text-align: left;

    display: block;

}



.lp-button1 {

    background-image: linear-gradient(#25BF3C, #008E42);

    max-width: 340px;

    font-size: 18px;

    margin: 40px 0;

height: 72px;

    align-content: center;

}



.lp-button1 a {

    color: #fff;

display: block;

}



.main-banner-icon1 {

    width: 20px;

    margin: 0 10px 0 0;

}



.main-banner-icon2 {

    width: 20px;

    margin: 0 0 0 10px;

}



#about-kaitai-lp {

    padding: 80px 0;

}



.cont-1200 {

    max-width: 1200px;

    margin: 0 auto;

}



.title-lp-jp {

    font-size: 30px;

    font-weight: 500;

    display: block;

    font-family: "M PLUS 1p", sans-serif;

color: #fff;

}



.lp-title1 {

    text-align: center;

}



.title-lp-en {

    font-weight: 800;

    color: #008E42;

    font-size: 24px;

    font-family: "M PLUS 1p", sans-serif;

    display: block;

}



.about-kaitai__cont {

    text-align: center;

    margin: 50px 0 0;

color: #fff;

}



#about-kaitai-lp .am-bg-pix > img {

position: relative;z-index: 1;

}



#about-kaitai-lp .am-bg-pix > img:before {

    content: "";

}



.am-bg-pix::before {

    content: "";

    display: block;

    background: #000;

    z-index: 0;

    width: 100%;

    height: 100%;

    position: absolute;

}



#recruitment-difficult-lp {

    background-color: #000;

padding: 80px 0;

}



.lp-button2 {

max-width: 520px;

    margin: 40px auto 0 auto;

    height: 105px;

background-color: #000;

padding: 1px 0 0 0;

text-align: center;

}



.lp-button2__inner {

    border: 1px solid #fff;

    margin: 10px;

}



.lp-button2__img1 {

    width: 180px;

    margin: 0 0 0 -100px;

    height: 80px;

    object-fit: contain;

}



.lp-button2__img2 {

    max-width: 380px;

}



.lp-button2__img3 {

    max-width: 20px;

    margin: 20px 0 0 10px;

    vertical-align: middle;

}



.recruitment-difficult-lp__image img {

    max-width: 380px;

}



.recruitment-difficult-lp__item {

    justify-content: space-between;

    margin: 80px 0;

}



.recruitment-difficult-lp__image {

    margin: 0 0 30px;

}



.recruitment-difficult-lp__item2 {

    margin: -30px 0 0;

}



.solved-demolition-carrier__subtitle img {

    background-color: #008E42;

    width: 48px;

    height: 48px;

    padding: 5px;

    object-fit: contain;

    border-radius: 50%;

    margin: -5px 10px -5px -30px;

    vertical-align: middle;

}



.solved-demolition-carrier__subtitle {

    color: #fff;

    font-size: 20px;

    font-weight: 700;

    border: 1px solid #008E42;

    padding: 5px 0;

}



.solved-demolition-carrier__subcont {

    font-weight: 700;

    color: #fff;

    margin: 50px 0;

}



.solved-demolition-carrier__item {

    margin: 0 0 15px 0;

}



.solved-demolition-carrier__item img {

    width: 32px;

    height: 32px;

    margin: 0 10px 0 0;

}



#service-feature-lp .am-bg-pix > img,

#message-lp2 .am-bg-pix > img,

#how-it-works .am-bg-pix > img,

#faq-lp2 .am-bg-pix > img,

#contact-lp2 .am-bg-pix > img {

    filter: opacity(0.2);

}



#service-feature-lp {

    padding: 80px 0;

}



.service-feature-lp__cont {

    text-align: center;

    color: #fff;

    margin: 50px 0;

}



.service-feature-lp__item {

    color: #fff;

margin: 0 40px 0 0;

    width: calc(100% / 3 - 40px);

}



.service-feature__subtitle {

    display: block;

    text-align: center;

    font-weight: 700;

    font-size: 24px;

margin: 0 0 20px;

}



.service-feature-lp__item img {

    width: 67px;

    height: 67px;

    object-fit: contain;

    display: block;

    margin: 0 auto;

}



.service-feature-lp__item-img-cont {

    background-color: #008E42;

    width: 140px;

    height: 140px;

    justify-content: center;

    border-radius: 50%;

    align-content: center;

    margin: 0 auto 30px;

}



.service-feature-lp__item:last-child {

    margin: 0;

}



.service-feature-lp__item:nth-child(2) img {

    width: 89px;

    height: 89px;

}



.service-feature-lp__subcont {

    justify-content: center;

}



#system-lp {

    background-color: #000;

    color: #fff;

    padding: 80px 0;

}



.system-lp__cont {

    font-size: 20px;

    text-align: center;

    font-weight: 700;

}



.system-lp__subtitle:first-child {

    font-size: 20px;

    text-align: center;

    font-weight: 700;

    padding: 15px 0;

}



.system-lp__subcont {

    margin: 50px 0;

}



.system-lp__item img {

    width: 38px;

    height: 38px;

    margin: 0 10px 0 0;

}



.system-lp__item {

    margin: 0 0 20px;

}



.green-bg .system-lp__subtitle {

    background-color: #008E42;

}



.green-bg .system-lp__subtitle1 {

    border: 1px solid #008E42;

padding: 10px;

}



.gray-bg .system-lp__subtitle {

    background-color: #414141;

}



.gray-bg .system-lp__subtitle1 {

    border: 1px solid #414141;

padding: 10px;

}



.system-lp__item-cont {

    width: calc(50% - 30px);

    margin: 0 30px 0 0;

}



.green-bg .system-lp__subtitle1 > span {

    color: #008E42;

    font-size: 20px;

    font-weight: 700;

    display: inline-block;

    vertical-align: middle;

}



.gray-bg .system-lp__subtitle1 > span {

    color: #949494;

    font-size: 20px;

    font-weight: 700;

    display: inline-block;

    vertical-align: middle;

}



.system-lp__desc {

    display: block;

    text-align: center;

    margin: 20px 0;

}



.message-lp__content {

    color: #fff;

}



.message-lp__image {

    width: 400px;

}



.message-lp__image img {

    width: 100%;

}



.message-lp__content {

    width: calc(100% - 450px);

    margin: 0 0 0 50px;

}



.message-lp__cont {

    margin: 50px 0;

}



#message-lp2 {

    padding: 80px 0;

}



.message-lp__content-text1 {

    display: block;

}



.message-lp__content-text2 {

    display: block;

    font-size: 28px;

    font-weight: 700;

    border-bottom: 1px solid;

    padding: 0 0 5px;

    margin: 10px 0;

}



#customer-voice-lp2 {

    background-color: #000;

    padding: 80px 0;

}



.customer-voice-lp2__content {

    color: #fff;

}



.customer-voice-lp2__image {

    width: 400px;

}



.customer-voice-lp2__content {

    width: calc(100% - 450px);

    margin: 0 0 0 50px;

}



.customer-voice-lp2__content-text1 {

    display: block;

    margin: 0 0 10px;

}



.customer-voice-lp2__content-text2 {

    display: block;

    border-bottom: 1px solid;

    padding: 0 0 5px;

    margin: 0 0 30px;

}



.customer-voice-lp2__content-text2 span {

    font-size: 30px;

    font-weight: 700;

}



.customer-voice-lp2__subcont {

    margin: 50px 0 0;

}



#how-it-works {

    padding: 80px 0;

}



.how-it-works__cont {

    color: #fff;

    flex-wrap: wrap;

justify-content: center;

margin: 50px 0 0;

}



.how-it-works__item {

    width: calc(100% / 3 - 30px);

    margin: 0 30px 30px 0;

}



.how-it-works__item-image span {display: block;max-width: 142px;padding: 5px 30px;}



.how-it-works__item-number {

    background-color: green;

    text-align: center;

    font-weight: 600;

}



.how-it-works__item-image img {

    width: 50px;

    height: 40px;

    object-fit: contain;

    display: block;

    margin: 20px auto;

}



.how-it-works__item-image {

    border: 1px solid #008E42;

    padding: 5px;

    margin: 0 20px 0 0;

}



.how-it-works__item-desc {

    font-weight: 700;

}



.how-it-works__item-company {

    display: block;

    background-color: #000;

    border-radius: 100px;

    max-width: 200px;

    text-align: center;

padding: 0 15px;

}



.how-it-works__item-title {

    font-weight: 700;

    display: block;

}



.how-it-works__item:nth-child(3n) {

    margin: 0 0 30px;

}



#pricing {

    background-color: #000;

    padding: 80px 0;

}



.pricing__cont {

    color: #fff;

    display: block;

    text-align: center;

    position: relative;

    padding: 0 20px 20px;

}



.pricing__cont::before {

    content: "";

    position: absolute;

    display: block;

    width: 100%;

    height: calc(100% - 15px);

    border: 1px solid #FFF;

    bottom: 0;

    left: 0;

    clip-path: polygon(0 0, calc(50% - 120px) 0, calc(50% - 120px) 2px, calc(50% + 120px) 2px, calc(50% + 120px) 0, 100% 0, 100% 100%, 0 100%);

}



.pricing__cont-subtitle {

    display: block;

    font-size: 24px;

    font-weight: 700;

}



.pricing__cont-desc {

    margin: 30px 0;

    display: block;

}



.pricing__cont-item img {

    display: block;

}



.pricing__cont-item:first-child img {

    margin: 0 30px 0 0;

    width: calc(100% - 30px);

}



.pricing__cont-list-item {

    width: calc(100% / 3 - 40px);

    margin: 0 40px 0 0;

}



.pricing__cont-list {

    text-align: left;

    margin: 50px 0;

justify-content: center;

}



.pricing__cont-list-subitem img {

    width: 20px;

    height: 20px;

    object-fit: contain;

    margin: 0 10px 0 0;

}



.pricing__cont-list-subtitle {

    display: block;

    font-size: 20px;

    font-weight: 700;

    border-bottom: 1px solid;

    margin: 0 0 10px;

    padding: 0 0 5px;

}



.pricing__cont-list-item:last-child {

    margin: 0;

}



#pricing .lp-button1 {

    margin: 40px auto;

text-align: center;

}



.faq-cont {

    max-width: 1140px;

    margin: 0 auto;

}





.faq-submenu__item {

    border-left: 1px solid #2584a0;

    padding: 15px 20px;

}



.faq-submenu__item:hover {

    border-left: 1px solid #2584a0;

}



.faq-submenu__item::after {

    content: ">";

    display: inline-block;

    transform: rotate(90deg) scale(0.7, 1.25);

    margin: 0 0 0 15px;

}



.faq-submenu__item:last-child {

    border-right: 1px solid #2584a0;

}



.faq-submenu {

    margin: 0 0 40px;

}



.faq-tab__title {

position: relative;

padding: 20px 0 25px;

margin: 0 0 40px;

font-size: 24px;

}



.faq-tab__title::after {

    content: "";

    width: 80px;

    height: 1px;

    background: #2584a0;

    display: block;

    position: absolute;

    left: 50%;

    bottom: 0;

    transform: translateX(-50%);

}



/* .faq-item {

margin: 20px 0;

} */



.faq-container__subcont {

    margin: 30px 0 0;

}



.faq-item_q {

    color: #fff;

    text-align: left;

    display: flex;

    align-items: center;

    position: relative;

    font-size: 18px;

    border: 1px solid #fff;

    transition: 0.5s ease;

background: transparent;

}



.faq-item:last-child .faq-item_q {

    border-width: 1px;

}



.faq-item.show .faq-item_q {

    border-width: 1px;

}



.faq-container__item {

    margin: 30px auto;

}



.faq-item_q h5 {

    font-size: 16px;

margin: 0;

}



.faq-item_a {

    background: #f7f7f7;

    color: #2A2A2A;

    text-align: left;

    display: flex;

    align-items: center;

    position: relative;

}



.faq-item_q::before, .faq-item_a::before {

    content: "Q";

    width: 45px;

    height: 45px;

align-content: center;

    margin: 10px;

    font-size: 20px;

    line-height: 1;

    text-align: center;

    background-color: #008E42;

    color: #fff;

font-weight: 700;

}



.faq-item_a::before {

    content: "A";

    background-color: #fff;

    color: #008E42;

font-size: 20px;

font-weight: 700;

}



.faq-item_q > h5 {

    padding: 0 0 0 15px;

    color: #fff;

    font-weight: 700;

width: auto;

flex: 1;

}



.faq-item_a > p {

    padding: 0 0 0 15px;

    color: #fff;

    font-weight: 400;

width: auto;

flex: 1;

}



.faq-item_a {

    background: transparent;

    max-height: 0;

    overflow: hidden;

    transition: 0.5s ease;

}



.faq-item.show .faq-item_a {

    border-width: 1px 0 0;

}



.faq-item_q::after {

background-image: url("../images/lp/img36.png");

background-position: center; /* Center the image */

background-repeat: no-repeat; /* Do not repeat the image */

background-size: contain;

    position: absolute;

    right: 30px;

    font-weight: bold;

    font-size: 18px;

    transition: 0.5s ease;

content: "";

    display: block;

    width: 15px;

    height: 15px;

margin: 0 20px;

}



.faq-item.show .faq-item_q::after {

    content: "";

    transform: rotate(180deg);

color: #004484;

}



.faq-item.show .faq-item_a {

    max-height: 500px;

padding: 10px 0;

background-color: #fff;

}



.top-page .faq-item.show .faq-item_a {

background-color: #F4FAFF;

}



#faq-lp2 {

    padding: 80px 0;

    background-color: #000;

}



.faq-lp2__subtitle {

    font-weight: 700;

    color: #fff;

    font-size: 20px;

    display: inline-block;

    margin: 5px 0 0 10px;

}



#faq-lp2 .faq-item {

background: transparent;

border-radius: unset;

}



#faq-lp2 .faq-item.show .faq-item_a {

    background-color: transparent;

color: #fff;

}



.faq-lp2__item-subtitle {

    border-bottom: 1px solid #008E42;

    padding: 0 0 5px;

}



.faq-lp2__item {

    margin: 0 0 60px 0;

}



#contact-lp2 {

    padding: 80px 0;

}



.contact-lp2__cont {

    color: #fff;

}



.contact-lp2__desc {

    display: block;

    text-align: center;

    margin: 30px 0;

}



.contact-lp2__contact-desc {

    display: block;

    text-align: center;

}



.contact-lp2__contact-subtitle {

    font-weight: 700;

    text-align: center;

    display: block;

    font-size: 20px;

    margin: 0 0 20px;

}



.contact-lp2__contact-item {

text-align: center;

justify-content: center;

margin: 30px 0 0;

padding: 0 0 30px;

}



.contact-lp2__contact-subitem {

    margin: 0 30px 0 0;

}



.contact-lp2__contact-number {

    display: flex;

    width: 40px;

    height: 40px;

    border: 1px solid;

    border-radius: 50%;

    justify-content: center;

    align-items: center;

    margin: 0 10px 0 0;

}



.wpcf7-turnstile.cf-turnstile {

    text-align: center;

    margin: 30px 0;

}



#contact-lp2 .form-group .required {

    color: #fff;

    background-color: #000;

    font-weight: 700;

    padding: 0 32px;

}



.footer-left1.lp2 {

    max-width: unset;

}



.footer-left1.lp2 .ft-logo {

    margin: 0 0 20px 40px;

}



.footer-wrap.lp2 {

    max-width: 1200px;

}



.lp-button1:hover {

    background-image: linear-gradient(#008E42, #25BF3C);

}



.lp-button1 a:hover {

    text-decoration: none;

}



.customer-voice-lp2__image {

    width: 400px;

}



.customer-voice-lp2__content {

    width: calc(100% - 450px);

    margin: 0 0 0 50px;

}



.customer-voice-lp2__content-text1 {

    display: block;

    margin: 0 0 10px;

}



.customer-voice-lp2__content-text2 {

    display: block;

    border-bottom: 1px solid;

    padding: 0 0 5px;

    margin: 0 0 30px;

}







.customer-voice-lp2__content-text2 span {

    font-size: 30px;

    font-weight: 700;

}



.pricing__cont::before,

.contact-lp2__contact::before {

    content: "";

    position: absolute;

    display: block;

    width: 100%;

    height: calc(100% - 15px);

    border: 1px solid #FFF;

    bottom: 0;

    left: 0;

    clip-path: polygon(0 0, calc(50% - 120px) 0, calc(50% - 120px) 2px, calc(50% + 120px) 2px, calc(50% + 120px) 0, 100% 0, 100% 100%, 0 100%);

}



.contact-lp2__contact {

    position: relative;

}



header.header-lp a.btn-top2 {

margin-left: 0;

top: unset;

order: 1;

}



header.header-lp {

    padding: 0;

}


.faq-item_q {
    cursor: pointer; /* これを追加 */
    /* 既存のスタイル */
}

/* ホバー時に少し明るくするとさらに親切 */
.faq-item_q:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lp-button1 a {
    color: #fff;
    display: flex; /* blockからflexに変更 */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* CF7: preset message button + textarea alignment (port of #contact-top logic) */
/* Match email row: label left column, buttons + textarea in right column */
#contact-lp2 .form-group-with-template-btns:has(> label) {
    display: grid;
    grid-template-columns: minmax(200px, 22%) 1fr;
    column-gap: 30px;
    row-gap: 0;
    align-items: start;
    margin-bottom: 30px;
}

/*
 * CF7 with <span> for buttons often outputs TWO <p>:
 * (1) label + buttons (2) textarea only.
 * Fix: parent grid + display:contents on first <p>.
 */
#contact-lp2 .form-group-with-template-btns:not(:has(> label)):has(> p ~ p) {
    display: grid;
    grid-template-columns: minmax(260px, 22%) 1fr;
    column-gap: 30px;
    row-gap: 8px;
    align-items: start;
    margin-bottom: 30px;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)):has(> p ~ p) > p:has(.cf7-message-template-btns):not(:has(textarea[name="your-message"])) {
    display: contents;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)):has(> p ~ p) > p:has(.cf7-message-template-btns):not(:has(textarea[name="your-message"])) > label {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0;
    padding-top: 8px;
    align-self: start;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)):has(> p ~ p) > p:has(.cf7-message-template-btns):not(:has(textarea[name="your-message"])) > .cf7-message-template-btns {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)):has(> p ~ p) > p:has(textarea[name="your-message"]):not(:has(.cf7-message-template-btns)) {
    grid-column: 2;
    grid-row: 2;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    min-width: 0;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)):has(> p ~ p) > p:has(textarea[name="your-message"]):not(:has(.cf7-message-template-btns)) .wpcf7-form-control-wrap {
    display: block !important;
    /* Nudge right to match single-line inputs (inline-block/strut + grid snap); tweak --contact-msg-textarea-nudge if needed */
    margin-left: var(--contact-msg-textarea-nudge, 12px);
    width: calc(100% - var(--contact-msg-textarea-nudge, 12px)) !important;
    max-width: calc(100% - var(--contact-msg-textarea-nudge, 12px));
    box-sizing: border-box;
}

/* Single <p>: label + .cf7-message-template-btns + textarea wrap together */
#contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) {
    display: grid !important;
    grid-template-columns: minmax(260px, 22%) 1fr;
    column-gap: 30px;
    row-gap: 8px;
    margin-bottom: 30px !important;
    width: 100% !important;
}

#contact-lp2 .form-group-with-template-btns:has(> label) > label {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    max-width: none;
    margin: 0;
    padding-top: 8px;
    align-self: start;
}

#contact-lp2 .form-group-with-template-btns:has(> label) > .cf7-message-template-btns {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* Textarea row — same right column as email field (only when label is sibling) */
#contact-lp2 .form-group-with-template-btns:has(> label) > p {
    grid-column: 2;
    grid-row: 2;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    min-width: 0;
}

#contact-lp2 .form-group-with-template-btns:has(> label) > p .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > label {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > .cf7-message-template-btns {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin-left: 10px;
}

#contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > .wpcf7-form-control-wrap {
    grid-column: 2;
    grid-row: 2;
    display: block !important;
    margin-left: var(--contact-msg-textarea-nudge, 12px);
    width: calc(100% - var(--contact-msg-textarea-nudge, 12px)) !important;
    flex: none !important;
    max-width: calc(100% - var(--contact-msg-textarea-nudge, 12px));
    box-sizing: border-box;
}

/* Mobile: stack message block cleanly */
@media screen and (max-width: 768px) {
    #contact-lp2 .form-group-with-template-btns {
        display: block !important;
        width: 100% !important;
    }

    /* CF7 mobile HTML is:
      <div class="form-group-with-template-btns"><p> label + br + buttons + br + textarea </p></div>
      Desired order (top->bottom): label -> buttons -> textarea (full width). */
    #contact-lp2 .form-group-with-template-btns > p {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    #contact-lp2 .form-group-with-template-btns > p br {
        display: none !important;
    }

    #contact-lp2 .form-group-with-template-btns > p > label[for="message"] {
        display: block !important;
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        margin: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        order: 1 !important;
    }

    #contact-lp2 .form-group-with-template-btns > p .cf7-message-template-btns {
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2 !important;
    }

    #contact-lp2 .form-group-with-template-btns > p .wpcf7-form-control-wrap {
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box;
        order: 3 !important;
    }

    #contact-lp2 .form-group-with-template-btns > p .wpcf7-form-control-wrap textarea[name="your-message"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Override desktop grid for the "single <p>" CF7 output on mobile.
       Goal: label -> button -> textarea, all full width like other fields. */
    #contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) {
        display: block !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > br {
        display: none !important;
    }

    #contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > label[for="message"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 6px 0 !important;
    }

    #contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > .cf7-message-template-btns {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    #contact-lp2 .form-group-with-template-btns:not(:has(> label)) > p:has(.cf7-message-template-btns):has(textarea[name="your-message"]) > .wpcf7-form-control-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 767px) {
    button.cf7-template-insert-btn.js-cf7-template-affiliate {
        margin-left: 0;
    }
}


/* スマホ用（幅767px以下）の修正 */
@media screen and (max-width: 767px) {
    /* 質問全体の右側にアイコン用の隙間を強制的に作る */
    .faq-item_q {
        padding-right: 50px !important; 
    }

    /* アイコンを右端に固定し、上下中央に配置する */
    .faq-item_q::after {
        right: 15px !important;
        margin: 0 !important;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 開いた時にアイコンを回転させる設定を上書き */
    .faq-item.show .faq-item_q::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }
}