/* WaraWing visual system. Loaded after legacy styles; no auth or data changes. */
:root {
  --yellow: #ffc600;
  --yellow-soft: #fff2bb;
  --black: #171713;
  --text: #22221c;
  --muted: #68675e;
  --line: #dcd8cb;
  --bg: #f5efe3;
  --card: #fffdf8;
  --ww-ink: #171713;
  --ww-paper: #fffaf0;
  --ww-heading: 'Dela Gothic One', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
}
html, body { background: var(--bg); color: var(--text); font-family: 'Noto Sans JP', system-ui, sans-serif; }
body { line-height: 1.75; }
.phone { background: var(--ww-paper) !important; border-color: var(--line) !important; }
.phone .header { background: var(--ww-paper) !important; border-bottom: 2px solid var(--ww-ink) !important; height: 76px; gap: 12px; }
.header > b { font-weight: 900; letter-spacing: .02em; line-height: 1.5; }
.header .logo, .footer-logo { display: block; width: 190px; height: 66px; overflow: hidden; position: relative; flex-shrink: 0; text-decoration: none; }
.ww-brand-image { display: block; position: absolute; width: 106%; max-width: none; height: auto; top: -41px; left: 0; mix-blend-mode: multiply; }
.phone h1, .phone h2 { font-family: var(--ww-heading); font-weight: 900; letter-spacing: .015em; line-height: 1.55; }
.phone h3, .phone h4 { font-weight: 900; color: var(--ww-ink); line-height: 1.6; }
.phone p { text-wrap: pretty; }
.phone .form { max-width: 820px; margin-inline: auto; padding: 30px 24px; }
.phone .form h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 6px 0 22px; }
.phone .form > .sub, .phone .form > p { line-height: 1.85; }
.phone :is(.meta, .sub, .light-text, .help-text) { color: var(--muted); }
.phone .meta { font-size: 14px; line-height: 1.8; }
.phone .form label { font-size: 15px; line-height: 1.6; }
.phone :is(button, a[role=button]) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.phone :is(.full, .cta, button.primary, .btn-primary) {
  border: 2px solid var(--ww-ink) !important;
  border-radius: 5px !important;
  background: var(--yellow) !important;
  color: var(--ww-ink) !important;
  font-size: 16px; font-weight: 900;
  box-shadow: 3px 3px 0 var(--ww-ink) !important;
  min-height: 50px; padding: 13px 18px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.phone :is(.light, .btn-secondary) {
  border: 1px solid #8b887e !important; border-radius: 5px !important;
  background: #fffdf8 !important; color: var(--ww-ink) !important;
  min-height: 48px; font-size: 15px; box-shadow: none;
}
@media (hover:hover) {
  .phone :is(.full, .cta, button.primary, .btn-primary):not(:disabled):hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ww-ink) !important; }
  .phone .light:not(:disabled):hover { background: var(--yellow-soft) !important; }
}
.phone button:disabled { opacity: .55; cursor: not-allowed; }
.phone :is(button, a, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid #146a89 !important; outline-offset: 4px; }
.phone :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), textarea, select) {
  background: #fffdf8 !important; border: 1px solid #928e80 !important;
  border-radius: 5px !important; color: var(--ww-ink); font-size: 16px !important;
  min-height: 48px; line-height: 1.6;
}
.phone :is(input[type=checkbox], input[type=radio]) { accent-color: var(--ww-ink); }
.phone :is(.card, .wb-profile-details, .wb-achievement-slot, .sns-owner-group, .settings-item, .profile-card, .wb-subtitle-cue) {
  background: var(--card); border-color: var(--line); border-radius: 7px; box-shadow: none;
}
.phone :is(.member-heading, .onboarding-member-heading) { background: var(--yellow-soft); border-left: 4px solid var(--ww-ink); border-radius: 3px; }
.phone :is(.tag, .chip, .trait-tag, .onboarding-option) { border-radius: 5px; }
.phone :is(.tag.selected, .chip.selected, .tag.active, .onboarding-option.selected, .tag.yellow) { background: var(--yellow-soft) !important; color: var(--ww-ink) !important; border-color: var(--ww-ink) !important; }
.phone .progress i { border-radius: 0; background: #ddd8c9; }
.phone .progress i.on { background: var(--ww-ink); }
.phone :is(.onboarding-error, [role=alert], .required-label) { color: #a12e20; }
.phone .icon { border-radius: 4px; min-width: 44px; min-height: 44px; }
#top .header { max-width: none; }
#top .hero-carousel.unified-hero { border-bottom: 2px solid var(--ww-ink); background: var(--ww-paper) !important; }
#top .hero-carousel.unified-hero .hero-slide {
  padding: 32px 28px 44px !important; min-height: 0 !important;
  background: var(--ww-paper) !important; color: var(--ww-ink) !important;
}
#top .hero-copy { max-width: 740px !important; }
#top .hero-carousel.unified-hero .hero-slide::before, #top .hero-carousel.unified-hero .hero-slide::after { content: none !important; background: none !important; }
#top .hero-carousel.unified-hero .hero-slide .hero-entry-title { color: var(--ww-ink) !important; text-shadow: none !important; }
#top .header .icon { color: var(--ww-ink) !important; }
#top .hero-carousel.unified-hero .hero-analysis-main { clip-path: none !important; filter: none !important; }
#top .hero-entry-title { font-family: var(--ww-heading) !important; font-size: clamp(28px,4vw,45px) !important; line-height: 1.55 !important; letter-spacing: .02em !important; }
#top .hero-entry-sub { font-size: 16px !important; color: #514f45 !important; }
#top .hero-analysis-cta { margin-top: 24px !important; }
#top .hero-analysis-main { border-radius: 5px !important; }
#top .hero-analysis-main .cta-free-note { font-size: 13px !important; }
#top .top-login-link { margin-block: 22px 10px; }
#top .hero-analysis-privacy { color: #5d594b !important; font-size: 14px !important; }
#top .section { padding: 34px 28px !important; }
#top :is(.benefit-section, .sample-section, .profile-showcase-section) { background: var(--ww-paper) !important; color: var(--ww-ink) !important; }
#top :is(.benefit-section, .sample-section, .profile-showcase-section)::before,
#top :is(.benefit-section, .sample-section, .profile-showcase-section)::after { content: none !important; }
#top .section + .section { border-top: 1px solid var(--line); }
#top :is(.warabox-choices, .profile-showcase-card) { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
#top .section h2 { font-family: var(--ww-heading) !important; font-size: clamp(21px, 3vw, 29px) !important; color: var(--ww-ink) !important; padding-bottom: 14px; border-bottom: 3px solid var(--ww-ink); }
#top .warabox-benefit-list article { background: #fffdf8 !important; border: 1px solid var(--line) !important; border-left: 5px solid var(--yellow) !important; border-radius: 5px !important; padding: 18px !important; margin: 12px 0 !important; }
#top .benefit-marker, .share-marker { color: var(--ww-ink) !important; background: linear-gradient(transparent 62%,var(--yellow) 62%) !important; }
#top .profile-showcase-lead { color: var(--muted) !important; font-size: 16px !important; }
.phone :is(.wps-language, .public-language, .language-switcher) { border-radius: 5px; background: var(--yellow-soft); }
.wps-language-buttons label { border-radius: 4px !important; border-color: #a09a88 !important; min-height: 40px; font-size: 14px !important; }
#sampleLangJa:checked ~ .wps-language-v2 label[for=sampleLangJa],
#sampleLangEn:checked ~ .wps-language-v2 label[for=sampleLangEn],
#sampleLangKo:checked ~ .wps-language-v2 label[for=sampleLangKo],
#sampleLangZh:checked ~ .wps-language-v2 label[for=sampleLangZh],
#sampleLangFr:checked ~ .wps-language-v2 label[for=sampleLangFr] { background: var(--ww-ink) !important; color: #fffdf8 !important; border-color: var(--ww-ink) !important; }
.phone :is(.wps-section-v2, .public-section) { border-color: var(--line) !important; }
.phone :is(.wps-section-v2 h4, .public-section h3) { border-left-color: var(--yellow) !important; }
.phone :is(.wps-hero, .public-hero) { background: var(--card); }
.phone :is(.casting, .ai-discovery-block, .wps-usecase-details) { border-radius: 7px; }
#onboardingResult :is(.casting, .ai-discovery-block) { background: #f1eddf !important; }
#onboardingResult article { border-color: var(--line) !important; border-radius: 5px !important; background: #fffdf8 !important; }
#profile1 :is(.wb-profile-input-card, .wb-profile-details, #wbProfileWorksSection) { background: #f2eee3 !important; border-color: var(--line) !important; border-radius: 6px !important; }
#mypage :is(.home-section-title, h2) { color: var(--ww-ink); }
#mypage .upload-card { background: var(--ww-ink); border-radius: 7px; }
#mypage .upload-card .plus { background: var(--yellow); }
#menuOverlay .menu-drawer { background: var(--ww-paper) !important; border-left: 2px solid var(--ww-ink); }
#menuOverlay .menu-list > button { border-radius: 5px !important; font-size: 15px !important; }
.wb-dialog { background: var(--ww-paper); border: 2px solid var(--ww-ink); border-radius: 7px; }
.site-footer { background: var(--ww-ink) !important; color: #fffaf0 !important; }
.site-footer .footer-logo { background: var(--ww-paper); border-radius: 4px; margin-bottom: 20px; width: 220px; height: 78px; }
.site-footer .footer-logo .ww-brand-image { top: -48px; }
.site-footer :is(p, a, .footer-copy) { color: #e6dfcc !important; }
.top-sticky-cta { background: var(--ww-paper) !important; border-top: 1px solid var(--line); }
.top-sticky-cta > a { background: var(--yellow) !important; color: var(--ww-ink) !important; border: 2px solid var(--ww-ink) !important; border-radius: 5px !important; }
#top .top-sticky-cta { display: none !important; }
#top .hero-carousel.unified-hero .hero-analysis-main { border-radius: 5px !important; box-shadow: 3px 3px 0 var(--ww-ink) !important; }
#top .top-login-link .top-login-button { border: 1px solid var(--ww-ink) !important; border-radius: 5px !important; background: #fffdf8 !important; color: var(--ww-ink) !important; box-shadow: none !important; }
#profile1 .wb-wizard-step:not([data-profile-step="9"]) > h2,
#profile1 .wb-wizard-step:not([data-profile-step="9"]) label { color: var(--ww-ink) !important; }
#profile1 :is(.profile-sns-row, .wb-achievement-slot, .profile-member-trait),
#profileMemberTraitsEditor .wb-profile-trait-row,
#profileEditMenu #wbProfileEditOptions > button { background: #fffdf8 !important; border-color: var(--line) !important; border-radius: 5px !important; }
#profileMemberTraitsEditor .wb-profile-trait-tags button.selected,
#profile1 .profile-job-choice.selected { background: var(--yellow-soft) !important; border-color: var(--ww-ink) !important; color: var(--ww-ink) !important; }
#profile1 .wb-wizard-step:not([data-profile-step="9"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), textarea, select) { border-color: #928e80 !important; border-radius: 5px !important; }
#top .wps-ai-block > h4::after,
#top .wps-profile-insight.wps-ai-block > h4::after,
#top #sampleIdeas .wps-casting-scenes > h4::after { content: 'ワラボックスで発見' !important; background: var(--yellow-soft) !important; border-color: #d6c277 !important; color: var(--ww-ink) !important; border-radius: 3px !important; font-size: 12px !important; white-space: normal; }
.wps-service-explainer-v2::before { content: 'ワラボックスの機能' !important; }

/* Home utilities and benefits: readable type, breathing room, one accent. */
#top .top-login-link.top-login-link-priority {
  margin: 26px 24px 14px !important;
  gap: 12px;
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.8;
}
#top .top-login-link.top-login-link-priority .top-login-button {
  font-family: inherit !important; font-size: 15px !important;
  font-weight: 700 !important; padding: 9px 20px; min-height: 44px;
}
#top .hero-analysis-privacy-wrap { margin: 0 24px 28px !important; }
#top .hero-analysis-privacy-wrap .hero-analysis-privacy {
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif !important;
  font-size: 14px !important; font-weight: 400 !important;
  line-height: 1.8; text-decoration-thickness: 1px;
  text-underline-offset: 5px; color: #5d594b !important;
}
#top .section.benefit-section .card.warabox-choices {
  border: 0 !important; padding: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
#top .section.benefit-section .card.warabox-choices > h2 {
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif !important;
  font-size: clamp(22px, 3vw, 28px) !important;
  font-weight: 800 !important; line-height: 1.6 !important;
  letter-spacing: .025em !important;
  margin: 0 0 24px !important; padding: 0 !important;
  border: 0 !important; background: none !important;
  box-shadow: none !important; text-decoration: none !important;
}
#top .section.benefit-section .card.warabox-choices > h2::before,
#top .section.benefit-section .card.warabox-choices > h2::after { content: none !important; }
#top .warabox-benefit-list { gap: 14px; margin: 0 !important; }
#top .warabox-benefit-list article:not(.world-benefit),
#top .warabox-benefit-list article.world-benefit {
  margin: 0 !important; padding: 20px 18px !important;
  border: 1px solid var(--line) !important;
  border-left: 4px solid var(--yellow) !important;
  border-radius: 5px !important; background: #fffdf8 !important;
}
#top .warabox-benefit-list article:not(.world-benefit) b,
#top .warabox-benefit-list article.world-benefit b {
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif !important;
  font-size: 16px !important; font-weight: 700 !important;
  line-height: 1.8 !important; border: 0 !important; padding: 0 !important;
}
#top .warabox-benefit-list .benefit-marker {
  background: none !important; text-decoration: none !important;
  box-shadow: none !important; border: 0 !important;
}
#top .warabox-benefit-list .benefit-marker::before,
#top .warabox-benefit-list .benefit-marker::after { content: none !important; }
@media (min-width: 760px) {
  body { padding: 24px 0 48px; }
  .phone { box-shadow: 0 10px 40px #2623130a !important; border: 1px solid var(--line); }
  #top .hero-carousel.unified-hero .hero-slide { padding-block: 44px 50px !important; }
  #top .section { padding: 40px 48px !important; }
}
@media (max-width: 600px) {
  .phone .header { height: 68px; padding-inline: 14px; gap: 7px; }
  .header .logo { width: 155px; height: 56px; }
  .header .logo .ww-brand-image { top: -33px; }
  .header > b { font-size: 15px; }
  .phone .form { padding: 24px 20px; }
  #top .hero-carousel.unified-hero .hero-slide { padding: 24px 20px 34px !important; }
  #top .section { padding: 28px 20px !important; }
  #top .warabox-benefit-list .world-benefit b { white-space: normal !important; font-size: 15px !important; }
  .phone :is(.full, .cta) { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { .phone *, .phone *::before, .phone *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Approved typography: Dela's actual 400 weight, without artificial bold. */
.phone :is(h1,h2),
#top .hero-carousel.unified-hero .hero-slide .hero-entry-title,
#top .section h2,
#top .section.benefit-section .card.warabox-choices > h2,
#top .section.sample-section .card.profile-showcase-card h2 {
  font-family: var(--ww-heading) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  letter-spacing: -.025em !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
}
.phone :is(h3,h4) {
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif !important;
  font-weight: 800 !important; line-height: 1.65;
}
.phone :is(button,input,textarea,select,label,.meta,.sub) {
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif !important;
  letter-spacing: .015em;
}
.phone :is(.full,.light,button.primary,.top-login-button) { font-weight: 700 !important; }
.phone .header > b { font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif; font-weight: 700; }
.phone .form > p, .phone .form > .sub { font-size: 16px; line-height: 1.85; }
.phone .form label { font-size: 15px; font-weight: 700; }
#top .profile-showcase-section .profile-showcase-intro > h2::after { background: var(--yellow) !important; }
@media(max-width:600px) {
  #top .section h2,
  #top .section.benefit-section .card.warabox-choices > h2 { font-size: 22px !important; }
  .phone .form h2 { font-size: 23px !important; }
}

/* Supporting copy and controls share one calm, readable type system. */
:root { --ww-ui-font: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif; }
.phone :is(button, a[role=button], input, textarea, select, label),
#top .hero-carousel.unified-hero .hero-slide .hero-entry-sub {
  font-family: var(--ww-ui-font) !important;
  font-synthesis: none;
}
.phone :is(.full,.light,button.primary,.cta,.top-login-button) {
  font-family: var(--ww-ui-font) !important;
  font-weight: 700 !important;
  letter-spacing: .045em !important;
  line-height: 1.6 !important;
}
#top .hero-carousel.unified-hero .hero-slide .hero-entry-sub {
  font-size: 17px !important; font-weight: 500 !important;
  letter-spacing: .04em !important; line-height: 1.85 !important;
  margin-top: 18px !important;
}
#top .hero-carousel.unified-hero .hero-analysis-cta { margin-top: 28px !important; }
#top .hero-carousel.unified-hero .hero-analysis-main {
  padding: 17px 22px !important; gap: 6px !important;
  line-height: 1.6 !important;
}
#top .hero-carousel.unified-hero .hero-analysis-main > span {
  font-family: var(--ww-ui-font) !important;
  font-size: 17px !important; font-weight: 700 !important;
  letter-spacing: .045em !important; line-height: 1.6 !important;
}
#top .hero-carousel.unified-hero .hero-analysis-main .cta-free-note {
  font-family: var(--ww-ui-font) !important;
  font-size: 14px !important; font-weight: 500 !important;
  letter-spacing: .04em !important; line-height: 1.6 !important;
}

