html,
body {
  background-color: #E4FFED;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.lp-main {
  background-color: #E4FFED;
}

/* ヘッダー */
.header {
  background-color: #fff;
  padding: 10px 40px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.web-button-text-pc {
  display: inline;
}

.web-button-text-sp {
  display: none;
}

.lp-header-content {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lp-header-content .logo {
  max-width: 220px;
}

.header .logo {
  display: block;
}


.lp-header-content img {
  max-width: 200px;
}

.lp-contact {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 10px;
}


.web-button {
  background-color: #FF8944;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgba(154, 149, 149, 0.25);
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.web-button-phone {
  background-color: #F04766;
  color: #fff;
}

.web-button-phone .web-button-text {
  color: #fff;
}

.web-button-phone:hover .web-button-text {
  color: #fff;
}

.webicon-img {
  width: 40px;
  height: 40px;
}

.web-button-line {
  background-color: #00C300;
  color: #fff;
}

.web-button .web-button-text {
  color: #fff;
  line-height: 1.1;
  text-align: center;
}

.web-button:hover .web-button-text {
  color: #fff;
}

.web-button-text {
  font-size: 19px;
  font-weight: 600;
}


/* ボタンのシャイン効果 */
.kv-content-button .web-button-contact {
  position: relative;
  overflow: hidden;
}

.kv-content-button .web-button-contact::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -150%;
  width: 50%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
}

.kv-content-button .web-button-contact:hover::after {
  animation: shine 0.7s ease;
}

@keyframes shine {
  to {
    left: 150%;
  }
}

.header .web-button {
  position: relative;
  overflow: hidden;
}

.header .web-button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -150%;
  width: 50%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
}

.header .web-button:hover::after {
  animation: shine 0.7s ease;
}

/*main*/
.lp-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 120px;
  padding-top: 90px;
}

.kv,
.worries,
.why,
.service,
.table,
.example-img,
.voice,
.flow,
.faq,
.free-img,
.contact-bg,
.banner {
  padding: 0px 40px;
}

/* kv */
.kv {
  background-color: #ffffff;
  margin: 0px 40px;
  box-shadow: inset 0 0 0 10px #00C742;
}

.kv-img {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 57px 40px;
}

.kv .lp-contact-kv {
  display: none;
}

