:root {
  --background-color: #FFE5E5;
  --color-gray: #707070;
  --main-color: #A0271E;
  --color-blue: #0000FF;
  --color-white: #ffffff;
  --color-black: #000000;

  --top-charactor-caption: clamp(10px, 0.9259259259259258vw, calc(10px * 1.5));
  --top-charactor-200: clamp(200px, 18.51851851851852vw, calc(200px * 1.5));
  --top-charactor-300: clamp(300px, 27.77777777777778vw, calc(300px * 1.5));
}

body {
  font-family: Helvetica, "Open Sans", sans-serif;
  font-size: 16px;
  background-color: var(--background-color);

  &:has(.top-section4) {
    overflow-x: hidden;
  }
}

.open-menu-button, .close-menu-button {
  font-size: 0.75rem;
  font-weight: bold;
  padding-bottom: 2px;
  cursor: pointer;
  border-bottom: 3px solid black;
}

.open-menu-button {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
}

.close-menu-button {
  position: relative;
  color: var(--color-white);
  border-bottom: 3px solid var(--color-white);
}

.menu-container {
  position: fixed;
  z-index: 200;
  top: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  display: none;
  overflow: hidden;
  padding: 1.25rem;
  color: var(--color-white);
  background-color: #bebebe;

  .menu {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: 2rem auto 2rem;
  }

  .menu-header {
    font-size: 12px;
    display: flex;
    align-items: end;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2rem;
  }

  .menu-content {
    display: grid;
    padding: 1rem 1rem;
    grid-template-columns: repeat(3, 1fr);

    .menu-title-container, .menu-sub-title {
      text-align: center;
      grid-column: 1 / 4;
    }

    .menu-title-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }

    .menu-title {
      font-size: 60px;
      width: 12rem;
      transform: translateX(-0.5rem);
      text-align: left;
      margin-inline: auto;
      grid-column: 2 / 3;
    }

    .menu-sub-title {
      font-size: 42px;
    }

    .links1, .links2 {
      ul {
        list-style: none;
      }

      a {
        &:hover {
          text-decoration: underline;
        }
      }
    }

    .links1 {
      width: 12rem;
      text-align: left;
      margin-inline: auto;

      .menu-projects {
        font-size: 42px;
        margin-bottom: -0.25rem;
        transform: translate(-0.1rem, -10%);
      }

      ul {
        li {
          padding-block: 0.5em;
        }
      }
    }

    .links2 {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      ul {
        li {
          padding-block: 0.6em;
        }
      }

      ul:nth-child(2) {
        margin: 0;
        transform: translateY(3.25rem);
      }
    }

    a:has(> .menu-logo) {
      display: block;
      width: 197px;
      margin-right: auto;
      margin-left: auto;

      .menu-logo {
        width: 197px;
        max-width: 100%;
        height: auto;
      }
    }

    a:has(> .kadowakamatsu-logo) {
      display: block;
      width: 63px;
      margin-top: 2rem;
      margin-right: auto;
      margin-left: auto;

      .kadowakamatsu-logo {
        width: 63px;
        max-width: 100%;
        height: auto;
      }
    }
  }

  a {
    text-decoration: none;
    color: var(--color-white);
  }
}

.menu-footer {
  display: flex;
  align-items: flex-end;

  a {
    margin-bottom: -0.25rem;
  }
}

footer {
  position: relative;
  margin-top: 120px;
  margin-bottom: 2rem;
  padding-top: 3rem;
  border-top: 1px solid #707070;

  .links {
    display: grid;
    grid-template-columns: auto 25%;
  }

  a {
    text-decoration: none;
    color: var(--color-black);

    &:hover {
      text-decoration: underline;
    }
  }

  .links1, .links2 {
    display: grid;
    grid-template-columns: 23% 23% 23% 23% auto;

    > div {
      display: flex;
      align-items: start;
      flex-direction: column;
      gap: 1rem;
    }
  }

  .links1 {
    min-height: 10rem;
    margin-top: 1rem;
  }

  .links3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-right: -3rem;
  }

  .K {
    font-size: 210px;
    position: absolute;
    z-index: -1;
    top: 3.6rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    color: var(--main-color);
    mix-blend-mode: multiply;
  }

  .logo {
    display: block;
    width: 43px;
    max-width: 100%;
    margin-inline: auto;

    img {
      width: 43px;
      max-width: 100%;
    }
  }
}

