/* =========================
   Global
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#wrap {
  width: 100%;
}

/* =========================
   Hero
========================= */

.hero-section {
  position: relative;
  width: 100%;
  height: 1024px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 1024px;
  overflow: hidden;
  z-index: 1;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image {
  z-index: 1;
}

.hero-overlay {
  z-index: 2;
  left: -40px;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  margin-left: 66px;
  z-index: 2;
  color: #000;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;
}

.hero-title {
  font-size: 60px;
  font-family: "Cantata One", serif;
  white-space: nowrap;
}

.hero-tagline,
.hero-message {
  font-size: 32px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.hero-tagline--ja,
.hero-message--ja {
  font-size: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.hero-brand {
  font-size: 36px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  color: rgba(0, 0, 0, 1);
}

.hero-keyword {
  font-size: 32px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 1);
}

.hero-brand--ja {
  font-size: 32px;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  color: rgba(0, 0, 0, 1);
}

.hero-keyword--ja {
  font-size: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  color: rgba(0, 0, 0, 1);
}

.br-mobile {
  display: none;
}

/* Desktop: Hero (≥1025px, hover) */

@media screen and (min-width: 1025px) {
  .hero-content {
    opacity: 0;
    transform: translateY(15px);
  }

  .hero-media:hover .hero-overlay {
    opacity: 1;
    transition: opacity 0.6s ease 0s;
  }

  .hero-media:hover + .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s;
  }
}

/* Tablet: Hero (≤1024px) */

@media screen and (max-width: 1024px) {
  .hero-section,
  .hero-media {
    height: 80vh;
  }

  .hero-overlay {
    opacity: 1;
    transition: none;
    left: -40px;
    pointer-events: none;
  }

  .hero-content {
    margin-left: 5vw;
  }

  .hero-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem);
  }

  .hero-tagline,
  .hero-message,
  .hero-keyword {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  }

  .br-mobile {
    display: none;
  }

  .hero-brand {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }
}

/* Mobile: Hero (≤768px) */

@media screen and (max-width: 768px) {
  .hero-section,
  .hero-media {
    height: 60vh;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero-tagline,
  .hero-message,
  .hero-keyword {
    font-size: clamp(0.8rem, 4vw, 1.4rem);
  }

  .br-mobile {
    display: inline;
  }

  .hero-brand {
    font-size: clamp(1rem, 4vw, 1.6rem);
  }
}

/* =========================
   CEO Message
========================= */

.ceo-message {
  position: relative;
  width: 100%;
  height: 1024px;
}

.ceo-message__bg {
  position: absolute;
  width: 100%;
  height: 1024px;
}

.ceo-message__bg-img__wrap {
  position: absolute;
  display: inline-block;
  width: min(70vw, 927px);
  height: auto;
  aspect-ratio: 927 / 800;
  top: clamp(16px, 10vh, 100px);
  left: clamp(20px, 6vw, 166px);
  border-radius: 0 40px 40px 40px;
  overflow: hidden;
  z-index: 1;
}

.ceo-message__bg-img__wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.ceo-message__bg-img__wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(229, 9, 20, 0.2);
  z-index: 1;
  border-radius: inherit;
}

