html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
x-dc,
x-dc > div {
  max-width: 100%;
}

* {
  min-width: 0;
}

img,
video {
  max-width: 100%;
}

.brand-mark {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin-right: 7px;
  color: #111;
  display: inline-block;
  vertical-align: -1px;
  object-fit: contain;
}

.studio-note-thumb {
  max-width: 100%;
}

.gx,
.gx::before,
.gx::after {
  max-width: 100%;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden !important;
  }

  body > *,
  x-dc,
  x-dc > div,
  div,
  section,
  main,
  header,
  footer {
    max-width: 100% !important;
  }

  div[style*="max-width:1180px"],
  div[style*="max-width: 1180px"],
  div[style*="max-width:860px"],
  div[style*="max-width: 860px"],
  main {
    width: 100% !important;
    max-width: 100% !important;
  }

  div[style*="padding:"][style*="48px"],
  main {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  div[style*="padding:72px 48px"],
  div[style*="padding:80px 48px"] {
    padding-top: 44px !important;
    padding-bottom: 34px !important;
  }

  div[style*="display:flex"][style*="justify-content:space-between"][style*="padding:24px 48px"],
  div[style*="display:flex"][style*="justify-content: space-between"][style*="padding: 24px 48px"] {
    position: relative !important;
    padding: 16px 20px !important;
    align-items: flex-start !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  div[style*="display:flex"][style*="gap:28px"],
  div[style*="display: flex"][style*="gap: 28px"] {
    width: 100% !important;
    gap: 9px 13px !important;
    flex-wrap: wrap !important;
    line-height: 1.35 !important;
  }

  div[style*="display:flex"][style*="gap:28px"] a,
  div[style*="display:flex"][style*="gap:28px"] span,
  div[style*="display: flex"][style*="gap: 28px"] a,
  div[style*="display: flex"][style*="gap: 28px"] span {
    font-size: 10px !important;
    letter-spacing: 0.06em !important;
  }

  .brand-mark {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    margin-right: 5px;
    vertical-align: -1px;
  }

  .studio-note-thumb {
    width: min(100%, 360px) !important;
  }

  div[style*="display:grid"],
  div[style*="display: grid"],
  a[style*="display:grid"],
  a[style*="display: grid"] {
    max-width: 100% !important;
  }

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

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

  div[style*="grid-template-columns:1fr 380px"],
  div[style*="grid-template-columns: 1fr 380px"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:200px 1fr"],
  div[style*="grid-template-columns: 200px 1fr"],
  div[style*="grid-template-columns:220px 1fr"],
  div[style*="grid-template-columns: 220px 1fr"],
  div[style*="grid-template-columns:120px 1fr"],
  div[style*="grid-template-columns: 120px 1fr"],
  div[style*="grid-template-columns:130px 130px 1fr"],
  div[style*="grid-template-columns: 130px 130px 1fr"],
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  p,
  li,
  div,
  span {
    word-break: normal;
    overflow-wrap: normal;
  }

  a {
    overflow-wrap: anywhere;
  }

  p[style*="font-size:21px"],
  p[style*="font-size: 21px"],
  p[style*="font-size:20px"],
  p[style*="font-size: 20px"],
  p[style*="font-size:19px"],
  p[style*="font-size: 19px"] {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  p[style*="font-size:18px"],
  p[style*="font-size: 18px"] {
    font-size: 16px !important;
    line-height: 1.58 !important;
  }

  h1 {
    max-width: 100% !important;
  }

  .gx {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gx::before,
  .gx::after {
    white-space: normal;
  }

  div[style*="aspect-ratio:1/1"],
  div[style*="aspect-ratio: 1/1"],
  div[style*="aspect-ratio:1 / 1"],
  div[style*="aspect-ratio: 1 / 1"] {
    width: min(100%, 360px, calc(100vw - 40px)) !important;
    justify-self: start !important;
  }

  div[style*="aspect-ratio:16/9"],
  div[style*="aspect-ratio: 16/9"] {
    aspect-ratio: 4 / 3 !important;
  }

  div[style*="aspectRatio: '16 / 10'"],
  div[style*="aspect-ratio:16 / 10"],
  div[style*="aspect-ratio: 16 / 10"] {
    min-height: 230px !important;
  }

  .works-grid,
  .commercial-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .works-index-row,
  .home-work-row {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  .home-work-row {
    display: grid !important;
    align-items: start !important;
    gap: 8px 18px !important;
    padding: 24px 0 !important;
  }

  .home-work-row > span:first-child {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    align-self: start !important;
    padding-top: 3px !important;
    text-align: left !important;
  }

  .home-work-row .home-work-title,
  .home-work-row .home-work-medium,
  .home-work-row .home-work-year {
    grid-column: 2 !important;
    text-align: left !important;
    justify-self: start !important;
    width: 100% !important;
  }

  .home-work-row .home-work-title {
    grid-row: 1 !important;
    font-size: clamp(26px, 8vw, 42px) !important;
    line-height: 1.02 !important;
  }

  .home-work-row .home-work-medium {
    grid-row: 2 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .home-work-row .home-work-year {
    grid-row: 3 !important;
    font-size: 15px !important;
    margin-top: 6px !important;
  }

  .works-index-row span:nth-child(3),
  .works-index-row span:nth-child(4) {
    grid-column: 2 !important;
    text-align: left !important;
  }

  .home-work-row > span:first-child {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
  }

  .home-work-row .home-work-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    text-align: left !important;
    width: 100% !important;
  }

  .home-work-row .home-work-medium {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .home-work-row .home-work-year {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }
}

@media (max-width: 420px) {
  div[style*="padding:"][style*="48px"],
  main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  div[style*="font-size:clamp(44px"],
  div[style*="font-size: clamp(44px"],
  h1[style*="font-size:clamp(44px"],
  h1[style*="font-size: clamp(44px"] {
    font-size: 38px !important;
  }
}
