/* ==========================================================================
   Home Page — Front Page Styles
   ========================================================================== */

/* ---------- FV (First View) Section ---------- */
#fv-container {
  width: 100vw;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
}

.fv__inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding: 80px 0 80px 120px;
}

.fv__content {
  position: relative;
  z-index: 10;
}

.maincopy {
  color: #000;
  font-family: var(--font-en);
  font-size: 90px;
  font-weight: 800;
  line-height: normal;
  margin: 0;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 10;
}

.maincopy-line {
  display: inline;
  opacity: 0;
  animation: RightToLeft 1s ease forwards;
}

.maincopy-line:nth-child(1) { animation-delay: 0.2s; }
.maincopy-line:nth-child(2) { animation-delay: 0.4s; }
.maincopy-line:nth-child(3) { animation-delay: 0.6s; }
.maincopy-line:nth-child(4) { animation-delay: 0.8s; }

.fv__subcopy {
  font-size: 18px;
  line-height: 1.6em;
  color: #000;
  margin-top: 48px;
  margin-bottom: 0;
  max-width: 520px;
  font-weight: bold;
  position: relative;
  z-index: 10;
}

.fv__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 40px 0;
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* CTAボタン共通 */
.ctabtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 40px;
  border-radius: 99px;
  border: 1px solid #000;
  text-decoration: none;
  transition: all var(--transition-base);
  width: 240px;
  height: 48px;
  position: relative;
  overflow: visible;
}

.ctabtn:hover {
  background-color: #000;
  color: #fff;
}

/* まずは相談する: オレンジ */
.ctabtn2 {
  background-color: #E98212;
  color: #fff;
  border: 1px solid #E98212;
}

.ctabtn2:hover {
  background-color: #d47410;
  color: #fff;
}

/* CTAボタン矢印 — 横線 */
.ctabtn::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-1px);
  width: 40px;
  height: 2px;
  background-color: #E98212;
  transition: transform var(--transition-base);
}

/* CTAボタン矢印 — 先端（矢じり上半分） */
.ctabtn::before {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 12px;
  height: 2px;
  background-color: #E98212;
  transform: translateY(-4px) rotate(35deg);
  transform-origin: 100% 50%;
  transition: transform var(--transition-base);
  z-index: 1;
}

.ctabtn:hover::after {
  transform: translateY(-1px) translateX(8px);
}

.ctabtn:hover::before {
  transform: translateY(-4px) rotate(35deg) translateX(8px);
}

/* ctabtn2の矢印は黒 */
.ctabtn2::after {
  background-color: #000;
}

.ctabtn2::before {
  background-color: #000;
}

/* FV画像: 右側に絶対配置 — 本番と同じ */
.fv__visual {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 36%;
  height: 100%;
  z-index: 0;
}

.fv__visual img {
  height: 100%;
  width: 100%;
  border-radius: 64px 0 0 64px;
  object-fit: cover;
}

/* FV SVG animation container — 画像の裏側に配置 */
.fv-anime {
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

.fv__svg-deco {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.svg-draw-line {
  fill: none;
  stroke-width: 80;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}

.svg-line-1 {
  animation: drawLine 6s linear infinite;
}
.svg-line-2 {
  animation: drawLine 6s linear infinite -1.5s;
}
.svg-line-3 {
  animation: drawLine 6s linear infinite -3s;
}
.svg-line-4 {
  animation: drawLine 6s linear infinite -4.5s;
}

/* ---------- Concept Section ---------- */
.concept-section {
  padding: 0;
  background-color: var(--color-bg-white);
}

.concept-text-large {
  font-size: 2.9em;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0;
  padding: 48px 0;
}

.concept-columns {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.concept-left {
  flex: 1;
}

.concept-right {
  flex: 1;
  position: relative;
}

.concept-text-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-gray);
}

.concept-text-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.concept-right img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  margin-top: -80px;
}

/* ---------- Services Section ---------- */
.services-section {
  padding: 0 0 64px;
  background-color: var(--color-bg-white);
}

.services-grid {
  margin-bottom: 36px;
}

.services-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-item {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-lighter);
  border-radius: var(--radius-card);
  padding: 32px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 12px 2px rgba(160, 160, 160, 0.2);
  transition: transform 0.5s ease, box-shadow var(--transition-base);
}

