/* =====================================
   Index First Visual Marquee
===================================== */

.index-visual-marquee {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 80px 0;
  background: #fff;
}

.marquee-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
}

.marquee-row {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.marquee-row-top {
  animation: marqueeLeft 95s linear infinite;
}

.marquee-row-bottom {
  animation: marqueeLeft 110s linear infinite;
}

.marquee-card {
  flex: 0 0 220px;
  height: 280px;
  overflow: hidden;
  border-radius: 18px;
  background: #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee-center-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 42px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.marquee-small {
  margin: 0 0 10px;
  color: #1E90FF;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-center-card h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.marquee-copy {
  max-width: 340px;
  margin: 24px auto 0;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.9;
}

.marquee-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-width: 210px;
  padding: 15px 24px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.marquee-button:hover {
  background: #1E90FF;
  transform: translateY(-3px);
}

/* =====================================
   Index About / Lottie Logo
===================================== */

.index-about {
  padding: 90px 24px 70px;
  text-align: center;
  background: #fff;
}

#linglobe-logo {
  width: min(600px, 80vw);
  margin: 0 auto;
}

#linglobe-logo svg {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.index-about-copy {
  max-width: 760px;
  margin: 28px auto 0;
  color: #1f2937;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .index-about {
    padding: 70px 20px 56px;
  }

  #linglobe-logo {
    width: min(300px, 78vw);
  }

  .index-about-copy {
    font-size: 1.08rem;
    line-height: 1.75;
  }
}

@keyframes marqueeLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeRight {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .index-visual-marquee {
    min-height: 680px;
    padding: 72px 0;
  }

  .marquee-bg {
    gap: 18px;
  }

  .marquee-row {
    gap: 16px;
  }

  .marquee-card {
    flex-basis: 150px;
    height: 210px;
    border-radius: 14px;
  }

  .marquee-center-card {
    width: min(330px, calc(100% - 40px));
    padding: 38px 30px;
    border-radius: 30px;
  }

  .marquee-center-card h1 {
    font-size: 3rem;
  }

  .marquee-copy {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .marquee-button {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .marquee-card {
    flex-basis: 132px;
    height: 190px;
  }

  .marquee-center-card {
    padding: 34px 26px;
  }
}

/* =====================================
   Index Learning Section
===================================== */

.index-learning {
  padding: 90px 24px 100px;
  background: #eaf8ff;
}

.index-learning-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.index-section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.index-section-heading span {
  display: inline-block;
  margin-bottom: 12px;
  color: #1E90FF;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.index-section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.index-section-heading p {
  max-width: 680px;
  margin: 20px auto 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.9;
}

.learning-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.learning-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 34px 30px 32px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(15, 95, 168, 0.08);
  text-align: center;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.learning-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 95, 168, 0.16);
}

.learning-lottie {
  width: min(220px, 70%);
  height: 220px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-lottie svg {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.learning-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.learning-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.45rem;
  line-height: 1.35;
}

.learning-card p {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 0.96rem;
  line-height: 1.85;
}

.learning-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto auto 0;
  margin-top: 28px;
  min-width: 160px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.learning-button:hover {
  background: #1E90FF;
  transform: translateY(-3px);
}

.learning-image {
  width: min(220px, 70%);
  margin: 0 auto 24px;
}

.learning-image img {
  width: 100%;
  height: auto;
  display: block;
}

.learning-lottie {
  width: min(220px, 70%);
  height: 220px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-dotlottie {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .learning-card-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .learning-card {
    padding: 32px 28px;
  }

  .learning-lottie {
    width: min(220px, 68%);
    height: 200px;
  }
}

@media (max-width: 480px) {
  .index-learning {
    padding: 70px 18px 78px;
  }

  .index-section-heading {
    margin-bottom: 34px;
  }

  .index-section-heading h2 {
    font-size: 2rem;
  }

  .learning-card {
    border-radius: 24px;
    padding: 28px 24px;
  }

  .learning-lottie {
    height: 170px;
  }

  .learning-card h3 {
    font-size: 1.28rem;
  }

  .learning-button {
    width: 100%;
  }

  .learning-lottie {
    height: 170px;
  }
}

/* =====================================
   Index Regions Section
===================================== */

.index-regions {
  padding: 90px 24px 100px;
  background: #f8fbff;
}

.index-regions-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.region-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.region-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 95, 168, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.region-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(15, 95, 168, 0.14);
}

.region-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

.region-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.region-card:hover .region-card-image img {
  transform: scale(1.04);
}

.region-card-body {
  padding: 22px 22px 24px;
}

.region-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.4rem;
  line-height: 1.3;
}

