@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  background-color: #f0f0f0;
  color: #000;
  font-size: 0.875rem;
}
a {
  color: #000;
  font-size: 0.875rem;
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}

.logo {
  width: 100px;
  line-height: 1px;
  margin-right: 60px;
}
.logo a {
  display: block;
}
.section-title {
  font-weight: normal;
  line-height: 1;
  margin-bottom: 50px;
}
/*
疑似要素を使って下線を引く
*/
.section-title::after {
  content: "";
  width: 40px;
  height: 1px;
  background-color: #000;
  display: block;
}
/*
「display: inline-block;」を設定してブロック化することで、
改行されてmargin-bottomが使用できるようになる
*/
.section-title .en {
  display: block;
  font-size: 2.25rem;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}
.section-title .ja {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 36px;
}
/*
横幅を設定するための共通クラス
*/
.wrapper {
  width: 100%;
  max-width: 1032px;
  padding: 0 16px;
  margin: 0 auto;
}

/*-------------------------------------------
  ヘッダー
-------------------------------------------*/
#header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .inner {
  display: flex;
  align-items: center;
}

#header .inner ul {
  display: flex;
  align-items: center;
}

#header .inner li {
  margin-right: 30px;
  font-size: 2rem; /* 見やすいサイズに調整 */
  font-weight: bold; /* 文字を太くして視認性UP */
}

#header .inner li:last-child {
  margin-right: 0;
}

/* スマホ対応: 画面幅が狭くても文字を見やすく */
@media (max-width: 768px) {
  #header .inner li {
    font-size: 1.1rem; /* 少しだけ縮小 */
  }
}


/*-------------------------------------------
mainvisual
-------------------------------------------*/

#mainvisual {
  margin-bottom: -5%; /* 自然な余白を追加 */
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 100px); /* 余白を考慮して少し縮める */
  overflow: hidden;
  position: relative;
}

#mainvisual img {
  width: 100%; /* 画像を横いっぱいに広げる */
  max-width: 2200px; /* 画像の最大幅を制限 */
  height: auto;
  max-height: 80vh; /* 画面の高さに対して調整 */
  object-fit: cover;
  position: relative; /* 画像を上下に動かすために相対位置を設定 */
  top: -100px; /* 画像を少し上に移動 */
}

/*-------------------------------------------
社長挨拶
-------------------------------------------*/
#greeting {
  background-color: #ffffff;
  position: relative;
  margin-bottom: 120px;
  padding: 60px 20px;
  overflow: hidden;
}

#greeting .img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
  width: 80%;
  max-width: 600px;
}

#greeting .img img {
  width: 100%;
  height: auto;
}

#greeting .section-title,
#greeting .greeting-text {
  
  position: relative;
  z-index: 1;
}

#greeting .section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
  color: #000;
}

#greeting .greeting-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

#greeting .greeting-text p:last-of-type {
  margin-bottom: 0;
}




/*-------------------------------------------
About
-------------------------------------------*/
#about {
  display: flex;
  margin-bottom: 120px;
}
#about .img {
  width: 55%;
}
#about .img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
#about .text {
  width: 45%;
  padding: 180px 5% 0 5%;
}
#about .text p {
  line-height: 2.2;
}

/*-------------------------------------------
Business
-------------------------------------------*/
#business {
  margin-bottom: 120px;
}
#business .flex {
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
}
#business .flex .left {
  width: 46%;
  margin-top: 100px;
}
#business .flex .right {
  width: 46%;
}
#business .flex .item {
  margin-bottom: 50px;
}
#business .flex .item:last-child {
  margin-bottom: 0;
}
#business .flex .title {
  font-weight: bold;
  margin: 0 0 10px 18px;
  position: relative;
}
/*
疑似要素でタイトルの横線を引く
*/
#business .flex .title::before {
  content: "";
  width: 8px;
  height: 2px;
  background-color: #000;
  position: absolute;
  top: 50%;
  left: -18px;
}


/*-------------------------------------------
Company
-------------------------------------------*/


#company {
  width: 100%;
  background: #fff;
}

#company .content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px; /* ← 下の余白を完全に削除 */
  margin-top: -80px; /* ここで上に引き寄せる */
}


#company .img {
  width: 300px;     /* 固定幅 */
  height: 300px;    /* 高さも固定して正方形に */
  display: flex;
  align-items: center;
  justify-content: center;
}

#company .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 画像を枠内にフィットさせる */
  border-radius: 8px; /* ← 任意。角を少し丸めるとキレイ */
}

/* テキストエリア */
#company .text {
  width: 30%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* テキストは左寄せ */
  box-sizing: border-box;
}

/* セクションタイトル */
#company .section-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: left;
}

/* 会社情報リスト */
#company .info dt {
  font-weight: bold;
  margin-top: 15px;
  font-size: 16px;
}

#company .info dd {
  margin-bottom: 10px;
  font-size: 16px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #company .content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #company .img,
  #company .text {
    width: 90%;
  }

  #company .img img {
    max-height: 300px;
    height: auto;
  }

  #company .text {
    padding: 20px;
  }
}

