/* Phase5: 共通UI部品の基本見た目は common-ui.css に集約。ここには申込ページ固有のレイアウト・フォーム調整のみを残す方針。 */
/* =====================================================
   Entry screen specific CSS
   Phase 12: common tokens moved to common.css.
   Keep only entry-specific layout / compatibility rules here.
===================================================== */

/* =====================================================
   Base
===================================================== */

body {
  margin: 0;
  padding: 20px;
  background: #f4f8fb;
  color: var(--funup-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", sans-serif;
}

h2 {
  margin: 0 0 16px;
  text-align: center;
}

h3 {
  margin: 0 0 12px;
}


/* =====================================================
   Layout
===================================================== */

.form-wrapper {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 0 auto 20px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
}

.funup-entry-section {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--funup-brand-primary-border);
  border-radius: 14px;
  background: var(--funup-panel);
}

.funup-status-text {
  text-align: center;
  color: var(--funup-subtext);
}

.funup-line-page #liff-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--funup-mp-border-blue);
  border-radius: var(--funup-mp-radius-lg);
  background: var(--funup-mp-panel-soft);
  color: var(--funup-mp-brand-text);
  font-weight: 700;

}

.funup-help {
  margin: 0 0 12px;
  color: var(--funup-subtext);
  font-size: 14px;
  line-height: 1.7;
}

/* =====================================================
   Header
===================================================== */

.funup-header {
  padding: 18px 16px;
  background: var(--funup-header-bg);
  text-align: center;
}

.funup-logo {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

/* =====================================================
   Friend Add Section
===================================================== */

#add-friend-section {
  margin: 1em 0 1.5em;
  padding: 1em;
  border: 1px solid var(--funup-brand-primary-border);
  border-radius: 12px;
  background: var(--funup-brand-primary-light);
  text-align: center;
}

#add-friend-section img {
  max-width: 220px;
  height: auto;
}

.friend-alert {
  color: var(--funup-danger);
  font-weight: 800;
}

.friend-note {
  margin-bottom: 0;
  text-align: left;
  font-weight: 700;
}

/* =====================================================
   Form
===================================================== */

label {
  display: block;
  margin-top: 2px;
  font-weight: 700;
}


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

.funup-name-pair label {
  margin-top: 0;
  color: var(--funup-subtext);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.funup-name-pair input {
  margin-top: 4px;
}

@media (max-width: 480px) {
  .funup-name-pair {
    grid-template-columns: 1fr;
  }
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--funup-brand-action);
  box-shadow: var(--funup-focus-ring);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.agreement-row {
  line-height: 1.6;
  font-weight: 700;
}

/* Phase6 duplicate moved to common-ui.css
/* =====================================================
   Buttons
===================================================== */

.submit-btn,
.funup-button,
.funup-button-secondary {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  color: #fff;
  background: var(--funup-cta-primary-bg);
  font-size: 18px;
}

.submit-btn:disabled {
  background: #999 !important;
  cursor: not-allowed;
}

.funup-button-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.funup-actions-inline {
  margin: 12px 0 0;
  text-align: center;
}

.funup-mypage-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--funup-brand-action);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.25);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.funup-mypage-edit-button:hover {
  background: #0f5ec7;
  color: #fff !important;
}


*/
/* Phase6 duplicate moved to common-ui.css
/* =====================================================
   Notice / Message
===================================================== */

.funup-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.funup-notice-warning,
.funup-existing-application-warning {
  border: 2px solid var(--funup-warning-border);
  background: var(--funup-warning-bg);
  color: var(--funup-warning);
}

.funup-notice-success {
  border: 1px solid var(--funup-success-border);
  background: var(--funup-success-bg);
  color: var(--funup-success-text);
}

.funup-notice-error,
.funup-error {
  padding: 16px;
  border: 1px solid var(--funup-danger-border);
  border-radius: 12px;
  background: var(--funup-danger-bg);
  color: var(--funup-danger-text);
  font-weight: 700;
}

.funup-loading {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
  font-weight: 700;
}


*/
/* =====================================================
   Event Card
===================================================== */

.funup-card {
  overflow: hidden;
  border: 1px solid var(--funup-border-default);
  border-radius: var(--funup-radius);
  background: var(--funup-bg);
}

.funup-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.funup-card-inner {
  display: block;
  padding: 12px;
}

.funup-card-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.funup-thumb img {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 10px;
  background: #f3f4f6;
  object-fit: cover;
}

.funup-date {
  display: inline-flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  gap: 3px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f3f4f6;
  line-height: 1.15;
}

