/* Tailwindのデフォルト */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ハンバーガーメニューのカスタムスタイル */
.hamburger .line:nth-child(1) {
    top: 12px;
}
.hamburger .line:nth-child(2) {
    top: 18px;
}
.hamburger .line:nth-child(3) {
    top: 24px;
}

/* メニュー開いたとき */
.hamburger.open .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.open .line:nth-child(2) {
    opacity: 0;
}
.hamburger.open .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 記事目次のデザイン */
#toc-container h2 {
  color: #666666;
  font-size: 1rem;
  font-weight: 400;
}

#toc-container .toc-h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #444444;
}

#toc-container .toc-h3 {
  position: relative;
  padding-left: 38px;
  font-size: 0.875rem;
  color: #444444;
}

#toc-container .toc-h3::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 14px;
  height: 1px;
  background-color: #3CBD65;
}

/* 記事本文の見出しデザイン */
#post-content {
    color: #444444;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: justify;
}

#post-content h2 {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: 0.04em;
    border-left: 4px solid #3CBD65;
    padding: 1rem 0 1rem 1rem;
}

#post-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background-color: #f9f9f9;
    padding: 1rem 1.25rem;
}

#post-content p {
    font-size: 1rem;
    line-height: 1.75;
}

#post-content li {
    font-size: 1rem;
    line-height: 1.75;
}

#post-content ul,
#post-content ol {
    list-style-type: disc;
    margin-left: 1.5rem;
}

#post-content a {
    color: #0000EE;
    text-decoration: underline;
}

#post-content a:hover {
    text-decoration: none;
}
#post-content img {
    width: 100%;
}


/* ページネーションデザイン */
.pages {
    display: none;
}
.wp-pagenavi {
    margin-top: 80px;
	font-size: 12px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3CBD65;
}
.wp-pagenavi a {
    color: #3CBD65;
}
.wp-pagenavi span.current,
.wp-pagenavi a.page {
	margin: 0 10px 0 0;
	border: solid 1px #d9d9d9;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	line-height: 40px;
	text-align: center;
	box-sizing: border-box;
	justify-content: center;
	display: flex;
	align-items: center;
	transition: .3s;
}
.wp-pagenavi span.current {
    border: none;
    background: #3CBD65;
    color: #fff;
}
.wp-pagenavi a.page {
	background: none;
}
.wp-pagenavi a.page:hover {
    background: #3CBD65;
    color: #fff;
    border: none;
}
.wp-pagenavi .first,
.wp-pagenavi .extend {
    margin-right: 10px;
}
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    display: none;
}

/* パンくずリスト */
.breadcrumbs span a {
    border-bottom: 1px solid #444;
}

/* ページネーションデザイン */
.swiper-pagination {
    bottom: 0 !important;
    left: 80% !important;
    bottom: 4% !important;
    width: auto !important;
    height: fit-content !important;
}
@media (max-width: 1040px) {
    .swiper-pagination {
        left: 75% !important;
    }
}
@media (max-width: 767px) {
    .swiper-pagination {
        left: auto !important;
        right: -7% !important;
        bottom: 50% !important;
        transform: rotate(90deg) !important;
    }
}
.swiper-pagination-bullet {
    margin: 0 12px !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    position: relative;
    background-color: #ffffff !important;
}

.swiper-pagination-bullet-active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff !important;
    opacity: 0.3;
}

/* メインビジュアル スクロールアニメーション */
.scrollbar-text_05 {
    display: inline-block;
    position: absolute;
    z-index: 100;
    bottom: 0;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: translateX(-50%);
}

.scrollbar_05 {
    position: absolute;
    z-index: 100;
    bottom: 0;
    left: -40%;
    width: 2px;
    height: 100px;
    background: #fff;
}

.scrollbar_05::after {
    content: "";
    position: absolute;
    z-index: 100;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100px;
    background: #3CBD65;
    animation: liner 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes liner {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }
    30% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }
    70% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }
    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

/* メインビジュアル ズームアニメーション */
.bg-target {
  transform: scale(1);
  transition: transform 7s linear;
  will-change: transform;
}

.bg-target.zoomed {
  transform: scale(1.08);
}

/* メインビジュアル テキストアニメーション */
.animated-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #3CBD65, #6CBCE0);
  transform: scaleX(0.01);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.7s ease-in-out, opacity 0.4s ease-in-out;
  z-index: 0;
}

.animated-block.bg-animate::before {
  transform: scaleX(1);
  opacity: 1;
} 

.animated-block span {
  position: relative;
  z-index: 10;
}

.animated-block.no-transition::before {
  transition: none !important;
}

/* 解決エリア背景画像 */
.bg-solution {
  background-image: url('../img/top-solution-sp.jpg');
}

@media (min-width: 768px) {
  .bg-solution {
      background-image: url('../img/top-solution.jpg');
  }
}

/* 副業CTAコンテンツ背景画像スクロール */
.scrolling-images-up {
    animation: infiniteScrollup 50s linear infinite;
}

.scrolling-images-down {
    animation: infiniteScrolldown 50s linear infinite;
}

@keyframes infiniteScrollup {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes infiniteScrolldown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/*====================================================================
slick
====================================================================*/

html, body {
    margin: 0;
    padding: 0;
  }
  * {
    box-sizing: border-box;
  }
  .sliderArea {
    max-width: 100%;
  }
  .slick-list {
    max-width: 720px;
  }
  .slick-slide {
    margin: 0 15px;
  }
  @media (max-width: 768px) {
    .slick-slide {
      margin: 0 4px;
    }
  }
  .slick-prev, .slick-next {
    z-index: 1;
  }
  .slick-next, .slick-prev {
    background: linear-gradient(to right, #3CBD65 0%, #6CBCE0 100%) !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }
  .slick-prev:hover, .slick-next:hover {
    opacity: 0.8;
  }
  @media (max-width: 768px) {
    .slick-next, .slick-prev {
      display: none !important;
    }
  }
  .slick-prev:before, .slick-next:before {
    font-size: 1.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    color: #fff;
    opacity: 1;
  }
  .slick-slide {
    transition: all ease-in-out .3s;
    opacity: .2;
  }
  .slick-active {
    opacity: 1;
  }
  .slick-current {
    opacity: 1;
  }
  .thumb {
    margin: 20px 0 0;
  }
  .thumb .slick-slide {
    cursor: pointer;
  }
  .thumb .slick-slide:hover {
    opacity: .7;
  }
  .slick-dots {
    bottom: -60px;
  }

  /*====================================================================
  .full-screen
  ====================================================================*/
  
  .full-screen .slick-list {
    overflow: visible;
  }
  .full-screen.slider {
    max-width: 720px;
    margin: 0 auto;
  }  

    /*====================================================================
  フェードインアニメーション
  ====================================================================*/
  .animation {
    opacity: 0;
    transform: translate(0, 30px);
    transition-duration: 1.5s;
    transition-property: all;
  }

  .fadeUp {
    opacity: 1;
    transform: translate(0, 0);
  }

     /*====================================================================
  スライダーのドットの色
  ====================================================================*/
  .slick-dots li.slick-active button:before {
    color: #3CBD65;
  }