@charset "utf-8";
/*----------------------------------
	header
-----------------------------------*/
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 100;
  background: var(--c-white);
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    .logo {
      width: 190px;
    }
    nav {
	  width: 600px;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  .btn {
		position: relative;
		padding: 12px 35px 13px 65px;
		font-size: var(--fs14);
		&:before {
          content: "";
          position: absolute;
          top: 50%;
          left: 25px;
          transform: translateY(-50%);
          background: url("/wp-content/themes/tsunawa-2026/assets/images/icon/icon_mail.svg") no-repeat center center;
          width: 25px;
          height: 25px;
		}
	  }
    }
  }
}
/*----------------------------------
	footer
-----------------------------------*/
footer {
  text-align: center;
  padding: 100px 0;
  font-size: var(--fs11);
}
/*----------------------------------
	index
-----------------------------------*/
#keyv {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  background: var(--c-white);
  .keyv-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    .keyv-slide {
      position: absolute;
      inset: 0;
      background-repeat: no-repeat;
      background-position: right center;
      background-size: cover;
      transform-origin: right center;
      will-change: transform, opacity;
      &.keyv-slide--01 {
        z-index: 0;
        background-image: url("/wp-content/themes/tsunawa-2026/assets/images/keyv/keyv_index01.webp");
        background-position: right bottom;
        animation: keyvZoom01 20s linear infinite;
      }
      &.keyv-slide--02 {
        z-index: 1;
        opacity: 0;
        background-image: url("/wp-content/themes/tsunawa-2026/assets/images/keyv/keyv_index02.webp");
        animation:
          keyvFade02 20s linear infinite,
          keyvZoom02 20s linear infinite;
      }
      &.keyv-slide--03 {
        z-index: 2;
        opacity: 0;
        background-image: url("/wp-content/themes/tsunawa-2026/assets/images/keyv/keyv_index03.webp");
        animation:
          keyvFade03 20s linear infinite,
          keyvZoom03 20s linear infinite;
      }
      &.keyv-slide--04 {
        z-index: 3;
        opacity: 0;
        background-image: url("/wp-content/themes/tsunawa-2026/assets/images/keyv/keyv_index04.webp");
        animation:
          keyvFade04 20s linear infinite,
          keyvZoom04 20s linear infinite;
      }
    }
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 4;
      background: linear-gradient(
        90deg,
        #fff 0%,
        rgba(255,255,255,1) 15%,
        rgba(255,255,255,0.95) 30%,
        rgba(255,255,255,0.7) 45%,
        rgba(255,255,255,0) 65%
      );
      pointer-events: none;
    }
  }
  .block {
    position: relative;
    z-index: 1;
    height: 100%;

    .detail {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      width: 50%;
      h2, h1, .txt {
        opacity: 0;
        transform: translateY(25px);
        animation: keyvTextFade 0.9s ease-out forwards;
      }

h2 {
  font-family: var(--ff-serif);
  font-size: var(--fs60);
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;

  /* 青い光が通過するグラデーション */
  background-image: linear-gradient(
    100deg,
    #062D73 0%,
    #062D73 32%,
    #007ACC 43%,
    #39CBFF 50%,
    #007ACC 57%,
    #062D73 68%,
    #062D73 100%
  );

  background-size: 300% 100%;
  background-position: 100% 50%;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  /* 初回フェードアップ＋光の移動 */
  animation:
    keyvTextFade 0.9s ease-out 0.3s both,
    keyvBlueFlow 6s linear infinite;
}
      h1 {
        font-family: var(--ff-serif);
        font-size: var(--fs36);
        margin-bottom: 20px;
        animation-delay: 0.8s;
        width: fit-content;
        max-width: 100%;
        background: linear-gradient(
          105deg,
          #062D73 0%,
          #005AA8 45%,
          #143C93 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
      }
      .txt {
        font-size: var(--fs18);
        font-weight: 700;
        animation-delay: 1.3s;
        width: fit-content;
        max-width: 100%;
        background: linear-gradient(
          105deg,
          #062D73 0%,
          #005AA8 45%,
          #143C93 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
      }
    }
  }
}



/*----------------------------------
  Crossfade
-----------------------------------*/

/* 2枚目：4〜5秒で表示 */
@keyframes keyvFade02 {
  0%, 20% {
    opacity: 0;
  }
  25%, 50% {
    opacity: 1;
  }
  50.1%, 100% {
    opacity: 0;
  }
}

/* 3枚目：9〜10秒で表示 */
@keyframes keyvFade03 {
  0%, 45% {
    opacity: 0;
  }
  50%, 75% {
    opacity: 1;
  }
  75.1%, 100% {
    opacity: 0;
  }
}

/* 4枚目：14〜15秒で表示 */
@keyframes keyvFade04 {
  0%, 70% {
    opacity: 0;
  }
  75%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/*----------------------------------
  Zoom
-----------------------------------*/

/* 1枚目 */
@keyframes keyvZoom01 {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  25.1%, 100% {
    transform: scale(1);
  }
}

/* 2枚目 */
@keyframes keyvZoom02 {
  0%, 20% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  50.1%, 100% {
    transform: scale(1);
  }
}

/* 3枚目 */
@keyframes keyvZoom03 {
  0%, 45% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
  75.1%, 100% {
    transform: scale(1);
  }
}

/* 4枚目 */
@keyframes keyvZoom04 {
  0%, 70% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/*----------------------------------
  Reduced Motion
-----------------------------------*/
@media (prefers-reduced-motion: reduce) {
  #keyv {
    .keyv-slide {
      animation: none !important;
      transform: none;
    }

    .keyv-slide--02,
    .keyv-slide--03,
    .keyv-slide--04 {
      display: none;
    }
  }
}


/*----------------------------------
  Key Visual Text Animation
-----------------------------------*/
@keyframes keyvTextFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  #keyv .detail h2,
  #keyv .detail h1,
  #keyv .detail .txt {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* グラデーションを左右に移動 */
@keyframes keyvBlueFlow {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 100px 50px;
  .about-L { width: 47%; }
  .about-R { width: 50%; }
  h2 {
	font-size: var(--fs60);
	margin-bottom: 50px;
	span { display: block; font-weight: 900; font-size: var(--fs24); margin-bottom: 20px; }
  }
  h3 { font-size: var(--fs36); margin-bottom: 20px; }
  .txt {
	margin-bottom: 30px;
	font-size: var(--fs18);
	p { margin-bottom: 10px; }
  }
  h4 {
	font-size: var(--fs24);
	margin-bottom: 50px;
  }
  .btn {
	position: relative;
    padding: 20px 100px 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--fs20);
    &:after {
	  content: "→";
	  position: absolute;
	  right: 35px;
	  top: 50%;
	  transform: translateY(-50%);
    }
  }
}

#service {
  position: relative;
  overflow-x: hidden;
  height: 200svh;
  min-height: 2000px;
  padding-top: 130px;
  text-align: center;
  margin-bottom: 100px;
  z-index: 0;
  &:before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 150%;
	height: 100%;
    background: var(--c-white);
    border-radius: 50%;
    z-index: -1;
  }
  h2{
    font-size: var(--fs60);
    margin-bottom: 20px;
    span { display: block; font-weight: 900; font-size: var(--fs24); margin-bottom: 20px; }
  }
  .ttl-txt {
	margin-bottom: 50px;
  }
  .service-box {
    background: #eff2f5;
    border-radius: 24px;
    padding: 0 0 0 30px;
    overflow: hidden;
    margin-bottom: 50px;
    a {
	  position: relative;
      display: flex;
      align-items: center;
      gap: 30px;
      min-height: 300px;
      .image {
	    position: relative;
	    width: 320px;
	    height: 320px;
	    margin: -20px 0;
	    border-radius: 50%;
	    overflow: hidden;
	    flex-shrink: 0;
	    &:before {
		  content: "";
		  position: absolute;
		  inset: 0;
	      background: url("/wp-content/themes/tsunawa-2026/assets/images/pht/pht_service01.webp") no-repeat center top / cover;
          transform: scale(1);
          transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	    }
	  }
      &:after {
	    content: "→";
	    position: absolute;
	    top: 50%;
	    right: 25px;
	    transform: translateY(-50%);
	    color: #0048AE;
	    font-size: var(--fs36);
	    font-weight: 900;
      }
      &:hover {
	    .image:before {
		  transform: scale(1.12);
	    }
	    &:after { animation: serviceArrowMove 0.8s ease-in-out; }
      }
	  .detail {
		width: 700px;
		text-align: left;
		padding-right: 50px;
		border-right: 1px solid var(--c-gray);
		.txt { margin-bottom: 20px; }
	    h3 {
		  font-size: var(--fs24);
		  color: #0048AE;
		  margin-bottom: 20px;
		}
		ul {
		  display: flex;
		  flex-wrap: wrap;
		  gap: 10px 2%;
		  li {
			background: #4D7FC6;
			color: var(--c-white);
			padding: 10px 0 12px;
			width: 32%;
			text-align: center;
			border-radius: 8px;
			font-size: var(--fs12);
		  }
		}
	  }
    }
    &.second {
	  a {
        .image {
  	      &:before { background: url("/wp-content/themes/tsunawa-2026/assets/images/pht/pht_service02.webp") no-repeat center top / cover; }
        }
        .detail {
	      h3 { color: #FF8000; }
	      ul {
		    li { background: #FFA64D; }
	      }
	    }
        &:after { color: #FF8000; }
      }
    }
    &.third {
	  a {
        .image {
  	      &:before { background: url("/wp-content/themes/tsunawa-2026/assets/images/pht/pht_service03.webp") no-repeat center top / cover; }
        }
        .detail {
	      h3 { color: var(--c-green); }
	      ul {
		    li { background: #70B6AE; }
	      }
	    }
        &:after { color: var(--c-green); }
      }
    }
    &:last-child {
	  margin-bottom: 0;
	  a {
        .image {
  	      &:before { background: url("/wp-content/themes/tsunawa-2026/assets/images/pht/pht_service04.webp") no-repeat center top / cover; }
        }
        .detail {
	      h3 { color: var(--c-red); }
	      ul {
		    li { background: #EB7088; }
	      }
	    }
        &:after { color: var(--c-red); }
      }
	}
  }
}
@keyframes serviceArrowMove {
  0%, 100% {
    transform: translate(0, -50%);
  }

  50% {
    transform: translate(12px, -50%);
  }
}

#group {
  background: var(--c-white);
  padding: 100px 0;
  article {
	background: #eff2f5;
	margin: 0 50px;
    padding: 100px 80px;
    border-radius: 32px;
    .group-txt {
	  width: 55%;
      h2 {
        font-size: var(--fs60);
        margin-bottom: 50px;
        span { display: block; font-weight: 900; font-size: var(--fs24); margin-bottom: 20px; }
      }
      h3 {
	    font-size: var(--fs40);
	    margin-bottom: 50px;
	    span{
		  display: block;
		  &.small { font-size: var(--fs30); margin-top: 10px; }
		}
      }
      .txt { font-size: var(--fs20); font-weight: 700; }
    }
  }
}