@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
}

/* TOP */
.main-visual {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 90px);
  margin-top: 90px; 
}

.main-visual img {
  width: 100%;
  height: 160%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(60%);
}



.fade-in {
  opacity: 0;
  transform: translateY(30px); /* ちょっと下から出る */
  animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.main-visual .imagetop {
  position: absolute;
  top: 50%;
  left: 15%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;  
  justify-content: flex-start;
  align-items: flex-start;    
  color: #fff;
  padding: 2rem;
  box-sizing: border-box;
  gap: 2rem; 
}
.main-visual h1 {
  position: relative; 
  font-size: clamp(24px, 5vw, 48px);
  color: #30344D;
  font-weight: 700;
  margin: 0;
  text-align: left;
  text-shadow: 3px 3px 5px white;
  font-family: 'Noto Serif JP', serif;
  transform: translateX(35px);
  z-index: 1; 
}

.main-visual h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10%;
  transform: translateY(-50%) skewX(-20deg);
  width: 120%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: -1; 
  pointer-events: none;
  border-radius: 4px;
}

.main-visual p {
  font-size: clamp(16px, 3vw, 24px);
  color: #C58B4B;
  font-weight: bold;
  margin: 0 auto;
  margin-top: 5%;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
}

.contact-btn {
  background-color: #C58B4B;
  color: #fff;
  font-size: clamp(16px, 5vw, 30px);
  border-radius: 16px;
  padding: clamp(8px, 2vw, 16px) clamp(16px, 4vw, 32px);
  width: auto; 
  font-weight: bold;
  align-self: center;  
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin: 20px 0;
}

.contact-btn:hover {
  background-color: #30344D;
}

/* 会社概要 */
.company-section {
  border: 15px solid #C58B4B; 
  padding: 20px;
  text-align: center;
  padding-bottom: 50px;
  margin-top: 0px;
}



.company-section h2 {
  font-size: 82px;
  margin: 80px 0;
  color: #30344D;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
}

.company-content {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.company-left {
  text-align: center;
  width: 600px;
  height: 500px;
  object-fit: cover;
  display: block;
  margin: 80px 0;
  
}

.company-left img {
  width: 100%;
  height: auto;
  
}

.company-right {
  width: 750px;
  height: 500px;
  border: 3px solid #30344D;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}


.text-box {
  max-width: 100%;
  text-align: center;
  color: #30344D;
}

.text-box .title {
  font-size: 48px;
  text-align: center;
  font-weight: lighter;
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;

}

.text-box .desc {
  font-size: clamp(14px, 2vw, 20px);
  max-width: 80ch; /* 80文字程度まで */
  margin: 0 auto;
  text-align: left;
  word-break: normal;
  padding: 0 32px;
}


.button {
  background-color: #C58B4B;
  color: #fff;
  font-size: 30px;
  border-radius: 16px;
  padding: 20px 40px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.more-btn:hover {
  background-color: #30344D;
}


/* サービス概要 */
.service-overview {
  border: 15px solid #30344D;
  padding: 20px;
  text-align: center;
  padding-bottom: 50px;
}

.service-overview h2 {
  font-size: 82px;
  font-size: 82px;
  margin: 80px 0;
  color: #30344D;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
}

.service-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}

.service-item {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.service-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #30344D;
  font-family: 'Noto Sans JP', sans-serif;
}

.image-container {
  position: relative;
  width: 400px;
  height: 300px;
  margin-bottom: 80px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%);
}

.image-comment {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  background-color: rgba(255,255,255,0.7);
  padding: 2px 16px;
  border-radius: 3px;
}

.button {
  padding: 20px 40px;
  background-color: #C58B4B;
  color: #fff;
  font-size: 24px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 40px;
  display: inline-block;
}

.button:hover {
  background-color: #30344D;
}


/* お問い合わせ */
.contact-section {
  width: 95%;
  height: auto;
  margin: 0 auto;
  border: 15px solid #C58B4B;
  text-align: center;
  padding: 20px;
  margin: 30px auto;
  box-sizing: border-box;
}

.contact-section h2 {
  font-size: 82px;
  margin: 80px 0;
  color: #30344D;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
}

.contact-section .sub-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #30344D;
}

.contact-btn {
  display: inline-block; 
  padding: 20px 60px;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 100px;
  background-color: #C58B4B;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none; 
}

.contact-btn:hover {
  background-color: #30344D;
}


.question {
  font-size: 20px;
  padding: 0 32px;
}

.qa-title {
  font-size: 32px;
  margin-bottom: 80px;
  color: #30344D;
  font-family: 'Noto Sans JP', sans-serif;
}

.qa-boxes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin: 80px auto;
}

.qa-box {
  width: 90%;
  border: 2px solid #C58B4B;
  padding: 15px;
  box-sizing: border-box;
  text-align: left;
  margin-bottom: 30px;
  margin: 80px auto;
}

.answer {
  color: #C58B4B;
  font-size: 24px;
  padding: 0 32px;
  }


/* SNS */
.sns-section {
  border: 15px solid #30344D;
  padding: 20px;
  text-align: center;
}

.sns-section h2 {
  font-size: 82px;
  margin: 80px 0;
  color: #30344D;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;

}

.sns-section .sns-desc {
  font-size: 24px;
  margin: 40px 0 80px;
  color: #30344D;
}

.sns-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 180px;
}

