@charset "UTF-8";

/* ===========================================================
   entry.css
   会員登録フロー専用スタイル
   - 入力画面    (Entry/index.twig)
   - 確認画面    (Entry/confirm.twig)
   - 仮登録完了  (Entry/complete.twig)
   - 本登録完了  (Entry/activate.twig)
   =========================================================== */

/* ===========================================================
   1. ページ共通レイアウト
   =========================================================== */
.suite-entry-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 24px 96px;
    box-sizing: border-box;
    color: var(--suite-text);
    background: transparent;
}

/* ===== ヘッダー ===== */
.suite-entry-page__header {
    margin: 0 0 32px;
    text-align: center;
}

.suite-entry-page__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 14px;
    border: 1px solid var(--suite-accent);
    border-radius: 999px;
    color: var(--suite-accent-deep);
    background: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.suite-entry-page__title {
    margin: 0 0 14px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    font-weight: 600;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.45;
    letter-spacing: 0.08em;
    color: var(--suite-text);
}

.suite-entry-page__title::after {
    content: "";
    display: block;
    width: 38px;
    height: 1px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--suite-accent) 0%, var(--suite-accent-deep) 100%);
}

.suite-entry-page__subtitle {
    margin: 0;
    color: var(--suite-text-sub);
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.04em;
}

/* ===========================================================
   2. ステップインジケータ
   =========================================================== */
.suite-entry-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
    color: var(--suite-text-faint);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.suite-entry-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.suite-entry-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--suite-line);
    color: var(--suite-text-faint);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 12px;
    font-weight: 600;
}

.suite-entry-steps__item--active {
    color: var(--suite-text);
    font-weight: 700;
}

.suite-entry-steps__item--active .suite-entry-steps__num {
    background: var(--suite-accent-deep);
    border-color: var(--suite-accent-deep);
    color: #fff;
}

.suite-entry-steps__divider {
    color: var(--suite-line-strong);
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* ===========================================================
   3. フォーム本体
   =========================================================== */
.suite-entry-form {
    margin: 0;
}

/* ===== セクション ===== */
.suite-entry-section {
    margin: 0 0 24px;
    background: linear-gradient(180deg, #fff 0%, #fdfbf8 100%);
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius-lg);
    box-shadow: var(--suite-shadow-sm);
    overflow: hidden;
}

.suite-entry-section__header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--suite-line);
    background: #fbf8f2;
}

.suite-entry-section__title {
    margin: 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--suite-text);
}

.suite-entry-section__body {
    padding: 22px 24px;
}

/* ===== フィールド ===== */
.suite-entry-field {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 16px 20px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--suite-line);
}

.suite-entry-field:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.suite-entry-field__label {
    margin: 6px 0 0;
    color: var(--suite-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.suite-entry-field__required {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: var(--suite-accent-deep);
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.suite-entry-field__optional {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: var(--suite-line);
    color: var(--suite-text-sub);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.suite-entry-field__input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.suite-entry-field__input--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.suite-entry-field__hint {
    color: var(--suite-text-faint);
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    align-self: center;
}

/* ===========================================================
   4. 入力部品
   =========================================================== */
.suite-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius);
    background: #fff;
    color: var(--suite-text);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    transition: border-color var(--suite-transition), box-shadow var(--suite-transition);
}

.suite-input:focus {
    outline: none;
    border-color: var(--suite-accent-deep);
    box-shadow: 0 0 0 3px rgba(180, 145, 95, 0.15);
}

.suite-input::placeholder {
    color: var(--suite-text-faint);
}

.suite-input--short {
    max-width: 200px;
}

.suite-input--medium {
    max-width: 280px;
}

.suite-input--select {
    max-width: 240px;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23b4915f' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    -webkit-appearance: none;
    appearance: none;
}

.suite-input--select::-ms-expand {
    display: none;
}

/* ===========================================================
   5. パスワード可視化トグル
   =========================================================== */
.suite-entry-password {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.suite-entry-password .suite-input {
    padding-right: 64px;
}

.suite-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius);
    color: var(--suite-text-sub);
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color var(--suite-transition), border-color var(--suite-transition), background-color var(--suite-transition);
}

.suite-password-toggle:hover {
    color: var(--suite-accent-deep);
    border-color: var(--suite-accent);
    background: #fbf8f2;
}

/* ===========================================================
   6. 住所検索ボタン(ghost)
   =========================================================== */
.suite-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--suite-line-strong);
    border-radius: var(--suite-radius);
    color: var(--suite-text);
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color var(--suite-transition), border-color var(--suite-transition), background-color var(--suite-transition);
}

