@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

body {
  background: #21B8D6;
  font-family: "Zen Kaku Gothic New", "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  letter-spacing: 0.05em;
}

a {
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  /* テキストと下線の間隔 */
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: bottom right;
  /* 下線の初期位置 */
  background-size: 0 1px;
  /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.3s;
}

a:hover {
  background-position: bottom left;
  /* 下線のホバー時位置 */
  background-size: 100% 1px;
  /* 下線の横幅を100%にする */
}



/* スクロールアニメ */
.img-wrap {
  opacity: 0;
}

.img-animation {
  animation: img-opacity 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  overflow: hidden;
  position: relative;
}

.img-animation::before {
  animation: img-animation 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

@keyframes img-opacity {
  100% {
    opacity: 1;
  }
}

@keyframes img-animation {
  100% {
    transform: translateX(100%);
  }
}

header {
  display: flex;
  height: 80px;
  justify-content: space-between;
  padding: 20px 2%;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
  transition: transform 0.3s 0.3s;
}

header.hidden {
  transform: translateY(-80px);

}



main {
  padding-top: 80px;
  overflow-x: hidden;
}

header h1 {
  width: 180px;
}

header h1 a,
header h1 a:hover {
  text-decoration: none;
}

header nav ul {
  display: flex;
  gap: 2em;
}


#mv h1 {
  width: 35%;
  max-width: 460px;
  margin: 10% auto 50px;
  clip-path: inset(0 100% 0 0);
  animation: mv-h1-wipe 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes mv-h1-wipe {
  to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  #mv h1 {
    animation: none;
    clip-path: none;
  }
}

#mv figure {
  width: 23%;
  margin: auto;
  max-width: 280px;
}

#mv p {
  text-align: center;
  margin: 100px auto 200px;
}


#sctoll_line {
  position: relative;
  margin-top: -7px;
}

/* 伸びるライン */
.line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 0;
  background-color: white;
  transition: height 0.2s ease-out;
  /* スムーズなアニメーションのため */
}

#sctoll_line .works_images {
  background: url(../images/works_image01.webp) center no-repeat;
  background-size: contain;
  position: absolute;
}

/* works_images：出現時ポップイン → 常時ふわふわ浮遊 */
@keyframes works-pop-in {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes works-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

#sctoll_line .works_images.img-animation {
  animation:
    works-pop-in 1.2s cubic-bezier(0.22, 1, 0.36, 1.05) both,
    works-float 5s ease-in-out 1.2s infinite;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}

/* 各画像で動きをズラす（揃って揺れないように）
   pop-in の delay = 出現の遅延、float の delay = pop-in 後の浮遊開始タイミング */
#sctoll_line .works_images.img01.img-animation { animation-duration: 1.2s, 5.5s; animation-delay: 0.6s, 1.8s; }
#sctoll_line .works_images.img02.img-animation { animation-duration: 1.2s, 4.8s; animation-delay: 0.9s, 2.1s; }
#sctoll_line .works_images.img03.img-animation { animation-duration: 1.2s, 6.2s; animation-delay: 0.4s, 1.6s; }
#sctoll_line .works_images.img04.img-animation { animation-duration: 1.2s, 4.2s; animation-delay: 1.0s, 2.2s; }
#sctoll_line .works_images.img05.img-animation { animation-duration: 1.2s, 5.8s; animation-delay: 0.3s, 1.5s; }
#sctoll_line .works_images.img06.img-animation { animation-duration: 1.2s, 5.0s; animation-delay: 1.2s, 2.4s; }

/* 共通アニメ（.img-animation）の白マスク演出は無効化 */
#sctoll_line .works_images.img-animation::before {
  display: none;
}

/* OS設定で動きを抑えたい人向け：ふわふわは止めて出現のみ */
@media (prefers-reduced-motion: reduce) {
  #sctoll_line .works_images.img-animation {
    animation: works-pop-in 0.6s ease-out both;
  }
}

#sctoll_line .works_images.img01 {
  background: url(../images/works_image01.webp) center no-repeat;
  background-size: contain;
  width: 35%;
  height: 35vw;
  max-width: 460px;
  max-height: 460px;
  top: -5%;
  right: -5%;
  left: auto;
}

#sctoll_line .works_images.img02 {
  background: url(../images/works_image02.webp) center no-repeat;
  background-size: contain;
  width: 26%;
  height: 26vw;
  max-width: 360px;
  max-height: 360px;
  top: 0;
  left: 2%;
}

#sctoll_line .works_images.img03 {
  background: url(../images/works_image03.webp) center no-repeat;
  background-size: contain;
  width: 16%;
  height: 16vw;
  top: 38%;
  left: 24vw
}

#sctoll_line .works_images.img04 {
  background: url(../images/works_image04.webp) center no-repeat;
  background-size: contain;
  width: 10%;
  height: 10vw;
  top: 52%;
  right: 32vw;
}

#sctoll_line .works_images.img05 {
  background: url(../images/works_image05.webp) center no-repeat;
  background-size: contain;
  width: 25%;
  height: 25vw;
  max-width: 340px;
  max-height: 340px;
  top: 68%;
  left: -2vw;
}