.funup-date-year {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

.funup-date-main {
  color: var(--funup-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.funup-date-sub {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.funup-weekday.is-sat {
  color: #2b6cff;
}

.funup-weekday.is-sun {
  color: #e53935;
}

.funup-weekday.is-holiday {
  color: #ff4081;
}

.funup-catch {
  margin-bottom: 6px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.funup-place {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.42;
}

.funup-title-long {
  margin: 6px 0;
  color: var(--funup-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.funup-seriesline-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.funup-seriesline,
.funup-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.funup-seriesline {
  padding: 0 11px;
  border: 1px solid var(--series-default-border);
  background: var(--series-default-bg);
  color: var(--series-default-text);
  font-size: 14px;
  font-weight: 700;
}

.funup-level-badge {
  padding: 0 10px;
  background: #64748b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.funup-meeting {
  margin-top: 5px;
  color: var(--funup-subtext);
  font-size: 14px;
  line-height: 1.7;
}

.funup-side-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}


/* =====================================================
   Existing Application Check
===================================================== */

.funup-existing-application-link {
  margin: 10px 0 0;
}

.funup-existing-application-link a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: underline;
}

/* =====================================================
   Fee / Status Badge
===================================================== */

.funup-fee {
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.fee-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fee-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.fee-price {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.badge-open {
  border: 1px solid var(--status-open-border);
  background: var(--status-open-bg);
  color: var(--status-open-text);
}

.badge-few {
  border: 1px solid var(--status-few-border);
  background: var(--status-few-bg);
  color: var(--status-few-text);
}

.badge-wait {
  border: 1px solid var(--status-wait-border);
  background: var(--status-wait-bg);
  color: var(--status-wait-text);
}

.badge-closed {
  border: 1px solid var(--status-closed-border);
  background: var(--status-closed-bg);
  color: var(--status-closed-text);
}

/* Phase6 duplicate moved to common-ui.css
/* =====================================================
   Participant Card
===================================================== */

.funup-entry-participants {
  display: grid;
  gap: 10px;
}

.funup-entry-participant {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.funup-entry-participant:hover {
  background: #f8fbff;
}

.funup-entry-participant input {
  flex: 0 0 auto;
  width: auto;
  margin: 3px 0 0;
}

.funup-entry-participant-main {
  flex: 1;
  min-width: 0;
}

.funup-entry-participant-name {
  font-weight: 800;
}

.funup-entry-participant-meta {
  margin-top: 4px;
  color: var(--funup-subtext);
  font-size: 13px;
  line-height: 1.5;
}

.funup-participant-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
}

.funup-participant-detail,
.funup-confirm-participant-detail {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.7;
}

.funup-confirm-participant-detail + .funup-confirm-participant-detail {
  margin-top: 12px;
}


*/
/* =====================================================
   Confirm
===================================================== */

.funup-confirm-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.funup-confirm-box {
  padding: 16px;
  border: 1px solid var(--funup-brand-primary-border);
  border-radius: 14px;
  background: #fff;
}

/* =====================================================
   Responsive
===================================================== */

@media (min-width: 760px) {
  .funup-card-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    column-gap: 20px;
  }

  .funup-card-head {
    grid-template-columns: 132px 1fr;
    margin-bottom: 0;
  }

  .funup-thumb img {
    height: 88px;
  }
}

@media (max-width: 768px) {
  .funup-logo {
    font-size: 24px;
  }
}

/* 見出しをテーマh2/h3から分離 */

.funup-line-page .funup-line-page-title {
  margin: 20px 0 12px;
  padding: 0 0 6px;
  border-bottom: 2px solid var(--funup-mp-brand);
  color: var(--funup-mp-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  background: transparent;
}

.funup-line-page .funup-line-section-title {
  margin: 24px 0 12px;
  padding: 0 0 6px;
  border-bottom: 2px solid var(--funup-mp-brand);
  color: var(--funup-mp-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  background: transparent;
}


.funup-line-page #status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--funup-mp-border-blue);
  border-radius: var(--funup-mp-radius-lg);
  background: var(--funup-mp-panel-soft);
  color: var(--funup-mp-brand-text);
  font-weight: 700;
}



/* =====================================================
   Entry greeting card / responsive width / placeholders
===================================================== */
.funup-entry-greeting-card {
  margin: 0 0 18px;
  padding: 18px 16px;
  border: 1px solid var(--funup-mp-border-blue);
  border-radius: var(--funup-mp-radius-xl);
  background: var(--funup-mp-panel-soft);
}

.funup-line-page .funup-entry-greeting-card .funup-line-page-title-in-card {
  margin: 0 0 14px;
  padding: 0;
  border-bottom: 0;
  color: var(--funup-mp-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.funup-entry-greeting-inner {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--funup-mp-border-blue);
  border-radius: var(--funup-mp-radius-lg);
  background: var(--funup-mp-panel-soft);
}

.funup-line-page .funup-entry-greeting-inner .funup-status-text,
.funup-line-page .funup-entry-greeting-inner #liff-status {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--funup-mp-brand-text);
  font-weight: 700;
  text-align: center;
}

.funup-entry-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
  text-align: right;
}

.funup-entry-logout-link,
.funup-line-page a.funup-entry-logout-link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  box-shadow: none;
}

.funup-entry-logout-link:hover,
.funup-line-page a.funup-entry-logout-link:hover {
  color: #0f172a;
  background: transparent;
}

.funup-line-page input::placeholder,
.funup-line-page textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.funup-line-page input::-webkit-input-placeholder,
.funup-line-page textarea::-webkit-input-placeholder {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .form-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }
}


@media (max-width: 768px) {
  body {
    padding: 8px;
  }

  .form-wrapper {
    width: 100%;
    max-width: none;
    padding: 12px;
    margin: 0 auto 12px;
  }

  .funup-entry-section {
    margin: 12px 0;
    padding: 12px;
  }
}


.funup-entry-auth-status {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}


/* Auth choice buttons */
.funup-entry-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.funup-entry-auth-button,
.funup-entry-auth-button:link,
.funup-entry-auth-button:visited {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  color: #fff !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.funup-entry-auth-button:hover,
.funup-entry-auth-button:focus {
  color: #fff !important;
  text-decoration: none !important;
  opacity: .92;
}
.funup-entry-auth-button.is-line {
  background: #06c755;
}
.funup-entry-auth-button.is-mail {
  background: #5f6f52;
}
@media (min-width: 720px) {
  .funup-entry-auth-actions {
    flex-direction: column;
    gap: 20px;
    max-width: 680px;
    margin: 18px auto;
  }
  .funup-entry-auth-button {
    width: 100%;
    min-width: 0;
  }
}

/* =====================================================
   Fix 2026-06-25: /mypage/entry visual restoration
   - make the BEM/common layer work with existing JS markup
   - keep entry-specific CSS here, common primitives in common.css
===================================================== */

.funup-line-entry-page,
.funup-entry-choice-page,
.funup-entry-mail-auth-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 40px;
  color: var(--funup-mp-text, #111827);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.3;
}

.funup-line-entry-page *,
.funup-entry-choice-page *,
.funup-entry-mail-auth-page * {
  box-sizing: border-box;
}

.funup-line-entry-page .form-wrapper,
.funup-entry-choice-page .form-wrapper,
.funup-entry-mail-auth-page .form-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.funup-line-entry-page .funup-section,
.funup-line-entry-page .funup-entry-section,
.funup-entry-choice-page .funup-entry-section,
.funup-entry-mail-auth-page .funup-entry-section,
.funup-line-entry-page .funup-confirm-box {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--funup-mp-border-blue, #d7e8f7);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.funup-line-entry-page .funup-line-section-title,
.funup-entry-choice-page .funup-line-section-title,
.funup-entry-mail-auth-page .funup-line-section-title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.funup-entry-auth-lead,
.funup-entry-mail-auth-lead,
.funup-line-entry-page .funup-help {
  margin: 0 0 14px;
  color: #475569;
  font-size: .96rem;
  line-height: 1.2;
}

/* Auth choice */
.funup-entry-choice-page .funup-entry-auth-actions,
.funup-entry-mail-auth-page .funup-entry-mail-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 22px 0 10px;
}

.funup-entry-choice-page .funup-entry-auth-button,
.funup-entry-mail-auth-page .funup-entry-auth-button,
.funup-line-entry-page .funup-entry-auth-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none;
}

.funup-entry-choice-page .funup-entry-auth-button.is-line,
.funup-line-entry-page .funup-entry-auth-button.is-line {
  border-color: #06c755;
  background: #06c755 !important;
  color: #fff !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-mail,
.funup-entry-mail-auth-page .funup-entry-auth-button.is-mail,
.funup-line-entry-page .funup-entry-auth-button.is-mail {
  border-color: #173957;
  background: #fff !important;
  color: #173957 !important;
}

.funup-entry-choice-page .funup-entry-line-recommend {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  color: #334155;
}

.funup-entry-line-recommend-title {
  margin: 0 0 8px;
  font-weight: 800;
}

/* Greeting / auth status */
.funup-entry-greeting-card {
  padding: 20px;
}

.funup-line-entry-page .funup-entry-greeting-card .funup-line-page-title-in-card {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1.04rem;
}

.funup-entry-greeting-inner {
  padding: 12px 0 0;
  border: 0;
  background: transparent;
}

.funup-entry-auth-status {
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}

.funup-entry-card-footer {
  margin: 14px -20px -20px;
  padding: 12px 20px;
  border-top: 1px solid #e8eef5;
}

.funup-entry-logout-link,
.funup-line-page a.funup-entry-logout-link {
  color: #9b3a76 !important;
  font-weight: 700;
}

/* Friend add */
.funup-line-entry-page #add-friend-section {
  margin: 18px 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.funup-line-entry-page .friend-alert {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid var(--funup-mp-border-blue, #d7e8f7);
  border-radius: 14px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 800;
}

.funup-line-entry-page .friend-note {
  margin: 0 0 18px;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.8;
}

.funup-line-entry-page #add-friend-section img {
  width: 240px;
  max-width: 100%;
  height: auto;
}

/* Event card
   Phase 6: base layout moved to common.css (.funup-event-card).
   Keep entry-specific spacing only here. */
.funup-line-entry-page #event-card-area {
  margin-top: 10px;
}

.funup-line-entry-page #event-card-area.funup-loading {
  padding: 18px;
}

.funup-line-entry-page .funup-event-card {
  margin: 0;
}

/* Participants */
.funup-entry-participants {
  display: grid;
  gap: 14px;
}

.funup-entry-participant-card {
  overflow: hidden;
  border: 1px solid var(--funup-mp-border-blue, #d7e8f7);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.funup-entry-participant-card .funup-entry-participant {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.funup-entry-participant-card .funup-entry-participant:hover {
  background: #f8fbff;
}

.funup-entry-participant-card input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
}

.funup-entry-participant-main {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.funup-entry-participant-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 800;
}

.funup-participant-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8eef5;
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.funup-entry-participant-meta {
  display: block;
  margin-top: 7px;
  color: #334155;
}

.funup-profile-status,
.funup-profile-missing summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.4;
}

.funup-profile-status.is-ok { color: #166534; }
.funup-profile-status.is-warning,
.funup-profile-missing summary { color: #0f172a; }
.funup-profile-missing { margin: 0; }
.funup-profile-missing summary { cursor: pointer; }
.funup-profile-missing ul {
  margin: 8px 0 0 1.2em;
  padding: 0;
  color: #475569;
  font-size: .9rem;
}

.funup-participant-detail,
.funup-confirm-participant-detail {
  margin: 0;
  padding: 14px 18px 18px 48px;
  border-top: 1px solid #e8eef5;
  border-radius: 0;
  background: #fff;
  color: #334155;
  font-size: .94rem;
  line-height: 1.75;
}

.funup-participant-detail > div,
.funup-confirm-participant-detail > div {
  margin: 2px 0;
}

.funup-participant-edit-area {
  padding: 0 18px 18px 48px;
}

.funup-mypage-edit-button,
.funup-line-entry-page a.funup-mypage-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

/* Form rows in entry */
.funup-line-entry-page .checkbox-row,
.funup-line-entry-page .agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-weight: 700;
}

.funup-line-entry-page .checkbox-row input[type="checkbox"],
.funup-line-entry-page .agreement-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  flex: 0 0 auto;
}

.funup-line-entry-page textarea,
.funup-line-entry-page input,
.funup-line-entry-page select {
  font-size: 16px;
}

.funup-line-entry-page .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 260px;
  min-height: 52px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff !important;
  font-size: 1.04rem;
  font-weight: 800;
}

.funup-line-entry-page .funup-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155 !important;
  font-weight: 800;
}

