@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&family=Zen+Maru+Gothic:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --primary: #F58AB0;
  --primary-deep: #D86A93;
  --accent: #7DCEFC;
  --accent-deep: #3FA9E0;
  --soft: #FFF1F6;
  --softer: #FDF7FB;
  --ink: #5a3a14;
  --btn-grad: linear-gradient(135deg, #FFA5C4 0%, #F58AB0 55%, #7DCEFC 130%);
  --ring: rgba(245,138,176,.35);
}

.partner-page * { box-sizing: border-box; }
.partner-page,
.partner-page body {
  margin: 0;
  font-family: "Zen Maru Gothic", "Kosugi Maru", "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.partner-page { min-height: 100vh; }

/* ===== Sky backdrop ===== */
.partner-page .bg-sky,
.partner-page .bg-grad {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-grad {
  background:
    radial-gradient(1000px 600px at 80% -10%, #FFE2EE 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 110%, #DDF1FF 0%, transparent 60%),
    linear-gradient(180deg, #FFF8FB 0%, #F6FBFF 100%);
}
.sky-svg { width: 100%; height: 100%; display: block; }
.cloud { animation: drift 22s linear infinite; transform-origin: center; }
@keyframes drift {
  0% { transform: translateX(-30px); }
  50% { transform: translateX(30px); }
  100% { transform: translateX(-30px); }
}
.spark { animation: twink 3s ease-in-out infinite; transform-origin: center; }
@keyframes twink {
  0%, 100% { opacity: .3; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

.partner-page > * { position: relative; z-index: 1; }

/* ===== Logo ===== */
.logo-ribbon {
  width: 520px; max-width: 92vw;
  filter: drop-shadow(0 4px 10px rgba(245,138,176,.18));
}

/* ===== Mascot ===== */
.mascot { position: relative; display: inline-block; }
.mascot img { width: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(245,138,176,.25)); }
.mascot-shadow {
  position: absolute; bottom: -6px; left: 12%; right: 12%; height: 14px;
  background: radial-gradient(ellipse, rgba(0,0,0,.18), rgba(0,0,0,0) 70%);
  filter: blur(3px);
}
.mascot.bob img { animation: bob 4.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}

/* ===== LOGIN ===== */
.login-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 24px;
  gap: 28px;
}
.login-top { width: 100%; display: flex; justify-content: center; }

.login-card { width: 520px; max-width: 96vw; transition: transform .2s ease; }
.login-card.shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.card-edge {
  padding: 6px;
  border-radius: 36px 36px 28px 28px;
  background: linear-gradient(135deg,
    #FFE6F0 0%, #FFFDF3 30%, #E8F8E4 55%, #D5F0EE 75%, #D3EBFE 100%);
  box-shadow:
    0 24px 60px -20px rgba(245,138,176,.35),
    0 8px 18px -8px rgba(125,206,252,.25);
}
.card-inner {
  background: linear-gradient(180deg, #ffffff 60%, #FFF7FB 100%);
  border-radius: 32px 32px 24px 24px;
  padding: 28px 36px 28px;
  position: relative;
}

.mascot-stage {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
  margin-top: -56px;
  margin-bottom: 6px;
}
.speech {
  background: #fff;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid #FFD7E5;
  box-shadow: 0 3px 0 #FBD4E1;
  font-weight: 700; line-height: 1.3;
  position: relative;
  display: flex; flex-direction: column;
}
.speech::before {
  content: ""; position: absolute; left: -10px; top: 22px;
  width: 12px; height: 12px; background: #fff;
  border-left: 2px solid #FFD7E5; border-bottom: 2px solid #FFD7E5;
  transform: rotate(45deg);
}
.speech-sub { font-size: 12px; color: var(--primary-deep); font-weight: 700; }

.partner-form { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; margin: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: var(--primary-deep);
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 4px;
}
.field input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 2px solid #FCD9E5;
  background: #FFFAFC;
  font: inherit; font-size: 16px;
  color: var(--ink);
  transition: all .2s ease;
  outline: none;
}
.field input::placeholder { color: #C9A8B3; }
.field input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.primary-btn {
  margin-top: 6px;
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--btn-grad);
  color: #fff;
  font: inherit; font-size: 17px; font-weight: 900; letter-spacing: 2px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.5),
    inset 0 -2px 0 rgba(0,0,0,.08),
    0 8px 18px -6px rgba(245,138,176,.5);
  transition: transform .15s ease, box-shadow .2s ease;
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.5),
    inset 0 -2px 0 rgba(0,0,0,.08),
    0 12px 22px -6px rgba(245,138,176,.55);
}
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled { opacity: .85; cursor: progress; }

.remember {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer; align-self: center;
  margin: 0; padding: 0;
}
.remember input { display: none; }
.check-box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid #FBC8DA;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.check-box svg { width: 14px; height: 14px; opacity: 0; }
.remember input:checked + .check-box {
  background: var(--primary);
  border-color: var(--primary);
}
.remember input:checked + .check-box svg { opacity: 1; }

.partner-links { text-align: center; font-size: 13px; margin-top: -4px; }
.partner-links a { color: var(--accent-deep); text-decoration: none; }
.partner-links a:hover { text-decoration: underline; }
.partner-links .dot { color: #ddd; margin: 0 6px; }

.hint {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #FFF1F6, #ECF7FE);
  border-radius: 14px;
  font-size: 12.5px;
  color: #8a6a4a;
  text-align: center;
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  width: 100%;
}

.partner-error {
  background: rgba(255, 235, 240, .96);
  border: 1px solid #F58AB0;
  border-radius: 14px;
  color: #C0392B;
  padding: 0.6em 1em;
  margin: 0 0 0.5em 0;
  font-size: 13px;
  font-weight: 700;
}
.partner-error ul { list-style: none; padding: 0; margin: 0; }
.field-validation-error { color: #C0392B; font-size: 12px; font-weight: 700; padding-left: 12px; }

.login-foot {
  font-size: 12px; color: #8a6a4a; opacity: .85;
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 12px;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.login-foot .sep { opacity: .4; }
.login-foot a { color: inherit; text-decoration: none; }
.login-foot a:hover { color: var(--primary-deep); }

/* ===== SELECT (Index) ===== */
.select-wrap { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #FFF8FB 0%, #F6FBFF 100%); }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #FCE3EE;
}
.topbar-l { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.topbar-l .logo-ribbon { width: 360px; max-width: 50vw; }
.topbar-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 2px solid #FCE3EE;
}
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--btn-grad);
  color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.user-meta { line-height: 1.1; font-size: 13px; }
.user-meta .user-name { font-weight: 700; color: var(--ink); }
.user-meta .user-org { font-size: 11px; color: #a88; }

.ghost-btn {
  border: 2px solid #FCE3EE;
  background: #fff;
  color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.ghost-btn:hover { border-color: var(--primary); color: var(--primary-deep); }

.select-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  margin-bottom: 28px;
  background: linear-gradient(120deg, rgba(255,255,255,.7), rgba(255,255,255,.45));
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  box-shadow: 0 18px 40px -20px rgba(245,138,176,.3);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(255,183,200,.4), transparent 60%),
    radial-gradient(400px 200px at 100% 100%, rgba(168,223,251,.4), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hello { font-size: 14px; color: var(--primary-deep); font-weight: 700; margin-bottom: 4px; }
.hello b { color: var(--ink); }
.hero-h1 {
  font-size: 30px; font-weight: 900;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 1px;
}
.hero-p { font-size: 14px; color: #7a5c3e; margin: 8px 0 0; }
.hero-mascot { position: relative; }
.hero-bubble {
  position: absolute; top: 10px; left: -120px;
  background: #fff; border: 2px solid #FFD7E5;
  border-radius: 14px; padding: 8px 14px;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 3px 0 #FBD4E1;
}
.hero-bubble::after {
  content: ""; position: absolute; right: -10px; top: 16px;
  width: 12px; height: 12px; background: #fff;
  border-right: 2px solid #FFD7E5; border-top: 2px solid #FFD7E5;
  transform: rotate(45deg);
}

/* ===== Assistant cards grid ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: 1fr; }
}

.a-card {
  position: relative;
  border: none;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 18px -6px rgba(245,138,176,.25);
  transition: transform .2s ease, box-shadow .25s ease;
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.a-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-tint, var(--accent)) 0%, transparent 60%);
  opacity: .14;
  pointer-events: none;
}
.a-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -10px rgba(245,138,176,.35);
  color: inherit;
  text-decoration: none;
}
.a-card:hover .a-go { transform: translateX(4px); }
.a-icon {
  position: relative;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245, 138, 176, .15);
  flex: 0 0 auto;
}
.a-icon img,
.a-icon .a-svg-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  object-fit: contain;
  pointer-events: none;
}
.a-icon .a-svg-icon { display: block; }
.a-text { display: flex; flex-direction: column; min-width: 0; }
.a-label { font-size: 18px; font-weight: 900; letter-spacing: .5px; color: var(--ink); }
.a-sub { font-size: 12.5px; color: #8a6a4a; margin-top: 2px; }
.a-go { transition: transform .2s ease; color: var(--primary-deep); flex: 0 0 auto; }

.use-box {
  margin-top: 28px;
  padding: 18px 22px;
  background: linear-gradient(120deg, #FFF7FB, #ECF7FE);
  border-radius: 20px;
  border: 1px solid #FCE3EE;
}
.use-box .ub-title {
  display: inline-block;
  font-weight: 900;
  color: var(--primary-deep);
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.use-box p { margin: 4px 0; font-size: 13px; color: #7a5c3e; }

.select-foot {
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #8a6a4a;
  opacity: .85;
}
.partner-warning {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 12px; padding: 14px 18px; margin: 0 0 16px;
  color: #8a6a4a; font-size: 13px; font-weight: 700;
}

/* responsive */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-mascot { justify-self: center; }
  .hero-bubble { left: auto; right: -40px; top: -10px; }
  .hero-h1 { font-size: 22px; }
  .topbar-l .logo-ribbon { width: 240px; }
  .user-chip .user-meta { display: none; }
}
