* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  font-family: "Noto Sans JP", sans-serif;

  font-weight: 300;
  font-style: normal;
}
/*google fonts */
.zen-kaku-gothic-antique-light {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.zen-kaku-gothic-antique-regular {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/*ヘッダー・メニュー画面*/
.logo-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  left: 0;
  position: fixed;
  background-color: #eeeeee;
  opacity: 0.8;
  z-index: 10;
}

.logo-img,
.desk-menu-logo {
  width: 60px;
  height: 60px;
  margin-left: 30px;
  opacity: 0.7;
}
#hmb-img {
  width: 40px;
  height: 40px;
  margin-right: 25px;
  z-index: 1;
}
#hmb-img img,
.logo-img img,
.desk-menu-logo img {
  width: 100%;
}
.MENU,
.Access {
  text-align: center;
  font-size: 2rem;
  color: #c7bdbd;
  margin: 20px 0 10px;
}

#hmb-menu {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  right: 0;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out, visibility 1s;
  overflow-y: auto;
  z-index: 10;
}

#hmb-menu.active {
  overflow-y: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#hmb-menu ul {
  list-style: none;
  padding: 0 15px 0 10px;
  margin: 5px 40px;
  line-height: 1.5;
}

#hmb-menu ul li {
  padding: 12px 15px;
}
#hmb-menu ul li a {
  font-size: 1.5rem;
}
#hmb-menu ul li:hover a {
  color: #a19c9a;
  transition: color 0.3s ease;
}

.logo {
  width: 120px;
  margin: 0 auto;
  opacity: 0.7;
}
.logo img {
  width: 100%;
}
#close {
  width: 70px;
  height: 70px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 20px;
}
#close img {
  width: 100%;
}
.margin {
  height: 30px;
}
/*デスクトップメニュー*/
#desk-menu {
  width: 100%;
  height: 100px;
  background-color: #eeeeee;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
}

.desk-menu-ul ul li {
  color: #000000;
  display: inline;
  padding: 15px 18px;
  border-bottom: none;
}
.desk-menu-ul {
  display: flex;
}

/*メインページ*/
#main-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
}

.main-img {
  position: relative;
  width: 100%;
  height: 100vh;
}
.main-img img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: 60% center;
  display: block;
}
/*キャチコピー*/
.catchcopy-1 {
  position: absolute;
  top: 30%;
  left: 7%;
  font-size: 1.4rem;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 300;
  font-style: normal;
  margin: 5px;
  padding: 17px;
  line-height: 1.8;
  background-color: #eeeeee;
  opacity: 0.8;
  z-index: 1;
}

/*スクロールボタン*/
#scroll-btn {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease-out;

  width: 90px;
  height: 90px;
}

#scroll-btn img {
  width: 100%;
}

/*main-visual-2*/
#main-visual-2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
  margin-bottom: 50px;
}

#main-visual-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15); /* ← 黒で薄めに */
  z-index: 1;
}
#main-visual-2 .text-h2 {
  position: absolute;
  font-size: 1.9rem;
  width: 94%;
  margin-bottom: 5px auto;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 300;
  font-style: normal;
  border-bottom: 1px solid #ffffff;
}
#main-visual-2 p {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 1.1rem;
  letter-spacing: 1.1px;
  line-height: 1.6;
  text-align: center;
  z-index: 2;
}

#main-visual-2 #main-visual-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #b0b0b0;
  opacity: 0.5;
  z-index: 1;
}

#main-visual-text {
  opacity: 0;
  transition: opacity 0.4s ease;

  z-index: 2; /* 前面に */
}

#main-visual-text.visible {
  opacity: 1;
}