.top {
  .background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
}

.top-section1 {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);

  .image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    .images {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: calc(var(--top-charactor-300) / 30 * 29);

      > img {
        margin-inline: auto;

        &.background-vision {
          width: clamp(69px, 6.388888888888888vw, calc(69px * 1.5));
        }

        &.background-company {
          width: clamp(150px, 13.88888888888889vw, calc(150px * 1.5));
        }

        &.background-team {
          width: clamp(114px, 10.555555555555555vw, calc(114px * 1.5));
        }

        &.background-fujisawa-kadowakamatsu {
          width: clamp(179px, 16.574074074074076vw, calc(179px * 1.5));
        }

        &.background-font {
          width: clamp(104px, 9.62962962962963vw, calc(104px * 1.5));
        }
      }

      > span.background {
        font-size: 36px;
        text-align: center;
        color: var(--main-color);
      }

      span:not(.background) {
        font-size: var(--top-charactor-300);
        line-height: var(--top-charactor-300);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--color-blue);
        mix-blend-mode: multiply;
      }
    }

    > p {
      font-family: Helvetica, "Open Sans", serif;
      font-size: var(--top-charactor-caption);
      line-height: 2;
      max-width: var(--top-charactor-300);
      margin-top: 2.25rem;
      text-align: center;
    }

    &.fujisawa-font-images {
      .images {
        > img {
          transform: translateY(5%);
        }

        > div {
          mix-blend-mode: multiply;

          > span:nth-child(1) {
            transform: translate(-24%, -30%);
          }

          > span:nth-child(2) {
            transform: translate(-76%, -86%);
          }
        }
      }

      > p {
        margin-top: -1rem;
      }
    }
  }
}

.section-title {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 7.5rem;
  text-align: center;
  white-space: nowrap;

  .section-title-forward {
    font-size: 30px;
    position: relative;
  }

  .section-title-backward {
    font-size: 88px;
    line-height: 1;
    position: absolute;
    top: -0.3em;
    left: 50%;
    overflow: hidden;
    max-width: 100svw;
    transform: translateX(-50%);
    opacity: 8%;
  }
}

.vision {
  .content {
    margin-top: 3rem;
    margin-bottom: 6rem;

    > .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;

      > p:nth-child(1) {
        font-size: 88px;
        line-height: 0.9;
      }

      > p:nth-child(2) {
        font-size: 18px;
      }

      &:nth-child(1) {
        p {
          margin-bottom: 5rem;
          padding-bottom: 7.5rem;
          border-bottom: 1px solid var(--color-gray);
        }

        > p:nth-child(1) {
          font-size: 88px;
          line-height: 1.1;
        }

        > p:nth-child(2) {
          font-size: 55px;
          line-height: 1.75;
        }
      }
    }

    > p {
      margin-top: 2rem;
    }
  }

  .message1 {
    line-height: 1.38em;
    margin-top: -0.48em;
  }

  .typing-text-2 {
    font-size: 24px;
    text-align: justify;
    text-justify: inter-ideograph;
  }
}

.team {
  position: relative;
  z-index: 10;
  margin-top: -2rem;

  .list {
    display: flex;
    flex-direction: column;
    max-width: 205px;
    margin-bottom: 11.25rem;
    gap: 2.5rem;
    margin-inline: auto;

    > a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 0.5rem;
      text-decoration: none;
      color: var(--color-black);
      border-bottom: 1px solid var(--color-gray);

      > span {
        font-size: 14px;
      }

      > div {
        display: flex;
        gap: 0.75rem;

        > span {
          font-size: 12px;
        }

        &:after {
          display: inline-block;
          width: 1.5rem;
          height: 0.6rem;
          content: "";
          background-color: black;
        }
      }
    }
  }
}