/*-------------------------------------------
  Contact1
  -------------------------------------------*/
  #contact1, #contact2 {
    background-color: #f5f5f5;
    padding: 15px 15px; /* 余白を少し減らす */
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 5px; /* 上下の余白をさらに減らす */
    margin-top: 0px; /* 上部余白を削除 */
    width: 100%;
    max-width: 450px; /* 最大幅を少し縮小 */
  }

  #contact1 .section-title, #contact2 .section-title {
    font-size: 1.8rem; /* フォントサイズを少し小さく */
    margin-bottom: 15px; /* 余白を減らす */
    color: #333;
    font-weight: bold;
  }

  #contact1 p, #contact2 p {
    font-size: 1rem; /* フォントサイズを少し小さく */
    color: #555;
    margin-bottom: 20px; /* 余白を減らす */
  }

  /* お問い合わせボタンのスタイル */
  .contact-btn {
    color: white;
    text-decoration: none;
    padding: 12px 20px; /* ボタンの余白を減らす */
    border-radius: 5px;
    font-size: 1rem; /* フォントサイズを少し小さく */
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  /* 各ボタンの背景色 */
  #contact1 .contact-btn {
    background-color: #007bff;
  }

  #contact2 .contact-btn {
    background-color: #006400;
  }

  /* ホバー時のエフェクト */
  .contact-btn:hover {
    transform: translateY(-3px);
  }

  .contact-btn:active {
    transform: translateY(1px);
  }

  /*-------------------------------------------
  横並びにするためのスタイル
  -------------------------------------------*/
  .contact-wrapper {
    display: flex; /* 横並びにする */
    justify-content: center; /* 中央揃え */
    gap: 10px; /* ボックス間の間隔を減らす */
    flex-wrap: wrap; /* スクリーンが小さい場合に折り返す */
    margin:  30px auto; /* 上下の余白を減らす */
    width: 80%;
  }

  /* レスポンシブ対応: 画面幅が小さい場合、ボックスを縦並びに */
  @media (max-width: 768px) {
    .contact-wrapper {
      flex-direction: column; /* 縦並びに変更 */
    }
  }

/*-------------------------------------------
footer
-------------------------------------------*/
#footer {
  background-color: #fff;
  padding-bottom: 20px;
}
#footer .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}
#footer .flex .logo {
  margin-right: 0;
}
#footer .copyright {
  font-size: 0.625rem;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 900px) {
  .logo {
    width: 80px;
    margin: 8px 0;
  }
  .section-title {
    margin-bottom: 34px;
  }
  .section-title .ja {
    margin-bottom: 24px;
  }

  /*-------------------------------------------
  ヘッダー
  -------------------------------------------*/
  #header .inner {
    flex-direction: column;
    align-items: flex-start;
  }
  #header .contact {
    display: none;
  }

  /*-------------------------------------------
  Mainvisual
  -------------------------------------------*/
  #mainvisual {
    margin-bottom: 50px;
  }


  /*-------------------------------------------
  About
  -------------------------------------------*/
  #about {
    flex-direction: column;
    margin-bottom: 80px;
  }
  #about .img {
    width: 100%;
    margin-bottom: 30px;
  }
  #about .img img {
    height: 300px;
  }
  #about .text {
    width: 100%;
    padding: 0 16px;
  }

  /*-------------------------------------------
  Business
  -------------------------------------------*/
  #business {
    margin-bottom: 80px;
  }
  #business .flex {
    flex-direction: column;
    padding: 0;
  }
  #business .flex .left {
    width: 100%;
    margin: 0 0 30px 0;
  }
  #business .flex .right {
    width: 100%;
  }
  #business .flex .item {
    text-align: center;
    margin-bottom: 30px;
  }
  #business .flex .title {
    text-align: left;
  }

 /*-------------------------------------------
  Company
  -------------------------------------------*/
  /*
  「position: static;」でrelativeを解除
  */
  #company {
    height: auto;
    flex-direction: column;
    position: static;
  }
  /*
  「position: static;」でabsoluteを解除
  */
  #company .text {
    width: 100%;
    padding: 40px 20px;
    margin-bottom: 20px;
    position: static;
  }
  /*
  「position: static;」でabsoluteを解除
  */
  #company .img {
    width: 100%;
    padding: 0;
    position: static;
  }
  #company .info {
    flex-direction: column;
  }
  #company .info dt {
    width: 100%;
    margin-top: 20px;
  }
  #company .info dd {
    width: 100%;
    margin-top: 5px;
    padding-left: 14px;
  }
  #company .info dd:first-of-type {
    margin-top: 5px;
  }
  #company .info .add {
    margin-left: 0;
  }

  /*-------------------------------------------
  footer
  -------------------------------------------*/
  #footer .flex {
    flex-direction: column;
    align-items: flex-start;
  }
  #footer .flex .logo {
    margin-bottom: 20px;
  }
}



