/* ============================================================
   かわいい会員UI(kw-) ③デザイン刷新 かわいいUI専用CSS(2026-08-05 ⑤で分離)
   読み込み: AreaChrome(main.cssの後) と MyuserAssets(myuser系)の両方。
   main.css には kw- を書かないこと(正本はこのファイル)。変更時は ASSET_VER を上げる。
   ============================================================ */

/* Yomogi(手書き見出し)。main.css と同一定義(myuser系は main.css を読まないためここにも置く。
   両方読むページでも同一family+srcなのでブラウザが重複解決する=無害) */
@font-face {
  font-family: "Yomogi";
  src: url("fonts/Yomogi-subset.woff2?v=20260805a") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   かわいい会員UI(kw-) ③デザイン刷新 2026-08-05 ⓪共通部品
   対象: 会員登録/仮登録/認証お祝い/かんたん応募/応募完了/ログイン/マイページ
   ─ SPだけ新デザイン・PCは現行維持 ─
   ・.kw-sp      … SP専用の飾り(帯・ステップ等)。PC(≥769px)では消える
   ・.kw-hide-sp … 現行部品をSPで隠すときに付ける(PCでは出たまま)
   ・.kw-form    … .main_form と同じ要素に付けると中の入力欄が角丸デザインになる
   共通コンポーネント: components/kawaii/(KawaiiHero/StepList/Confetti/ParticleBand)
   見出しはYomogi。文言を変えたら scripts/generate-yomogi-subset.mjs 再生成(正本=yomogi-texts.ts)
   ============================================================ */

@media screen and (min-width: 769px) {
  .kw-sp { display: none !important; }
}

/* 会員登録の提案枠(MemberOfferCard)の基本形。もとはコンポーネントのインラインstyle
   (PCの見た目)だったが、SPでかわいいUIに上書きできるようクラスへ移した(2026-08-05 ④) */
.offer_box {
  margin-top: 24px; padding: 16px 14px;
  border: 2px solid #eb6ea0; border-radius: 10px; background: #fff;
}

/* 🔴@keyframes は @media の外(iOS Safariが@media内のkeyframesを無視する) */
@keyframes kwTwinkle { 0%,100% { opacity: .25 } 50% { opacity: .95 } }
@keyframes kwBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes kwShine { 0%, 74% { left: -60px } 88% { left: 110% } 100% { left: 110% } }
@keyframes kwFall {
  0%   { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg) }
  10%  { opacity: 1 }
  85%  { opacity: 1 }
  100% { opacity: 0; transform: translate3d(var(--dx), 105vh, 0) rotate(var(--rot)) }
}

