@charset "UTF-8";

/* ============================================================
 * アルル制作所 / トップページ
 * service_tab.css
 * 「Webまわりをまとめて伴走」下に追加するタブ型サービスリンク
 * top.css の .top / .cont / .inner / .head_wrapper / .btn と併用
 * ============================================================ */

.top .service_tab {
  --service-tab-blue: var(--top-accent, #5b94c9);
  --service-tab-blue-dark: var(--top-accent-dark, #3d76a8);
  --service-tab-blue-soft: var(--top-accent-soft, #e8f1f9);
  --service-tab-yellow: #fff2b8;
  --service-tab-yellow-2: #fff7d8;
  --service-tab-yellow-border: #efd06a;
  --service-tab-card-border: rgba(91, 148, 201, .18);

  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 12%, rgba(91, 148, 201, .10) 0 12%, transparent 12.2%),
    radial-gradient(circle at 94% 18%, rgba(255, 232, 154, .34) 0 14%, transparent 14.2%),
    linear-gradient(180deg, #fff 0%, var(--top-bg-cream, #f6f9fc) 100%);
}

.top .service_tab::before,
.top .service_tab::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.top .service_tab::before {
  width: 220px;
  height: 220px;
  right: -84px;
  top: 42px;
  background: rgba(91, 148, 201, .08);
}

.top .service_tab::after {
  width: 160px;
  height: 160px;
  left: -70px;
  bottom: 52px;
  background: rgba(255, 232, 154, .36);
}

.top .service_tab > .inner {
  position: relative;
  z-index: 1;
}

.top .service_tab__head {
  margin-bottom: 30px;
}

.top .service_tab__head .tit {
  margin-bottom: 12px;
}

.top .service_tab__head .tit .jp {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.45;
}

.top .service_tab__head .lead {
  max-width: 820px;
}

/* タブ */
.top .service_tab__tablist {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: -1px;
}

.top .service_tab__tab {
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 15px 8px 14px;
  border: 1px solid var(--service-tab-blue-dark);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, var(--service-tab-blue) 0%, var(--service-tab-blue-dark) 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.35;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.top .service_tab__tab:hover {
  background: linear-gradient(180deg, #6ba2d4 0%, var(--service-tab-blue-dark) 100%);
}

.top .service_tab__tab.is-active {
  z-index: 3;
  background: linear-gradient(180deg, var(--service-tab-yellow) 0%, var(--service-tab-yellow-2) 100%);
  color: var(--service-tab-blue-dark);
  border-color: var(--service-tab-yellow-border);
  transform: translateY(1px);
  box-shadow: 0 -10px 22px rgba(159, 128, 35, .12), 0 2px 0 var(--service-tab-yellow-2);
}

/* パネル */
.top .service_tab__panels {
  position: relative;
  z-index: 1;
}

.top .service_tab__panel {
  display: none;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--service-tab-yellow-border);
  border-radius: 0 26px 26px 26px;
  background:
    linear-gradient(180deg, rgba(255, 248, 221, .98), rgba(255, 244, 205, .98)),
    radial-gradient(circle at 96% 0%, rgba(91, 148, 201, .12), transparent 28%);
  box-shadow: 0 18px 44px rgba(159, 128, 35, .10);
}

.top .service_tab__panel.is-active {
  display: block;
  animation: serviceTabFade .28s ease both;
}

.top .service_tab__panel_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(159, 128, 35, .22);
}

.top .service_tab__category {
  flex: 0 0 auto;
  color: var(--top-text, #1a2332);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.top .service_tab__caption {
  flex: 1 1 auto;
  color: var(--top-text-sub, #697587);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: right;
  white-space: nowrap;
}

/* カード */
.top .service_tab__cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.top .service_tab_card {
  min-width: 0;
}

.top .service_tab_card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 318px;
  padding: 24px 18px 22px;
  border: 1px solid var(--service-tab-card-border);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-align: center;
  box-shadow: 0 12px 30px rgba(28, 61, 102, .06);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.top .service_tab_card__link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--service-tab-blue-dark), var(--service-tab-blue));
}

.top .service_tab_card__link:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 148, 201, .34);
  box-shadow: 0 18px 42px rgba(28, 61, 102, .12);
}

.top .service_tab_card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 6px auto 18px;
  border: 1px solid rgba(91, 148, 201, .18);
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbff 0%, var(--service-tab-blue-soft) 100%);
  color: var(--service-tab-blue-dark);
}

.top .service_tab_card__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top .service_tab_card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.top .service_tab_card__title {
  color: var(--top-text, #1a2332);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.top .service_tab_card__text {
  display: block;
  margin-top: 10px;
  margin-bottom: 22px;
  color: var(--top-text-sub, #697587);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.8;
  text-align: left;
}

.top .service_tab_card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid var(--service-tab-blue-dark);
  border-radius: 999px;
  background: var(--service-tab-blue-dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 8px 18px rgba(61, 118, 168, .18);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.top .service_tab_card__btn::after {
  content: "›";
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.top .service_tab_card__link:hover .service_tab_card__btn {
  background: var(--top-accent, #5b94c9);
  border-color: var(--top-accent, #5b94c9);
  box-shadow: 0 10px 22px rgba(91, 148, 201, .24);
}

.top .service_tab__foot {
  margin-top: 28px;
  color: var(--top-text-sub, #697587);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.top .service_tab__foot strong {
  color: var(--service-tab-blue-dark);
  font-weight: 900;
}

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

@media (max-width: 1120px) {
  .top .service_tab__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top .service_tab__tablist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .top .service_tab__tab {
    min-height: 52px;
    padding: 12px 8px 11px;
    border-radius: 15px 15px 0 0;
    font-size: 14px;
  }

  .top .service_tab__panel {
    border-radius: 0 22px 22px 22px;
  }
}

@media (max-width: 760px) {
  .top .service_tab__panel_head {
    display: block;
  }

  .top .service_tab__caption {
    margin-top: 4px;
    text-align: left;
    white-space: normal;
  }

  .top .service_tab__cards {
    grid-template-columns: 1fr;
  }

  .top .service_tab_card__link {
    min-height: auto;
  }
}