.funup-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 820px) {
  .funup-line-entry-page,
  .funup-entry-choice-page,
  .funup-entry-mail-auth-page {
    padding: 10px 8px 30px;
  }

  .funup-line-entry-page .funup-section,
  .funup-line-entry-page .funup-entry-section,
  .funup-entry-choice-page .funup-entry-section,
  .funup-entry-mail-auth-page .funup-entry-section,
  .funup-line-entry-page .funup-confirm-box {
    margin: 14px 0;
    padding: 16px;
    border-radius: 16px;
  }

  .funup-entry-choice-page .funup-entry-auth-actions,
  .funup-entry-mail-auth-page .funup-entry-mail-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .funup-entry-choice-page .funup-entry-auth-button,
  .funup-entry-mail-auth-page .funup-entry-auth-button,
  .funup-line-entry-page .funup-entry-auth-button {
    width: 100%;
    min-width: 0;
  }

  .funup-line-entry-page .funup-card-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .funup-line-entry-page .funup-card-head {
    grid-template-columns: 44% 1fr;
    gap: 12px;
  }

  .funup-line-entry-page .funup-thumb img {
    height: 92px;
  }

  .funup-line-entry-page .funup-side-row {
    justify-content: flex-start;
  }

  .funup-participant-detail,
  .funup-confirm-participant-detail {
    padding: 12px 16px 16px;
  }

  .funup-line-entry-page .submit-btn,
  .funup-line-entry-page .funup-button-secondary,
  .funup-mypage-edit-button,
  .funup-line-entry-page a.funup-mypage-edit-button {
    width: 100%;
    min-width: 0;
  }
}

