/* ===== インタビューカード内の動画スタイル ===== */
/* PC版 (.interview-card内の3:4縦長カード) */
.interview-card .int-card-video {
  aspect-ratio: 3/4;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  width: 100%;
  transition: transform 0.4s ease;
  background: #f5f5f5;
}
.interview-card .int-card-video.obj-pos-left20 {
  object-position: left 20%;
}
.interview-card:hover .int-card-video {
  transform: scale(1.04);
}

/* SP版 (.top-interview-ul内の4:3横長カード) */
.top-interview-ul li .int-card-video {
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
  object-position: left 20%;
  width: 100%;
  border-radius: 0;
  position: relative;
  z-index: 0;
  background: #f5f5f5;
}

/* ===== 1分でわかるマザーズ サムネ全てにラベル表示 ===== */
/* :before を absolute 配置するため、各.aXXに position:relative が必要 */
#thumbs .a01,
#thumbs .a02,
#thumbs .a03,
#thumbs .a04,
#thumbs .a05,
#thumbs .a06,
#thumbs .a07,
#thumbs .a08 {
  position: relative;
}
#thumbs .a01:before,
#thumbs .a02:before,
#thumbs .a03:before,
#thumbs .a04:before,
#thumbs .a05:before,
#thumbs .a06:before,
#thumbs .a07:before,
#thumbs .a08:before {
  bottom: 0;
  color: #221715;
  display: block;
  font-weight: 700;
  left: 0;
  position: absolute;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  font-size: 1.05rem;
  letter-spacing: 0;
  /* アイコンの box-shadow:3px 3px が右下に伸びるため、
     ラベルを少し左にずらして視覚中心と一致させる
     さらに少し下に下げて余白を持たせる */
  transform: translate(-5px, 6px);
}
#thumbs .a01:before { content: "従業員数"; }
#thumbs .a02:before { content: "事業所数"; }
#thumbs .a03:before { content: "事業数"; }
#thumbs .a04:before { content: "男女比"; }
#thumbs .a05:before { content: "平均勤続年数"; font-size: 0.9rem; }
#thumbs .a06:before { content: "平均残業時間"; font-size: 0.9rem; }
#thumbs .a07:before { content: "有給取得日数"; font-size: 0.9rem; }
#thumbs .a08:before { content: "育休復帰率"; font-size: 0.95rem; }

/* スマホ版は更に小さく */
@media screen and (max-width: 768px) {
  #thumbs .a01:before,
  #thumbs .a02:before,
  #thumbs .a03:before,
  #thumbs .a04:before,
  #thumbs .a05:before,
  #thumbs .a06:before,
  #thumbs .a07:before,
  #thumbs .a08:before {
    font-size: 0.85rem;
    /* SPは影が2pxなのでオフセットも小さめ */
    transform: translate(-3px, 4px);
  }
  #thumbs .a05:before,
  #thumbs .a06:before,
  #thumbs .a07:before,
  #thumbs .a08:before {
    font-size: 0.75rem;
  }
}

/* ===== 1分でわかるマザーズスライダーのはみ出し修正 ===== */
/* #sliderのbg-color#fffを透明にする (SVG自体が白背景を持つため不要)
   矢印が#slider内部にあるため overflow:hidden は使えない */
#slider {
  background-color: transparent !important;
}
#slider .slick-list {
  border-radius: 10px;
  overflow: hidden;
}
#slider img {
  display: block;
  vertical-align: top;
}

/* ===== マザーズデータセクション ===== */
.md-section {
  margin-top: 60px;
}

.md-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.md-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px 26px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.md-title {
  color: #221715;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.06em;
  padding: 4px 0 12px 18px;
  position: relative;
  line-height: 1.3;
  border-bottom: 1px solid #EFE9DE;
}

/* タイトル左の黄色アクセントバー */
.md-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 1.25em;
  background: linear-gradient(180deg, #FFE402 0%, #F4D000 100%);
  border-radius: 2px;
}

/* タイトル下の黄色ドット強調 */
.md-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: #FFE402;
  border-radius: 1px;
}

.md-subtitle {
  color: #221715;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.5;
}

.md-subtitle small {
  color: #777;
  font-size: 0.92em;
}

