body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.header {
  width: 100%;
  height: 80px;
  border-bottom: 2px solid #666;
  background-color: #fff;
  position: relative;
}

.logo {
  width: 120px;
  height: 50px;
  position: absolute;
  top: 15px;
  left: 20px;
}

h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 15px;
}

h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 10px;
}
main {
  margin-top: 30px;
}

p {
  margin: 0;
  padding: 0;
  text-align: center;
}

.lang-button {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  width: 200px;
  font-size: 16px;
  background-color: #fffafa;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  text-decoration: none;
}

@media (hover: hover) {
  .lang-button:hover {
    background-color: #ffe9f2;
  }
}

.lang-button:active {
  background-color: #ffe9f2;
}

/* 会員登録画面 */
.container {
  position: relative;
  width: 100%;
  max-width: 640px; /* PC時の最大幅 */
  height: auto;
  aspect-ratio: 320 / 250; /* 画像の比率維持 */
  margin: 0 auto;
  background-image: url('images/top_img.png');
  background-size: cover;
  background-position: center;
}

.text {
  position: absolute;
  width: 90%;
  max-width: 280px;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text p {
  margin: 0;
}

.text p + p {
  margin-top: 5px;
}

#pink{
  color:#ff0f96;
}
#blue{
  color:#1583f9;
}

p#campaign {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

form {
  max-width: 320px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-section {
  margin-top: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: #000;
}

.form-input {
  width: 100%;
  height: 38px;
  background-color: #fff;
  border: 1px solid #CED4DA;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 16px;
  font-family: inherit;
  color: #000;
  box-sizing: border-box;
}

/* 性別 */
.gender-select {
  max-width: 320px;
  align-items: center;
  gap: 20px;
  margin: 40px auto 0;
}

.gender-select label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
}

.gender-select select {
  height: 38px;
  background-color: #E6E6E6;
  border: 1px solid #CED4DA;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 16px;
  font-family: inherit;
  color: #000;
  pointer-events: none;
  appearance: none;      /* ▼を非表示（Chrome, Firefox） */
  -webkit-appearance: none; /* Safari用 */
  -moz-appearance: none;    /* Firefox用 */
  background-image: none;   /* IE用 */
}

.form-input:disabled {
  background-color: #fffafa;
  color: #666;
}

/* 生年月日 */
.birthdate-selects {
  display: flex;
  gap: 10px;
}

.birthdate-selects select {
  flex: 1;
}

/* 利用規約 */
.terms-box {
  width: 300px;
  height: 150px;
  border: 1px solid #ccc;
  overflow-y: scroll;
  padding: 10px;
  margin-bottom: 10px;
  text-align: left;
}
.terms-box p {
  text-align: left;
  margin-bottom: 15px;
}


/* 登録ボタン */
.submit-button {
  width: 100%;
  height: 50px;
  background-color: #FFC65C;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  margin: 50px auto 80px;
}