.service-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.service-item:hover .service-item__title {
  color: var(--color-secondary);
}

.service-item__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
  transition: color var(--transition-base);
}

.service-item__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.service-item__list li {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #737B8C;
  padding-left: 1.5em;
  position: relative;
}

.service-item__list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-size: 0.5em;
  top: 0.6em;
}

.service-item__list li a {
  color: var(--color-primary);
  text-decoration: none;
}

.service-item__list li a:hover {
  text-decoration: underline;
}

.button-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: auto;
}

.button-service .btn-arrow {
  width: 32px;
  height: auto;
  transition: transform var(--transition-base);
}

.service-item:hover .button-service .btn-arrow {
  transform: translateX(4px);
}

.service-item--lab {
  cursor: default;
}

.service-item--lab:hover {
  transform: none;
}

.service-item--no-link {
  cursor: default;
}

.service-item--no-link:hover {
  transform: none;
}

/* ---------- Works Section ---------- */
.works-section {
  padding: 40px 0 0;
  background-color: #F7F8FA;
}

.works-spacer {
  height: 100px;
}

.works-voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.works-logos {
  text-align: center;
  margin-bottom: 48px;
}

.works-section--tools {
  padding: 40px 0 0;
}

.works-logos__img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.11);
}

.works-carousel {
  margin-bottom: 40px;
}

.works-card {
  display: block;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.works-card__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.works-card__body {
  padding: 20px 24px 24px;
}

.works-card__company {
  font-size: 0.75rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

.works-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
}

/* Section More Link */
.section-more {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 40px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 12px 32px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-btn);
  transition: all var(--transition-base);
}

.more-link:hover {
  background-color: var(--color-text);
  color: #fff;
}

.more-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.more-link:hover .more-arrow {
  transform: translateX(4px);
  filter: brightness(0) invert(1);
}

/* ---------- Tools Section ---------- */
.tools-section {
  padding: 64px 0;
  background-color: var(--color-bg-lighter);
}

.tools-image {
  text-align: center;
}

.tools-image__img {
  max-width: 100%;
  height: auto;
}

/* ---------- Examples Section ---------- */
.examples-section {
  padding: 120px 0 64px;
  background-color: #F7F8FA;
  overflow: hidden;
}

/* カルーセルを全幅にする（containerの外にはみ出し） */
.examples-carousel.swiper,
.works-carousel.swiper,
.youtube-carousel.swiper,
.media-carousel.swiper {
  margin-left: calc(-1 * var(--section-padding-x)) !important;
  margin-right: calc(-1 * var(--section-padding-x)) !important;
  padding-left: var(--section-padding-x);
  overflow: hidden;
}

.examples-intro {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-gray);
  margin-bottom: 40px;
}

.example-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.example-card__img img {
  width: 100%;
  height: 488px;
  object-fit: cover;
}

.example-card__title {
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 20px 8px;
  line-height: 1.5;
  color: var(--color-text);
}

.example-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.example-card__meta span {
  font-size: 0.75rem;
  color: var(--color-text-gray);
  background-color: var(--color-bg-light);
  padding: 4px 12px;
  border-radius: 99px;
}

/* ---------- Works Section 2 (開発ツール) ---------- */
.works-section--tools {
  padding: 40px 0 0;
  background-color: var(--color-bg-white);
}

/* ---------- CTA1 Section ---------- */
.cta1-section {
  padding: 64px 0;
  background: linear-gradient(180deg, #fff 0%, #fff 50%, #F7F8FA 50%, #F7F8FA 100%);
}

.cta2-section {
  padding: 64px 0;
}

.cta1-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cta1-card1,
.cta1-card2 {
  background-color: #2B323B;
  padding: 160px 4px 40px 40px;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
  color: #fff;
  background-size: 50%;
  background-position: right top;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base);
}

.cta1-card1:hover,
.cta1-card2:hover {
  transform: translateY(-4px);
}

.cta1-card__label {
  font-size: 1rem;
  font-weight: 700;
  opacity: 1;
  margin-bottom: 8px;
}

.cta1-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #fff;
}

.cta1-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E98212;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.cta1-card__btn:hover {
  opacity: 0.8;
  color: #E98212;
}

.cta1-card__btn .btn-arrow {
  width: 40px;
  height: auto;
  transition: transform var(--transition-base);
  filter: none;
}

