@charset "utf-8";

/* ============================================================
  トップ - メインビジュアル
============================================================ */
main{
  margin-top: 140px;
}
.top_mv {
  position: relative;
  background: #25b8a9;
  color: #fff;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  display: none;
}

/* 装飾パーツ */
.top_mv--deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.top_mv--deco01 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: -200px;
  right: -150px;
}

.top_mv--deco02 {
  width: 350px;
  height: 350px;
  border: 1.5px solid rgba(255,255,255,0.08);
  bottom: -120px;
  left: -50px;
}

/* 左右分割レイアウト */
.top_mv--inner {
  max-width: var(--wid-1280);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 0 6rem;
}

/* 左：テキスト */
.top_mv--content {
  flex: 1;
  min-width: 0;
}

.top_mv--label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1.6rem;
  border-radius: 50px;
  margin-bottom: 2.4rem;
}

.top_mv--title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.top_mv--text {
  font-size: 1.6rem;
  opacity: 0.85;
  line-height: 2;
  margin-bottom: 3rem;
}

/* CTAボタン */
.top_mv--btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.top_mv--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 2.8rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}



.top_mv--btn-line {
  background: #06c755;
  border: 2px solid #06c755;
  color: #fff;
  transition: .3s background;
}

.top_mv--btn-line:hover {
  background: none;
  transition: .3s background;
}

.top_mv--btn-icon {
  width: 2rem;
  height: 2rem;
  fill: #fff;
}

.top_mv--btn-contact {
  background: var(--orange-color);
  color: #fff;
  border: 2px solid var(--orange-color);
  transition: .3s background;
}

.top_mv--btn-contact:hover {
  background: none;
  transition: .3s background;
}


/* ============================================================
  右：人気記事スライダー
============================================================ */
.top_mv--slider {
  position: relative;
  flex-shrink: 0;
  width: 540px;
}

/* ビューポート：左右にはみ出し */
.top_mv--slider-viewport {
  overflow: hidden;
  margin: 0 -80px;
  padding: 0 80px;
}

.top_mv--slider-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
}

.top_mv--slider-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* 各スライド：viewportフル幅 = 左右に隣が覗く */
.top_mv--slide {
  min-width: 100%;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.top_mv--slide-thumb {
  overflow: hidden;
  position: relative;
}

.top_mv--slide-thumb img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.top_mv--slide-cat {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 3px;
  z-index: 1;
}

.top_mv--slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  padding: 4rem 1.8rem 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 矢印ボタン */
.top_mv--slider-prev,
.top_mv--slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.top_mv--slider-prev:hover,
.top_mv--slider-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.top_mv--slider-prev { left: -16px; }
.top_mv--slider-next { right: -16px; }

.top_mv--slider-prev svg,
.top_mv--slider-next svg {
  width: 18px;
  height: 18px;
}

/* ページネーション */
.top_mv--slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.top_mv--slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.top_mv--slider-dot:hover {
  border-color: rgba(255,255,255,0.8);
}

.top_mv--slider-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* ============================================================
  企業ロゴ 無限ループマーキー
============================================================ */
.top_marquee {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 2.4rem 0;
  overflow: hidden;
  margin-top: -4rem;
  border-radius: 3rem 3rem 0 0;
}

.top_marquee::before,
.top_marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.top_marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.top_marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.top_marquee--track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}

.top_marquee--track:hover {
  animation-play-state: paused;
}

.top_marquee--item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.8rem;
  background: #f0f7f7;
  border: 1px solid #d6eded;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--main-color);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.top_marquee--item:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ============================================================
  トップ - レイアウト
============================================================ */
.top_inner {
  max-width: var(--wid-1280);
  margin: 0 auto;
  padding: 6rem 2rem ;
}

