:root {
  --flyer-navy: #17364d;
  --flyer-text: #243746;
  --flyer-orange: #f47c42;
  --flyer-pale-blue: #f3f7f9;
  --flyer-border: #d7e1e7;
  --flyer-muted: #5b6b77;
  --flyer-pale-orange: #fff7f2;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--flyer-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #2b7fb6;
  outline-offset: 3px;
}

.flyer-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--flyer-navy);
  transform: translateY(-150%);
  transition: transform .15s ease;
}

.flyer-skip-link:focus {
  transform: translateY(0);
}

.flyer-page {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.flyer-page > *,
.flyer-page div,
.flyer-page nav {
  min-width: 0;
}

.flyer-page svg {
  display: block;
}

.flyer-header {
  position: relative;
  z-index: 20;
}

.flyer-logo {
  display: block;
  width: auto;
  height: 76px;
  flex: none;
}

.flyer-logo img {
  display: block;
  width: auto;
  height: 100%;
}

.flyer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--flyer-text);
  font: 500 12px/1.5 "Noto Sans JP", sans-serif;
}

.flyer-nav a,
.flyer-footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.flyer-nav a:hover,
.flyer-footer a:hover {
  color: var(--flyer-orange);
  text-decoration-color: currentColor;
}

.flyer-header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  color: #fff;
  background: var(--flyer-orange);
  font: 700 12.5px/1.4 "Noto Sans JP", sans-serif;
  transition: filter .15s ease, transform .15s ease;
}

.flyer-header-cta:hover,
.flyer-button-orange:hover {
  color: #fff;
  filter: brightness(.94);
  transform: translateY(-1px);
}

.flyer-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 7px 9px 5px;
  border: 1px solid var(--flyer-navy);
  color: var(--flyer-navy);
  background: #fff;
  cursor: pointer;
}

.flyer-menu-toggle > span:not(.flyer-menu-label) {
  display: block;
  width: 21px;
  height: 1px;
  margin: 3px auto;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.flyer-menu-label {
  display: block;
  margin-top: 2px;
  font: 700 8px/1 "Noto Sans JP", sans-serif;
}

.flyer-menu-toggle[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.flyer-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.flyer-menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.flyer-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  text-align: center;
  transition: filter .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.flyer-button-orange {
  padding: 20px 30px;
  color: #fff;
  background: var(--flyer-orange);
  font: 700 18px/1.45 "Noto Sans JP", sans-serif;
}

.flyer-button-outline {
  padding: 18px 26px;
  border: 2px solid var(--flyer-navy);
  color: var(--flyer-navy);
  background: transparent;
  font: 700 15px/1.45 "Noto Sans JP", sans-serif;
}

.flyer-button-outline:hover {
  color: #fff;
  background: var(--flyer-navy);
}

.flyer-button-white {
  padding: 18px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font: 700 16px/1.45 "Noto Sans JP", sans-serif;
}

.flyer-button-white:hover {
  color: var(--flyer-navy);
  background: #fff;
}

.flyer-button-block {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.flyer-button-block:first-child {
  margin-top: 0;
}

.flyer-diagnosis-link {
  display: block;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px dashed #b8c4cc;
  border-radius: 4px;
  color: var(--flyer-navy);
  font: 700 15px/1.8 "Noto Sans JP", sans-serif;
}

.flyer-diagnosis-link:hover {
  border-color: var(--flyer-orange);
  color: var(--flyer-orange);
}

.flyer-final-cta a,
.flyer-footer a,
.flyer-hero a[href^="tel:"] {
  color: inherit;
}

.flyer-page details > summary {
  cursor: pointer;
  list-style: none;
}

.flyer-page details > summary::-webkit-details-marker {
  display: none;
}

.flyer-page details > summary span {
  transition: transform .18s ease;
}

.flyer-page details[open] > summary span {
  transform: rotate(45deg);
}

.flyer-mobile-cta {
  display: none;
}

@media (max-width: 1180px) {
  .flyer-header {
    padding-right: 28px !important;
    padding-left: 28px !important;
  }

  .flyer-header > div:last-child {
    gap: 12px !important;
  }

  .flyer-nav {
    gap: 10px;
    font-size: 11px;
  }

  .flyer-hero {
    gap: 28px !important;
  }

  .flyer-hero > div:last-child {
    width: min(39vw, 460px) !important;
  }

  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 960px) {
  body {
    padding-bottom: 64px;
  }

  .flyer-header {
    padding: 10px 18px !important;
  }

  .flyer-logo {
    height: 52px;
  }

  .flyer-header > div:first-child {
    gap: 10px !important;
  }

  .flyer-header > div:first-child > div:last-child {
    display: none;
  }

  .flyer-header > div:last-child {
    gap: 8px !important;
  }

  .flyer-menu-toggle {
    display: block;
  }

  .flyer-header-cta {
    display: none;
  }

  .flyer-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 0 solid var(--flyer-border);
    background: #fff;
    box-shadow: 0 14px 26px rgba(23, 54, 77, .12);
    visibility: hidden;
    opacity: 0;
    transition: max-height .22s ease, opacity .18s ease, visibility .18s ease, border-width .18s ease;
  }

  .flyer-nav.is-open {
    max-height: 380px;
    border-bottom-width: 1px;
    visibility: visible;
    opacity: 1;
  }

  .flyer-nav a {
    min-height: 50px;
    padding: 15px 18px;
    border-top: 1px solid var(--flyer-border);
    font-size: 14px;
    text-decoration: none;
  }

  .flyer-nav a:nth-child(even) {
    border-left: 1px solid var(--flyer-border);
  }

  .flyer-hero {
    flex-direction: column;
    padding: 28px 24px 34px !important;
  }

  .flyer-hero > div:last-child {
    width: 100% !important;
  }

  .flyer-section,
  .flyer-final-cta,
  .flyer-footer {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  [style*="width:520px"],
  [style*="width:560px"],
  [style*="width:460px"],
  [style*="width:420px"],
  [style*="width:230px"],
  [style*="width: 997px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  [style*="align-items:flex-start"] {
    flex-direction: column;
  }

  #approach [style*="align-items:stretch"],
  #voice [style*="display:flex;gap:32px"],
  #contact [style*="display:flex;gap:36px"],
  #company,
  #audience {
    flex-direction: column;
  }

  #case-price [style*="display:flex;gap:40px"] {
    flex-direction: column;
  }

  #case-price [style*="border-left:1px"] {
    padding-top: 22px !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--flyer-border);
    border-left: 0 !important;
  }

  #difference [style*="display:flex;align-items:center"],
  #cycle [style*="display:flex;align-items:stretch"] {
    flex-wrap: wrap;
  }

  #difference [style*="width:230px"] {
    flex-basis: 100%;
  }

  #cycle [style*="display:flex;align-items:stretch"] > [style*="flex:1"] {
    flex: 1 1 180px !important;
  }

  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .flyer-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    min-height: 64px;
    border-top: 1px solid var(--flyer-border);
    box-shadow: 0 -5px 18px rgba(23, 54, 77, .14);
  }

  .flyer-mobile-cta a {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    color: #fff;
    background: var(--flyer-orange);
    font: 700 15px/1.35 "Noto Sans JP", sans-serif;
    text-align: center;
  }

  .flyer-mobile-cta a:last-child {
    background: var(--flyer-navy);
  }
}