.md-main {
  color: #221715;
  font-family: Futura, "Futura-Medium", "Century Gothic", sans-serif;
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 8px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.md-unit {
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-left: 4px;
}

.md-note {
  color: #555;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  margin: auto 0 0;
}

/* 年次推移テーブル */
.md-history {
  border-collapse: collapse;
  margin-top: auto;
  width: 100%;
}

.md-history td {
  color: #221715;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 2px;
}

.md-history tr:first-child td {
  color: #888;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 2px solid #FFE402;
  padding-bottom: 8px;
}

.md-history tr:last-child td {
  padding-top: 10px;
  font-family: Futura, "Futura-Medium", "Century Gothic", sans-serif;
  font-size: 1.75rem;
}

/* 国旗エリア (Flex 4列) - 3段目は左寄せで4個目を空白 */
ul.md-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 10px 0;
}

.md-flags li {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.md-flags.is-in-view li {
  opacity: 1;
  transform: translateY(0);
}

/* 国旗をひとつずつ遅延フェードイン */
.md-flags.is-in-view li:nth-child(1)  { transition-delay: 0.05s; }
.md-flags.is-in-view li:nth-child(2)  { transition-delay: 0.10s; }
.md-flags.is-in-view li:nth-child(3)  { transition-delay: 0.15s; }
.md-flags.is-in-view li:nth-child(4)  { transition-delay: 0.20s; }
.md-flags.is-in-view li:nth-child(5)  { transition-delay: 0.25s; }
.md-flags.is-in-view li:nth-child(6)  { transition-delay: 0.30s; }
.md-flags.is-in-view li:nth-child(7)  { transition-delay: 0.35s; }
.md-flags.is-in-view li:nth-child(8)  { transition-delay: 0.40s; }
.md-flags.is-in-view li:nth-child(9)  { transition-delay: 0.45s; }
.md-flags.is-in-view li:nth-child(10) { transition-delay: 0.50s; }
.md-flags.is-in-view li:nth-child(11) { transition-delay: 0.55s; }

.md-flags img {
  width: 100%;
  max-width: 56px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  display: block;
}

.md-flags span {
  color: #221715;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* 棒グラフエリア - .ippun ul の影響を打ち消すため ul.md-bars で詳細度UP */
ul.md-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

ul.md-bars li {
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.md-bar-label {
  color: #221715;
  font-size: 1.2rem;
  font-weight: 600;
}

.md-bar-track {
  background: #f0ece5;
  border-radius: 4px;
  height: 16px;
  overflow: hidden;
  display: block;
  position: relative;
}

.md-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FFE402 0%, #FFC700 100%);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: width 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.md-bar-value {
  color: #221715;
  font-family: Futura, "Futura-Medium", "Century Gothic", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
}

/* ===== タブレット ===== */
@media screen and (max-width: 1100px) {
  .md-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-main {
    font-size: 4.5rem;
  }
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .md-section {
    margin-top: 40px;
  }
  .md-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .md-card {
    padding: 18px 18px 20px;
  }
  .md-title {
    font-size: 1.4rem;
    padding: 4px 0 10px 16px;
    margin-bottom: 16px;
  }
  .md-title::before {
    width: 3px;
    top: 5px;
  }
  .md-title::after {
    width: 32px;
  }
  .md-subtitle {
    font-size: 1.2rem;
  }
  .md-note {
    font-size: 1.1rem;
  }
  .md-flags span {
    font-size: 1rem;
  }
  .md-bar-label {
    font-size: 1.1rem;
  }
  .md-bar-value {
    font-size: 1.15rem;
  }
  .md-history td {
    font-size: 1.1rem;
  }
  .md-history tr:first-child td {
    font-size: 1rem;
  }
  .md-history tr:last-child td {
    font-size: 1.5rem;
  }
  .md-main {
    font-size: 4.5rem;
  }
  .md-unit {
    font-size: 1.6rem;
  }
  ul.md-flags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 8px 0;
  }
  .md-flags li {
    flex: 0 0 25%;
    max-width: 25%;
    height: auto;
  }
  .md-flags img {
    max-width: 44px;
  }
  .md-flags span {
    font-size: 0.85rem;
  }
  .md-history tr:last-child td {
    font-size: 1.3rem;
  }
  ul.md-bars li {
    grid-template-columns: 38px 1fr 48px;
    gap: 8px;
  }
  .md-bar-track {
    height: 14px;
  }
}
