@charset "UTF-8";
@keyframes animation-slowly-up-down {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(30px);
  }
}
.animation-slowly-up-down-class {
  position: relative;
  animation-name: animation-slowly-up-down;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}
.pulse-border-class {
  position: relative;
  animation-name: pulse-border;
  animation-duration: 1500ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes spin-cycle {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(-1000deg);
  }
}
.spin-endless {
  position: relative;
  animation-name: spin-cycle;
  animation-duration: 90s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: cubic-bezier(0.59, 0.59, 1, 1);
}
.shine-image {
  position: relative;
  overflow: hidden;
}
.shine-image:after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}
.shine-image:hover:after {
  height: 250%;
  transition: all 600ms linear;
  background-color: transparent;
}
@keyframes animation-bloom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.breathing {
  position: relative;
  animation-name: animation-bloom;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  transition: all 0.4s ease-in-out;
}
@keyframes fade-in-down {
  0% {
    transform: translate3d(0, -50px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
/* ===== ベース：日本語に合うモダンなフォントと余白 ===== */
.section-title {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #333;
  font-size: clamp(1rem, 3vw, 2rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.4em;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(to right, #ff6f61, #ffcc70);
  border-radius: 2px;
}
.section-title.red {
  color: #D01031;
}
.section-title.unlimited {
  color: #FFBA00;
}
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding-bottom: 0.3em;
  }
  .section-title::after {
    width: 50%;
    height: 2px;
  }
}
/* ========== Application Form ========== */
/* ラッパ（余白やフォントは Tailwind 任せ。ここではカードの見た目だけ） */
.application-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
}
/* 行 */
.form-row {
  margin-top: 2rem;
}
/* ラベル */
.form-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #111; /* 文字は黒 */
  margin-bottom: 0.4rem;
}
.form-label-en {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}
small.form-label-en {
  display: block;
  margin-top: 0.15rem;
}
/* 必須/任意バッジ */
.req-badge,
.opt-badge {
  display: inline-grid;
  place-items: center;
  height: 1.4rem;
  padding: 0 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  line-height: 1;
}
.req-badge {
  background: #fee2e2;
  color: #991b1b;
}
.opt-badge {
  background: #e5e7eb;
  color: #374151;
}
/* コア入力スタイル */
.ko-input,
.ko-select,
.ko-textarea {
  width: 100%;
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.ko-textarea {
  line-height: 1.8;
  resize: none;
}
/* JSで自動リサイズ */
.ko-select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: none;
}
/* フォーカス */
.ko-input:focus,
.ko-select:focus,
.ko-textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
/* エラー */
.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}
.form-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin-top: 0.4rem;
}
.form-help {
  color: #6b7280;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}
/* 文字数カウンタ（右上） */
.char-counter {
  position: absolute;
  right: 0.5rem;
  top: 0.4rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.1rem 0.4rem;
}
/* ボタン */
.ko-btn {
  display: inline-grid;
  place-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.ko-btn--primary {
  background: #111827;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.ko-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.ko-btn--ghost {
  background: #fff;
  color: #111;
  border-color: #d1d5db;
}
.ko-btn--ghost:hover {
  background: #f9fafb;
}
/* ダーク背景のページでも読みやすいように（任意） */
@media (prefers-color-scheme: dark) {
  .application-form {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .ko-input, .ko-select, .ko-textarea {
    background: #fff;
    color: #111;
  }
}
/* =========================
   Image Uploader / Preview
   ========================= */
/* ラッパ（行全体の左右は既存の .form-row を流用） */
/* ドロップ領域（正方形） */
#imageDrop {
  position: relative;
  width: 9rem; /* w-36 相当: お好みで 7rem/8rem に */
  height: 9rem; /* 正方形 */
  border-radius: 12px;
  border: 1px solid #d1d5db; /* gray-300 */
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
/* ドラッグ中の強調（JSで data-drag="on" 付与済みならそのまま効く） */
#imageDrop[data-drag=on] {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); /* blue focus ring */
  border-color: #93c5fd; /* blue-300 */
  filter: brightness(0.99);
}
/* プレビュー画像：親の枠いっぱい + 比率維持で内接（ノークロップ） */
#imagePreview {
  position: absolute;
  inset: 0;
  width: 100% !important; /* 外部の img{height:auto} を無効化 */
  height: 100% !important;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  /* グリッド/Flexの収縮制限に負けないように（保険） */
  min-width: 0;
  min-height: 0;
}
/* 画像が未設定の時は非表示（src="" or src 属性なし） */
#imagePreview[src=""],
#imagePreview:not([src]) {
  display: none !important;
}
/* “No Image” ヒント（中央） */
#imageEmptyHint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9ca3af; /* gray-400 */
  font-size: 12px;
}
/* 画像がセットされたらヒントを隠す
   :has() は主要ブラウザ対応。効かない環境でもJSが src を空→URLへ変えるので
   上の display:none と合わせて実害は出ません。 */