@media (max-width: 680px) {
  .flyer-section,
  .flyer-final-cta,
  .flyer-footer {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .flyer-hero {
    padding: 18px 16px 24px !important;
  }

  .flyer-hero [style*="font:900 54px"] {
    margin-top: 14px !important;
    font-size: 30px !important;
    line-height: 1.45 !important;
  }

  [style*="font:900 44px"],
  [style*="font:900 42px"] {
    font-size: 29px !important;
    line-height: 1.45 !important;
  }

  [style*="font:900 38px"],
  [style*="font:900 36px"] {
    font-size: 27px !important;
    line-height: 1.45 !important;
  }

  [style*="font:900 34px"],
  [style*="font:900 32px"],
  [style*="font:900 30px"] {
    font-size: 25px !important;
    line-height: 1.5 !important;
  }

  [style*="font:700 30px"],
  [style*="font:700 28px"],
  [style*="font:700 26px"] {
    font-size: 23px !important;
    line-height: 1.55 !important;
  }

  .flyer-hero [style*="font:700 26px"] {
    margin-top: 14px !important;
    font-size: 19px !important;
    line-height: 1.7 !important;
  }

  .flyer-service-grid,
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .flyer-service-grid > div:last-child {
    grid-column: auto !important;
  }

  #hero > div:first-child > [style*="display:flex;gap:14px"] {
    align-items: stretch !important;
    flex-direction: column;
  }

  .flyer-button {
    width: 100%;
    min-height: 54px;
    padding: 16px 18px;
  }

  .flyer-hero > div:last-child {
    gap: 8px !important;
  }

  .flyer-hero [style*="height:230px"] {
    height: 180px !important;
  }

  .flyer-hero [style*="height:200px"] {
    height: 220px !important;
  }

  [style*="height:560px"] {
    height: 440px !important;
  }

  [style*="height:414px"] {
    height: 280px !important;
  }

  #voice [style*="height:200px"] {
    height: auto !important;
  }

  #problem > [style*="display:flex;gap:44px"],
  #approach [style*="display:flex;gap:48px"],
  #approach [style*="display:flex;gap:44px"] {
    gap: 20px !important;
  }

  #approach [style*="display:flex;gap:16px"],
  #approach [style*="display:flex;gap:20px"] {
    flex-direction: column;
  }

  #approach [style*="align-self:center"] {
    transform: rotate(90deg);
  }

  #case-price [style*="display:flex;gap:32px"] {
    flex-direction: column;
    gap: 16px !important;
  }

  #measurement [style*="display:flex;gap:36px"] {
    flex-direction: column;
  }

  #cycle [style*="display:flex;align-items:stretch"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #cycle [style*="align-self:center"] {
    display: none;
  }

  #extras [style*="grid-template-columns:1fr 1fr"] {
    gap: 0 !important;
  }

  .flyer-page table {
    font-size: 14px !important;
  }

  .flyer-page td {
    vertical-align: top;
  }

  .flyer-page ul {
    margin: 0;
    padding-left: 1.25em;
  }

  .flyer-page summary {
    min-height: 56px;
    align-items: center;
  }

  .flyer-footer > div:last-child {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
