@charset "UTF-8";

/* body / main の余白を消す */
body {
  margin: 0;
}

main {
  margin: 0;
  padding:0;
}
h2 {
  line-height: 1;
  padding: 0.4em 1em; /*高さ*/
  border-left: 6px solid #f1ee9b;
  margin-bottom: 2em;
}

/* ヘッダーをファーストビューに重ねる */
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
  color: #fff;
}

/* メインビジュアル */
.mainvisual {
  position: relative;
  height: 100vh;
  overflow: hidden;
}


.mainvisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* テキスト中央配置 */
.main-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #464646;
}
/* 初期状態（上に隠す） */
.slide {
  opacity: 0;
  transform: translateY(-120px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 表示状態 */
.slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* 表示タイミング */
.delay1 { transition-delay: 0.3s; }
.delay2 { transition-delay: 0.7s; }
.delay3 { transition-delay: 1.1s; }


/* 文字サイズ例 */
.Hidekatsu,
.MAEDA {
  font-size: 25px;
  letter-spacing: 0.1em;
}

.Portfolio {
  font-size: 45px;
  margin-top: 20px;
}


#service {
    margin-top:20px;
}
#service .service-title {
    display: flex;
   align-items: baseline;
   margin-bottom: 40px;
   margin-left: 40px;
}
#service .service-title .en {
    font-size: 50px;
}
#service .service-title .ja {
    margin-left: 50px;
    font-size: 20px;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    width: 100%;
}
.item {
    text-align: center;
    width: 40%;
}
.item img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.item p {
    margin-top: 15px;
    font-size: 18px;
}
.btn {
  max-width: 250px;
  background-color: #fff;
  display: block;
  margin: 70px  auto;
  padding: 8px 12px;
  text-align: center;
  position: relative;
  font-size: 15px;
  color: #241601;
  border: 1px solid #241601;
  border-radius: 15px;
  overflow: hidden;
  z-index: 10;
}

/* スライド背景 */
.btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  background-color: #241601;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform ease 0.3s;
}

/* hover */
.btn:hover {
  color: #fff;
  opacity: 1;
}

.btn:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}

/* 文字を常に最前面に */
.btn span {
  position: relative;
  z-index: 1;
}

#works {
    margin-top: 120px; 
}
#works .works-title {
    display: flex;
   align-items: baseline;
   margin-bottom: 40px;
   margin-left: 50px;
}
#works .works-title .en {
    font-size: 50px;
}
#works .works-title .ja {
    margin-left: 40px;
    font-size: 20px;
}
#works-inner {
    display: flex;
    column-gap: 70px;       /* 横方向を広げる */
    row-gap: 0;              /*縦はそのまま*/
    align-items: center;
}
#works-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;        /* 縦の間隔（今まで通り） */
    column-gap: 60px;     /* ← 横だけ広げる */
    width: 450px;
    padding: 0;
    margin-left: 80px;
}
.works-item img {
    width: 100%;
    height: auto;      /* トリミングしない */
    display: block;
}
.text-area {
    flex: 1;
    margin-left: 60px; /*テキストエリアを右に*/
    border-left: solid 1px #1f1f1f;
    padding-left: 45px;
}

.text-area .title {
    font-size: 28px;
    margin-bottom: 16px;
}

