.otte-form,
.otte-confirm {
    max-width: 980px;
    margin: 0 auto;
}

.otte-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 2%;
}

.otte-field {
    box-sizing: border-box;
    margin-bottom: 12px;
}

.otte-width-25 { width: 23.5%; }
.otte-width-33 { width: 31.9%; }
.otte-width-50 { width: 49%; }
.otte-width-66 { width: 65.9%; }
.otte-width-75 { width: 74.5%; }
.otte-width-100 { width: 100%; }

.otte-field > label,
.otte-repeater-cell > label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.otte-field > label,
.otte-repeater-cell > label {
    font-size: var(--otte-form-font-size, 16px);
}

.otte-field input[type="text"],
.otte-field input[type="email"],
.otte-field input[type="tel"],
.otte-field input[type="number"],
.otte-field input[type="date"],
.otte-field select,
.otte-field textarea,
.otte-repeater input,
.otte-repeater select {
    box-sizing: border-box;
    width: 100%;
    font-size: var(--otte-form-font-size, 16px);
    line-height: 1.35;
    min-height: calc(var(--otte-form-font-size, 16px) * 2.5);
    padding:
        calc(var(--otte-form-font-size, 16px) * 0.45)
        calc(var(--otte-form-font-size, 16px) * 0.65);
}

.otte-field textarea {
    min-height: calc(var(--otte-form-font-size, 16px) * 7.5);
}

.otte-required {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: .75em;
    color: #fff;
    background: #b42318;
    border-radius: 3px;
}

.otte-help {
    margin-top: 4px;
    font-size: .9em;
    color: #666;
}

.otte-repeater {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #ccc;
}

.otte-repeater legend {
    padding: 0 8px;
    font-weight: 700;
}

.otte-repeater-rows {
    width: 100%;
    max-width: 100%;
}

.otte-repeater-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.otte-repeater-tier {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    align-items: flex-end;
}

.otte-repeater-cell {
    box-sizing: border-box;

    /*
     * 幅(px)は「基本幅」。
     * flex-growを0にすることで、余白があっても指定幅を超えて
     * 自動的に拡大しない。
     *
     * flex-shrinkを1にすることで、親幅が狭い場合は
     * 最低幅(px)まで縮小できる。
     */
    flex: 0 1 var(--otte-col-width, 180px);
    width: min(var(--otte-col-width, 180px), 100%);
    min-width: min(var(--otte-col-min-width, 110px), 100%);
    max-width: 100%;
}

.otte-repeater-remove-wrap {
    flex: 0 0 38px;
    min-width: 38px;
}

