@import url(common.css);

/* ------------------------------

タブデザイン
（iOS風）

------------------------------ */
.tab-container {
  position: relative;
}

.tab-container .tab_ul {
  width: calc(100% - 20px);
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
  list-style: none;
  display: flex;
  background: #eeeeee;
  border-radius: 48px;
  padding: 6px;
  position: relative;
}

.slide-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(25% - 4px);
  height: calc(100% - 12px);
  background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
  border-radius: 48px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.tab-container .tab_ul li {
  flex: 1;
  padding: 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: clamp(14px, 3.52vw, 17px);
  color: #333333;
  border-radius: 8px;
  margin: 0 2px;
  background: transparent;
}

.tab-container .tab_ul li.selected {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tab-container .tab_ul li:not(.selected):hover {
  color: #aaaaaa;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.tab-content {
  display: none;
  min-height: 150px;
  background: #fefefe;
  border-radius: 8px;
  margin-top: 16px;
}

.tab-content.selected {
  display: block;
  animation: slideContentIn 0.3s ease-out;
}

@keyframes slideContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------

レスポンシブ
768px

----------------------------- */
@media (max-width: 768px) {
  .tab-content {
    padding: 15px;
    margin-top: unset;
  }
  .function_block {
    gap: 1em;
  }
  .function_block dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
  }
  .ac-card-spec div {
    justify-content: left;
    gap: 0.5em;
  }
}

/* -----------------------------

レスポンシブ
480px

----------------------------- */
@media (max-width: 480px) {
  .tab-container .tab_ul li {
    padding: 14px 0px;
    font-size: 13px;
  }
}
