﻿@charset "utf-8";

@font-face {
   font-family: "goudy";
   src: url("font/goudy-oldstyle.woff") format("woff");
   font-weight: normal;
   font-display: block;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #000000;

}
nav {
  font-family: sans-serif;
}
p {
  font-family: sans-serif;
}
/* 上部のグレーの帯 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #737373;
  color: white;
  padding: 0 40px;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
/* 左上会社ロゴ */
.logo img {
  height: 50px;
  display: block;
}
/* 右からスライドインするメニューのコンテナ */
.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}
/* 右上のメニューボタン(バーガーボタン) */
.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2em;
  background: none;
  color: #ffffff;
  border: none;
  right: 38px;
  cursor: pointer;
  padding: 0;
}
/* 右上のメニューの文字 */
.menu-label {
  font-size: 0.5em;
  margin-top: 0px;
  line-height: 1;
}
/* 右上のクローズボタン(バツ印) */
.close-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2em;
  position: absolute;
  top: 14px;
  right: 38px;
  cursor: pointer;
  color: white;
}
/* 右上のクローズボタンの文字 */
.close-label {
  font-size: 0.5em;
  margin-top: 0;
  line-height: 1;
}
/* 右上のメニューボタン(バーガーボタン)クローズボタン(バツ印)のサイズ */
.menu-icon i,
.close-icon i {
  font-size: 1.5em;
}
/* 右からスライドインするメニューの背景 */
.nav {
  position: fixed;
  top: 0;
  right: -180px; /* 初期は画面外 */
  width: 180px;
  height: 100%;
  background: #737373;
  transition: right 0.3s ease;
  z-index: 999;
}
/* 右からスライドインするために画面外右位置 */
.nav.open {
  right: 0;
}
/* 右からスライドインするメニュー文字のサイズと位置 */
.nav ul {
  list-style: none;
  padding: 20px;
  margin: 0;
  font-size: 0.9em;     /* 文字サイズを指定 */
  margin-top: 40px;     /* 画面上位置から下げる位置 */
  line-height: 1;  /* ← 行間をフォントサイズと同じに */
  margin-bottom: 0;  /* ← 下の余白をなくす */
}
/* 文字の位置 */
.nav li {
  margin: 14px 0;
}
/* 右からスライドインするメニュー文字のサイズと色 */
.nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.9em;
  transition: color 0.5s ease;
}
/* 右からスライドインするメニュー文字のマウスオン時の色 */
.nav a:hover {
  color: #312c8a;
}
/* 右からスライドインするSNSアイコンの位置 */
.social-icons {
  display: flex;
  flex-direction: column;     /* ← 縦に並べる */
  align-items: flex-start;    /* ← 左揃えにする */
  gap: 12px;                  /* アイコンの間隔 */
  margin-top: -22px;          /* 画面上位置から下げる位置 */
  padding-left: 20px;         /* ul と揃えるための左余白 */
}
/* 右からスライドインするSNSアイコンのサイズと色 */
.social-icons a {
  color: #ffffff;
  font-size: 0.9em;
  text-decoration: none;
  transition: color 0.5s ease;  /* ← なめらかに色が変わる効果 */
}
/* 右からスライドインするSNSアイコンのマウスオン時の色 */
.social-icons a:hover {
  color: #312c8a;
}

/* 背景オーバーレイ（最初は非表示） */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55); /* 半透明黒 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900; /* nav より下、header より上 */
}

/* メニューが開いたとき有効化 */
#menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* メニューの背後にくる透明クリック領域 */
#nav-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent; /* 透明 */
  pointer-events: none; /* クリック無効 → 初期状態 */
  z-index: 800; /* nav より低く、ヘッダーより上 */
}

/* メニューが開いたときだけクリック有効にする */
#nav.open + #nav-bg {
  pointer-events: auto;
}


/* ------------------------------------------------------------------------------------- */

