/* ページ全体 */

html * {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: white;
    color: black;
    width: 100%;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

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

img {
    width: 100%;
    vertical-align: top;
}

main {
    max-width: 1070px;
    margin: 0 auto;
}

/* ページ全体 */

/* ヘッダーここから */
  
header {
    height: 60px;
    width: 100%;
    padding: 0px 15px;
    top: 0;
    z-index: 10;
    display: flex;
    background-color: black;
}

.header-img {
    width: 100px;
}
  
.title {
    font-size: 25px;
}
  
nav {
    margin: 0 0 0 auto;
}
  
ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
  
a {
    text-decoration: none;
    line-height: 60px;
    font-size: 20px;
}

.menu-group a {
    display: block;
    color: white;
    padding: 0 20px;
}
  
.sm {
    display: none;
}
  
  
  /**********************************　
  以下、ハンバーガーメニューの設定　
  ************************************/
  
@media (max-width: 900px) {
  
.nav {
    display: none;
}
  
#hamburger {
    background-color: transparent;
    position: relative;
    cursor: pointer;
    margin: 0 0 0 auto;
    height: 60px;
    width: 60px;
}
  
.icon span {
    position: absolute;
    left: 15px;
    width: 30px;
    height: 4px;
    background-color: white;
    border-radius: 8px;
    transition: ease 0.75s;
}
  
.icon span:nth-of-type(1) {
    top: 16px;
}
.icon span:nth-of-type(2) {
    top: 28px;
}
.icon span:nth-of-type(3) {
    bottom: 16px;
}
  
.close span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 28px;
}
  
.close span:nth-of-type(2) {
    opacity: 0;
}
  
.close span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
}
  
.sm {
    top: 60px;
    left: 0px;
    position: absolute;
    z-index: 10;
    width: 100%;
    background-color: black;
}
  
ul {
    flex-direction: column;
}
  
.menu-item a {
    text-align: center; 
    border-top: solid 0.5px rgba(255, 255, 255, 0.6);
    color: white;
}
}

/* ヘッダーここまで */

/* トップイメージここから */

.top-img {
    position: relative;
}

.top-img img {
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.5s ease;
}

.top-img.loaded img {
    opacity: 1;
    transform: scale(1);
}

.top-title {
  /* 最初の状態 */
  opacity: 0;
  transform: translate(-50%, -50%) translateY(30px); /* 修正済み */
  transition: all 1s ease 1s;
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 30px;
}

.top-img.loaded .top-title {
  /* アニメーション後の状態 */
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}


.scroll-indicator {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row; /* 横並びにする */
  align-items: self-end;
  writing-mode: vertical-rl; /* 縦書き表示 */
  color: white;
  font-size: 14px;
  white-space: nowrap;
}

.scroll-indicator p {
  margin: 0;
  padding: 10px 0;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.1em;
  color: white;
}

.vertical-line {
  width: 2px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.63);
  margin-left: 10px; /* SCROLLとの余白 */
  animation: drawLine 1s ease-out infinite;
  transform-origin: top;
  transform: scaleY(0);
}

@keyframes drawLine {
  to {
    transform: scaleY(1);
  }
}



/* トップイメージここまで */

/* loading画面全体 */
#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1f1f1f, #3c3c3c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 9999;
  animation: fadeOut 0.5s ease forwards;
  animation-delay: 2s; /* 2秒後にフェードアウト開始 */
  opacity: 1;
}

/* ローダーのスタイル */
.loader {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #e5ebea;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
  box-shadow: 0 0 10px #e5ebea;
  filter: drop-shadow(0 0 6px #e5ebea);
}

#loading-screen p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e5ebea;
}

/* 回転アニメ */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* フェードアウト */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* セクション1ここから */

.section1 {
    background-color: rgb(80, 78, 78);
    color: white;
    padding-bottom: 100px;
}

