/* utility
------------------------------------*/
p {
  font-size: 1.5rem;
  line-height: 2;
  letter-spacing: 0.08em;
}

h4 {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.mt-12 {
  margin-top: 12rem;
}

.mt-6 {
  margin-top: 6rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-20 {
  margin-top: 20rem;
}

.text-xl {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.text-lg {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.text-lg-narmal {
  font-size: 2rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
}
.w-full {
  width: 100%;
}

/* .p-message
------------------------------------*/
.p-message {
  padding-bottom: 20rem;
}
.p-message__wrapper--xl {
  max-width: 1200px;
  margin: 0 auto;
}
.p-message__mv {
  height: 120vh;  /* 200vh → 120vh に短縮 */
}
.p-message__mv__logo {
  width: 100%;
  max-width: 460px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 35px;
}
.p-message__mv__logo path {
  fill: #fff;
}
.p-message__mv__inner {
  height: 100vh;
  position: sticky;
  top: 0;
}
.p-message__mv video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.p-message__message {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 3;
  margin: 5rem auto 5rem;  /* 20rem 10rem → 5rem 5rem に大幅短縮 */
  letter-spacing: 0.05em;
  position: relative;
  max-width: 1100px;
  padding-left: 20px;
  padding-right: 20px;
}
@media (max-width: 767px) {
  .p-message__message {
    font-size: 2rem;
    line-height: 2;
    padding: 0 10px;
  }
}
.p-message__video {
  position: relative;
  margin-top: 10rem;  /* 20rem → 10rem に短縮 */
}
.p-message__video__wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.p-message__video .js-brand__video {
  margin: 0 auto;
  width: 70vw;
  height: 70vh;
  display: block;
  background: #d5135e;
  overflow: hidden;
}
/* .js-brand__video::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: rgb(251 38 177 / 48%);
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
} */
@media (max-width: 767px) {
  .p-message__video .js-brand__video {
    width: 80vw;
    height: 90vh;
  }
}
.p-message__video .js-brand__video canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
}
.p-message__video .js-brand__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.1;
  position: relative;
  z-index: 2;
}
.p-message__video .js-brand__video .p-message__video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  opacity: 0;
}
.p-message__video .js-brand__video .p-message__video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-message__video .js-brand__video .p-message__video__play.is-visible {
  opacity: 1;
}
.p-message__video__body {
  max-width: 960px;
  margin: 0 auto;
  padding: 10vh 35px 50vh;
  font-size: 2.4rem;
  font-weight: bold;
  color: #fff;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 767px) {
  .p-message__video__body {
    padding: 10vh 10px 50vh;  /* 100vh 10px 50vh → 10vh 10px 30vh に短縮 */
  }
}
.p-message__video__body h2 {
  font-size: 8.8rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin-bottom: 50vh;
  text-shadow: rgba(213, 19, 94, 0.3) 1px 0 10px;
}
@media (max-width: 767px) {
  .p-message__video__body h2 {
    font-size: 4.2rem;
  }
}
.p-message__video__body h3 {
  line-height: 2;
  font-weight: bold;
  font-size: 3.2rem;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
}
@media (max-width: 767px) {
  .p-message__video__body h3 {
    font-size: 2rem;
  }
}
.p-message__video__body p {
  line-height: 2;
  letter-spacing: 0.08em;
  font-size: 2rem;
  margin-top: 4rem;
}
@media (max-width: 767px) {
  .p-message__video__body p {
    font-size: 1.6rem;
  }
}
.p-message__video__body div {
  max-width: 740px;
}
.p-message__video__body div + div {
  /* margin-top: 20vh; */
  margin-top: 20rem;
}
@media (max-width: 767px) {
  .p-message__video__body div + div {
    margin-top: 15rem;
  }
}

.js-brand__video-area.is-masking {
  mask-size: 100% 100%;
  mask-position: bottom;
  mask-image: linear-gradient(0deg, transparent 0%, transparent max(0%, var(--mask-progress, 0%) - 100%), black calc(var(--mask-progress, 0%)), black 100%);
}

/* Character fade animation
------------------------------------*/
.item {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: #000;
}

.char-fade {
  display: inline-block;
  opacity: 0.2;
}
.char-fade.is-visible {
  opacity: 1;
}

.js-word-fadein::selection .char-fade {
  opacity: 1;
}

.b_box img {
  width: 100%;
}

/* Philosophy area
------------------------------------*/
.p-message__philosophy {
  display: grid;
  grid-template-columns: 56% 30%;
  gap: 14%;
  margin-top: 10rem;
  padding: 0 35px;
}
@media (max-width: 767px) {
  .p-message__philosophy {
    margin-top: 0;
    padding: 0 10px;
    grid-template-columns: 100%;
    gap: 8rem;
  }
}
@media (max-width: 767px) {
  .p-message__philosophy__image {
    width: 70%;
    margin: 0 auto;
  }
}

/* Culture area
------------------------------------*/
.p-message__culture {
  display: grid;
  grid-template-columns: 40% 60%;
  margin-top: 30rem;
  padding: 0 35px;
}
@media (max-width: 767px) {
  .p-message__culture {
    padding: 0 10px;
    grid-template-columns: 100%;
    margin-top: 22rem;
    gap: 4rem;
  }
}
.p-message__culture__title {
  text-align: center;
}
.p-message__culture__title h2 {
  line-height: 1.4;
}
.p-message__culture__title span {
  font-size: 0.5em;
}
.p-message__culture__content h3 {
  margin: 6rem 0 0.8rem;
}
.p-message__culture__content h3:first-child {
  margin-top: 0.5rem;
}
.p-message__culture__content ul {
  display: grid;
  grid-template-columns: 38% 58%;
  gap: 4%;
  margin-top: 4rem;
}
.p-message__culture__content ul li {
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
}
.p-message__culture__content ul li img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}