/* ランダムビデオの背景 */
.video-wrapper {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: calc(100vh - 60px);
  background: linear-gradient(to bottom, #000000 20%, #ffffff); /* グラデカラー */
  z-index: -1;
}
/* ランダムビデオのサイズと位置 */
.video-container {
  position: fixed;
  top: 60px; /* ヘッダーの高さ分下に */
  left: 50%;           /* 画面の中心に基準を合わせる */
  transform: translateX(-50%); /* 中心基準で左にずらすことで中央配置 */
  width: 60%; /* 画面上のサイズ */
  z-index: 900;
  height: auto; /* 明示しておくと後で調整しやすい */
}
/* ランダムビデオの表示サイズ */
video {
  width: 100%;
  height: auto;
  display: block;
}

/* SCROLLインジケーター文字の位置とスタイル */
.scroll-indicator {
  position: absolute;
  bottom: 20px;         /* ←動画内の下部に表示 */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-size: 0.8em;
  font-family: sans-serif;
  z-index: 910;          /* 動画より前、メインコンテンツより後ろに調整 */
  pointer-events: none;
}
/* SCROLLインジケーター矢印の位置とスタイル */
.scroll-indicator .arrow {
  font-size: 2.5em;
  color: white;
  margin-bottom: 0px;
  animation: bounce 1s infinite;
}
/* SCROLLインジケーターのバウンドエフェクト */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ------------------------------------------------------------------------------------- */

/* メインコンテンツの背景と位置(画面下に隠れている) */
.main-content {
  margin-top: 100vh;  /* ← ヘッダー分は含めない */
  position: relative;
  z-index: 1;
  background-color: #1a1a1a;  /* ← 全体の背景 */
}
.content-inner {
  padding: 0 0;
  color: #ffffff;
}

/* 各セクション高さ300px */
.main-content section {
  height: 300px;
  padding: 0px 0%;
  box-sizing: border-box;
}
/* 会社紹介セクション */
.company-section {
  display: flex;
  align-items: center; /* 中央揃え */
}
/* 会社紹介セクション 背景 */
.company-inner {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0px 3%;
  background-color: #1a1a1a;
}
/* 会社紹介セクション 紹介文の範囲とサイズと色と位置 左半分*/
.company-text {
  width: 50%;
  margin-right: 0%;
  box-sizing: border-box;
  background-color: #1a1a1a;
  padding: 0px 1% 3% 3%;
}
.company-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #ffffff;
  margin-top: 1.2em;
  margin-bottom: 0;
}
/* 会社紹介セクション 画像範囲 右半分*/
.company-image {
  width: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 0px 0px 0px;
  background-color: #000000;
}
/* 会社紹介セクション 画像位置サイズ */
.company-image img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------------------------------- */

/* お知らせセクション */
.news-section {
  background-color: #ffffff;
  color: #000000;
  box-sizing: border-box;
  text-align: left;
  height: auto !important;
  margin: 0 3%; /* 左右3%の余白 */
  width: 94%;
}
.news-inner {
  background: #ffffff;
  max-width: 100%;
  padding: 2% 3% 3% 5%;
}
/* お知らせセクション文字 - お知らせ -*/
.news-label {
  font-size: 1.2rem;  /* 大きめのサイズに統一 */
  color: #000000;        /* 黒色 */
  font-weight: bold;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
}
/* お知らせセクション文字 日付*/
.news-date {
  font-size: 1.2rem;  /* 大きめのサイズに統一 */
  color: #000000;        /* 黒色 */
  font-weight: bold;
  margin: 0 0 0 0;
}
/* お知らせセクション文字 見出し青色*/
.news-heading {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
  font-feature-settings: "palt"; /* 文字のプロポーショナル */
  color: #1923a0; /* 青色 */
  margin: 0 0 0 0;
}
/* お知らせセクション文字 本文*/
.news-description {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 0 0;
}

/* ------------------------------------------------------------------------------------- */

/* サービスセクション */
.service-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
  background-color: #1a1a1a;
  z-index: 1; /* footer より小さく */
}
/* サービスセクション　境界線下*/
.section-divider {
  height: 3px;
  background-color: #7a7a7a;
  width: 94%;
  margin-left: 3%;
}
/* 画像 */
.service-image-wrapper {
  position: relative;
  margin-left: 26%;
  aspect-ratio: 3 / 1.26; /* 表示エリアの縦横比を調整（例：横長） */
  overflow: hidden;
  transition: transform 0.5s ease;
}

