.menu {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 200;
}
.menu span {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.menu span:nth-of-type(1) {
  transform: translateY(-6px);
}
.menu span:nth-of-type(2) {
  transform: translateY(0);
}
.menu span:nth-of-type(3) {
  transform: translateY(6px);
}

#menu {
  display: none;
}
#menu:checked ~ .main .sidebar {
  left: 0;
}
#menu:not(:checked) ~ .main .sidebar {
  left: -300px;
}
#menu:checked ~ .header .menu span:nth-of-type(1) {
  transform: rotate(45deg);
}
#menu:checked ~ .header .menu span:nth-of-type(2) {
  opacity: 0;
}
#menu:checked ~ .header .menu span:nth-of-type(3) {
  transform: rotate(-45deg);
}

.nav a.active {
  background: var(--white);
  color: var(--purple);
}

/* メインレイアウト */
.main {
  display: flex;
  padding-top: 60px;
  max-width: 800px;
}

/* フォーム中央配置 */
.content {
  flex: 1;
  margin-left: 0 !important;
  width: 100%;
  padding: 100px 40px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
}
.content.fullwidth {
  margin-left: 0 !important;
}

/* Contactフォーム */
.contact-form {
  max-width: 800px;
  width: 100%;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}
.contact-form h2 {
  margin-top: 0;
  color: var(--purple);
  text-align: center;
  font-size: 2.2rem;
}

/* 入力系（input, textarea）— 矢印無し */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-top: 5px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  font-size: 1.1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  appearance: none;
  background-image: none;
}

/* プルダウン（select）— 高さ自動＆矢印中央配置 */
.contact-form select {
  width: 100%;
  padding: 12px 36px 12px 12px; /* 上下12px、右36px(矢印+余白) */
  margin-top: 5px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  font-size: 1.1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  appearance: none;
  /* 矢印アイコン */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 10px 6px;
  /* 折返し防止 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* プルダウン先頭のプレースホルダを小さく */
.contact-form select option:disabled {
  font-size: 1rem;
}

/* フォーカス状態 */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px rgba(60, 60, 108, 0.2);
}
/* ラベル文字を少し大きく */
.contact-form label {
  font-size: 1.1rem; /* 元1rem→1.1remに */
}

/* テキストエリア */
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

/* 送信ボタン */
.contact-form .btn-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: var(--btn-bg);
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form .btn-submit:hover {
  background: var(--btn-hover-bg);
}