/*事業内容*/
.business {
  width: 100%;
}
h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  color: #998282;
  margin-bottom: 35px;
}
.content {
  width: 100%;
  margin: 50px auto;
  display: flex;
  flex-wrap: wrap;
}
.content-item {
  width: 50%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: opacity 0.5s ease;
}
.content-item img {
  margin: 7px;
}
.content-item:hover {
  opacity: 0.7;
}
.content-item p {
  font-size: 0.9rem;
  margin: 10px 0 20px;
}
/*company*/
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eeeeee;
}
.company-td {
  background-color: #eeeeee;
  font-size: 1.1rem;
  width: 100%;
  margin: auto;
}
.td-margin {
  width: 100%;
  margin: 0 auto;
  line-height: 1.5;
}
td {
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  font-size: 0.875rem;
}
.Affiliated {
  width: 100%;
}
.Affiliated-heading {
  font-size: 1.1rem;
  text-align: center;
  padding: 10px;
  background-color: #eeeeee;
}
.Affiliated-text {
  text-align: center;
  padding: 20px;
}
.Affiliated-text a {
  font-size: 0.875rem;
  line-height: 1.5;
}

/*Access*/
#Access {
  width: 100%;
  margin: 30px auto;

  padding: 30px 0;
}
.address {
  text-align: center;
  margin: 30px 0;
}
.map-container {
  width: 70%;
  margin: 0 auto;
  opacity: 0.8;
}
/*お問い合わせフォーム*/
.contact-form-container {
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#form-group-submit {
  margin: 15px auto;
  width: 80px;
  text-align: center;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
}
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
}

/* 特定のブラウザでスタイリングが効かない場合、selectの高さを明示的に設定 */
.form-group select {
  height: 45px;
}
.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group span {
  color: red;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #c5dfd4;
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #91f4c9;
}
#error-message,
#error-message-email,
#error-message-phone,
#error-message-question,
#error-menu-question {
  color: red;
  font-size: 14px;
  text-align: center;
}
#error-submenu-question {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  text-align: left; /* または center に戻す */
}
#success-message {
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  opacity: 0;
  color: rgb(80, 82, 80);
  text-align: center;
  margin-top: 19px;
  transition: opacity 1s ease-in-out;
}
footer {
  text-align: center;
  margin-bottom: 20px;
}

@media (min-width: 541px) and (max-width: 920px) {
  /*キャチコピー*/
  .catchcopy-1 {
    top: 30%;
    left: 14%;
    margin: 10px;
    padding: 14px;

    font-size: 2.1rem;
  }
  /*message*/
  #main-visual-2 {
    margin-bottom: 150px;
  }

  #main-visual-2 .text-h2 {
    font-size: 3rem;

    top: 38%;
    left: 50%;
  }
  #main-visual-2 p {
    top: 58%;
    font-size: 2.1rem;
    letter-spacing: 1px;
  }
}

