.dodc-wrap {
  --dodc-system-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --dodc-text: #505050;
  --dodc-blue: #0072B2;
  --dodc-negative: #D55E00;
  --dodc-muted: #778895;
  width: min(100%, 760px);
  margin: 0 auto 1.4em;
  container-type: inline-size;
  font-family: "SC Noto Sans JP Android", var(--dodc-system-font);
  font-weight: 800;
  font-synthesis: weight;
  line-height: normal;
  color: var(--dodc-text);
  color-scheme: only light;
  text-transform: none;
  word-spacing: normal;
}

.dodc-wrap * {
  box-sizing: border-box;
  font-style: normal;
  letter-spacing: 0;
}

.dodc-card {
  --dodc-card-border: 1px;
  /* Scale from the same content width as the SVGs: 588px inside the 590px reference card. */
  --dodc-unit: calc((100cqw - 2 * var(--dodc-card-border)) / 588);
  --dodc-cta-type: calc(18.7 * var(--dodc-unit));
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: var(--dodc-card-border) solid #E5E8EC;
  border-radius: calc(8 * var(--dodc-unit));
  background: #fff;
  box-shadow: 0 calc(8 * var(--dodc-unit)) calc(24 * var(--dodc-unit)) rgba(30, 40, 50, .07);
  -webkit-tap-highlight-color: transparent;
}

.dodc-card :is(.dodc-heading, .dodc-svg, .dodc-results) {
  display: block;
  width: 100%;
  height: auto;
}

.dodc-card svg text {
  font-family: inherit;
  font-weight: 800;
}

.dodc-score > tspan {
  fill: currentColor;
}

.dodc-score-value,
.dodc-gender-score-value {
  color: var(--dodc-blue);
}

.dodc-score-unit,
.dodc-score-max,
.dodc-gender-score-scale,
.dodc-gender-average-label {
  color: var(--dodc-text);
}

.dodc-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 494fr) minmax(0, 466fr);
  align-items: start;
}

.dodc-svg {
  -webkit-user-select: none;
  user-select: none;
}

.dodc-donut circle:not(.dodc-seg-hit) {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7));
}

.dodc-seg-hit {
  cursor: pointer;
}

.dodc-seg {
  transition: opacity .15s ease;
}

.dodc-tap-layer {
  pointer-events: none;
}

.dodc-tap-tag {
  filter: drop-shadow(0 4px 10px rgba(20, 30, 45, .2));
}

.dodc-tap-bg {
  fill: #fff;
  stroke: #e2e6ea;
  stroke-width: 1.5;
}

.dodc-ring-legend {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: calc(7.375 * var(--dodc-unit));
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: calc(2.006 * var(--dodc-unit));
  color: #89959e;
  /* The shared face is available only at 800. Keep the legend lighter. */
  font-family: var(--dodc-system-font);
  font-size: calc(10.384 * var(--dodc-unit));
  font-weight: 600;
  line-height: 1.25;
}

.dodc-ring-legend-item {
  display: flex;
  align-items: flex-start;
  gap: calc(4 * var(--dodc-unit));
  min-width: 0;
  overflow-wrap: anywhere;
}

.dodc-ring-legend-item:last-child {
  flex-shrink: 0;
}

.dodc-ring-dot {
  display: inline-block;
  flex: none;
  width: calc(7 * var(--dodc-unit));
  height: calc(7 * var(--dodc-unit));
  margin-top: .23em;
  border-radius: 50%;
  background: var(--dodc-blue);
}

.dodc-ring-dot-average {
  opacity: .4;
}

.dodc-gender {
  --dodc-gender-border: #d3e1e9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(17.7 * var(--dodc-unit));
  margin: calc(17.464 * var(--dodc-unit)) 11.2% 0;
  font-size: calc(15 * var(--dodc-unit));
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.dodc-gender-card {
  min-width: 0;
  padding: calc(4.36 * var(--dodc-unit)) .15em;
  border: 1px solid var(--dodc-gender-border);
  border-radius: .6em;
  background: rgba(247, 251, 253, .6);
}

.dodc-gender-name,
.dodc-gender-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
}

.dodc-gender-name {
  column-gap: .3em;
  font-weight: 850;
  line-height: 1.45;
}

.dodc-gender-name strong {
  font-weight: inherit;
}

.dodc-gender-name span {
  color: var(--dodc-muted);
  font-size: .87em;
  font-weight: 750;
}

