.container {
  grid-template-rows: var(--header-height) 1fr auto;
  min-height: 100vh;
  overflow-x: hidden;
  min-height: 100dvh;
  margin: 0 auto;
}

@media screen and (max-width: 1440px) {
  .container {
    width: 100%;
    max-width: 1440px;
  }
}

header {
  grid-area: header;
  height: auto;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 10;
}

main {
  grid-area: main;
  position: relative;
}

/* mainの背景ノイズ用のスタイル */
.main-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

footer {
  grid-area: footer;
  background: linear-gradient(
    180deg,
    rgba(6, 17, 107, 0.9) 0%,
    rgba(42, 126, 163, 0.9) 99.04%
  );

  .inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 800px;
    padding: 50px 0 60px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  footer {
    .inner {
      gap: 0;
      max-width: 800px;
      padding: 30px 0;
      margin: 0 auto;
    }
  }
}

.header-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 30px;
}

@media screen and (max-width: 768px) {
  .header-inner {
    padding: 0;
    gap: 0;
  }
}

.header-main {
  display: flex;
  align-items: center;
  max-width: fit-content;
  gap: 10px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .header-main {
    gap: 6px;
    padding: 0 4px;
  }
}

.header-title-img {
  width: 100px;
}

@media screen and (max-width: 768px) {
  .header-title-img {
    width: 65px;
  }
}

@media screen and (max-width: 375px) {
  .header-title-img {
    width: clamp(50px, 17.3vw, 65px);
  }
}

.header-logo {
  width: 285px;
}

@media screen and (max-width: 768px) {
  .header-logo {
    width: 185px;
  }
}

@media screen and (max-width: 370px) {
  .header-logo {
    width: clamp(160px, 50vw, 185px);
  }
}

.header-title {
  font-weight: 600;
  font-size: 20px;
  color: #006;
  letter-spacing: 0.36em;
}

@media screen and (max-width: 768px) {
  .header-title {
    font-size: 13px;
  }
}

.header-logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media screen and (max-width: 768px) {
  .header-logo-wrapper {
    gap: 5px;
  }
}

.sns {
  align-items: center;
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: flex-end;
  padding: 34px 30px;
}

@media screen and (max-width: 768px) {
  .sns {
    padding: 20px;
  }
}

@media screen and (max-width: 350px) {
  .sns {
    padding: 20px 10px;
  }
}

.sns-icon {
  width: 32px;
  height: 32px;
  display: block;
}

@media screen and (max-width: 768px) {
  .sns-icon {
    width: 20px;
    height: 20px;
  }
}

.inner {
  width: 1440px;
  margin: 0 auto;
  position: relative;
}

@media screen and (max-width: 1440px) {
  .inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
  }
}

.kv-section {
  position: relative;
  z-index: 1;
}

.kv {
  position: absolute;
  padding-bottom: 60px;
  top: 0;
  z-index: 5;
  width: 100%;
  margin: 120px auto;
}

@media screen and (max-width: 768px) {
  .kv {
    padding-bottom: 0;
    margin: 135px auto 0;
  }
}