/* Gentle square Gothic complements the retro headings; profile copy stays Noto. */
#top .top-login-link.top-login-link-priority,
#top .top-login-link.top-login-link-priority .top-login-button,
#top .hero-analysis-privacy-wrap .hero-analysis-privacy,
#top .warabox-benefit-list article:not(.world-benefit) b,
#top .warabox-benefit-list article.world-benefit b,
#top .warabox-benefit-list article p,
#top .profile-showcase-intro .profile-showcase-lead,
.phone .form > p,
.phone .form > .sub,
.phone .form label,
.phone .header > b {
  font-family: var(--ww-ui-font) !important;
  letter-spacing: .04em !important;
}
#top .hero-analysis-privacy-wrap .hero-analysis-privacy { font-weight: 500 !important; }

/* Approved: the short hero copy and primary invitation share the display face. */
#top .hero-carousel.unified-hero .hero-slide .hero-entry-sub,
#top .hero-carousel.unified-hero .hero-analysis-main > span {
  font-family: var(--ww-heading) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  letter-spacing: -.015em !important;
  line-height: 1.8 !important;
}
#top .hero-carousel.unified-hero .hero-slide .hero-entry-sub {
  font-size: 16px !important;
  text-wrap: balance;
}
#top .hero-carousel.unified-hero .hero-analysis-main > span {
  font-size: 18px !important;
  text-wrap: balance;
}