.top14 {
  .questions {
    margin-bottom: 8rem;

    .title {
      padding-bottom: 2rem;
      border-bottom: 1px solid black;
    }

    .question-list {
      display: flex;
      flex-direction: column;
      margin-top: 7rem;
      gap: 5rem;

      .question {
        margin-top: 0.8rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid black;
      }

      .hr {
        display: inline-block;
        width: 100%;
        margin-top: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid black;

        &:before {
          font-size: 12px;
          font-weight: 700;
          display: inline-block;
          content: "<<";
          transform: rotate(-90deg);
        }
      }

      .answer {
        line-height: 2;
        display: none;
        max-width: var(--container-sm-width);
        padding-top: 4.3rem;
        padding-bottom: 3.3rem;
        transition: font-size ease .1s;
        text-align: left;
        margin-inline: auto;

        &.open {
          font-size: 24px;
          display: block;
          max-width: var(--container-width);

          + .hr:before {
            transform: rotate(90deg);
          }
        }
      }
    }
  }
}

.company {
  margin-top: -4.5rem;
  margin-bottom: 6.5rem;

  .icon, .logo {
    width: 66px;
    max-width: 10%;
    height: auto;
    margin-inline: auto;
  }

  .texts {
    line-height: 1.8;
    letter-spacing: 1px;
  }

  .title {
    font-size: 55px;
    display: flex;
    align-items: center;
    flex-direction: column;

    &:after {
      width: 3.55em;
      padding-top: 1.25rem;
      content: "";
      border-bottom: 1px solid black;
    }
  }

  .grid {
    line-height: 2;
    display: grid;
    margin-top: 5rem;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;

    > div {
      max-width: 270px;

      &:nth-child(1) {
        margin-right: 0;
        margin-left: auto;
      }
    }

    .fujisawa {
      line-height: 1.85;
    }
  }

  .company-project {
    margin-top: 9rem;

    .image-container {
      .images {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(var(--top-charactor-300) / 30 * 29);

        > img {
          margin-inline: auto;
        }

        span:not(.background) {
          font-size: 300px;
          line-height: 300px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-52%, -47%);
          color: var(--color-blue);
          mix-blend-mode: multiply;
        }
      }

      > p {
        font-size: 10px;
        line-height: 1.6;
        max-width: 146px;
        margin-top: -1rem;
        margin-bottom: 5rem;
        text-align: center;
        margin-inline: auto;
      }
    }

    .grid-3 {
      font-family: serif;
      display: grid;
      margin-top: 2rem;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 2rem;
      padding-inline: 1rem;

      > a {
        text-decoration: none;
        color: var(--color-black);

        > span {
          font-size: 12px;
          display: flex;
          align-items: center;
          justify-content: space-between;

          &:after {
            display: inline-block;
            width: 1.5rem;
            height: 0.6rem;
            content: "";
            background-color: black;
          }
        }

        > div {
          font-size: 20px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-top: 0.3rem;
          padding-top: 0.6rem;
          border-top: 1px solid black;
          gap: 0.75rem;
        }
      }
    }
  }
}

.fujisawa-font {
  margin-bottom: 8rem;

  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;

    img {
      width: 416px;
      margin-inline: auto;
    }

    .texts1 {
      line-height: 2;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-block: 1.5rem;
    }

    .texts2 {
      padding-top: 2.5rem;

      .auto-resize-textarea {
        max-width: calc((var(--container-width) - 1.5rem) / 2);
        height: 120px;
        background-color: white;

        &:has(textarea:focus) {
          outline: 1px solid gray;
        }
      }

      textarea {
        width: calc((var(--container-width) - 3rem) / 2);
        border: none;
        outline: none;
        field-sizing: content;
      }

      .button-wrapper {
        text-align: center;
      }
    }
  }

  .download-button {
    text-decoration: underline;
    color: var(--color-black);
    background-color: unset;
  }
}

.top-section2 {
  min-height: calc(var(--vh, 1vh) * 100);
  background-color: white;
}

.top-section3 {
  img {
    width: 100%;
  }

  .artwork-by {
    margin-top: 20px;
    text-align: right;
  }
}

.top-section4 {
  overflow-y: hidden;

  .panel-title {
    position: absolute;
    top: 3rem;
    bottom: 3rem;
    left: 1rem;

    > div:nth-child(1) {
      position: absolute;
      bottom: 20px;
      display: flex;
      align-items: flex-end;

      span:nth-child(2) {
        font-size: 60px;
      }

      img {
        width: 34px;
        height: auto;
        margin-bottom: 6px;
      }
    }

    > div:nth-child(2) {
      height: 100%;
      margin-top: 0.75rem;
      transform: translateX(-0.38rem);
      text-align: center;
      writing-mode: vertical-rl;

      p:nth-child(1) {
        transform: translateX(-0.38rem);
      }
    }
  }
}