.top-text,
.border-text {
    font-weight: bold;
    margin-top: 20px;
}

 #works .description {
    line-height: 1.8;
    margin-top: 8px;
}

  
  /* 業務手順 */
  #worksflow {
    display: flex;
    flex-direction: column;
    margin-top: 120px;
  }
  
  .works-flow-title {
    display: flex;          /* ← 横並びにする */
    align-items: baseline;  /* ← 高さを揃える */
    margin-bottom: 30px;
    margin-left: 50px;
  }
  
  .works-flow-title .en {
    font-size: 50px;
  }
  
  .works-flow-title .ja {
    margin-left: 40px;
    font-size: 20px;
  }
  
  .circle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    
  }

  
  .arrow {
    position: relative;
    width: 40px;
    margin: 0 20px;
  }
  
  
  .arrow::before {
    content: "";
    width: 25px;
    height: 1px;
    background-color: #2a1b09;
    position: absolute;
    top: 20px;
    right: 15px;
    }

    .arrow::after {
      content: "";
      width: 8px;
      height: 1px;
      background-color: #2a1b09;
      position: absolute;
      top: 18px;
      right: 14px;
      transform: rotate(35deg);
    }
  
    
  .circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  
  .circle-text {
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 0.05em;
  }
  .step-num {
    font-size: 22px;
  }
  
  .circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f3ede5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .works-flow-text {
    max-width: 800px;
    margin: 10px auto;
  }
  
  .description-title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
  }
  
  .description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
  }
  .description.tools {
    display: flex;
    gap: 20px;      /* ツール間の余白 */
  }
  
  /*自己紹介*/
  #aboutme {
    margin-top: 60px;
    position: relative;
  }
  .aboutme-title {
    display: flex;
    align-items: baseline;
   margin-bottom: 40px;
   margin-left: 50px;
  }
  #aboutme .aboutme-title .en {
    font-size: 50px;
    color: #a58b3b;
}
#aboutme .aboutme-title .ja {
    margin-left: 40px;
    font-size: 20px;
}
#aboutme .img-top {
  width: clamp(350px, 50vw, 400px);
  position: absolute;
  right: 8%;
  top: 180px;
}
#aboutme .aboutme-text-area {
  width: 70%;
  background-color: #fffef4;
  padding: 7% 0 14% 6%;
  margin-bottom: 120px;
}
#aboutme .aboutme-text-area .inner {
  width: clamp(300px, 50vw, 800px );
}
#aboutme .inner p {
  line-height: 1.8;
  font-size: 16px;
}
.center-text span,.border-text span {
  color: rgb(236, 82, 61);
}

#aboutme .inner p + p {
  margin-top: 25px;
}

#aboutme .img-bottom {
  max-width: 500px;
  margin: -240px 0 0 10%;
}

  /* FAQ 全体 */
#faq {
  margin-top: 30px;
  padding: 80px 20px;
  background: #fffdf5;
}

/* タイトル */
.faq-title {
  display: flex;
 align-items: baseline;
 margin-bottom: 40px;
 margin-left: 40px;
}

.faq-title .en {
  font-size: 50px;
  color: #a58b3b;
}

.faq-title .ja {
  margin-left: 50px;
    font-size: 20px;
}

/* FAQ アイテム */
.faq-item {
  max-width: 800px;
  margin: 0 auto 20px;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid #f0e6c8;
}

/* 質問（Q） */
.faq-q {
  position: relative;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: bold;
  color: #6b5600;
  background: #fff1b8; /* クリームイエロー */
  list-style: none;
}
/* ＋アイコン */
.faq-q::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: bold;
  color: #c9a227;
  transition: 0.3s;
}

/* 開いたら − に変わる */
details[open] .faq-q::after {
  content: "−";
  color: #6b5600;
}

/* マーカー非表示 */
.faq-q::-webkit-details-marker {
  display: none;
}

/* 回答（A） */
.faq-a {
  padding: 22px;
  background: #fffbea; /* さらに薄い黄色 */
  color: #333;
  line-height: 1.8;
}

/* Aの頭文字強調 */
.faq-a::first-letter {
  font-weight: bold;
  color: #c9a227;
}


/* お問い合わせページ */
#contact {
  background-color: #f3ede5;
}

/* タイトル */
#contact {
  padding-top: 30px;
  margin-top: 50px;
}
#contact .contact-title {
  display: flex;
  align-items: baseline;
  margin: 40px 0 40px 40px;
}

#contact .contact-title .en {
  font-size: 50px;
}

