/* 共通設定 */
body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.7em;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}
a,a:hover,a:visited{
    color: inherit;
}

h2.section-title {
  color: rgb(var(--color_17));
  font-size: 30px;
  margin-bottom: 0.5em;
  color: #7A99A9;
}

.section-divider {
  text-align: center;
  font-size: 30px;
  margin: 30px 0;
  font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
}
.content-inner p{
color: #0e3c53;
font-size: 1.1em;
}

.center-text {
  text-align: center;
}

.center {
  text-align: center;
}

/* ヘッダー */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  background-color: #fff;
  height: 113px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-area img {
  height: 50px;
  margin-right: 10px;
}

.company-name {
    font-weight: bold;
    font-size: 26px;
    letter-spacing: 3px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: #0e3c53;
  font-weight: bold;
}

/* メインビジュアル */
.main-visual {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
}

.main-visual .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 2s ease, transform 2s ease;
  z-index: 0;
}

.main-visual .slide img {
  width: 100%;
  height: 750px;
  object-fit: cover;
}
/* 表示中スライド */
.slide.active {
  z-index: 2;
  opacity: 1;
}

/* アニメーション中の前のスライド（左へ移動） */
.slide.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

/* アニメーション中の新しいスライド（右から登場） */
.slide.slide-in-right {
  transform: translateX(100%);
  opacity: 1;
  z-index: 2;
}

.slide.slide-in-right.active {
  transform: translateX(0);
  opacity: 1;
}

/* 矢印共通 */
.main-visual .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 70px;
  color: white;
  cursor: pointer;
  z-index: 3;
  padding: 10px;
  user-select: none;
}

/* キャプション */
.main-visual .caption {
  position: absolute;
  color: white;
  line-height: 1.3em;
  font-size: 36px;
  text-align: center;
  text-shadow: rgba(0, 0, 0, 0.4) 0px 4px 5px;
  transform: translate(-50%, -50%);
  left: 50%;
}

/* スライドごとのキャプション位置 */
.caption01 {
  top: 20%;
  left: 50%;
}

.caption02 {
  top: 50%;
  left: 50%;
}

.caption03 {
  top: 35%;
  left: 50%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 初期状態で非表示 */
.caption {
  opacity: 0;
}

/* スライドがアクティブになった後、2秒後にフェードイン開始 */
.slide.active .caption {
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 1s;
}

.main-visual .arrow.left {
  left: 20px;
  font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
}

.main-visual .arrow.right {
  right: 20px;
  font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
}

/* メッセージ */
.main-message {
  padding: 40px 20px;
  width: 45%;
  margin: 0 auto;
  font-size: 18px;
  line-height: 2em;
  color: #0e3c53;
}

/* セクション */
.content-block {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

/* セクションタイトルカラー */
.section-title.custom-color {
  color: #7A99A9;
  text-align: center;
      line-height: 1.3em;
      font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
    letter-spacing: 0.020000000257749815em;
        letter-spacing: 4px;
}
.section-title{
}

.content-block .content-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
     max-width: 920px;
  width: 100%;
  flex-wrap: wrap;
  margin: 0 auto;
}


/* テキストブロック */
.content-block .text {
  flex: 1;
  min-width: 260px;
}

/* 画像ブロック */
.content-block .image {
  width: 520px;
  flex-shrink: 0;
}

/* 画像サイズ固定 */
.fixed-img {
  width: 100%;
  height: auto;
  display: block;
}

.content-inner.reverse {

}

.content-block img {
  width: 520px;
}

/* 品質管理 */

.quality-management {
text-align: center;
    padding: 30px 20px;
    margin: 0 auto;
    width: 79%;
    max-width: 915px;
}
.quality-management p{
    color: #0e3c53;
    font-size: 1.1em;
    line-height: 2em;
}


.slideshow-container {
 position: relative;
    width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
}

.slideshow-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out; /* ← 2秒 → 0.6秒に変更 */
}

.slideshow-container img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}


/* 会社概要 */

  .main-visual2 .arrow.left {
  left: 10px;
  font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
}

.main-visual2 .arrow.right {
 right: 10px;
  font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
}

  .main-visual2 .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  color: #696969;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.profile_main{
   position: absolute;
  left: 15px;
  bottom: 15px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 14px;
}

