@charset "UTF-8";


/* header */

header {
  width: 100vw;
  height: 80px;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 10;
}

header h1 {
  line-height: 80px;
}

header h1 img {
  height: 70%;
  vertical-align: middle;
}

.navi {
  width: 300px;
  height: 100vh;
  background-color: black;
  padding: 50px 20px;
  position: fixed;
  left: -300px;
  opacity: 0;
  transition: 0.5s;
  z-index: 20;
}

.open .navi {
  left: 0;
  opacity: 1;
}

.navi a {
  text-decoration: none;
  color: white;
  cursor: pointer;
}

.nav_menu {
  line-height: 4;
  margin-bottom: 50px;
  border-bottom: 1px solid white;

}

.nav_menu li {
  border-top: 1px solid white;
  list-style: none;
}

.hamburger {
  width: 50px;
  height: 20px;
  margin: auto 0;
  position: relative;
  z-index: 10;
  transition: 0.5s;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background-color: #202124;
  position: absolute;
  transition: 0.5s;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  border-radius: 2px;
}

/* お問い合わせページだけ色を変える場合 */
/* .hamburger--contact span {
  background-color: #F4F7F7; 
} */

.hamburger span:first-of-type {
  top: 0;
  right: 50%;
}

.hamburger span:nth-of-type(2) {
  top: 50%;
  right: 50%;
}

.hamburger span:last-of-type {
  top: 100%;
  right: 50%;
}

.open .hamburger span {
  background-color: white;
}

.open .hamburger span:first-of-type {
  transform: translateY(10px) rotate(-45deg);
  box-shadow: none;
}

.open .hamburger span:nth-of-type(2) {
  opacity: 0;
}

.open .hamburger span:last-of-type {
  transform: translateY(-10px) rotate(45deg);
  box-shadow: none;
}

.mask {
  display: none;
  transition: 0.5s;
}

.open .mask {
  width: 100%;
  height: 100%;
  background-color: rgba(51,51,51,0.3);
  display: block;
  position: fixed;
  top: 0;
  left: 0;
}

@media screen and (max-width: 768px) {
  header {
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
  }

  /* ロゴ */
  header h1 {
    line-height: 60px;
  }

  header h1 img {
    height: 38px;
    width: auto;
  }
  
  .navi {
    position: fixed;
    top: 0;
    left: -300px;         /* 初期位置 */
    width: 300px;
    height: 100vh;        /* 全画面に表示 */

    overflow-y: auto;
    z-index: 9999;        /* ヘッダーより上に */
    transition: .3s;
  }

  .open .navi {
    left: 0;              /* 開いた時にスライドイン */
  }
}



/* firstview */

.firstview {
  margin: 0;
  position: relative;
}

.top_fv {
  width: 100%;
}

.top_catch {
  position: absolute;
  top: 25%;
  left: 32%;
  z-index: 1;
}

.main {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.6);
  line-height: 1.5;
}

.sub {
  margin-top: 5px;
  margin-left: 16px;
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.6);
  line-height: 2;
}

@media (max-width:1125px) {
  .main {
    font-size: 28px;
  }

  .sub {
    font-size: 19px;
  }

  .open .top_catch {
  display: none;
}
}

@media (max-width:800px) {
  /* .main {
    font-size: 23px;
  } */

  .sub {
    font-size: 14px;
    line-height: 1.4;
  }

  .top_catch {
    top: 28%;
    left: 8%;
  }
}

@media (max-width: 480px) {
  .main {
    font-size: 23px;
  }
  .sub {
  margin-left: 0;
}
}

/* top_cpt */
.top_cpt {
  margin: 30px;
}

.top_message {
  width: 65%;
  margin: 0 auto;
}

.top_message p {
  line-height: 2;
}

.top_message span {
  line-height: 3.5;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8DC31E;
}