/* =====================================================
   fix7: /mypage/entry/ visual alignment
   - auth choice buttons match MyPage auth screen
   - entry greeting card matches MyPage greeting card
   - LINE friend card restored to previous prominent design
   - participant detail / edit button restored to compact previous design
===================================================== */

/* Keep entry pages within the same readable width as MyPage. */
.funup-line-entry-page {
  width: min(100%, 1040px) !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.funup-line-entry-page .form-wrapper {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto 20px !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* -----------------------------------------------------
   Auth choice: align with /mypage/ authentication buttons
----------------------------------------------------- */
.funup-entry-choice-page .funup-entry-auth-choice-section {
  padding: 28px 32px !important;
  border: 1px solid #d7e8f7 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04) !important;
}

.funup-entry-choice-page .funup-line-section-title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.funup-entry-choice-page .funup-entry-auth-lead {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
}

.funup-entry-choice-page .funup-entry-auth-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 22px 0 0 !important;
}

.funup-entry-choice-page .funup-entry-auth-button,
.funup-entry-choice-page .funup-entry-auth-button:link,
.funup-entry-choice-page .funup-entry-auth-button:visited {
  width: 220px !important;
  max-width: 100% !important;
  min-width: 220px !important;
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-line {
  background: #06c755 !important;
  border-color: #06c755 !important;
  color: #fff !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-mail {
  background: #1f2937 !important;
  border-color: #1f2937 !important;
  color: #fff !important;
}

.funup-entry-choice-page .funup-entry-auth-button:hover,
.funup-entry-choice-page .funup-entry-auth-button:focus {
  opacity: .88 !important;
  text-decoration: none !important;
}

.funup-entry-choice-page .funup-entry-line-recommend {
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.funup-entry-choice-page .funup-entry-line-recommend-title {
  margin: 0 0 10px !important;
  color: #1f2937 !important;
  font-weight: 400 !important;
}

/* -----------------------------------------------------
   Entry greeting: match /mypage/ greeting card
----------------------------------------------------- */
.funup-line-entry-page .funup-entry-greeting-card {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 20px !important;
  padding: 18px 16px !important;
  border: 1px solid #d7e8f7 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04) !important;
}

.funup-line-entry-page .funup-entry-greeting-card .funup-line-page-title-in-card {
  margin: 0 0 0px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.funup-line-entry-page .funup-entry-greeting-inner {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.funup-line-entry-page .funup-entry-greeting-card #liff-status,
.funup-line-entry-page .funup-entry-greeting-card .funup-status-text {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 14px 16px !important;
  border: 1px solid #d7e8f7 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  color: #1d4ed8 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.funup-line-entry-page .funup-entry-auth-status {
  display: inline-block !important;
  margin: .25rem 0 0 !important;
  padding: .16rem .55rem !important;
  border-radius: 999px !important;
  background: #eef6ff !important;
  color: #64748b !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.funup-line-entry-page .funup-entry-card-footer {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
}

.funup-line-entry-page .funup-entry-logout-link,
.funup-line-entry-page a.funup-entry-logout-link {
  display: inline-block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

/* -----------------------------------------------------
   LINE friend add: restore prominent confirmation card
----------------------------------------------------- */
.funup-line-entry-page #add-friend-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  margin: 22px auto 28px !important;
  padding: 28px 26px !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.funup-line-entry-page #add-friend-section .friend-alert {
  order: 1 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #d60000 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.funup-line-entry-page #add-friend-section p:not(.friend-note) {
  order: 2 !important;
  margin: 0 0 22px !important;
  text-align: center !important;
}

.funup-line-entry-page #add-friend-section img {
  width: 300px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.funup-line-entry-page #add-friend-section .friend-note {
  order: 3 !important;
  margin: 0 !important;
  color: #333 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

/* -----------------------------------------------------
   Participant info: restore previous compact design
----------------------------------------------------- */
.funup-line-entry-page .funup-entry-participants {
  display: grid !important;
  gap: 12px !important;
}

.funup-line-entry-page .funup-entry-participant-card {
  overflow: hidden !important;
  border: 1px solid #d7e8f7 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.funup-line-entry-page .funup-entry-participant-card .funup-entry-participant {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.funup-line-entry-page .funup-entry-participant-card input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 3px 0 0 !important;
}

.funup-line-entry-page .funup-entry-participant-name {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.funup-line-entry-page .funup-participant-badge {
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #e8eef5 !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.funup-line-entry-page .funup-entry-participant-meta {
  margin-top: 6px !important;
}

.funup-line-entry-page .funup-profile-status,
.funup-line-entry-page .funup-profile-missing summary {
  font-size: 15px !important;
  font-weight: 800 !important;
}

.funup-line-entry-page .funup-participant-detail {
  margin: 0 !important;
  padding: 12px 14px 16px 10px !important;
  border-top: 1px solid #e8eef5 !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.funup-line-entry-page .funup-participant-detail > div {
  margin: 1px 0 !important;
}

.funup-line-entry-page .funup-mypage-edit-button,
.funup-line-entry-page a.funup-mypage-edit-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0000ee !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-decoration: underline !important;
  box-shadow: none !important;
}

/* Form controls keep styled but not oversized. */
.funup-line-entry-page #entry-form textarea {
  min-height: 180px !important;
}

.funup-line-entry-page #entry-form .submit-btn {
  min-width: 140px !important;
  min-height: 58px !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
}

@media (max-width: 767px) {
  .funup-line-entry-page .form-wrapper {
    padding: 2px !important;
  }

  .funup-entry-choice-page .funup-entry-auth-choice-section {
    padding: 22px 18px !important;
  }

  .funup-entry-choice-page .funup-entry-auth-button {
    width: 100% !important;
  }

  .funup-line-entry-page #add-friend-section {
    padding: 24px 18px !important;
  }
}

/* =====================================================
   Phase: Entry -> MyPage class bridge
   - keep existing entry design
   - add MyPage/common classes to entry markup safely
===================================================== */
.funup-line-entry-page .funup-mypage-greeting-card.funup-entry-greeting-card {
  margin: 0 0 18px;
  padding: 18px 16px;
  border: 1px solid var(--funup-mp-border-blue);
  border-radius: var(--funup-mp-radius-xl);
  background: var(--funup-mp-panel-soft);
}

.funup-line-entry-page .funup-greeting-inner.funup-entry-greeting-inner {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--funup-mp-border-blue);
  border-radius: var(--funup-mp-radius-lg);
  background: var(--funup-mp-panel-soft);
}

.funup-line-entry-page .funup-mypage-auth-status.funup-entry-auth-status {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.funup-line-entry-page .funup-mypage-card-footer.funup-entry-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
  text-align: right;
}

.funup-line-entry-page a.funup-mypage-logout-link.funup-entry-logout-link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  box-shadow: none;
}

