body {
  font-family: 'Noto Serif JP', serif;
  padding-top: 60px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.logo {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: center;
}

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

.hamburger {
  display: none;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.drawer-nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background: #086265;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px;
  gap: 25px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1001;
}

.drawer-nav.active {
  display: flex;
}

.drawer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.drawer-nav a:hover {
  color: #79b5b5;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

.first-view {
  position: relative;
  height: 900px;
  overflow: hidden;
}

.fv {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}

/* 表示されてるものだけ前面&透明度100% */
.fv.active {
  opacity: 1;
  z-index: 1;
}

/* 背景画像 */
.fv-1 {
  background-image: url("../img/top0_pc.png");
  background-size: cover;
  background-position: center;
  height: 900px;
}

.fv-2 {
  background-image: url("../img/top1_pc.png");
  background-size: cover;
  background-position: center;
  height: 900px;
}

.fv-3 {
  background-image: url("../img/top2_pc.png");
  background-size: cover;
  background-position: center;
  height: 900px;
}

.fv-4 {
  background-image: url("../img/top3_pc.png");
  background-size: cover;
  background-position: center;
  height: 900px;
}

.fv-text {
  position: absolute;
  bottom: 80px;
  right: 50px;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease;
  max-width: 600px;
  z-index: 1000;
}

.fv-text h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.fv-text p {
  font-size: 20px;
  line-height: 1.6;
}

.fv.active .fv-text {
  opacity: 1;
  transform: translateY(0);
}

/* 色の指定 */
.fv.text-white .fv-text {
  color: #fff;
}

.fv.text-black .fv-text {
  color: #333;
}

.fv-4 .fv-text{
  display: none;
}



.banners {
  padding: 50px 0;
}

.banner {
  display: block;
  margin: 0 auto 30px;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* ホバーアニメーション */
.banner:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.banner:hover img {
  transform: scale(1.05);
}

/* aboutセクション */
.contents{
  max-width:1200px;
  margin:100px auto;
}

main {
  text-align: left;
}

/* 各セクションの中央寄せ */
section {
  margin-bottom: 60px;
}

h2{
  text-align: center;
  margin-top:60px;
}


.about img {
  width: 100%;
  height: auto;
}

.company-info {
  padding: 20px;
}

.company-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* 会社概要のdl整え */
.company-info dl dt, .company-info dl dd {
  border-bottom: 1px solid #ccc;
  padding: 8px 0;
}

.company-info dl {
  display: inline-block;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
}

.company-info dt {
  width: 30%;
  font-weight: bold;
  margin-bottom: 1rem;
}

.company-info dd {
  width: 70%;
  margin-bottom: 1rem;
  line-height: 2rem;
}

/* 役員紹介 */
.members {
  padding: 40px 20px;
}

.members h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
}

.member-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.member {
  text-align: center;
  width: 400px;
}

.member img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.history h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

.history img {
  max-width: 1000px;
}

.awards h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
}

.awards .cert-item {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.awards dl {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.awards dt, .awards dd {
  padding: 8px 0;
}

.awards dt {
  font-weight: bold;
  width: 200px;
  flex-shrink: 0;
}

.awards dd {
  flex: 1;
}

/* 認定ロゴのリスト中央寄せ */
.awards-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  padding: 0;
  list-style: none;
}

.awards-list li img {
  max-width: 200px;
  height: auto;
}

.message h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
  padding-top:200px;
}

.mienai{
  text-align: center;
}

.message{
  background-image: url("../img/about_bg1.png");
  background-size: auto;
  background-position: center;
  height: 1500px;
}

.message h3 {
  font-size: 1.2rem;
  text-align: left;
  margin-top: 100px;
  margin-bottom: 30px;
  padding-left:100px;
  color:#333;
}

.message p{
  background-color: ;
  display: block;
  margin-left:100px;
  line-height: 1.8;
}

.founder1 {
  display: flex;
  align-items: flex-start;
  gap: 60px; /* 画像とテキストの間に余白 */
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 100px;
}

.founder1 img {
  max-width: 600px;
  height: auto;
  flex-shrink: 0;
}

.founder1 p {
  flex: 1;
  line-height: 1.8;
}

.founder2 {
  background-image: url("../img/about_bg2.png");
}

.founder2 h2{
  font-size: 1.8rem;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
  padding-top:200px;
}

.yamadakei {
  display: flex;
  align-items: flex-start;
  gap: 60px; /* 画像とテキストの間に余白 */
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 100px;
}

.yamadakei img {
  max-width: 600px; /* 必要なら画像サイズを制限 */
  height: auto;
}

/* なんでこれ効かないの？？ */
.interview_posts {
 display: flex;
 flex-wrap: wrap;
 gap: 50px;
 max-width: 1200px;
 justify-content: center;
 margin: 100px auto;
}

.interview_posts .box {
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  width: calc(50% - 25px);
  box-shadow: 4px 4px 0 #d9d9d9;
  overflow: hidden;
  display: inline-block;
  gap: 50px;
  flex-direction: column;
  transition: all 0.3s ease;
}

.interview_posts .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: #f5f5f5;
}