.top-section5 {
  display: grid;
  height: calc(var(--vh, 1vh) * 100);
  grid-template-columns: 1fr 1fr;

  > div:nth-child(1) {
    position: relative;

    .image-container {
      position: absolute;
      top: 50%;
      right: 0;
      left: -30%;
      transform: translate(0, -50%);
      border-right: 1px solid var(--color-gray);

      .images {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(var(--top-charactor-300) / 30 * 29);

        > img {
          width: clamp(71px, 6.5740740740740735vw, calc(71px * 1.5));
          margin-inline: auto;
        }

        span:not(.background) {
          font-size: var(--top-charactor-300);
          line-height: var(--top-charactor-300);
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-52%, -45%);
          color: var(--color-blue);
          mix-blend-mode: multiply;
        }
      }

      > p {
        font-size: var(--top-charactor-caption);
        line-height: 2;
        max-width: var(--top-charactor-300);
        margin-top: 1rem;
        text-align: center;
        margin-inline: auto;
      }
    }
  }

  .swiper-container {
    overflow: hidden;
    height: calc(var(--vh, 1vh) * 100) !important;
  }

  .swiper-slide {
    position: relative;

    .arrow {
      position: absolute;
      z-index: 10;
      left: 50%;
      width: clamp(1rem, 1.4814814814814816vw, calc(1rem * 1.5));
      height: auto;
      transition: opacity 0.5s ease;
      opacity: 0;

      &.top {
        top: clamp(2rem, 2.9629629629629632vw, calc(2rem * 1.5));
        transform: rotate(180deg) translate(50%, -20%);
      }

      &.bottom {
        bottom: clamp(2rem, 2.9629629629629632vw, calc(2rem * 1.5));
        transform: translate(50%, -20%);
      }
    }

    &.arrow-anim {
      .arrow {
        animation: blink 1s ease-in-out 3;
        opacity: 1;
      }
    }

    &:hover {
      &.p-slide-active {
        .arrow {
          opacity: 1;
        }
      }
    }

    .img {
      position: absolute;
      top: 50%;
      right: 0;
      transition: all 0.1s linear;
      transform: translate(0, -50%);
    }

    &.p-slide-prev {
      .img {
        top: 100%;
        transform: translate(0, -100%);
      }
    }

    &.p-slide-next {
      .img {
        top: 0;
        transform: translate(0, 0%);
      }
    }

    &.p-slide-active {
      z-index: 100;
    }
  }
}

.top-section6 {
  .bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    img {
      width: 145px;
      max-width: 100svw;
      height: auto;
    }

    #sub-text {
      position: absolute;
      top: 50%;
      left: calc(-50vw + 145px / 2);
      transform: translate(100%, -50%);
      white-space: nowrap;
      writing-mode: vertical-lr;
    }
  }

  #scroll-font-size-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
  }

  .welcome {
    position: fixed;
    bottom: calc((var(--vh, 1vh) * 100) / 2 - min(145px, 100svw) / 2 - 5.8rem);
    left: 50%;
    transition: opacity 0.5s linear;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
  }

  .scroll {
    position: relative;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);

    img {
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 1.5rem;
      transition: opacity 0.5s linear;
      opacity: 0;
    }

    .loading {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translate(-50%, 150%);
    }
  }

  .swiper-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding-right: 7rem;
    padding-left: 7.5rem;

    .swiper-wrapper {
      transition-duration: 0.2s !important;
    }

    .swiper-slide {
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 1rem;
    }

    p {
      font-family: Fujisawa, serif;
      font-size: 10px;
      line-height: 0.8;
      left: 20px;
      margin: 0;
      padding-top: 0.1rem;
      padding-bottom: 0.1rem;
      user-select: none;
      transition: top 0.1s ease-in-out;
    }
  }

  .texts, .texts-dummy {
    position: absolute;
    top: 50%;
    right: 7rem;
    bottom: 0;
    left: 7.5rem;
    display: flex;
    overflow: visible;
    flex-direction: column;
    transition: top 0.3s ease-in-out;
    gap: 20px;

    p {
      font-family: Fujisawa, serif;
      font-size: 10px;
      line-height: 0.8;
      left: 20px;
      margin: 0;
      padding-top: 0.1em;
      padding-bottom: 0.1em;
      transition: top 0.2s ease-in-out;
    }

    &.texts-dummy {
      visibility: hidden;
      transition: none;

      p {
        transition: none;
      }
    }
  }
}