.suite-btn-ghost:hover {
    color: var(--suite-accent-deep);
    border-color: var(--suite-accent);
    background: #fbf8f2;
}

/* ===========================================================
   7. 利用規約セクション
   =========================================================== */
.suite-entry-section--terms {
    padding: 22px 24px 24px;
    background: #fbf8f2;
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius-lg);
    box-shadow: none;
}

.suite-entry-terms__title {
    margin: 0 0 8px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--suite-text);
}

.suite-entry-terms__text {
    margin: 0;
    color: var(--suite-text-sub);
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.03em;
}

.suite-entry-terms__text a {
    color: var(--suite-accent-deep);
    text-decoration: underline;
}

/* ===== 利用規約同意チェック ===== */
.suite-entry-policy {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--suite-line);
}

.suite-entry-policy__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--suite-text);
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.suite-entry-policy__label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--suite-accent-deep);
    flex-shrink: 0;
}

.suite-entry-policy__label span {
    user-select: none;
}

.suite-entry-policy .invalid-feedback,
.suite-entry-policy .form-error-message {
    margin-top: 8px;
    color: #c00;
    font-size: 13px;
}

/* ===========================================================
   8. アクションボタン
   =========================================================== */
.suite-entry-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 32px 0 0;
}

.suite-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 14px 36px;
    background: linear-gradient(180deg, var(--suite-accent) 0%, var(--suite-accent-deep) 100%);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--suite-shadow-sm);
    transition: transform var(--suite-transition), box-shadow var(--suite-transition), filter var(--suite-transition);
}

.suite-entry-btn::after {
    content: "→";
    display: inline-block;
    margin-left: 12px;
    transition: transform var(--suite-transition);
}

.suite-entry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--suite-shadow-md);
    filter: brightness(1.04);
}

.suite-entry-btn:hover::after {
    transform: translateX(4px);
}

.suite-entry-back {
    display: inline-block;
    margin-top: 4px;
    color: var(--suite-text-sub);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--suite-transition), border-color var(--suite-transition);
}

.suite-entry-back:hover {
    color: var(--suite-accent-deep);
    border-bottom-color: var(--suite-accent-deep);
}

.suite-entry-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 12px 28px;
    background: #fff;
    border: 1px solid var(--suite-line-strong);
    border-radius: 999px;
    color: var(--suite-text);
    font-size: 13px;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--suite-transition), border-color var(--suite-transition), background-color var(--suite-transition);
}

.suite-entry-back-btn:hover {
    color: var(--suite-accent-deep);
    border-color: var(--suite-accent);
    background: #fbf8f2;
}

/* ===========================================================
   9. エラー表示(Symfony Form 標準)
   =========================================================== */
.form-error-message,
.invalid-feedback,
.suite-entry-field__input .form-error-message,
.suite-entry-field__input .invalid-feedback {
    margin: 4px 0 0;
    padding: 0;
    color: #c00;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.suite-entry-field__input ul.list-unstyled,
.suite-entry-field__input ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===========================================================
   10. 確認画面 (confirm.twig)
   =========================================================== */
.suite-entry-confirm-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 12px 20px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--suite-line);
}

.suite-entry-confirm-row:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.suite-entry-confirm-row__label {
    color: var(--suite-text-sub);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.suite-entry-confirm-row__value {
    color: var(--suite-text);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.03em;
    word-break: break-all;
}

.suite-entry-confirm-row__value--masked {
    letter-spacing: 0.2em;
}

/* ===========================================================
   11. 仮登録完了 / 本登録完了 共通カード (complete.twig / activate.twig)
   =========================================================== */
.suite-entry-complete {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 32px;
    background: linear-gradient(180deg, #fff 0%, #fdfbf8 100%);
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius-lg);
    box-shadow: var(--suite-shadow-sm);
    text-align: center;
}

.suite-entry-complete__icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--suite-accent-deep);
}

