/* topimage トップの回転絵 */
body {
  background-color: black;
  font-family: HiraMinProN-W3;
}

/*SP調整時使用*/
.br-sp {
  display: none;
}

/*  */
.text {
  /*position: absolute;
      /*padding-top:750px; */
  /* top: 100%;
      left: 100%; */
  vertical-align: middle;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100vh;
  -webkit-transform: translate(-50%, -50%);
  color: aliceblue;
  position: absolute;
  top: 50%;
  left: 50%;
}

.text span {
  color: rgb(255, 255, 255);
  vertical-align: middle;
  font-size: 50px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  transform-origin: 50% 100%;
}

.title {
  padding-top: 60px;
  padding-bottom: 50px;
}

.topImage {
  min-width: 100%;
  min-height: 100vh;
  text-align: center;
}
.zeroprideLogo {
  height: 50px;
}

/* ロゴとテキスト共通：スライド＋フェードイン */
@keyframes slideFade {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 点滅アニメーション */
@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.3; }
}

/* ロゴとテキストに適用 */
.logo-blink,
.text-blink {
  animation: slideFade 1s ease-out forwards,
             blink 1.5s ease-in-out infinite alternate;
  animation-delay: 0s, 1.5s;  /* 1つ目（スライド）：0秒後、2つ目（点滅）：1.5秒後に開始 */
}

/* loding */
#is-loading {
  display: flex;                /* 中央揃えの基本 */
  justify-content: center;     /* 左右中央 */
  align-items: center;         /* 上下中央 */
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: black;
  z-index: 8;
}

#loading {
  text-align: center;
  color: white;
}

.textAnimation {
  white-space: nowrap;
  font-size: 1rem;
  color: #c1baba;
  margin-top: 20px;
}

/* video */
.video {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

.video::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(16, 57, 75, 0.3);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}


/* 事業内容 -------------- */
.businessDescription {
  color: aliceblue;
  text-align: center;
  /* min-width:100%;
      min-height:100vh; */
  padding: 60px 0 120px;
}

.carousel {
  top: 50%;
}

.carousel-inner {
  padding-bottom: 50px;
}

.bDTitle {
  text-align: inherit;
  padding-top: 25px;
  padding-bottom: 25px;
}
.custom-indicators {
  position: static;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.custom-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: #fff;
  opacity: 0.4;
  border: none;
  transition: opacity 0.3s;
}

.custom-indicators button.active {
  opacity: 1;
  background-color: #c62828;
}

.carousel.carousel-fade .carousel-item {
  transition: opacity 1.0s ease-in-out !important;
  opacity: 0;
  z-index: 0;
}

.carousel.carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 1;
}

/* 企業理念 -------------- */
.writing-v,
.writing-vw {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  letter-spacing: 0.3rem;
}

.highlight {
  color: #c62828;
}

.mission-total {
  background: #fff;
  background-image: url("../img/mgPhilosophyBack.png");
  background-size: cover;
}

.mission-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 60px 5%;
  width: 100%;
  box-sizing: border-box;
}

.mission-title {
  width: 100%;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  padding: 70px 0;
}


.mission-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40%;
}

.mission-tag {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.mission-tag .line {
  width: 40px;
  height: 1px;
  background-color: #b71c1c;
  margin-right: 10px;
}

.mission-tag .label {
  font-size: 14px;
/*  color: #b71c1c;*/
  font-weight: bold;
  letter-spacing: 1px;
}

.vertical-block {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-direction: row-reverse;
}

.main-vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2rem;
  font-weight: bold;
  line-height: 2.2;
  margin: 0;
  letter-spacing: 0.5rem;
}

.sub-vertical {
  writing-mode: vertical-rl;
  font-size: 1rem;
  line-height: 3;
  margin: 25px 0 0 0;
  max-height: 100%;
  letter-spacing: 0.4rem;
}

.mission-right {
  width: 45%;
  text-align: center;
}

.mission-logo {
/*  width: 180px;*/
  max-width: 100%;
  margin: 30px auto;
  display: block;
}

.mission-desc {
  font-size: 14px;
  line-height: 2;
  text-align: left;
}
.vision-only-area {
  text-align: left;
  padding: 100px 5% 60px;
  color: #000;
}

.vision-only-area .vision-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.vision-only-area .line {
  width: 40px;
  height: 2px;
  background-color: #b71c1c;
}

.vision-only-area .label {
  font-size: 16px;
  letter-spacing: 0.3em;
  color: #333;
}

.vision-only-area .vision-heading {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.vision-only-area .vision-text {
  font-size: 16px;
  line-height: 2;
}

/* 採用情報----------------- */
.recruitTitle {
  background-color: #000;
  opacity: 0.7;
  top: 50%;
  padding: 70px 0;
}

.recruit-section {
  background-image: url('../img/h3.jpg'); /* 実際の背景画像パスに変更 */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0;
  text-align: left;
}

.recruit-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  flex-wrap: wrap;
}

.recruit-left {
  flex: 1;
  text-align: left;
  min-width: 200px;
}