@media (min-width: 481px) and (max-width: 820px) {
  /*スクロールボタン*/
  .scroll-btn {
    top: 90%;

    width: 12px;
    height: 120px;
  }
  /*message*/
  #main-visual-2 {
    margin-bottom: 150px;
  }

  #main-visual-2 .text-h2 {
    font-size: 2.6rem;

    left: 50%;
  }
  #main-visual-2 p {
    top: 58%;
    font-size: 1.7rem;
    letter-spacing: 1px;
  }

  /*事業内容*/
  .content {
    margin: 50px auto;
  }

  .content-item img {
    margin: 12px;
  }

  .content-item p {
    font-size: 1.2rem;
    margin: 10px 0 20px 10px;
  }
  /*company*/
  table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eeeeee;
  }
  .company-td {
    background-color: #eeeeee;
    font-size: 1.1rem;
    width: 30%;
    margin: 5px 0;
  }
  td {
    width: 70%;
    font-size: 0.9rem;
  }
  .td-margin {
    width: 70%;
  }
  tr {
    display: flex;
    flex-wrap: wrap;
  }
  .Affiliated {
    width: 100%;
  }
  .Affiliated-heading {
    width: 30%;
    font-size: 1.1rem;
    margin: 50px auto 20px;
    padding: 10px;
    background-color: transparent;
    border-bottom: 1px solid #998282;
  }

  .Affiliated-text {
    text-align: center;
    padding: 10px;
  }
  .Affiliated-text a {
    font-size: 0.875rem;
    line-height: 3;
  }
  /*Access*/
  #Access {
    width: 100%;
    margin: 50px auto;

    padding: 40px 0;
  }

  .map-container {
    width: 85%;
    display: flex;
    justify-content: center;
    opacity: 0.8;
  }
}
@media screen and (min-width: 541px) {
  /*ヘッダー*/
  .logo-icon {
    opacity: 0;
  }
  .desk-menu-logo {
    width: 100px;
    height: 100px;
    margin-left: 40px;
  }
  .desk-menu-ul ul li {
    padding: 15px 18px;
  }
  #hmb-img {
    opacity: 0;
  }
  #desk-menu {
    opacity: 0.9;
    height: 90px;
    z-index: 10;
  }

  #desk-menu ul li a {
    border-bottom: none;
    font-size: 1.6rem;
  }

  /*スクロールボタン*/
  .scroll-btn {
    top: 85%;
    left: 50%;
    width: 90px;
    height: 90px;
  }
}
@media (min-width: 821px) and (max-width: 1023px) {
  /*キャチコピー*/
  .catchcopy-1 {
    top: 30%;
    left: 14%;
    margin: 10px;
    padding: 22px;

    font-size: 3rem;
  }

  /*スクロールボタン*/
  #scroll-btn {
    top: 85%;
    width: 160px;
    height: 160px;
  }

  #scroll-btn img {
    width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 2500px) {
  /*キャチコピー*/
  .catchcopy-1 {
    top: 30%;
    left: 14%;
    margin: 10px;
    padding: 22px;
    font-size: 3.2rem;
  }

  /*スクロールボタン*/
  #scroll-btn {
    top: 80%;
    width: 120px;
    height: 120px;
  }
  .content {
    width: 100%;
    margin: 50px auto;
    justify-content: center;
  }
  .content-item {
    width: 36%;
  }

  .content-item img {
    margin: 40px;
    height: auto;
  }
  /*message*/
  #main-visual-2 {
    margin-bottom: 200px;
  }

  #main-visual-2 .text-h2 {
    font-size: 3.9rem;

    top: 35%;
    left: 50%;
  }
  #main-visual-2 p {
    top: 61%;
    font-size: 2.9rem;
    letter-spacing: 1px;
  }
}

@media (min-width: 821px) and (max-width: 2500px) {
  /*デスクトップメニュー*/
  #desk-menu {
    height: 120px;
  }

  .desk-menu-ul ul li {
    color: #000000;
    display: inline;
    padding: 15px 18px;
    border-bottom: none;
    font-size: 1.8rem;
  }
  .desk-menu-ul {
    display: flex;
  }

  /*共通css*/
  h2 {
    font-size: 2.5rem;

    margin-bottom: 50px;
  }
  /* main-visual-2*/
  #main-visual-2 .text-h2 {
    width: 80%;
    margin-bottom: 8px auto;
  }

  /*事業内容*/
  .content {
    margin: 150px auto;
  }

  .content-item img {
    margin: 40px;
    height: auto;
  }

  .content-item p {
    font-size: 1.6rem;
    margin: 10px 0 20px 25px;
  }
  /*company*/
  table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eeeeee;
  }
  .company-td {
    background-color: #eeeeee;
    font-size: 1.7rem;
    width: 40%;
    margin: 15px 0;
    padding: 25px;
  }
  td {
    width: 60%;
    margin: auto 0;
    font-size: 1.4rem;
  }
  .td-margin {
    width: 70%;
  }
  tr {
    display: flex;
    flex-wrap: wrap;
  }
  .Affiliated {
    width: 100%;
  }
  .Affiliated-heading {
    width: 30%;
    font-size: 1.7rem;
    margin: 120px auto 20px;
    padding: 15px;
    background-color: transparent;
    border-bottom: 1px solid #998282;
  }

  .Affiliated-text {
    text-align: center;
    padding: 10px;
  }
  .Affiliated-text a {
    font-size: 1.3rem;
    line-height: 3;
  }
  /*Access*/
  #Access {
    width: 100%;
    margin: 50px auto;

    padding: 40px 0;
  }

  .map-container {
    width: 85%;
    display: flex;
    justify-content: center;
    opacity: 0.8;
  }
}
