/* whatEVer. Creative Works / Single case template v1.2 */
/*
 * SWELL's standard content container can add top/bottom space around custom
 * post types. Keep the site's own header/footer, but let the case content
 * connect to them without an empty dark wrapper.
 */
body.single-wev_case {
  background: #fff;
  overflow-x: clip;
}
body.single-wev_case #content,
body.single-wev_case .l-content,
body.single-wev_case .l-mainContent,
body.single-wev_case .l-mainContent__inner {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.single-wev_case .l-mainContent { margin-left: 0 !important; margin-right: 0 !important; }
.wev-case-detail {
  --wc-navy: #111b32;
  --wc-mint: #a6efdb;
  --wc-blue: #5e6ef0;
  --wc-muted: #7d899c;
  position: relative;
  /* Break out of SWELL's centered content wrapper to the actual viewport. */
  width: 100vw;
  min-width: 100vw;
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  flex-shrink: 0;
  overflow: clip;
  color: var(--wc-navy);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wev-case-detail *, .wev-case-detail *::before, .wev-case-detail *::after { box-sizing: border-box; }
.wev-case-detail :is(h1,h2,h3,p,figure) { margin: 0; padding: 0; line-height: inherit; }
.wev-case-detail :is(h1,h2,h3) { font-family: inherit; font-weight: 820; color: inherit; }
.wev-case-detail a { color: inherit; text-decoration: none; }
.wev-case-detail a:focus-visible { outline: 3px solid #8494ff; outline-offset: 4px; }
.wev-case-detail .wev-case-container { width: min(100% - 72px, 1180px); margin-inline: auto; }
.wev-case-detail .wev-case-hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 70px; color: #fff; background: radial-gradient(circle at 95% -10%,rgba(100,113,221,.38),transparent 44%),linear-gradient(135deg,#101a30,#152747); }
.wev-case-detail .wev-case-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.2) 1px, transparent 1px); background-size: 65px 65px; }
.wev-case-detail .wev-case-back { display: inline-flex; padding: 7px 0; color: #a7b8d4; font-size: 12px; font-weight: 650; }
.wev-case-detail .wev-case-back:hover { color: var(--wc-mint); }
.wev-case-detail .wev-case-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wev-case-detail .wev-case-badges > span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 100px; color: #becce3; font-size: 10px; font-weight: 750; }
.wev-case-detail .wev-case-badges .wev-case-status { border-color: rgba(165,239,220,.45); color: var(--wc-mint); }
.wev-case-detail .wev-case-hero h1 { display: block !important; visibility: visible !important; opacity: 1 !important; max-width: 1000px; margin-top: 18px; color: #fff; font-size: clamp(38px,5.5vw,76px); line-height: 1.3; letter-spacing: -.065em; overflow-wrap: anywhere; }
.wev-case-detail .wev-case-summary { max-width: 790px; margin-top: 19px; color: #b4c3d9; font-size: clamp(13px,1.3vw,16px); line-height: 2.1; }
.wev-case-detail .wev-case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wev-case-detail .wev-case-btn { display: inline-flex; align-items: center; justify-content: space-between; min-width: 210px; min-height: 53px; padding: 0 19px 0 23px; border-radius: 11px; gap: 25px; font-size: 12px; font-weight: 800; transition: transform .2s,background-color .2s; }
.wev-case-detail .wev-case-btn:hover { transform: translateY(-2px); }
.wev-case-detail .wev-case-btn span { font-size: 18px; font-weight: 400; }
.wev-case-detail .wev-case-btn-primary { background: var(--wc-mint); color: #173044; }
.wev-case-detail .wev-case-btn-primary:hover { background: #c3ffe9; color: #173044; }
.wev-case-detail .wev-case-btn-subtle { border: 1px solid #51627e; background: rgba(255,255,255,.07); color: #fff; }
.wev-case-detail .wev-case-btn-subtle:hover { background: rgba(255,255,255,.12); color: #fff; }
.wev-case-detail .wev-case-meta { display: flex; flex-wrap: wrap; gap: 27px; margin-top: 28px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); }
.wev-case-detail .wev-case-meta > div { display: grid; gap: 2px; }
.wev-case-detail .wev-case-meta small { font-size: 9px; color: #8096b4; font-weight: 800; letter-spacing: .15em; }
.wev-case-detail .wev-case-meta strong { font-size: 12px; color: #c5d2e5; font-weight: 650; }
.wev-case-detail .wev-case-overview { background: #f4f6fb; padding-bottom: 80px; }
.wev-case-detail .wev-case-visual { position: relative; top: -43px; margin-bottom: -43px; border: 9px solid #fff; border-radius: 18px; min-height: 400px; aspect-ratio: 1.95; overflow: hidden; background: #dbe2ef; box-shadow: 0 19px 60px rgba(25,44,89,.13); }
.wev-case-detail .wev-case-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wev-case-detail .wev-case-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; height: 100%; min-height: 400px; text-align: center; padding: 25px; background: radial-gradient(circle at 75% 20%,#5b6fab,transparent 47%),linear-gradient(120deg,#17263f,#2e467b); color: #fff; }
.wev-case-detail .wev-case-placeholder > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; background: rgba(255,255,255,.13); color: var(--wc-mint); font-size: 29px; font-weight: 900; }
.wev-case-detail .wev-case-placeholder strong { font-size: clamp(24px,3vw,46px); letter-spacing: -.04em; }
.wev-case-detail .wev-case-placeholder small { color: #92a4c7; letter-spacing: .17em; font-size: 9px; }
.wev-case-detail .wev-case-problem, .wev-case-detail .wev-case-features { padding: 78px 0 82px; }
.wev-case-detail .wev-case-body-section { position: relative; padding: 70px 0 76px; background: linear-gradient(135deg,#fff 0%,#fbfcff 54%,#f0f4fb 100%); }
.wev-case-detail .wev-case-body-section::before { content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none; background-image: linear-gradient(#c3cee1 1px,transparent 1px),linear-gradient(90deg,#c3cee1 1px,transparent 1px); background-size: 65px 65px; }
.wev-case-detail .wev-case-body-section > .wev-case-container { position: relative; }
.wev-case-detail .wev-case-section-caption { color: #6171ed; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.wev-case-detail :is(.wev-case-problem,.wev-case-features,.wev-case-body-section) h2 { margin-top: 11px; font-size: clamp(28px,3.5vw,45px); letter-spacing: -.055em; line-height: 1.4; }
.wev-case-detail .wev-case-problem-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 31px; }
.wev-case-detail .wev-case-problem-grid article { min-height: 220px; padding: 31px; border: 1px solid #e1e6f0; border-radius: 15px; background: #f5f7fa; }
.wev-case-detail .wev-case-problem-grid article.wev-case-solution { border-color: #d7eae4; background: #edf9f4; }
.wev-case-detail .wev-case-step { color: #7e8eaa; font-weight: 800; letter-spacing: .12em; font-size: 9px; }
.wev-case-detail .wev-case-problem-grid h3 { margin-top: 18px; font-size: 23px; letter-spacing: -.045em; }
.wev-case-detail .wev-case-problem-grid p { margin-top: 10px; font-size: 13px; line-height: 2; color: #6e7d94; }
.wev-case-detail .wev-case-features { background: #f7f9fd; }
.wev-case-detail .wev-case-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.wev-case-detail .wev-case-feature { display: flex; align-items: center; gap: 19px; padding: 22px; border: 1px solid #e6ebf3; border-radius: 11px; background: #fff; }
.wev-case-detail .wev-case-feature > span { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 9px; color: #5a6de0; background: #eff1ff; font-size: 12px; font-weight: 850; }
.wev-case-detail .wev-case-feature strong { font-size: 14px; line-height: 1.7; font-weight: 750; }
.wev-case-detail .wev-case-editor-content { margin-top: 27px; max-width: 950px; font-size: 14px; line-height: 2.1; color: #62718a; }
.wev-case-detail .wev-case-editor-content > * + * { margin-top: 18px; }
.wev-case-detail .wev-case-editor-content :is(h2,h3,h4) { margin-top: 32px; color: #1f2b46; }
.wev-case-detail .wev-case-editor-content img { max-width: 100%; height: auto; border-radius: 11px; }
.wev-case-detail .wev-case-editor-content a { color: #5164db; text-decoration: underline; }
.wev-case-detail .wev-case-contact { padding: 40px 0 0; background: linear-gradient(180deg,#f0f4fb,#fff 45%); }
.wev-case-detail .wev-case-contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 54px 62px; background: #111b32; color: #fff; border-radius: 19px; }
.wev-case-detail .wev-case-contact-panel > div > span { color: #9ab2d0; font-size: 9px; letter-spacing: .1em; font-weight: 800; }
.wev-case-detail .wev-case-contact-panel h2 { margin-top: 11px; color: #fff; font-size: clamp(25px,2.8vw,40px); line-height: 1.5; letter-spacing: -.05em; }
.wev-case-detail .wev-case-contact-panel p { margin-top: 11px; color: #a8b8d0; font-size: 12px; line-height: 1.9; }
.wev-case-detail .wev-case-contact-panel a { flex-shrink: 0; }
.wev-case-detail .wev-case-bottom-back { display: inline-block; color: #8190a9; font-size: 12px; font-weight: 700; margin-top: 26px; }
.wev-case-detail .wev-case-bottom-back:hover { color: #586be9; }

@media (max-width: 780px) {
  .wev-case-detail .wev-case-container { width: min(100% - 34px,1180px); }
  /* Header is fixed on the public site: leave the content below it, while
     the gradient background still reaches the top and both side edges. */
  .wev-case-detail .wev-case-hero { padding: calc(52px + env(safe-area-inset-top, 0px)) 0 60px; }
  .wev-case-detail .wev-case-badges { margin-top: 18px; }
  .wev-case-detail .wev-case-hero h1 { margin-top: 18px; font-size: clamp(33px,8.5vw,48px); }
  .wev-case-detail .wev-case-summary { font-size: 12px; }
  .wev-case-detail .wev-case-visual { min-height: 0; aspect-ratio: auto; top: -35px; margin-bottom: -35px; border-width: 5px; border-radius: 13px; }
  .wev-case-detail .wev-case-visual img { width: 100%; height: auto; object-fit: contain; }
  .wev-case-detail .wev-case-placeholder { min-height: 240px; }
  .wev-case-detail .wev-case-overview { padding-bottom: 45px; }
  .wev-case-detail .wev-case-problem, .wev-case-detail .wev-case-features { padding: 58px 0 64px; }
  .wev-case-detail .wev-case-body-section { padding: 54px 0 57px; }
  .wev-case-detail .wev-case-problem-grid { grid-template-columns: 1fr; }
  .wev-case-detail .wev-case-problem-grid article { min-height: 0; padding: 24px; }
  .wev-case-detail .wev-case-problem-grid h3 { font-size: 20px; }
  .wev-case-detail .wev-case-feature-grid { grid-template-columns: 1fr; }
  .wev-case-detail .wev-case-contact-panel { flex-direction: column; align-items: start; padding: 32px 24px; }
  .wev-case-detail .wev-case-contact-panel a { width: 100%; }
}
@media (max-width: 380px) {
  .wev-case-detail .wev-case-actions .wev-case-btn { width: 100%; }
  .wev-case-detail .wev-case-placeholder { aspect-ratio: 1.2; }
  .wev-case-detail .wev-case-feature { gap: 10px; padding: 14px; }
}