.kv-content-button .web-button-contact {
  margin-top: 20px;
  background-color: #F04766;
  border-radius: 50px;
  color: #ffffff;
  padding: 15px 25px;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.kv-content-button .web-button-contact .arrowicon-img {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* banner */
.banner-img {
  margin: 0 auto;
  width: 100%;
  max-width: 1048px;
}

/* free */

/* free section background images (PC) */
.free-bg {
  background-image: url('images/free-bg.svg');
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 150px 0px;
  text-align: center;
}

/* Constrain and center inner content */
.free-bg>* {
  max-width: 1046px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure images inside free center correctly */
.free-bg img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* cta */
.cta {
  background-image: url('images/cta-bg.svg');
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  width: 100%;
  padding: 30px 40px 50px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cta-content-button {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: #ffffff;
  padding: 13px 20px 0px 20px;
  border-radius: 4px;
  max-width: 1048px;
  width: 100%;
  justify-content: center;
  margin: 0 40px;
}

.cta-content-button img {
  transition: opacity 0.3s ease;
  outline: none;
  border: none;
}

.cta-content-button a {
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cta-content-button a:focus,
.cta-content-button a:active {
  outline: none;
  box-shadow: none;
}

.cta-content-button img:hover {
  opacity: 0.8;
}

/* example */
.example {
  background-color: #fff;
  box-shadow: inset 0 10px 0 0 #00C742, inset 0 -10px 0 0 #00C742;
  width: 100%;
  padding: 100px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* cta と example の間だけ gap を打ち消して0pxに見せる */
.lp-main .cta+.example {
  margin-top: -120px;
}

/* kv と banner の間だけ gap を打ち消して0pxに見せる */
.lp-main .kv+.banner {
  margin-top: -80px;
}

/* contact */
.contact {
  padding: 100px 0px 0px 0px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

}

.contact-bg {
  background-color: #00C742;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 100px;
}

.contact-bg>* {
  max-width: 1046px;
  width: 100%;
}

.contact img {
  margin-top: -35px;
}

/* Contact form styles */
.contact-form h2,
.contact-form h3,
.contact-form label {
  color: #fff;
  font-size: 20px;
}

.contact-form .wpcf7-form p {
  margin: 12px 0;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form .wpcf7-text,
.contact-form .wpcf7-email,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-textarea,
.contact-form select,
.select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background: #fff;
}

.contact-form .wpcf7-textarea {
  min-height: 160px;
}

/* Select text color rules */
.contact-form ::placeholder {
  color: #B6B6B6;
}

.contact-form select,
.contact-form select.select,
.contact-form .select {
  color: #142424;
}

/* カスタムセレクトの矢印（右から20px） */
.contact-form select.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 48px;
  /* 矢印と重ならない余白 */
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form label>.wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

/* プライバシーポリシー（acceptance）と送信ボタンの中央寄せ */
.contact-form .wpcf7-acceptance,
.contact-form .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form .wpcf7-list-item-label {
  font-size: 16px;
}

.contact-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff;
}

/* プライバシーポリシー行の縦中央揃え */
.contact-form .wpcf7-acceptance .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
}

.contact-form .wpcf7-acceptance input[type="checkbox"] {
  transform: translateY(4px);
}

/* 同意リンク: 点線アウトラインを消し、色と下線を統一 */
.contact-form .wpcf7-acceptance a {
  color: #fff;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-form .wpcf7-acceptance a:hover {
  text-decoration: underline;
}

.contact-form .wpcf7-acceptance a:focus,
.contact-form .wpcf7-acceptance a:active {
  outline: none;
  box-shadow: none;
  color: #fff;
}

.contact-form .wpcf7-submit {
  display: block;
  margin: 0 auto;
  background-color: #F04766;
  color: #fff;
  border: none;
  padding: 20px 24px;
  border-radius: 50px;
  cursor: pointer;
  width: 680px;
  font-size: 18px;
}

.contact-form .wpcf7-submit:hover {
  opacity: 0.9;
}

/* お問い合わせフォームのスタイル無効化*/
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="password"],
.contact-form input[type="search"],
.contact-form input[type="number"],
.contact-form input[type="tel"],
.contact-form input[type="range"],
.contact-form input[type="date"],
.contact-form input[type="month"],
.contact-form input[type="week"],
.contact-form input[type="time"],
.contact-form input[type="datetime"],
.contact-form input[type="datetime-local"],
.contact-form input[type="color"],
.contact-form textarea {
  color: #111827 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #fff;
  padding: 13px 16px;
  box-sizing: border-box;
}

/* テキストエリアは縦方向のみにリサイズ許可し、横スクロールを防止 */
.contact-form .wpcf7-textarea,
.contact-form textarea {
  resize: vertical;
  overflow: auto;
  width: 100%;
  max-width: 100%;
}

/* 横幅100% */
.lp-main .free,
.lp-main .cta,
.lp-main .contact {
  align-self: stretch;
  width: 100%;
}

/* footer */
.footer {
  text-align: center;
  padding: 20px 0px 0px 0px;
  color: #03C100;
}

.lp-main .contact+.footer {
  margin-top: -120px;
}

/* KV ボタンのテキスト表示切り替え（デフォルトはPC向け） */
.kv-content-button .web-button-text {
  display: inline;
}

.kv-content-button .web-button-text-sp {
  display: none;
}



/* pc小さめの時 */
@media (max-width: 1000px) {
  .kv-content-button .web-button-text {
    display: none;
  }

  .kv-content-button .web-button-text-sp {
    display: inline;
    font-size: 18px;
    font-weight: 600;
  }

  .kv-content-button .mailicon-img,
  .kv-content-button .arrowicon-img {
    width: 28px;
    height: 28px;
  }

  .kv-content-button .web-button-contact .arrowicon-img {
    width: 20px;
    height: 20px;
  }
}


/* tablet */
@media (max-width: 780px) {
  .header {
    padding: 10px 20px;
  }

  .header .web-button {
    display: none;
  }

  .header .web-button-line {
    display: flex;
    padding: 10px 10px;
  }

  .lp-main {
    gap: 64px;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .kv,
  .worries,
  .why,
  .service,
  .table,
  .voice,
  .flow,
  .faq,
  .free-img,
  .contact-bg,
  .cta,
  .example-img {
    padding: 0px 60px;
  }


  .kv {
    padding: 0px;
  }

  .kv-bg {
    margin-top: -10px;
  }

  .kv-img-no {
    display: none;
  }

  .kv-img {
    padding: 0px 20px 40px 20px;
  }

  .kv-img1 {
    display: block;
    margin: 0 auto;
  }

  .kv-content-button {
    display: flex;
    justify-content: center;
  }

  .kv-content-button .web-button-contact {
    margin: -10px;
    width: 92%;
    align-items: center;
    padding: 20px 20px;
  }

  /*free*/
  .free-bg {
    background-image: url('../rakusumi-child/images/sp-free-bg.svg');
    padding: 110px 0px 80px 0px;
  }

  /* cta */
  .cta {
    background-image: url('images/sp-cta-bg.png');
    padding: 20px 60px 40px 60px;
  }

  .cta-content-button {
    padding: 6px 0px;
    margin: 0 auto;
    width: 100%;
    max-width: 511px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .cta-content-button a {
    display: block;
    margin-bottom: -25px;
  }

  .cta-content-button picture {
    display: block;
    width: 100%;
  }

  .cta-content-button img {
    transition: opacity 0.3s ease;
    display: block;
    width: 100%;
    height: auto;
    transform: none;
  }

  /* example */
  .lp-main .cta+.example {
    margin-top: -64px;
    padding: 64px 0px;
  }

  /* kv と banner の間の gap を打ち消し */
  .lp-main .kv+.banner {
    margin-top: -24px;
  }

  .example {
    padding: 0px 0px 64px 0px;
  }

  /* contact */
  .contact {
    padding: 20px 0px;
  }

  .contact-bg {
    padding-bottom: 50px;
  }

  .contact-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form label {
    font-size: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-bottom: 0px;
  }

  .wpcf7-form {
    flex-direction: column;
    align-items: center;
  }

  .wpcf7-form p {
    display: flex;
    flex-direction: column;
    align-items: left;
  }

  .wpcf7-form .wpcf7-submit {
    margin-top: 20px;
    width: 100%;
  }

  /* チェックbox横並びを強制 */
  .wpcf7-acceptance,
  .wpcf7-acceptance .wpcf7-list-item,
  .wpcf7-acceptance .wpcf7-list-item label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  /* テキストはinlineのまま */
  .wpcf7-acceptance .wpcf7-list-item-label {
    display: inline;
  }

  /* ラベル幅の固定を解除 */
  .contact-form .wpcf7-acceptance label {
    width: auto;
  }

  /* チェックボックスとテキストの間隔 */
  .wpcf7-acceptance input[type="checkbox"] {
    margin: 0px 0px 8px 0px;
  }
}

/* sp */
@media (max-width: 480px) {

  .worries,
  .why,
  .service,
  .table,
  .voice,
  .flow,
  .faq,
  .free-img,
  .contact-bg,
  .cta,
  .example-img,
  .banner {
    padding: 0px 20px;
  }

  .lp-main {
    padding-top: 90px;
  }

  .header {
    padding: 8px 20px;
  }

  .header .logo {
    width: 45px;
    max-width: none;
    height: auto;
  }

  .header .web-button-line .web-button-text {
    font-size: 16px;
  }

  .kv {
    margin: 0 20px;
  }

  .kv-content-button .web-button-contact .arrowicon-img {
    right: 10px;
    width: 15px;
  }

  .kv-content-button .web-button-contact {
    width: 100%;
  }

  .free-bg {
    padding: 60px 0px;
  }

  .cta {
    padding: 20px 20px;
  }

  .cta-content-button a {
    display: block;
    margin-bottom: -20px;
  }

  .lp-main .contact+.footer {
    margin-top: -64px;
  }

}