.region-card p {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.75;
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.region-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1E90FF;
  font-size: 0.84rem;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.region-tags a:hover {
  background: #1E90FF;
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1100px) {
  .region-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .index-regions {
    padding: 70px 20px 78px;
  }

  .region-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .region-card-body {
    padding: 20px 18px 22px;
  }

  .region-card h3 {
    font-size: 1.28rem;
  }

  .region-card p {
    font-size: 0.92rem;
  }
}

/* =====================================
   Index Media Showcase
===================================== */

.index-media-showcase {
  padding: 90px 24px 110px;
  background: #fff;
}

.index-media-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.media-row-block + .media-row-block {
  margin-top: 76px;
}

.media-row-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.media-row-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: #1E90FF;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-row-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.media-row-controls {
  display: flex;
  gap: 10px;
}

.media-scroll-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.media-scroll-btn:hover {
  background: #1E90FF;
  transform: translateY(-2px);
}

.media-scroll-area {
  overflow: hidden;
}

.media-card-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  cursor: grab;
  scrollbar-width: none;
}

.media-card-track::-webkit-scrollbar {
  display: none;
}

.media-card-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* ここからカード本体 */
.media-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 144, 255, 0.45);
  background: #f8fbff;
}

.media-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* YouTube play mark */
.media-card.is-video .media-card-image::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 0;
  background: #ff0000;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.media-card-body {
  padding: 18px 18px 20px;
}

.media-card-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #1E90FF;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 1.12rem;
  line-height: 1.35;
}

.media-card-body p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 使わなくなるタグ部分：念のため非表示 */
.media-card-tags {
  display: none;
}



/* Responsive */
@media (max-width: 768px) {
  .index-media-showcase {
    padding: 72px 18px 86px;
  }

  .media-row-block + .media-row-block {
    margin-top: 62px;
  }

  .media-row-heading {
    align-items: flex-start;
  }

  .media-row-controls {
    flex: 0 0 auto;
  }

  .media-scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .media-card-track {
    gap: 18px;
    padding-bottom: 14px;
  }

  .media-card {
    flex-basis: 280px;
  }

  .media-card-body {
    padding: 16px 16px 18px;
  }
}

@media (max-width: 480px) {
  .media-row-heading {
    flex-direction: column;
  }

  .media-row-controls {
    align-self: flex-end;
  }

  .media-card {
    flex-basis: 82vw;
  }
}

/* =====================================
   Index News / What's New
===================================== */

.index-news {
  padding: 90px 24px 110px;
  background: #f7fafc;
}

.index-news-inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* Featured cards */
.whats-new-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px dashed #cbd5e1;
  border-left: 1px dashed #cbd5e1;
  background: #fff;
}

.whats-new-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-right: 1px dashed #cbd5e1;
  border-bottom: 1px dashed #cbd5e1;
  color: inherit;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.whats-new-card:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
}

.whats-new-image {
  width: 110px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.whats-new-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whats-new-body {
  min-width: 0;
}

.news-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1E90FF;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-label.is-news {
  background: #eaf4ff;
  color: #1E90FF;
}

.news-label.is-update {
  background: #ecfdf5;
  color: #059669;
}

.news-label.is-video {
  background: #fff1f2;
  color: #e11d48;
}

.news-label.is-slide {
  background: #f5f3ff;
  color: #7c3aed;
}

.whats-new-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.55;
}

.whats-new-card p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Text lists */
.news-list-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  margin-top: 72px;
}

.news-list-box {
  background: #fff;
  padding: 34px 34px 28px;
  border-top: 4px solid #000;
}

.news-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.news-list-heading h3 {
  margin: 0;
  color: #111827;
  font-size: 1.65rem;
  line-height: 1.2;
}

.news-list-heading a {
  color: #1E90FF;
  font-size: 0.86rem;
  font-weight: 800;
}

.news-list-heading a::after {
  content: " →";
}

.news-text-list {
  display: grid;
}

.news-text-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  color: inherit;
}

.news-text-item:last-child {
  border-bottom: none;
}

.news-text-date {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
}

.news-text-title {
  color: #334155;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.65;
}

.news-text-item:hover .news-text-title {
  color: #1E90FF;
}

/* Responsive */
@media (max-width: 1100px) {
  .whats-new-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-list-columns {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .index-news {
    padding: 72px 18px 86px;
  }

  .whats-new-grid {
    grid-template-columns: 1fr;
  }

  .whats-new-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }

  .whats-new-image {
    width: 96px;
  }

  .news-list-columns {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .news-list-box {
    padding: 28px 22px 24px;
  }

  .news-list-heading h3 {
    font-size: 1.4rem;
  }

  .news-text-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
}

@media (max-width: 480px) {
  .whats-new-card {
    grid-template-columns: 1fr;
  }

  .whats-new-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}