/* 
Theme Name: YNS-Sanda-BlockTheme
Theme URI: https://www.yns-sanda.jp
Author: Kosuke Shinto
Description: The Yns sanda corp theme.
Version: 3.6
 */

 /* 
  Default
 */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
} 

.no-list-style {
  list-style: none;
}

.scroll-x {
  overflow-y: scroll !important;
  white-space: nowrap;
}

/* Elements */
img {
  max-width: 100%;
  height: auto;
}

/* 
  ***************
  YNS-Sanda-BlockTheme
  ***************
*/

/*
  ***************
  Contact Form 7
  ***************
*/

.wpcf7 {
  max-width: 540px;
  margin: 0 auto;
}

.wpcf7-item {
  position: relative;
  margin: 0;
  padding: 1em 0;
}

.wpcf7-item p {
  margin: 0;
}

.wpcf7-item span:has(.wpcf7-not-valid-tip) input {
  background: #FFF5F5;
  border: #FFC9C9 1px solid;
}

.wpcf7-item--flex p {
  display: flex;
  gap: 5px;
}

.wpcf7 p,
.wpcf7 label {
  font-size: 1em;
  letter-spacing: .05em;
}


.wpcf7-privacy {
  padding: 12px 24px;
  background-color: var(--wp--preset--color--bg-primary);
}

.wpcf7-privacy .wpcf7-list-item {
  margin-left: 0;
}

.wpcf7-privacy p {
  margin: 16px 0;
  line-height: 1.5;
  -webkit-user-select: none;
}

.wpcf7-privacy .wpcf7-list-item label {
  display: flex;
  align-items: center;
}

.wpcf7-privacy input[type="checkbox"] {
  margin-right: 18px;
}

.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=date],
.wpcf7 input[type=tel],
.wpcf7 select,
.wpcf7 textarea {
  appearance: none;
  width: 100%;
  font-size: 1em;
  line-height: 42px;
  padding: 0 .75em;
  border: 1px solid #ebebeb;
  background:#F7F7F7;
  border-radius: .25em;
}

.wpcf7 input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.wpcf7-checkbox,
.wpcf7-radio {
  margin-top: 5px;
}

.wpcf7-checkbox label,
.wpcf7-radio label {
  position: relative;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  visibility: hidden;
}

.wpcf7-list-item-label {
  margin-left: 16px;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.wpcf7-list-item-label::before {
  width: 20px;
  height: 20px;
  background: white;
  border: 1px solid lightgray;
}

.wpcf7-list-item-label::after {
  top: 1px;
  left: 5px;
  width: 12px;
  height: 8px;
  transform: rotate(-45deg);
  border-left: 2px solid gray;
  border-bottom: 2px solid gray;
  opacity: 0;
}

.wpcf7-list-item input:checked + .wpcf7-list-item-label:after {
  opacity: 1;
}

.wpcf7 select {
  padding: 0 32px 0 12px;
}

.wpcf7 textarea {
  height: 9.375em;
  resize: none;
}

.wpcf7-form-control-wrap:has(.wpcf7-select) {
  position: relative;
  border: 1px solid var(--wp--preset--color--yns-blue);
  border-radius: .25em;
}

.wpcf7-form-control-wrap:has(.wpcf7-select)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  display: block;
  margin-left: 5px;
  width: 7px;
  height: 7px;
  border-left: 1px solid black;
  border-bottom: 1px solid black;
  transform: translateY(-50%) rotate(315deg);
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: solid 3px var(--wp--preset--color--primary);
}

.wpcf7-date {
  letter-spacing: .25em;
  appearance: auto !important;
}

.wpcf7-radio,
.wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpcf7-radio > span,
.wpcf7-checkbox > span {
  display: block;
  font-weight: normal;
}

.wpcf7-not-valid-tip {
  font-size: .81em;
  margin-top: .625em;
  padding: 2px 4px;
}

.wpcf7-privacy .wpcf7-list-item-label {
  margin-left: 36px;
}

.wpcf7-privacy .wpcf7-list-item-label::before {
  width: 42px;
  height: 16px;
  border: none;
  border-radius: 8px;
  background: lightgray;
}

.wpcf7-privacy .wpcf7-list-item-label::after {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #a1a1a1;
  opacity: 1;
  transition-duration: .3s;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
}


.wpcf7-privacy .wpcf7-list-item input:checked + .wpcf7-list-item-label::before {
  background: #c3e2ff;
}

.wpcf7-privacy .wpcf7-list-item input:checked + .wpcf7-list-item-label::after {
  background: #0084ff;
  left: 18px;
}

.wpcf7-submit {
  border: none;
  width: 200px;
  height: 50px;
  font-size: 1em;
  font-weight: bold;
  letter-spacing: .25em;
  border-radius: 25px;
  color: #fff;
  background-color: var(--wp--preset--color--primary);
  cursor: pointer;
}

.wpcf7-submit:disabled {
  background-color: gray;
  color: lightgray;
}

/* 600px未満で非表示 */
@media screen and (max-width:600px) {
  .sp-hidden {
    display: none;
  }
}