/* Compact secondary navigation, separate from the primary invitation. */
#top .top-login-link.top-login-link-priority {
  margin: 16px 24px 0 !important;
  gap: 10px 14px !important;
  font-family: var(--ww-ui-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  line-height: 1.7 !important;
}
#top .top-login-link.top-login-link-priority > span {
  font: inherit !important;
  text-wrap: balance;
}
#top .top-login-link.top-login-link-priority .top-login-button {
  min-height: 44px !important;
  padding: 9px 22px !important;
  font-family: var(--ww-ui-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .035em !important;
  line-height: 1.5 !important;
}
#top .hero-analysis-privacy-wrap {
  margin: 4px 24px 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.6 !important;
}
#top .hero-analysis-privacy-wrap .hero-analysis-privacy {
  display: inline-block;
  padding: 6px 8px !important;
  min-height: 36px;
  font-family: var(--ww-ui-font) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: .025em !important;
  line-height: 1.7 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
#top .section.benefit-section { padding-top: 14px !important; }
@media(max-width:360px) {
  #top .top-login-link.top-login-link-priority { flex-direction: column; gap: 10px !important; }
}

/* Keep the primary invitation compact and close to the login alternative. */
#top .hero-carousel.unified-hero {
  border-bottom: 0 !important;
}
#top .hero-carousel.unified-hero .hero-slide {
  padding-bottom: 12px !important;
}
#top .hero-carousel.unified-hero .hero-analysis-main {
  padding: 9px 18px !important;
  min-height: 0 !important;
  gap: 3px !important;
}
#top .hero-carousel.unified-hero .hero-analysis-main > span {
  font-size: 17px !important;
  line-height: 1.45 !important;
}
#top .hero-carousel.unified-hero .hero-analysis-main .cta-free-note {
  font-size: 13px !important;
  line-height: 1.5 !important;
  padding: 0 !important;
}
#top .top-login-link.top-login-link-priority {
  margin-top: 6px !important;
}
