:root {
      --bg: #FDD835;
      --hero-x: 50%;

      --ink: #212121;
      --muted: #212121;
      --accent: #c60000;
      --line: rgba(31, 20, 15, 0.12);

      --container: 1600px;
      --px: 90px;

      --sitebar-h: 70px;
      --menu-top: 122px;

      --section-y: 64px;
      --kicker-mb: 14px;
      --title-mb: 18px;
      --lead-max: 1280px;

      --wtd-mt: 34px;
      --wtd-gap: 28px;

      --works-mt: 26px;
      --works-gap: 28px;

      --topics-mt: 20px;

      --footer-pt: 34px;
      --footer-pb: 24px;
      --footer-gap: 32px;
      --footer-list-gap: 8px;

      --x-dx: 0px;
      --x-dy: -1px;
      --menu-btn-dx: 21px;

      --card-radius: 36px;
      --card-pad: 26px;

      --km-nav-dy: 60px;
    }


    * { box-sizing: border-box; }
    html, body { height: 100%; }
    html { background: var(--bg); }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; height: auto; }


    .container {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 var(--px);
    }

    main .container {
      max-width: 1280px;
    }

    header { background: var(--bg); }


    .site-bar {
      height: var(--sitebar-h);
      display: flex;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 10000;
      transform: translateY(0);
      transition: transform 220ms ease, background-color 200ms ease, backdrop-filter 200ms ease;
      padding: 0;
      background: rgba(253, 216, 53, 0.32);
      backdrop-filter: blur(8px);
    }

    .site-bar.is-hidden { transform: translateY(-100%); }

    .site-bar.is-scrolled {
      background: rgba(253, 216, 53, 0.32);
      backdrop-filter: blur(8px);
    }

    .site-bar .container { width: 100%; }

    .header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      font-size: 15px;
      letter-spacing: 0.02em;
      font-weight: 700;
      line-height: 1.35;
    }

    nav ul {
      display: flex;
      align-items: center;
      gap: 26px;
      list-style: none;
      padding: 0;
      margin: 0;
      font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-weight: 800;
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    nav a {
      position: relative;
      display: inline-block;
      padding-bottom: 6px;
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 180ms ease;
    }

    nav a:hover::after,
    nav a:focus-visible::after {
      transform: scaleX(1);
    }


    .menu-btn {
      display: none;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      position: relative;
      transform: translateX(var(--menu-btn-dx));
    }

    .menu-btn .bars,
    .menu-btn .x {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .menu-btn .bars {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .menu-btn .bar {
      width: 20px;
      height: 2px;
      background: var(--ink);
      border-radius: 1px;
      display: block;
    }

    .menu-btn .x {
      display: none;
      width: 22px;
      height: 22px;
      color: #fff;
      transform: translate(-50%, -50%) translate(var(--x-dx), var(--x-dy));
    }

    .menu-btn .x::before,
    .menu-btn .x::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 22px;
      height: 2px;
      background: currentColor;
      border-radius: 1px;
      transform-origin: center;
    }

    .menu-btn .x::before { transform: translate(-50%, -50%) rotate(45deg); }
    .menu-btn .x::after { transform: translate(-50%, -50%) rotate(-45deg); }

    .menu-btn[aria-expanded="true"] .bars { display: none; }
    .menu-btn[aria-expanded="true"] .x { display: block; }


    .mobile-nav {
      position: fixed;
      inset: 0;
      background: #212121;
      z-index: 9998;
      display: none;
      overflow: auto;
    }

    body.menu-open .mobile-nav {
      display: block;
      inset: 0;
      padding-right: var(--sbw, 0px);
    }

    body.menu-open .site-bar {
      background: #212121;
      right: 0;
      padding-right: var(--sbw, 0px);
    }

    body.menu-open .brand { color: #fff; }

    .mobile-nav__inner {
      padding-top: var(--menu-top);
      padding-bottom: 44px;
    }

    .mobile-nav__groups {
      display: grid;
      gap: 34px;
    }

    .mobile-nav__group {
      display: grid;
      gap: 10px;
    }

    .mobile-nav__group a {
      font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-weight: 800;
      font-size: 26px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #fff;
    }


    .hero-media {
      margin-top: 0 !important;
      height: 100vh;
      height: 100svh;
      overflow: hidden !important;
      position: relative;
      background: rgba(0, 0, 0, 0.06);
    }

    .hero-media img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: var(--hero-x) 50%;
      z-index: 0;
    }

    .hero-copy {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 var(--px);
      z-index: 1;
      pointer-events: none;
    }

    .hero-copy__text {
      font-family: "M PLUS 1p", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-size: clamp(18px, 3.6vw, 44px);
      font-weight: 900;
      letter-spacing: 0.03em;
      line-height: 1.08;
      color: var(--bg);
      text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    }

    @media (min-width: 981px) {
      .hero-copy__text {
        font-size: clamp(22px, 4.2vw, 60px);
      }
    }

    main, section, footer { background: var(--bg); }
    section { padding: var(--section-y) 0; }

    /* Anchor offset for fixed header */
    section[id] { scroll-margin-top: calc(var(--sitebar-h) - var(--section-y) + 10px); }
    #top { scroll-margin-top: 0px; }


    .kicker {
      font-family: "Roboto Slab", "Roboto", "Times New Roman", serif;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: var(--kicker-mb);
    }

    .section-title {
      margin: 0 0 var(--title-mb);
      font-size: 44px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: #fff;
      text-shadow:
        -1px -1px 0 var(--ink),
         1px -1px 0 var(--ink),
        -1px  1px 0 var(--ink),
         1px  1px 0 var(--ink);
    }


    #intro .intro-box {
      background: var(--bg);
      border-radius: var(--card-radius);
      padding: 0;
    }

    #intro .intro-text {
      width: 100%;
      max-width: var(--lead-max);
      margin: 0 auto;
      font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-weight: 700;
      font-size: 21px;
      line-height: 2.0;
      letter-spacing: 0.02em;
      color: var(--ink);
    }

    #intro .intro-text p {
      margin: 0;
    }

    #intro .intro-text p + p {
      margin-top: 18px;
    }


    #who .section-title { margin-bottom: 34px; }

    .lead {
      margin: 0;
      max-width: var(--lead-max);
      font-size: 14px;
      line-height: 2.1;
      color: var(--ink);
      white-space: pre-line;
    }

    #who .who-lead-card {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--works-gap);
    }

    #who .who-lead-pane {
      background: #fff;
      border-radius: var(--card-radius);
      padding: var(--card-pad);
    }

    #who .who-lead-pane .lead {
      margin: 0;
      max-width: var(--lead-max);
      white-space: normal;
    }


    .wtd-grid {
      margin-top: var(--wtd-mt);
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--wtd-gap);
    }

    .wtd-item {
      background: #fff;
      border: 1px solid var(--ink);
      border-radius: 0;
      padding: var(--card-pad);
      box-shadow:
        8px 8px 0 0 #fff,
        8px 8px 0 1px var(--ink);
    }

    .wtd-item h3 {
      margin: 0 0 12px;
      font-size: 30px;
      font-weight: 800;
      letter-spacing: 0.02em;
      line-height: 1.5;
    }

    .wtd-item ul {
      margin: 0;
      padding-left: 1.2em;
      list-style: disc;
      color: var(--muted);
      font-size: 15px;
      line-height: 2.0;
    }

    .wtd-item li { margin: 0; }


    .works-grid {
      margin-top: var(--works-mt);
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--works-gap);
    }

    .work {
      background: #fff;
      border-radius: 18px;
      overflow: hidden;
      padding: 0 0 26px;
    }

    .work .thumb {
      width: 100%;
      aspect-ratio: 16 / 9;
      background: rgba(0, 0, 0, 0.06);
      overflow: hidden;
    }

    .work .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .work .cap {
      margin-top: 12px;
      font-size: 18px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.06em;
      text-align: center;
    }

    .work h4 {
      margin: 45px 0 12px;
      font-size: 30px;
      font-weight: 800;
      line-height: 1.55;
      letter-spacing: 0.02em;
      text-align: center;
    }

    .work p {
      margin-top: 45px;
      font-size: 15px;
      line-height: 2.0;
      color: var(--muted);
      white-space: normal;
    }

    .work .cap,
    .work h4,
    .work p {
      padding-left: var(--card-pad);
      padding-right: var(--card-pad);
    }

    .work-desc {
      margin-top: 45px;
      padding-left: var(--card-pad);
      padding-right: var(--card-pad);
    }

    .work-desc p {
      margin: 0;
      padding: 0;
      white-space: normal;
    }

    .work-desc p + p {
      margin-top: 18px;
    }

    .work-desc__list {
      margin: 14px 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 10px 10px;
    }

    .work-desc__list li {
      margin: 0;
      padding: 8px 12px;
      border: 1px solid rgba(0, 0, 0, 0.22);
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.04);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.2;
    }


    #company .company-box {
      margin-top: 26px;
      background: #fff;
      border-radius: 18px;
      padding: 6px 0;
    }

    #company .company-list {
      margin: 0;
      padding: 0 36px;
    }

    #company .company-row {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 22px;
      padding: 26px 0;
    }

    #company .company-row + .company-row {
      border-top: 1px dotted rgba(0, 0, 0, 0.22);
    }

    #company .company-row:last-child {
      border-bottom: none;
    }

    #company dt,
    #company dd {
      margin: 0;
      padding: 0;
    }

    #company dt {
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: 0.02em;
    }

    #company dd {
      font-size: 15px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.8;
    }

    @media (max-width: 980px) {

      /* mobile: hero-copy horizontal offset (restored) */
      .hero-copy {
        transform: translateX(100px);
      }
      #company .company-list {
        padding: 0 18px;
      }

      #company .company-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
      }

      #company dd {
        font-size: 14px;
      }
    }



    #contact .contact-box {
      margin-top: 26px;
      background: #fff;
      border-radius: 18px;
      padding: 34px 36px 36px;
    }

    #contact fieldset {
      border: 0;
      margin: 0;
      padding: 0;
      min-width: 0;
    }

    #contact .req {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      padding: 3px 8px;
      border-radius: 4px;
      background: rgba(255, 192, 203, 0.55) !important;
      color: rgba(0, 0, 0, 0.72);
      line-height: 1;
    }

    #contact .cf-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 22px 40px;
    }

    #contact .cf-field {
      display: grid;
      gap: 10px;
    }

    #contact .cf-field.is-span2 { grid-column: 1 / -1; }

    #contact .cf-label {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
    }

    #contact .cf-input,
    #contact .cf-select,
    #contact .cf-textarea {
      width: 100%;
      border: 0;
      border-radius: 4px;
      background: rgba(0, 0, 0, 0.06);
      color: var(--ink);
      font-size: 14px;
      padding: 12px 14px;
      outline: none;
    }

    #contact .cf-input,
    #contact .cf-select {
      height: 44px;
    }

    #contact .cf-select {
      appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.55) 50%),
        linear-gradient(135deg, rgba(0,0,0,0.55) 50%, transparent 50%);
      background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 42px;
    }

    #contact .cf-textarea {
      min-height: 260px;
      resize: vertical;
      line-height: 1.8;
    }

    #contact .cf-input:focus-visible,
    #contact .cf-select:focus-visible,
    #contact .cf-textarea:focus-visible {
      outline: 2px solid rgba(0, 0, 0, 0.55);
      outline-offset: 2px;
    }

    #contact .cf-actions {
      margin-top: 26px;
      display: flex;
      justify-content: flex-start;
    }

    #contact .cf-submit {
      border: 0;
      border-radius: 999px;
      padding: 12px 22px;
      background: #212121;
      color: #fff;
      font-weight: 800;
      letter-spacing: 0.06em;
      cursor: pointer;
    }

    #contact .cf-submit:focus-visible {
      outline: 2px solid #212121;
      outline-offset: 3px;
    }

    @media (max-width: 980px) {
      #contact .contact-box {
        padding: 26px 18px 28px;
      }

      #contact .cf-grid {
        grid-template-columns: 1fr;
        gap: 18px;
      }

      #contact .cf-field.is-span2 { grid-column: auto; }

      #contact .cf-textarea {
        min-height: 220px;
      }
    }



    footer {
      padding: var(--footer-pt) 0 var(--footer-pb);
      background: #212121;
      color: #fff;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: var(--footer-gap);
      padding-top: 24px;
      border-top: none;
    }

    .footer-col ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: var(--footer-list-gap);
    }

    .footer-col li { list-style: none; }

    .footer-col a {
      font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-weight: 800;
      font-size: 18px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .copy {
      margin-top: 70px;
      padding-top: 12px;
      border-top: none;
      font-size: 14px;
      font-weight: 400;
      color: #fff;
      text-align: center;
    }

    .pagetop:focus-visible {
      outline: 2px solid var(--ink);
      outline-offset: 3px;
    }

    .pagetop:hover { transform: translateY(8px); }

    body.menu-open .pagetop {
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
    }


    @media (max-width: 980px) {
      :root {
        --px: 24px;
        --menu-btn-dx: 0px;
        --wtd-gap: 26px;
        --works-gap: 26px;
        --hero-x: 40%;
      }

      nav { display: none !important; }
      .menu-btn { display: inline-flex !important; }

      #who .who-lead-card { grid-template-columns: 1fr !important; }
      .wtd-grid { grid-template-columns: 1fr !important; }
      .works-grid { grid-template-columns: 1fr !important; }

      footer { padding: 30px 0 24px; }
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }
    }

    @media (max-width: 520px) {
      :root { --px: 18px; }
      .topic .ttl { max-width: 52vw; }
    }


    @media (max-width: 980px) {

      .hero-copy__text {
        font-size: clamp(40px, 9vw, 54px) !important;
      }
    }


    .site-bar .brand { font-size: 15px; }
    .site-bar nav ul { font-size: 13px; }


    @media (min-width: 981px) {

      body.is-firstview .site-bar {
        transform: translateY(-100%);
      }


      .site-bar nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition:
          opacity 180ms ease,
          transform 180ms ease,
          visibility 0s linear 180ms;
      }

      .site-bar.is-scrolled nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition:
          opacity 180ms ease,
          transform 180ms ease,
          visibility 0s;
      }
    }

    .site-bar .brand,
    .site-bar nav a,
    .site-bar nav a:visited,
    .site-bar nav a:hover,
    .site-bar nav a:focus-visible {
      color: #212121;
    }


    .pagetop {
      position: fixed;
      right: calc(18px + env(safe-area-inset-right));
      bottom: calc(18px + env(safe-area-inset-bottom));
      width: 52px;
      height: 52px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10001;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .pagetop svg {
      width: 22px;
      height: 22px;
      display: block;
    }

    .pagetop.is-visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    @media (max-width: 980px) {
      .pagetop {
        width: 48px;
        height: 48px;
        right: calc(14px + env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
      }
    }




    .brand--logo {
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    .brand--logo img {
      height: 50px;
      width: auto;
      max-width: 360px;
      display: block;
    }

    body.menu-open .brand--logo img {
      filter: brightness(0) invert(1);
    }



    .floating-banner {
      position: fixed;
      right: calc(24px + env(safe-area-inset-right));
      bottom: calc(24px + env(safe-area-inset-bottom));
      width: min(220px, 19vw);
      min-width: 170px;
      z-index: 9999;
      opacity: 1;
      transform: translateY(0);
      transition: opacity 200ms ease, transform 200ms ease;
    }

    .floating-banner__link {
      display: block;
    }

    .floating-banner img {
      width: 100%;
      height: auto;
      display: block;
    }

    .floating-banner.is-hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
    }

    body.menu-open .floating-banner {
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
    }

    @media (max-width: 980px) {
      .floating-banner {
        display: none !important;
      }
    }

    /* hero copy bundle: keep subimage under the text and size to text width */
    .hero-copy__bundle {
      --hero-copy-img-w: 400px;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
      max-width: 100%;
      align-self: center;
    }

    .hero-copy__bundle .hero-copy__text {
      display: inline-block;
      width: auto;
    }

    .hero-copy__subimage {
      position: static !important;
      inset: auto !important;
      left: auto !important;
      right: auto !important;
      transform: translateX(-20px) !important;
      opacity: 1 !important;
      visibility: visible !important;
      display: block !important;
      width: min(100%, var(--hero-copy-img-w)) !important;
      max-width: 100% !important;
      height: auto !important;
      margin-top: 12px;
      margin-left: auto;
      margin-right: auto;
    }
