/* ============================================================
   recruit-data.css — 採用サブページ: 数字で見る奥田商工
   recruit.css + recruit-vision.css と併用
   プレフィックス: rd-
   ============================================================ */


/* ============================
   Hero（rv-hero ベース + 上書き）
============================ */
/* Hero: rv-hero ベースのまま（他サブページと同じ白背景+カーブ）
   画像を配置する場合:
   .rd-hero {
     background: url(images/recruit-data-hero.jpg) center/cover no-repeat;
     overflow: hidden;
   }
   .rd-hero .rv-hero-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
*/
.rc-breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
}

.rc-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #999;
}

.rc-breadcrumb ol li:not(:last-child)::after {
  content: '>';
  margin-left: 4px;
  color: #ccc;
}

.rc-breadcrumb ol li a {
  color: #666;
  text-decoration: none;
}

.rc-breadcrumb ol li a:hover {
  text-decoration: underline;
}

/* ============================
   統計カード 4枚
============================ */
.rd-stats {
  padding: 80px 0 32px;
  background: #E5F4F8;
  margin-top: -80px;
  padding-top: 160px;
  position: relative;
  z-index: 2;
}

.rd-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.rd-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.rd-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rc-navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rc-orange);
}

.rd-card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  position: relative;
}

.rd-card-body--club {
  flex-direction: column;
  align-items: stretch;
}

.rd-card-body--bar {
  flex-direction: column;
  align-items: stretch;
}

.rd-card-chart-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.rd-card-text {
  font-size: 13px;
  font-weight: 700;
  color: #0C2C5D;
  line-height: 1.8;
}

.rd-card-text--center {
  text-align: center;
}

.rd-card-title--center {
  text-align: center;
  border-bottom: none;
  font-size: 20px;
  margin-bottom: 8px;
  padding-bottom: 0;
}