#contact .contact-title .ja {
  margin-left: 40px;
  font-size: 20px;
}

/* フォーム全体 */
#contact form{
  width: 600px;
  max-width: 90%;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* 各入力ブロック */
.form-item {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* ラベル */
.form-item label {
  font-size: 14px;
  margin-bottom: 5px;
}

/* 入力欄 */
.form-item input,
.form-item textarea {
  background-color: #fff;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* テキストエリア */
.form-item textarea {
  height: 148px;
  resize: vertical;
}

/* フォーカス時（評価UPポイント） */
.form-item input:focus,
.form-item textarea:focus {
  outline: none;
  border-color: #2a1b09;
}

/* 送信ボタン */
button[type="submit"] {
  display: block;
  margin: 30px auto 0;
  background-color: #2a1b09;
  color: #fff;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  border-radius: 15px;
}


/*フッター*/
#footer {
  background-color: #2a1b09;
  padding: 30px 0 10px;
}
#footer a {
  color: #ffffff;
}
#footer .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
#footer .menu-list {
  display: flex;
  justify-content: center;
}
#footer .menu-list li {
  font-size: 14px;
  margin: 0 20px;
  position: relative;
  color: #ffffff;
}
#footer .menu-list li::after {
  content: "";
  width: 1px;
  height: 16px;
  background-color: #ffffff;
  transform: rotate(30deg);
  position: absolute;
  top: 3px;
  right: -20px;
}
#footer .menu-list li:last-child::after {
  content: none;
}
#footer .copyright {
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
  color: #ffffff;
}