.main-visual2{
  position: relative;
  width: 100%;
max-width: 900px;
  height: 450px;
  margin: 0 auto; /* 中央寄せ */
  overflow: hidden;

}

.main-visual2 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-visual2 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.main-visual2 .slide.active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

/* アニメーション: 右から入る */
.slide-in-right {
  animation: slideInRight 2s ease forwards;
}

/* アニメーション: 左から入る */
.slide-in-left {
  animation: slideInLeft 2s ease forwards;
}

/* アニメーション: 左に出る */
.slide-out-left {
  animation: slideOutLeft 2s ease forwards;
}

/* アニメーション: 右に出る */
.slide-out-right {
  animation: slideOutRight 2s ease forwards;
}

/* キーフレーム定義 */
@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 会社概要　メインキャッチ下 */

.profile_conts{
margin: 0 auto;
width: 100%;
max-width: 900px;
color: #0e3c53;
}

.table-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto;
color: #0e3c53;
}

.table-wrapper table {
  margin-bottom: 20px;
  text-align: left;
    align-self: flex-start; /* 中央配置の中で左寄せ */
      width: max-content;
  border-collapse: collapse;
}

.table td {
  padding: 8px 12px;
}

.table-3col,
.table-2col {
  /* 表の左端を揃えるために幅を最も広い表に合わせる */
  width: max-content;
}
.profile_te01{
text-align: center;
}
.profile_te02{
vertical-align:top;
text-align: center;
}

@media screen and (max-width: 600px) {
  .table-wrapper {
    width: 100%;
    padding: 0 10px;
    align-items: stretch; /* 横幅100%に広げる */
  }

  .table-wrapper table {
    width: 100%;
    overflow-x: auto;
    display: block;
  }

  .table td {
    padding: 6px 8px;
    font-size: 14px;
  }
}

.nounyu{
margin: 0 auto;
max-width: 800px;
color: #0e3c53;
    padding-bottom: 8%;
}
.map{
    text-align: center;
    margin: 5% 0%;
    width: 100%;
}


/* フッター */
.site-footer {
  text-align: left;
  padding: 20px 40px;
  font-size: 14px;
    color: #0e3c53;
}
.box_s{
box-shadow: 0px 10px 10px -5px rgba(0,0,0,0.5);
}

.slide-in-right {
  animation: slideInRight 2s forwards;
}
.slide-out-left {
  animation: slideOutLeft 2s forwards;
}
.slide-in-left {
  animation: slideInLeft 2s forwards;
}
.slide-out-right {
  animation: slideOutRight 2s forwards;
}


/* スマホ対応 */

