@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans CJK JP,Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif";
  text-decoration: none;
}

:root {
  --bg: #f8fafc;
  --primary: #2563eb;
  --text: #1e293b;
  --text-muted: #64748b;
  --color-product1: #f7eac1;
  --color-product2: #daf0f0;
  --color-border: #333333;
  --science: #11A3A1;
  --science-AI: #FBAB18;
  --duplo: #93c47d;
  --spike: #f7eac1;
}

body {
  margin: 0;
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 80vw;
  height: 60vh;
  max-height: 35vw;
  margin: 0 auto;
  padding: 20px;
}

.mv {
  width: 95%;
  margin: 0 auto;
  margin-top: 10px;
  background-color: #ffffff;
  padding: 80px 0;
  border-bottom: 1px solid #e2e8f0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../images/index/45521_Box_GIF_Creative_09_resized.webp");
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  transition: background-image 1s ease;
}

.mv-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative
}

.mv-text {
  flex: 1;
  min-width: 300px;
  max-width: 80%;
  padding: 20px;
  border-radius: 12px;
  color: white;
}

.mv-text h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 600;

}

.mv-text p {
  margin-bottom: 24px;
  font-weight: 300;
}

.mv-image {
  flex: 1;
  min-width: 300px;
  background-color: #e2e8f0;
  height: 300px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.btn {
  display: inline-block;
  /* position: absolute; */
  background-color: white;
  color: black;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  /* bottom: 1rem; */
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.news {
  background-color: #ffffff;
  border-radius: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.news_container {
  max-width: 80vw;
  margin: 0 auto;
  padding: 20px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  /* align-items: center; */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-title {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.news-title h3 {
  margin: 0;
  font-size: 1.2rem;
}

.news-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

.news-title:hover {
  color: var(--primary);
}

.main-content {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 95%;
  margin: 0 auto;
  background-color: #f8fafc;
}

.main_container {
  margin: 20px 0;
  width: 80%;
}

.sidebar {
  position: sticky;
  height: fit-content;
  background-color: #ffffff;
  width: clamp(15%, calc(12.3170732vw + 51.51219512px), 17%) !important;
  margin: 20px 0;
  padding: 20px;
  top: 75px;
}

.sidebar h3 {
  margin-top: 0;
  width: 100%;
  font-size: clamp(0.75rem, 0.5787rem + 0.2469vw, 0.875rem);
  padding: 10px 0px 10px 10px;
  margin-bottom: 10px;
  border-radius: 2.4rem;
  background-color: #ffffff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;

}

.sidebar a {
  background: #ffffff;
  width: 100%;
  color: var(--text);
}

.sidebar h3:hover {
  background-color: #f1f1f1;
  transition: all 0.3s ease;
}

.main-content>section {
  border-radius: 12px;
}

.sidebar .CS_and_AI h3 {
  width: 100%;
  background-color: var(--science-AI);
  color: white;
  font-size: clamp(0.625rem, 0.2824rem + 0.4938vw, 0.875rem);
}

.CS_and_AI h3:hover {
  background-color: color-mix(in srgb, var(--science-AI) 70%, transparent) !important;
  transition: all 0.3s ease;
}

.sidebar .science h3 {
  width: 100%;
  background-color: var(--science);
  color: white;
  font-size: clamp(0.625rem, 0.2824rem + 0.4938vw, 0.875rem);
}

.science h3:hover {
  background-color: color-mix(in srgb, var(--science) 70%, transparent) !important;
  transition: all 0.3s ease;
}

.unified_qualification {
  font-size: clamp(0.75rem, 0.5787rem + 0.2469vw, 0.875rem);
  /* text-align: center; */
  margin-top: 20px;
  color: var(--text-muted);
}

.privacy_mark {
  width: 70%;
  height: auto;
  padding: 20px;
  margin: 0 auto;
}

.product-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  padding: 20px;
  margin-top: 20px;
}

.product-section {
  max-width: 80%;
  margin: 0 auto;
}

.product-section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.tab-nav {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.tab-btn {
  flex: 1;
  padding: 24px 16px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, opacity 0.2s;
  position: relative;
  transition: transform 0.3s ease;
}

.tab-btn-img {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.tab-btn:hover .tab-btn-img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.tab-btn {
  opacity: 0.8;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  aspect-ratio: 1/1;
}

.tab-btn[data-tab="product1"] {
  background-color: var(--color-product1);
}

.tab-btn[data-tab="product2"] {
  background-color: var(--color-product2);
}

.tab-btn[data-tab="product3"] {
  background-color: var(--spike);
}

.tab-btn[data-tab="product4"] {
  background-color: var(--duplo);
  align-items: center;
}

.tab-btn[data-tab="product5"] {
  background-color: #ffb201;
  align-items: center;
  width: 100%;
}

.tab-btn:hover {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.tab-content-wrapper {
  position: relative;
  margin-top: -1px;
  z-index: 1;
}

.tab-btn-drone-img {
  display: block;
  width: auto;
  max-width: 500px;
  overflow: hidden;
  width: 100%;
  height: auto;
  margin-top: 10px;
  margin: 0 auto;
}

.tab-btn:hover .tab-btn-drone-img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.tab-nav>div {
  width: calc(50% - 8px);
}

.mobile-br {
  display: none;
}

.tab-btn-img-wrapper {
  height: 80%;
  display: flex;
  align-items: center;
}


.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #222;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #e06d33;
  margin: 15px auto 0;
}

.campus-portal {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #0fa3db;
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.campus-portal-content {
  flex: 1;
}

.campus-portal-content h3 {
  font-size: 1.6rem;
  color: #0fa3db;
  margin: 0 0 10px;
}

.campus-portal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 20px;
}

.btn-external {
  display: inline-flex;
  align-items: center;
  background-color: #0fa3db;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-external:hover {
  background-color: #0c8bbd;
}

.btn-external::after {
  content: '→';
  margin-left: 8px;
  font-family: sans-serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-img-wrapper {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card h4 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #222;
}

.product-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  align-self: center;
}

.cat-lego {
  background-color: #ffcf00;
  color: #333;
  font-weight: bold;
}

.cat-drone {
  background-color: #333;
}

.product-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.product-card.is-discontinued {
  background: #fdfdfd;
}

.product-card.is-discontinued .product-img {
  filter: grayscale(50%);
  opacity: 0.8;
}

.category-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.cat-discontinued {
  background-color: #666666;
  color: #ffffff;
  font-weight: bold;
}

.product-card.is-discontinued h4 {
  color: #777;
}

@media screen and (max-width: 768px) {

  .campus-portal {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .mv {
    width: 95%;
    max-height: 90vw;
    height: auto;
    padding: 40px 0;
  }

  .container {
    max-width: 90vw;
    width: 90vw;
    height: auto;
    padding: 5px;
  }

  .mv-text {
    max-width: 95%;
    padding: 10px;
  }

  .mv-text h1 {
    font-size: 1rem;
  }

  .mv-text p {
    display: none;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .sidebar {
    display: none;
  }

  .main_container {
    width: 100%;
    padding: 0;
    margin: 0;
    padding-top: 20px;
  }

  .news_container {
    max-width: 85vw;
    padding: 0px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item {
    width: 100%;
    padding: 10px 0;
  }

  .news-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-title h3 {
    margin: 0;
    font-size: 1.1rem;
  }

  .product-section {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .tab-nav {
    width: 100% !important;
  }

  .tab-btn {
    color: var(--text);
    font-size: clamp(0.875rem, 0.0313rem + 3.75vw, 1.0625rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-br {
    display: block;
  }

  .tab-btn-img-wrapper {
    height: auto;
  }

  .tab-btn[data-tab="product5"]>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

}