.kv-img-wrapper {
  z-index: -1;
  position: relative;
  width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

@media screen and (max-width: 1440px) {
  .kv-img-wrapper {
    width: 100%;
    max-width: 1440px;
  }
}

.kv-img {
  z-index: 1;
  opacity: 0;
  position: absolute;
  left: -4%;
  animation-name: kv-fade;
  animation-duration: 15s;
  animation-iteration-count: infinite;
}

@media screen and (max-width: 450px) {
  .kv-img {
    left: -70%;
  }
}

@keyframes kv-fade {
  0% {
    opacity: 0;
    transform: translateX(4%);
    z-index: 2;
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    z-index: 0;
    transform: translateX(0);
  }
}

@media screen and (max-width: 1000px) {
  .kv-img img {
    height: 700px;
  }
}

@media screen and (max-width: 768px) {
  .kv-img img {
    height: 375px;
  }
}

.kv-main {
  position: relative;
  max-width: 576px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 57px;
  width: 576px;
  z-index: 5;
}

@media screen and (max-width: 1440px) {
  .kv-main {
    width: 100%;
    max-width: 576px;
  }
}

@media screen and (max-width: 768px) {
  .kv-main {
    padding-top: 0;
    gap: 12px;
  }
}

.kv-circle {
  position: absolute;
  top: -60px;
  width: 718px;
  height: 379px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.kv-title {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .kv-circle {
    top: -140px;
  }
  .kv-title {
    max-width: 360px;
  }
}

.kv-logo {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.kv-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .kv-text-wrapper {
    gap: 15px;
  }

  .kv-logo {
    max-width: 295px;
  }
}

.kv-text {
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: #006;
}

.kv-text-small {
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #006;
}

@media screen and (max-width: 768px) {
  .kv-text-small {
    font-size: 26px;
  }
}

.message-wrapper {
  display: flex;
  width: 100%;
  height: auto;
  background: url(./../img/message-bg.png) no-repeat center center;
  aspect-ratio: 720 / 373;
  background-size: cover; /* 画像が見切れないようにcover→containに変更 */
  margin: 100px 0 0;
}

@media screen and (max-width: 768px) {
  .message-wrapper {
    width: 100%;
    height: auto;
    background: url(./../img/message-bg_sp.png) no-repeat center center;
    aspect-ratio: 375 / 670;
    background-size: cover;
    margin: 0 0 60px;
  }
}

@media screen and (max-width: 768px) {
  .kv-text {
    font-size: 24px;
  }
}

.kv-text-shadow {
  text-shadow: #fff 0 0 10px, #fff 0 0 10px, #fff 0 0 10px, #fff 0 0 10px,
    #fff 0 0 10px, #fff 0 0 10px, #fff 0 0 10px;
}

.kv-text-ls {
  letter-spacing: normal;
}

@media screen and (max-width: 768px) {
  .kv-text-ls {
    font-size: clamp(10px, 6.9vw, 24px);
  }
}

.kv-text-date {
  font-size: 30px;
  color: #006;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .kv-text-date {
    font-size: 22px;
  }
}

.kv-text-date span {
  font-size: 24px;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .kv-text-date span {
    font-size: 16px;
  }
}

.kv-youtube-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #fff;
  margin: 58px auto 0;
  width: 100%;
  max-width: 508px;
  position: relative;
  z-index: 6;
}

@media screen and (max-width: 768px) {
  .kv-youtube-wrapper {
    width: 90%;
    padding: 16px;
  }
}
@media screen and (max-width: 375px) {
  .kv-youtube-wrapper {
    padding: 16px;
    max-width: 90%;
    margin: 58px 16px;
  }
}

.kv-youtube {
  text-align: center;
  aspect-ratio: 478/270;
  width: 100%;
}

.kv-youtube iframe {
  height: 100%;
  object-fit: contain;
}

.kv-label-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .kv-label-wrapper {
    gap: 14px;
  }
}

.kv-label-text {
  font-size: 22px;
  line-height: 1.5;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .kv-label-text {
    font-size: 16px;
  }
}

.catch {
  padding: 100px 0;
}

@media screen and (max-width: 768px) {
  .catch {
    padding: 45vw 0 60px;
  }
}

@media screen and (max-width: 375px) {
  .catch {
    padding: 170px 0 60px;
  }
}

.catch-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 1440px;
  margin: 0 auto;
}

@media screen and (max-width: 1440px) {
  .catch-wrapper {
    width: 100%;
    max-width: 1440px;
  }
}