.dodc-gender-score {
  column-gap: .25em;
  margin: .18em 0 .1em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dodc-gender-score-value {
  font-size: 2.183em;
  font-weight: inherit;
}

.dodc-gender-score-scale {
  font-size: .89em;
  font-weight: 750;
  white-space: nowrap;
}

.dodc-gender-comparison {
  margin: calc(5 * var(--dodc-unit)) calc(17 * var(--dodc-unit)) 0;
  padding-top: calc(4 * var(--dodc-unit));
  border-top: 1px solid var(--dodc-gender-border);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.dodc-gender-average {
  color: var(--dodc-muted);
  font-size: .89em;
}

.dodc-gender-diff {
  color: #70828d;
  font-size: .95em;
  font-weight: 850;
}

.dodc-gender-diff[data-tone="negative"] {
  color: var(--dodc-negative);
}

.dodc-gender-diff[data-tone="positive"] {
  color: var(--dodc-blue);
}

.dodc-card button.dodc-control {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 calc(8.378 * var(--dodc-unit));
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--dodc-text);
  box-shadow: 0 calc(2 * var(--dodc-unit)) calc(7 * var(--dodc-unit)) rgba(0, 0, 0, .08);
  cursor: pointer;
  font-family: inherit;
  font-size: calc(15.34 * var(--dodc-unit));
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.dodc-card button.dodc-control:hover,
.dodc-card button.dodc-control[aria-expanded="true"] {
  border-color: #505050;
  background: #f7f7f7;
}

.dodc-card button.dodc-control:focus-visible {
  outline: 2px solid var(--dodc-blue);
  outline-offset: 1px;
}

.dodc-footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: calc(7.375 * var(--dodc-unit));
  min-height: calc(53.69 * var(--dodc-unit));
  padding: 0 calc(5.546 * var(--dodc-unit)) calc(5.546 * var(--dodc-unit));
  /* The inline buttons' containing line boxes must scale too. */
  font-size: calc(16 * var(--dodc-unit));
}

.dodc-footer .dodc-control {
  position: relative;
  z-index: 1;
  height: calc(23.364 * var(--dodc-unit));
}

.dodc-card .dodc-logo {
  position: absolute;
  right: -1.28%;
  bottom: 0;
  display: block;
  width: 26.16%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

.dodc-grade-info-pop,
.dodc-average-info-pop,
.dodc-other-reviews-pop {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 5px);
  display: none;
  padding: clamp(8px, 1.9cqw, 16px);
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, .985);
  color: var(--dodc-text);
  font-size: clamp(11px, 2.6cqw, 21px);
  line-height: 1.28;
  text-align: left;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
}

.dodc-grade-info-pop,
.dodc-average-info-pop {
  bottom: 5.8cqw;
  left: .94cqw;
}

.dodc-grade-info-pop {
  width: min(max(168px, 41cqw), calc(100% - 12px));
}

.dodc-average-info-pop {
  width: max-content;
  max-width: calc(100% - 12px);
}

.dodc-grade-info-wrap.is-open .dodc-grade-info-pop {
  display: grid;
}

.dodc-average-info-wrap.is-open .dodc-average-info-pop,
.dodc-other-reviews-wrap.is-open .dodc-other-reviews-pop {
  display: block;
}

.dodc-average-info-text {
  overflow-wrap: anywhere;
}

.dodc-grade-info-pop .dodc-share-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: .3em;
  min-height: 1.72em;
  color: var(--share-color);
}

.dodc-grade-info-pop .dodc-share-chip:not(:last-child)::after {
  position: absolute;
  top: 50%;
  bottom: -50%;
  left: .65em;
  width: 2px;
  background: #dedede;
  content: "";
}

.dodc-grade-info-pop .dodc-share-chip b {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.36em;
  height: 1.36em;
  border-radius: 50%;
  background: var(--share-color);
  color: #fff;
  box-shadow: 0 0 0 .13em #fff;
}

.dodc-share-chip[data-share-grade="S"] { --share-color: #E08A00; }
.dodc-share-chip[data-share-grade="A"] { --share-color: #0072B2; }
.dodc-share-chip[data-share-grade="B"] { --share-color: #009E73; }
.dodc-share-chip[data-share-grade="C"] { --share-color: #D4AF00; }
.dodc-share-chip[data-share-grade="D"] { --share-color: #B91C1C; }

.dodc-other-reviews-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: calc(12.98 * var(--dodc-unit));
}

.dodc-card button.dodc-other-reviews-btn {
  width: calc(391.6 * var(--dodc-unit));
  min-height: calc(36.521 * var(--dodc-unit));
  padding: .3em .55em;
  border-style: dashed;
  border-color: #BCC6CF;
  border-radius: calc(8 * var(--dodc-unit));
  background: #fff;
  box-shadow: none;
  font-size: var(--dodc-cta-type);
  line-height: 1.08;
  white-space: normal;
}

.dodc-other-reviews-pop {
  left: 50%;
  width: min(72cqw, calc(100% - 16px));
  font-size: max(12px, var(--dodc-cta-type));
  transform: translateX(-50%);
}

.dodc-other-reviews-head {
  display: block;
  margin-bottom: .34em;
  padding: 0 2px .34em;
  border-bottom: 1px solid #e8edf1;
}

.dodc-other-reviews-list {
  display: block;
  max-height: min(43.3cqw, 54vh);
  padding-right: 6px;
  overflow: auto;
}

.dodc-other-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .4em;
  min-height: 1.9em;
  padding: .25em 2px;
  border-bottom: 1px solid #edf1f4;
}

.dodc-other-review-row:last-child {
  border-bottom: 0;
}

.dodc-other-review-name,
.dodc-other-review-name-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dodc-other-review-meta {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  white-space: nowrap;
}

.dodc-other-review-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--grade-color, #747D86);
  color: #fff;
  line-height: 1;
}

.dodc-other-review-grade[data-dodc-grade="S"] { --grade-color: #E08A00; }
.dodc-other-review-grade[data-dodc-grade="A"] { --grade-color: #0072B2; }
.dodc-other-review-grade[data-dodc-grade="B"] { --grade-color: #009E73; }
.dodc-other-review-grade[data-dodc-grade="C"] { --grade-color: #D4AF00; }
.dodc-other-review-grade[data-dodc-grade="D"] { --grade-color: #B91C1C; }

.dodc-other-review-score {
  color: #666;
}

.dodc-other-reviews-foot {
  display: block;
  padding: .4em 2px 0;
  color: #747D86;
  line-height: 1;
  text-align: right;
}

.dodc-other-review-row--current .dodc-other-review-name {
  display: flex;
  align-items: center;
}

.dodc-other-review-now {
  flex: none;
  margin-left: .5em;
  padding: .15em .62em;
  border-radius: 999px;
  background: var(--dodc-blue);
  color: #fff;
  font-size: .78em;
  line-height: 1.35;
}

