@charset "UTF-8";
/*====================
スマホを基本設計にする
 - 〜479px：スマートフォン縦
 - 480px〜599px：スマートフォン横
 - 600px〜959px：タブレット
 - 960px〜1279px：小型PC
 - 1280px〜：大型PC
====================*/

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  color: #24292e;
  font-family: "Sawarabi Gothic";
}

a {
  text-decoration: none;
}

p {
  font-size: 1.3rem;
}

img {
  max-width: 100%; /* スマホサイズでも画像が縮小される。 */
}

li {
  list-style: none;
  font-size: 1.2rem;
}

/* wrapperは共通 */
.wrapper {
  max-width: 1080px;
  margin: 0 auto 60px auto;
  font-size: 0.9rem;
  /* root em 最上位階層のHTML要素であるHTMLの文字サイズを基準とした相対値*/
  padding: 0 4%;
}

.site-title {
  line-height: 1;
  font-weight: 200;
  font-size: 2rem;
  margin-bottom: 10px;
}

.site-title a {
  display: block;
  color: #fff;
}

.sec-title {
  font-size: 1.5rem;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

/*----------------------------------------------
ヘッダー
------------------------------------------------*/
#header {
  max-width: 100%;
  display: flex;
  flex-direction: column; /* 要素を縦に並べる */
  align-items: center; /* 水平方向の中央揃え */
  justify-content: center; /* 垂直方向の中央揃え */
  height: auto; /* 高さを自動調整 */
  margin: 0 auto;
  background-color: #000; /* 背景色を黒に設定 */
  padding: 15px 10px; /* パディングで余白を調整 */
  white-space: nowrap; /* 折り返しを防ぐ */
}

header h1 {
  font-size: 32px; /* 固定フォントサイズ */
  white-space: nowrap; /* 折り返しを防ぐ */
  text-overflow: ellipsis; /* 必要に応じて省略記号を表示 */
  margin: 0; /* 不要な余白をリセット */
  transition: color 0.3s ease; /* 色変更時のアニメーションを設定 */
}

header h1 a {
  color: #fff
}


#header ul {
  display: flex;
  padding: 10px 0;
  align-items: center;
}

#header li {
  font-size: 0.9rem;
  margin-left: 15px;
}

header li a {
  color: #aaa;
  transition: all 0.3s;
}

header li a:hover {
  color: #fff; /* ホバー時に文字色を白に変更 */
}

#header li img.icon {
  width: 30px;
}

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mainvisual {
  margin-bottom: 80px;
  padding: 0 auto
}

#mainvisual img {
  width: 100%;
  max-width: 1920px;
  height: 500px;
  object-fit: cover;
}

/* スライダー用スタイル */
.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;

}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* スライドの数に応じて調整 */
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  z-index: 10;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/*-------------------------------------------
About
-------------------------------------------*/
#about ul {
  margin-bottom: 30px;
}

#about ul li {
  margin-bottom: 3px;
}

#about ul li:first-child {
  margin-bottom: 30px;
}

#about p {
  text-align: justify;
}

/* Aboutセクションの全体レイアウト */
#about .about-content {
  display: flex;
  justify-content: space-between;
  align-items: center; /* コンテンツを縦方向で中央揃え */
  gap: 20px; /* テキストと画像の間にスペースを追加 */
}

#about .about-text {
  flex: 1; /* テキストエリアを柔軟に広げる */
}

/*
#about .about-image {
  flex: 0 0 300px;
  margin-left: auto;
}

#about .about-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 300px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
*/


/*-------------------------------------------
News
-------------------------------------------*/
#news dl {
  display: flex;
  flex-wrap: wrap;
  border-top: solid 1px #c8c8c8;
  margin-bottom: 20px;
  max-height: 300px; /* 高さを制限 */
  overflow-y: auto; /* 垂直方向にスクロール可能にする */
  overflow-x: hidden; /* 横スクロール禁止 */
  border: 1px solid #c8c8c8; /* 枠線（任意） */
  padding: 10px; /* 内側の余白を追加 */
  background-color: #f9f9f9; /* 背景色（任意） */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ボックスシャドウ（任意） */
}


#news dl {
  margin: 0;
  padding: 0;
}

