@charset "UTF-8"; /* 文字コードの指定 */

/* Base
------------------------------------------------------------*/
body {
　height: 100%;
  font-family: "Times New Roman";
}

a,
a:hover {
  text-decoration: none;
}

a:hover {
  color: #E3EF4C;
}

img{
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a[href^="mailto:"] {
  color: black;
  text-decoration: underline; /* 下線を消したい場合 */
}

a[href^="mailto:"]:hover {
  color: #E3EF4C;           /* ホバーしても黒のまま */
  text-decoration: none;/* ホバー時に下線つける例 */
}

/* ヘッダー部分
------------------------------------------------------------*/

header {
　position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 1rem 1rem;
  font-family: "Times New Roman";
  font-size: 1.2rem;
  font-weight: 900;
}

.logo-image {
  width: 100%;
  height: auto; /* アスペクト比を保ったまま高さを自動調整 */
  display: block; /* 不要な隙間を消す */
}

.nav ul {
  display: flex;
  gap: 15px;
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.nav a {
  color: black ;
  text-decoration: none;
}

.nav a:hover {
  color: #E3EF4C;        
  text-decoration: none;
}


/* ハンバーガーアイコン（非表示がデフォルト） */
.hamburger {
  display: none;
  position: fixed;
  top: 0.5rem;
  right: 15px;
  z-index: 1000;
  font-size: 35px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  transition: color 0.5s;
}

.hamburger:hover {
  color: #E3EF4C;
}

/* 780px以下でハンバーガー表示 */
@media (max-width: 780px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%; /* ← 最初は画面外 */
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    padding: 100px 10px;
    transition: right 0.3s ease;
    z-index: 900;
  }

  .nav.active {
    right: 0; /* スライドイン */
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 1px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav li {
    font-size: 40px;
    margin: 3px;
  }

  .nav a {
    color: #5C5C5C;
    text-decoration: none;
    transition: color 0.5s;
  }

  .nav a:hover {
    color: #E3EF4C;
  }
}



/* links部分
------------------------------------------------------------*/

.links {
  background-color: #FFFFFF;
  padding: 0.2rem 0.2rem;
}

.links .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.3rem;
  row-gap: 0.3rem;
  width: 100vw;            /* 画面の幅の98% */
  margin: 0 auto;         /* 横方向中央に配置 */
}


.links-box {
	position: relative;
  display: block;
	  width: 24vw;
}

.text-overlay {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 15px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.2); /* 半透明の背景 */
  padding: 3px 50px;
  border-radius: 1px;
  text-align: center;
}

/* 850px以下で3列に変更 */
@media (max-width: 850px) {
  .links-box {
  width: calc(100%/3 - 0.4rem);
	}
}

/* 600px以下で2列に変更 */
@media (max-width: 600px) {
  .links-box {
  width: calc(100%/2 - 0.4rem);
	}
}

/* about部分
------------------------------------------------------------*/
.about_container {
      display: grid;
      grid-template-columns: 60% 40%;
      gap: 10px;
      max-width: 1000px;
      padding: 20px;
    }

.insta  {
  font-family: "Times New Roman";
  font-size: 1.5rem;
  font-weight: 900;
  padding-bottom: 0rem;
}

.insta  a {
  color: #000000;
  text-decoration: underline;
}

.insta  a:hover {
  color: #E3EF4C;
}

    .item {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

.title_main{
  font-family: "Times New Roman";
  font-size: 1.5rem;
  font-weight: 900;
  padding: 1rem 0 2rem ;
}

.title_eis{
  font-family: "Times New Roman";
  font-size: 1.5rem;
  font-weight: 900;
  padding: 1.5rem 0 0.2rem ;
}

.title_hiro{
  font-family: "Times New Roman";
  font-size: 1.5rem;
  font-weight: 900;
  padding: 1rem 0 0.2rem ;
}
	
    .image-box img {
	width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* ← これが中央配置のポイント */
    }
    

/* モバイル対応：780px以下で縦並び＆画像中央寄せ */
 @media (max-width: 780px) {
      .about_container {
    grid-template-columns: 100%;
      }
	 
	 .image-box {
        text-align: center; /* 念のため */
      }
	 
      .image-box img {
        width: 70%;
        height: auto;    /* 小さめ表示 */
        margin: 50px auto;     /* 中央配置を明示 */
      }
    }


/* function部分
------------------------------------------------------------*/
.function {
  background-color: #000000;
  padding: 1rem 1rem;
  width: 100%;
  height: 35rem;
}

.function .container{
  padding-bottom: 1rem;
  align-items: center;
  font-family: "Times New Roman";
  font-size: 1rem;
  text-align: left;
  color: #ffffff;
  width: 100%;
}

.function_container{
	display: grid;
    grid-template-columns: 70% 30%;
    gap: 10px;
    max-width: 1000px;
    padding: 0px 20px 0px 0px;
	
}

.function_container img {
	width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto; /* ← これが中央配置のポイント */
    }

.function .title{
  font-family: "Times New Roman";
  font-size: 2.5rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  color: #E3EF4C;
}

.function .text{
  padding-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* モバイル対応：780px以下で縦並び＆画像中央寄せ */
 @media (max-width: 780px) {
	 .function {
  height: 70rem;
}
	 
      .function_container {
    grid-template-columns: 100%;
      }
	 
	 .function_image-box {
        text-align: center; /* 念のため */
      }
	 
      .function_image-box img {
        width: 70%;
        height: auto;    /* 小さめ表示 */
        margin: 70px auto;     /* 中央配置を明示 */
      }
    }

.contact-info p {
  margin: 0.5rem 0;
  font-size: 16px;
  color: #FFFFFF;
}

.contact-info a {
  color: #FFFFFF;
  text-decoration: underline;
}

.contact-info a:hover {
  color: #E3EF4C;
}



/* 600px以下でwidth100%に変更 */
@media (max-width: 600px) {
 .function .container{
  width: 100%;
}
}
	/* ヘッダー部分
------------------------------------------------------------*/	
footer {
  font-family: "Times New Roman";
  font-size: 1.2rem;
  font-weight: 900;
  text-align: left;
  color: #000000;
  background-color: #FFFFFF;
  margin: 2rem 0rem 1rem 1rem;
}

.email-link {
	font-size: 1rem;
  font-weight: 900;
}
