.as-message {
  position: relative;
  overflow: hidden;
  padding: 40px 0 80px;
  background: #fff;
  color: #0b1220;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

.as-message__inner {
  position: relative;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  z-index: 2;
  min-height: 820px;
}

.as-message__rail {
  position: absolute;
  left: 200px;
  top: -10px;
  width: 150px;
  height: calc(100% + 120px);
  background: rgba(11, 18, 32, 0.04);
  overflow: hidden;
  z-index: 1;
}

.as-message__railFill {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.05);
  transform: scaleY(0);
  transform-origin: top;
}

.as-message__railWord {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 102px;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(11, 18, 32, 0.08);
  user-select: none;
  pointer-events: none;
  transform: translateY(-109px);
}

.as-message__arrows {
  position: absolute;
  left: calc(200px + 75px);
  top: 90%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 10;
}

.as-message__arrows span {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  opacity: 0.18;
  transform: rotate(45deg);
  transition: opacity 0.3s;
}

.as-message__arrows span:nth-child(1) {
  border-color: #8cc63f;
  opacity: 0.55;
  animation: arrowGlow 1.8s infinite ease-in-out;
}

.as-message__arrows span:nth-child(2) {
  border-color: #2f7fd1;
  opacity: 0.7;
  animation: arrowGlow 1.8s infinite ease-in-out;
  animation-delay: 0.25s;
}

.as-message__arrows span:nth-child(3) {
  border-color: #004ea2;
  opacity: 1;
  animation: arrowGlow 1.8s infinite ease-in-out;
  animation-delay: 0.5s;
}

@keyframes arrowGlow {
  0% {
    opacity: 0.18;
  }

  25% {
    opacity: 0.95;
  }

  50% {
    opacity: 0.45;
  }

  100% {
    opacity: 0.18;
  }
}

.as-message__head {
  position: relative;
  z-index: 3;
  margin: 0 0 80px;
  padding-left: 0;
}

.as-message__title {
  margin: 0 0 14px;
  font-size: 102px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-family: "Noto Serif JP", Georgia, serif;
  transform: translateX(-5px);
}

.as-message__titleMain {
  font-size: 102px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
}

.as-message__titleMain > span {
  color: #8cc63f;
}

.as-message__content {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 28px;
  align-items: start;
  padding-left: 170px;
}

.as-message__body {
  max-width: none;
  padding-top: 18px;
  font-family: "Noto Sans";
}

.as-message__lead {
  margin: 0 0 56px;
  font-size: 45px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: 600px;
}

.as-message__text {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 2.05;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.as-message__name {
  margin: 42px 0 0;
  margin-right: 0;
  font-size: 30px;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: right;
}

.as-message__right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
  margin-top: 150px;
}

.as-message__photo {
  margin: 0;
  width: 520px;
  height: 350px;
  align-self: start;
  overflow: hidden;
}

.as-message__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.as-message__right:hover .as-message__photo img {
  transform: scale(1.08);
}