.funup-line-entry-page a.funup-mypage-logout-link.funup-entry-logout-link:hover {
  color: #0f172a;
  background: transparent;
}

.funup-line-entry-page .funup-friend-card#add-friend-section {
  margin: 18px 0;
  padding: 16px;
}

.funup-line-entry-page .funup-entry-participant-card.funup-participant-card {
  padding: 0;
}

.funup-line-entry-page .funup-mypage-edit-button.funup-mypage-button-secondary {
  width: auto;
  max-width: 100%;
}

/* =====================================================
   Phase 1: Entry cards use common MyPage/Card parts
   - Keep existing entry design, but move spacing into card parts.
===================================================== */
.funup-line-entry-page .funup-card,
.funup-entry-choice-page .funup-card,
.funup-entry-mail-auth-page .funup-card {
  overflow: hidden;
}

.funup-line-entry-page .funup-entry-section,
.funup-entry-choice-page .funup-entry-section,
.funup-entry-mail-auth-page .funup-entry-section,
.funup-line-entry-page .funup-confirm-box {
  padding: 0 !important;
}

.funup-line-entry-page .funup-entry-card__header,
.funup-entry-choice-page .funup-entry-card__header,
.funup-entry-mail-auth-page .funup-entry-card__header {
  padding: 16px 18px !important;
  border-bottom: 1px solid #e8eef5 !important;
  background: #fff !important;
}

.funup-line-entry-page .funup-entry-card__body,
.funup-entry-choice-page .funup-entry-card__body,
.funup-entry-mail-auth-page .funup-entry-card__body {
  padding: 18px !important;
  background: #fff !important;
}

.funup-line-entry-page .funup-entry-card__header .funup-line-section-title,
.funup-entry-choice-page .funup-entry-card__header .funup-line-section-title,
.funup-entry-mail-auth-page .funup-entry-card__header .funup-line-section-title {
  margin: 0 !important;
  padding: 0 !important;
}