.ceo-message__bg-color {
  position: absolute;
  width: min(70vw, 927px);
  height: auto;
  aspect-ratio: 927 / 800;
  top: clamp(36px, 16vh, 174px);
  right: clamp(20px, 6vw, 155px);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 40px 40px 0 40px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ceo-message__content,
.ceo-message__content--ja {
  width: 784px;
  height: 471px;
  padding: 10px 10px;
  margin: 68px 93px;
  line-height: 48px;
  font-size: 24px;
  white-space: nowrap;
}

.ceo-message__content {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

.ceo-message__content--ja {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 20px;
}

.ceo-message__brand,
.ceo-message__brand--ja {
  font-size: 32px;
  font-weight: 500;
}

.ceo-message__keyword,
.ceo-message__keyword--ja {
  font-size: 24px;
  font-weight: 600;
}

.ceo-message__brand {
  font-family: "Roboto", sans-serif;
}

.ceo-message__keyword {
  font-family: "Roboto", sans-serif;
}

.ceo-message__brand--ja,
.ceo-message__keyword--ja {
  font-family: "Inter", sans-serif;
  color: #fff;
}

.ceo-message__sign {
  position: absolute;
  right: clamp(10px, 8vw, 120px);
  bottom: clamp(12px, 20vh, 40px);
  transform: rotate(-10deg);
  z-index: 3;
}

.ceo__sign {
  width: 320px;
  height: auto;
}

/* Tablet: CEO Message (≤1024px) */

@media screen and (max-width: 1024px) {
  .ceo-message {
    height: 80vh;
    min-height: 600px;
    position: relative;
    padding: 0;
    overflow: hidden;
  }

  .ceo-message__bg {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .ceo-message__bg-img__wrap {
    top: clamp(16px, 12vh, 50px);
    left: clamp(20px, 6vw, 166px);
    width: clamp(520px, 48vw, 927px);
    height: clamp(420px, 60vh, 800px);
    border-radius: 0 32px 32px 32px;
  }

  .ceo-message__bg-img__wrap::after {
    border-radius: 0 32px 32px 32px;
  }

  .ceo-message__bg-color {
    top: clamp(24px, 14vh, 124px);
    right: clamp(20px, 6vw, 155px);
    width: clamp(520px, 48vw, 927px);
    height: clamp(420px, 60vh, 800px);
    border-radius: 32px 32px 0 32px;
  }

  .ceo-message__content,
  .ceo-message__content--ja {
    width: min(88%, 640px);
    height: auto;
    margin: clamp(16px, 3vh, 32px) clamp(12px, 2vw, 24px);
    padding: 6px 8px;
    line-height: 32px;
    font-size: clamp(16px, 1.4vw, 20px);
  }

  .ceo-message__brand,
  .ceo-message__brand--ja {
    font-size: clamp(20px, 2vw, 26px);
  }

  .ceo-message__keyword,
  .ceo-message__keyword--ja {
    font-size: clamp(16px, 1.4vw, 20px);
  }

  .ceo-message__sign {
    right: clamp(20px, 4vw, 120px);
    bottom: clamp(4px, 1vh, 20px);
  }

  .ceo__sign {
    width: clamp(200px, 20vw, 320px);
  }
}

/* Mobile: CEO Message (≤768px) */

@media screen and (max-width: 768px) {
  .ceo-message {
    width: 100%;
    height: auto;
    padding: 24px 16px;
    overflow: hidden;
  }

  .ceo-message__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .ceo-message__bg-img__wrap {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .ceo-message__bg-img__wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ceo-message__bg-img__wrap::after {
    border-radius: 0;
  }

  .ceo-message__bg-color {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 480px;
    width: 100%;
    padding: 16px 12px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ceo-message__content,
  .ceo-message__content--ja {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    line-height: 1.7;
    color: #fff;
    font-size: clamp(12px, 3.8vw, 12px);
  }

  .ceo-message__brand,
  .ceo-message__brand--ja {
    font-size: clamp(12px, 4.8vw, 16px);
  }

  .ceo-message__keyword,
  .ceo-message__keyword--ja {
    font-size: clamp(12px, 3.8vw, 16px);
  }

  .ceo-message__sign {
    position: absolute;
    right: clamp(20px, 4vw, 160px);
    bottom: clamp(4px, 2vh, 40px);
    max-width: 420px;
    display: flex;
    justify-content: flex-end;
    transform: rotate(-10deg);
  }

  .ceo__sign {
    width: clamp(200px, 20vw, 200px);
  }
}

/* =========================
   Values
========================= */

.values {
  position: relative;
  width: 100%;
  height: 1024px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.values__bg {
  position: relative;
  width: 100%;
  height: 1024px;
  overflow: hidden;
  z-index: 1;
}

.values__bg-img,
.values__bg-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.values__bg-img {
  z-index: 1;
}

.values__bg-shape {
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.values__content {
  position: absolute;
  margin-left: 120px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 800px;
  height: 522px;
  gap: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.values__core,
.values__philosophy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.values__title {
  font-size: 56px;
  line-height: 84px;
  font-family: "Cantata One", serif;
  font-weight: 400;
}

.values__desc,
.values__text {
  font-size: 24px;
  line-height: 36px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.values__subtitle {
  font-size: 48px;
  line-height: 72px;
  -webkit-text-stroke: rgba(0, 0, 0, 0.6) 2px;
  color: rgba(2, 22, 51, 0.2);
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

/* Desktop hover: Values (≥1025px) */

@media screen and (min-width: 1025px) and (hover: hover) {
  .values:hover .values__bg-shape {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .values:hover .values__content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
  }
}

/* Tablet: Values (≤1024px) */

@media screen and (max-width: 1024px) {
  .values {
    height: 80vh;
    min-height: 600px;
    padding: 0;
  }

  .values__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .values__bg-img,
  .values__bg-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .values__bg-shape {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .values__content {
    top: 50%;
    left: clamp(24px, 6vw, 120px);
    transform: translateY(-50%);
    width: min(88vw, 800px);
    max-width: 800px;
    height: auto;
    margin: 0;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    opacity: 1;
    transition: none;
  }

  .values__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
  }

  .values__desc,
  .values__text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
  }

  .values__subtitle {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.35;
    -webkit-text-stroke: rgba(0, 0, 0, 0.6) 1.5px;
  }

  .values:hover .values__bg-shape {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .values:hover .values__content {
    opacity: 1;
    transform: translateY(-50%);
    transition: none;
  }
}

/* Mobile: Values (≤768px) */

@media screen and (max-width: 768px) {
  .values {
    height: 80vh;
    min-height: 560px;
  }

  .values__content {
    left: clamp(20px, 6vw, 120px);
    width: min(92vw, 720px);
    max-width: 720px;
    gap: 16px;
  }

  .values__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.3;
  }

  .values__desc,
  .values__text {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    line-height: 1.6;
  }

  .values__subtitle {
    font-size: clamp(1.4rem, 5.4vw, 1.9rem);
    line-height: 1.35;
    -webkit-text-stroke: rgba(0, 0, 0, 0.5) 1px;
  }

  .values:hover .values__bg-shape {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .values:hover .values__content {
    opacity: 1;
    transform: translateY(-50%);
    transition: none;
  }
}

/* =========================
   Company
========================= */

.company {
  width: 100%;
  height: 1024px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company__grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 0 200px;
}

.company__map {
  width: 380px;
  height: 380px;
}

.company__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.company__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: "Roboto", sans-serif;
}

.company__info-title {
  font-size: 40px;
  letter-spacing: -4%;
  font-weight: 600;
}

.company__table {
  border-spacing: 34px 20px;
}

.company__table th {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -4%;
  font-weight: 500;
  white-space: nowrap;
}

.company__table td {
  font-size: 24px;
  line-height: 34px;
  letter-spacing: -4%;
  font-weight: 400;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.6);
}

/* Tablet: Company (≤1024px) */

@media screen and (max-width: 1024px) {
  .company {
    height: 80vh;
    min-height: 560px;
  }

  .company__grid {
    gap: 28px;
    padding: 0 6vw;
  }

  .company__map {
    width: 320px;
    height: 320px;
  }

  .company__info-title {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
  }

  .company__table {
    border-spacing: 24px 16px;
  }

  .company__table th {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.4;
    white-space: nowrap;
  }

  .company__table td {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
    white-space: nowrap;
  }
}

/* Mobile: Company (≤768px) */

@media screen and (max-width: 768px) {
  .company {
    height: auto;
    min-height: 0;
    padding: 2rem 1rem;
  }

  .company__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0;
  }

  .company__map {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .company__info {
    align-items: center;
    gap: 12px;
  }

  .company__info-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .company__table {
    width: 100%;
    border-spacing: 16px 10px;
  }

  .company__table th {
    font-size: clamp(0.8rem, 4.2vw, 1.1rem);
    line-height: 1.5;
    white-space: nowrap;
  }

  .company__table td {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.6;
    white-space: nowrap;
  }
}