.service-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* hover対象の内側ラッパー */
.service-section-inner {
  position: relative;
  margin: 0 3%; /* 左右3%の余白 */
  width: 94%;
}

/* 画像 マウスオン拡大 */
.service-section-inner:hover .service-image-wrapper img {
  transform: scale(1.07);
}

/* 左側の白いオブジェクト */
.service-overlay {
  position: absolute;
  left: 0%;
  top: 25%;
  width: 24%;
  height: 50%;
  background-color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10%;
  z-index: 2;
  transition: background-color 0.5s ease;
}
/* 左側の白いオブジェクトの文字 */
.service-overlay p {
  color: #000000;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 2.0;
  font-family: serif;
  transition: color 0.5s ease;
}
/* 左側の白いオブジェクト青にフェード */
.service-section-inner:hover .service-overlay {
  background-color:  rgba(25, 35, 160,0.9); /* 青にフェード */  
}
/* 左側の白いオブジェクトの文字白文字にフェード */
.service-section-inner:hover .service-overlay p.jp {
  color: #ffffff;
}
/* オブジェクト内文字の位置 */
.service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(calc(-50% - 0.5em));
}
/* オブジェクト内文字の行間と色 */
.service-text p {
  margin: 0;
  line-height: 2.0;
  color: #000000;
}
/* オブジェクト内英文字のサイズ */
.service-text .en {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: "goudy";
}
.en span {
  display: inline-block;
  color: #000000; /* 初期色 */
  transition: color 0.5s ease; /* transition を指定 */
}
/* オブジェクト内英文字マウスオンの色 */
.service-link.hovered .en span {
  color: #ffffff;
  transition: color 0.3s ease;
}
/* オブジェクト内和文字のサイズ */
.service-text .jp {
  font-size: 1.2rem;
  font-weight: normal;
  font-family: sans-serif;
}
/* セクションの下からフェードインアップアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px); /* 50px下から */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* セクションのアニメーション */
.section-animate {
  opacity: 0;
  transform: translateY(50px); /* 初期状態を一致させる */
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
.section-animate.visible {
  animation: fadeInUp 1.0s ease-out forwards;
}

/* ========= スマホだけ hover 無効 =============== */
@media (hover: none) and (pointer: coarse) {

  /* 画像拡大を無効化 */
  .service-section-inner:hover .service-image-wrapper img {
    transform: none !important;
  }

  /* 白いオブジェクトの色変化を無効化 */
  .service-section-inner:hover .service-overlay {
    background-color: rgba(255,255,255,0.9) !important;
  }

  /* 日本語文字の色変化を無効化 */
  .service-section-inner:hover .service-overlay p.jp {
    color: #000000 !important;
  }

  /* 英字の色変化を無効化 */
  .service-link.hovered .en span {
    color: #000000 !important;
  }
}

.thisPage a {
  pointer-events: none;
  cursor: default;
  color: #ffffff !important;
}

/* レスポンシブ ------------------------------------------------------------------------------------------------------------ */

@media screen and (max-width: 1319px) {
  .company-text p {
    font-size: 1.1em;
    line-height: 1.6;
  }

/* 会社紹介セクション 画像範囲 */
  .company-image {
    width: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0px 0px 0px;
}
/* 会社紹介セクション 画像位置サイズ */
  .company-image img {
    height: 100%;
    object-fit: cover;
    display: block;
}
  .service-text .en {
    font-size: 1.2rem;
  }
  .service-text .jp {
    font-size: 1.0rem;
  }
}

@media screen and (max-width: 1121px) {
  .company-text p {
    font-size: 1.1em;
    line-height: 1.4;
  }
  .service-text p {
    line-height: 1.6;
  }
  .service-text .en {
    font-size: 1.0rem;
  }
  .service-text .jp {
    font-size: 0.9rem;
  }
  .news-label {
    font-size: 1.0rem;
  }
  .news-date {
    font-size: 1.0rem;
  }
  .news-heading {
    font-size: 1.4rem;
  }
  .news-description {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 927px) {
  .company-text p {
    font-size: 0.98em;
    line-height: 1.5;
  }
}

@media screen and (max-width: 800px) {
  .company-text p {
    font-size: 0.94em;
    line-height: 1.5;
  }
}

@media screen and (max-width: 732px) {
.header {
  padding: 0 20px;
}

.close-btn {
  right: 20px;
}
/* ランダムビデオのサイズと位置 */
  .video-container {
    position: fixed;
    width: 100%;
}
  .company-text {
    font-size: 0.90em;
    line-height: 1.4;
    padding: 0px 3% 20px 3%;
  }

  .company-section {
    height: auto !important;
    padding-bottom: 40px;
  }
  .company-inner {
    flex-direction: column;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0px 0px;
  }
  .company-text,
  .company-image {
    width: 100%;
  }
  .company-image {
    margin-top: 0px; /* テキストとの間隔調整（任意） */
    justify-content: center;
    height: 180px; /* ← ここで高さを指定（お好みで調整OK） */
  }
  .company-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;          /* 親にフィットさせる */
    object-fit: cover;     /* 縦横比を保ちながらトリミング */
  }
  .news-section {
    margin: 0 0; /* 左右の余白 */
    width: 100%;
}
  .service-section-inner {
    margin: 0 0; /* 左右の余白 */
    width: 100%;
}
/* サービスセクション　境界線下*/
  .section-divider {
    height: 2px;
    background-color: #7a7a7a;
    width: 100%;
    margin-left: 0%;
}
  .service-text p {
    line-height: 1.6;
  }
  .service-text .en {
    font-size: 0.9rem;
  }
  .service-text .jp {
    font-size: 0.8rem;
  }
  .news-label {
    font-size: 0.8rem;
  }
  .news-date {
    font-size: 0.8rem;
  }
  .news-heading {
    font-size: 1.2rem;
  }
  .news-description {
    font-size: 1.0rem;
  }
}

@media screen and (max-width: 590px) {
  .company-text {
    font-size: 0.80em;
    line-height: 1.4;
    padding: 0px 3% 20px 3%;
  }
  .company-section {
    height: auto !important;
    padding-bottom: 40px;
  }
  .company-inner {
    flex-direction: column;
    margin: 0 0; /* 左右3%の余白 */
  }
  .company-text,
  .company-image {
    width: 100%;
  }
  .company-image {
    margin-top: 0px; /* テキストとの間隔調整（任意） */
    justify-content: center;
    height: 150px; /* ← ここで高さを指定（お好みで調整OK） */
  }
  .company-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;          /* 親にフィットさせる */
    object-fit: cover;     /* 縦横比を保ちながらトリミング */
  }
  .service-text p {
    line-height: 1.5;
  }
  .service-text .en {
    margin-top: 10px;
    font-size: 0.9rem;
  }
  .service-text .jp {
    font-size: 0.8rem;
  }
  .news-label {
    font-size: 0.8rem;
  }
  .news-date {
    font-size: 0.8rem;
  }
  .news-heading {
    font-size: 1.0rem;
  }
  .news-description {
    font-size: 0.9rem;
  }
}