@media screen and (max-width: 768px) {
        #header {
        position: fixed;
        }
        .mainvisual {
          height: 90svh;   /* ← 100svh → 80svh */
        }
  
    .mainvisual img {
      width: 100%;
      height: 100%;
      object-fit: cover;   /* 画面を埋める */
      display: block;
    }
    /*サービス*/
    #service {
      margin: 100px auto;
    }
    #service .service-title {
      width: fit-content;
      margin: 0 auto;
      text-align: center;
      margin-bottom: 30px;
    }

    #service .service-title .en {
      font-size: 30px;
    }
    #service .service-title .ja {
      font-size: 15px;
    }
    .item p {
        font-size: 15px;
    }

    .container {
        gap: 20px;
        margin-top: 20px;
    }
    .btn {
        max-width: 200px;
        font-size: 13px;
    }
    /*実績*/
    #works {
      margin-top: 20px;
    }
    #works .works-title {
        width: fit-content;
        margin: 0 auto;
        text-align: center;
        margin-bottom: 30px;
      }
      
    #works .works-title .en {
      font-size: 30px;
    }
    #works .works-title .ja {
      font-size: 15px;
    }
    .text-area .title {
      font-size: 24px;
    }
    #works .text-area .description {
      font-size: 13px;
      line-height: 1.7;
    }
        /* 全体を縦並び＋センター */
        #works-inner {
            flex-direction: column;
            align-items: center;
            row-gap: 60px;
        }
    
        /* 画像グリッド：2列のまま */
        #works-list {
          display: grid;
            grid-template-columns: repeat(2, 1fr); /* 念のため明示 */
            column-gap: 30px;   /* スマホ用に少し詰める */
            row-gap: 30px;
            max-width: 250px;   /* 2列が崩れない幅 */
            margin: 0 auto;
        }

        #works-list img {
          width: 100%;
          height: auto;
          display: block;
        }
    
        /* テキストエリア */
        .text-area {
            border-left: none;      /* スマホでは線を消す */
            padding-left: 0;
            margin-left: 0;
            text-align: center;     /* センター揃え */
            width: 100%;
            max-width: 360px;
            font-size: 12px;
            font-weight: bold;
        }
        .top-text,.border-text {
          font-size: 18px;
        }
        /*業務手順*/
        #worksflow {
          margin-top: 60px;
        }
        #worksflow .works-flow-title {
            width: fit-content;
            margin: 0 auto;
            text-align: center;
          }

        #worksflow .works-flow-title .en {
          font-size: 30px;
        }
        #worksflow .works-flow-title .ja {
          font-size: 15px;
        }
        .circle-container{
          flex-direction: column;
        }
        .arrow {
          display: none;
        }
        .circle-item .circle-text {
          margin-top: 40px;
        }

        .description-title {
          text-align: center;
        }
        .description {
          font-size: 15px;
            width: fit-content;
            margin: 0 auto;
            text-align: center;
          }
          
        /*自己紹介*/

        #aboutme .aboutme-title {
            width: fit-content;
            margin: 0 auto;
            text-align: center;
          }
          
        #aboutme .aboutme-title .en {
          font-size: 30px;
        }
        #aboutme .aboutme-title .ja {
          font-size: 15px;
        }
        /* wrapper を flex にする */
        #aboutme .wrapper {
        display: flex;
        flex-direction: column;
        }

        /* 自己紹介下画像もはみ出さないように */
         #aboutme .img-bottom {
        max-width: 100%;
        margin: 0 auto -50px;
        position: static;
        }
        /* 自己紹介トップ画像（スマホ） */
        #aboutme .img-top {
        order: 1;
        width: 80%;
        max-width: 400px;
        margin: 30px auto;
        position: static;
        }

       
        /* テキスト */
        #aboutme .aboutme-text-area {
        order: 2;
       width: 100%;
       padding: 10% 5%;
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       text-align: center;
       }
       #aboutme .aboutme-text-area p {
        font-size: 13px;
       }
       

       /* 下画像 */
       #aboutme .img-bottom {
       order: 3;
       max-width: 50%;
       margin: -150px auto 0;
      }

      /*質問*/
      #faq {
        margin-top: 80px;
        padding: 30px 0
      }

        #faq .faq-title {
          width: fit-content;
          margin: 0 auto;
          text-align: center;
        }
      
      #faq .faq-title .en {
        font-size: 30px;
      }
      #faq .faq-title .ja {
        font-size: 15px;
      }

        /* FAQ アイテム全体 */
        .faq-item {
          max-width: 100%;       /* 画面幅いっぱい */
          margin: 30px auto;
          border-radius: 8px;
          border: 1px solid #f0e6c8;
        }
      
        /* 質問（Q） */
        .faq-q {
            padding: 12px 16px;
            font-size: 14px;
            word-break: break-word; /* 長い文章も折り返す */
            white-space: normal;    /* 改行を有効にする */
          }
          
      
        /* ＋アイコン */
        .faq-q::after {
          right: 16px;
          font-size: 20px;
        }
      
        /* 回答（A） */
        .faq-a {
          padding: 14px 16px;    /* 上下の余白を狭める */
          font-size: 13px;       /* 文字を少し小さく */
        }
      
        /*お問い合わせ*/
        #contact {
          margin-top: 80px;
        }
        #contact .contact-title {
            width: fit-content;
            margin: 0 auto;
            text-align: center;
          }          
        #contact .contact-title .en {
          font-size: 30px;
        }
        #contact .contact-title .ja {
          font-size: 15px;
        }
          #form {
            width: 90%;
            padding-bottom: 40px;
          }

  #footer {
    padding: 24px 0 16px;
  }

  /* メニューを縦並びに */
  #footer .menu-list {
    flex-direction: column;
    align-items: center;
  }

  #footer .menu-list li {
    font-size: 10px;
    margin: 5px 0;
  }

  /* 区切り線を消す */
  #footer .menu-list li::after {
    content: none;
  }

  /* タップしやすく */
  #footer a {
    display: block;
    padding: 8px 0;
  }

  /* コピーライト */
  #footer .copyright {
    font-size: 11px;
    margin-top: 16px;
    line-height: 1.6;
  }
}