#imageDrop:has(#imagePreview[src]:not([src=""])) #imageEmptyHint {
  display: none;
}
/* 画像選択ボタン（input[type=file] を隠し、ラベルで見せる場合の無難な装飾） */
.input-file-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.input-file-trigger:hover {
  background: #f9fafb;
}
input[type=file].is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* ========== application Confirm ========== */
.application-confirm {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}
/* 表示用リスト */
.confirm-list {
  display: grid;
  gap: 0.75rem;
}
.confirm-list .row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}
@media (max-width: 767px) {
  .confirm-list .row {
    grid-template-columns: 1fr;
  }
}
.confirm-list .row dt {
  font-weight: 700;
  color: #374151; /* slate-700 */
  margin: 0;
}
.confirm-list .row .confirm-label-en {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}
.confirm-list .row dd {
  margin: 0;
  color: #111;
  line-height: 1.85;
  white-space: pre-wrap; /* 念のため */
  word-break: break-word;
}
/* 操作行 */
.confirm-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
/* 備考 */
.confirm-note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
/* ========== application Thanks ========== */
.application-thanks {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.application-thanks .icon-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.application-thanks .icon-wrap .icon-success {
  width: 72px;
  height: 72px;
  display: block;
  /* emerald-500 */
  filter: drop-shadow(0 8px 18px rgba(16, 185, 129, 0.35));
  border-radius: 9999px;
}
.application-thanks .icon-wrap .icon-success .bg {
  fill: #10b981;
}
.application-thanks .icon-wrap .icon-success .fg {
  stroke: #ffffff;
}
.application-thanks .title {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: #111;
  margin: 0.25rem 0 0.5rem;
}
.application-thanks .lead {
  color: #374151; /* slate-700 */
  line-height: 1.9;
  margin: 0 auto 1.25rem;
  max-width: 48rem;
}
.application-thanks .meta {
  margin: 1rem auto 1.5rem;
  display: grid;
  gap: 0.75rem;
  text-align: left;
  max-width: 48rem;
}
.application-thanks .meta > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}
@media (max-width: 767px) {
  .application-thanks .meta > div {
    grid-template-columns: 1fr;
  }
}
.application-thanks .meta > div dt {
  margin: 0;
  font-weight: 700;
  color: #374151;
}
.application-thanks .meta > div dd {
  margin: 0;
  color: #111;
  line-height: 1.85;
}
.application-thanks .actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* --- （未定義時用）ボタンの最小フォールバック --- */
.ko-btn {
  display: inline-grid;
  place-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.ko-btn--primary {
  background: #111827;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}
.ko-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.ko-btn--ghost {
  background: #fff;
  color: #111;
  border-color: #d1d5db;
}
.ko-btn--ghost:hover {
  background: #f9fafb;
}
/* ========== Application Confirm ========== */
.application-confirm {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
}
.confirm-list {
  display: grid;
  gap: 0.75rem;
}
.confirm-list .row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fafafa;
  /* gray-600 */
}
@media (max-width: 767px) {
  .confirm-list .row {
    grid-template-columns: 1fr;
  }
}
.confirm-list .row dt {
  margin: 0;
  font-weight: 700;
  color: #111827; /* gray-900 */
}
.confirm-list .row dd {
  margin: 0;
  color: #111;
  line-height: 1.85;
}
.confirm-list .row .confirm-value {
  text-align: left;
  line-height: 1.5;
}
.confirm-list .row .muted {
  color: #6b7280;
}
.confirm-list .row .preserve {
  white-space: pre-wrap;
}
/* 配列用ピル群 */
.value-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.value-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  background: #111827; /* gray-900 */
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
/* 画像プレビューカード（内接・正方形ではなく“名刺サイズ”にも対応） */
.image-card {
  width: 10rem;
  height: 10rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.image-card__img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.confirm-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.confirm-note {
  margin-top: 0.75rem;
  color: #6b7280;
  text-align: center;
  font-size: 0.875rem;
}
/* ダークモード調整（任意） */
@media (prefers-color-scheme: dark) {
  .application-confirm {
    background: #fff;
  } /* 確認は白基調を維持 */
}
/* ========== Application Thanks ========== */
.application-thanks {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.application-thanks .icon-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.application-thanks .icon-wrap .icon-success {
  width: 72px;
  height: 72px;
  display: block;
  /* emerald-500 */
  filter: drop-shadow(0 8px 18px rgba(16, 185, 129, 0.35));
  border-radius: 9999px;
}
.application-thanks .icon-wrap .icon-success .bg {
  fill: #10b981;
}
.application-thanks .icon-wrap .icon-success .fg {
  stroke: #ffffff;
}
.application-thanks .title {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: #111;
  margin: 0.25rem 0 0.5rem;
}
.application-thanks .lead {
  color: #374151; /* slate-700 */
  line-height: 1.9;
  margin: 0 auto 1.25rem;
  max-width: 48rem;
}
.application-thanks .meta {
  margin: 1rem auto 1.5rem;
  display: grid;
  gap: 0.75rem;
  text-align: left;
  max-width: 48rem;
}
.application-thanks .meta > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}
@media (max-width: 767px) {
  .application-thanks .meta > div {
    grid-template-columns: 1fr;
  }
}
.application-thanks .meta > div dt {
  margin: 0;
  font-weight: 700;
  color: #374151;
}
.application-thanks .meta > div dd {
  margin: 0;
  color: #111;
  line-height: 1.85;
}
.application-thanks .actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* --- （未定義時用）ボタンの最小フォールバック --- */
.ko-btn {
  display: inline-grid;
  place-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.ko-btn--primary {
  background: #111827;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}
.ko-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.ko-btn--ghost {
  background: #fff;
  color: #111;
  border-color: #d1d5db;
}
.ko-btn--ghost:hover {
  background: #f9fafb;
}