Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <main id="contact">
	<article class="form">
		<div class="container">
			<div class="cf7">
				<dl class="flex fai w100">
					<dt class="tx_box">お名前(漢字)<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[text your-name]</dd>
					</div>
				</dl>
				<dl class="flex fai w100">
					<dt class="tx_box">フリガナ(全角カナ)<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[text your-name]</dd>
					</div>
				</dl>
				<div class="age">
					<dl class="flex fai w100">
					<dt class="tx_box">年齢<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[number number-825 min:1 max:150]</dd>
					</div>
					</dl>
				</div>
				<dl class="flex fai w100">
					<dt class="tx_box">メールアドレス<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[email* your-email id:mail-A]</dd>
					</div>
				</dl>
				<dl class="flex fai w100">
					<dt class="tx_box">メールアドレス<br class="sp-no">(確認用)<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[email* your-email_confirm id:mail-B placeholder "確認のためもう一度入力してください" ]</dd>
					</div>
				</dl>
				<dl class="flex fai w100">
					<dt class="tx_box">電話番号<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[tel tel-259]</dd>
					</div>
				</dl>
				<dl class="flex fai w100">
					<dt class="tx_box">お問い合わせ内容<span class="pc-no">必須</span></dt>
					<div class="required flex fai w90">
						<dd class="sp-no">必須</dd>
						<dd>[textarea textarea-506]</dd>
					</div>
				</dl>
				<div class="consent">
				[acceptance acceptance-680 class:acceptance optional] プライバシーポリシーに同意して送信します。[/acceptance]
				</div>
				<div class="confirmation">
				[submit id:submit "内容を確認して送信する"]
				[multistep multistep-886 first_step "/contact-confirm"]
				</div>
			</div>
		</div>
	</article>
</main>
              
            
!