/* System area
------------------------------------*/
.p-message__system {
  display: grid;
  grid-template-columns: 40% 60%;
  margin-top: 30rem;
  padding: 0 35px;
}
@media (max-width: 767px) {
  .p-message__system {
    padding: 0 10px;
    grid-template-columns: 100%;
    margin-top: 22rem;
    gap: 4rem;
  }
}
.p-message__system__title {
  text-align: center;
}
.p-message__system__title h2 {
  line-height: 1.4;
}
.p-message__system__title span {
  font-size: 0.5em;
}
.p-message__system__content h3 {
  margin: 6rem 0 0.8rem;
}
.p-message__system__content h3:first-child {
  margin-top: 0.5rem;
}
.p-message__system__content h4 {
  margin: 2.5rem 0 0;
  font-size: 1.6rem;
}
.p-message__system__content ul {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
}
.p-message__system__content ul li {
  border-radius: 0.5rem;
  overflow: hidden;
}
.p-message__system__content ul li:first-child{
  width: 53.83%;
}
.p-message__system__content ul li:nth-child(2){
  width: 42.04%;
}
.p-message__system__content ul li img{
  width: 100%;
  height: auto;
}

/* Airugo area
------------------------------------*/
.p-message__airugo {
  max-width: 960px;
  margin: 25rem auto 0;
  background: #F8F8F8;
  border-radius: 2rem;
}
.p-message__airugo__header {
  padding: 8rem 8rem 0;
}
@media (max-width: 767px) {
  .p-message__airugo__header {
    padding: 4rem 2rem 0;
  }
}
.p-message__airugo h2 {
  line-height: 1.8;
  font-size: 2.4rem;
  letter-spacing: 0.15em;
}
.p-message__airugo h2 + p {
  font-size: 1.4rem;
  margin-top: 1.8rem;
    margin-top: 1.8rem;
    margin-bottom: 2.8rem;
}
.p-message__airugo span {
  font-size: 0.6em;
}
.p-message__airugoArea {
  aspect-ratio: 4/3;
  margin-top: 3rem;
  background: #e1e1e1;
}
.p-message__airugo__footer {
  opacity: 0;
}

/* Corporate Identity area
------------------------------------*/
.p-message__corporateIdentity {
  margin-top: 15rem;
}
.p-message__corporateIdentity h2 {
  font-weight: bold;
    font-size: 2rem;
}
.p-message__corporateIdentity img {
  width: 100%;
  display: block;
  margin: 2rem 0;
}
.p-message__corporateIdentity p {
  font-size: 1.4rem;
}

/* Corporate Tools area
------------------------------------*/
.p-message__corporateTools {
  margin-top: 15rem;
}
.p-message__corporateTools h2 {
  font-weight: bold;
    font-size: 2rem;
}
.p-message__corporateTools img {
  width: 100%;
  display: block;
  margin: 2rem 0;
}

/* Airugo area
------------------------------------*/
header {
  margin-bottom: 30px;
}

header p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

header h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

header .description {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.words-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  border-radius: 8px;
}
@media (max-width: 767px) {
  .words-container {
    height: 650px;
  }
}

.word-item {
  position: absolute;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  transform-origin: center center;
}

.word-item:active {
  cursor: grabbing;
}

.word-item.style-plain {
  color: #333;
}

.word-item.style-pill-red {
  background: #BC1E21;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
}

.word-item.style-pill-orange {
  background: #F25623;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
}

.word-item.style-pill-teal {
  background: #003F51;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
}

.word-item.style-pill-brown {
  background: #785E52;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
}

.word-item.style-outline {
  border: 2px solid #333;
  padding: 8px 20px;
  border-radius: 50px;
  color: #333;
}

.word-item.style-vertical {
  writing-mode: vertical-rl;
  color: #333;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.controls button {
  padding: 12px 24px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.controls button.primary {
  background: #e85a1c;
  color: white;
}

.controls button.primary:hover {
  background: #d14d12;
}

.controls button.secondary {
  background: #eee;
  color: #333;
}

.controls button.secondary:hover {
  background: #ddd;
}

.status {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
}

.error {
  color: #e85a1c;
  padding: 20px;
  text-align: center;
}