.project {
  font-family: "Zen Old Mincho", serif;

  .project-img1 {
    img {
      width: 100%;
      max-height: 415px;
      object-fit: cover;
    }
  }

  .project-img2 {
    img {
      width: 100%;
    }
  }

  .scroll-section {
    img {
      position: absolute;
      right: calc((100vw - var(--container-width)) / 2 - 3%);
      bottom: 0;
      width: 1.5rem;
      height: auto;
    }
  }

  .grid {
    display: grid;
    grid-template-columns: 55% auto;
  }

  .grid1 {
    margin-top: 180px;

    &.has-border {
      margin-top: 130px;
      padding-top: 120px;
      border-top: 1px solid #707070;
    }

    > div:nth-child(1) {
      margin-right: 1rem;
      border-right: 1px solid black;

      > p:nth-child(1) {
        font-size: 120px;
        color: #A0271E;
      }

      > p:nth-child(2) {
        line-height: 2;
        max-width: 302px;
        margin-top: 1.5rem;
      }

      > a {
        display: inline-block;
        margin-top: 1.1rem;
      }
    }

    > div:nth-child(2) {
      .img {
        width: 272px;
        max-width: 100%;

        p {
          margin-top: 0.75rem;
        }
      }

      .font-30 {
        letter-spacing: -0.145rem;
      }
    }

    &.grid1-grid2 {
      > div:nth-child(1) {
        > p:nth-child(2) {
          margin-top: 2.5rem;
        }

        a {
          margin-top: 1.1rem;
        }
      }
    }
  }

  .project-content2 {
    margin-top: 7.5rem;

    .img {
      width: 848px;
      max-width: 100%;
      margin-inline: auto;

      p {
        margin-top: 0.75rem;
      }

      &.area-management-img1 {
        img {
          object-position: 50% 70%;
        }
      }
    }

    .grid2 {
      line-height: 2;
      margin-top: 3rem;

      > div:nth-child(2) {
        position: relative;
        padding-left: 0.25rem;

        .label {
          position: absolute;
          top: 0;
          left: -1rem;
          padding: 0 0.3rem 1.5rem 0;
        }

        p:not(.label) {
          padding-left: 0.75rem;
          border-left: 1px solid black;
        }
      }
    }
  }

  .img2 {
    max-width: var(--container-width);
    margin-top: 11.2rem;
    margin-inline: auto;

    p {
      margin-top: 0.75rem;
    }
  }
}