.as-message__more {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  min-width: 240px;
  padding-bottom: 14px;
  border-bottom: 1px solid #8cc63f;
  color: #8cc63f;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.as-message__moreText {
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.as-message__moreArrow {
  display: inline-block;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  transform: translate(0, -2px);
  transition: transform 0.3s ease;
}

.as-message__more:hover .as-message__moreArrow {
  transform: translate(8px, -2px);
}

.as-message__head,
.as-message__content,
.as-message__more {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.as-message.is-in .as-message__head,
.as-message.is-in .as-message__content,
.as-message.is-in .as-message__more {
  opacity: 1;
  transform: translateY(0);
}

.as-message__content {
  transition-delay: 0.2s;
}

.as-message__more {
  transition-delay: 0.4s;
}

.as-message__brandBg {
  position: absolute;
  left: -180px;
  top: 40%;
  transform: translateY(-50%) rotate(-90deg);
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
  color: #5f5f5f;
}

.as-message__brandSvg {
  width: 600px;
  height: auto;
}

.as-message__brandBg img {
  display: block;
  width: 560px;
  height: auto;
  transform-origin: center center;
  filter: brightness(0);
}

@media (max-width: 767px) {
  .as-message {
    padding: 0 0 40px;
    background: #fff;
  }

  .as-message__inner {
    width: calc(100% - 28px);
    margin: 30px auto 0;
    min-height: auto;
    box-sizing: border-box;
  }

  .as-message__rail {
    left: 14px;
    top: 0;
    width: 62px;
    height: 380px;
    background: rgba(11, 18, 32, 0.05);
    overflow: hidden;
  }

  .as-message__railFill {
    background: rgba(11, 18, 32, 0.04);
    transform: none;
  }

  .as-message__railWord {
    inset: auto;
    top: 29px;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: rgba(11, 18, 32, 0.1);
    transform: none;
  }

  .as-message__head {
    position: relative;
    z-index: 3;
    margin: 0 0 18px;
    padding-left: 9px;
  }

  .as-message__title,
  .as-message__titleMain {
    margin: 0;
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    transform: none;
  }

  .as-message__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 88px;
    box-sizing: border-box;
  }

  .as-message__body,
  .as-message__right {
    display: contents;
  }

  .as-message__lead {
    order: 1;
    width: 100%;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
    box-sizing: border-box;
  }

  .as-message__photo {
    order: 2;
    width: 100%;
    height: auto;
    margin: 0 0 20px;
    box-sizing: border-box;
  }

  .as-message__photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .as-message__text {
    order: 3;
    width: 100%;
    max-width: none;
    font-size: 12px;
    line-height: 1.55;
    box-sizing: border-box;
  }

  .as-message__name {
    order: 4;
    width: 100%;
    margin-top: 10px;
    font-size: 15px;
    text-align: left;
    box-sizing: border-box;
  }

  .as-message__more {
    order: 5;
    position: static;
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 16px;
    margin: 24px 20px 0 auto;
    padding: 0 0 10px;
    border-bottom: 1px solid #8fc31f;
    min-width: 0;
    width: fit-content;
    max-width: none;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .as-message__moreText {
    width: auto;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .as-message__moreArrow {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    transform: translate(0, -2px);
    transition: transform 0.3s ease;
  }

  .as-message__arrows {
    position: absolute;
    left: 11%;
    top: 80%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
  }

  .as-message__arrows span {
    width: 18px;
    height: 18px;
  }

  .as-message__brandBg {
    display: none;
  }

  .as-message__body,
  .as-message__lead,
  .as-message__text,
  .as-message__name,
  .as-message__moreText {
    font-family:
      "Noto Sans JP",
      "Noto Sans",
      system-ui,
      -apple-system,
      "Segoe UI",
      sans-serif;
    font-style: normal;
  }
}

@media (min-width: 1280px) and (max-width: 1580px) {
  .as-message {
    padding: 40px 0 80px;
    background: #fff;
  }
  .as-message__inner {
    width: calc(100% - 40px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 700px;
  }
  .as-message__rail {
    left: 130px;
    top: 0;
    width: 120px;
    height: calc(100% + 20px);
    background: rgba(11, 18, 32, 0.04);
    overflow: hidden;
  }
  .as-message__railFill {
    background: rgba(11, 18, 32, 0.05);
  }
  .as-message__railWord {
    font-size: 84px;
    line-height: 1.05;
    letter-spacing: 0.06em;
    transform: translateY(-70px);
  }
  .as-message__head {
    margin: 8px 0 48px;
    padding-left: 128px;
    position: relative;
    z-index: 3;
  }
  .as-message__title,
  .as-message__titleMain {
    font-size: 84px;
    line-height: 1;
    letter-spacing: 0.14em;
    transform: none;
  }
  .as-message__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
    margin-left: 260px;
    padding-left: 0;
    width: calc(100% - 260px);
    max-width: 1180px;
    box-sizing: border-box;
  }
  .as-message__body {
    padding-top: 20px;
    max-width: 600px;
    min-width: 0;
  }
  .as-message__lead {
    margin: 0 0 40px;
    font-size: clamp(28px, 2vw, 34px);
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.04em;
    width: auto;
    white-space: normal;
  }
  .as-message__text {
    margin: 0;
    max-width: 100%;
    font-size: clamp(18px, 1vw, 17px);
    line-height: 2;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .as-message__name {
    margin: 28px 0 0;
    max-width: 100%;
    font-size: 22px;
    line-height: 1.8;
    text-align: right;
    padding-right: 16px;
  }
  .as-message__right {
    display: flex;
    flex-direction: column;
    width: 420px;
    margin-top: 60px;
    padding-left: 0;
    align-items: flex-start;
    min-width: 0;
  }
  .as-message__photo {
    width: 100%;
    max-width: 100%;
    height: 300px;
    overflow: hidden;
  }
  .as-message__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .as-message__more {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    margin-right: 20px;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #8cc63f;
    color: #8cc63f;
    text-decoration: none;
    white-space: nowrap;
  }
  .as-message__moreText {
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  .as-message__moreArrow {
    font-size: 30px;
    line-height: 1;
    transform: translate(0, -2px);
  }
  .as-message__arrows {
    left: 183px;
    top: auto;
    bottom: 24px;
    transform: none;
    gap: 16px;
  }
  .as-message__arrows span {
    width: 18px;
    height: 18px;
  }
  .as-message__brandBg {
    position: absolute;
    left: -220px;
    top: 45%;
    transform: translateY(-50%) rotate(-90deg);
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    color: #5f5f5f;
  }
  .as-message__brandSvg {
    width: 600px;
    height: auto;
  }
  .as-message__brandBg img {
    display: block;
    width: 560px;
    height: auto;
    transform-origin: center center;
    filter: brightness(0);
  }
}