.recruit-bar {
  width: 70px;
  height: 2px;
  background-color: #b71c1c;
  margin-bottom: 16px;
}

.recruit-label {
  font-size: 28px;
  letter-spacing: 0.4em;
  font-weight: bold;
  margin: 0;
}

.recruit-right {
  flex: 2;
  min-width: 280px;
}

.recruit-heading {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 24px;
}

.recruit-text {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 32px;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.recruit-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: 0.3s;
}

.recruit-btn:hover {
  background-color: #fff;
  color: #000;
}

/*アクセスページ*/
.access-section {
  background: #000 url('../img/accessBack.png') no-repeat center center;
  background-size: cover;
  padding: 80px 0%;
  color: #fff;
  text-align: center;
}
.access-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.access-left {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.access-photo {
  width: 100%;
  height: auto;
  max-width: 500px;
}
.access-right {
  flex: 1;
  min-width: 300px;
  max-width: 500px;         /* 最大幅を制限 */
  margin: 0 auto;           /* 中央寄せ */
  text-align: left;
}
.access-logo {
  height: 40px;
  margin-bottom: 12px;
}
.access-bar {
  border: none;
  border-top: 2px solid #2d2d2d;
  margin-bottom: 24px;
}
.access-bar-f {
  border: none;
  border-top: 1px solid #2d2d2d;
  margin-bottom: 24px;
}
.access-info {
  font-size: 16px;
  line-height: 2;
  padding-left: 8px;        /* 少しインデント */
}
.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}
.info-row .label {
  width: 120px;             /* ラベル幅を少し広めに */
  font-weight: bold;
  flex-shrink: 0;
  display: inline-block;
}
.info-row .value {
  flex: 1;
}

/* googleMap */
.googleMap {
  color: aliceblue;
  text-align: center;
  padding: 60px 0; /* これで上下余白を指定 */
  min-height: unset; /* 必要に応じて解除 */
}

.googlemap-button-container {
  margin-top: 30px;
}

.googlemap-button {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 40px;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: bold;
  transition: 0.3s;
}

.googlemap-button:hover {
  background-color: #fff;
  color: #000;
}

/* recuruitページ */
.recuruitTop{
  text-align: center;
  background-image: url(../img/top3.jpg);
  padding-top: 150px;
  padding-bottom: 150px;
  background-position: center;
  background-size: 100%;
  
}
.zero{
  color: red;
}

.anotherTop{
  color: #fff;
  letter-spacing: 2em;
  text-align: center;
  font-weight: bolder;
}

.recruitSummary{
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
  font-weight: bolder;
  color: #ffffff;
}

.recruitIT{
  text-align: left;
  color: #fff;
}
.recruitDetailWhite{
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #7d7d7d;
}

.recruitDetailText{
  padding-bottom: 20px;
}

/* ボタン */
.recrui-submit-wrap {
  text-align: center;
  margin: 30px 0 50px;
}

/* お問合せページ */
.contactTop{
  text-align: center;
  background-image: url(../img/top2.jpg);
  padding-top: 150px;
  padding-bottom: 150px;
  background-position: center;
  background-size: 100%;
  
}

.contactContent{
  color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
}

.check-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}