.funup-line-entry-page .funup-entry-greeting-card {
  padding: 0 !important;
}

.funup-line-entry-page .funup-entry-greeting-inner.funup-entry-card__body {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.funup-line-entry-page .funup-entry-card-footer {
  margin: 0 !important;
  padding: 14px 18px !important;
  border-top: 1px solid #e8eef5 !important;
}

.funup-line-entry-page #add-friend-section.funup-friend-card {
  padding: 0 !important;
}

.funup-line-entry-page #add-friend-section .funup-card__header {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  text-align: center !important;
}

.funup-line-entry-page #add-friend-section .funup-friend-card__body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding-top: 10px !important;
  text-align: center !important;
}

.funup-line-entry-page .funup-entry-participant-card .funup-participant-card__body {
  padding: 0 !important;
}

.funup-line-entry-page .funup-confirm-box .funup-card.is-single {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .funup-line-entry-page .funup-entry-card__header,
  .funup-entry-choice-page .funup-entry-card__header,
  .funup-entry-mail-auth-page .funup-entry-card__header {
    padding: 8px 16px !important;
  }

  .funup-line-entry-page .funup-entry-card__body,
  .funup-entry-choice-page .funup-entry-card__body,
  .funup-entry-mail-auth-page .funup-entry-card__body {
    padding: 16px !important;
  }
}


/* =====================================================
   Phase 2: Entry buttons use common MyPage button component
   Existing entry-specific classes remain, but sizing/color now
   flows through .funup-button modifiers.
===================================================== */
.funup-entry-choice-page .funup-button-group--auth {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 22px 0 0 !important;
}

.funup-entry-choice-page .funup-entry-auth-button.funup-button--large,
.funup-entry-mail-auth-page .funup-entry-auth-button.funup-button--large,
.funup-line-entry-page .submit-btn.funup-button--large {
  min-height: 52px !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-size: 1.02rem !important;
}

.funup-entry-choice-page .funup-entry-auth-button.funup-button--line {
  background: #06c755 !important;
  border-color: #06c755 !important;
  color: #fff !important;
}