@media (max-width: 1024px) {
  .top_message {
    width: 80%;
  }

  .top_message span {
    font-size: 1.3rem;
    line-height: 3;
  }

  .top_message p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .top_cpt {
    margin: 30px 15px;  /* 左右余白を広く */
  }

  .top_message {
    width: 100%;
  }

  .top_message p {
    font-size: 15px;
    line-height: 1.75; /* 行間を詰めて読みやすく */
    margin-bottom: 1.2em;
  }

  .top_message span {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.8;  /* 行間を大幅に詰める */
    display: inline-block;
    margin-bottom: 10px;
  }

  .btn_box {
    margin-top: 30px;
    text-align: center;
  }

}

@media (max-width: 480px) {
  .top_cpt {
    margin: 25px 12px;
  }

  .top_message p {
    font-size: 14px;
    line-height: 1.7;
  }

  .top_message span {
    display: block;
  text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
  }

}

/* About Business */

.container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px , 1fr));
  gap: 20px;
  padding: 0 20px;
}

.item {
  box-shadow: 0 0 8px gray;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 300px;
}

.item_img {
  /* flex: 7; */
  width: 100%;
  /* height: 85%; */
  height: 255px;
}

.item_img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.item .content {
  /* flex: 3; */
  /* padding: 20px; */
  text-align: center;
  /* height: 15%; */
  height: 45px;
  align-items: center;
  justify-content: center;
}

.category {
  line-height: 45px;
}



/* CONTACT */

.contact {
  height: 580px;
  background-color: #fff;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

.contents {
  height: 450px;
  margin: 80px 20px 0 20px;
  padding: 30px;
  border-top: 1px solid #aaa;
  z-index: -1;
}

.contact .sec_title::before {
  background-color: rgba(243, 243, 243,.6);
  left: -18%;
}

.contact_inner {
  margin: 0 20px;
}

.contact_text {
  width: 100%;
  padding: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact_text > .logo_add {
  flex: 3;
}

.contact_text > .btn_box {
  flex: 1;
}


.contact_text img {
  width: 220px;
  display: block;
  margin-bottom: 0;
}

.contact_text .add_box {
  margin-left: 40px;
}

.contact_text p {
  padding-top: 10px;
  padding-left: 20px;
}

.contact_text .btn_box {
  width: auto;
  text-align: left;
  margin-top: 0;
}

.contact_map {
  padding: 0 20px 30px 20px;
}
@media (max-width: 750px) {

  .contact {
    height: auto;
    background-attachment: scroll; 
    background-position: center;
    padding: 40px 0;
  }

  .contact .sec_title::before {
    left: -28%;
}
  .contents {
    height: auto;
    margin: 0 10px;
    padding: 20px;
    /* border-radius: 10px; */
  }

  .contact_inner {
    display: block;
    margin: 0;
  }

  .contact_text {
    width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column; /* ← これが不足している */
    align-items: center;
  }

  .contact_text > .logo_add,
  .contact_text > .btn_box {
    flex: none; /* PC用の比率を解除 */
    width: 100%;
  }

  .logo_add {
    display: flex;
    flex-direction: column;
    align-items: center; /* ← これが一番重要 */
  }

  .contact_text img {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
  }

  .contact_text p {
    padding: 5px 0;
    font-size: 1.1rem;  
    text-align: center;
  }

  .contact_text .btn_box {
    text-align: center; /* スマホは中央配置のほうが自然 */
    margin: 20px 0;
  }

  .contact_map {
    width: 100%;
    padding: 0;
    margin-top: 50px;
  }

  .contact_map iframe {
    width: 100%;
    height: 260px; /* スマホに合わせて高さ調整 */
  }
}


/* footer */

footer {
  /* background: #8EC121; */
  background: #122943;
  color: white;
  text-align: center;
  font-size: 0.8rem;
  padding: 20px;
}


@media (max-width: 600px)  {

  .contact_inner {
    display: block;
    flex-direction: column;
  }

  .contact_text , .contact_form{
    width: 100%;
  }

  .contact_text {
    padding-right: 20px;
  }

  .contact_form {
    padding-left: 20px;
  }

  .contact_form .button input {
    width: 100%;
  }
}