.grid-3col {
  position: relative;

  > div {
    position: absolute;
    overflow: hidden;
    width: calc((100vw - var(--container-lg-width)) / 2 + var(--container-lg-width));
    height: 1000vh;
    padding-left: calc((100vw - var(--container-lg-width)) / 2);
  }

  .cols {
    position: absolute;
    left: 0;
    display: grid;
    overflow: visible;
    width: calc((100vw - var(--container-lg-width)) / 2 + var(--container-lg-width));
    padding-left: calc((100vw - var(--container-lg-width)) / 2);
    transition: all 0.5s ease-in-out;
    grid-template-columns: repeat(3, calc(var(--container-lg-width) / 2));

    &.open {
      left: calc(var(--container-lg-width) / -2);
    }
  }

  .col {
    position: relative;
    top: 0;
    width: calc(var(--container-lg-width) / 2);
  }

  .col1 {
    position: relative;

    .col1-text {
      position: relative;
      mix-blend-mode: multiply;
      z-index: 10;

      &:after {
        position: absolute;
        top: 50%;
        right: -1rem;
        height: 75svh;
        content: "";
        transition: all 0.1s linear;
        transform: translateY(-50%);
        border-right: 1px solid var(--color-gray);
      }
    }
  }

  .col2 {
    > div {
      position: absolute;
      width: calc(var(--container-lg-width) / 2);
      transition: opacity 0.5s ease;

      .number {
        font-size: 300px;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        color: var(--main-color);

        img {
          width: 170px;
          height: auto;
          margin-top: 30px;

          &.img1 {
            transform: translateX(-10px);
          }
        }
      }

      .title {
        font-size: 50px;
        position: absolute;
        top: 7rem;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
      }

      .sub-title {
        white-space: nowrap;
      }

      .row-foot {
        position: absolute;
        top: 18rem;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
      }
    }
  }

  .toggle-detail {
    font-size: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 0.75rem;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    gap: 1rem;
    margin-inline: auto;

    &:before, &:after {
      display: inline-block;
      width: 12rem;
      content: "";
      transition: all 0.5s ease-in-out;
      opacity: 0;
      border-bottom: 1px solid #707070;
    }

    &.open {
      margin-top: 5rem;

      &:before, &:after {
        opacity: 1;
      }
    }

    &.toggle-read {
      &:before, &:after {
        opacity: 1;
      }
    }
  }

  .col3 {
    display: flex;
    flex-direction: column;
    gap: 180px;
  }

  .col2, .col3 {
    > div {
      transition: opacity 0.5s ease;

      .logo {
        width: 71px;
        height: auto;
        margin-bottom: 3rem;
        margin-inline: auto;
      }

      .quote {
        line-height: 2;
        display: flex;
        flex-direction: column;

        &:before, &:after {
          font-family: Fujisawa, serif;
          font-size: 150px;
          line-height: 1;
          display: inline-block;
          margin-bottom: -5rem;
          content: "“";
        }

        &:after {
          content: "”";
          transform: translateY(-1.5rem);
          text-align: right;
        }
      }

      .message1 {
        line-height: 2;
        margin-top: 4rem;
      }

      .interviewed {
        margin-top: 15rem;
      }
    }
  }
}