.cta1-card__btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Tips Section ---------- */
.tips-section {
  padding: 64px 0;
  background-color: var(--color-bg-white);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tips-card {
  display: block;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.11);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  padding: 20px;
}

.tips-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  color: var(--color-text);
}

.tips-card__img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.tips-card__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.tips-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  padding: 20px 0 0;
  line-height: 1.5;
  text-align: center;
}

/* ---------- YouTube Section ---------- */
.youtube-section {
  padding: 64px 0 0;
  background-color: var(--color-bg-white);
  overflow: hidden;
}

.youtube-category {
  font-size: 1.25rem;
  font-weight: 700;
  color: #777;
  margin-bottom: 24px;
  margin-top: 40px;
  position: relative;
  padding-left: 50px;
}

.youtube-category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 2px;
  background-color: #b8b8b8;
}

.youtube-category:first-of-type {
  margin-top: 0;
}

.youtube-carousel {
  margin-bottom: 32px;
}

.youtube-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-base);
}

.youtube-card:hover {
  transform: translateY(-4px);
  color: var(--color-text);
}

.youtube-card__thumb {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  border: solid 1px rgba(224, 224, 224, 0.4);
}

.youtube-card__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.youtube-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
}

.youtube-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.youtube-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 24px 0;
}

/* ---------- Media Section ---------- */
.media-section {
  padding: 64px 0 0;
  background-color: var(--color-bg-lighter);
  overflow: hidden;
}

.media-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  margin-top: 40px;
}

.media-category:first-of-type {
  margin-top: 0;
}

.media-category__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #777;
  position: relative;
  padding-left: 50px;
}

.media-category__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 2px;
  background-color: #b8b8b8;
}

.media-category__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
}

.media-category__more .btn-arrow {
  width: 16px;
  height: auto;
  transition: transform var(--transition-base);
}

.media-category__more:hover .btn-arrow {
  transform: translateX(4px);
}

.media-carousel {
  margin-bottom: 32px;
}

.media-carousel .swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  transition: transform var(--transition-base);
}

.media-carousel .swiper-slide a:hover img {
  transform: scale(1.03);
}

.media-carousel .swiper-slide h5 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  padding: 24px 0;
  margin: 0 0 20px;
}