.sns-links a img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.sns-links a img.small {
  width: 120px;
  height: 120px;
  margin-top: 15px;
}

.sns-links a:hover img {
  transform: scale(1.1);
}


@media screen and (max-width: 600px) {
  .main-visual {
    height: 80vh;
    margin-top: 100px; 
  }

  .main-visual img {
    height: 120%;
  }

  .main-visual h1 {
    font-size: 24px;
    margin-bottom: 10%;
  }

  .main-visual p {
    font-size: 13px;
    margin-top: -15%;
  }


  .imagetop {
  margin-top: 120px;
  }

  .contact-btn {
    white-space: nowrap;
    font-size: 18px;
    padding: 10px 20px;
    margin-bottom: 80%;
  }

  .company-section h2,
  .service-overview h2,
  .contact-section h2,
  .sns-section h2 {
    font-size: 34px;

  }

  .company-content {
    width: 100%;
    height: auto;
  }

  .company-left {
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  .company-left img {
    display: block; 
    margin: 0;
    padding: 0;
    height: auto;
    margin: 48px 0;
  }

  .company-right {
    width: 100%;
    height: auto;
    margin: 48px 0;
  }

  .text-box .title {
    font-size: 24px;
    margin: 48px 0;
  }

  .text-box {
    text-align: left;
  }

  .text-box .desc {
    font-size: 14px;
    max-width: 95%;
    padding: 16px;
    word-break: normal;
  }


  .service-items {
    flex-direction: column;
  }

  .service-item {
    max-width: 100%;
  }

  .image-container {
    width: 100%;
    height: auto;
  }

  .image-container img {
    height: auto;
  }

  .image-comment{
    font-size: 12px;
    padding: 16px;
  }

  .service-title {
    font-size: 24px;
  }

  .contact-section .sub-title {
    font-size: 20px;
  }

  .button {
    font-size: 18px;
    padding: 0.5rem 1rem;
  }

  .qa-title {
    font-size: 24px;
    margin-top: -170px;
  }
  .qa-box {
    width: 95%;
    margin: 48px 0;
    background: #fff;
    padding: auto;
    border-radius: 4px;
  }
  

  .question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  
  .question .text {
    font-size: 16px;
  }
  .answer{
    font-size: 14px;
  }

  .question .arrow {
    color: #30344D;
    transition: transform 0.3s ease;
  }
  
  
  
  

  .sns-section .sns-desc {
    font-size: 18px;
  }

  .sns-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 19px;
  }

  .sns-links a {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    height: 100px; 
    flex: 0 0 30%;
  }


  .sns-links a img {
    width: 70px;
    height: 70px;

  }

  .sns-links a img.small{
    width: 60px;
    height: 60px;
    transform: translateY(-10px);
  }
}
@media screen and (max-width: 380px) {
  .main-visual h1 {
    font-size: 24px;
    margin-bottom: 10%;
    margin-top: -35%;
  }

  .main-visual p {
    font-size: 13px;
    margin-top: -18%;
    white-space: nowrap;
  }

  .contact-btn {
    white-space: nowrap;
    font-size: 18px;
    padding: 10px 20px;
    margin-bottom: 90%;
  }

  .question .text {
    font-size: 12px;
  }
}


/* 初期状態 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(0px);
  transition: all 1s ease-out;
}

/* 見えたとき */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


@media screen and (min-width: 600px) and (max-width: 1024px) {
  /* iPad Air, iPad Pro 11インチ向けスタイル */
  
  .main-visual {
    height: 80vh;
    margin-top: 90px;
  }

  .main-visual h1 {
    font-size: 32px;
    transform: translateX(20px);
    margin-top: 300px;
  }

  .main-visual p {
    font-size: 22px;
    margin-top: 5%;
  }

  .contact-btn {
    font-size: 30px;
    padding: 24px 48px;
    margin-top: -10px;
  }

  .company-section h2,
  .service-overview h2,
  .contact-section h2,
  .sns-section h2 {
    font-size: 48px;
    margin: 64px 0;
  }



  .company-left img {
    margin: 64px 0;
  }

  .company-right {
    margin: 64px 0;
    height: auto;
  }

  .text-box .title {
    font-size: 36px;
    margin: 64px 0;

  }

  .text-box .desc {
    font-size: 22px;
    padding: 24px;
  }

  .button {
    margin: 64px 0;
  }

  .service-title {
    font-size: 28px;
    margin: 64px 0;
  }


  .button {
    font-size: 30px;
    padding: 20px 40px;
  }

  .sub-title {
    padding: 64px 0;
  }


  .qa-title {
    font-size: 28px;
    margin: 64px 0;
  }

  .qa-box {
    width: 95%;
    margin: 64px 0;
    background: #fff;
    padding: auto;
    border-radius: 4px;
    margin-left: 20px;
  }
  

  .question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  
  .question .text {
    font-size: 24px;
  }
  .answer{
    font-size: 20px;
  }

  .question .arrow {
    color: #30344D;
    transition: transform 0.3s ease;
  }
  .sns-section .sns-desc {
    font-size: 20px;
  }

  .sns-links {
  gap: 80px;;
  }

  .sns-links a img {
    width: 100px;
    height: 100px;
  
  }

  .sns-links a img.small {
    width: 80px;
    height: 80px;
    transform: translateY(-7px);
  }

  .contact-btn {
  font-size: 30px;
  padding: 24px 48px;
}

}