CSS

              
                :root {
	--copink: #CC8F80;
	--cobpink: #955C56;
	--cocco: #320B0B;
	--cogwhite: #F7F4EF;
	--cowhite: #fff;
  --coblue: #3F8CE6;
  --cored: #CB3D55;
}
/* reset.css */
html, body, div, span, object, iframe, article, aside, canvas, details, pre, figcaption, figure,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, input, textarea, select, button, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
color: #320B0B;
font-family: YakuHanJPs_Noto,'Zen Kaku Gothic New','Secular One',sans-serif;
font-size: inherit;
font-style: normal;
font-weight: 500;
line-height: 1.75;
letter-spacing: 0.08em;
vertical-align: baseline;
margin: 0;
padding: 0;
border: 0;
outline: 0;
background: transparent;
list-style: none;
-ms-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-o-text-size-adjust: 100%;
text-size-adjust: 100%;
}
html {font-size: 10px;}
body * {font-size: 1.8rem;}
html {overflow: auto; overflow-y: scroll;}
body {position: relative; background: #fff; min-width: 100%; max-width: 100%;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
nav ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content:''; content: none;}
p {margin: 0; padding: 0;}
b {font-weight: 900;}
address {text-decoration: none; font-style: normal;}
a {margin: 0; padding: 0; font-size: 100%; color: #474747; vertical-align: baseline; background: transparent; text-decoration: none; transition: .4s ease;}
a:hover {opacity: .6; cursor: pointer;}
a:focus, *:focus {outline: none;}
img {display: block; max-width: 100%; height: auto; transition: .5s ease;}
a:hover img {cursor: pointer; zoom: 1;}
svg,
img[src$=".png"],
img[src$=".pngz"] {display: block; max-width: 100%; height: auto;}
ins {background: transparent; color: #333; text-decoration: none;}
mark {background: transparent; color: #333; font-style: italic; font-weight: bold;}
del {text-decoration: line-through;}
abbr[title], dfn[title] {border-bottom: 1px dotted; cursor: help;}
table {border-collapse: collapse; border-spacing: 0;}
hr {display: block; height: 1px; border: 0; border-top: 1px solid #ddd; margin: 1em 0; padding: 0;}
::selection {background: #ddd;}
input {vertical-align: middle; position: relative; background: transparent;}
select {appearance: none; -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none; background: #fff;}
button {background-color: transparent; border: none; cursor: pointer; outline: none; padding: 0; appearance: none;}
input[type="submit"],input[type="reset"],input[type="button"],button {cursor: pointer; -webkit-appearance: button; -ms-appearance: none; *overflow: visible;}
input[type="submit"] {border: none;}
input:-webkit-autofill {-webkit-box-shadow: 0 0 0 1000px white inset;}
select::-ms-expand {display: none;}
select:focus {outline: none;}
select: {outline: none;}
input::-ms-clear {visibility: hidden;}
input:focus {outline: none;}
input::-ms-reveal {visibility: hidden;}
.display-name {color: #fff;}
.active {transform: translate3d(0,0,0);}
*, *:before, *:after {box-sizing: border-box;}
body {
	background-color: var(--cogwhite);
  overflow: hidden;
}
p {margin: 0; padding: 0;}
/*------------------------------------
汎用↓
------------------------------------*/
.b {font-weight: 900;}
.tcen {text-align: center;}
.flex {display: flex;}
.fai {align-items: center;}
.fjcb {justify-content: space-between;}
.w100 {width: 100%;}
.w90 {width: 90%;}
.w80 {width: 80%;}
.container {
  width: 1100px;
	margin: auto;
}
.le014 {
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}
.le03 {
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
.se_font {
  font-family: 'Secular One', sans-serif;
}
input,
textarea {
  width: 100%;
  resize: none;
}
input.acceptance {
  width: 2rem;
  height: 2rem;
  margin-bottom: .5rem;
}
/* common.css */
#contact .form div .cf7 .required dd:first-of-type {
  color: #E66F6B;
  border: 1px solid #E66F6B;
  font-weight: 700;
}
#contact .form div .cf7 .required dd:last-of-type {
  border: 1px solid var(--cocco);
  background-color: var(--cowhite);
}
#contact .form div .cf7 div .consent {
  text-align: center;
}
#contact .form div .cf7 div .confirmation {
  text-align: center;
}
#contact .form div .cf7 div .confirmation input {
  display: inline-block;
  width: auto;
  border: 1px solid var(--cocco);
}
/* pc.css */
@media (min-width: 1000px) {
.pc-no {
  display: none;
}
  #contact .form {
  padding: 10.3rem 0 14.4rem;
}
#contact .form div .cf7 {
  margin-left: 8.6rem;
}
#contact .form div .cf7 .tx_box {
  min-width: 20rem;
}
#contact .form div .cf7 .required dd:first-of-type {
  font-size: 1.4rem;
  padding: .2rem 1rem;
  border-radius: .4rem;
  margin-right: 3.4rem;
  min-width: 5.4rem;
}
#contact .form div .cf7 .required dd:last-of-type {
  padding: 0.5rem;
  width: 90%;
  border-radius: .5rem;
}
#contact .form div .cf7 .age .required dd:last-of-type {
  width: 12rem;
}
#contact .form div .cf7 .w100 {
  margin-bottom: 3.2rem;
}
#contact .form div .cf7 div .consent {
  margin-top: 4.4rem;
}
#contact .form div .cf7 div .confirmation input {
  padding: 1.6rem 4.2rem;
  border-radius: 3rem;
  margin-top: 6rem;
  }
}
/* sp.css */
@media (max-width: 999px) {
  .container {
  width: 90%;
  margin: auto;
}
  .sp-no {
  display: none;
}
  #contact .form {
  padding: 7rem 0 10rem;
}
#contact .form div .cf7 .tx_box {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .9rem;
}
#contact .form div .cf7 .tx_box > .pc-no {
  color: #E66F6B;
  border: 1px solid #E66F6B;
  padding: 2px 7px;
  margin-left: 2rem;
}
#contact .required.flex.fai.w90 {
  width: 100%;
}
#contact .form div .cf7 .required dd:first-of-type {
  font-size: 1.4rem;
  padding: .2rem 1rem;
  border-radius: .4rem;
  margin-right: 3.4rem;
  min-width: 5.4rem;
}
#contact .form div .cf7 .required dd:last-of-type {
  padding: 0.5rem;
  width: 100%;
  border-radius: .5rem;
}
#contact .form div .cf7 .age .required dd:last-of-type {
  width: 12rem;
}
#contact .form div .cf7 div .w100 {
  margin-bottom: 3.2rem;
  display: block;
}
#contact .form div .cf7 div .consent {
  margin-top: 4.4rem;
}
#contact .form div .cf7 .wpcf7-list-item-label {
  font-size: 1.6rem;
}
#contact .form div .cf7 div .confirmation input {
  padding: 1.6rem 4.2rem;
  border-radius: 3rem;
  margin: 6rem auto 0;
  display: block;
}
#contact .wpcf7-list-item {
  margin: 0;
  }
}
              
            
!

JS

              
                $(function () {
	 $("#mail-A").change(function() {
		if($("#mail-A").val() === $("#mail-B").val()){
			$("#submit").prop("disabled", false);
			$("#submit").prop("value","内容を確認して送信する");
			$("#submit").css("pointer-events","auto");
		}else{
			$("#submit").prop("disabled", true);
			$("#submit").prop("value","メールアドレスが違います");
			$("#submit").css("pointer-events","none");
		}
	 });
	 $("#mail-B").change(function() {
		if($("#mail-A").val() === $("#mail-B").val()){
			$("#submit").prop("disabled", false);
			$("#submit").prop("value","内容を確認して送信する");
			$("#submit").css("pointer-events","auto");
		}else{
			$("#submit").prop("disabled", true);
			$("#submit").prop("value","メールアドレスが違います");
			$("#submit").css("pointer-events","none");
		}
	 });
});
              
            
!
999px

Console