@media (max-width: 768px) {
  /* ヘッダー対応 */
  .site-header {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .logo-area {
    justify-content: center;
    margin-bottom: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .main-nav a {
    font-size: 16px;
  }

  /* コンテンツの縦並び */
  .content-inner {
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
  }

  .content-block .image,
  .content-block .text {
    width: 100%;
    max-width: 100%;
  }

  .content-block img {
    width: 100%;
  }

  /* メインビジュアル高さ調整 */
  .main-visual {
    height: 450px;
  }

  .main-visual .slide {
    height: 450px;
  }

  .main-visual .caption {
    font-size: 20px;
    width: 90%;
  }

  .main-message {
    width: 90%;
    font-size: 16px;
  }

  .profile_conts{
  width: 90%;
  }
  .map{

  }

    /* 会社概要スマホ */

   

  /* 品質管理 */
  .quality-management {
    width: 95%;
  }

  /* 全体の左右余白調整 */
  .content-block .text,
  .quality-management,
  .main-message {
    padding: 0 16px;
    box-sizing: border-box;
  }

  .content-block .image {
    padding: 0 16px;
    box-sizing: border-box;
  }
}

/* メッセージ */

      .message-section {
 position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 600px;
    background-size: cover;
    max-width: 915px;
    margin: 0 auto;
   box-shadow: 2px 8px 20px -2px rgba(0, 0, 0, 0.5);
    }

    .message-text {
      flex: 1 1 500px;
      z-index: 2;
      background-color: rgba(255, 255, 255, 0.9);
      padding: 2rem;
      box-sizing: border-box;
      position: relative;
    }

    .message-text h1 {
      font-size: 2rem;
      margin-bottom: 1rem;
      border-left: 5px solid #555;
      padding-left: 1rem;
    }

    .message-text p {
      margin-bottom: 1rem;
      color: #0e3c53;
    }
    .Message_title{
  color: #7A99A9;
    text-align: center;
    font-size: 39px;
       margin: 3rem;
    font-family: damion, cursive;
        letter-spacing: -2px;
    }

    .message-author {
      text-align: right;
      font-weight: bold;
      margin-top: 2rem;
      color: #0e3c53;
      font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
    }

    .message-image {
      flex: 1 1 277px;
    background-image: url(img/mese_conts01.jpg);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    /* opacity: 0.8;*/
    }

    @media (max-width: 768px) {
      .message-section {
        flex-direction: column;
        padding: 1rem;
      }

      .message-image {
        order: -1;
        min-height: 200px;
      }

      .message-text {
        padding: 1rem;
      }

      .message-text h1 {
        font-size: 1.5rem;
      }
    }


   /* profile */


  /* メインビジュアル */

.management-hero {
  position: relative;
  text-align: center;
  overflow: hidden; /* アニメーション中のはみ出し防止 */
}

.management-hero img {
  width: 75%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.management-hero-text {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2.2rem;
  font-weight: bold;
  padding: 0.5em 1.2em;
  border-radius: 0.4em;
  white-space: nowrap;
  font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
  letter-spacing: 12px;
}

/* アニメーション初期状態（非表示） */
.fade-left,
.fade-right {
  opacity: 0;
  pointer-events: none;
}

/* 左からフェードイン */
.fade-left {
  transform: translateX(-50%) translateX(-50px); /* 中央から左へ50pxずらして非表示 */
  transition: opacity 1s ease, transform 1s ease;
}

/* 右からフェードイン（画像） */
.fade-right {
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

/* 表示状態（アニメーション終了後） */
.fade-in.fade-left {
  opacity: 1;
  transform: translateX(-50%) translateX(0); /* 中央に戻す */
}

.fade-in.fade-right {
  opacity: 1;
  transform: translateX(0); /* 通常位置に戻す */
}


/* 本文・大見出し */
.management-intro {
  padding: 3em 1em;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.management-intro h1 {
color: #7A99A9;
    text-align: center;
    line-height: 1.5em;
    font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
    letter-spacing: 0.020000000257749815em;
    letter-spacing: 4px;
    font-size: 30px;
}

.management-intro p {
text-align: left;
    padding: 10px 20px;
    width: 90%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 2em;
    color: #0e3c53;
}

/* 各画像ブロック */
.management-image-block {
  padding: 2.5em 1em;
  text-align: center;
}

    .management-image-block h2 {
        color: #7A99A9;
        text-align: center;
        line-height: 1.3em;
        font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
        letter-spacing: 0.020000000257749815em;
        letter-spacing: 4px;
        font-size: 30px;
    }


.management-image-block p {
    padding: 10px 20px;
    width: 90%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 2em;
    color: #0e3c53;
}

.management-image-block img{
width: 520px;
margin: 0 auto;
}

/* スマホ対応（幅600px以下） */
@media screen and (max-width: 600px) {
  .management-hero-text {
    font-size: 1.4rem;
    padding: 0.4em 0.8em;
  }

  .management-hero img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

  .management-intro h1 {
    font-size: 1.3rem;
  }

  .management-image-block h2 {
  font-size: 1.3rem;
  }

  .management-intro p{
  
  }
  .management-image-block p{
  }

  .management-image-block {
    padding: 1.5em 1em;
  }

  .main-visual img {
    object-fit: contain;
  }

.main-visual .slide img {
    height: 449px;
}

.main-visual .arrow.left {
    left: 20px;
    font-family: ｍｓ ｐ明朝, ms pmincho, ヒラギノ明朝 pro w3, hiragino mincho pro, serif;
}
.main-visual .arrow {
    font-size: 36px;
}

}

@media (min-width: 771px) and (max-width: 970px){
  /* ヘッダー対応 */
  .site-header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    font-size: 9px;
  }}