.media-carousel .swiper-slide a {
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

/* ---------- News Section ---------- */
.news-section {
  padding: 64px 0 0;
  background-color: var(--color-bg-white);
}

.news-list {
  max-width: 100%;
  margin: 0;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #ECEEF3;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity var(--transition-base);
}

.news-item:first-child {
  border-top: 1px solid #ECEEF3;
}

.news-item:hover {
  opacity: 0.7;
  color: var(--color-text);
}

.news-item__date {
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: #686868;
  white-space: nowrap;
  min-width: 100px;
}

.news-item__cat {
  font-size: 0.75rem;
  color: var(--color-primary);
  background-color: rgba(1, 112, 185, 0.1);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.news-item__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.news-empty {
  text-align: center;
  color: var(--color-text-gray);
  padding: 40px 0;
}

/* ---------- Message Section ---------- */
.message-section {
  background-color: #2B323B;
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 80px 80px 0 0;
  margin-top: -40px;
}

.message-scroll {
  padding: 40px 0;
  overflow: hidden;
}

.message-scroll__track {
  display: flex;
  animation: messageScroll 60s linear infinite;
}

.message-scroll__item {
  flex-shrink: 0;
  width: calc(100vw / 3);
  margin: 0 8px;
  border-radius: 12px;
  overflow: hidden;
}

.message-scroll__item img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes messageScroll {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.message-bottom {
  background-color: #2B323B;
  padding: 40px 80px;
}

.message-section__inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  padding: 48px var(--section-padding-x);
}

.message-section__left {
  flex: 0 0 45%;
}

.message-section__right {
  flex: 1;
}

.message-section__quote {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

.message-highlight {
  color: var(--color-secondary);
}

.message-section__body {
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* ---------- Swiper Customizations ---------- */
.works-carousel .swiper-slide,
.examples-carousel .swiper-slide,
.youtube-carousel .swiper-slide {
  height: auto;
}

.swiper-button-prev,
.swiper-button-next {
  color: #7F7F7F;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 24px;
}

.swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  #fv-container {
    padding: 100px 40px 60px;
  }

  .maincopy {
    font-size: 64px;
  }

  .fv__visual {
    width: 40%;
  }

  .concept-text-large {
    font-size: 2.2em;
  }
}

@media (max-width: 921px) {
  #fv-container {
    padding: 100px 40px 60px;
  }

  .fv__content {
    max-width: 100%;
  }

  .fv__visual {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 32px;
    transform: none;
    top: auto;
    right: auto;
  }

  .fv__visual img {
    height: auto;
    border-radius: 12px;
  }

  .fv__subcopy {
    max-width: none;
  }

  .fv__cta {
    justify-content: center;
  }

  .maincopy {
    font-size: 48px;
  }

  /* Concept */
  .concept-columns {
    flex-direction: column;
    gap: 40px;
  }

  .concept-right {
    max-width: 400px;
    margin: 0 auto;
    margin-top: 0;
  }

  .concept-right img {
    margin-top: 0;
  }

  .concept-text-large {
    font-size: 1.8em;
    padding: 24px 0;
  }

  /* Services */
  .services-grid--3col {
    grid-template-columns: 1fr;
  }

  .services-grid--2col {
    grid-template-columns: 1fr;
  }

  /* CTA1 */
  .cta1-grid {
    grid-template-columns: 1fr;
  }

  /* Tips */
  .tips-grid {
    grid-template-columns: 1fr;
  }

  /* Message */
  .message-section__inner {
    flex-direction: column;
    gap: 32px;
  }

  .message-section__quote {
    font-size: 28px;
  }

  .message-bottom {
    padding: 40px 20px;
  }

  .message-section {
    border-radius: 24px 24px 0 0;
  }

  .message-scroll__item {
    width: calc(100vw / 1.5);
  }
}

@media (max-width: 768px) {
  #fv-container {
    padding: 90px 20px 40px;
  }

  .maincopy {
    font-size: 42px;
  }

  .fv__subcopy {
    font-size: 0.875rem;
  }

  .ctabtn,
  .ctabtn2 {
    width: 100%;
    padding: 14px 32px;
  }

  .fv__cta {
    flex-direction: column;
    width: 100%;
  }

  /* Concept */
  .concept-text-large {
    font-size: 1.5rem;
    padding: 16px 0;
  }

  /* CTA1 */
  .cta1-card1,
  .cta1-card2 {
    padding: 120px 24px 32px 24px;
  }

  .cta1-card__title {
    font-size: 1.125rem;
  }

  /* Works */
  .works-card__title {
    font-size: 0.875rem;
  }

  /* News */
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-item__title {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .maincopy {
    font-size: 36px;
  }

  .concept-text-large {
    font-size: 1.25rem;
  }
}

/* ===== YouTube カテゴリヘッダー (タイトル + もっと見るボタン) ===== */
.youtube-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 24px;
  gap: 16px;
}

.youtube-category-header:first-of-type {
  margin-top: 0;
}

.youtube-category-header .youtube-category {
  margin-top: 0;
  margin-bottom: 0;
  flex: 1;
}

.youtube-category__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e98212;
  text-decoration: none;
  border: 1px solid #e98212;
  border-radius: 99px;
  background: transparent;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.youtube-category__more:hover {
  background-color: #e98212;
  color: #fff;
}

.youtube-category__more .more-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.youtube-category__more:hover .more-arrow {
  transform: translateX(4px);
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .youtube-category-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .youtube-category__more {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}

/* ===== Tools Section (AI駆動開発スタック) ===== */
.tools-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.tools-section .section-heading__desc {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}

.tools-category {
  margin-top: 56px;
}

.tools-category:first-of-type {
  margin-top: 40px;
}

.tools-category__label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b323b;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.tools-category__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0170B9 0%, #E98212 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: "Manrope", sans-serif;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.tools-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 20px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  overflow: hidden;
}

.tools-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient, linear-gradient(135deg, #0170B9 0%, #E98212 100%));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.tools-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.tools-item:hover::before {
  opacity: 1;
}

.tools-item:hover .tools-item__name {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.tools-item__name {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #2b323b;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
}

/* ===== Logo image display =====
   重要: SVGに width/height 属性が無いものがあるため、
   img タグ側で明示的にサイズを指定して 0x0 になるのを防ぐ */
.tools-item__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 140px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

.tools-item:hover .tools-item__logo {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)) brightness(0) invert(1);
}

