.mytc {
  --mytc-ink: #24453f;
  --mytc-text: #3d5b55;
  --mytc-muted: #526f67;
  --mytc-accent: #218774;
  --mytc-deep: #176755;
  --mytc-mint: #eff9f6;
  --mytc-line: #cce6dc;
  --mytc-gold: #a7824d;
  --mytc-white: #fff;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin: 1.4rem auto;
  color: var(--mytc-text);
  background: #f5faf7;
  border: 1px solid var(--mytc-line);
  border-radius: 28px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mytc *, .mytc *::before, .mytc *::after { box-sizing: border-box; }
.mytc :where(h2, h3, h4, p, fieldset, ul, legend) { margin: 0; padding: 0; }
.mytc a { color: var(--mytc-deep); text-underline-offset: .22em; }
.mytc :where(a, button, input):focus-visible { outline: 3px solid var(--mytc-gold); outline-offset: 3px; }

.mytc .mytc-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, .49fr);
  align-items: center;
  min-height: 305px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 66px) clamp(24px, 6vw, 70px) clamp(55px, 8vw, 94px);
  padding: clamp(28px, 6cqi, 66px) clamp(24px, 6cqi, 70px) clamp(55px, 8cqi, 94px);
  border-radius: 27px 27px 0 0;
  background: linear-gradient(117deg, #e5f6f0 2%, #f4fbf7 56%, #f8f6e9 100%);
}