.interview_posts .photo img {
  width: 100%;
  height: auto;
  display: block;
}

.interview_posts .df {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
  border-bottom: 1px solid #ccc;
}

.interview_posts .group {
  font-size: 16px;
  line-height: 1.4;
}

.interview_posts h3 {
  font-size: 20px;
  line-height: 1.6;
  padding: 16px;
  font-weight: bold;
  color: #333;
}

.interview_posts .box:hover h3 {
  color: #c00;
}

.interview_posts .box.left-align {
  margin-left: 0;
  margin-right: auto;
}

/* インタビュー上部 */
.interview_top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

.top_img {
  flex: 0 0 45%;
  max-width: 45%;
  margin-right: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ← ここ追加 */
  overflow: hidden;
}

.top_img img {
  width: 100%;
  height: auto;
  display: block;
}

.interview_title {
  flex: 1;
}

.interview_title .df {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
}

.interview_title h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

/* オープニング文章 */
.interview_opening {
  background-color: #116c68;
  color: #fff;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 6px;
}

/* セクション本文 */
.interview_contents {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 80%;
  margin:0 auto;
}

.interview_text h4 {
  font-size: 20px;
  padding-left: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.interview_text h4::before {
  content: "";
  display: inline-block;
  width: 86px;
  height: 2px;
  background-image: url("../img/line_green.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.interview_text p {
  font-size: 16px;
  color: #333;
  padding:30px 0 50px 50px;
}

/* データボックスのコンテナ */
.data-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-image: url("../img/bg_number.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.data-info p{
  margin-top: 100px;
  text-align: left;
}

/* データボックス単体 */
.data-box {
  width: 48%;
  margin-top: 100px;
  margin-bottom: 40px;
  box-sizing: border-box;
  position: relative;
}

/* 各画像のスタイル */
.data-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* テキスト部分のスタイル */
.data-box div {
  position: absolute;
  top:500px;
  left:20px;
  background: #fff;
  padding: 15px 20px;
  border: 1px solid #e73817;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 6px;
}

/* 採用内訳の部分は少し文字サイズと余白を調整 */
.text-daigaku {
  font-size: 13px;
  line-height: 1.7;
}

/* 採用内訳のh4タイトル */
.text-daigaku h4 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bold;
}

.prize-list {
      max-width: 800px;
      margin: 200px auto;
    }

    .prize-list img {
      display: block;
      margin: 0 auto 30px;
      width: 60px;
    }

    .prize-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .prize-year {
      color: #007b8c;
      font-size: 20px;
      width: 140px;
      flex-shrink: 0;
    }

    .prize-detail {
      font-size: 18px;
      line-height: 1.7;
    }

    .engineer table {
      border-collapse: collapse;
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
      background-color: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .engineer th, td {
      border: 1px solid #999;
      padding: 12px;
      text-align: center;
    }
    .engineer th {
      background-color: #007b8a;
      color: #fff;
    }
    .engineer tr:nth-child(even) td {
      background-color: #f2f2f2;
    }

    .human_policy {

    }

    .policy-wrapper{
      display: flex;
      justify-content: center;
      gap:40px;
      margin-top: 50px;
    }

    .policy{
      width:45%;
    }

    .policy h3, .policy p {
      text-align: left;
    }

    .human_contents, .human_contents_ex{
      text-align: center;
    }

    .human_contents p{
      margin-top:50px;
    }

    .human_contents_ex p{
      margin-top:50px;
    }

    .human_contents img{
      display: block;
      width: 1000px;
      margin:50px auto;
    }

    .human_contents_ex img{
      width: auto;
    }

    .human_contents_ex table{
      margin: 50px auto 0;
    }

    .new td {
      border: 1px solid #8dc4c6;
      text-align: left;
    }

    .sewa {
      color: #ec775f;
    }

    .new_img {
      display: flex;
      justify-content: center;
      gap:20px;
      margin: 50px auto;
    }

.ams p{
  background-color: #ccc;
  border-radius: 6px;
  padding:30px;
}

.air {
  text-align: center;
}

.air img{
  width: 100%;
  height: auto;
  display: block;
}

.value1 h2{
  text-align: left;
}

.value1 {
  position: relative;
  max-width: 1200px;
  height: 1200px;
  margin: 0 auto;
}

.purpose {
  position: absolute;
  top: 60%;
  right: -20%;
  transform: translateX(-50%);
  color: #000;
  width: 80%;
  max-width: 400px;
}

.purpose h3 {
  margin-top: 0;
  font-size: 24px;
}

.purpose p {
  font-size: 16px;
  line-height: 1.6;
}

.you {
  position: relative;
  height: 1000px;
}

.you h2{
  text-align: left;
}

.future {
  position: absolute;
  top:10%;
  left:0%;
  max-width: 400px;
}

.you img {
  position:absolute;
  top:0;
  left:10%;
}

.now {
  display: flex;
  position: relative;
  height:1200px;
}

.now h2{
 text-align: left;
 display: ruby-text;
}

.wareranoki {
  position: absolute;
  top:20%;
  left:0%;
  width: 400px;
}

.tamayakinjin {
  position: absolute;
  top:80%;
  left:0%;
  width: 400px;
}

.vice {
  background-image: url("../img/value_img4.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
  width:1000px;
  height:500px;
  padding-left: 20px;
}

.president_text {
  font-size: 1.2em;
  line-height: 1.8;
  width:80%;
  margin: 60px auto;
}

.site-footer {
  background-color: #086265;
  color: #fff;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-inner p {
  margin: 0;
}

/* 丸型エントリーボタンのデザイン */
.entry-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: red;
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
  z-index: 9999;
  display: inline-block;
  text-align: center;
}

/* ホバーエフェクト */
.entry-button:hover {
  background-color: red;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* スマホ・タブレット用 共通調整 */
@media screen and (max-width: 1024px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 25px;
    background: ;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
  }

  .drawer-nav {
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    max-width: none;
    align-items: center;
    transition: right 0.3s ease;
    padding: 50px 20px;
    box-sizing: border-box;
    z-index: 9998;
  }

  .drawer-nav a {
    font-size: 22px;
    font-weight: bold;
    padding: 10px 0;
  }

  .drawer-nav a:hover {
    font-size: 24px;
    color: #79b5b5;
  }

  .banner {
    max-width: 100%;
    margin: 0 20px 30px;
  }

  .footer-inner {
    padding: 0 20px;
  }

  /* activeの時は画面内に表示 */
  .drawer-nav.active {
    right: 0;
    display: flex;
  }

  .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

.first-view {
  position: relative;
  height: 530px;
  overflow: hidden;
}

.fv {
    height: auto;
    aspect-ratio: 16/9;
  }

  .fv-text {
    position: absolute;
    top:250px;
    left:50px;
    padding: 15px;
    opacity: 1;
    transform: none;
    max-width: 100%;
    text-align: center;
  }

  .fv.text-white .fv-text,
  .fv.text-black .fv-text {
    color: #333;
  }

  .fv-text h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .fv-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .fv.text-white .fv-text,
  .fv.text-black .fv-text {
    color: #333;
  }

  .fv-4 .fv-text{
    display: block;
  }

  .entry-button {
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    padding: 18px 20px;
    font-size: 17px;
    z-index: 999;
  }

  .contents{
    margin:0 auto;
  }

  section {
    padding: 40px 15px;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .company-info dt, .company-info dd {
    width: 100%;
    padding: 8px 0;
  }

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

  .member {
    width: 90%;
    max-width: 320px;
  }

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

.awards .cert-item {
    display: block;
  }

  .awards dt {
    width: 100%;
    margin-bottom: 5px;
  }

  .awards dd {
    padding-left: 0;
  }

  .awards-list li {
    width: 45%;
    text-align: center;
  }

  .founder1, .yamadakei {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .founder1 img, .yamadakei img {
    width: 100%;
    max-width: 500px;
  }

  .founder1 p, .yamadakei p {
    flex: none;
    width: 100%;
  }

  .message p{
    margin-left:0px;
    text-align: left;
  }

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

  .interview_posts .box {
    width: 90%;
  }

  .interview_posts .box.left-align {
    margin:0 auto;
  }

  .interview_top {
    flex-direction: column;
    text-align: center;
  }

  .top_img {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }

  .interview_title .df {
    justify-content: center;
  }

  .interview_contents{
    width:100%;
    padding:0 10px;
  }

  .interview_text h4 {
    padding-left: 0;
  }

  .interview_text p {
    padding: 0;
  }

  .about img{
    margin-top:0;
  }

  .data-info {
    flex-direction: column;
    background-image: unset;
  }

  .data-info p{
    margin-top: 0px;
  }

  .data-box {
    width:100%;
    align-items: center;
    margin-top:0;
    margin-bottom: 30px;
  }
  .data-box img {
    max-width: 100%;
    height: auto;
  }
  .data-box div {
    position: static;
    text-align: center;
    padding: 10px;
  }

  .prize-list {
        margin: 0 auto;
      }

  .engineer table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* policy-wrapperを縦並びに */
 .policy-wrapper {
   flex-direction: column;
   gap: 20px;
   margin-top: 30px;
 }

 .policy {
   width: 100%;
 }

 .policy img {
    width: 100% !important;
  }

 /* human_contentsとhuman_contents_exの画像幅を画面幅に合わせる */
 .human_contents img,
 .human_contents_ex img {
   width: 100%;
   height: auto;
   margin: 30px auto;
 }

 /* human_contents, human_contents_exの余白調整 */
 .human_contents p,
 .human_contents_ex p {
   margin-top: 30px;
 }

 /* テーブルは横スクロールにするのがおすすめ */
 .human_contents_ex table {
   display: block;
   overflow-x: auto;
   white-space: nowrap;
   margin: 30px auto 0;
 }

 .new td {
   display: block;
   width: 100%;
   box-sizing: border-box;
   padding: 10px;
 }

 .new tr {
   display: block;
   margin-bottom: 10px;
 }

 /* new_img内の画像ボックスを2列に */
 .new_img {
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
   margin: 30px auto;
 }

 .new_img_box {
   width: calc(50% - 5px);
 }

 .new_img_box img {
   width: 100%;
   height: auto;
 }

 /* .value1 セクション調整 */
  .value1 {
    position: relative;
    height: auto;
  }

  .value1 img {
    width: 100%;
    height: auto;
    display: block;
  }

  .purpose {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 30px 0;
  }

  .purpose h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .purpose p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* .you セクション調整 */
  .you {
    position: relative;
    height: auto;
    padding-bottom: 30px;
  }

  .you img {
    position: static;
    width: 100%;
    height: auto;
    margin: 30px 0;
  }

  .future {
    position: static;
    max-width: none;
    margin: 30px 0;
  }

  /* .now セクション調整 */
  .now {
    display: block;
    position: static;
    height: auto;
  }

  .now_left, .now_right {
    width: 100%;
  }

  .now h2{
    display: inline;
  }

  .now_right img {
    width: 100%;
    height: auto;
    margin: 30px 0;
  }

  .wareranoki, .tamayakinjin {
    position: static;
    width: 100%;
    margin: 20px 0;
  }

  .vice {
    width: 100%;
    height: 700px;
    background-image: url("../img/value_img4_sp.png");
    background-size: cover;
    background-position: center;
    padding: 20px;
    box-sizing: border-box;
  }

  .vice p {
    font-size: 14px;
    line-height: 1.7;
  }

  .president_text {
    width:90%;
    margin: 30px auto;
  }

  .sns {
    display: flex;
    justify-content: center;
    gap:20px;
  }

}

/* スマホ用 */
@media screen and (max-width: 600px) {
  .site-header {
    padding: 10px 20px;
  }

  .logo {
    width: 150px;
  }

  .banner {
    margin: 0 15px 20px;
  }

  .site-footer {
    font-size: 12px;
    padding: 15px 0;
  }
}