/* Visually-hidden (accessibility): keep label for screen readers only */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Tooltip on hover (CSS-only via data-tooltip) ===== */
.tools-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #2b323b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.tools-item[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Brand-specific gradient colors ===== */
.tools-item[data-brand="chatgpt"]     { --brand-gradient: linear-gradient(135deg, #10A37F 0%, #1A7F64 100%); }
.tools-item[data-brand="claude"]      { --brand-gradient: linear-gradient(135deg, #D97757 0%, #BF5832 100%); }
.tools-item[data-brand="gemini"]      { --brand-gradient: linear-gradient(135deg, #4796E5 0%, #9168C0 50%, #E76F51 100%); }
.tools-item[data-brand="deepseek"]    { --brand-gradient: linear-gradient(135deg, #4D6BFE 0%, #2B4DD0 100%); }
.tools-item[data-brand="grok"]        { --brand-gradient: linear-gradient(135deg, #1D1D1F 0%, #4A4A4A 100%); }
.tools-item[data-brand="claude-code"] { --brand-gradient: linear-gradient(135deg, #1A1A1A 0%, #D97757 100%); }
.tools-item[data-brand="cursor"]      { --brand-gradient: linear-gradient(135deg, #000000 0%, #1F1F1F 100%); }
.tools-item[data-brand="copilot"]     { --brand-gradient: linear-gradient(135deg, #24292F 0%, #5E60CE 100%); }
.tools-item[data-brand="codex"]       { --brand-gradient: linear-gradient(135deg, #10A37F 0%, #0F7060 100%); }
.tools-item[data-brand="devin"]       { --brand-gradient: linear-gradient(135deg, #4A5568 0%, #2D3748 100%); }
.tools-item[data-brand="v0"]          { --brand-gradient: linear-gradient(135deg, #000000 0%, #333333 100%); }
.tools-item[data-brand="dify"]        { --brand-gradient: linear-gradient(135deg, #1C64F2 0%, #0E47B6 100%); }
.tools-item[data-brand="bolt"]        { --brand-gradient: linear-gradient(135deg, #FFD400 0%, #E68A00 100%); }
.tools-item[data-brand="lovable"]     { --brand-gradient: linear-gradient(135deg, #FF5757 0%, #C53030 100%); }
.tools-item[data-brand="bubble"]      { --brand-gradient: linear-gradient(135deg, #0070F3 0%, #003E7E 100%); }
.tools-item[data-brand="flutterflow"] { --brand-gradient: linear-gradient(135deg, #5C6BFF 0%, #4757D0 100%); }
.tools-item[data-brand="n8n"]         { --brand-gradient: linear-gradient(135deg, #EA4B71 0%, #BE2A4F 100%); }
.tools-item[data-brand="zapier"]      { --brand-gradient: linear-gradient(135deg, #FF4A00 0%, #C73600 100%); }
.tools-item[data-brand="make"]        { --brand-gradient: linear-gradient(135deg, #6D00CC 0%, #4A0099 100%); }
.tools-item[data-brand="lark"]        { --brand-gradient: linear-gradient(135deg, #00D6B9 0%, #0099E6 100%); }
.tools-item[data-brand="wordpress"]   { --brand-gradient: linear-gradient(135deg, #21759B 0%, #135176 100%); }

/* ===== Responsive ===== */
@media (max-width: 921px) {
  .tools-section { padding: 56px 0; }
  .tools-category { margin-top: 40px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .tools-item { min-height: 80px; padding: 16px 12px; }
  .tools-item__name { font-size: 0.95rem; }
  .tools-item__logo { max-height: 42px; }
}

@media (max-width: 600px) {
  .tools-section { padding: 40px 0; }
  .tools-category__label { font-size: 1.1rem; gap: 12px; }
  .tools-category__num { width: 36px; height: 36px; font-size: 0.8rem; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tools-item { min-height: 70px; padding: 12px 8px; border-radius: 12px; }
  .tools-item__name { font-size: 0.85rem; }
  .tools-item__logo { max-height: 36px; }
  .tools-item[data-tooltip]::after { font-size: 0.72rem; padding: 5px 8px; }
}