.section1 img {
    width: 50%;
    margin: 50px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.contents {
    position: relative;
}

.contents-coment {
    position: absolute;
    top: 75%;
    left: 0;
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 5px;
}

.contents-title {
    font-size: 30px;
    margin: 0;
    line-height: 1.1;
}
.view-more {
    font-size: 15px;
    color: white;
    margin: 0;
    line-height: 1.1;
}

.line-right {
    border:solid
    white 1px;
    width: 200px;
    margin-left: 200px;
    margin-top: 50px;
}

.line-left {
    border:solid
    white 1px;
    width: 200px;
    margin-left: 20px;
    margin-top: 50px;
}

.contents img {
  transition: transform 0.4s ease;
}

.contents:hover img {
  transform: scale(1.05);
}

/* セクション1ここまで */


/* 問い合わせここから */

.contact {
    position: relative;
    padding: 100px;
}

.contact h1 {
    position: absolute;
    color: #b6b2b280;
    font-weight: bold;
    font-size: 60px;
    margin: 0;
    top: -15px;
    right: 0px;
}

.inquiry-btn {
  /* 現状維持 */
  background-color: rgb(73, 73, 73);
  font-size: 4vw;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.219);
  width: 60vw;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 20%;
  bottom: 30%;
  overflow: hidden;
  border-radius: 8px; 
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.inquiry-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-txt {
  width: 100%;
  height: 100%;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 問い合わせここまで */

/* フッターここから */
footer {
    background-color: rgb(80, 78, 78);
    color: white;
    padding: 30px;
}

footer img {
    width: 150px;
}

.footer-address {
    display: flex;
}

.address {
    text-align: left;
    font-size: 15px;
    margin-top: 15px;
    margin: 0;
}

.footer-menu {
    color: white;
}

.footer-menu a{
    color: white;
    font-size: 15px;
}

.flex-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.line {
    border-left:2px solid white; /*線の設定*/
    height: 35px;
}

footer a {
    color: white;
    line-height: 60px;
}

/* フッターここまで */


/* COMPANYここから */

.company-section1 {
    padding: 100px 0;
    position: relative;
}

.company-section1 h1 {
    position: absolute;
    color: #b6b2b280;
    font-weight: bold;
    font-size: 60px;
    margin: 0;
    top: -14px;
    right: 0px;
}

.top-title2 {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  opacity: 0;
  transition: all 1s ease 1s;
  color: white;
  z-index: 2;
  font-size: 40px;
  white-space: nowrap;
  text-align: center;
  padding: 0;
  margin: 0;
}


.top-img.loaded .top-title2 {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.top-title2-sub {
  position: absolute;
  top: 78%;
  left: 18%;
  transform: translate(-50%, -50%) translateY(30px);
  color: white;
  z-index: 2;
  font-size: 20px;
  white-space: nowrap;
  text-align: center;
  padding: 0;
  margin: 0;
}
.profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.p-contents {
  display: flex;
  border-bottom: 1px solid #000;
  padding: 10px 0;
  margin: 0 50px;
  align-items: center;
}

.p-title {
  width: 100px;
  margin: 0;
  text-align: left;
  padding-left: 10px;
}

.p-in {
  flex: 1;
  margin: 0;
  text-align: left;
}

.company-section2 {
    background-color: rgb(80, 78, 78);
    padding: 100px 0 50px 0;
    position: relative;
}

.company-section2 h1 {
    position: absolute;
    color: rgba(255, 255, 255, 0.664);
    font-weight: bold;
    font-size: 60px;
    margin: 0;
    top: -14px;
    left: 0px;
}

.map iframe {
    width: 350px;
    height: 300px;
    max-width: 100%;
}

.a-contents {
  display: flex;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
  margin: 50px 50px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: white;
}

.a-title {
  width: 70px;
  margin: 0;
  text-align: left;
  padding-left: 10px;
}

.a-in {
  flex: 1;
  margin: 0;
  text-align: left;
}


/* COMPANYここまで */

/* POLICYここから */

.policy-txt {
    padding: 50px;
    font-size: 20px;
}

.policy-section1 {
    position: relative;
}

.top-title3-sub {
    color: white;
    position: absolute;
    top:78%;
    left:24%;
    transform: translate(-50%,-50%);
    padding:0;
    margin:0;
    font-size:20px;
    white-space: nowrap;
}

.company-section2 h1 {
    position: absolute;
    color: #b6b2b280;
    font-weight: bold;
    font-size: 60px;
    margin: 0;
    top: -14px;
    right: 0px;
}

/* POLICYここまで */


/* SURVICEここから */

.top-title4-sub {
    color: white;
    position: absolute;
    top:78%;
    left:21%;
    transform: translate(-50%,-50%);
    padding:0;
    margin:0;
    font-size:20px;
    white-space: nowrap;
}

.survice-section1 {
    position: relative;
    padding: 100px 0;
    display: flex;
    justify-content: center; /* ← 横方向中央寄せ */
    align-items: center;     /* ← 縦方向中央寄せ（必要なら） */
    flex-direction: column;
}

.survice-section1 h1 {
    position: absolute;
    color: #b6b2b280;
    font-weight: bold;
    font-size: 60px;
    margin: 0;
    top: -15px;
    right: 0px;
}

.survice-name-l {
    background-color: rgb(80, 78, 78);
    margin: 0 auto;
    color: white;
    width: 50%;
    height: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 5%;
    top: 25%;
}

.survice-name-r {
    background-color: rgb(80, 78, 78);
    margin: 0 auto;
    color: white;
    width: 50%;
    height: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 45%;
    top: 25%;
}

.survice-left {
    display: flex;
    position: relative;
}

.survice-right {
    display: flex;
    position: relative;
}

.survice-section1 img {
    width: 80%;
    margin: 50px;
}

/* SURVICEここまで */

/* RECRUITここから */

.recruit-section1 {
    position: relative;
    padding: 50px 0;
}

.recruit-section1 h1 {
    position: absolute;
    color: #b6b2b280;
    font-weight: bold;
    font-size: 60px;
    margin: 0;
    top: -15px;
    right: 0px;
}

.recruit-section2 {
    background-color: rgb(80, 78, 78) ;
    color: white;
    padding: 50px 0;
}

.recruit-section2 h1 {
    font-size: 30px;
    margin-bottom: 50px;
}

.recruit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.r-contents {
  display: flex;
  border-bottom: 1px solid white;
  padding: 10px 0;
  margin: 0 50px;
  align-items: center;
}

.r-title {
  width: 100px;
  margin: 0;
  text-align: left;
  padding-left: 10px;
}

.r-in {
  flex: 1;
  margin: 0;
  text-align: left;
}

.info {
    font-size: 15px;
    padding: 30px;
    text-align: left;
}


/* RECRUITここまで */

/* CONTACTここから */

.contact-txt {
    padding: 50px;
    font-size: 13px;
    text-align: left;
}

.contact-title {
    font-weight: bold;
    font-size: 20px;
    padding: 50px;
}


form {
      max-width: 350px;
      margin: 0 auto;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: left;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 6px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 3px; 
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

textarea {
    resize: vertical;
    height: 100px;
}

.note {
    font-size: 12px;
    margin-top: 15px;
}

.note a {
    text-decoration: underline;
    color: #000;
    line-height: 0px;
}

input[type="submit"] {
    margin-top: 50px;
    padding: 10px 80px;
    font-size: 14px;
    cursor: pointer;
    background-color:  rgb(80, 78, 78) ; 
    color: white;
    border: none;
}

.consent-wrapper label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.radio-s {
    margin: 0;
}

/* CONTACTここまで */

/* PRIVACY POLICYここから */

.privacypolicy h1 {
    font-size: 20px;
    padding: 50px;
}

.privacypolicy p {
    padding: 30px;
    text-align: left;
    font-size: 12px;
}






/* PRIVACY POLICYここまで */

@media (min-width: 900px) {
  
    .section1 img {
    width: 30%;
    margin: 30px;
  }

  .section1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 100px;
    gap: 200px; /* カード間の隙間をきれいに保つ */
  }

  .contents {
    width: 30%;
    margin: 0; /* gapで調整するので不要 */
    position: relative;
  }

  .contents img {
    width: 100%;
    height: auto;
    display: block;
  }

  .contents-title {
    font-size: 35px;
    right: 45%;
  }

  .view-more {
    right: 52%;
    font-size: 14px;
  }

  .top-img img{
    height: 1000px;
    object-fit: cover;   /* はみ出す部分をトリミングして見栄え良く */
    display: block;
  }

  .contents-coment {
    top: 100%;
    padding-left: 20px;
  }

  .line-left {
    display: none;
  }

  .line-right {
    display: none;
  }

  .contact {
    padding: 150px;
  }

  .top-title2 {
    top: 80%;
    left: 20%;
    font-size: 50px;
  }

  .top-title2-sub {
    top: 85%;
    left: 16%;
    font-size: 30px;
  }

  .top-title3-sub {
    top: 85%;
    left: 19%;
    font-size: 30px;
  }

  .top-title4-sub {
    top: 85%;
    left: 18%;
    font-size: 30px;
  }

  .footer-menu a {
    font-size: 20px;
  }
  .survice-section1 img {
    width: 30%;
  }
  .survice-name-l {
    left: 45%;
    top: 25%;
  }
}