.history {
  padding-top: 6rem;

  .col1 {
    > p {
      font-size: 120px;
      position: absolute;
      white-space: nowrap;
      color: var(--main-color);
    }
  }

  .history-footer {
    img, .img-label {
      width: 35vw;
      max-width: 100%;
    }

    .history-footer-table {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

.team-detail {
  > div {
    width: var(--container-lg-width);
    height: 1000vh;
    margin-left: calc((100vw - var(--container-lg-width)) / 2);
    padding-left: 0;
  }

  .top-section7 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: calc(var(--vh, 1vh) * 100);

    .image-container {
      position: relative;

      .images {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 250px;

        > img {
          margin-inline: auto;
        }

        > span.background {
          font-size: clamp(36px, 3.3333333333333335vw, calc(36px * 1.5));
          margin-top: 2.5rem;
          padding-top: 1rem;
          text-align: center;
          color: #A0271E;
        }

        span:not(.background) {
          font-size: var(--top-charactor-200);
          line-height: var(--top-charactor-200);
          position: absolute;
          top: 40%;
          left: 50%;
          transform: translate(-50%, -50%);
          color: var(--color-blue);
          mix-blend-mode: multiply;
        }
      }

      > p {
        font-family: Helvetica, "Open Sans", serif;
        font-size: var(--top-charactor-caption);
        line-height: 2;
        max-width: 300px;
        margin-top: 2.25rem;
        text-align: center;
        margin-inline: auto;
      }
    }

    .bio {
      .info {
        font-size: 14px;
        font-weight: 400;
        display: flex;
        flex-direction: column;
        margin-top: 2.5rem;
        text-align: center;
        gap: 0.75rem;
      }
    }
  }

  .cols {
    width: var(--container-lg-width);
    padding-left: 0;
  }

  .col1 {
    img {
      width: calc(var(--container-lg-width) / 2);
      height: auto;
      padding-right: 1rem;
      border-right: 1px solid #707070;
    }
  }

  .col2 {
    background-color: var(--background-color);

    .profile {
      .profile-title {
        font-size: 36px;
        text-align: center;
      }

      .profile-content {
        max-width: 326px;
        margin-top: 40px;
        margin-inline: auto;
      }
    }

    .chart {
      .profile-content {
        margin-top: 40px;

        > div {
          display: flex;
          justify-content: center;
        }
      }

      dl {
        display: grid;
        margin-top: 40px;
        padding-bottom: 3rem;
        margin-inline: auto;
        grid-template-columns: 1.5rem auto;

        dt {
          font-family: Fujisawa, serif;
          font-size: 15px;
        }

        dd {
          font-size: 13px;
        }
      }
    }

    > div:has(> .question) {
      scroll-snap-align: center;
    }

    .question {

      > div:nth-child(1) {
        margin-inline: 1.5rem;

        .interviewed-by {
          margin-top: 0.25rem;
        }

        &.has-border {
          padding-bottom: 40px;
          border-bottom: 1px solid #707070;
        }
      }

      > div:nth-child(2) {
        line-height: 1.3;
        margin-top: 40px;
      }

      > div:nth-child(3) {
        margin-top: 80px;

        p:nth-child(2) {
          margin-top: 40px;
        }
      }

      > div:nth-child(4) {
        margin-top: 85px;
      }
    }

    .question2 {
      > div:nth-child(3) {
        margin-top: 150px;

        p:nth-child(2) {
          margin-top: 0;
        }
      }

      > div:nth-child(4) {
        margin-top: 150px;
      }
    }
  }

  .col3 {
    z-index: 150;

    .answer {
      p {
        line-height: 2.2;
        max-width: max(300px, 27.5vw);
        margin-inline: auto;
      }
    }

    .answer2 {
      > p:nth-child(2) {
        margin-top: 40px;
      }
    }
  }
}

.auto-resize-textarea {
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;

  textarea {
    font-size: 100px;
    line-height: 1.2;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    resize: none;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.kadowakamatsu-k {
  position: fixed;
  z-index: 100;
  bottom: 1.25rem;
  left: 1rem;
  text-align: center;
  text-decoration: none;

  span {
    font-size: 50px;
    color: #A0271E;
  }

  img {
    width: 64px;
    max-width: 100%;
  }
}

.image-container.anim {
  .anim-target {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
  }
}

.typing {
  &::after {
    padding-left: 0.5em;
    content: "|";
    animation: blink 1s infinite;
    color: inherit;
  }

  &.finished {
    &::after {
      display: none;
    }
  }
}

.window-wrapper {
  position: fixed;
  z-index: 10;
  bottom: 3rem;
  left: 15rem;

  &:has(.window.alert) {
    bottom: calc(50% - 10rem / 2);
    left: calc(50% - min(15rem, 90vw) / 2);
  }
}

.window {
  line-height: 2;
  position: relative;
  width: 125px;
  height: 120px;
  color: var(--window-theme-color);
  border: 2px solid var(--window-theme-color);
  border-top: none;
  background-color: #fff;
  --window-theme-color: #A0271E;

  .window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 17px;
    padding-left: 5px;
    cursor: move;
    user-select: none;
    color: var(--color-white);
    background-color: var(--window-theme-color);

    img {
      position: relative;
      z-index: 15;
      cursor: pointer;
    }
  }

  .window-content {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.5rem;
  }

  .fujisawa {
    line-height: 1.8;
  }

  a {
    color: var(--window-theme-color);
    text-decoration-color: var(--window-theme-color);
  }

  &:after {
    position: absolute;
    z-index: -1;
    top: 0.3rem;
    left: 0.3rem;
    display: inline-block;
    width: 125px;
    height: 120px;
    content: "";
    background-color: var(--window-theme-color);
  }

  &.alert {
    width: min(15rem, 90vw);
    height: 10rem;

    &:after {
      width: min(15rem, 90vw);
      height: 10rem;
    }
  }
}

.toggle-auto-scroll {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  cursor: pointer;
}

.scroll-opacity {
  span {
    opacity: 0.1;
  }
}

.cancel-mail, .cancel-download {
  margin-left: 0.5rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  color: var(--main-color);
  border: none;
  background-color: transparent;
}

.instagram-wrapper {
  margin: var(--margin-7-5) 0;
  text-align: center;

  a {
    display: inline-block;
    width: 35px;
    margin-inline: auto;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