.otte-remove-row {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.otte-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.otte-button {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #999;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.otte-primary {
    color: #fff;
    background: #2271b1;
    border-color: #2271b1;
}

.otte-notice {
    max-width: 980px;
    margin: 16px auto;
    padding: 14px 16px;
    border-left: 4px solid #2271b1;
    background: #f6f7f7;
}

.otte-error { border-left-color: #b42318; }
.otte-success { border-left-color: #008a20; }

.otte-confirm-table,
.otte-pdf-fields,
.otte-pdf-repeater {
    width: 100%;
    border-collapse: collapse;
}

.otte-confirm-table th,
.otte-confirm-table td,
.otte-pdf-fields th,
.otte-pdf-fields td,
.otte-pdf-repeater th,
.otte-pdf-repeater td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.otte-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .otte-width-25,
    .otte-width-33,
    .otte-width-50,
    .otte-width-66,
    .otte-width-75,
    .otte-width-100 {
        width: 100%;
    }

    .otte-repeater-row {
        width: 100%;
        max-width: 100%;
    }

    .otte-repeater-tier {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .otte-repeater-cell {
        /*
         * スマートフォンでは入力しやすさを優先し、
         * 列ごとの基本幅より画面幅100%を優先する。
         */
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.otte-closed { border-left-color: #646970; background: #f6f7f7; }


/* v1.6.11: 追加された行・ペア・チームでも、すべての入力項目名を常に表示する。 */

/* v1.5.0: pair / nested repeater presentation */
.otte-repeater-template,
.otte-member-template {
    display: none;
}

.otte-pair-item,
.otte-nested-item {
    position: relative;
    display: block;
    padding: 14px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background: #fafafa;
}

.otte-item-number {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.05em;
}

.otte-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.otte-pair-player,
.otte-team-parent,
.otte-team-members {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.otte-pair-player h5,
.otte-team-parent h5,
.otte-team-members h5 {
    margin: 0 0 10px;
    font-size: 1em;
}

.otte-member-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    align-items: flex-end;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.otte-member-number {
    flex: 1 1 100%;
    font-weight: 600;
}

.otte-member-row .otte-repeater-tier {
    flex: 1 1 100%;
}

.otte-member-remove-wrap {
    margin-left: auto;
}

.otte-remove-member {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.otte-output-card {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.otte-output-card h4,
.otte-output-card h5 {
    margin: 0 0 8px;
}

@media (max-width: 720px) {
    .otte-pair-grid {
        grid-template-columns: 1fr;
    }
}

.otte-pair-common{margin-bottom:14px;padding:12px;border:1px solid #cfe0ef;border-radius:5px;background:#f7fbff;}
.otte-pair-common h5{margin:0 0 10px;font-size:1em;}


/* v1.6.0 参加費表示 */
.otte-pricing-live,
.otte-pricing-summary-content {
    margin-top: 20px;
}

.otte-pricing-summary-content {
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
}

.otte-pricing-summary-content h3 {
    margin: 0 0 12px;
}

.otte-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.otte-pricing-table th,
.otte-pricing-table td {
    padding: 8px 10px;
    border: 1px solid #dbe3ec;
    text-align: left;
    vertical-align: top;
}

.otte-pricing-table thead th {
    background: #f1f5f9;
}

.otte-pricing-table tfoot th {
    background: #ecfdf5;
}

.otte-price-amount,
.otte-price-total {
    white-space: nowrap;
    text-align: right !important;
}

.otte-pricing-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 4px solid #d97706;
    background: #fffbeb;
}

@media (max-width: 720px) {
    .otte-pricing-table {
        font-size: .92em;
    }
}


/* v1.6.8
 * iPhone/iOS系ブラウザの入力フォーカス時自動ズーム対策。
 * フォーム全体の表示倍率を固定する viewport 指定は行わず、
 * スマホ時の入力コントロールだけ16px未満にならないようにする。
 * これによりアクセシビリティ上のユーザー拡大操作は妨げない。
 */
@media (max-width: 720px) {
    .otte-form input[type="text"],
    .otte-form input[type="email"],
    .otte-form input[type="tel"],
    .otte-form input[type="number"],
    .otte-form input[type="date"],
    .otte-form input[type="search"],
    .otte-form input[type="url"],
    .otte-form input[type="password"],
    .otte-form textarea,
    .otte-form select {
        font-size: max(16px, var(--otte-form-font-size, 16px));
    }
}


/* v1.6.12: すべてのリピーター行で項目名を必ず表示する。 */
.otte-repeater-row .otte-repeater-column-label,
.otte-member-row .otte-repeater-column-label {
    display: block !important;
}

.otte-confirm-warning{border:2px solid #1765b3;background:#edf5ff;padding:16px;margin:0 0 20px;color:#13579b;font-size:1.1rem;font-weight:700;line-height:1.7}.otte-confirm-warning p{margin:.5em 0 0}.otte-name-hint{display:block;font-size:.85em;font-weight:normal;line-height:1.5}

.otte-address-set label{display:block;margin-top:10px}.otte-address-set input,.otte-address-set textarea,.otte-address-set select{width:100%;box-sizing:border-box}.otte-address-candidates{margin-top:8px}

/* 住所セットの入力欄を通常入力欄と同じフォント・余白に統一する。 */
.otte-field.otte-address-set input[type="text"],
.otte-field.otte-address-set textarea,
.otte-field.otte-address-set select {
    box-sizing: border-box;
    width: 100%;
    font-size: var(--otte-form-font-size, 16px);
    line-height: 1.35;
    min-height: calc(var(--otte-form-font-size, 16px) * 2.5);
    padding: calc(var(--otte-form-font-size, 16px) * 0.45)
             calc(var(--otte-form-font-size, 16px) * 0.65);
}
.otte-field.otte-address-set textarea {
    min-height: calc(var(--otte-form-font-size, 16px) * 7.5);
}
@media (max-width: 720px) {
    .otte-field.otte-address-set input[type="text"],
    .otte-field.otte-address-set textarea,
    .otte-field.otte-address-set select {
        font-size: max(16px, var(--otte-form-font-size, 16px));
    }
}

/* v2.0.6: 住所セットの見出しは通常入力と同じ label 要素を使用する。
   郵便番号・住所のサブラベルだけは見出し用の文字サイズを適用しない。 */
.otte-form .otte-fields > .otte-field:not(.otte-address-set) > label,
.otte-form .otte-fields > .otte-field.otte-address-set > label.otte-address-set-heading {
    font-family: inherit;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: normal;
}
.otte-form .otte-fields > .otte-field.otte-address-set > label.otte-address-set-heading {
    display: block;
    margin: 0 0 6px;
}
.otte-form .otte-fields > .otte-field.otte-address-set > label:not(.otte-address-set-heading) {
    font-size: var(--otte-form-font-size, 16px);
}
@media (max-width: 720px) {
    .otte-form .otte-fields > .otte-field:not(.otte-address-set) > label,
    .otte-form .otte-fields > .otte-field.otte-address-set > label.otte-address-set-heading {
        font-size: 16px !important;
    }
}

/* v2.0.8: PC画面のみ、タイトルと入力文字を約2px拡大。スマホは従来通り。 */
@media (min-width: 721px) {
    .otte-form .otte-fields > .otte-field:not(.otte-address-set) > label,
    .otte-form .otte-fields > .otte-field.otte-address-set > label.otte-address-set-heading {
        font-size: 22px !important;
    }
    .otte-form .otte-field.otte-address-set > label:not(.otte-address-set-heading),
    .otte-form .otte-repeater-cell > label,
    .otte-form .otte-repeater-column-label {
        font-size: calc(var(--otte-form-font-size, 16px) + 2px);
    }
    .otte-form .otte-field input[type="text"],
    .otte-form .otte-field input[type="email"],
    .otte-form .otte-field input[type="tel"],
    .otte-form .otte-field input[type="number"],
    .otte-form .otte-field input[type="date"],
    .otte-form .otte-field input[type="search"],
    .otte-form .otte-field input[type="url"],
    .otte-form .otte-field input[type="password"],
    .otte-form .otte-field textarea,
    .otte-form .otte-field select,
    .otte-form .otte-repeater input,
    .otte-form .otte-repeater textarea,
    .otte-form .otte-repeater select {
        font-size: calc(var(--otte-form-font-size, 16px) + 2px);
    }
}

/* v2.0.9: 確認画面の警告はテーマの見出し・段落色に左右されず青色で強調する。 */
.otte-confirm .otte-confirm-warning {
    border: 2px solid #1765b3 !important;
    background-color: #edf5ff !important;
    padding: 16px !important;
    margin: 0 0 20px !important;
    color: #13579b !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
}
.otte-confirm .otte-confirm-warning > strong,
.otte-confirm .otte-confirm-warning > p {
    color: #13579b !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    opacity: 1 !important;
}
.otte-confirm .otte-confirm-warning > p {
    margin: .5em 0 0 !important;
}

/* 受付確認メールの到達確認案内 */
.otte-mail-guidance { margin: 12px 0; padding: 12px 14px; border-left: 4px solid #1765b3; background: #edf5ff; color: #13579b; font-weight: 700; line-height: 1.6; }


/* v2.1.1: 申込案内・確認・完了・送信エラーを共通の見出し付き通知として表示 */
.otte-notice.otte-mail-guidance,
.otte-confirm .otte-confirm-warning,
.otte-notice.otte-success,
.otte-notice.otte-error {
    box-sizing: border-box;
    padding: 18px 20px !important;
    border: 2px solid currentColor !important;
    border-left-width: 6px !important;
    border-radius: 8px;
    line-height: 1.65 !important;
}
.otte-notice.otte-mail-guidance,
.otte-confirm .otte-confirm-warning { color: #13579b !important; background: #edf5ff !important; }
.otte-notice.otte-success { color: #166534 !important; background: #edf9f0 !important; }
.otte-notice.otte-error { color: #a61b1b !important; background: #fff1f1 !important; }
.otte-notice .otte-notice-heading,
.otte-confirm .otte-confirm-warning .otte-notice-heading {
    display: block; margin: 0 0 8px !important; padding: 0 !important;
    color: inherit !important; font-size: 1.3rem !important; font-weight: 800 !important;
    line-height: 1.45 !important; background: transparent !important;
}
.otte-notice .otte-notice-message,
.otte-notice > p,
.otte-confirm .otte-confirm-warning > p {
    margin: 0 !important; color: inherit !important;
    font-size: 1rem !important; font-weight: 600 !important; line-height: 1.65 !important;
}
@media (max-width: 720px) {
    .otte-notice .otte-notice-heading,
    .otte-confirm .otte-confirm-warning .otte-notice-heading { font-size: 1.13rem !important; }
    .otte-notice.otte-mail-guidance, .otte-confirm .otte-confirm-warning,
    .otte-notice.otte-success, .otte-notice.otte-error { padding: 14px 15px !important; }
}
