/* デザイン調整用CSS */

/* すべてのフォーム要素に適用 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  /* Androidの独自スタイルをリセット */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* box-sizingを指定（重要！） */
  box-sizing: border-box;

  /* 最小の高さを確保（タップしやすい） */
  min-height: 44px; /* Androidの推奨タップサイズ */

  /* line-heightを明示的に */
  line-height: 1.5;

  /* Androidでのレンダリング改善 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* selectは特別扱い */
select {
  background-color: #ffffff;
}

/* textareaは縦方向の余白も確保 */
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6; /* テキストエリアは少し広めに */
}

/* PC/SPクラス */
@media only screen and (max-width: 480px) {
  .pc {
    display: none;
  }
}

.sp {
  display: none;
}

@media only screen and (max-width: 480px) {
  .sp {
    display: block;
  }
}

@media screen and (max-width: 480px) {
    #header h1 {
      text-align: left;
      padding: 10px 20px 5px 0!important;
      font-size: 14px;
    }
}

table caption {
    margin-bottom: 20px;
    padding: 12px;
    border-left: 4px solid #c11920!important;
}

table th, table td {
    padding: 10px 20px 24px!important;
    border-top: none!important;
}

table th pre {
    padding: 0!important;
    line-height: 1.8;
}

table td {
    background-color: #FFF;
}

@media only screen and (max-width: 480px) {
    table td {
        padding: 10px 0 24px!important;
    }
}

table td pre {
    display: inline;
    line-height: 1.6;
}

@media only screen and (max-width: 480px) {
    table tbody tr th pre {
        padding: 10px 0 0 24px!important;
    }
}

input[type=text], input[type=password], select, textarea {
    box-shadow: none!important;
}

select {
    width: 100% !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='currentColor' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

td input[type="text"]:focus, textarea:focus, input[type="password"]:focus, select:focus, input[type="radio"]:focus, input[type="checkbox"]:focus, input[type="button"]:focus {
    outline: none;
}

input[type="radio"]:focus {
    border-color: initial !important;
    box-shadow: none !important;
}

table td label {
    padding: 7px 0;
    display: block;
}

input[type="radio"], input[type="checkbox"] {
    margin: 0 12px 0 6px;
    accent-color: #c11920;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

input::placeholder {
    font-size: 14px;
    color: #999;
}

input[type=button][name^="btnZipCode"] {
    min-height: 44px;
    color: white;
    background-color: #8f9dab;
    background-image: none;
    border: none;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    font-weight: normal;
    margin: 0 0 4px !important;
    padding: 6px!important;
    text-shadow: none !important;
    cursor: pointer;
}

span.required {
    padding: 0px 8px!important;
    margin-top: 4px !important;
    border-radius: 4px;
    float: right;
}

span.optional {
    background-color: #BBB;
}

#event_area {
    margin: 40px 0!important;
    display: flex;
    justify-content: center;
    row-gap: 20px;
    column-gap: 40px;
}

#event_area .bt {
    padding: 14px 60px!important;
    border-radius: 12px!important;
    letter-spacing: 0.1em;
    max-width: none!important;
    min-width: 200px;
    cursor: pointer;
    margin: 0!important;
    box-shadow: none!important;
}

#event_area .bt.back {
    background-color: #BBB !important;
    border-color: #BBB !important;
    color: #FFF !important;
}

@media only screen and (max-width: 480px) {
    #event_area {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    #event_area .bt {
        margin: 10px 0!important;
        width: 100%!important;
        max-width: 300px!important;
    }
}

.input-label {
    font-size: 16px;
    margin-bottom: 4px;
}

.helper-text {
    font-size: 14px;
    color: #666;
}

.flex-container {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.flex-container.wrap-enabled {
    flex-wrap: wrap;
}

.flex-container.wrap-enabled .pos-wrap {
    order: -1;
    width: 100%;
}

.flex-container.wrap-enabled input[type="text"] {
    flex: 1;
    min-width: 0;
}

.copy-check {
    margin-bottom: 16px;
    padding: 10px 12px;
    background-color: #eff6ff;
    border-radius: 4px;
}

.copy-check label {
    font-size: 16px;
    line-height: 1.4;
    user-select: none;
    padding: 0;
}

.copy-disabledlike {
    background-color: #f3f3f3 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
    box-shadow: none !important;
}

.copy-disabledlike:focus {
    outline: none !important;
}

/* オートフィルのデフォルト背景（水色）より.copy-disabledlikeを優先 */
input.copy-disabledlike:-webkit-autofill,
textarea.copy-disabledlike:-webkit-autofill,
select.copy-disabledlike:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f3f3f3 inset !important;
    box-shadow: 0 0 0 1000px #f3f3f3 inset !important;
    -webkit-text-fill-color: #666 !important;
}

.notice-area {
    text-align: left;
    background-color: #f8f9fa;
    margin: 8px 0 16px;
    padding: 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6!important;
    box-sizing: border-box;
}

.notice-area ul {
    padding-left: 16px;
    margin: 8px 0 0 0;
}

.notice-area ul li {
    list-style-type: disc;
}