#news dt {
  width: 20%;
  border-bottom: solid 1px #c8c8c8;
  padding: 15px;
  font-weight: bold;
  color: #333;
}

#news dd {
  width: 80%;
  border-bottom: solid 1px #c8c8c8;
  padding: 15px;
  color: #555;
  line-height: 1.6;
}



/*-------------------------------------------
Contact
-------------------------------------------*/
#contact p {
  text-align: center;
  margin-bottom: 20px;
}

#contact dl {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#contact dt {
  width: 15%;
}

#contact dd {
  width: 85%;
  margin-bottom: 10px;
}

#contact dd input,
#contact dd textarea {
  width: 100%;
  border: solid 1px #c8c8c8;
  padding: 10px;
}

#contact dd textarea {
  height: 10rem;
}

#contact .button {
  text-align: center;
}

#contact .button input {
  border: solid 1px #24292e;
  width: 200px;
  background-color: #24292e;
  color: #fff;
  padding: 15px 0;
  transition: all 0.3s;
}

#contact .button input:hover {
  background: #fff;
  color: #24292e;
}

/*-------------------------------------------
Topics
-------------------------------------------*/
#topics .topics-title { /* topics のタイトル */
  font-size: 1.5rem;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}


#topics .topics-text { /* topics の文章の校正 */
  display: flex;
  justify-content: space-between;
  align-items: center; /* コンテンツを縦方向で中央揃え */
  gap: 20px; /* テキストと画像の間にスペースを追加 */
}

#topics .topics-text-center { /* 中央ぞろえテキスト */
  display: flex;
  justify-content: center;
  align-items: center; /* コンテンツを縦方向で中央揃え */
  gap: 20px; /* テキストと画像の間にスペースを追加 */
  text-align: center;
}

#topics .topics-image {
  flex: 0 0 300px;
  margin-left: auto;
}

#topics ul li {
  margin-top: 3px;
  margin-bottom: 30px;
  text-align: justify;
}




/*-------------------------------------------
Footer
-------------------------------------------*/


#footer {
  background-color: #000; /* フッターの背景色 */
  padding: 20px 0;
  text-align: center;
  position: relative; /* 子要素の位置調整の基準にする */
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  position: relative;
}

.footer-links li {
  display: inline-block;
  position: relative;
}

.footer-links li:first-child {
  transform: translateX(-30px); /* 左に30px移動 */
}

.footer-links li:last-child {
  transform: translateX(30px); /* 右に30px移動 */
}

.footer-links img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-links img:hover {
  transform: scale(1.1); /* ホバー時に画像を拡大 */
}

/*----------------------------------------------
SP
------------------------------------------------*/
/* pcファースト　大きいサイズから小さいサイズへ */
/* 600pxより小さいときのcss適用 */
@media screen and (max-width: 600px) {
  .wrapper {
    margin-bottom: 60px;
  }

  .site-title {
    margin-top: 20px;
  }

  .sec-title {
    margin-bottom: 40px;
  }

  /* ヘッダー */
  #header {
    max-width: 100%;
    height: auto;
    flex-direction: column;
    margin-top: 0px;
    line-height: 40px;
    padding-top: 20px;
  }

  #header li {
    font-size: 0.8rem;
    margin-left: 20px;
  }

  #header li:first-child {
    margin-left: 0;
  }

  #header li img.icon {
    width: 20px;
    margin-top: 15px;
  }

  /* works */
  #works ul {
    flex-direction: column;
  }

  #works ul li {
    width: 100%;
  }

  /* news */
  #news dl {
    flex-direction: column;
  }

  #news dt {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0;
  }

  #news dd {
    width: 100%;
    padding-top: 0;
  }

  #mainvisual img {
    width: 100%;
    max-width: 1920px;
    height: 400px;
    object-fit: cover;
  }

  #news dl {
    display: block; /* flexをやめる */
    max-height: 300px; /* 既存値を維持 */
    overflow-y: auto; /* 縦スクロール */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
  }

  /* 行のレイアウトは縦積みに */
  #news dt,
  #news dd {
    width: 100%;
    border-bottom: 1px solid #c8c8c8;
    padding: 15px;
  }

  /* 既存のモバイル指定と整合させる微調整（任意） */
  #news dt {
    padding-bottom: 0;
  }

  #news dd {
    padding-top: 0;
  }
}