/* ============================================================
  トップ - セクション共通
============================================================ */
.top_section {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.top_section:last-child {
  margin-bottom: 0;
}

.top_section--head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top_section--title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 1.2rem;
  border-left: 4px solid var(--main-color);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.top_section--more {
  font-size: 1.4rem;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.top_section--more:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ============================================================
  トップ - 記事カード
============================================================ */
.top_articles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.top_card a {
  display: block;
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s;
}

.top_card a:hover {
  opacity: 1;
}

.top_card--thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.top_card--thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.top_card a:hover .top_card--thumb img {
  transform: scale(1.1);
}


.top_card--meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.top_card--cat {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.top_card--date {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 500;
  color: #888;
  margin-left: auto;
  white-space: nowrap;
}

.top_card--new {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: #e53935;
  margin-left: 0.5em;
  white-space: nowrap;
}

.top_card--title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top_card--title .line {
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.3s ease;
}

.top_card a:hover .top_card--title .line {
  background-size: 100% 1px;
}

.top_card--tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.top_card--tag {
  font-size: 1.2rem;
  color: #888;
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s;
}

.top_card--tag:hover {
  color: var(--main-color);
}

.top_card--tag + .top_card--tag::before {
  content: "｜";
  margin: 0 0.5rem;
  color: #ccc;
}

/* ============================================================
  トップ - カテゴリ一覧
============================================================ */
.top_categories {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.top_cat--item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: #f8f8f8;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s, box-shadow 0.3s;
}

.top_cat--item a:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}

.top_cat--color {
  width: 6px;
  height: 2.4rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.top_cat--name {
  flex: 1;
  font-weight: 600;
  font-size: 1.5rem;
}

.top_cat--count {
  font-size: 1.3rem;
  color: #888;
  font-family: var(--font-en);
}

/* ============================================================
  トップ - タグ一覧
============================================================ */
.top_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.top_tag--item {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: #f0f7f7;
  border: 1px solid #d6eded;
  border-radius: 50px;
  font-size: 1.4rem;
  color: #22adad;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.top_tag--item:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
  transition: background 0.3s, color 0.3s;
}

.top_tag--item span {
  font-size: 1.2rem;
  color: #888;
  margin-left: 0.3rem;
  transition: color 0.3s;
}

.top_tag--item:hover span {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

/* ============================================================
  レスポンシブ（767px以下）
============================================================ */
@media screen and (max-width: 767px) {
  .top_mv {
    padding: 4rem 1.5rem 0;
  }

  .top_mv--inner {
    flex-direction: column;
    text-align: center;
    gap: 2.4rem;
    padding-bottom: 4rem;
  }

  .top_mv--label {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.4rem;
  }

  .top_mv--title {
    font-size: 2.4rem;
  }

  .top_mv--text {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .top_mv--btns {
    justify-content: center;
    gap: 1rem;
  }

  .top_mv--btn {
    padding: 1rem 2rem;
    font-size: 1.3rem;
  }

  .top_mv--slider {
    width: 100%;
  }

  .top_mv--slider-viewport {
    margin: 0 -24px;
    padding: 0 24px;
  }

  .top_mv--slider-track {
    gap: 8px;
  }

  .top_mv--slide-thumb img {
    height: 180px;
  }

  .top_mv--slide-cat {
    top: 0.8rem;
    left: 0.8rem;
    font-size: 1.1rem;
    padding: 0.2rem 0.8rem;
  }

  .top_mv--slide-title {
    font-size: 1.3rem;
    padding: 3rem 1.4rem 1.2rem;
  }

  .top_mv--slider-prev { left: -8px; }
  .top_mv--slider-next { right: -8px; }

  .top_mv--slider-prev,
  .top_mv--slider-next {
    width: 32px;
    height: 32px;
  }

  .top_mv--slider-prev svg,
  .top_mv--slider-next svg {
    width: 14px;
    height: 14px;
  }

  .top_mv--slider-dots {
    margin-top: 1.2rem;
  }

  .top_mv--deco01 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
  }

  .top_mv--deco02 {
    width: 200px;
    height: 200px;
    bottom: -80px;
  }

  .top_marquee {
    margin-top: -2rem;
    padding: 1.6rem 0;
    border-radius: 1.4rem 1.4rem 0 0;
  }

  .top_marquee::before,
  .top_marquee::after {
    width: 40px;
  }

  .top_marquee--item {
    font-size: 1.3rem;
    padding: 0.5rem 1.4rem;
  }

  .top_inner {
    padding: 2.4rem 0 4rem;
  }

  .top_section {
    margin-bottom: 3.6rem;
  }

  .top_section--head {
    align-items: flex-start;
  }

  .top_section--title {
    font-size: 2rem;
  }

  .top_articles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .top_categories {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .top_tags {
    gap: 0.6rem;
  }

  .top_tag--item {
    font-size: 1.3rem;
    padding: 0.5rem 1.2rem;
  }

  .top_card--tag {
    font-size: 1.1rem;
  }
}