.suite-entry-complete__icon {
    width: 72px;
    height: 72px;
}

.suite-entry-complete__title {
    margin: 0 0 14px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    font-weight: 600;
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: 0.08em;
    color: var(--suite-text);
}

.suite-entry-complete__text {
    margin: 0 0 32px;
    color: var(--suite-text-sub);
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: 0.04em;
}

.suite-entry-complete__steps {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.suite-entry-complete__step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--suite-line);
}

.suite-entry-complete__step:last-child {
    border-bottom: none;
}

.suite-entry-complete__step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--suite-accent);
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.suite-entry-complete__step-body {
    flex: 1;
}

.suite-entry-complete__step-title {
    margin: 0 0 4px;
    color: var(--suite-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.suite-entry-complete__step-text {
    margin: 0;
    color: var(--suite-text-sub);
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.03em;
}

.suite-entry-complete__notice {
    margin: 0 0 32px;
    padding: 18px 20px;
    background: #fbf8f2;
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius);
    text-align: left;
}

.suite-entry-complete__notice-title {
    margin: 0 0 8px;
    color: var(--suite-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.suite-entry-complete__notice-list {
    margin: 0;
    padding-left: 18px;
    color: var(--suite-text-sub);
    font-size: 12px;
    line-height: 1.85;
    letter-spacing: 0.03em;
}

.suite-entry-complete__notice-list a {
    color: var(--suite-accent-deep);
    text-decoration: underline;
}

/* ===========================================================
   12. 本登録完了画面 専用 (activate.twig)
   =========================================================== */
.suite-entry-activate-note {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 14px 18px;
    background: #fbf8f2;
    border: 1px solid var(--suite-line);
    border-radius: var(--suite-radius);
    color: var(--suite-text-sub);
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    text-align: center;
}

.suite-entry-activate-note strong {
    color: var(--suite-accent-deep);
    font-weight: 700;
}

.suite-entry-activate-subactions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.suite-entry-activate-subactions .suite-entry-back {
    margin-top: 0;
}

/* ===========================================================
   13. レスポンシブ
   =========================================================== */
@media (max-width: 767px) {

    .suite-entry-page {
        padding: 28px 16px 64px;
    }

    .suite-entry-page__header {
        margin-bottom: 24px;
    }

    .suite-entry-steps {
        gap: 6px 10px;
        margin-bottom: 28px;
        font-size: 11px;
    }

    .suite-entry-steps__num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .suite-entry-section__header {
        padding: 14px 18px;
    }

    .suite-entry-section__body {
        padding: 18px 18px;
    }

    .suite-entry-field,
    .suite-entry-confirm-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .suite-entry-field__label,
    .suite-entry-confirm-row__label {
        margin-top: 0;
    }

    .suite-entry-field__hint {
        margin-top: 2px;
        align-self: flex-start;
    }

    .suite-input--short,
    .suite-input--medium,
    .suite-input--select {
        max-width: 100%;
    }

    .suite-entry-btn,
    .suite-entry-back-btn {
        width: 100%;
        min-width: 0;
    }

    .suite-entry-complete {
        padding: 32px 20px;
    }

    .suite-entry-complete__step {
        gap: 12px;
        padding: 14px 0;
    }

    .suite-entry-complete__step-num {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .suite-entry-activate-note {
        margin-top: 18px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .suite-entry-activate-subactions {
        flex-direction: column;
        align-items: stretch;
    }

    .suite-entry-activate-subactions .suite-entry-back,
    .suite-entry-activate-subactions .suite-entry-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .suite-entry-field__input--row {
        flex-direction: column;
        align-items: stretch;
    }

    .suite-entry-field__input--row > .suite-input {
        width: 100%;
    }
}
