/* 電話番号フィールド用スタイル - 英語版と同じ統一スタイル */
.phone-input-container {
  display: flex;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden; /* 角の丸みを保持 */
}

.phone-input-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(145, 138, 122, 0.2);
}

.country-code-select.ja {
  width: 53%!important;
  flex: 0 0 auto;
  min-width: 180px;
  position: relative;
}

.country-code-select select {
  width: 100%;
  height: 46px;
  padding: 12px 30px 12px 12px;
  border: none;
  background-color: transparent;
  border-radius: 0;
  box-sizing: border-box;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23918A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.phone-input-container input[type="tel"] {
  flex: 1;
  height: 46px;
  padding: 12px;
  border: none;
  background-color: transparent;
  border-radius: 0;
  box-sizing: border-box;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.phone-input-container input[type="tel"]:focus,
.country-code-select select:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.5);
}

/* モバイルビュー調整 */
@media screen and (max-width: 768px) {
  .phone-input-container {
    flex-direction: column;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }
  
  .phone-input-container:focus-within {
    border: none;
    box-shadow: none;
  }
  
  .country-code-select {
    flex: none;
    width: 100%;
    min-width: auto;
    margin-bottom: 15px;
  }
  
  .country-code-select::after {
    display: none;
  }
  
  .country-code-select select {
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 12px 30px 12px 12px;
  }
  
  .country-code-select select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(145, 138, 122, 0.2);
    background-color: #f9f9f9;
  }
  
  .phone-input-container input[type="tel"] {
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 12px;
  }
  
  .phone-input-container input[type="tel"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(145, 138, 122, 0.2);
    background-color: #f9f9f9;
  }
}