/* Approved 2026-11-14: opted-in subject lists only. Desktop rules remain in their original files. */
@media (max-width:760px) {
 body.atsumi-site .mobile-subject-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:60px;
  gap:10px; width:var(--mobile-subject-rail,95%); max-width:none; padding:0;
  margin:0; margin-inline-start:calc((100% - var(--mobile-subject-rail,95%))/2);
  list-style:none; align-items:start;
 }
 body.atsumi-site .mobile-subject-grid > li { display:block; min-width:0; margin:0; padding:0; height:60px; }
 body.atsumi-site .mobile-subject-grid > li > a {
  display:grid; grid-template-columns:minmax(0,1fr) 12px; align-items:center;
  justify-content:normal; gap:8px; width:100%; min-width:0; height:60px; min-height:0;
  box-sizing:border-box; padding:0 15px; border-width:1px; border-style:solid;
  border-radius:999px; background:#fff; font-family:Meiryo,"メイリオ","Noto Sans JP",sans-serif;
  font-size:18px; font-weight:400; letter-spacing:0; line-height:1.1;
  text-align:left; text-decoration:none;
 }
 body.atsumi-site .mobile-subject-grid > li > a > span:first-child {
  display:block; min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere;
  line-height:1.1; letter-spacing:0;
 }
 body.atsumi-site .mobile-subject-grid > li > a > span[aria-hidden="true"] {
  display:block; width:12px; height:auto; min-width:0; padding:0; margin:0;
  border:0; border-radius:0; background:none; font-size:inherit; line-height:1.1;
  text-align:right; box-sizing:border-box;
 }
 /* One two-line label. Only the supplementary font is capped to the available label width. */
 body.atsumi-site .mobile-subject-grid .mobile-subject-name { display:block; line-height:1.1; }
 body.atsumi-site .mobile-subject-grid .mobile-subject-note { display:block; font-size:min(.722222em,12.5cqw); line-height:1.2; letter-spacing:0; white-space:nowrap; }
 body.atsumi-site .mobile-subject-grid > li > a:has(.mobile-subject-note) > span:first-child {container-type:inline-size;}
 body.atsumi-site .mobile-subject-grid .mobile-subject-two-line {display:block;}
}


/* Preserve the former facility-two-line-label geometry on desktop. */
@media (min-width:761px) {
 body.atsumi-site .mobile-subject-two-line {display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.35;gap:0;}
 body.atsumi-site .mobile-subject-two-line > :is(span,small) {display:block;white-space:nowrap;font:inherit;letter-spacing:inherit;}
}