@media screen and (max-width: 768px) {
  .kw-hide-sp { display: none !important; }

  /* ====== 夜空の帯(KawaiiHero) ====== */
  .kw-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #1d1638 0%, #3a2154 55%, #6d3767 100%);
    padding: 18px 16px 14px; border-radius: 0 0 22px 22px;
  }
  .kw-dust { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; z-index: 1; }
  .kw-stars, .kw-stars::before, .kw-stars::after {
    content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%;
    background: #fff; opacity: .8; animation: kwTwinkle 3s ease-in-out infinite;
  }
  .kw-stars { top: 18px; left: 12%;
    box-shadow: 60px 30px 0 -1px #ffe9f4, 140px 8px 0 0 #fff,
                210px 42px 0 -1px #ffd9ec, 280px 16px 0 0 #fff, 330px 50px 0 -1px #ffe9f4; }
  .kw-stars::before { left: 30px; top: 55px; animation-duration: 5s; }
  .kw-stars::after { left: 250px; top: 68px; animation-duration: 7s; }

  .kw-hero-inner { position: relative; z-index: 2; }
  .kw-hero-bottom {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: 12px;
  }
  .kw-naviko {
    width: 112px; height: 112px; flex: 0 0 auto; object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
    animation: kwBob 3s ease-in-out infinite; transform-origin: center bottom;
  }
  .kw-bubble {
    position: relative; background: #fff; color: #4a3a42;
    border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.7;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
  }
  .kw-bubble b { color: #ec6e9a; }
  /* 特典の箇条書き(折り返しても「・」の位置で揃うぶら下げインデント) */
  .kw-bubble-list { margin: 5px 0 0; padding: 0; list-style: none; }
  .kw-bubble-list li {
    padding-left: 1em; text-indent: -1em; margin-top: 3px; font-size: 12.5px; line-height: 1.55;
  }
  .kw-bubble-list li::before { content: "・"; color: #ec6e9a; }
  /* しっぽは下向き。右下のナビ子の頭の上あたりを指す */
  .kw-bubble::after {
    content: ""; position: absolute; right: 46px; bottom: -9px;
    border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-top: 10px solid #fff;
  }
  .kw-title {
    flex: 1; min-width: 0; margin: 0; text-align: center;
    font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
    font-weight: 400; font-size: 27px; color: #fff; letter-spacing: .12em;
    text-shadow: 0 2px 8px rgba(236,110,154,.6);
  }
  /* 9文字級の見出し(「入力内容のかくにん」等)を左半分の幅に1行で収める字詰め */
  .kw-title-long { font-size: 21px; letter-spacing: .03em; }

  /* ====== 進捗ステップ(StepList) ====== */
  .kw-steps {
    display: flex; justify-content: center; gap: 34px; list-style: none;
    margin: 18px 0 6px; padding: 0; position: relative;
  }
  .kw-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
  .kw-steps li + li::before {
    content: ""; position: absolute; top: 15px; right: calc(100% + 4px); width: 26px; height: 2px;
    background: #f0d5e2; border-radius: 2px;
  }
  .kw-steps li.on + li.on::before { background: linear-gradient(90deg, #f783ac, #b06ab3); }
  .kw-step-dot {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: #f0d5e2; color: #fff; font-size: 14px; font-weight: bold;
  }
  .kw-steps li.on .kw-step-dot {
    background: linear-gradient(135deg, #f783ac, #ec6e9a, #b06ab3);
    box-shadow: 0 2px 8px rgba(236,110,154,.45);
  }
  .kw-step-label { font-size: 11px; color: #b58fa4; }
  .kw-steps li.on .kw-step-label { color: #ec6e9a; font-weight: bold; }

  /* ====== ページ土台(帯の外側) ====== */
  .kw-page { background: #fff7fa; }

  /* ====== 現行フォーム(.main_form)の着せ替え ======
     .main_form と同じ要素に .kw-form を足すと、中のdl/dt/dd/入力欄が
     サンプルの角丸デザインになる(DOM・入力項目・検証は一切変えない) */
  .main_form.kw-form { background: #fff7fa; padding: 0 0 32px; }
  .main_form.kw-form .content {
    background: transparent; border-radius: 0; padding: 4px 18px 26px;
  }
  .main_form.kw-form .content .title_part { display: none; } /* 見出しは帯(kw-hero)が持つ */
  /* 現行のdlはflex横並び(dt|dd)。かわいいUIは縦積み(ラベルの下に入力欄) */
  .main_form.kw-form .content dl { display: block; margin: 16px 0 0; border: 0; padding: 0; }
  .main_form.kw-form .content dl dt {
    display: flex; align-items: center; gap: 6px; float: none;
    width: auto !important; /* 現行は width:240px !important のため強度を合わせる */
    justify-content: flex-start; /* 現行のspace-betweenだと必須ピルが右端へ飛ぶ */
    background: none; border: 0; padding: 0; margin: 0 2px 6px;
  }
  .main_form.kw-form .content dl dt label {
    font-size: 13.5px; font-weight: bold; color: #7c4a60; background: none; padding: 0;
  }
  .main_form.kw-form .content dl dt span {
    display: inline-block; font-style: normal; font-size: 10px; font-weight: 700;
    line-height: 1; padding: 3px 6px; border-radius: 999px;
    background: #fce0eb; color: #d63b6e; border: 0; margin: 0;
  }
  .main_form.kw-form .content dl dt span.any { background: #eee7ec; color: #9b8794; }
  .main_form.kw-form .content dl dd { padding: 0; margin: 0; width: auto; float: none; }
  .main_form.kw-form .content dl dd div { padding: 0; background: none; }
  .main_form.kw-form .content dl dd div input,
  .main_form.kw-form .content dl dd div select,
  .main_form.kw-form .content dl dd div textarea {
    width: 100%; height: auto; padding: 13px 14px; font-size: 16px; color: #4a3a42;
    background: #fff; border: 1.5px solid #f3cfe0; border-radius: 14px;
    outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .main_form.kw-form .content dl dd div textarea { height: auto; min-height: 84px; }
  .main_form.kw-form .content dl dd div input:focus,
  .main_form.kw-form .content dl dd div select:focus,
  .main_form.kw-form .content dl dd div textarea:focus {
    border-color: #ec6e9a; box-shadow: 0 0 0 4px rgba(236,110,154,.15);
  }
  .main_form.kw-form .content .descript { font-size: 11.5px; color: #b58fa4; margin: 5px 2px 0; }
  .main_form.kw-form .content .descript.error { color: #d63b6e; font-weight: bold; }

  /* ====== CTA(ブランドグラデ+キラッ)。現行 .btn_next の着せ替え ====== */
  .main_form.kw-form .content .btn_next {
    position: relative; overflow: hidden; display: block; margin: 22px auto 0;
    width: 100%; max-width: 340px; text-align: center; text-decoration: none;
    padding: 14px 10px 12px; border-radius: 999px; border: 0; height: auto;
    background: none;
    background-image: linear-gradient(135deg, #f783ac, #ec6e9a, #b06ab3);
    box-shadow: 0 6px 16px rgba(236,110,154,.4);
    transition: transform .08s;
  }
  .main_form.kw-form .content .btn_next:active { transform: translateY(2px) scale(.99); }
  .main_form.kw-form .content .btn_next::after { display: none; } /* 現行の矢印は使わない */
  .main_form.kw-form .content .btn_next::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 42px;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); left: -60px; animation: kwShine 3.5s ease-in-out infinite;
  }
  .main_form.kw-form .content .btn_next p {
    color: #fff; font-size: 18px; font-weight: bold; letter-spacing: .06em;
    margin: 0; padding: 0; line-height: 1.35; background: none;
  }
  .main_form.kw-form .content .btn_next p.sub_title {
    color: rgba(255,255,255,.85); font-size: 11px; font-weight: normal; margin-top: 2px;
  }
  /* 戻る: 小さい丸ボタン(存在は分かるが主張しない) */
  .main_form.kw-form .content .btn_return {
    display: grid; place-items: center; margin: 14px auto 0; width: auto; height: 40px;
    border-radius: 999px; border: 1.5px solid #f0d5e2; padding: 0 18px;
    background: #fff; color: #c78aa4; font-size: 14px;
    box-shadow: 0 2px 6px rgba(199,138,164,.2); text-decoration: none;
  }
  .main_form.kw-form .content .btn_return::after { display: none; }
  .main_form.kw-form .content .btn_return p { color: #c78aa4; margin: 0; background: none; }
  /* 確認画面の2ボタン: 縦積み(進む=上・戻る=下) */
  .main_form.kw-form .content .form_btn_col2 { display: flex; flex-direction: column-reverse; gap: 4px; }

  /* ====== 確認ステップの読み上げリスト ====== */
  .main_form.kw-form.kw-form-confirm .content dl {
    display: flex; gap: 12px; padding: 11px 6px; margin: 0;
    border-bottom: 1px dashed #f0d5e2; font-size: 14.5px;
  }
  .main_form.kw-form.kw-form-confirm .content dl dt {
    flex: 0 0 96px; color: #b58fa4; font-size: 13px; padding-top: 1px; margin: 0;
  }
  .main_form.kw-form.kw-form-confirm .content dl dt label { color: #b58fa4; font-weight: normal; font-size: 13px; }
  .main_form.kw-form.kw-form-confirm .content dl dt span { display: none; } /* 確認では必須/任意の印は出さない */
  .main_form.kw-form.kw-form-confirm .content dl dd {
    flex: 1; word-break: break-all; width: auto;
    color: #4a3a42; font-size: 14.5px; /* 現行の薄ピンク文字(#ff8c8c系)を読みやすい色に */
  }
  .main_form.kw-form.kw-form-confirm .content dl dd div { color: #4a3a42; background: none; padding: 0; }

  /* ====== 白カード+ご案内(仮登録・完了系で使い回す) ====== */
  .kw-card {
    margin: 14px 14px 0; background: #fff; border-radius: 18px; padding: 20px 16px;
    box-shadow: 0 4px 16px rgba(176,106,179,.12);
  }
  .kw-lead {
    margin: 0 0 12px; text-align: center; font-size: 19px; font-weight: 700; color: #b0447a;
    font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  }
  .kw-lead-icon { display: block; font-size: 40px; line-height: 1.2; }
  .kw-notice {
    margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
    background: #fff2f7; border: 1px solid #f6d3e2;
  }
  .kw-notice b { color: #d63b6e; }
  .kw-tips { border-radius: 12px; background: #faf6f8; padding: 12px 14px; }
  .kw-tips-ttl { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #8a6f7d; }
  .kw-tips ul { margin: 0; padding: 0; list-style: none; }
  .kw-tips li {
    position: relative; padding-left: 1em; text-indent: -1em;
    font-size: 12.5px; line-height: 1.6; color: #6f5c66; margin-top: 4px;
  }
  .kw-tips li::before { content: "・"; color: #ec6e9a; }
  .kw-tips b { color: #b0447a; }
  .kw-back-link {
    display: block; margin: 18px auto 0; width: fit-content; padding: 6px 18px;
    font-size: 13px; color: #a1889a; text-decoration: none; border-bottom: 1px solid #e3d2dc;
  }
  .kw-page-pad { padding-bottom: 36px; }

  /* ====== 応募先の店舗名ピル(かんたん応募・全ステップで表示) ====== */
  .kw-shop {
    margin: 14px 14px 0; padding: 10px 14px; border-radius: 999px; text-align: center;
    background: #fff; box-shadow: 0 2px 8px rgba(176,106,179,.12);
    font-size: 15px; font-weight: 700; color: #b0447a;
  }
  .kw-shop span {
    display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px;
    background: #fce0eb; color: #d63b6e; font-size: 10.5px; vertical-align: 2px;
  }

  /* ====== 個人情報の取り扱い(全文のまま白カード内スクロールでコンパクトに) ====== */
  .main_form.kw-form .content .form_kiyaku_title {
    font-size: 13.5px; font-weight: bold; color: #7c4a60; margin: 20px 2px 6px;
    background: none; padding: 0; border: 0; text-align: left;
  }
  .main_form.kw-form .content .form_kiyaku_wrap {
    max-height: 200px; overflow-y: auto; background: #fff;
    border: 1.5px solid #f3cfe0; border-radius: 14px; padding: 12px 14px; margin: 0;
  }
  .main_form.kw-form .content .form_kiyaku_wrap h3 { font-size: 12.5px; color: #7c4a60; margin: 10px 0 4px; }
  .main_form.kw-form .content .form_kiyaku_wrap p,
  .main_form.kw-form .content .form_kiyaku_wrap ul li { font-size: 11.5px; line-height: 1.6; color: #6f5c66; }

  /* ====== 「ログインして応募する」(かんたん応募の上部)を控えめリンクに ====== */
  .main_form.kw-form .content .btn_oubo {
    display: block; width: fit-content; margin: 0 auto; padding: 6px 16px;
    background: none; border: 0; border-bottom: 1px solid #e3d2dc; border-radius: 0;
    color: #a1889a; font-size: 13px; text-decoration: none; height: auto;
  }
  .main_form.kw-form .content .btn_oubo::after,
  .main_form.kw-form .content .btn_oubo::before { display: none; }
  .main_form.kw-form .content .btn_oubo p {
    color: #a1889a; font-size: 13px; margin: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  /* 入力画面の「前のページに戻る」(確認と同じ小さい丸ボタン見た目は btn_return が担う) */
  .main_form.kw-form .content .btn_back { display: none; } /* PC専用の戻り(SPは下部のbtn_returnがある) */

  /* ====== パスワードの目トグル(SPのみの追加UI) ====== */
  .kw-pw { position: relative; }
  .kw-pw input { padding-right: 48px; }
  .kw-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; background: none; font-size: 18px; cursor: pointer;
  }

  /* ====== 応募完了のチェックマーク ====== */
  .kw-done { text-align: center; padding-top: 8px; }
  .kw-done-check {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
    color: #fff; font-size: 40px; font-weight: bold;
    background: linear-gradient(135deg, #f783ac, #ec6e9a);
    box-shadow: 0 8px 22px rgba(236,110,154,.45);
    animation: kwPerkPop .55s cubic-bezier(.2,.9,.3,1.3) both;
  }
  .kw-done-ttl {
    margin: 14px 0 0; font-size: 19px; font-weight: 700; color: #b0447a;
    font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  }
  .kw-done-sub { margin: 6px 0 0; font-size: 13.5px; color: #6f5c66; }

  /* ====== 会員登録の提案枠(MemberOfferCard・②のデザイン版) ====== */
  .main_form.kw-form .content .offer_box {
    margin-top: 24px; padding: 16px 14px; background: #fff;
    border: 2px solid #f6b8d2; border-radius: 18px;
    box-shadow: 0 4px 16px rgba(176,106,179,.12);
  }
  .kw-offer-ttl {
    display: block; margin: 0 0 6px; text-align: center;
    font-size: 17px; font-weight: 700; color: #d63b6e;
  }

  /* ====== クラッカー(紙吹雪・Confetti) ====== */
  .kw-confetti { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
  .kw-confetti span {
    position: absolute; top: 0; border-radius: 2px; opacity: 0;
    animation-name: kwFall; animation-timing-function: cubic-bezier(.25,.6,.5,1);
    animation-iteration-count: 1; animation-fill-mode: forwards;
  }
}


/* ============================================================
   かわいい会員UI(kw-) 認証お祝い画面(③デザイン刷新 2026-08-05 ③verify.html)
   暗い夜空の全面背景+クラッカー+特典アンロック+元の求人カード+おすすめ求人。
   SP専用(.kw-sp)。PCは従来どおり文言だけの完了表示(VerifyClient参照)。
   ============================================================ */

@keyframes kwTitleIn {
  0% { opacity: 0; transform: translateY(14px) scale(.92) }
  100% { opacity: 1; transform: none }
}
@keyframes kwPerkPop {
  0% { opacity: 0; transform: translateY(12px) scale(.9) }
  65% { opacity: 1; transform: translateY(0) scale(1.04) }
  100% { opacity: 1; transform: none }
}

@media screen and (max-width: 768px) {
  .kw-cel-root {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(180deg, #150e2b 0%, #2b1a46 42%, #4d2455 78%, #6d3767 100%);
  }
  .kw-cel-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .kw-cel-bg .kw-stars { top: 40px; }
  .kw-cel { position: relative; z-index: 3; padding: 26px 16px 24px; }
  .kw-cel-eyebrow {
    margin: 0; text-align: center; font-size: 13px; letter-spacing: .18em;
    color: #ffd7ea; opacity: .95;
  }
  .kw-cel-title {
    margin: 6px 0 0; text-align: center; line-height: 1.35;
    font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
    font-weight: 400; font-size: 30px; color: #fff; letter-spacing: .06em;
    text-shadow: 0 3px 14px rgba(236,110,154,.75);
    animation: kwTitleIn .7s cubic-bezier(.2,.9,.3,1.2) both;
  }
  .kw-cel-naviko { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
  .kw-cel-naviko .kw-naviko { width: 132px; height: 132px; }
  .kw-cel-naviko .kw-bubble { flex: 1; }
  /* お祝いのふきだしはナビ子が左なので、しっぽを左向きに */
  .kw-cel-naviko .kw-bubble::after {
    right: auto; left: -9px; bottom: 22px;
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
    border-right: 10px solid #fff; border-left: 0;
  }

  .kw-unlock-ttl {
    margin: 22px 0 10px; text-align: center; font-size: 15px; font-weight: 700; color: #ffe3f0;
    animation: kwTitleIn .5s ease-out .2s both;
  }
  .kw-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .kw-perk {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
    background: rgba(255,255,255,.94); color: #4a3a42;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    opacity: 0; animation: kwPerkPop .55s cubic-bezier(.2,.9,.3,1.3) forwards;
  }
  .kw-perk:nth-child(1) { animation-delay: .45s }
  .kw-perk:nth-child(2) { animation-delay: .85s }
  .kw-perk:nth-child(3) { animation-delay: 1.25s }
  .kw-perk-icon {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    font-size: 21px; background: linear-gradient(135deg, #ffe3ee, #f7d3e6);
  }
  .kw-perk-body { display: block; min-width: 0; }
  .kw-perk-ttl { display: block; font-size: 14.5px; font-weight: 700; color: #b0447a; }
  .kw-perk-desc { display: block; font-size: 12px; line-height: 1.5; color: #6f5c66; margin-top: 2px; }

  /* CTA(暗背景版・登録フォームのbtn_nextと同じ見た目のbutton/aタグ用) */
  .kw-cta {
    position: relative; overflow: hidden; display: block; width: 100%; border: 0; cursor: pointer;
    text-align: center; margin: 22px auto 0; padding: 15px 12px; border-radius: 999px;
    text-decoration: none; color: #fff; font-family: inherit;
    background-image: linear-gradient(135deg, #f783ac, #ec6e9a, #b06ab3);
    box-shadow: 0 6px 18px rgba(236,110,154,.45);
  }
  .kw-cta-main { display: block; font-size: 17px; font-weight: 700; letter-spacing: .04em; color: #fff; }
  .kw-cta-sub { display: block; font-size: 11.5px; opacity: .9; margin-top: 2px; color: #fff; }
  .kw-cta::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 42px;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); left: -60px; animation: kwShine 3.5s ease-in-out infinite;
  }

  /* 元の求人へ戻す枠(ここが主役なので白く光らせて浮かせる) */
  .kw-back2job {
    margin-top: 26px; padding: 14px; border-radius: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,231,242,.45);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    animation: kwTitleIn .5s ease-out 1.5s both;
  }
  .kw-back2job-ttl {
    margin: 0 0 10px; text-align: center; font-size: 15px; font-weight: 700; color: #ffe3f0;
  }
  .kw-back2job-card {
    display: flex; align-items: stretch; gap: 0; border-radius: 14px; overflow: hidden;
    background: #fff; color: #4a3a42; margin-bottom: 12px;
    text-decoration: none; -webkit-tap-highlight-color: rgba(236,110,154,.2);
  }
  .kw-back2job-img {
    flex: 0 0 96px; min-height: 96px; display: grid; place-items: center; font-size: 12px; color: #b59aa6;
    background: linear-gradient(135deg, #f4e6ee, #e9d8e6); overflow: hidden;
  }
  .kw-back2job-img img { width: 96px; height: 100%; object-fit: cover; display: block; }
  .kw-back2job-body { display: block; min-width: 0; padding: 10px 12px; }
  .kw-back2job-name { display: block; font-size: 15px; font-weight: 700; color: #b0447a; }
  .kw-back2job-sub { display: block; font-size: 11.5px; color: #7d6b75; margin-top: 2px; }
  .kw-back2job-pay { display: block; font-size: 14px; font-weight: 700; color: #d63b6e; margin-top: 4px; }
  .kw-back2job-more { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: #b06ab3; }
  .kw-back2job .kw-cta { margin-top: 0; }
  .kw-back2job-applied {
    margin: 0; padding: 13px 12px; border-radius: 999px; text-align: center;
    font-size: 14px; font-weight: 700; color: #ffe3f0; background: rgba(255,255,255,.14);
  }

  /* おすすめ求人(横スクロール) */
  .kw-jobs { margin-top: 26px; }
  .kw-jobs-ttl {
    margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #ffe3f0; text-align: center;
  }
  .kw-jobs-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none;
  }
  .kw-jobs-scroll::-webkit-scrollbar { display: none; }
  .kw-job {
    flex: 0 0 auto; width: 168px; background: #fff; border-radius: 14px; overflow: hidden;
    text-decoration: none; color: #4a3a42; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  }
  .kw-job-img {
    display: grid; place-items: center; height: 96px; font-size: 12px; color: #b59aa6;
    background: linear-gradient(135deg, #f4e6ee, #e9d8e6); overflow: hidden;
  }
  .kw-job-img img { width: 100%; height: 96px; object-fit: cover; display: block; }
  .kw-job-body { display: block; padding: 8px 10px 10px; }
  .kw-job-name {
    display: block; font-size: 13.5px; font-weight: 700; color: #b0447a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .kw-job-sub {
    display: block; font-size: 11px; color: #7d6b75; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .kw-job-pay { display: block; font-size: 13px; font-weight: 700; color: #d63b6e; margin-top: 4px; }
  .kw-jobs-more {
    display: block; margin: 10px auto 0; text-align: center; font-size: 13px;
    color: #ffd7ea; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.28);
    width: fit-content; padding-bottom: 2px;
  }

  .kw-back-link-dark { color: rgba(255,255,255,.72); border-bottom-color: rgba(255,255,255,.28); }
  .kw-sub-links { margin-top: 22px; }
}


/* ============================================================
   かわいい会員UI(kw-) ⑤ログイン+マイページ(③デザイン刷新 2026-08-05)
   myuser系(import.css+mypage.co.css)のSPだけ着せ替える。PCは現行のまま。
   ============================================================ */

@keyframes kwBob2 { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }

@media screen and (max-width: 768px) {
  /* 視覚だけ隠してスクリーンリーダー/SEOにはテキストを残す(h1等) */
  .kw-srhide-sp {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important;
  }

  /* ====== ログイン(文字入りヒーロー画像+白背景) ====== */
  .kw-login-hero { display: block; width: 100%; height: auto; }
  .kw-login { background: #fff; }
  .kw-login .section_type01 { padding: 0 16px 30px; border: 0; }
  .kw-login .table_form, .kw-login .table_form tbody, .kw-login .table_form tr,
  .kw-login .table_form th, .kw-login .table_form td {
    display: block; width: 100%; border: 0; padding: 0; background: none;
  }
  .kw-login .table_form colgroup { display: none; }
  .kw-login .table_form th { margin: 14px 2px 6px; display: flex; align-items: center; gap: 6px; }
  .kw-login .table_form_item {
    font-size: 13.5px; font-weight: bold; color: #7c4a60; margin: 0; padding: 0; background: none; display: inline;
  }
  .kw-login .form_mark {
    display: inline-block; font-size: 10px; font-weight: 700; line-height: 1;
    padding: 3px 6px; border-radius: 999px; background: #fce0eb; color: #d63b6e; border: 0; margin: 0;
  }
  .kw-login .input_text {
    width: 100% !important; height: auto; padding: 13px 14px; font-size: 16px; color: #4a3a42;
    line-height: 1.4; /* 現行の line-height:40px を打ち消す(入力欄が縦に伸びる) */
    background: #fff; border: 1.5px solid #f3cfe0; border-radius: 14px;
    outline: none; -webkit-appearance: none; appearance: none;
  }
  .kw-login .input_text:focus { border-color: #ec6e9a; box-shadow: 0 0 0 4px rgba(236,110,154,.15); }
  .kw-login .kw-pw { position: relative; }
  .kw-login .kw-pw .input_text { padding-right: 48px; }
  .kw-login .btn_box { margin: 0; text-align: center; }
  .kw-login .btn_submit {
    position: relative; overflow: hidden; display: block; width: 100% !important; max-width: 340px;
    margin: 20px auto 0; padding: 15px 12px; border-radius: 999px; border: 0; cursor: pointer;
    color: #fff; font-size: 17px; font-weight: bold; letter-spacing: .04em; font-family: inherit;
    background: none;
    background-image: linear-gradient(135deg, #f783ac, #ec6e9a, #b06ab3);
    box-shadow: 0 6px 16px rgba(236,110,154,.4);
  }
  .kw-login .btn_submit::after { display: none; } /* 現行の矢印(❯)は使わない */
  .kw-login .btn_submit::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 42px;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); left: -60px; animation: kwShine 3.5s ease-in-out infinite;
  }
  /* 自動ログインのトグルスイッチ(既存checkboxをそのまま装飾) */
  .kw-login .kw-auto label {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    font-size: 13.5px; color: #6f5c66; -webkit-tap-highlight-color: transparent; cursor: pointer;
  }
  .kw-login .kw-auto input[type=checkbox] {
    appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px;
    background: #e9dbe3; position: relative; transition: background .2s;
    margin: 0; border: 0; outline: none; flex: 0 0 auto; cursor: pointer;
  }
  .kw-login .kw-auto input[type=checkbox]::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s;
  }
  .kw-login .kw-auto input[type=checkbox]:checked { background: linear-gradient(135deg, #f783ac, #ec6e9a); }
  .kw-login .kw-auto input[type=checkbox]:checked::after { transform: translateX(20px); }
  /* DOM順はPC準拠(ボタン→チェック)のまま、SPだけ「トグル→ボタン」に並べ替える */
  .kw-login form[name=form1] { display: flex; flex-direction: column; }
  .kw-login form[name=form1] > * { order: 3; }
  .kw-login form[name=form1] > .page_text { order: 0; }
  .kw-login form[name=form1] > .table_form { order: 1; }
  .kw-login form[name=form1] > .kw-auto { order: 2; }

  /* SP専用のリンク3種(パスワード忘れ/会員登録=枠に格上げ/企業ログイン=小さく分離) */
  .kw-forgot {
    display: block; width: fit-content; margin: 16px auto 0; padding-bottom: 2px;
    font-size: 13px; color: #a1889a; text-decoration: none; border-bottom: 1px solid #e3d2dc;
  }
  .kw-register-nav {
    margin: 22px 0 0; padding: 16px; border-radius: 18px; text-align: center;
    background: linear-gradient(160deg, #fff2f7, #fdeaf3); border: 1.5px dashed #f6b8d2;
  }
  .kw-register-nav > p { margin: 0; font-size: 13.5px; font-weight: 700; color: #b0447a; }
  .kw-register-nav .kw-cta { margin-top: 10px; box-shadow: 0 4px 12px rgba(236,110,154,.2); }
  .kw-cta-outline { background: #fff !important; background-image: none !important; color: #ec6e9a; border: 2px solid #ec6e9a; }
  .kw-cta-outline .kw-cta-main { color: #ec6e9a; }
  .kw-cta-outline .kw-cta-sub { color: #d63b6e; opacity: 1; }
  .kw-cta-outline::before { display: none; }
  .kw-biz-link {
    display: block; width: fit-content; margin: 20px auto 0; font-size: 12px;
    color: #b59aa6; text-decoration: none; border-bottom: 1px solid #e3d2dc; padding-bottom: 2px;
  }

  /* ====== マイページ(文字入りヒーロー+すりガラスセリフ+右下ナビ子) ====== */
  .kw-mypage-bg { background: #fff7fa; }
  /* ページ全体の下地(#wrapperに付ける)。ヒーロー・メニュー周りまで淡ピンクで連続させる */
  .kw-mypage-wrap { background: #fff7fa; }
  .kw-mhero { position: relative; overflow: hidden; border-radius: 0 0 22px 22px; background: #1d1638; }
  .kw-mhero-img { display: block; width: 100%; height: auto; }
  /* すりガラスのピル(z3=ナビ子(z2)より前。帽子がガラス越しに透けてセリフが隠れない) */
  .kw-glass {
    position: absolute; top: 10px; right: 10px; z-index: 3; max-width: 82%;
    display: flex; align-items: center; padding: 8px 15px;
    border-radius: 999px; background: rgba(40, 25, 70, .38);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  }
  .kw-glass-text {
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 13px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  }
  /* ナビ子189px・右下はみ出し(枠overflow:hiddenで切る)・揺れ2px(かろうじて分かる程度) */
  .kw-mnaviko {
    position: absolute; right: -28px; bottom: -14px; z-index: 2;
    width: 189px; height: 189px; object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
    animation: kwBob2 3s ease-in-out infinite; transform-origin: center bottom;
  }

  /* アイコン付きメニュー3枚 */
  .kw-menu { display: flex; gap: 8px; margin: 14px 14px 0; padding: 0; list-style: none; }
  .kw-menu li { flex: 1; display: flex; }
  .kw-menu a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 4px 10px; border-radius: 16px; text-decoration: none;
    background: #fff; color: #7c4a60; box-shadow: 0 2px 8px rgba(176,106,179,.12);
    border: 1.5px solid transparent;
  }
  .kw-menu a.on { border-color: #ec6e9a; color: #d63b6e; box-shadow: 0 4px 12px rgba(236,110,154,.25); }
  .kw-menu-icon { font-size: 22px; line-height: 1; }
  .kw-menu-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; }

  /* 旧サイドメニュー(5リンク・退会がログアウトの隣)はSPでは出さない。
     かわりに kw-menu(3枚)+下部ログアウト+退会は編集ページ最下部(案①)。PCは従来どおり */
  .kw-mypage-bg #side { display: none; }

  /* セクション見出し(応募の管理)をYomogiに。副見出し(応募)は出さない */
  .kw-mypage-bg .page_head01.mypage_head {
    margin: 22px 16px 0; padding: 0; border: 0; background: none;
    font-size: 19px; font-weight: 400; color: #b0447a; text-align: left;
    font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  }
  .kw-mypage-bg .page_subhead02 { display: none; }
  .kw-mypage-bg .section_type01 { border: 0; padding: 0 0 10px; }

  /* 応募カードの着せ替え(DOMは現行の .sp_oubo_list のまま) */
  .kw-mypage-bg .sp_oubo_list .oubo_item {
    background: #fff; border-radius: 18px; padding: 14px 16px; margin: 12px 14px 0;
    box-shadow: 0 4px 16px rgba(176,106,179,.12); border: 0;
  }
  .kw-mypage-bg .sp_oubo_list .oubo_item p span { color: #a1889a; font-size: 11.5px; }

  /* 応募0件の空状態 */
  .kw-empty {
    margin: 10px 14px 0; padding: 24px 16px 22px; background: #fff; border-radius: 18px;
    text-align: center; box-shadow: 0 4px 16px rgba(176,106,179,.12);
  }
  .kw-empty-main { margin: 0; font-size: 16px; font-weight: 700; color: #7c4a60; }
  .kw-empty-main b { color: #d63b6e; font-size: 19px; }
  .kw-empty-sub { margin: 4px 0 0; font-size: 13.5px; color: #6f5c66; }
  .kw-empty .kw-cta { margin-top: 16px; }

  /* 下部の控えめリンク(ログアウト・退会手続きへの導線) */
  .kw-sub-center { margin: 24px 0 30px; display: flex; justify-content: center; gap: 26px; }
  .kw-sub-center a {
    font-size: 12.5px; color: #a1889a; text-decoration: none;
    border-bottom: 1px solid #e3d2dc; padding-bottom: 2px;
  }
}

/* 🔴「視差効果を減らす」(prefers-reduced-motion)への対応は**意図的に行わない**
   (2026-08-06 澤口さん指示: 小さな動きなのでこのUIでは常に動かす)。
   粒子(ParticleBand)側のJS判定も同時に撤去済み。再導入するときは
   kwBob/kwBob2/kwShine/kwTwinkle/kwFall/kwPerkPop/kwTitleIn を止めるブロックをここに戻す。 */
