/**
* 1. css変数
* 2. タグ
* 3. クラス
*/

:root {
  /* 配色 */
  --border-color: var(--color-gray);

  /* レイアウト */

  --size: 1.4rem;
  --size-md: 2rem;
  --size-lg: 2.4rem;
  --color-black: #4d4d4d;
  --color-gray: #dbdbdb;
  --color-white: #fff;
  --main-color: #d9e136;
  --main-color-text: var(--color-white);

  /* タイポグラフィ */
  --text-size: 16px;
  --text-font: Arial, sans-serif;
  --text-font-heading: Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--text-size);

  scroll-behavior: smooth;
}

body {
  background-color: #f9f9f9;
  color: var(--color-black);
  line-height: 1.6;
  font-family: var(--text-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--text-font-heading);
}

img {
  width: 100%;
  height: auto;
  color: var(--color-black);
  font-size: 1rem;
  vertical-align: middle;
}

ul {
  list-style-type: none;
}

li {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
}

/* レイアウト */
.l-container {
  padding-right: 1rem;
  padding-left: 1rem;
}

.l-margin-b {
  margin-bottom: var(--size);
}

.l-padding-y-md {
  padding-top: var(--size-md);
  padding-bottom: var(--size-md);
}

.background {
  background-color: var(--main-color);
  color: var(--main-color-text);
}

/* タイポグラフィ */

.text-heading {
  font-size: var(--size);
  letter-spacing: 0.2rem;
}

.text-color-main {
  color: var(--main-color);
}

.text-weight-bold {
  font-weight: bold;
}
.text-center {
  text-align: center;
}

.header {
  margin-bottom: var(--size);
  padding-bottom: var(--size);
  background-color: var(--color-white);
}

/* メインコンテンツ */
.sales-point {
  line-height: 1.8;
}

/* ボタン */
.button {
  display: block;
  margin-right: auto;
  margin-left: auto;
  padding: 1rem var(--size);
  border: none;
  background-color: var(--main-color);
  color: var(--main-color-text);
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.button:hover {
  opacity: 0.8;
}
.button-rc {
  width: 80%;
  max-width: 350px;
  border-radius: 5rem;
  font-size: 0.85rem;
}

/* フォーム */
input {
  -webkit-appearance: none;
}
input[type="submit"] {
  border-radius: 0;

  -webkit-appearance: none;
}
.form .form-description {
  margin-bottom: var(--size);
}

.form-error {
  color: #c30;
  line-height: 1;
}
.form-field {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
}
.form-label-required {
  position: relative;
}
.form-label-required::after {
  display: inline-block;
  margin-left: 5px;
  color: var(--main-color);
  content: "*";
}

.form-input {
  width: 100%;
  min-height: 40px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--color-white);
  font-family: var(--text-font);
  transition: 0.3s ease;
  transition-property: border-color, box-shadow;
}
.form-input:focus {
  border-color: hsl(207, 100%, 63%);
  box-shadow: 0 0 0 2px hsla(207, 100%, 63%, 0.2);
  outline: 0;
}
.form-input-textarea {
  resize: none;
}

.form-submit {
  width: 90%;
  max-width: 500px;
  font-weight: bold;
  font-size: 1.2rem;
}

@media (min-width: 720px) {
  .text-heading {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .l-flex-lg {
    display: flex;
  }
  .l-flex-lg > .header {
    width: 61%;
  }
  .l-flex-lg > main {
    width: 39%;
  }

  .l-hidden-lg {
    display: none;
  }

  .text-heading {
    font-size: var(--size-lg);
  }

  .header {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .sales-point {
    display: flex;
    justify-content: center;
    margin-bottom: var(--size-md);
  }
  .sales-point > li {
    flex: 1 0 auto;
    margin-bottom: 0;
    border-right: 1px solid var(--border-color);
  }
  .sales-point > li:last-child {
    border-right: none;
  }
  .sales-point > li > div {
    padding: 0 0.5rem;
  }

  .form {
    margin-top: 1rem;
  }
  .form-submit {
    font-size: var(--size);
  }
}
