select {

  /* styling */
  background-color: white;
  border: thin solid #F9E2A7;
  border-radius: 4px;
  display: inline-block;
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;

  /* reset */

  margin: 0;      
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}


/* arrows */

select.classic {
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%),
    linear-gradient(to right, #B74C30, #B74C30);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    100% 0;
  background-size:
    5px 5px,
    5px 5px,
    2.5em 2.5em;
  background-repeat: no-repeat;
}

select.classic:focus {
  background-image:
    linear-gradient(45deg, white 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, white 50%),
    linear-gradient(to right, #B74C30, #B74C30);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    100% 0;
  background-size:
    5px 5px,
    5px 5px,
    2.5em 2.5em;
  background-repeat: no-repeat;
  border-color: #F9E2A7;
  outline: 0;
}




select.round {
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%),
    radial-gradient(#ddd 70%, transparent 72%);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - .5em) .5em;
  background-size:
    5px 5px,
    5px 5px,
    1.5em 1.5em;
  background-repeat: no-repeat;
}

select.round:focus {
  background-image:
    linear-gradient(45deg, white 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, white 50%),
    radial-gradient(white 70%, transparent 72%);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    calc(100% - .5em) .5em;
  background-size:
    5px 5px,
    5px 5px,
    1.5em 1.5em;
  background-repeat: no-repeat;
  border-color: #F9E2A7;
  outline: 0;
}





select.minimal {
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

select.minimal:focus {
  background-image:
    linear-gradient(45deg, white 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, white 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  border-color: #F9E2A7;
  outline: 0;
}


select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}
input[type="text"].classic {
  background-color: white;
  border: thin solid #F9E2A7;
  border-radius: 4px;
  display: inline-block;
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 1em;

  margin: 0;
  box-sizing: border-box;
}
button[type="submit"].classic {
  background-color: #B74C30;
  color: white;
  border: thin solid #F9E2A7;
  border-radius: 4px;
  font: inherit;
  padding: 0.5em 2em;
  line-height: 1.5em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button[type="submit"].classic:hover {
  background-color: #f27453;
  color: #fff;
}



/* 共通スタイル（デフォルトはPC向け、詰め気味） */
form.form-search label,
form.form-search select,
form.form-search input[type="text"],
form.form-search button {
  display: inline-block;
  width: auto;
  margin-bottom: 0.4em;
  line-height: 1.4em;
  font-size: 1rem;
  padding: 0.4em 1em;
  vertical-align: middle;
}

/* ボタンの個別調整 */
form.form-search button {
  margin-top: 0.5em;
  border: 1px solid #0077cc;
  background-color: #81d0cb;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 160px;
}

/* スマホ用スタイル */
@media (max-width: 768px) {
  form.form-search label,
  form.form-search select,
  form.form-search input[type="text"],
  form.form-search button {
	display: block;
	width: 100%;
	/* [disabled]margin-bottom: 1.2em; */
	font-size: 1.05rem;
  }

  form.form-search button {
    width: 100%;
    font-size: 1.1rem;
  }
}
select.classic {
  color: #333 !important; /* ← 好きな文字色に変更 */
}

/* iOS対策：Webkit内部スタイルを上書き */
select.classic:focus {
  color: #333 !important;
}
.select-unified {
  width: 160px; /* 好みの幅に調整 */
  max-width: 100%;
  box-sizing: border-box;
}
.select-fixed {
  width: 180px !important; /* ← お好みの幅に調整。例：160px */
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .select-fixed {
    width: 100% !important;
  }
}
select.custom-select {
  padding-right: 2.5em; /* ← 矢印と被らないよう右側に余白を確保 */
  width: 160px;         /* ← 幅を調整（必要に応じて変更） */
  box-sizing: border-box;
}