/* Media Strategy LAB — September 2026. Visual layer; page content stays in WordPress. */
.msl-design-refresh {
  --msl-ink: #252525;
  --msl-wine: #800000;
  --msl-line: #dedbd8;
}
.msl-design-refresh #header-container {
  background: #fff;
  border-bottom: 1px solid #e8e5e2;
}
.msl-design-refresh #header-container-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1184px;
  padding: 22px 32px;
  margin: auto;
  gap: 32px;
}
.msl-design-refresh #header { flex: 0 1 470px; min-width: 0; }
.msl-design-refresh #header-in { width: auto; display: flex; flex-direction: column; align-items: flex-start; }
.msl-design-refresh .tagline { order: 2; margin: 6px 0 0; padding: 0; font-size: 11px; text-align: left; color: #666; letter-spacing: .015em; }
.msl-design-refresh .logo-header { margin: 0; padding: 0; line-height: 1; text-align: left; }
.msl-design-refresh .logo-header .site-name { padding: 0; display: block; }
.msl-design-refresh .header-site-logo-image { display: block; width: 310px; max-width: 100%; height: auto; object-fit: contain; image-rendering: auto; max-height: none; }
.msl-design-refresh #navi { background: transparent; flex: 0 0 auto; }
.msl-design-refresh #navi-in { width: auto; }
.msl-design-refresh #navi .menu-header { gap: 24px; flex-wrap: nowrap; }
.msl-design-refresh #navi .menu-header > li { width: auto; height: auto; }
.msl-design-refresh #navi .menu-header > li > a { padding: 14px 0; font-size: 13px; font-weight: 600; }
.msl-design-refresh #navi .current-menu-item > a { color: var(--msl-wine); box-shadow: inset 0 -2px var(--msl-wine); }
.msl-design-refresh #footer { margin-top: 0 !important; padding: 36px 24px !important; background: #fff; border-top: 1px solid var(--msl-line); }
.msl-design-refresh #footer-in { max-width: 1120px; }
.msl-design-refresh #footer .footer-site-logo-image { width: 250px !important; height: auto !important; object-fit: contain; image-rendering: auto; max-height: none; }
.msl-design-refresh #footer .logo-footer { margin: 0 !important; }
.msl-design-refresh #footer .copyright { font-size: 11px; color: #777; }
.msl-design-refresh a:focus-visible, .msl-design-refresh button:focus-visible { outline: 2px solid var(--msl-wine); outline-offset: 5px; }

/* The content refinement is limited to the main landing page. */
body.page-id-2 .main { padding-top: 0 !important; padding-bottom: 0 !important; border: 0; }
body.page-id-2 .entry-content { margin-top: 0; }
body.page-id-2.no-post-date.no-post-update .article-header .date-tags { margin-bottom: 0; }
body.page-id-2 .msl-lp-wrapper { color: var(--msl-ink) !important; letter-spacing: .015em !important; line-height: 1.9 !important; }
body.page-id-2 .msl-container { max-width: 1120px !important; padding: 0 32px !important; }
body.page-id-2 .msl-section { padding: 88px 0 !important; }
body.page-id-2 .msl-bg-light-red { background: #faf7f5 !important; }
body.page-id-2 .msl-lp-wrapper .marker-under-red { background: none !important; color: var(--msl-wine); }
body.page-id-2 .msl-lp-wrapper h2.msl-section-title {
  font-size: clamp(25px, 2.5vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-align: left !important;
  padding-bottom: 22px !important;
  margin-bottom: 42px !important;
  letter-spacing: .015em !important;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
body.page-id-2 .msl-lp-wrapper h2.msl-section-title::after { left: 0 !important; transform: none !important; width: 42px !important; height: 3px !important; }
body.page-id-2 .msl-lp-wrapper .msl-btn .wp-block-button__link {
  border-radius: 3px !important;
  box-shadow: none !important;
  padding: 19px 28px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  min-height: 60px;
}
body.page-id-2 .msl-lp-wrapper .msl-btn .wp-block-button__link::after { content: '→' !important; display: inline-block !important; position: static !important; margin-left: 24px; font-size: 21px; }
body.page-id-2 .msl-lp-wrapper .msl-btn .wp-block-button__link:hover { transform: none !important; background: #650000 !important; box-shadow: none !important; }
body.page-id-2 .msl-btn-wrap { margin-top: 32px !important; }

/* Hero: full-width fluid canvas underneath readable foreground content. */
body.page-id-2 .msl-lp-wrapper > .msl-fv:first-child {
  background: #f7f6f4 !important;
  padding: 56px 0 64px !important;
  border-bottom: 1px solid #e8e5e2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.page-id-2 .msl-fluid-background {
  position: absolute !important;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, #000, #0008 30%, #0008 70%, #000);
}
body.page-id-2 .msl-fluid-background canvas { display: block; width: 100%; height: 100%; }
body.page-id-2 .msl-fv-title { text-shadow: 0 1px 3px #fff, 0 0 12px #ffffffc0; }
body.page-id-2 .msl-fv-desc { text-shadow: 0 1px 4px #fff, 0 0 8px #fff; }
body.page-id-2 .msl-lp-wrapper > .msl-fv:first-child .msl-container {
  display: block !important;
  position: relative;
}
body.page-id-2 .msl-fv .msl-container > .wp-block-column:not(.msl-fv-content) { display: none; }
body.page-id-2 .msl-fv .msl-fv-content { max-width: 1000px; margin: 0 auto !important; text-align: center; }
body.page-id-2 .msl-fv-content { width: 100% !important; min-width: 0; }
body.page-id-2 .msl-lp-wrapper h1.msl-fv-title {
  font-size: clamp(30px, 3.1vw, 42px) !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  letter-spacing: -.035em !important;
  word-break: auto-phrase !important;
  overflow-wrap: normal !important;
  line-break: strict;
  margin-bottom: 24px !important;
}
body.page-id-2 .msl-fv-content > p:not(.msl-fv-desc) { font-size: 15px; line-height: 1.8; margin-bottom: 22px; }
body.page-id-2 .msl-title-line { display: inline; }
body.page-id-2 .msl-title-phrase { white-space: nowrap; }
body.page-id-2 .msl-fv-desc { max-width: 720px; margin-left: auto !important; margin-right: auto !important; font-size: 16px !important; line-height: 1.95 !important; margin-bottom: 0 !important; }
body.page-id-2 .msl-fv-content .msl-btn-wrap { justify-content: center !important; }
body.page-id-2 .msl-fv-content .msl-btn { margin-left: auto !important; margin-right: auto !important; }
body.page-id-2 .msl-fv figure { margin: 0 !important; }
body.page-id-2 .msl-fv img.wp-image-33 { display: block; width: 100%; border-radius: 0; border-bottom: 5px solid var(--msl-wine); }

/* Simple rules replace repeated outlined boxes. */
body.page-id-2 .msl-issues-flex, body.page-id-2 .msl-solutions-flex { gap: 56px !important; }
body.page-id-2 .msl-issues-list li {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--msl-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 22px 0 22px 30px !important;
  margin: 0 !important;
  font-size: 17px;
  line-height: 1.8 !important;
}
body.page-id-2 .msl-issues-list li:last-child { border-bottom: 1px solid var(--msl-line) !important; }
body.page-id-2 .msl-issues-list li::before { left: 0 !important; font-size: 16px !important; }
body.page-id-2 .msl-issues-image img, body.page-id-2 .msl-solutions-image img { border-radius: 0; }
body.page-id-2 .msl-text-lead { font-size: 20px !important; line-height: 1.8; }

/* Results retain the dark section, but use a lighter visual structure. */
body.page-id-2 .msl-results { background: #282626 !important; }
body.page-id-2 .msl-results > h2.msl-section-title { width: calc(100% - 64px); max-width: 1056px; }
body.page-id-2 .msl-results-grid { gap: 0 !important; border-top: 1px solid #575050; }
/* 実績見出し・罫線・グラフ・プロフィールの外枠を同じ幅に揃える。 */
body.page-id-2 .msl-results > .msl-results-grid,
body.page-id-2 .msl-results > figure.wp-block-image,
body.page-id-2 .msl-results > .msl-results-note,
body.page-id-2 .msl-results > .profile-block-box {
  box-sizing: border-box;
  width: calc(100% - 64px) !important;
  max-width: 1056px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-2 .msl-results > figure.wp-block-image img { display: block; width: 100%; height: auto; }
body.page-id-2 .msl-results .profile-block-box .author-box { box-sizing: border-box; width: 100%; max-width: none; margin: 0 !important; }
body.page-id-2 .msl-result-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid #575050 !important; border-radius: 0 !important; padding: 38px 28px !important; text-align: left !important; }
body.page-id-2 .msl-result-card:hover { transform: none !important; background: #322e2e !important; }
body.page-id-2 .msl-result-number { font-size: 44px !important; line-height: 1.25 !important; min-height: 65px; letter-spacing: -.025em; }
body.page-id-2 .msl-result-number span { font-size: 22px !important; }
body.page-id-2 .msl-result-desc { line-height: 1.9 !important; }
body.page-id-2 .author-box { border: 0; border-top: 1px solid var(--msl-line); border-bottom: 1px solid var(--msl-line); padding: 40px 32px; max-width: 1056px; margin: 56px auto; border-radius: 0; }
body.page-id-2 .author-box .author-name { font-size: 22px; text-align: left; }

body.page-id-2 .msl-flow-steps { max-width: none !important; gap: 24px !important; }
body.page-id-2 .msl-step { border: 0 !important; border-top: 3px solid var(--msl-wine) !important; border-radius: 0 !important; background: #f5f4f2 !important; padding: 26px 18px !important; line-height: 1.8; }
body.page-id-2 .msl-step p { margin: 0 !important; }
body.page-id-2 .msl-step:not(:last-child)::after { right: -19px !important; font-size: 11px !important; }
body.page-id-2 .msl-plans-block { margin-top: 96px !important; }
body.page-id-2 .msl-plans-grid { gap: 24px !important; }
body.page-id-2 .msl-plan-card { display: flex !important; flex-direction: column !important; border: 1px solid var(--msl-line) !important; border-top: 3px solid var(--msl-wine) !important; border-radius: 0 !important; box-shadow: none !important; text-align: left !important; padding: 34px !important; }
body.page-id-2 .msl-plan-card:hover { transform: none !important; box-shadow: none !important; }
body.page-id-2 .msl-plan-card::before { display: none !important; }
body.page-id-2 .msl-lp-wrapper .msl-plan-card h3.msl-plan-name { margin: 0 0 16px !important; color: var(--msl-wine) !important; font-size: 23px !important; }
body.page-id-2 .msl-plan-desc { font-size: 15px !important; line-height: 1.9; flex: 1; min-height: 0 !important; }
body.page-id-2 .msl-plan-price { margin-top: 18px !important; }
body.page-id-2 .msl-plan-price span { font-size: 36px !important; }
body.page-id-2 .msl-faq-block { margin-top: 96px !important; }
body.page-id-2 .msl-faq-list { max-width: none !important; }
body.page-id-2 .msl-faq-a { line-height: 1.9 !important; }
body.page-id-2 #contact { padding-left: 32px !important; padding-right: 32px !important; background: #f5f4f2 !important; }
body.page-id-2 #contact > * { max-width: 1056px; margin-left: auto !important; margin-right: auto !important; }
body.page-id-2 .snow-monkey-form { width: 100%; }
body.page-id-2 .smf-item { padding: 22px 0; border-bottom: 1px solid var(--msl-line); }
body.page-id-2 .smf-text-control__control, body.page-id-2 .smf-textarea-control__control { border-radius: 2px; border: 1px solid #c9c5c1; background: white; box-shadow: none; padding: 14px; }
body.page-id-2 .smf-button-control__control, body.page-id-2 .ff-btn-submit {
  background: #800000 !important;
  color: #fff !important;
  border: 1px solid #800000 !important;
  border-radius: 3px !important;
  padding: 17px 32px !important;
  min-height: 56px;
  font-size: 16px !important;
  font-weight: 700;
  box-shadow: none !important;
}
body.page-id-2 .smf-button-control__control:hover, body.page-id-2 .ff-btn-submit:hover { background: #650000 !important; }

/* A compact footer bar keeps the existing promotion outside the reading area. */
body.page-id-2 .msl-floating-sales-cta { right: 18px !important; bottom: 16px !important; width: 272px !important; height: auto !important; }
body.page-id-2 .msl-floating-sales-cta .wp-block-button__link { height: auto !important; min-height: 58px; border: 1px solid #800000 !important; border-radius: 3px !important; padding: 10px 18px !important; font-size: 13px !important; line-height: 1.6 !important; box-shadow: 0 3px 12px #00000012 !important; }
body.page-id-2 .msl-floating-sales-cta .wp-block-button__link:hover { transform: none !important; }
body.page-id-2 #go-to-top { bottom: 90px; }

@media (min-width: 1024px) {
  body.page-id-2 .msl-result-card:not(:nth-child(3n)) { border-right: 1px solid #575050 !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .msl-design-refresh #header-container-in { gap: 20px; padding: 20px 24px; }
  .msl-design-refresh .header-site-logo-image { width: 260px; }
  .msl-design-refresh #navi .menu-header { gap: 16px; }
  .msl-design-refresh #navi .menu-header > li > a { font-size: 12px; }
  body.page-id-2 .msl-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.page-id-2 .msl-fv .msl-fv-content { max-width: 100%; }
}
@media (max-width: 767px) {
  .msl-design-refresh #header-container-in { display: block; padding: 18px 20px 16px; }
  .msl-design-refresh #header { width: 100%; }
  .msl-design-refresh .header-site-logo-image { width: 248px; max-width: calc(100vw - 94px); }
  .msl-design-refresh .tagline { font-size: 9px; line-height: 1.6; margin-top: 5px; }
  .msl-design-refresh #navi { display: none; }
  body.page-id-2 .mobile-footer-menu-buttons { top: 22px !important; right: 12px !important; }
  body.page-id-2 .mobile-footer-menu-buttons #navi-menu-open { border: 1px solid #dedbd8 !important; border-radius: 2px !important; box-shadow: none !important; }
  body.page-id-2 .msl-container { padding: 0 24px !important; }
  body.page-id-2 .msl-section { padding: 56px 0 !important; }
  body.page-id-2 .msl-lp-wrapper > .msl-fv:first-child { padding: 40px 0 64px !important; }
  body.page-id-2 .msl-lp-wrapper > .msl-fv:first-child .msl-container { display: flex !important; flex-direction: column !important; gap: 30px !important; }
  body.page-id-2 .msl-lp-wrapper h1.msl-fv-title { font-size: clamp(25px, 7.15vw, 32px) !important; letter-spacing: -.04em !important; line-height: 1.65 !important; margin-bottom: 22px !important; }
  body.page-id-2 .msl-fv-content > p:not(.msl-fv-desc) { font-size: 14px; }
  body.page-id-2 .msl-fv-desc { font-size: 15px !important; text-align: left; }
  body.page-id-2 .msl-title-line { display: block; }
  body.page-id-2 .msl-fv .wp-block-column { width: 100% !important; }
  body.page-id-2 .msl-lp-wrapper .msl-btn { width: 100% !important; }
  body.page-id-2 .msl-lp-wrapper .msl-btn .wp-block-button__link { width: 100% !important; padding: 16px !important; font-size: 14px !important; min-height: 56px; }
  body.page-id-2 .msl-lp-wrapper .msl-btn .wp-block-button__link::after { margin-left: 12px; }
  body.page-id-2 .msl-lp-wrapper h2.msl-section-title { font-size: 24px !important; line-height: 1.65 !important; padding-bottom: 18px !important; margin-bottom: 30px !important; }
  body.page-id-2 .msl-issues-flex, body.page-id-2 .msl-solutions-flex { gap: 30px !important; }
  body.page-id-2 .msl-issues-list li { font-size: 16px; padding: 20px 0 20px 26px !important; }
  body.page-id-2 .msl-result-card { padding: 30px 8px !important; }
  body.page-id-2 .msl-results > h2.msl-section-title { width: calc(100% - 48px); }
  body.page-id-2 .msl-results > .msl-results-grid,
  body.page-id-2 .msl-results > figure.wp-block-image,
  body.page-id-2 .msl-results > .msl-results-note,
  body.page-id-2 .msl-results > .profile-block-box { width: calc(100% - 48px) !important; }
  body.page-id-2 .msl-results .profile-block-box .author-box { padding: 24px; }
  body.page-id-2 .msl-results .author-thumb { float: none; width: 80px; margin: 0 0 18px; }
  body.page-id-2 .msl-results .author-thumb img { width: 80px; height: 80px; object-fit: cover; }
  body.page-id-2 .msl-results .author-content { margin-left: 0; padding-left: 0; width: 100%; }
  body.page-id-2 .msl-results .author-name { font-size: 20px; line-height: 1.6; }
  body.page-id-2 .msl-result-number { min-height: 0; font-size: 40px !important; }
  body.page-id-2 .msl-results-grid { margin-bottom: 24px !important; }
  body.page-id-2 .author-box { margin: 32px 24px; padding: 28px 0; }
  body.page-id-2 .msl-step { padding: 24px !important; }
  body.page-id-2 .msl-step:not(:last-child)::after { right: auto !important; bottom: -20px !important; }
  body.page-id-2 .msl-plans-block, body.page-id-2 .msl-faq-block { margin-top: 64px !important; }
  body.page-id-2 .msl-plan-card { padding: 28px 24px !important; }
  body.page-id-2 #contact { padding-left: 24px !important; padding-right: 24px !important; }
  body.page-id-2 .msl-floating-sales-cta { left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; }
  body.page-id-2 .msl-floating-sales-cta .wp-block-button__link { min-height: 58px; padding: 8px 16px !important; border-radius: 0 !important; font-size: 13px !important; }
  .msl-design-refresh #footer { padding: 28px 24px !important; }
  .msl-design-refresh #footer .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 !important; }
  .msl-design-refresh #footer .footer-site-logo-image { width: 220px !important; }
  .msl-design-refresh #footer .footer-bottom-content { width: 100%; }
  .msl-design-refresh #footer .menu-footer { justify-content: flex-start; }
  .msl-design-refresh #footer .menu-footer li a { padding-left: 0 !important; padding-right: 18px !important; font-size: 12px; }
  .msl-design-refresh #footer .copyright { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-2 .msl-lp-wrapper *, body.page-id-2 .msl-floating-sales-cta { transition: none !important; }
  body.page-id-2 .msl-lp-wrapper > .msl-fv:first-child::before,
  body.page-id-2 .msl-lp-wrapper > .msl-fv:first-child::after { animation: none; }
}
/* The contact section already supplies its own bottom padding. */
body.page-id-2 .msl-lp-wrapper > .msl-transition:has(#contact) { padding-bottom:0!important; }
body.page-id-2 .entry-content > .msl-lp-wrapper + p.wp-block-paragraph:empty { margin:0!important; }