.mytc .mytc-hero::before, .mytc .mytc-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.mytc .mytc-hero::before {
  z-index: -1;
  inset: -18%;
  background:
    radial-gradient(ellipse at 72% 25%, #fffaf0 0%, transparent 29%),
    radial-gradient(ellipse at 31% 6%, #a3e0cb9c 0%, transparent 39%),
    radial-gradient(ellipse at 77% 71%, #a4dbcbb3 0%, transparent 33%);
  filter: blur(20px);
}

.mytc .mytc-hero::after {
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(124deg, transparent 0 26px, #fff7 27px, transparent 28px 54px);
  mask-image: linear-gradient(90deg, transparent 16%, #000);
}

.mytc .mytc-hero-copy { position: relative; z-index: 1; }
.mytc .mytc-year {
  display: inline-block;
  margin: 0 0 13px;
  padding: 4px 13px;
  border: 1px solid #b5d9cd;
  border-radius: 99px;
  background: #ffffffe0;
  color: var(--mytc-deep);
  font-size: .83rem;
  font-weight: 700;
}
.mytc .mytc-year span { font-size: .9em; font-weight: 500; }
.mytc .mytc-hero h2 {
  margin: 0;
  color: var(--mytc-ink);
  font: inherit;
  font-size: clamp(1.85rem, 4vw, 3.14rem);
  font-size: clamp(1.73rem, 4.65cqi, 3.14rem);
  font-weight: 760;
  letter-spacing: .025em;
  line-height: 1.32;
}
.mytc .mytc-lead {
  margin: 14px 0 0;
  font-size: clamp(.9rem, 1.55vw, 1.04rem);
  line-height: 1.8;
}

.mytc .mytc-art {
  position: relative;
  justify-self: center;
  width: min(100%, 225px);
  height: 191px;
  pointer-events: none;
}
.mytc .mytc-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 204px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #fffc;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9, #ffffff12 70%);
  box-shadow: 0 0 44px #fff8;
}
.mytc .mytc-sheet, .mytc .mytc-sheet-back {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 106px;
  height: 132px;
  border: 1px solid #a6d1c3;
  border-radius: 11px;
}
.mytc .mytc-sheet-back {
  transform: translate(-46%, -49%) rotate(-15deg);
  background: linear-gradient(135deg, #edfbf5, #bde2d4);
  box-shadow: 0 13px 24px #2a705724;
}
.mytc .mytc-sheet {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 15px;
  transform: translate(-39%, -49%) rotate(9deg);
  background: linear-gradient(150deg, #fff, #f3fcf8);
  box-shadow: 0 11px 25px #2a70572f;
}
.mytc .mytc-sheet-title {
  width: 60%;
  height: 5px;
  border-radius: 5px;
  background: #5da893;
}
.mytc .mytc-sheet-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mytc .mytc-sheet-line::before {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #d7f0e6;
  color: #176755;
  font: 800 11px/1 sans-serif;
  content: "✓";
}
.mytc .mytc-sheet-line::after {
  width: 42px;
  height: 3px;
  border-radius: 9px;
  background: #b4d8cb;
  content: "";
}
.mytc .mytc-sheet-line:last-child::after { width: 30px; }
.mytc .mytc-spark { position: absolute; color: var(--mytc-gold); line-height: 1; text-shadow: 0 0 14px #fff; }
.mytc .mytc-spark-one { top: 12%; left: 10%; font-size: 1.5rem; }
.mytc .mytc-spark-two { right: 4%; top: 23%; font-size: 1.17rem; }
.mytc .mytc-spark-three { right: 4%; bottom: 13%; font-size: 1.83rem; }
.mytc .mytc-spark-four { bottom: 8%; left: 17%; font-size: 1rem; }

.mytc .mytc-shell {
  position: relative;
  width: min(100% - 44px, 870px);
  margin: -39px auto 0;
}
.mytc .mytc-panel {
  padding: clamp(20px, 4.8vw, 39px);
  border: 1px solid var(--mytc-line);
  border-radius: 22px;
  background: var(--mytc-white);
  box-shadow: 0 13px 36px #31564912;
}
.mytc .mytc-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin: 0 0 18px; }
.mytc .mytc-progress-label { color: var(--mytc-deep); font-size: .82rem; font-weight: 750; letter-spacing: .06em; }
.mytc .mytc-track { display: flex; gap: 4px; }
.mytc .mytc-track > span { width: 19px; height: 4px; border-radius: 6px; background: #dceee7; }
.mytc .mytc-track > .mytc-track-filled { background: var(--mytc-accent); }
.mytc .mytc-heading {
  margin: 0;
  color: var(--mytc-ink);
  font: inherit;
  font-size: clamp(1.25rem, 2.8vw, 1.82rem);
  font-weight: 750;
  line-height: 1.48;
}
.mytc .mytc-heading:focus { outline: none; }
.mytc .mytc-intro { margin: 7px 0 19px; color: var(--mytc-muted); font-size: .94rem; }
.mytc .mytc-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.mytc .mytc-field + .mytc-field { margin-top: 24px; }
.mytc .mytc-legend { margin: 0 0 8px; color: var(--mytc-ink); font-size: 1rem; font-weight: 750; }
.mytc .mytc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mytc .mytc-option {
  display: flex;
  align-items: start;
  gap: 10px;
  min-height: 54px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid var(--mytc-line);
  border-radius: 13px;
  background: #fafffd;
  cursor: pointer;
}
.mytc .mytc-option:hover { border-color: #75ac9b; }
.mytc .mytc-option:has(:checked) { border-color: #428872; background: #e8f6f0; box-shadow: inset 0 0 0 1px #42887235; }
.mytc .mytc-option-copy, .mytc .mytc-option-name, .mytc .mytc-option-hint { display: block; }
.mytc .mytc-option-name { color: var(--mytc-ink); font-size: .95rem; font-weight: 720; }
.mytc .mytc-option-hint { margin-top: 3px; color: var(--mytc-muted); font-size: .81rem; line-height: 1.55; }
.mytc input.mytc-choice-input, .mytc input.mytc-document-input {
  position: static;
  float: none;
  display: inline-block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  opacity: 1;
  appearance: auto;
  accent-color: var(--mytc-deep);
  cursor: pointer;
}
.mytc .mytc-error { margin: 0; color: #9b3329; font-size: .9rem; }
.mytc .mytc-error:not(:empty) { margin-top: 12px; }
.mytc .mytc-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.mytc .mytc-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .92rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.mytc .mytc-primary {
  overflow: hidden;
  border-color: var(--mytc-deep);
  color: #fff;
  background: var(--mytc-deep);
  box-shadow: 0 7px 15px #17675527;
}
.mytc .mytc-primary:hover { color: #fff; background: #125043; }
.mytc .mytc-secondary { border-color: #aecfc4; color: var(--mytc-deep); background: #fff; }
.mytc .mytc-secondary:hover { background: var(--mytc-mint); }
.mytc .mytc-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 14px;
  padding: 15px 3px 19px;
  color: var(--mytc-muted);
  font-size: .77rem;
}
.mytc .mytc-noscript { padding: 20px; border-radius: 15px; background: #fff; }
.mytc .mytc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mytc .mytc-result-head { margin-bottom: 20px; }
.mytc .mytc-result-purpose { margin: 0 0 4px; color: var(--mytc-deep); font-size: .85rem; font-weight: 750; }
.mytc .mytc-counter {
  display: inline-block;
  margin: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mytc-mint);
  color: var(--mytc-deep);
  font-size: .83rem;
  font-weight: 700;
}
.mytc .mytc-group {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--mytc-line);
  border-radius: 13px;
}
.mytc .mytc-group-title {
  margin: 0;
  padding: 9px 13px;
  background: var(--mytc-mint);
  color: var(--mytc-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
}
.mytc .mytc-document-list, .mytc .mytc-references { margin: 0; padding: 0; list-style: none; }
.mytc .mytc-document { margin: 0; }
.mytc .mytc-document + .mytc-document { border-top: 1px solid #e1eee9; }
.mytc .mytc-document-label {
  display: flex;
  align-items: start;
  gap: 10px;
  min-height: 49px;
  padding: 11px 13px;
  cursor: pointer;
}
.mytc .mytc-document-label:has(:checked) { background: #f5fbf8; }
.mytc .mytc-document-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; color: var(--mytc-ink); font-size: .94rem; }
.mytc .mytc-document-detail { display: block; margin-top: 3px; font-size: .85rem; line-height: 1.63; }
.mytc .mytc-sample-details {
  margin: 0 13px 12px;
  border: 1px solid var(--mytc-line);
  border-radius: 10px;
  background: #f6fbf8;
}
.mytc .mytc-sample-toggle {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--mytc-deep);
  font-weight: 750;
  cursor: pointer;
}
.mytc .mytc-sample-toggle:focus-visible { outline: 3px solid var(--mytc-gold); outline-offset: 2px; }
.mytc .mytc-sample {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px;
  border-top: 1px solid var(--mytc-line);
}
.mytc .mytc-sample-caption { display: grid; gap: 2px; margin-bottom: 9px; }
.mytc .mytc-sample-title { color: var(--mytc-ink); font-size: 1rem; }
.mytc .mytc-sample-context { color: var(--mytc-muted); font-size: .875rem; }
.mytc .mytc-sample-enlarge { display: grid; gap: 5px; text-decoration: underline; }
.mytc .mytc-sample-image { display: block; width: 100%; height: auto; border: 1px solid #d6e2dc; background: #fff; }
.mytc .mytc-sample-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.mytc .mytc-sample-links a { padding-block: 5px; text-decoration: underline; }
.mytc .mytc-tag { padding: 1px 7px; border-radius: 7px; color: #205e50; background: #e6f4ed; font-size: .73rem; font-weight: 700; }
.mytc .mytc-tag-submit, .mytc .mytc-tag-attach { color: #164f55; background: #e1f2f3; }
.mytc .mytc-tag-conditional { color: #6e4f2b; background: #fbf0df; }
.mytc .mytc-references { display: flex; flex-wrap: wrap; gap: 2px 13px; padding: 7px 13px 9px; border-top: 1px solid #e1eee9; font-size: .76rem; }
.mytc .mytc-references > li { margin: 0; }
.mytc .mytc-note { margin-top: 18px; padding: 13px; border-left: 3px solid #a7824d; border-radius: 3px 8px 8px 3px; background: #fcf9f0; font-size: .79rem; }
.mytc .mytc-note p { margin: 0 0 5px; }
.mytc .mytc-reset { display: block; margin: 14px 0 0 auto; padding: 8px 0 0; border: 0; color: var(--mytc-deep); background: transparent; font: inherit; font-size: .84rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  .mytc .mytc-hero::before { animation: mytc-glow 12s ease-in-out infinite alternate; }
  .mytc .mytc-spark { animation: mytc-twinkle 3.2s ease-in-out infinite alternate; }
  .mytc .mytc-spark-two { animation-delay: .8s; }
  .mytc .mytc-spark-three { animation-delay: 1.7s; }
  .mytc .mytc-primary::after {
    position: absolute;
    inset: 0;
    transform: translateX(-140%);
    background: linear-gradient(105deg, transparent 25%, #ffffff48 50%, transparent 75%);
    transition: transform .58s ease;
    pointer-events: none;
    content: "";
  }
  .mytc .mytc-primary:hover::after, .mytc .mytc-primary:focus-visible::after { transform: translateX(140%); }
  @keyframes mytc-glow { to { transform: translate3d(5%, -4%, 0) scale(1.13) rotate(5deg); } }
  @keyframes mytc-twinkle { from { opacity: .48; transform: scale(.85); } to { opacity: 1; transform: scale(1.12); } }
}

@media screen and (max-width: 650px), screen and (max-width: 940px) and (pointer: coarse) {
  .mytc {
    --mytc-mobile-text: max(18px, 1.125rem);
    --mytc-mobile-small: max(16px, 1rem);
    box-sizing: border-box;
    border-radius: 20px;
    font-size: var(--mytc-mobile-text);
  }
  .mytc .mytc-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 26px 19px 50px;
    border-radius: 19px 19px 0 0;
  }
  .mytc .mytc-hero h2 {
    font-size: clamp(max(25px, 1.5625rem), 5.7vw, max(32px, 2rem));
    text-wrap: balance;
  }
  .mytc .mytc-lead { max-width: 25em; padding-right: 3px; margin-top: 11px; text-wrap: balance; }
  .mytc .mytc-desktop-break { display: none; }
  .mytc .mytc-art { position: absolute; top: -34px; right: -19px; width: 186px; transform: scale(.45); transform-origin: 65% 43%; }
  .mytc .mytc-shell { width: calc(100% - 22px); margin-top: -27px; }
  .mytc .mytc-panel { padding: 16px; border-radius: 16px; }
  .mytc .mytc-heading { font-size: max(22px, 1.375rem); line-height: 1.42; text-wrap: pretty; }
  .mytc .mytc-group-title { font-size: max(20px, 1.25rem); }

  .mytc :is(.mytc-lead, .mytc-intro, .mytc-legend, .mytc-option-name, .mytc-error,
    .mytc-document-title, .mytc-document-title strong, .mytc-document-detail, .mytc-button,
    .mytc-sample-toggle, .mytc-sample-title) {
    font-size: var(--mytc-mobile-text);
  }
  .mytc :is(.mytc-year, .mytc-year span, .mytc-progress-label, .mytc-option-hint, .mytc-footer,
    .mytc-footer span, .mytc-result-purpose, .mytc-counter, .mytc-tag, .mytc-references,
    .mytc-references a, .mytc-note, .mytc-note p, .mytc-note a, .mytc-reset,
    .mytc-sample-context, .mytc-sample-enlarge, .mytc-sample-links a) {
    font-size: var(--mytc-mobile-small);
  }
  .mytc :is(.mytc-option-hint, .mytc-footer span) { text-wrap: pretty; }

  .mytc .mytc-options { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .mytc .mytc-option { min-height: 56px; padding: 10px 11px; }
  .mytc .mytc-document-label { min-height: 56px; padding: 12px 11px; }
  .mytc input:is(.mytc-choice-input, .mytc-document-input) {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  .mytc .mytc-references { flex-direction: column; gap: 5px; }
  .mytc .mytc-button { min-width: 0; max-width: 100%; min-height: 52px; padding-inline: 14px; }
  .mytc .mytc-actions > .mytc-primary { flex: 1 1 auto; }
  .mytc .mytc-result-actions > * { flex-grow: 1; }
  .mytc .mytc-result-actions > .mytc-primary { flex-basis: 100%; }
}

@container (max-width: 540px) {
  .mytc .mytc-options { grid-template-columns: minmax(0, 1fr); }
}

@media screen {
  .mytc { container-type: inline-size; }
}

@media print {
  .mytc .mytc-sample-details { display: none !important; }
}

.mytc .mytc-print-frame {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 210mm;
  height: 297mm;
  border: 0;
  pointer-events: none;
}