.funup-entry-choice-page .funup-entry-auth-button.funup-button--outline,
.funup-entry-mail-auth-page .funup-entry-auth-button.funup-button--outline {
  background: #fff !important;
  border-color: var(--funup-color-primary, #173a5e) !important;
  color: var(--funup-color-primary, #173a5e) !important;
}

.funup-line-entry-page .funup-button-group--form-actions {
  margin: 18px 0 0 !important;
}

.funup-line-entry-page .funup-mypage-edit-button.funup-button--link,
.funup-line-entry-page a.funup-mypage-edit-button.funup-button--link {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0000ee !important;
  box-shadow: none !important;
  text-decoration: underline !important;
}

@media (max-width: 767px) {
  .funup-entry-choice-page .funup-button-group--auth > .funup-button,
  .funup-line-entry-page .funup-button-group--form-actions > .funup-button {
    width: 100% !important;
  }
}


/* Phase 3 bridge: entry forms using shared form components */
.funup-line-entry-page .funup-form__row {
  margin-bottom: 18px;
}

.funup-line-entry-page .funup-form__label {
  color: var(--funup-color-text);
}

.funup-line-entry-page .funup-form__checkbox {
  margin-top: 10px;
}

.funup-line-entry-page .funup-entry-form__control {
  background: #fff;
}


/* Phase 4: alert bridge to common.css */
.funup-line-entry-page .funup-alert.funup-entry-alert {
  box-sizing: border-box;
}

.funup-line-entry-page .funup-alert__body {
  margin: 0;
}

.funup-line-entry-page .funup-existing-application-warning.funup-alert {
  display: block;
}


/* =====================================================
   Phase 7: Badge bridge to common.css
   Keep legacy class names, but let .funup-badge modifiers own colors.
===================================================== */
.funup-line-entry-page .funup-badge.badge,
.funup-line-entry-page .funup-badge.funup-participant-badge,
.funup-line-entry-page .funup-badge.funup-required,
.funup-line-entry-page .funup-badge.funup-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  line-height: 1.2;
}

.funup-line-entry-page .funup-badge.funup-participant-badge {
  margin-left: 6px;
}

.funup-line-entry-page .funup-badge.funup-required,
.funup-line-entry-page .funup-badge.funup-optional {
  margin-left: 6px;
  vertical-align: middle;
}


/* =====================================================
   Phase 8: Entry page / section rhythm bridge
   Move entry spacing closer to MyPage while keeping legacy markup.
===================================================== */
.funup-line-entry-page {
  max-width: 960px;
  margin: 0 auto;
}

.funup-line-entry-page .funup-entry-flow > * + * {
  margin-top: 0;
}

.funup-line-entry-page .funup-card,
.funup-line-entry-page .funup-mypage-section,
.funup-line-entry-page .funup-entry-section {
  margin-bottom: 2px;
}

.funup-line-entry-page .funup-line-page-title,
.funup-line-entry-page .funup-line-section-title {
  letter-spacing: .01em;
}

.funup-line-entry-page .funup-line-page-title-in-card {
  padding: 0;
  margin-bottom: 10px;
}

.funup-line-entry-page .funup-entry-greeting-card {
  padding: 18px;
}

.funup-line-entry-page .funup-entry-greeting-card .funup-card-footer,
.funup-line-entry-page .funup-entry-greeting-card .funup-entry-card-footer {
  margin: 14px -18px -18px;
}

.funup-line-entry-page .funup-confirm-box .funup-line-section-title {
  margin-bottom: 1px;
}

@media (max-width: 767px) {
  .funup-line-entry-page .funup-entry-greeting-card {
    padding: 16px;
  }

  .funup-line-entry-page .funup-entry-greeting-card .funup-card-footer,
  .funup-line-entry-page .funup-entry-greeting-card .funup-entry-card-footer {
    margin: 14px -16px -16px;
  }
}

/* =====================================================
   Phase 9: Confirm / Thanks screen bridge
   Confirmation and completion screens use common summary/action components.
===================================================== */
.funup-line-entry-page .funup-confirm-box .funup-card__body,
.funup-line-entry-page .funup-entry-thanks-card .funup-card__body {
  padding: 18px;
}

.funup-line-entry-page .funup-confirm-summary {
  margin-top: 4px;
}

.funup-line-entry-page .funup-confirm-summary__desc .funup-line-list {
  display: block;
}

.funup-line-entry-page .funup-confirm-actions.funup-action-row {
  margin-top: 18px;
  margin-bottom: 8px;
}

.funup-line-entry-page .funup-entry-thanks-card {
  margin-top: 0;
}

.funup-line-entry-page .funup-entry-thanks-card .funup-card__body {
  text-align: center;
  line-height: 1.85;
  font-size: 15px;
}

/* =====================================================
   Phase 10: Auth / friend / top-area cards use common card parts
   - entry keeps legacy class names but layout follows MyPage/common components
===================================================== */
.funup-line-entry-page .funup-entry-auth-choice-section,
.funup-line-entry-page .funup-entry-mail-auth-section,
.funup-line-entry-page .funup-friend-card,
.funup-line-entry-page .funup-entry-section.funup-card {
  margin: 0 0 18px;
  padding: 0 !important;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.funup-line-entry-page .funup-entry-auth-choice-section .funup-card__body,
.funup-line-entry-page .funup-entry-mail-auth-section .funup-card__body,
.funup-line-entry-page .funup-friend-card .funup-card__body,
.funup-line-entry-page .funup-entry-section.funup-card .funup-card__body {
  padding: 10px !important;
}

.funup-line-entry-page .funup-entry-auth-actions,
.funup-line-entry-page .funup-entry-mail-auth-actions,
.funup-line-entry-page .funup-entry-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
}

.funup-line-entry-page .funup-entry-auth-lead,
.funup-line-entry-page .funup-entry-mail-auth-lead {
  margin: 0 0 16px;
  color: #334155;
  line-height: 1.75;
}

.funup-line-entry-page .funup-entry-line-recommend.funup-notice {
  margin-top: 16px;
}

.funup-line-entry-page .funup-friend-card .friend-alert {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #173a5e;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.funup-line-entry-page .funup-friend-card .friend-note {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}

.funup-line-entry-page .funup-entry-greeting-card .funup-entry-greeting-inner {
  padding: 18px !important;
}

.funup-line-entry-page .funup-entry-greeting-card .funup-card__footer {
  padding: 12px 18px !important;
}

@media (max-width: 640px) {
  .funup-line-entry-page .funup-entry-auth-actions,
  .funup-line-entry-page .funup-entry-mail-auth-actions,
  .funup-line-entry-page .funup-entry-action-row {
    align-items: stretch;
  }
}


/* =====================================================
   Phase 11 bridge: entry state components use common UI
===================================================== */
.funup-line-entry-page .funup-state.funup-loading {
  width: 100%;
  box-sizing: border-box;
}

.funup-line-entry-page .funup-empty,
.funup-line-entry-page .funup-state--empty {
  margin: 12px 0;
}

.funup-line-entry-page .funup-divider {
  margin: 16px 0;
}


/* =====================================================
   Phase 15: Entry BEM bridge
   Existing entry classes remain, but canonical BEM classes now carry the structure.
===================================================== */
.funup-line-entry-page .funup-card--greeting {
  margin-bottom: 18px;
}
.funup-line-entry-page .funup-card--confirm {
  margin-bottom: 18px;
}
.funup-line-entry-page .funup-participant-card__actions .funup-button {
  max-width: 360px;
}
.funup-line-entry-page .funup-participant-card__selector input[type="checkbox"] {
  width: auto;
}
.funup-line-entry-page .funup-event-card__title {
  font-size: 1.05rem;
}

/* =====================================================
   Phase 6.5: entry UI visual adjustments
   - greeting auth badge alignment
   - PC event card image/date overlap fix
   - auth choice buttons pill / centered / equal width
===================================================== */

/* 1) Greeting Card: keep greeting text and auth badge left-aligned in the same column.
   Some earlier rules centered the auth badge only on confirmation screens. */
.funup-line-entry-page .funup-entry-greeting-inner,
.funup-line-entry-page .funup-greeting-inner.funup-entry-greeting-inner {
  align-items: flex-start !important;
  text-align: left !important;
}

.funup-line-entry-page .funup-entry-greeting-card .funup-entry-auth-status,
.funup-line-entry-page .funup-entry-greeting-card .funup-mypage-auth-status,
.funup-line-entry-page .funup-entry-greeting-card .funup-badge--auth {
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 2) Event Card: PC layout should not overlap thumb and date card.
   Keep mobile layout untouched. */
@media (min-width: 821px) {
  .funup-line-entry-page .funup-event-card .funup-card-inner,
  .funup-line-entry-page .funup-event-card__inner {
    display: grid !important;
    grid-template-columns: 340px minmax(0, 1fr) !important;
    column-gap: 28px !important;
    align-items: center !important;
  }

  .funup-line-entry-page .funup-event-card .funup-card-head,
  .funup-line-entry-page .funup-event-card__head {
    display: grid !important;
    grid-template-columns: 170px 170px !important;
    gap: 18px !important;
    align-items: center !important;
    width: 340px !important;
    max-width: 340px !important;
    margin: 0 !important;
  }

  .funup-line-entry-page .funup-event-card .funup-thumb,
  .funup-line-entry-page .funup-event-card__thumb {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }

  .funup-line-entry-page .funup-event-card .funup-thumb img,
  .funup-line-entry-page .funup-event-card__thumb img {
    width: 170px !important;
    height: 112px !important;
    object-fit: cover !important;
  }

  .funup-line-entry-page .funup-event-card .funup-date-wrap,
  .funup-line-entry-page .funup-event-card__date-wrap {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }

  .funup-line-entry-page .funup-event-card .funup-date,
  .funup-line-entry-page .funup-event-card__date {
    width: 100% !important;
  }
}

/* 3) Entry auth choice buttons: two stacked, centered, equal-width, pill-shaped buttons. */
.funup-entry-choice-page .funup-entry-auth-actions,
.funup-entry-mail-auth-page .funup-entry-mail-auth-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 28px auto 24px !important;
}

.funup-entry-choice-page .funup-entry-auth-button,
.funup-entry-choice-page .funup-entry-auth-button:link,
.funup-entry-choice-page .funup-entry-auth-button:visited,
.funup-entry-mail-auth-page .funup-entry-auth-button,
.funup-entry-mail-auth-page .funup-entry-auth-button:link,
.funup-entry-mail-auth-page .funup-entry-auth-button:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(100%, 440px) !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 14px 32px !important;
  border-radius: 999px !important;
  font-size: 1.06rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-line {
  border-color: #06c755 !important;
  background: #06c755 !important;
  color: #ffffff !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-mail,
.funup-entry-mail-auth-page .funup-entry-auth-button.is-mail {
  border-color: #1f2937 !important;
  background: #1f2937 !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .funup-entry-choice-page .funup-entry-auth-actions,
  .funup-entry-mail-auth-page .funup-entry-mail-auth-actions {
    max-width: 100% !important;
    gap: 14px !important;
    margin: 22px auto 18px !important;
  }

  .funup-entry-choice-page .funup-entry-auth-button,
  .funup-entry-mail-auth-page .funup-entry-auth-button {
    width: 100% !important;
    min-height: 54px !important;
  }
}

/* =====================================================
   Phase 6.6: entry CTA aliases / layout
   - Use common-ui.css CTA definitions without changing JS logic
===================================================== */

.funup-entry-choice-page .funup-entry-auth-actions,
.funup-entry-mail-auth-page .funup-entry-mail-auth-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 28px auto 24px !important;
}

.funup-entry-choice-page .funup-entry-auth-button,
.funup-entry-choice-page .funup-entry-auth-button:link,
.funup-entry-choice-page .funup-entry-auth-button:visited,
.funup-entry-mail-auth-page .funup-entry-auth-button,
.funup-entry-mail-auth-page .funup-entry-auth-button:link,
.funup-entry-mail-auth-page .funup-entry-auth-button:visited,
.funup-line-entry-page .funup-entry-auth-button,
.funup-line-entry-page .funup-entry-auth-button:link,
.funup-line-entry-page .funup-entry-auth-button:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(440px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 14px 32px !important;
  border-radius: 999px !important;
  border: 0 !important;
  box-sizing: border-box !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-line,
.funup-line-entry-page .funup-entry-auth-button.is-line {
  background: #06c755 !important;
  color: #ffffff !important;
}

.funup-entry-choice-page .funup-entry-auth-button.is-mail,
.funup-entry-mail-auth-page .funup-entry-auth-button.is-mail,
.funup-line-entry-page .funup-entry-auth-button.is-mail {
  background: #1f2937 !important;
  color: #ffffff !important;
}

/* Submit CTAs: 確認画面へ / 申し込む */
.funup-line-entry-page .submit-btn,
.funup-entry-choice-page .submit-btn,
.funup-entry-mail-auth-page .submit-btn,
.submit-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(440px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  margin: 10px auto 0 !important;
  padding: 14px 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18) !important;
}

.funup-line-entry-page .submit-btn:disabled,
.submit-btn:disabled {
  background: #94a3b8 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .funup-entry-choice-page .funup-entry-auth-actions,
  .funup-entry-mail-auth-page .funup-entry-mail-auth-actions {
    max-width: 100% !important;
    gap: 14px !important;
    margin: 22px auto 18px !important;
  }

  .funup-entry-choice-page .funup-entry-auth-button,
  .funup-entry-mail-auth-page .funup-entry-auth-button,
  .funup-line-entry-page .funup-entry-auth-button,
  .funup-line-entry-page .submit-btn,
  .submit-btn {
    width: 100% !important;
    min-height: 54px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    white-space: normal !important;
  }
}



/* 申込画面：マイページで編集リンクをボタン化 */
.funup-line-entry-page a.funup-mypage-edit-button,
.funup-line-entry-page .funup-mypage-edit-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: min(360px, 100%) !important;
  min-height: 52px !important;
  padding: 12px 28px !important;

  border: 1px solid #2563eb !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2563eb !important;

  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.funup-line-entry-page a.funup-mypage-edit-button:hover,
.funup-line-entry-page .funup-mypage-edit-button:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

.funup-line-entry-page .funup-participant-card__actions {
  justify-content: center !important;
}

