/* フォントの定義 */
@font-face {
  font-family: 'Futura Md BT';
  src: url('../fonts/FuturaMdBT.ttf') format('truetype');
}

@font-face {
  font-family: 'Futura Lt BT';
  src: url('../fonts/FuturaLtBT.ttf') format('truetype');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('../fonts/ZenKakuGothicNew-Regular.ttf') format('truetype');
}

/* 共通のボディスタイル */
body {
  transition: background-color 0.5s ease-in-out;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  overflow-x: hidden;
  background-color: #ecf0f1;
  width: 100%;
  max-width: 100vw;
}

/* 英語テキストのフォントスタイル */
.english-text {
  font-family: 'Futura Md BT', sans-serif;
}

.light-english-text {
  font-family: 'Futura Lt BT', sans-serif;
}

/* ヘッダースタイル */
.header {
  background-color: rgba(255, 255, 255, 0.3);
  color: #004080;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 90%;
  max-width: 1800px;
  z-index: 1000;
  border-radius: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  left: 50%;
  transform: translateX(-50%);
  top: 40px;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: #ffffff;
  padding: 15px 5%;
}

.header .logo img {
  height: 40px;
  max-width: 100%;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #004080;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nav__item a {
  color: #004080;
  text-decoration: none;
  font-size: 18px;
  font-family: 'Futura Md BT', sans-serif;
  transition: color 0.3s ease;
}

.nav__item a:hover {
  color: #0066cc;
}

@media (max-width: 1200px) {
  .header {
    padding: 15px 3%;
    top: 20px;
  }

  .nav__list {
    gap: 20px;
  }

  .nav__item a {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    padding: 15px 5%;
    top: 20px;
  }

  .header .logo img {
    height: 30px;
  }

  .menu-icon {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.95) 0%, rgba(0, 128, 255, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav.active {
    right: 0;
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    display: flex;
  }

  .nav__item {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease-in-out;
  }

  .nav.active .nav__item {
    opacity: 1;
    transform: translateX(0);
  }

  .nav__item a {
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
  }

  .nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
  }

  .nav__item a:hover::after {
    width: 100%;
  }

  .nav__item a:hover {
    color: #a3d5ff;
  }

  .close-menu {
    display: none;
  }
  .close-menu:hover {
    transform: rotate(90deg);
  }
}

.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: #ffffff;
  cursor: pointer;
  z-index: 2001;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-color: #f5f5f5;
    text-align: center;
    height: auto;
}

.sliding-text {
    font-size: 120px;
    font-family: 'Futura Lt BT', sans-serif;
    color: #bababa;
    position: absolute;
    white-space: nowrap;
    animation: slideText 15s linear infinite;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 100%;
    left: 0;
}

@keyframes slideText {
    0% {
        transform: translate(100%, -50%);
    }
    100% {
        transform: translate(-100%, -50%);
    }
}

.contact-box {
    background-color: #333333;
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 90%; /* ボックスの最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
}

.contact-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 14px;
}

.contact-box a {
    text-decoration: none; /* リンクの下線を削除 */
    color: #ffffff; /* リンクの色を白に設定 */
}

.contact-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .sliding-text {
        font-size: 60px; /* スマートフォン向けに文字サイズを縮小 */
    }

    .contact-box {
        padding: 15px 20px; /* パディングを調整 */
    }

    .contact-box h2 {
        font-size: 20px; /* 見出しのサイズを調整 */
    }

    .contact-box p {
        font-size: 12px; /* テキストサイズを調整 */
    }
}

/* フッタースタイル */
.footer-section {
  background-color: #034060;
  color: #f5f5f5;
  padding: 80px 40px 20px;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.footer-curve {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 65px;
  background-color: #f5f5f5;
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  padding: 20px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-left {
  flex: 1;
  padding: 20px;
}

.footer-logo {
  max-width: 250px;
  margin-bottom: 50px;
}

.footer-right {
  flex: 0 0 40%;
  padding: 20px;
}

.footer-job {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.footer-job:hover {
  background-color: #2a2a2a;
}

.footer-job h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.footer-job a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-job a:hover {
  color: #a3d5ff;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-map {
  flex: 0 0 50%;
  text-align: left;
}

.footer-map p {
  font-family: 'Futura Md BT', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-map-info-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.footer-map-info-container iframe {
  width: 100%;
  height: 100%;
}

.footer-info {
  flex: 0 0 45%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.info-column h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.info-column {
  flex: 0 0 45%;
  margin-bottom: 20px;
}

.info-column ul li {
  font-size: 15px;
  margin-bottom: 10px;
  transition: opacity 0.3s ease;
}

.info-column ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-column ul li a:hover {
  color: #a3d5ff;
}

.footer-spacer {
  height: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 12px;
}

.privacy-policy {
  font-family: 'Futura Md BT', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  color: #ffffff;
  text-decoration: none;
}

.privacy-policy:hover {
  color: #a3d5ff;
}

@media (max-width: 768px) {
  .footer-section {
    padding: 60px 20px 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-left, .footer-right {
    flex: 0 0 100%;
    padding: 10px;
    text-align: center;
  }

  .footer-logo {
    max-width: 200px;
    margin-bottom: 30px;
  }

  .footer-job {
    margin-top: 20px;
    text-align: center;
  }

  .footer-job h3 {
    font-size: 18px;
    text-align: center;
  }

  .footer-job a {
    font-size: 14px;
    display: inline-block;
  }

  .footer-middle {
    flex-direction: column;
  }

  .footer-map, .footer-info {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }

  .footer-map p {
    font-size: 16px;
    text-align: center;
  }

  .footer-info {
    justify-content: space-around;
  }

  .info-column {
    flex: 0 0 48%;
    text-align: center;
  }

  .info-column h4 {
    font-size: 16px;
  }

  .info-column ul li {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom p, .privacy-policy {
    margin-bottom: 10px;
  }
}

.rtl .animation-bg {
  animation-name: PageAnime-rtl;
  background: #034060;
}

@keyframes PageAnime-rtl {
  0% {
    transform-origin: right;
    transform: scaleX(0);
  }
  50% {
    transform-origin: right;
    transform: scaleX(1);
  }
  50.001% {
    transform-origin: left;
  }
  100% {
    transform-origin: left;
    transform: scaleX(0);
  }
}

.move .animation-bg,
#page-overlay {
  background: #034060;
  display: block;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.5s ease-in-out;
}

body:not(.loading) .animation-bg,
body:not(.loading) #page-overlay {
  opacity: 0;
  pointer-events: none;
}

body.loading * {
  animation-play-state: paused !important;
  transition: none !important;
}