@media screen and (max-width: 400px) {

  .company-text {
    font-size: 0.80em;
    line-height: 1.4;
    padding: 0px 3% 20px 3%;
  }
  .company-section {
    height: auto !important;
    padding-bottom: 40px;
  }
  .company-inner {
    flex-direction: column;
    margin: 0 0; /* 左右3%の余白 */
  }
  .company-text,
  .company-image {
    width: 100%;
  }
  .company-image {
    margin-top: 0px; /* テキストとの間隔調整（任意） */
    justify-content: center;
    height: 150px; /* ← ここで高さを指定（お好みで調整OK） */
  }
  .company-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;          /* 親にフィットさせる */
    object-fit: cover;     /* 縦横比を保ちながらトリミング */
  }
/* オブジェクト内文字の位置 */
  .service-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(calc(-50% - 0.5em));
}
  .service-text p {
    line-height: 1.2;
  }
  .service-text .en {
    margin-top: 10px;
    font-size: 0.8rem;
  }
  .service-text .jp {
    font-size: 0.7rem;
  }
  .news-label {
    font-size: 0.7rem;
  }
  .news-date {
    font-size: 0.7rem;
  }
  .news-heading {
    font-size: 1.0rem;
  }
  .news-description {
    font-size: 0.9rem;
  }
}