#sctoll_line .works_images.img06 {
  background: url(../images/works_image06.webp) center no-repeat;
  background-size: contain;
  width: 25%;
  height: 25vw;
  max-width: 300px;
  max-height: 300px;
  top: 60%;
  right: 1vw;
}

.content {
  height: 100vh;
}

.cont_box {
  margin: 150px auto 150px;
  display: block;
}

.cont_box h2 {
  text-align: center;
  font-size: 4rem;
  letter-spacing: 0.2em;
  font-weight: 300;
  margin-bottom: 40px;
}

.cont_box p {
  text-align: center;
}

#solution {}

#solution .txt-copy {
  font-size: 24px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: bold;
}

#solution p {
  line-height: 2.5;
}

#solution #sol_message {
  display: flex;
  width: 95%;
  margin: 50px auto;
  justify-content: space-between;
}

#solution #sol_message li {
  color: #000;
  padding: 2% 2%;
  background: #EEEDEA;
  border-radius: 20px;
  width: 24%
}

#solution #sol_message li:nth-child(even) {
  background: #FFE900;
}

#solution #sol_message li h3 {
  font-size: 40px;
  font-weight: 100;
  text-align: center;
  border-bottom: 2px solid #21b9d7;
}

#solution #sol_message li h4 {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin: 15px auto;
  line-height: 1.7;
}

#solution #sol_message li p {
  font-size: 14px;
  text-align: left;
  line-height: 1.7;
}

#solution #sol_message li figure {
  margin: 20px auto 0;
  width: 100%;
  text-align: center;
}

#solution #sol_message li figure img {
  width: 100%;
  max-width: 158px;
}

#solution #sol_example {
  width: 90%;
  max-width: 1000px;
  margin: 50px auto;
  background: #fff;
  color: #000;
  padding: 30px;
  position: relative;
}

#solution #sol_example:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent #21B8D6 transparent transparent;
  border-width: 0px 64px 64px 0px;

}

#solution #sol_example h4 {
  font-weight: bold;
  margin-bottom: 20px;
}

#solution #sol_example p {
  text-align: left;
  font-size: 14px;
}

#note{
  margin: 0 auto 100px;
}
#note h2 + p{
margin-bottom: 30px;
}

#message {
  display: flex;
  justify-content: space-between;
  padding: 5px;
  flex-wrap: wrap;
}

#message p img {
  display: none;
}

#message a.btn {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0
}

#message .mu {
  width: 32%;
  position: relative
}

#message .mu p {
  display: none;
}

#message .mu h2 {
  display: none;
}

#message .mu img {
  width: 100%;
  height: auto
}

#message .mu h3 {
  margin-bottom: 1em;
  font-size: 1.1rem;
  text-align: left;
  font-weight: normal
}

#message .mu br {
  display: none;
}

#message .mu small {
  display: block
}

#profile .cont_box {
  display: flex;
  width: 80%;
  max-width: 1100px;
  justify-content: space-between;
  margin-top: 50px;
}

#profile .cont_box .txt_box {
  width: 60%;
}

#profile .cont_box .txt_box p {
  text-align: left;
}

#profile .cont_box .txt_box #profile_title {
  font-size: 16px;
  letter-spacing: .2em;
}

#profile .cont_box .txt_box #profile_name {
  font-size: 30px;
  letter-spacing: .3em;
  margin-bottom: 20px;
}

#profile .cont_box .txt_box #profile_txt {
  font-size: 14px;
}

#profile figure {
  width: 20%;
}

#works {
  margin: 200px auto;
}

#contact {
  margin: 300px auto;
}

#contact form {
  width: 900px;
  margin: 100px auto;
}

.form_list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.form_list dt {
  width: 30%;
  padding: 5px 10px;
}

.form_list dd {
  width: 70%;
  padding: 5px 10px;
}

.form_list input,
.form_list textarea {
  width: 100%;
  border-bottom: 1px solid #fff;
  background-color: #86cad8;
  padding: 5px;
}

#contact button {
  width: 300px;
  height: 50px;
  padding: 5px;
  margin: 50px auto;
  display: block;
  background: #fff;
  color: #74d1e3;
  transition: all 0.5s;
}

#contact button:hover {
  background: #74d1e3;
  color: #fff;
  transition: all 0.5s;

}

footer {
  margin: 30px auto;
}

footer p {
  text-align: center;
  font-size: 1rem;
}

@media screen and (max-width: 860px) {
  #mv h1 {
    width: 55%;
  }

  #mv figure {
    width: 30%;
  }

  #contact form {
    width: 80%;
    margin: 40px auto;
  }

  .form_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .form_list dt {
    width: 100%;
  }

  .form_list dd {
    width: 100%;
  }
}