.check-center .form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.privacy-link {
  color: #fff;
  font-size: 18px;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-link:hover {
  color: #ffcccb;
}

/* お問い合わせボタン */
.contact-submit-wrap {
  text-align: center;
  margin-top: 30px;
}

.contact-submit-button {
  background: linear-gradient(to right, #af2c2c, #5b4444);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
}

.contact-submit-button:hover {
  opacity: 0.8;
}

/*error*/
.has-error .validation-block {
  text-align: left;
     color: #D30001;
}

/*コンプリートページ*/
.page02 {
  min-height: calc(100vh - 200px); /* ヘッダー＋フッター分の高さ考慮 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #fff;
}

#thanks .wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.thanks_heading h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.thanks_heading p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #555;
}

.thanks_heading a {
  display: inline-block;
  padding: 12px 30px;
  background-color: #d40000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.thanks_heading a:hover {
  background-color: #aa0000;
}

/* プライバシーポリシーページ */

.privacyTop{
  text-align: center;
  background-image: url(../img/top1.jpg);
  padding-top: 150px;
  padding-bottom: 150px;
  background-size: 100%;
}

.privacyContent{
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: left;
  font-weight: bolder;
  color: #ffffff;

}


/* フッター */
.footer {
  background-color: #AF011C;
  color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
}

.footerInfo{
  color: #ffffff;
  text-decoration:none;
  padding-top: 25px;
}
.footer-logo {
  max-height: 50px;
  width: auto;
}
.footerInfo:hover {
  color: #ffcccb; 
}
.footer-link-group {
  text-align: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-link-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.footerInfo {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  padding: 4px 8px;
  display: inline;
  transition: color 0.3s;
}

.footerInfo:hover {
  color: #ffcccb;
}





/*モバイル用*/
@media (max-width: 768px) {

  /*PC調整*/
  .br-pc {
    display: none;
  }

  .br-sp {
    display: inline-block;
  }

  /*　TOPの英語クルクル　*/
  .text span {
    font-size: 25px; /* モバイル用 */
  }

  /*企業理念*/
  .mission-total {
    background: #fff;
    margin: 0;
    padding: 60px 5%;
  }
  .mission-title {
    padding: 10px 0;
  } 
  .mission-area {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
  }

  /* 表示順の指定 */
  .mission-right {
    order: 1;
  }

  .mission-left {
    order: 2;
  }

  /* 幅と見た目の調整 */
  .mission-left,
  .mission-right{
    width: 100%;
    max-width: 100%;
  }

  .mission-logo {
    width: 100%;
    max-width: 240px;
    margin: 0 auto 20px;
    display: block;
  }

  .mission-title {
    font-size: 24px;
    letter-spacing: 0.3em;
    text-align: center;
  }

  .main-vertical {
    font-size: 26px;
    line-height: 1.6; 
    letter-spacing: 0.4rem;
  }

  .sub-vertical {
    font-size: 12px;
    line-height: 1.8;
  }

  .vision-only-area {
    text-align: left;
    padding: 50px 0 60px;
    color: #000;
  }

  .row {
    margin-right: 0;
    margin-left: 0;
  }

/* 事業内容 */
  #carouselIndicators img {
    width: 100% !important;
    height: auto !important; /* 高さ100%だと歪む可能性あるのでauto推奨 */
  }
  .businessDescription p{
  margin: 10px 5px;
  text-align: left;
}

/*採用*/
.recruit-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .recruit-right {
    width: 100%;
    text-align: center;
  }
  .recruit-left {
    display: flex;
    align-items: center; /* 縦位置そろえる */
    gap: 12px; /* 赤線と文字の間隔 */
  }

  .recruit-bar {
    margin: 0 auto 10px;
  }

  .recruit-label {
    font-size: 24px;
    letter-spacing: 0.3em;
  }

  .recruit-heading {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .recruit-text {
    font-size: 14px;
    line-height: 1.8;
    padding: 0 10px;
  }

  .recruit-btn {
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 14px;
  }
/*アクセス*/
  .access-container {
    flex-direction: column;
    align-items: center;
  }
  .access-photo {
    max-width: 90%;
  }
  .access-logo {
    margin: 0 auto 16px;
    display: block;
  }
  .info-row {
    flex-direction: column;
    text-align: left;
  }
  .info-row .label {
    width: 100%;
    margin-bottom: 4px;
  }

/*フッター*/
  .footer {
    padding: 50px 20px;
  }
  .footer .row:first-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .row:first-child .col-sm-3 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .footer img {
    max-width: 140px;
    height: auto;
  }

  .footer h3 {
    font-size: 18px;
    margin: 10px 0 5px;
  }

  .footer h6 {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
  }
  .footer-link-group {
    text-align: left;
  }

  .footer-link-wrap {
    justify-content: flex-start;
  }
}



/* ======== 共通ナビゲーションレイアウト ======== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000 !important;
  padding: 16px 0; /* 上下左右の余白調整 */
  z-index: 7;
  position:sticky;
  top:0;
}

.nav-link {
  padding: 0.75rem 1rem;
}

#navbarSupportedContent {
  margin-bottom: 0;
}

.navbar-brand {
  height: auto; /* 固定高さがあるなら削除 */
  display: flex;
  align-items: center; /* ロゴの上下位置調整 */
}

.navbar-brand img {
  height: 40px;          /* 任意サイズ */
  margin: 0;             /* 余計な余白削除 */
  vertical-align: middle;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}


@media (max-width: 992px) {

  .row {
    margin-right: 0;
    margin-left: 0;
  }

  .navbar-toggler {
    position: fixed;
    top: 10px;
    right: 10px; /* 左 → 右 に変更 */
    z-index: 1051;
    background: none;
    border: none;
    color: #fff;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000de;
    z-index: 1050;
    padding-top: 60px;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-item {
    margin: 0;
  }

  .navbar-menu.active {
    display: block;
    outline: none;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav li {
    padding: 1rem 0;
  }

  .navbar-nav li a {
    color: white;
    font-size: 1rem;
  }

  .navbar-toggler {
    display: block;
    border: none;
    background: none;
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem; 
    z-index: 1051; 
  }

  .toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
  }
  .navbar-toggler-icon {
  background-image: url("../img/icon.svg");
  }

  .privacyRow {
    letter-spacing: 1.5rem;
  }
}



/*======== アニメーション ========*/
/*ラインについて*/
.nav-item{
  color: #000;
  text-decoration: none;
}
.nav-link {
  padding-bottom: 3px; /* テキストと下線の間隔 */
  font-size: 60px;
  background-image: linear-gradient(#dc3545, #dc3545);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.3s;
}

.nav-link:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

@keyframes growLine {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/*アクセスアニメーション*/
.access-bar-f {
  width: 100%;
  height: 1px;
  background: #aaa;
  transform-origin: left;
  transform: scaleX(0); /* 初期状態は非表示 */
  opacity: 0;
}

.access-bar-f.animate-line {
  animation: growLine 1s ease-out forwards;
}