/* ============================
   Card 1: 経験・未経験者（大型ドーナツ）
============================ */
.rd-card--exp {
  background: #fff;
  text-align: center;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.rd-exp-chart-wrap {
  position: relative;
  width: min(60%, 340px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-donut.rd-donut--exp-lg {
  width: 100%;
  height: 100%;
  min-width: unset;
  border-radius: 50%;
  background: conic-gradient(
    #E5F4F8 0deg 64deg,
    #FFF0C7 64deg 360deg
  );
  position: relative;
}

.rd-donut-icon {
  position: absolute;
  top: 68%;
  left: 64%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: auto;
  z-index: 2;
}

.rd-donut--exp-lg::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #fff;
}

/* ラベル配置（ドーナツ上に重ねる） */
.rd-exp-label {
  position: absolute;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  z-index: 3;
}

.rd-exp-label--exp {
  top: 14%;
  right: 20%;
}

.rd-exp-label--inexp {
  top: 34%;
  left: 10%;
}

.rd-exp-num {
  position: absolute;
  z-index: 3;
}

.rd-exp-num strong {
  font-family: 'Inter', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--rc-orange);
  line-height: 1;
}

.rd-exp-num--inexp strong {
  color: var(--rc-orange);
}

.rd-exp-num small {
  font-size: 28px;
  font-weight: 600;
  color: var(--rc-orange);
}

.rd-exp-num--exp {
  top: 22%;
  right: 18%;
}

.rd-exp-num--inexp {
  top: 46%;
  left: 3%;
}


/* ============================
   ドーナツチャート（CSS conic-gradient）
============================ */
.rd-donut {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 中央の穴 */
.rd-donut::after {
  content: '';
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #fff;
}

.rd-donut-center-text {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 700;
  color: var(--rc-navy);
  line-height: 1;
}

.rd-donut-center-text small {
  font-size: 14px;
  font-weight: 500;
}

/* (Card1 経験・未経験ドーナツは .rd-donut--exp-lg で定義) */

/* 学部: 右=水色理系47%(169deg), 左下=黄色総合29%(104deg), 左上=オレンジ文系23%(83deg) */
.rd-donut--dept {
  background: conic-gradient(
    #E5F4F8 0deg 169deg,
    #FFF0C7 169deg 277deg,
    #FDDCB5 277deg 360deg
  );
}

/* Card 2: 学部・学科 */
.rd-card--dept {
  background: #fff;
  text-align: center;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.rd-dept-chart-wrap {
  position: relative;
  width: min(60%, 340px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-donut.rd-donut--dept {
  width: 100%;
  height: 100%;
  min-width: unset;
}

.rd-dept-label {
  position: absolute;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  z-index: 3;
}

.rd-dept-num {
  position: absolute;
  z-index: 3;
}

.rd-dept-num strong {
  font-family: 'Inter', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--rc-orange);
  line-height: 1;
}

.rd-dept-num small {
  font-size: 28px;
  font-weight: 600;
  color: var(--rc-orange);
}

/* イラスト */
.rd-dept-illust {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: auto;
  opacity: 0.6;
}

.rd-dept-illust--book {
  top: -2%;
  left: -22%;
}

.rd-dept-illust--mol {
  bottom: -4%;
  right: -20%;
}

/* 文系: 左上 */
.rd-dept-label--bun {
  top: 14%;
  left: 22%;
}
.rd-dept-num--bun {
  top: 22%;
  left: 18%;
}

/* 理系: 右 */
.rd-dept-label--ri {
  top: 28%;
  right: 14%;
}
.rd-dept-num--ri {
  top: 36%;
  right: 10%;
}

/* 総合科: 左下 */
.rd-dept-label--sogo {
  top: 52%;
  left: 6%;
}
.rd-dept-num--sogo {
  top: 60%;
  left: 14%;
}

/* 福利厚生: 満足2(12%), 概ね満足9(53%), 普通6(35%) */
.rd-donut--welfare {
  background: conic-gradient(
    var(--rc-orange) 0deg 42deg,
    var(--rc-navy) 42deg 233deg,
    #4A9EC0 233deg 360deg
  );
}

/* 凡例 */
.rd-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rd-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.rd-legend-item strong {
  font-size: 16px;
  font-weight: 700;
}

.rd-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rd-legend-dot--orange { background: var(--rc-orange); }
.rd-legend-dot--navy   { background: var(--rc-navy); }
.rd-legend-dot--teal   { background: #4A9EC0; }


/* ============================
   部活カード
============================ */
.rd-card--club {
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.rd-card-title--left {
  text-align: left;
  border-bottom: none;
  font-size: 20px;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.rd-club-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-top: -24px;
  margin-bottom: 8px;
}

.rd-club-highlights {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.rd-club-circle-big {
  border-radius: 50%;
  background: #F1AA2A3B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rd-club-circle-big:first-child {
  width: 140px;
  height: 140px;
}

.rd-club-circle-big:last-child {
  width: 160px;
  height: 160px;
  margin-bottom: 8px;
}

.rd-club-big-num {
  font-family: 'Inter', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--rc-orange);
  line-height: 1;
}

.rd-club-big-sport {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.rd-club-illust {
  width: 120px;
  height: auto;
  opacity: 0.7;
  margin-top: -40px;
  margin-right: -40px;
}

.rd-club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.rd-club-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #F1AA2A3B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.rd-club-etc {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-align: center;
}


/* ============================
   横棒グラフ
============================ */
.rd-card--bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rd-card--club .rd-card-text,
.rd-card--bar .rd-card-text {
  margin-top: auto;
}

.rd-card--bar .rd-card-text {
  padding-bottom: 1.8em;
}

.rd-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 0;
  flex: 1;
  justify-content: center;
}

.rd-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.rd-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: right;
  white-space: nowrap;
}

.rd-bar-track {
  height: 28px;
  overflow: hidden;
}

.rd-bar {
  height: 100%;
  transition: width 0.8s ease-out;
}

.rd-bar--1 { background: #F36327; }
.rd-bar--2 { background: #F79232; }
.rd-bar--3 { background: #F79232; }
.rd-bar--4 { background: #F1AA2A; }
.rd-bar--5 { background: #F1AA2A; }
.rd-bar--6 { background: #F1AA2A; }
.rd-bar--7 { background: #FCEBCE; }

.rd-bar-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}


/* ============================
   ランキング
============================ */
.rd-ranking {
  padding: 0 0 32px;
  background: #E5F4F8;
}

.rd-ranking .rv-container {
  max-width: 1200px;
  padding: 0 40px;
}

.rd-ranking-inner {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
}

.rd-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--rc-navy);
  text-align: center;
  margin-bottom: 48px;
}

.rd-sp-br { display: none; }

.rd-charm .rd-section-title {
  margin-bottom: 0;
}

.rd-section-title--white {
  color: #fff;
}

.rd-ranking-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.rd-ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rd-ranking-crown {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.rd-ranking-card {
  flex: 1;
  padding: 24px 24px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.rd-ranking-card--filled {
  background: var(--rc-orange);
  color: #fff;
  border-radius: 0;
}

.rd-ranking-card--filled-sub {
  background: #F79232;
  color: #fff;
  border-radius: 0;
}

.rd-ranking-card--outlined {
  background: #fff;
  color: var(--rc-orange);
  border: 2px solid var(--rc-orange);
  border-radius: 0;
}

.rd-ranking-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.rd-ranking-footer {
  font-size: 14px;
  font-weight: 700;
  color: #0C2C5D;
  line-height: 1.8;
  text-align: center;
}

.rd-ranking-icons {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.rd-ranking-icon--thumb {
  width: 80px;
  height: auto;
}

.rd-ranking-icon--heart {
  width: 52px;
  height: auto;
  margin-bottom: 4px;
}


/* ============================
   イベント＆福利厚生
============================ */
.rd-events {
  padding: 0 0 32px;
  background: #E5F4F8;
}

.rd-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.rd-events-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
}

.rd-events-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rc-navy);
  margin-bottom: 24px;
}

.rd-events-card-title--inline {
  margin-bottom: 0;
}

.rd-events-card-title--center {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.rd-events-card-body {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.rd-events-card-text {
  font-size: 14px;
  font-weight: 700;
  color: #0C2C5D;
  line-height: 1.8;
}

.rd-events-card-text--center {
  text-align: center;
}

/* 好きな社内イベント */
.rd-events-card--event {
  position: relative;
}

.rd-event-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.rd-event-illust {
  width: 200px;
  height: auto;
  margin-top: 20px;
  margin-left: -50px;
}

/* イベント丸 */
.rd-event-circles {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding: 0 0 20px;
  margin-top: -80px;
}

.rd-event-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rd-event-circle--trip {
  width: 200px;
  height: 200px;
  background: #0095B5;
  color: #fff;
  font-size: 22px;
  z-index: 1;
  margin-top: -16px;
}

.rd-event-circle--bbq {
  width: 170px;
  height: 170px;
  background: transparent;
  border: 2px solid var(--rc-orange);
  color: var(--rc-orange);
  font-size: 18px;
  margin-right: 16px;
  margin-top: 60px;
  z-index: 0;
}

/* 福利厚生カード */
.rd-events-card--welfare {
  background: #fff;
}

.rd-welfare-chart-wrap {
  position: relative;
  width: min(80%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-donut.rd-donut--welfare2 {
  width: 100%;
  height: 100%;
  min-width: unset;
  border-radius: 50%;
  /* 充実9人(53%=190deg), 一般的6人(35%=127deg), 改善2人(12%=43deg) */
  background: conic-gradient(
    #FFF0C7 0deg 190deg,
    #E5F4F8 190deg 317deg,
    #EDEDED 317deg 360deg
  );
  position: relative;
}

.rd-donut.rd-donut--welfare2::after {
  content: '';
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #fff;
}

.rd-welfare-label {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  z-index: 3;
}

.rd-welfare-num {
  position: absolute;
  z-index: 3;
}

.rd-welfare-num strong {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--rc-orange);
  line-height: 1;
}

.rd-welfare-num small {
  font-size: 20px;
  font-weight: 600;
  color: var(--rc-orange);
}

/* 改善: 左上 */
.rd-welfare-label--improve {
  top: 2%;
  left: -8%;
}
.rd-welfare-num--improve {
  top: 10%;
  left: 32%;
}

/* 充実: 右 */
.rd-welfare-label--good {
  top: 38%;
  right: 2%;
}
.rd-welfare-num--good {
  top: 48%;
  right: 6%;
}

/* 一般的: 左下 */
.rd-welfare-label--normal {
  bottom: 32%;
  left: 4%;
}
.rd-welfare-num--normal {
  bottom: 14%;
  left: 16%;
}



/* ============================
   魅力セクション
============================ */
.rd-charm {
  padding: 0 0 32px;
  background: #E5F4F8;
}

.rd-charm-inner {
  background: #fff;
  border-radius: 16px;
  padding: 48px 24px 56px;
}

.rd-charm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 6px 8px;
  grid-template-areas:
    "a a b b c c"
    "d d b b e e"
    "f f g g h h"
    ". i i i . .";
  align-items: end;
  margin-top: -40px;
}

.rd-charm-balloon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  position: relative;
  text-align: center;
  font-size: 20px;
  border-radius: 4px;
  width: fit-content;
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rd-charm-grid.is-visible .rd-charm-balloon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(1) { transition-delay: 0.1s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(2) { transition-delay: 0.25s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(3) { transition-delay: 0.4s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(4) { transition-delay: 0.55s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(5) { transition-delay: 0.7s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(6) { transition-delay: 0.85s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(7) { transition-delay: 1.0s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(8) { transition-delay: 1.15s; }
.rd-charm-grid.is-visible .rd-charm-balloon:nth-child(9) { transition-delay: 1.3s; }

/* 吹き出し三角 */
.rd-charm-balloon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.rd-charm-balloon--orange {
  background: var(--rc-orange);
}

.rd-charm-balloon--orange::after {
  border-top: 8px solid var(--rc-orange);
}

.rd-charm-balloon--navy {
  background: var(--rc-navy);
}

.rd-charm-balloon--navy::after {
  border-top: 8px solid var(--rc-navy);
}

.rd-charm-balloon--teal {
  background: #4A9EC0;
}

.rd-charm-balloon--teal::after {
  border-top: 8px solid #4A9EC0;
}

.rd-charm-balloon--accent {
  background: #0095B5;
}

.rd-charm-balloon--accent::after {
  border-top: 8px solid #0095B5;
}

/* サイズバリエーション */
.rd-charm-balloon--lg {
  font-size: 28px;
  padding: 24px 44px;
}

.rd-charm-balloon--xl {
  font-size: 24px;
  padding: 32px 44px;
}

.rd-charm-balloon--wide {
  font-size: 26px;
  padding: 24px 52px;
}

.rd-charm-balloon--sm {
  font-size: 17px;
  padding: 16px 24px;
}

.rd-charm-balloon--sm2 {
  font-size: 17px;
  padding: 14px 28px;
}


/* ============================
   社長セクション
============================ */
.rd-ceo {
  padding: 0 0 32px;
  background: #E5F4F8;
}

.rd-ceo-inner {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
}

.rd-ceo .rd-section-title {
  margin-bottom: 16px;
}

.rd-ceo-bubbles {
  position: relative;
  width: 100%;
  height: 380px;
}

.rd-ceo-bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rd-ceo-bubbles.is-visible .rd-ceo-bubble {
  opacity: 1;
  transform: scale(1);
}

.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(1)  { transition-delay: 0.1s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(2)  { transition-delay: 0.25s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(3)  { transition-delay: 0.4s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(4)  { transition-delay: 0.55s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(5)  { transition-delay: 0.7s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(6)  { transition-delay: 0.85s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(7)  { transition-delay: 1.0s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(8)  { transition-delay: 1.15s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(9)  { transition-delay: 1.3s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(10) { transition-delay: 1.45s; }
.rd-ceo-bubbles.is-visible .rd-ceo-bubble:nth-child(11) { transition-delay: 1.6s; }

/* 色バリエーション */
.rd-ceo-bubble--navy {
  background: var(--rc-navy);
  color: #fff;
}

.rd-ceo-bubble--teal {
  background: #0095B5;
  color: #fff;
}

.rd-ceo-bubble--orange-outline {
  background: transparent;
  border: 2px solid var(--rc-orange);
  color: var(--rc-orange);
}

.rd-ceo-bubble--gray-outline {
  background: transparent;
  border: 2px solid #bbb;
  color: #555;
}

/* サイズバリエーション */
.rd-ceo-bubble--sm {
  width: 100px;
  font-size: 13px;
  padding: 10px;
}

.rd-ceo-bubble--md {
  width: 130px;
  font-size: 15px;
  padding: 12px;
}

.rd-ceo-bubble--lg {
  width: 160px;
  font-size: 18px;
  padding: 14px;
}

.rd-ceo-bubble--xl {
  width: 210px;
  font-size: 18px;
  padding: 16px;
}

.rd-ceo-bubble--xxl {
  width: 190px;
  font-size: 22px;
  padding: 14px;
}


/* ============================
   RESPONSIVE — Tablet (≤ 1024px)
============================ */
@media (max-width: 1024px) {
  .rd-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .rd-card { padding: 24px; }

  /* ドーナツ内ラベル・数字を縮小 */
  .rd-exp-num strong { font-size: 52px; }
  .rd-exp-num small { font-size: 22px; }
  .rd-exp-label { font-size: 13px; }
  .rd-dept-num strong { font-size: 52px; }
  .rd-dept-num small { font-size: 22px; }
  .rd-dept-label { font-size: 13px; }
  .rd-card-illust { width: 48px; }

  /* 部活の大きい丸を縮小 */
  .rd-club-circle-big:first-child { width: 110px; height: 110px; }
  .rd-club-circle-big:last-child { width: 130px; height: 130px; }
  .rd-club-big-num { font-size: 48px; }
  .rd-club-big-sport { font-size: 14px; }

  /* イベント・福利厚生カード */
  .rd-events-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rd-events-card { padding: 20px 16px; }
  .rd-event-circle--trip { width: 160px; height: 160px; }
  .rd-event-circle--bbq { width: 140px; height: 140px; }
  .rd-event-illust { width: 160px; }

  /* 福利厚生ドーナツ */
  .rd-welfare-chart-wrap { width: min(90%, 240px); }
  .rd-welfare-num strong { font-size: 32px; }
  .rd-welfare-num small { font-size: 14px; }
  .rd-welfare-label { font-size: 10px; }

  .rd-ranking-crown { width: 48px; }
  .rd-ranking-card { font-size: 16px; padding: 20px 16px; }

  .rd-events-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Charm */
  .rd-charm-balloon { font-size: 15px; padding: 14px 24px; }
  .rd-charm-balloon--lg { font-size: 20px; padding: 18px 32px; }
  .rd-charm-balloon--xl { font-size: 18px; padding: 22px 32px; }
  .rd-charm-balloon--wide { font-size: 18px; padding: 18px 36px; }

  /* CEO */
  .rd-ceo-bubbles { height: 320px; }
  .rd-ceo-bubble--sm { width: 75px; font-size: 11px; }
  .rd-ceo-bubble--md { width: 95px; font-size: 12px; }
  .rd-ceo-bubble--lg { width: 115px; font-size: 13px; }
  .rd-ceo-bubble--xl { width: 145px; font-size: 13px; }
  .rd-ceo-bubble--xxl { width: 140px; font-size: 17px; }
}


/* ============================
   RESPONSIVE — Mobile (≤ 768px)
============================ */
@media (max-width: 640px) {
  /* Hero */
  .rd-hero {
    padding: 100px 0 60px;
  }

  /* Stats */
  .rd-stats {
    padding: 56px 0 20px;
    padding-top: 100px;
    margin-top: -40px;
  }

  .rd-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rd-card { padding: 20px; }
  .rd-card-title { font-size: 16px; margin-bottom: 16px; }
  .rd-card-title--center { font-size: 18px; }

  .rd-card-chart-area {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .rd-donut {
    width: 160px;
    height: 160px;
    min-width: 160px;
  }

  .rd-donut-center-text { font-size: 24px; }

  .rd-donut-legend {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .rd-legend-item { font-size: 12px; }

  .rd-card-illust { display: none; }

  /* Card 2: 学部・学科 */
  .rd-dept-chart-wrap { width: 70%; }
  .rd-dept-num strong { font-size: 40px; }
  .rd-dept-num small { font-size: 18px; }

  /* Card 1: 経験・未経験 */
  .rd-exp-chart-wrap { width: 70%; }

  .rd-donut.rd-donut--exp-lg {
    width: 100%;
    height: 100%;
    min-width: unset;
  }

  .rd-exp-num strong { font-size: 40px; }
  .rd-exp-num small { font-size: 18px; }

  .rd-exp-illust-img { width: 48px; }

  /* Bar chart */
  .rd-bar-chart { gap: 12px; }

  .rd-bar-row {
    display: grid;
    grid-template-columns: 1fr 30px;
    grid-template-rows: auto auto;
    gap: 2px 6px;
  }

  .rd-bar-label {
    font-size: 12px;
    text-align: left;
    grid-column: 1 / -1;
  }

  .rd-bar-track { height: 18px; }
  .rd-bar-value { font-size: 12px; }

  /* Club */
  .rd-club-circle-big:first-child { width: 110px; height: 110px; }
  .rd-club-circle-big:last-child { width: 130px; height: 130px; }
  .rd-club-big-num { font-size: 48px; }
  .rd-club-big-sport { font-size: 14px; }
  .rd-club-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .rd-club-circle { font-size: 12px; }
  .rd-club-illust { width: 80px; margin-top: -30px; margin-right: -20px; }

  /* Ranking */
  .rd-ranking { padding: 10px 0; }
  .rd-ranking .rv-container { padding: 0 16px; }
  .rd-sp-br { display: block; }
  .rd-ranking-inner { padding: 32px 16px; }
  .rd-section-title { font-size: 20px; margin-bottom: 24px; }

  .rd-ranking-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .rd-ranking-crown { width: 40px; }

  .rd-ranking-card { width: 100%; }

  .rd-ranking-card {
    font-size: 14px;
    padding: 16px 12px;
    white-space: normal;
  }

  .rd-ranking-footer { font-size: 13px; }
  .rd-ranking-icon--thumb { width: 60px; }
  .rd-ranking-icon--heart { width: 40px; }

  /* Events */
  .rd-events { padding: 0 0 20px; }

  .rd-events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rd-events-card { padding: 20px; }

  .rd-event-header { gap: 12px; margin-bottom: 16px; }
  .rd-event-illust { width: 100px; margin-left: -10px; margin-top: 0; }
  .rd-events-card-title { font-size: 18px; }

  .rd-event-circles { margin-top: -40px; }

  .rd-event-circle--trip {
    width: 150px;
    height: 150px;
    font-size: 18px;
    margin-top: -10px;
  }

  .rd-event-circle--bbq {
    width: 120px;
    height: 120px;
    font-size: 15px;
    margin-top: 40px;
  }

  .rd-welfare-chart-wrap { width: 80%; }
  .rd-welfare-num strong { font-size: 36px; }
  .rd-welfare-num small { font-size: 16px; }
  .rd-welfare-label { font-size: 11px; }

  /* Charm */
  .rd-charm { padding: 0 0 20px; }
  .rd-charm-inner { padding: 32px 16px 40px; }
  .rd-charm .rd-section-title { font-size: 18px; }

  .rd-charm-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas: none !important;
    gap: 8px;
    margin-top: 0 !important;
  }

  .rd-charm-balloon,
  .rd-charm-balloon--lg,
  .rd-charm-balloon--xl,
  .rd-charm-balloon--wide,
  .rd-charm-balloon--sm,
  .rd-charm-balloon--sm2 {
    font-size: 13px !important;
    padding: 14px 12px !important;
    width: 100% !important;
    text-align: center;
    grid-area: unset !important;
    justify-self: unset !important;
    margin: 0 !important;
  }

  /* 9個目は横長1行フル幅 */
  .rd-charm-grid .rd-charm-balloon:nth-child(9) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  /* CEO */
  .rd-ceo { padding: 0 0 20px; }
  .rd-ceo-inner { padding: 32px 16px; }
  .rd-ceo .rd-section-title { font-size: 18px; }

  .rd-ceo-bubbles {
    position: relative !important;
    height: 460px !important;
    display: block;
    padding: 0;
  }

  .rd-ceo-bubble {
    position: absolute !important;
    aspect-ratio: 1 !important;
  }

  /* 各バブルの位置とサイズを個別指定でランダム風に */
  /* 1: 社員との距離が近い */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(1) {
    width: 110px !important; font-size: 12px;
    top: 0% !important; left: 2% !important; right: unset !important;
  }
  /* 2: おだやか */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(2) {
    width: 100px !important; font-size: 13px;
    top: 0% !important; right: 8% !important; left: unset !important;
  }
  /* 3: 怒っている場面を見たことがない */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(3) {
    width: 130px !important; font-size: 12px;
    top: 13% !important; left: 18% !important; right: unset !important;
  }
  /* 4: 明るくて気さく */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(4) {
    width: 90px !important; font-size: 12px;
    top: 15% !important; right: 0% !important; left: unset !important;
  }
  /* 5: 仕事熱心 */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(5) {
    width: 82px !important; font-size: 11px;
    top: 30% !important; left: 0% !important; right: unset !important;
  }
  /* 6: 話しやすい */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(6) {
    width: 88px !important; font-size: 12px;
    top: 36% !important; left: 28% !important; right: unset !important;
  }
  /* 7: 親しみやすい */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(7) {
    width: 125px !important; font-size: 15px;
    top: 38% !important; right: 0% !important; left: unset !important;
  }
  /* 8: 真面目 */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(8) {
    width: 75px !important; font-size: 11px;
    top: 50% !important; left: 3% !important; right: unset !important;
  }
  /* 9: 朗らかな */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(9) {
    width: 95px !important; font-size: 12px;
    top: 52% !important; left: 28% !important; right: unset !important;
  }
  /* 10: 優しい言葉で指摘してくれる */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(10) {
    width: 115px !important; font-size: 12px;
    top: 66% !important; left: 2% !important; right: unset !important;
  }
  /* 11: 会社の将来に対し、意欲的 */
  .rd-ceo-bubbles .rd-ceo-bubble:nth-child(11) {
    width: 110px !important; font-size: 12px;
    top: 64% !important; right: 5% !important; left: unset !important;
  }

  /* Entry */
  .rv-entry { padding: 48px 0; }
}