@media screen and (max-width: 749px) {

  #mv h1 {
    width: 80%;
    margin: 40% auto 20px;
  }

  #mv figure {
    width: 45%;
  }

  .cont_box {
    margin: 150px auto 150px;
  }

  .cont_box h2 {
    font-size: 2.8rem;
  }

  .line {
    width: 0.9%;
  }

  #sctoll_line .works_images.img01 {
    width: 45%;
    height: 45vw;
  }

  #sctoll_line .works_images.img02 {
    width: 30%;
    height: 30vw;
    top: 5%;
    left: 3%;
  }

  #sctoll_line .works_images.img03 {
    width: 25%;
    height: 25vw;
    top: 35%;
    left: 19vw;
  }

  #sctoll_line .works_images.img04 {
    width: 17%;
    height: 17vw;
    top: 52%;
    right: 20vw
  }

  #sctoll_line .works_images.img05 {
    width: 35%;
    height: 35vw;
    top: 60%;
    left: -2vw;
  }

  #sctoll_line .works_images.img06 {
    width: 40%;
    height: 40vw;
    top: 76%;
    right: 2vw;
  }

  #solution .txt-copy {
    font-size: 16px;
  }

  #solution .txt-copy+p {
    line-height: 1.5;
    font-size: 15px;
    text-align: left;
    width: 90%;
    margin: auto;
  }

  #solution #sol_message {
    flex-direction: column;
  }

  #solution #sol_message li {
    width: 100%;
    margin-bottom: 10px;
  }

  #message {
    flex-wrap: wrap;
  }

  #message .mu {
    width: 100%;
    margin-bottom: 20px;
  }

  #message .mu h3 {
    font-size: 0.9rem;
  }


  #profile {
    padding: 50px 5%;
    margin: 0 auto;
  }

  #profile .cont_box {
    width: 100%;
    flex-direction: column;
    margin: 50px auto 0;
  }

  #profile .cont_box .txt_box {
    width: 100%;
  }

  #profile .cont_box .txt_box #profile_txt {
    font-size: 15px;
  }

  #profile figure {
    margin: 40px auto;
    width: 40%;
  }

  #works {
    margin: 150px auto 150px;
  }

  #contact{
        margin: 80px auto;
}

  #contact form {
    width: 90%;
  }

  #contact button {
    width: 95%;
    height: 50px;
  }

}


/*コンタクト確認画面*/

.confirm #contact {
  margin: auto;
}

.confirm #contact h3 {
  text-align: center;
}

.confirm #contact .inner {
  width: 80%;
  margin: auto;
}

.confirm #contact form {
  margin: 20px auto;
}

.confirm #contact a.btn {
  text-align: center;
  margin: 20px auto;
  font-weight: 800;
  border: 1px solid;
  display: inline-block;
  padding: 10px;
}
/* =====================
   ハンバーガーメニュー（スマホ）
   ===================== */
.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media screen and (max-width: 749px) {
  .nav-toggle {
    display: block;
  }

  header nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21B8D6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
  }

  .nav-open header nav {
    opacity: 1;
    pointer-events: auto;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2em;
    font-size: 1.2rem;
  }

  header nav a {
    color: #fff;
  }

  .nav-open .nav-toggle span {
    background: #fff;
  }

  .nav-open {
    overflow: hidden;
  }
}

/* TOP note「プロジェクトnoteへ」ボタン */
.home-note-more {
  text-align: center;
  margin-top: 32px;
}

.btn-note-more {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #fff;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.btn-note-more:hover {
  background: #333;
  color: #fff;
  border: 1px solid #333;
}

.icon-external {
  margin-left: 6px;
  vertical-align: -2px;
}

/* お問い合わせボタン .btn（a / button 両対応） */
#confirm a.btn,
button.btn,#contact-thanks a.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}

#confirm a.btn:hover,
button.btn:hover,#contact-thanks a.btn:hover  {
  background: #333;
  color: #fff;
  border: 1px solid #333;
}

/* お問い合わせ確認・完了画面 */
#contact-confirm .inner,
#contact-thanks .inner {
  width:90%;
  max-width: 900px;
  margin: 0 auto;
}

#contact-confirm .confirm-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#contact-confirm .confirm-item label {
  flex-shrink: 0;
  min-width: 180px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

#contact-confirm .confirm-item p {
  flex: 1;
  text-align: left;
  margin: 0;
}

#contact-thanks h3 {
	text-align: center;
  margin-bottom:30px;
}

.thanks-back {
	text-align: center;
	margin-top: 40px;
}

@media screen and (max-width: 749px) {



  #contact-confirm .confirm-item {
    flex-direction: column;
    gap: 4px;
  }

  #contact-confirm .confirm-item label {
    min-width: 0;
  }
}

.button_area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.button_area form {
  margin: 0;
}

.button_area .btn {
  min-width: 240px;
  box-sizing: border-box;
  text-align: center;
}

/* 全ボタン共通：a タグの下線アニメ（background-image gradient）を打ち消す */
.btn-back,
.btn-back:hover,
.btn-contact,
.btn-contact:hover,
.btn-works-all,
.btn-works-all:hover,
.btn-service,
.btn-service:hover,
.btn-service-more,
.btn-service-more:hover,
.btn-note-more,
.btn-note-more:hover,
.filter-btn,
.filter-btn:hover,
a.btn,
a.btn:hover {
  background-image: none;
}