@media screen and (max-width: 1000px) {
  .catch-wrapper {
    gap: 20px;
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .catch-wrapper {
    padding: 0;
  }
}

.catch-text {
  font-size: 27px;
  line-height: 1.5;
  font-weight: 900;
  color: #006;
}

@media screen and (max-width: 768px) {
  .catch-text {
    font-size: 15px;
    text-align: left;
  }
}

.catch-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.catch-text-small {
  font-size: 22px;
  color: #006;
}

@media screen and (max-width: 768px) {
  .catch-text-small {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  .catch-text-wrapper {
    gap: 18px;

    .catch-text-small {
      font-size: 14px;
    }
  }
}

.catch-text-col {
  display: flex;
  gap: 12px;
  padding: 0 20px;
}

@media screen and (max-width: 768px) {
  .catch-text-col {
    gap: 8px;
    align-items: center;
  }
}

.sky {
  color: #0094ff;
}

.link {
  display: flex;
  justify-content: center;
  max-width: 800px;
  padding: 0 20px;
}

@media screen and (max-width: 768px) {
  .link {
    padding: 0 30px 30px;
  }
}

.link-wrapper {
  display: flex;
  gap: 20px;
  width: 1440px;
  margin: 0 auto;

  li {
    width: 100%;
  }
}

@media screen and (max-width: 1440px) {
  .link-wrapper {
    width: 100%;
    max-width: 1440px;
  }
}

@media screen and (max-width: 768px) {
  .link-wrapper {
    margin-bottom: 0;
    flex-direction: column;
    gap: 30px;
  }
}

.link-item {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.link-img {
  margin: 0 auto;
  width: 100%;
  object-fit: contain;
  border-radius: 5px;
  max-width: 385px;
}

@media screen and (max-width: 768px) {
  .link-img {
    width: 100%;
  }
}

.copyright {
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  width: 100%;
  display: block;
}

@media screen and (max-width: 768px) {
  .copyright {
    padding: 0;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .copyright {
    padding: 20px 15px;
    font-size: 10px;
  }
}

.new-initiatives {
  padding: 0 0 5vw;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;

  h2 {
    color: #006;
    text-align: center;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
  }

  p {
    color: #006;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 37.8px */
    text-align: center;
    margin-top: 66px;
  }
}

@media screen and (max-width: 1440px) {
  .new-initiatives {
    width: 100%;
    max-width: 1440px;
  }
}

@media screen and (max-width: 768px) {
  .new-initiatives {
    padding: 36px 0 66px;
  }

  .new-initiatives h2 {
    font-size: 28px;
    padding: 0 20px;
  }

  .new-initiatives p {
    font-size: 18px;
    margin-top: 40px;
    padding: 0 20px;
  }
}

@media screen and (max-width: 480px) {
  .new-initiatives h2 {
    font-size: 24px;
    padding: 0 15px;
  }

  .new-initiatives p {
    font-size: 16px;
    margin-top: 30px;
    padding: 0 15px;
  }
}

/* Animated KV Section Styles */
.kv-container {
  position: relative;
  width: 100vw;
  height: 850px;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  z-index: 1;
}

header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
}

.kv-image-container {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.kv-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2s ease-in-out, transform 15s ease-in-out;
}

.kv-background-image.active {
  opacity: 1;
  transform: scale(1.2);
}

.kv-background-image.fade-out {
  opacity: 0;
  transform: scale(1.2);
}

.kv-background-image.fade-in {
  opacity: 1;
  transform: scale(1.1);
}

/* Object positioning classes */
.kv-background-image.object-center {
  object-position: center;
}

.kv-background-image.object-top {
  object-position: top;
}

.kv-background-image.object-bottom {
  object-position: bottom;
}

.kv-background-image.object-left {
  object-position: left;
}

.kv-background-image.object-right {
  object-position: right;
}

.kv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.kv-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 126px;
  z-index: 3;
  margin-left: calc(-50vw + 50%);
}

.kv-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .kv-container {
    height: 467px;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .kv-bottom {
    height: 100px;
  }

  .kv-bottom svg {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .kv-container {
    height: 490px;
  }
}

.new-line {
  display: inline-block;
}
